(self.webpackChunkdcb=self.webpackChunkdcb||[]).push([[179],{58440:Ee=>{var Q=function(t){var n=[],e="application/x-rutoken-pki",i=window.ohedcglhbbfdgaogjhcclacoccbagkjg;function d(C){return!!(C&&C.call&&C.apply)}function a(C,T){return d(C[T])?function(){return C[T].apply(C,arguments)}:C[T]}function u(C){return function(){return C}}function h(){t.ready=Promise.resolve(!0),t.isExtensionInstalled=u(Promise.resolve(!1)),t.isPluginInstalled=u(Promise.resolve(!0)),t.loadPlugin=x,window.rutokenLoaded=L}function x(){var C=document.createElement("object");return C.style.setProperty("visibility","hidden","important"),C.style.setProperty("width","0px","important"),C.style.setProperty("height","0px","important"),C.style.setProperty("margin","0px","important"),C.style.setProperty("padding","0px","important"),C.style.setProperty("border-style","none","important"),C.style.setProperty("border-width","0px","important"),C.style.setProperty("max-width","0px","important"),C.style.setProperty("max-height","0px","important"),C.innerHTML="<param name='onload' value='rutokenLoaded'/>",C.setAttribute("type",e),document.body.appendChild(C),new Promise(function(j,I){n.push(j)})}function O(){return i.loadPlugin().then(function(C){return w(C)}).then(function(C){return C.wrapWithOldInterface=B,C})}function L(C,T){(function y(C){var T={originalObject:C,wrapWithOldInterface:_};for(var j in C)T[j]=d(C[j])?function(I,F){return function(){var z=Array.prototype.slice.call(arguments);return new Promise(function(X,p){z.push(X,p),F.apply(I,z)})}}(C,C[j]):C[j];return new Promise(function(I){I(T)})})(C).then(function(j){if(0==n.length)throw"Internal error";n.shift()(j)})}function w(C){var T={},j=[];for(var I in C)!function(F){d(C[F].then)?j.push(C[F].then(function(z){return w(z).then(function(X){T[F]=d(X)?a(C,F):X})})):T[F]=C[F]}(I);return 0==j.length?new Promise(function(F){F(C)}):Promise.all(j).then(function(){return T})}function B(){var C={};for(var T in this)C[T]=d(this[T])?function(j,I){return function(){var F=arguments[arguments.length-2],z=arguments[arguments.length-1],X=Array.prototype.slice.call(arguments,0,-2);return I.apply(j,X).then(function(p){F(p)},function(p){z(p.message)})}}(this,this[T]):this[T];return new Promise(function(j){j(C)})}function _(){var C={originalObject:this.originalObject};for(var T in this.originalObject)C[T]=a(this.originalObject,T);return new Promise(function(j){j(C)})}if(i)!function l(){var C=i.initialize().then(function(){return i.isPluginInstalled()}).then(function(T){return t.isExtensionInstalled=u(Promise.resolve(!0)),t.isPluginInstalled=a(i,"isPluginInstalled"),T&&(e="application/x-rutoken-plugin",t.loadPlugin=O),!0});t.ready=C}();else if(navigator.mimeTypes&&navigator.mimeTypes[e])h();else try{new ActiveXObject("Aktiv.CryptoPlugin"),h()}catch{!function m(){t.ready=Promise.resolve(!0),t.isExtensionInstalled=u(Promise.resolve(!1)),t.isPluginInstalled=u(Promise.resolve(!1))}()}return t}(Q||{});Ee.exports=Q},56085:Ee=>{var Q;if(typeof window.DOMParser<"u")Q=function(n){return(new window.DOMParser).parseFromString(n,"text/xml")};else{if(!(typeof window.ActiveXObject<"u"&&new window.ActiveXObject("Microsoft.XMLDOM")))throw new Error("No XML parser found");Q=function(n){var e=new window.ActiveXObject("Microsoft.XMLDOM");return e.async="false",e.loadXML(n),e}}Ee.exports=function t(n,e){var i={toObj:function(a){var u={};if(1==a.nodeType){if(a.attributes.length)for(var h=0;h<a.attributes.length;h++)u["@"+a.attributes[h].nodeName]=(a.attributes[h].nodeValue||"").toString();if(a.firstChild){for(var l=0,m=0,x=!1,O=a.firstChild;O;O=O.nextSibling)1==O.nodeType?x=!0:3==O.nodeType&&O.nodeValue.match(/[^ \f\n\r\t\v]/)?l++:4==O.nodeType&&m++;if(x)if(l<2&&m<2)for(i.removeWhite(a),O=a.firstChild;O;O=O.nextSibling)3==O.nodeType?u["#text"]=i.escape(O.nodeValue):4==O.nodeType?u["#cdata"]=i.escape(O.nodeValue):u[O.nodeName]?u[O.nodeName]instanceof Array?u[O.nodeName][u[O.nodeName].length]=i.toObj(O):u[O.nodeName]=[u[O.nodeName],i.toObj(O)]:u[O.nodeName]=i.toObj(O);else a.attributes.length?u["#text"]=i.escape(i.innerXml(a)):u=i.escape(i.innerXml(a));else if(l)a.attributes.length?u["#text"]=i.escape(i.innerXml(a)):u=i.escape(i.innerXml(a));else if(m)if(m>1)u=i.escape(i.innerXml(a));else for(O=a.firstChild;O;O=O.nextSibling)u["#cdata"]=i.escape(O.nodeValue)}!a.attributes.length&&!a.firstChild&&(u=null)}else 9==a.nodeType?u=i.toObj(a.documentElement):console.error("unhandled node type: "+a.nodeType);return u},toJson:function(a,u,h){var l=u?'"'+u+'"':"";if(a instanceof Array){for(var m=0,x=a.length;m<x;m++)a[m]=i.toJson(a[m],"",h+"\t");l+=(u?":[":"[")+(a.length>1?"\n"+h+"\t"+a.join(",\n"+h+"\t")+"\n"+h:a.join(""))+"]"}else if(null==a)l+=(u&&":")+"null";else if("object"==typeof a){var O=[];for(var L in a)O[O.length]=i.toJson(a[L],L,h+"\t");l+=(u?":{":"{")+(O.length>1?"\n"+h+"\t"+O.join(",\n"+h+"\t")+"\n"+h:O.join(""))+"}"}else l+="string"==typeof a?(u&&":")+'"'+a.toString()+'"':(u&&":")+a.toString();return l},innerXml:function(a){var u="";if("innerHTML"in a)u=a.innerHTML;else for(var h=function(m){var x="";if(1==m.nodeType){x+="<"+m.nodeName;for(var O=0;O<m.attributes.length;O++)x+=" "+m.attributes[O].nodeName+'="'+(m.attributes[O].nodeValue||"").toString()+'"';if(m.firstChild){x+=">";for(var L=m.firstChild;L;L=L.nextSibling)x+=h(L);x+="</"+m.nodeName+">"}else x+="/>"}else 3==m.nodeType?x+=m.nodeValue:4==m.nodeType&&(x+="<![CDATA["+m.nodeValue+"]]>");return x},l=a.firstChild;l;l=l.nextSibling)u+=h(l);return u},escape:function(a){return a.replace(/[\\]/g,"\\\\").replace(/[\"]/g,'\\"').replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r")},removeWhite:function(a){a.normalize();for(var u=a.firstChild;u;)if(3==u.nodeType)if(u.nodeValue.match(/[^ \f\n\r\t\v]/))u=u.nextSibling;else{var h=u.nextSibling;a.removeChild(u),u=h}else 1==u.nodeType&&i.removeWhite(u),u=u.nextSibling;return a}};9==(n=Q(n)).nodeType&&(n=n.documentElement);var d=i.toJson(i.toObj(i.removeWhite(n)),n.nodeName,"\t");return"{\n"+e+(e?d.replace(/\t/g,e):d.replace(/\t|\n/g,""))+"\n}"}},30723:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>x,JK:()=>y,NM:()=>i,NZ:()=>n,QB:()=>B,VC:()=>e,WB:()=>O,WL:()=>d,gF:()=>$,h1:()=>w,sf:()=>C});const n="ROLE_CLIENTUL_BANK",e="ROLE_CLIENTUL_VED_TRANSIT_AMOUNT_CREDIT",i="ROLE_CLIENT_SP_DEP",d="ROLE_CLIENT_DDB",x="ROLE_CURRENCY_PRECHECK",O="ROLE_RELIABLE_BUSINESS",w="ROLE_ONLY_EMAIL",B="ROLE_NO_SIGNATURE",y="ROLE_BANKUL_CLOSE_CURR_ACC",$="ROLE_BANK_PARTNER_5",C="ROLE_CLIENTUL_USER"},4455:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>i});var n=t(94650),e=t(3782);let i=(()=>{class d{constructor(u){this.factory=u}execute(u){this.factory.resolveHandler(u).process()}static#e=this.\u0275fac=function(h){return new(h||d)(n.\u0275\u0275inject(e.a))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac})}return d})()},3782:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>O});var n=t(44180),e=t(3751),i=t(49284),d=t(9149),a=t(54004),u=t(63900),h=t(95698);class l{constructor(w,B,_,y,$){this.router=w,this.apiService=B,this.paymentRequestService=_,this.toastCustomService=y,this.actionData=$}process(){this.paymentRequestService.nextDocNumber("revoke_document").pipe((0,a.U)(w=>w.docNumber),(0,u.w)(w=>this.createRevokeDocument(w,this.actionData.revoked.docId)),(0,h.q)(1)).subscribe({next:w=>{this.router.navigate(["/revoke-document"],{queryParams:{docId:w,docType:"revoke_document",docModule:"ibankul",revokedDocId:this.actionData.revoked.docId,revokedDocType:this.actionData.revoked.docType,revokedDocModule:this.actionData.revoked.docModule}})},error:w=>this.toastCustomService.show(w.errorText,"error")})}createRevokeDocument(w,B){return this.apiService.post("revoke/document",{docNumber:w,revokeDocId:B}).pipe((0,a.U)(_=>_.id))}}class m{constructor(w,B,_){this.apiService=w,this.toastCustomService=B,this.fixedDocId=_}process(){this.apiService.get(`fxts/conversion/revoke/${this.fixedDocId}`).subscribe(w=>{this.toastCustomService.show(w?"\u041e\u0442\u0437\u044b\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0437\u0432\u0430\u043d",w?"success":"error")},w=>{this.toastCustomService.show(w.errorText,"error")})}}var x=t(94650);let O=(()=>{class L{constructor(B){this.injector=B}resolveHandler(B){return"fixed_rate"===B.revoked.docType?new m(this.injector.get(e.s),this.injector.get(d.j),B.revoked.docId):new l(this.injector.get(n.F0),this.injector.get(e.s),this.injector.get(i.g),this.injector.get(d.j),B)}static#e=this.\u0275fac=function(_){return new(_||L)(x.\u0275\u0275inject(x.Injector))};static#t=this.\u0275prov=x.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac})}return L})()},18139:(Ee,Q,t)=>{"use strict";t.d(Q,{p:()=>i});var n=t(4707),e=t(94650);let i=(()=>{class d extends n.t{constructor(){super()}ngOnDestroy(){this.next(!0),this.complete()}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac})}return d})()},5254:(Ee,Q,t)=>{"use strict";t.d(Q,{$P:()=>G,G2:()=>E,Kf:()=>C,Mt:()=>I,OP:()=>B,Oh:()=>m,PP:()=>y,QO:()=>xe,UH:()=>u,UK:()=>e,Uu:()=>we,WF:()=>x,Ww:()=>z,X5:()=>w,XQ:()=>T,XS:()=>O,_h:()=>h,dE:()=>F,eM:()=>R,iL:()=>_,it:()=>ne,j8:()=>a,lX:()=>j,oC:()=>l,s9:()=>P,v_:()=>i,wZ:()=>X,xL:()=>d,zE:()=>ce});var n=t(57460);const e="acquiring",i="acquiring-hard-pos";var d=(()=>{return(Ge=d||(d={})).ALL="all",Ge.FOR_SIGNATURE="for_signature",d;var Ge})(),a=(()=>{return(Ge=a||(a={})).ALL="all",Ge.VALID="valid",Ge.INVALID="invalid",a;var Ge})(),u=(()=>{return(Ge=u||(u={})).TSP="TSP",Ge.APPLICATION="ApplicationsTSP",Ge.INFO_TSP="AboutTSP",Ge.HELP="Help",u;var Ge})(),h=(()=>{return(Ge=h||(h={})).FIRST="1",Ge.SECOND="2",Ge.THIRD="3",Ge.FORTH="4",h;var Ge})();const l="tsp-form",m="add-new",x=[{name:"\u0422\u0430\u0440\u0438\u0444",stepNumberStr:h.FIRST},{name:"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0422\u0421\u041f",stepNumberStr:h.SECOND},{name:"\u041e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435",stepNumberStr:h.THIRD}];var O=(()=>{return(Ge=O||(O={})).ACTIVE="\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442",Ge.NOT_ACTIVE="\u041d\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442",Ge.DELETED="\u0423\u0434\u0430\u043b\u0435\u043d",O;var Ge})(),L=(()=>{return(Ge=L||(L={})).ACTIVE="\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442",Ge.NOT_ACTIVE="\u041d\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442",L;var Ge})();const w=[{shortName:"\u0412\u0441\u0435",query:d.ALL,chosen:!0,section:u.APPLICATION},{shortName:"\u041d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c",query:d.FOR_SIGNATURE,chosen:!1,counter:0,section:u.APPLICATION}],B=[{shortName:"\u0412\u0441\u0435",query:a.ALL,chosen:!0,section:u.TSP},{shortName:L.ACTIVE,query:a.VALID,chosen:!1,counter:0,section:u.TSP},{shortName:L.NOT_ACTIVE,query:a.INVALID,chosen:!1,counter:0,section:u.TSP}],_=[{isSectionActive:!0,name:u.TSP},{isSectionActive:!1,name:u.APPLICATION,tabs:w}],y=[{isSectionActive:!0,name:u.INFO_TSP,tabs:[{shortName:"",query:d.ALL,chosen:!0,section:u.INFO_TSP}]},{isSectionActive:!1,name:u.APPLICATION,tabs:w}];var C=(()=>{return(Ge=C||(C={})).TSP_REGISTRATION="tsp_register",Ge.TSP_DELETE="tsp_delete",Ge.ADD_EQUIPMENT="add_equipment",Ge.DELETE_EQUIPMENT="add_equipment",Ge.ALL="all",C;var Ge})(),T=(()=>{return(Ge=T||(T={})).NEW_DEVICES="New devices",Ge.DELETE_TSP="Delete TSP",T;var Ge})(),j=(()=>{return(Ge=j||(j={})).ONLINE="1",Ge.PINPAD="2",Ge.STATIONARY="3",Ge.MOBILE="4",j;var Ge})();const I=[{name:T.NEW_DEVICES,description:T.NEW_DEVICES},{name:T.DELETE_TSP,description:T.DELETE_TSP}],F=[{step:1,caption:"\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435",text:"\u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432 \u0411\u0430\u043d\u043a"},{step:2,caption:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435",text:"\u0432\u0430\u0448\u0438 \u0422\u0421\u041f \u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439"},{step:3,caption:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435",text:"\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u043f\u043b\u0430\u0442\u0443"}],z=[{step:1,caption:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435",text:"\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440, \u0434\u0430\u043b\u0435\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u0422\u0421\u041f \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435"},{step:2,caption:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044b",text:"\u041f\u0440\u0438\u043c\u0438\u0442\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044b \u0432 \u043b\u044e\u0431\u043e\u043c \u0433\u043e\u0440\u043e\u0434\u0435, \u0430 \u043c\u044b \u043f\u043e\u043c\u043e\u0436\u0435\u043c \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c"},{step:3,caption:"\u0413\u043e\u0442\u043e\u0432\u043e",text:"\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u0439\u0442\u0435 \u043e\u043f\u043b\u0430\u0442\u0443 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 \u043f\u043e QR-\u043a\u043e\u0434\u0443"}],X=[{caption:"\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435",text:"\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0422\u0421\u041f \u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u0432 \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430"},{caption:"\u041e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438",text:"\u043f\u043e\u0441\u043b\u0435 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u043e\u043d\u043b\u0430\u0439\u043d \u043a\u0430\u0441\u0441\u043e\u0439 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c \u043e\u043f\u043b\u0430\u0442\u044b \u043f\u043e QR-\u043a\u043e\u0434\u0443"},{caption:"\u041f\u0440\u0438\u0435\u043c \u043e\u043f\u043b\u0430\u0442\u044b",text:"\u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0441\u0443\u043c\u043c\u0443 \u0434\u043b\u044f \u043e\u043f\u043b\u0430\u0442\u044b \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430. \u041f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0447\u0435\u043a \u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u044d\u043b. \u043f\u043e\u0447\u0442\u0443"}],P={type:n.tx.SUCCESS,text:"\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:",icon:"mark",cssClass:"success-outlined"},E={type:n.tx.SUCCESS,text:"{0} - \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044e.",icon:"mark",cssClass:"gray",value:["2.1%"],title:"\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044f"},R={type:n.tx.SUCCESS,text:"{0} - \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u041f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0430\u043a\u0446\u0438\u0438 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044e.",icon:"gift",cssClass:"light-blue",value:["0.8%"],title:"\u0410\u043a\u0446\u0438\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432"},ne={text:"\u041e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u0432:",icon:"mark",cssClass:"gray"},G={text:"",icon:"mark",cssClass:"gray",isExpandable:!0},ce={text:"\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f",icon:"mark",cssClass:"gray",isExpandable:!0},xe=[{name:"\u0412\u0441\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u0422\u0421\u041f",value:""},{name:L.ACTIVE,value:"end"},{name:L.NOT_ACTIVE,value:"changes_in_process;decline;delete;new;canceled;send"}],we=[{name:"\u041f\u043e\u0434 \u043a\u043b\u044e\u0447",value:"full",description:"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u043e: \u043f\u043e\u043a\u0443\u043f\u043a\u0430 \u0444\u0438\u0441\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044f, \u0443\u0441\u043b\u0443\u0433\u0430 \u041e\u0424\u0414 \u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u041a\u041a\u0422 \u0432 \u0424\u041d\u0421"},{name:"\u0415\u0441\u0442\u044c \u0424\u041d \u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0432 \u0424\u041d\u0421",value:"outsource"}]},9525:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>l});var n=t(36895),e=t(97392),i=t(74471),u=(t(37214),t(91676),t(94650));let l=(()=>{class m{static#e=this.\u0275fac=function(L){return new(L||m)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:m});static#n=this.\u0275inj=u.\u0275\u0275defineInjector({imports:[n.ez,i.h,e.Ps]})}return m})()},37214:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>i});var n=t(94650),e=t(62978);let i=(()=>{class d{constructor(u){this.acquiringService=u,this.color="rgba(47, 84, 235, 1)"}ngOnInit(){this.activeStatusStyle=this.color&&this.text?`background: ${this.color}`:this.getActiveStatusStyle(this.status),this.activeText=this.status?this.status:this.text}getActiveStatusStyle(u){return this.acquiringService.getActiveStatusStyle(u)}static#e=this.\u0275fac=function(h){return new(h||d)(n.\u0275\u0275directiveInject(e.Y))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["app-active-status"]],inputs:{status:"status",color:"color",text:"text"},decls:2,vars:3,consts:[[1,"state"]],template:function(h,l){1&h&&(n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&h&&(n.\u0275\u0275styleMap(l.activeStatusStyle),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(l.activeText))},styles:["[_nghost-%COMP%]{display:flex}.state[_ngcontent-%COMP%]{border-radius:4px;padding:4px 8px;color:var(--text-white, #fff);font-size:10px;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:700;line-height:normal;text-transform:uppercase;display:flex;align-items:center}"],changeDetection:0})}return d})()},91676:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>d});var n=t(94650),e=t(36895);function i(a,u){if(1&a&&(n.\u0275\u0275elementStart(0,"li",2)(1,"span",3),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"span",4),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd()()),2&a){const h=u.$implicit,l=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275classProp("steps-list__number--active",+h.stepNumberStr<=l.stepNumber),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",h.stepNumberStr,""),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("steps-list__name--active",+h.stepNumberStr<=l.stepNumber),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",h.name,"")}}let d=(()=>{class a{constructor(){this.stepsConfig=[],this.stepNumber=1}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["app-steps-track"]],inputs:{stepsConfig:"stepsConfig",stepNumber:"stepNumber"},decls:2,vars:1,consts:[[1,"steps-list"],["class","steps-list__item",4,"ngFor","ngForOf"],[1,"steps-list__item"],[1,"steps-list__number"],[1,"steps-list__name"]],template:function(l,m){1&l&&(n.\u0275\u0275elementStart(0,"ul",0),n.\u0275\u0275template(1,i,5,6,"li",1),n.\u0275\u0275elementEnd()),2&l&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",m.stepsConfig))},dependencies:[e.sg],styles:['.steps-list__item[_ngcontent-%COMP%]{display:flex;align-items:center}.steps-list__item[_ngcontent-%COMP%]:not(:last-of-type){padding-bottom:28px}.steps-list__item[_ngcontent-%COMP%]:not(:last-of-type)   .steps-list__number[_ngcontent-%COMP%]:after{content:"";position:absolute;border-radius:2px;background:#d9d9d9;width:1px;height:20px;top:calc(100% + 5px);left:50%}.steps-list__name[_ngcontent-%COMP%]{color:#88909b;font-size:16px;line-height:22px}.steps-list__name--active[_ngcontent-%COMP%]{color:#2f54eb}.steps-list__number[_ngcontent-%COMP%]{border-radius:16px;border:1px solid #88909b;display:flex;width:20px;height:20px;padding:2px 8px;justify-content:center;align-items:center;color:#88909b;text-align:center;font-size:14px;font-weight:600;line-height:20px;margin-right:13px;position:relative}.steps-list__number--active[_ngcontent-%COMP%]{background:#2f54eb;border-color:#2f54eb;color:#fff}']})}return a})()},87834:(Ee,Q,t)=>{"use strict";t.d(Q,{j:()=>u});var n=t(54004),e=t(22431),i=t(94650),d=t(3751),a=t(15644);let u=(()=>{class h{constructor(m,x){this.apiService=m,this.configUtilService=x,this.CONNECTION_STATUS=e.c}getAcquiringRulesPageLink(){return this.apiService.publicGetDefault("cust/dictionary/mainPaigeHref")}getAcquiringTariffAndOkved(){return this.apiService.get("dictionary/acquiring_hard_pos/tariffs")}get3in1VendorsOutsourceInstallationHardPos(){return this.apiService.get("/dictionary/acquiring_hard_pos/vendor_po_3in1")}get3in1VendorsFullInstallationHardPos(){return this.apiService.get("/dictionary/acquiring_hard_pos/vendor_po_3in1_key")}getIKRVendorsHardPos(){return this.apiService.get("/dictionary/acquiring_hard_pos/vendor_po_ikr")}hasAcquiringDoc(){return this.apiService.get("tsp_hard_pos/check")}postAgreement(){return this.apiService.post("acq_agreement_hard_pos/create",{})}getAgreementStatus(){return this.apiService.get("acq_agreement_hard_pos/status")}getTspEquipmentTypes(){return this.apiService.get("/tools/tspHardPosDeviceType").pipe((0,n.U)(m=>m.map(x=>{const{description:O,terminalName:L,costTerminal:w,costFn:B}=JSON.parse(x.description);return{...x,description:{description:O,terminalName:L,costTerminal:parseInt(w,10),costFn:parseInt(B,10)}}})))}postTspForm(m){return this.apiService.post("tsp_hard_pos/create",m)}getTCPTransitForm(){return this.apiService.post("tsp_hard_pos/create",{})}getTCPRegistryDocumentSettings(){return this.apiService.get("tsp_hard_pos/setup")}postTspDelete(m){return this.apiService.post(`tsp_hard_pos/delete?tspId=${m}`,{})}postDeviceAdd(m,x,O=""){return this.apiService.post(`tsp_hard_pos/${m}/tsp-update-add/${O}`,{deviseForms:x})}postDeviceDelete(m,x){return this.apiService.post(`tsp_hard_pos/${m}/tsp-update-delete?docIds=${x}`,{})}postLastDocumentsAcquiring(m){return this.apiService.post("tsp_hard_pos/page",m)}getTSPDevicesObtainingMethod(){return this.apiService.get("tsp_hard_pos/checkSignDoc")}static#e=this.\u0275fac=function(x){return new(x||h)(i.\u0275\u0275inject(d.s),i.\u0275\u0275inject(a.Pj))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},15225:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>d});var n=t(22431),e=t(94650),i=t(3751);let d=(()=>{class a{constructor(h){this.apiService=h,this.CONNECTION_STATUS=n.c}getTspEquipmentTypes(){return this.apiService.get("/tools/tspDeviceType")}hasAcquiringDoc(){return this.apiService.get("tsp/check")}postAgreement(){return this.apiService.post("acq_agreement/create",{})}postTspForm(h){return this.apiService.post("tsp/create",h)}getTCPTransitForm(){return this.apiService.post("tsp/create",{})}getTCPRegistryDocumentSettings(){return this.apiService.get("tsp/setup")}postTspDelete(h){return this.apiService.post(`tsp/delete?tspId=${h}`,{})}postDeviceAdd(h,l,m=""){return this.apiService.post(`tsp/${h}/tsp-update-add${m?`/${m}`:""}`,{deviceList:l})}postDeviceDelete(h,l){return this.apiService.post(`tsp/${h}/tsp-update-delete?docIds=${l}`,{})}getAcquiringTariffAndOkved(){return this.apiService.get("dictionary/acquiring/tariffs")}postLastDocumentsAcquiring(h){return this.apiService.post("tsp/page",h)}getAgreementStatus(){return this.apiService.get("acq_agreement/status")}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275inject(i.s))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},62978:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>G});var n=t(17489),i=t(15439),d=t.n(i),a=t(61135),u=t(39841),h=t(77579),l=t(39646),m=t(63900),x=t(4128),O=t(39300),L=t(54004),w=t(70262),B=t(18505),_=t(34782),y=t(6146),$=t(49167),C=t(32031),T=t(22431),j=t(18545),I=t(5254),F=t(94650),z=t(15644),X=t(16611),p=t(15225),P=t(87834),E=t(9149),R=t(44180),ne=t(40929);let G=(()=>{class ce{constructor(we,Ge,ct,pe,Ce,U,H,Z){this.configUtilService=we,this.translationService=Ge,this.acquiringSoftPosApiService=ct,this.acquiringHardPosApiService=pe,this.toastCustomService=Ce,this.router=U,this.documentService=H,this.translation=Z,this.CONNECTION_STATUS=T.c,this.partialSigningAcquiringSoftPOSAgreementId$=new a.X(null),this.contractDataAcquiringSoftPOS$=new a.X(null),this.acquiringSoftPOSConnectionStatus$=new a.X(T.c.NEW),this.partialSigningAcquiringHardPOSAgreementId$=new a.X(null),this.contractDataAcquiringHardPOS$=new a.X(null),this.acquiringHardPOSConnectionStatus$=new a.X(T.c.NEW),this.currentFormStep$=new a.X(I._h.FIRST),this.tspFormSoftPos$=new a.X({}),this.tspFormHardPos$=new a.X({}),this.tariffAndOkvedSelect$=new a.X([]),this.terminalTypesSoftPOS$=new a.X([]),this.terminalTypesHardPOS$=new a.X([]),this.accounts$=new a.X([]),this.errorNumbers$=new a.X([]),this.pageSizeOptions=[5,10,20,100],this.IKRVendorsHardPos$=new a.X([]),this.pin3in1VendorsFullInstallationHardPos$=new a.X([]),this.pin3in1VendorsOutsourceInstallationHardPos$=new a.X([]),this.vendorsAndDevicesData$=(0,u.a)([this.IKRVendorsHardPos$.pipe((0,O.h)(oe=>!!oe)),this.pin3in1VendorsFullInstallationHardPos$.pipe((0,O.h)(oe=>!!oe)),this.pin3in1VendorsOutsourceInstallationHardPos$.pipe((0,O.h)(oe=>!!oe)),this.terminalTypesHardPOS$.pipe((0,O.h)(oe=>!!oe))]).pipe((0,L.U)(([oe,Pe,Ie,pt])=>!!(oe.length&&Pe.length&&Ie.length&&pt.length))),this.selectedTariffAndOkvedHardPOS$=new a.X(null),this.selectedTariffHardPOS$=new a.X(null),this.devicesHardPos$=new a.X([]),this.devicesHardPOSFormMarkAsTouched$=new h.x,this.isRent$=new a.X(!0),this.previousSelectedDevicesObtainingMethod$=new a.X(null),this.softPOSPath=I.UK,this.hardPOSPath=I.v_,this._acquiringSoftPosAgreementStatus=this.acquiringSoftPosApiService.getAgreementStatus(),this._acquiringHardPosApiService=this.acquiringHardPosApiService.getAgreementStatus()}get isSoftPOS(){return!this.router.url.includes(this.hardPOSPath)}get currentPath(){return this.isSoftPOS?this.softPOSPath:this.hardPOSPath}getAcquiringRulesPageLink(){return this.acquiringHardPosApiService.getAcquiringRulesPageLink()}getAcquiringAgreement(we){return(we?this._acquiringSoftPosAgreementStatus:this._acquiringHardPosApiService).pipe((0,w.K)(ct=>(this.toastCustomService.errorHandle(ct,"fullRed"),(0,l.of)(null))),(0,B.b)(ct=>{const pe=ct?.statusAgreement||this.CONNECTION_STATUS.NEW;this.isSoftPOS?this.acquiringSoftPOSConnectionStatus$.next(pe):this.acquiringHardPOSConnectionStatus$.next(pe),ct?.docId&&(pe===this.CONNECTION_STATUS.PART_SIGN&&(this.isSoftPOS?this.partialSigningAcquiringSoftPOSAgreementId$.next(ct.docId):this.partialSigningAcquiringHardPOSAgreementId$.next(ct.docId)),pe===this.CONNECTION_STATUS.SUCCESS&&(this.isSoftPOS?this.contractDataAcquiringSoftPOS$.next({id:ct.docId,docType:y.o.AcquiringAgreementSoftPOS}):this.contractDataAcquiringHardPOS$.next({id:ct.docId,docType:y.o.AcquiringAgreementHardPOS})))}))}getAgreementStatus(we){return we?this.acquiringSoftPOSConnectionStatus$:this.acquiringHardPOSConnectionStatus$}getPartiallySignedAgreementId(){return this.isSoftPOS?this.partialSigningAcquiringSoftPOSAgreementId$:this.partialSigningAcquiringHardPOSAgreementId$}getAcquiringContractData(){return this.isSoftPOS?this.contractDataAcquiringSoftPOS$:this.contractDataAcquiringHardPOS$}createAcquiringAgreement(){return(this.isSoftPOS?this.acquiringSoftPosApiService.postAgreement():this.acquiringHardPosApiService.postAgreement()).pipe((0,B.b)(Ge=>{this.isSoftPOS?this.partialSigningAcquiringSoftPOSAgreementId$.next(Ge.id):this.partialSigningAcquiringHardPOSAgreementId$.next(Ge.id)}))}getTSPConnectApplicationSettings(){return this.isSoftPOS?this.acquiringSoftPosApiService.getTCPTransitForm():this.acquiringHardPosApiService.getTCPTransitForm()}getAcquiringLastDocumentsPaginated(we){return this.isSoftPOS?this.acquiringSoftPosApiService.postLastDocumentsAcquiring(we):this.acquiringHardPosApiService.postLastDocumentsAcquiring(we)}createTSPConnectApplication(we){return this.isSoftPOS?this.acquiringSoftPosApiService.postTspForm(we):this.acquiringHardPosApiService.postTspForm(we)}deleteTSPConnectApplication(we){return this.isSoftPOS?this.acquiringSoftPosApiService.postTspDelete(we):this.acquiringHardPosApiService.postTspDelete(we)}createTSPDeviceSoftPos(we,Ge,ct=""){return this.acquiringSoftPosApiService.postDeviceAdd(we,Ge,ct)}saveTSPConnectApplicationHardPOS(we,Ge=!1){const ct={...this.tspForm$.getValue(),draft:Ge};return ct.devices&&delete ct.devices,ct.tspUpdateAddDocuments&&delete ct.tspUpdateAddDocuments,this.step===I._h.THIRD&&(ct.isRent=this.isRent$.value),this.createTSPConnectApplication({...ct,step:we}).pipe((0,m.w)(pe=>pe?this.documentService.getDocumentById("ibankul",y.o.TspRegistrHardPOS,pe.id):(0,l.of)(null)),(0,w.K)(pe=>(this.toastCustomService.errorHandle(pe,"fullRed"),(0,l.of)(null))))}createTSPDeviceHardPos(we,Ge,ct=""){return this.acquiringHardPosApiService.postDeviceAdd(we,Ge,ct)}saveHardPosDevices(){const we=this.getTspUpdateAddRelatedDocument()?.[0]?.id||"",Ge=this.tspForm$.getValue()?.id||"";return this.createTSPDeviceHardPos(Ge,this.getHardPosDevices()||[],we).pipe((0,w.K)(ct=>(Array.isArray(ct.error)||this.toastCustomService.errorHandle(ct,"fullRed"),(0,l.of)(null))))}getTSPDevicesObtainingMethod(){return this.acquiringHardPosApiService.getTSPDevicesObtainingMethod()}checkIfSameObtainingMethod(){const we=this.previousSelectedDevicesObtainingMethod$.value,Ge=!(0,n.isNil)(we?.isRent),ct=this.isRent$.value,pe=Ge?"true"===we?.isRent?.toString():null;return ct&&pe||!ct&&!pe}showObtainingMethodError(){const Ge=this.translation.translate(this.isRent$.value?"Provided by the bank":"Buy");this.toastCustomService.errorHandle(`\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0422\u0438\u043f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f (${Ge}) \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0440\u0430\u043d\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u044f\u0432\u043a\u0435. \u0414\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0442\u0438\u043f \u0438\u043b\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a`,"fullRed")}getHardPosDevices(){return this.devicesHardPos$.getValue().map(we=>({deviceCount:we.deviceCount,costTerminal:we.costTerminal,vendor:we.vendor,soft:we.soft,vendorId:we.vendorId,costFn:we.costFn,deviceType:we.code,terminalName:we.terminalName,modelName:we.modelName}))}getTspUpdateAddRelatedDocument(){return this.configUtilService.getArray(this.tspForm$.getValue().tspUpdateAddDocuments)}deleteTSPDevice(we,Ge){return this.isSoftPOS?this.acquiringSoftPosApiService.postDeviceDelete(we,Ge):this.acquiringHardPosApiService.postDeviceDelete(we,Ge)}getAcquiringTariffAndOkved(){return this.acquiringSoftPosApiService.getAcquiringTariffAndOkved()}getAcquiringTariffAndOkvedHardPOS(){return this.acquiringHardPosApiService.getAcquiringTariffAndOkved()}initHardPOSDeviceRegistrationInfo(){return(0,x.D)([this.acquiringHardPosApiService.getIKRVendorsHardPos().pipe((0,w.K)(we=>(this.toastCustomService.errorHandle(we,"fullRed"),(0,l.of)([])))),this.acquiringHardPosApiService.get3in1VendorsFullInstallationHardPos().pipe((0,w.K)(we=>(this.toastCustomService.errorHandle(we,"fullRed"),(0,l.of)([])))),this.acquiringHardPosApiService.get3in1VendorsOutsourceInstallationHardPos().pipe((0,w.K)(we=>(this.toastCustomService.errorHandle(we,"fullRed"),(0,l.of)([]))))])}getTspEquipmentTypesSoftPOS(){return this.acquiringSoftPosApiService.getTspEquipmentTypes()}getTspEquipmentTypesHardPOS(){return this.acquiringHardPosApiService.getTspEquipmentTypes()}get step(){return this.currentFormStep$.getValue()}set step(we){this.currentFormStep$.next(we)}get commissionHardPOS$(){return(0,u.a)([this.isRent$.pipe((0,O.h)(we=>!(0,n.isNil)(we))),this.selectedTariffHardPOS$.pipe((0,O.h)(we=>!!we))]).pipe((0,L.U)(([we,Ge])=>"true"===we?.toString()?Ge.tariffRent:Ge.tariff),(0,_.d)(1))}get tspName(){return this.tspForm$?.getValue().tspName||""}get tspForm$(){return this.isSoftPOS?this.tspFormSoftPos$:this.tspFormHardPos$}returnToTSPApplicationsListPage(){this.router.navigate([`/${this.currentPath}/list`],{queryParams:{section:I.UH.APPLICATION,tab:I.j8.ALL}})}getTSPStatusText(we,Ge){if(we.statusCaption&&Ge===$.u.STATUS_CAPTION)return["in_work","for_send_to_gate","changes_in_process","send_to_gate","for_send","send"].includes(we.status)?j.lG.IN_PROCESSING:"\u043d\u043e\u0432\u044b\u0439"===we.statusCaption.toLowerCase()?`${we.signStatusCaption.toLowerCase()}`:"end"===we.status?j.lG.ENDED:"ready_for_setup"===we.status&&!this.isSoftPOS||"\u0440\u0430\u0431\u043e\u0442\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u044b"===we.statusCaption.toLowerCase()&&!this.isSoftPOS?j.lG.IN_EXEQUTION:we.statusCaption;if(we.status&&Ge===$.u.STATUS){const ct=C.gH.get(we.status)||we.status;return"new"===ct||"\u041d\u043e\u0432\u044b\u0439"===ct?`${we.signStatusCaption.toLowerCase()}`:ct}return""}getActiveStatusStyle(we){switch(we){case I.XS.ACTIVE:return"background: var(--background-dark-green, #00916e)";case I.XS.DELETED:return"background: red;";case I.XS.NOT_ACTIVE:return"background: var(--background-yellow, #f1c84a)";default:return""}}cleanForm(){this.tspFormSoftPos$.next({})}getTitle(we){switch(we){case y.o.TspUpdateDeleteSoftPOS:case y.o.TspUpdateDeleteHardPOS:return"Equipment removal request";case y.o.TspRegistrSoftPOS:case y.o.TspRegistrHardPOS:return"Application for connection of TCP";case y.o.TspDeleteSoftPOS:case y.o.TspDeleteHardPOS:return"Application for deletion of TCP";case y.o.TspUpdateAddSoftPOS:case y.o.TspUpdateAddHardPOS:return"Application for adding equipment";default:return we}}getRusStatusText(we){return C.gH.get(we)||we}parseHardPOSDevices(we){const Ge=this.configUtilService.getArray(we),ct=[],pe=(0,n.groupBy)(Ge,Ce=>Ce.deviceType);for(const Ce in pe){const U=pe[Ce][0];ct.push({code:U.deviceType,vendorId:U.vendorId,vendor:U.vendor,costTerminal:this.parseNumber(U.costTerminal)||0,costFn:this.parseNumber(U.costFn)||0,soft:U.soft,deviceCount:pe[Ce].length,status:U.status||null,terminalName:U.terminalName,modelName:U.modelName})}return ct}parseDoc(we){return we.map(Ge=>{switch(Ge.docType){case y.o.TspDeleteSoftPOS:case y.o.TspDeleteHardPOS:case y.o.TspUpdateDeleteSoftPOS:case y.o.TspUpdateDeleteHardPOS:case y.o.TspUpdateAddSoftPOS:case y.o.TspUpdateAddHardPOS:return{dots:{...this.getButtonActionsDots(Ge)},...Ge,devices:this.configUtilService.getArray(Ge.devices),declineInfo:"decline"===Ge.status?Ge.declineInfo:null,title:this.translationService.translate(this.getTitle(Ge.docType)),info:d()(Ge?.docDate,"YYYY-MM-DD").format("DD.MM.YYYY"),description:[Ge?.tsp?.tspName,Ge?.tsp?.actualAddress].filter(pe=>!!pe).join(", "),status:this.getTSPStatusText(Ge,$.u.STATUS),statusInitial:Ge.status,statusCaption:this.getTSPStatusText(Ge,$.u.STATUS_CAPTION),icon:"decline"===Ge?.status?"close":"file-new",isOpen:"decline"===Ge?.status&&Ge?.declineInfo};case y.o.TspRegistrSoftPOS:case y.o.TspRegistrHardPOS:return{dots:{buttonActions:this.configUtilService.makeButtonActions({actions:Ge?.actions,...Ge})},...Ge,devices:this.configUtilService.getArray(Ge.devices),title:this.translationService.translate(this.getTitle(Ge.docType)),info:d()(Ge.docDate,"YYYY-MM-DD").format("DD.MM.YYYY"),description:[Ge.tspName,Ge.actualAddress].filter(pe=>!!pe).join(", "),status:this.getTSPStatusText(Ge,$.u.STATUS),statusCaption:this.getTSPStatusText(Ge,$.u.STATUS_CAPTION),icon:"decline"===Ge?.status?"close":"file-new",isOpen:"decline"===Ge?.status&&Ge?.declineInfo}}})}getButtonActionsDots(we){return we?.docType===y.o.TspUpdateAddHardPOS?{buttonActions:this.configUtilService.makeButtonActions({actions:we?.actions,...we},we.tsp?.draft?["update","print","sign_on_client"]:["update","print"],Ge=>({tspId:we?.tspId,docType:we.docType}))}:{buttonActions:this.configUtilService.makeButtonActions({actions:we?.actions,...we})}}getApplicationFilterValues(){const we=this.isSoftPOS?y.o.TspRegistrSoftPOS:y.o.TspRegistrHardPOS,Ge=this.isSoftPOS?y.o.TspUpdateAddSoftPOS:y.o.TspUpdateAddHardPOS,ct=this.isSoftPOS?y.o.TspUpdateDeleteSoftPOS:y.o.TspUpdateDeleteHardPOS,oe=[{name:"\u0412\u0441\u0435 \u0442\u0438\u043f\u044b \u0437\u0430\u044f\u0432\u043e\u043a",value:I.Kf.ALL,docs:[{docModule:"ibankul",docType:ct},{docModule:"ibankul",docType:we},{docModule:"ibankul",docType:Ge}]},{name:this.isSoftPOS?"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0422\u0421\u041f":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0422\u0421\u041f",value:I.Kf.TSP_REGISTRATION,docs:[{docModule:"ibankul",docType:we}]},{name:"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f",value:I.Kf.ADD_EQUIPMENT,docs:[{docModule:"ibankul",docType:Ge}]}];return this.isSoftPOS&&oe.push({name:"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0422\u0421\u041f",value:I.Kf.TSP_DELETE,docs:[{docModule:"ibankul",docType:this.isSoftPOS?y.o.TspDeleteSoftPOS:y.o.TspDeleteHardPOS}]},{name:"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f",value:I.Kf.DELETE_EQUIPMENT,docs:[{docModule:"ibankul",docType:ct}]}),oe}clearTCPApplicationHardPOS(){this.devicesHardPos$.next([]),this.tspForm$.next({})}parseNumber(we){if(null===we)return null;const Ge=parseInt(we,10);return isNaN(Ge)?0:Ge}static#e=this.\u0275fac=function(Ge){return new(Ge||ce)(F.\u0275\u0275inject(z.Pj),F.\u0275\u0275inject(X.D7),F.\u0275\u0275inject(p.E),F.\u0275\u0275inject(P.j),F.\u0275\u0275inject(E.j),F.\u0275\u0275inject(R.F0),F.\u0275\u0275inject(ne.Z),F.\u0275\u0275inject(X.D7))};static#t=this.\u0275prov=F.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})()},70234:(Ee,Q,t)=>{"use strict";t.d(Q,{J:()=>a,U:()=>d});var n=t(37340);const i={margin:"0px 0px 0px 0px",height:"0px",opacity:0,visibility:"hidden",overflow:"hidden"},d=(0,n.X$)("accordion",[(0,n.SB)("show",(0,n.oB)({margin:"*",height:"*",opacity:1,visibility:"visible"})),(0,n.SB)("hide",(0,n.oB)({margin:"0px 0px 0px 0px",height:"0px",opacity:0,visibility:"hidden",overflow:"hidden"})),(0,n.eR)("show <=> hide",[(0,n.jt)("0.2s ease-in-out")])]),a=(0,n.X$)("slideInOut",[(0,n.eR)("* => *",[(0,n.IO)(":enter",[(0,n.oB)(i),(0,n.EY)("0.2s",(0,n.jt)("0.2s",(0,n.oB)({margin:"*",height:"*",opacity:1,visibility:"visible"})))],{optional:!0}),(0,n.IO)(":leave",[(0,n.EY)("0.2s",(0,n.jt)("0.2s",(0,n.oB)(i)))],{optional:!0})])])},6036:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>e});var n=t(37340);const e=(0,n.X$)("emersionConditioned",[(0,n.SB)("show",(0,n.oB)({opacity:1})),(0,n.SB)("hide",(0,n.oB)({opacity:0})),(0,n.eR)("show <=> hide",[(0,n.jt)("0.15s ease-in-out")])])},89455:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>u});var n=t(97582),e=t(16611),i=t(94650),d=t(36895);function a(h,l){if(1&h){const m=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",8),i.\u0275\u0275listener("click",function(){const L=i.\u0275\u0275restoreView(m).$implicit,w=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(w.chosenNew=L)}),i.\u0275\u0275elementStart(1,"div",9),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"date"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",10),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd()()}if(2&h){const m=l.$implicit,x=l.index,O=i.\u0275\u0275nextContext();i.\u0275\u0275classProp("news-modal__card_active",m===O.chosenNew),i.\u0275\u0275attribute("data-qa","1657809272092"+x),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind4(3,5,m.published,"dd MMMM yyyy",null,O.lang)," "),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",m.title," ")}}class u{constructor(){this.dummyElem=document.createElement("DIV")}ngOnInit(){}decode(l){let m;return this.dummyElem.innerHTML=l||"",document.body.appendChild(this.dummyElem),m=this.dummyElem.textContent,document.body.removeChild(this.dummyElem),m}static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:u,selectors:[["app-news-modal"]],inputs:{news:"news",chosenNew:"chosenNew"},decls:12,vars:13,consts:[["data-qa","1657809235922",1,"news-modal"],[1,"news-modal__content"],[1,"news-modal__title"],[1,"news-modal__date"],[1,"news-modal__text",3,"innerHTML"],["data-qa","1657809243473",1,"news-modal__aside"],["data-qa","1657809246488",1,"news-modal__list"],["class","news-modal__card",3,"news-modal__card_active","click",4,"ngFor","ngForOf"],[1,"news-modal__card",3,"click"],[1,"news-modal__card-date"],[1,"news-modal__card-desc"]],template:function(m,x){1&m&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275text(5),i.\u0275\u0275pipe(6,"date"),i.\u0275\u0275pipe(7,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(8,"div",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(9,"aside",5)(10,"ul",6),i.\u0275\u0275template(11,a,6,10,"li",7),i.\u0275\u0275elementEnd()()()),2&m&&(i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",x.chosenNew.title," "),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate2("",i.\u0275\u0275pipeBind4(6,5,x.chosenNew.published,"dd MMMM yyyy",null,x.lang)," ",i.\u0275\u0275pipeBind2(7,10,"y.",x.lang),""),i.\u0275\u0275advance(3),i.\u0275\u0275property("innerHTML",x.decode(x.chosenNew.content["#text"]),i.\u0275\u0275sanitizeHtml),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",x.news))},dependencies:[d.sg,e.X$,d.uU],styles:['@charset "UTF-8";[_nghost-%COMP%]     ul{list-style-type:disc;padding:0 1em}[_nghost-%COMP%]     ul li{display:list-item;padding:.1em 0}[_nghost-%COMP%]     ul img{max-width:100%;padding:1em 0}.news-modal[_ngcontent-%COMP%]{margin-top:30px;display:flex;height:721px;position:relative}.news-modal__content[_ngcontent-%COMP%]{width:100%;overflow-y:auto}.news-modal__title[_ngcontent-%COMP%]{font-weight:600;font-size:33px;color:#444;margin-bottom:20px}.news-modal__date[_ngcontent-%COMP%]{font-size:20px;color:#88909b;margin-bottom:12px}.news-modal__text[_ngcontent-%COMP%]{font-size:20px}.news-modal__aside[_ngcontent-%COMP%]{min-width:311px;width:311px;margin-left:30px;overflow-y:auto}.news-modal__card[_ngcontent-%COMP%]{background-color:#f1f2f2;color:#444;padding:24px;display:flex;flex-direction:column;justify-content:center;cursor:pointer;overflow:hidden}.news-modal__card_active[_ngcontent-%COMP%]{position:relative;box-shadow:3px 5px 25px #00000026;font-weight:600}.news-modal__card-date[_ngcontent-%COMP%]{font-size:16px;margin-bottom:6px}.news-modal__card-desc[_ngcontent-%COMP%]{font-size:18px}']})}(0,n.gn)([(0,e.SQ)()],u.prototype,"lang",void 0)},3794:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>h});var n=t(77579),e=t(54004),i=t(94650),d=t(3751),a=t(15644),u=t(80529);let h=(()=>{class l{constructor(x,O,L){this.apiService=x,this.configUtilService=O,this.http=L,this.openSubject=new n.x}getNews(){return this.http.get("assets/static/news.xml",{responseType:"text"}).pipe((0,e.U)(x=>this.configUtilService.parseXMLresponse(x)))}static#e=this.\u0275fac=function(O){return new(O||l)(i.\u0275\u0275inject(d.s),i.\u0275\u0275inject(a.Pj),i.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac})}return l})()},21798:(Ee,Q,t)=>{"use strict";t.d(Q,{J:()=>x});var n=t(61135),e=t(95698),i=t(70262),d=t(39646),a=t(54004),u=t(94650),h=t(3751),l=t(9149),m=t(15644);let x=(()=>{class O{constructor(w,B,_){this.apiService=w,this.toastCustomService=B,this.configUtilService=_,this.AVERAGE_REST_URL="average_rests",this._averageBalancesData=new n.X(null),this.averageBalancesData$=this._averageBalancesData.asObservable()}initAverageBalances(){return this._averageBalancesData.next(null),this.apiService.get(`${this.AVERAGE_REST_URL}/getData`).pipe((0,e.q)(1),(0,i.K)(w=>(this.toastCustomService.errorHandle(w),(0,d.of)({ecom:{data:[],available:!1},firstBlock:{data:[],available:!1},secondBlock:{data:[],available:!1},thirdBlock:{data:[],available:!1},atLeastOneBlockAvailable:!1}))),(0,a.U)(w=>({ecom:{data:this.addCurrencyValueToItem(this.configUtilService.getArray(w?.ecom?.data)),available:w?.ecom?.available},firstBlock:{data:this.addCurrencyValueToItem(this.configUtilService.getArray(w.firstBlock.data)),available:w?.firstBlock.available},secondBlock:{data:this.addCurrencyValueToItem(this.configUtilService.getArray(w.secondBlock.data)),available:w?.secondBlock.available},thirdBlock:{data:this.addCurrencyValueToItem(this.configUtilService.getArray(w.thirdBlock.data)),available:w?.thirdBlock.available},atLeastOneBlockAvailable:w?.firstBlock?.available||w?.secondBlock?.available||w?.thirdBlock?.available}))).subscribe(w=>this._averageBalancesData.next(w))}addCurrencyValueToItem(w){return w.map(B=>({...B,currencyCode:"RUR"}))}static#e=this.\u0275fac=function(B){return new(B||O)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.j),u.\u0275\u0275inject(m.Pj))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},34122:(Ee,Q,t)=>{"use strict";t.d(Q,{J9:()=>h,X_:()=>a,ay:()=>u,z3:()=>d,zX:()=>i});var n=t(53065);const i="\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0430.",d=(l=2)=>(0,n.createNumberMask)({prefix:"",allowDecimal:!0,thousandsSeparatorSymbol:" ",decimalLimit:l}),a="IS_TRANSFER_RESTS_AVAILABLE_FOR_CREATION",u="PAY/TRANSFER_RESTS",h="SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"},34385:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>L});var n=t(4128),e=t(39646),i=t(54004),d=t(70262),a=t(6146),u=t(34122),h=t(94650),l=t(3751),m=t(15644),x=t(40929),O=t(39486);let L=(()=>{class w{constructor(_,y,$,C){this.apiService=_,this.configUtilService=y,this.documentService=$,this.productsService=C}getInitialData(_,y){return(0,n.D)([this.getBalanceTransferPrefillData(),this.getUrgentTypes(),this.getNdsTypes(),this.getSendTypes(),this.getDocumentAccoutsAndSettings(),this.productsService.getProducts(),this.getTariffsByDocType({docType:a.o.TransferRests,docModule:"ibankul"}),_&&y?this.getDocumentByIdAndDocType(_,y):(0,e.of)(null)])}static isTransferRestsAvailableForCreation(_){return 1===_[u.ay]&&1===_[u.J9]}createBalanceTransfer(_){return this.apiService.post("document_transfer_rests/create",_)}getBalanceTransferPrefillData(_={}){return this.apiService.post("document_transfer_rests/create/prefill",_)}convertProducts(_){return Object.keys(_).reduce((y,$)=>y.concat(this.configUtilService.getArray(_[$])),[])}getDocumentAccoutsAndSettings(){return this.apiService.post("document_transfer_rests/create",{}).pipe((0,i.U)(_=>({accIdProducts:this.convertProducts(_.accIdProducts?_.accIdProducts:{}),corrAccIdProducts:this.convertProducts(_.corrAccIdProducts?_.corrAccIdProducts:{}),selfAccIdProducts:this.convertProducts(_.selfAccIdProducts?_.selfAccIdProducts:{}),docSettings:_.docSettings})))}getNdsTypes(){return this.apiService.publicGet("ru_rko_nds_type")}getUrgentTypes(){return this.apiService.publicGet("ru_rko_urgent_type")}getSendTypes(){return this.apiService.publicGet("ru_rko_send_type")}getDocumentByIdAndDocType(_,y){return this.documentService.getDocumentEdit(_,y).pipe((0,d.K)($=>(0,e.of)($)))}getTariffsByDocType(_){return this.apiService.get("dic/tariffs_client_ul_metinv/byParams",_)}static#e=this.\u0275fac=function(y){return new(y||w)(h.\u0275\u0275inject(l.s),h.\u0275\u0275inject(m.Pj),h.\u0275\u0275inject(x.Z),h.\u0275\u0275inject(O.su))};static#t=this.\u0275prov=h.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac})}return w})()},82007:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>i});var n=t(77579),e=t(94650);let i=(()=>{class d{constructor(){this.$unsubscribe=new n.x,this.loadingFlag=!1}enableLoader(u){this.loadingFlag=u}ngOnDestroy(){this.$unsubscribe.next(null),this.$unsubscribe.complete()}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac})}return d})()},20961:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>x});var n=t(15439),e=t.n(n),i=t(54004),d=t(39646),a=t(86349),u=t(94650),h=t(37601),l=t(15644),m=t(94716);let x=(()=>{class O{constructor(w,B,_){this.userDataService=w,this.configUtilService=B,this.dadataService=_}corrFullNameItems(w){let B=[];w.dadataList.length&&(B=w.dadataList.map(y=>({name:y.data?.name?.short_with_opf||y.data?.name?.full_with_opf,inn:y.data.inn,kpp:y.data.kpp||"",address:y.data.address,formFieldName:"corrFullname"})));const _=w.corrList.map(y=>({name:y.fullname,inn:y.inn,kpp:y.kpp||"",formFieldName:"corrFullname"}));return[...B,..._]}corrFullNameItemsRequest(w,B){switch(w){case 0:return this.dadataService.getCompanySuggestions(B,!0,"'UL', 'IP'","in").pipe((0,i.U)(_=>({dadataList:_.suggestions,corrList:_.pagingDataResult.list})));case 1:return this.userDataService.getCorrlistByType(B,"'FL'","=").pipe((0,i.U)(_=>({dadataList:[],corrList:_.list})));default:return(0,d.of)({dadataList:[],corrList:[]})}}amountBilledPrefillValue(w){const B=this.configUtilService.getArray(w.products).filter($=>0!==Number($.ndsRate)&&!!$.ndsRate),_=a.jj(B,$=>$.ndsRate),y=[];return _.length&&_.forEach($=>{const C=B.filter(T=>T.ndsRate===$.ndsRate).map(T=>T.ndsAmount||0);y.push({ndsPercentValue:Number($.ndsRate),value:C.reduce(function(T,j){return Number(T)+Number(j)})})}),y}requestAmountBilledPrefillBody(w){return w.map(B=>(B.unit?delete B.unitName:delete B.unit,Object.keys(B).forEach(y=>{a.o8(B[y])&&(B[y]=null),a.HD(B[y])&&0===B[y].length&&(B[y]=null)}),B))}prepareRequestBody(w,B){const _=w.value;delete _["corr-accordion"],delete _.separator,_.signatories.forEach(($,C)=>$.number=String(C+1));const y=B.value;return y.products.forEach($=>{$.price=$.price?$.price.replace(/ /g,""):void 0,$.quantity=$.quantity?$.quantity.replace(/ /g,""):void 0}),delete y["corr-accordion"],delete y.separator,y.docDate&&(y.docDate=y.docDate.indexOf(".")>-1?y.docDate.split(".").reverse().join("-"):e()(y.docDate).format("YYYY-MM-DD")),y.payDate&&y.payDate.indexOf(".")>-1&&(y.payDate=y.payDate.split(".").reverse().join("-")),{...y,..._}}static#e=this.\u0275fac=function(B){return new(B||O)(u.\u0275\u0275inject(h.M),u.\u0275\u0275inject(l.Pj),u.\u0275\u0275inject(m.y))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},42221:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>Ht});var n=t(44180),e=t(97582),i=t(16611),d=t(15439),a=t.n(d),u=t(77579),h=t(39300),l=t(82722),m=t(78372),x=t(29148);const O=[{capture:"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u0435",value:"all"},{capture:"\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u0438",value:"commission"},{capture:"\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0430\u043a\u0446\u0435\u043f\u0442",value:"acceptance"}],L=O[0],w={size:20,number:0,total:0},B=[10,20,100],_=[{label:"\u0412\u0441\u0435",chosen:!0,value:"",all:!0},{label:"1",chosen:!0,value:"1",all:!1},{label:"2",chosen:!0,value:"2",all:!1},{label:"3",chosen:!0,value:"3",all:!1},{label:"4",chosen:!0,value:"4",all:!1},{label:"5",chosen:!0,value:"5",all:!1}],y=[{label:"\u0412\u0441\u0435 \u0442\u0438\u043f\u044b \u043a\u0430\u0442\u0440\u043e\u0442\u0435\u043a\u0438",chosen:!0,value:"",all:!0},{label:"\u041e\u0436\u0438\u0434\u0430\u044e\u0449\u0438\u0435 \u0430\u043a\u0446\u0435\u043f\u0442\u0430",chosen:!0,value:"1S",all:!1},{label:"\u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0440\u043e\u043a",chosen:!0,value:"2",all:!1},{label:"\u041e\u0436\u0438\u0434\u0430\u044e\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439",chosen:!0,value:"2A",all:!1}],$=[{label:"\u0412\u0441\u0435 \u0442\u0438\u043f\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432",chosen:!0,value:"",all:!0},{label:"\u041f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0435 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u0435",chosen:!0,value:"01",all:!1},{label:"\u041f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435",chosen:!0,value:"02",all:!1},{label:"\u0418\u043d\u043a\u0430\u0441\u0441\u043e\u0432\u043e\u0435 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u0435",chosen:!0,value:"06",all:!1},{label:"\u0411\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u043e\u0440\u0434\u0435\u0440",chosen:!0,value:"17",all:!1},{label:"\u041c\u0435\u043c\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0440\u0434\u0435\u0440",chosen:!0,value:"09",all:!1}];var C=t(94650),T=t(502),j=t(92008),I=t(38101),F=t(36895),z=t(95395),X=t(23439),p=t(65218),P=t(15557),E=t(73040),R=t(15725),ne=t(30815),G=t(90995),ce=t(97392),xe=t(10266);function we(Wt,Xe){if(1&Wt&&C.\u0275\u0275element(0,"app-tab",7),2&Wt){const Qe=Xe.$implicit;C.\u0275\u0275property("label",Qe.capture)("number",Qe.number)}}const Ge=function(Wt){return{open:Wt}},ct=function(Wt){return{disabled:Wt}};function pe(Wt,Xe){if(1&Wt){const Qe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div")(1,"div",15)(2,"div",16)(3,"app-multi-select",17),C.\u0275\u0275listener("multiSelectChange",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(lt.onChangePriority(at))}),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(4,"div",16)(5,"app-multi-select",18),C.\u0275\u0275listener("multiSelectChange",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(lt.onChangeCardType(at))}),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(6,"div",16)(7,"app-multi-select",19),C.\u0275\u0275listener("multiSelectChange",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(lt.onChangeOpCode(at))}),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(8,"div",16)(9,"app-multi-select",20),C.\u0275\u0275listener("multiSelectChange",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(lt.onChangeAccounts(at))}),C.\u0275\u0275elementEnd()()(),C.\u0275\u0275elementStart(10,"div",21),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Qe);const at=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(at.onResetFilters())}),C.\u0275\u0275text(11,"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b"),C.\u0275\u0275elementEnd()()}if(2&Wt){const Qe=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass",C.\u0275\u0275pureFunction1(18,Ge,Qe.moreFiltersOpen)),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass","select-filter-performed-five")("matTooltip",Qe.getPrioritiesCheckboxTooltip)("matTooltipPosition","above"),C.\u0275\u0275advance(1),C.\u0275\u0275property("checkboxList",Qe.checkboxListOrder),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass","select-filter-performed-five")("matTooltip",Qe.getListTypesCheckboxTooltip)("matTooltipPosition","above"),C.\u0275\u0275advance(1),C.\u0275\u0275property("checkboxList",Qe.checkboxListTypes),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass","select-filter-performed-five")("matTooltip",Qe.getOpCodesCheckboxTooltip)("matTooltipPosition","above"),C.\u0275\u0275advance(1),C.\u0275\u0275property("checkboxList",Qe.checkboxListOpCodes),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass","select-filter-performed-five")("matTooltip",Qe.getProductsCheckboxTooltip)("matTooltipPosition","above"),C.\u0275\u0275advance(1),C.\u0275\u0275property("checkboxList",Qe.checkboxListProducts),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass",C.\u0275\u0275pureFunction1(20,ct,!Qe.isFiltersApplied))}}function Ce(Wt,Xe){if(1&Wt){const Qe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementContainerStart(0),C.\u0275\u0275elementStart(1,"div",8)(2,"div",9)(3,"app-input",10),C.\u0275\u0275listener("valueChange",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(lt.onSearchChange(at))}),C.\u0275\u0275pipe(4,"translate"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(5,"div",11),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Qe);const at=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(at.onMoreFiltersClick())}),C.\u0275\u0275elementStart(6,"div",12),C.\u0275\u0275text(7),C.\u0275\u0275pipe(8,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(9,"mat-icon",13),C.\u0275\u0275text(10,"filter_alt"),C.\u0275\u0275elementEnd()()(),C.\u0275\u0275template(11,pe,12,22,"div",6),C.\u0275\u0275elementStart(12,"app-alt-document-list",14),C.\u0275\u0275listener("changePaginationEmit",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(lt.getDocumentList(at))})("actionDone",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(lt.onActionDone(at))}),C.\u0275\u0275pipe(13,"async"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementContainerEnd()}if(2&Wt){const Qe=C.\u0275\u0275nextContext();C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass",C.\u0275\u0275pureFunction1(25,Ge,Qe.moreFiltersOpen)),C.\u0275\u0275advance(2),C.\u0275\u0275propertyInterpolate("placeholder",C.\u0275\u0275pipeBind2(4,17,"Search",Qe.lang)),C.\u0275\u0275property("matIcon",null!=Qe.filters&&Qe.filters.searchTerm?"close":"search")("value",null==Qe.filters?null:Qe.filters.searchTerm),C.\u0275\u0275advance(2),C.\u0275\u0275classProp("active",Qe.moreFiltersOpen||Qe.isFiltersApplied),C.\u0275\u0275property("matTooltip",Qe.getFiltersTooltip)("matTooltipPosition","above"),C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate(C.\u0275\u0275pipeBind2(8,20,"Filters",Qe.lang)),C.\u0275\u0275advance(4),C.\u0275\u0275property("ngIf",Qe.moreFiltersOpen),C.\u0275\u0275advance(1),C.\u0275\u0275property("listType","card-index-"+Qe.selectedTab)("customDocumentListItemIcon","quick_reference")("documentList",Qe.documentList)("currentPage",Qe.currentPage)("sizeList",Qe.sizeList)("isGroupDocuments",!0)("isLoading",C.\u0275\u0275pipeBind1(13,23,Qe.cardIndexService.isLoading$))}}const U=function(Wt){return{nodocs:Wt}};function H(Wt,Xe){if(1&Wt&&(C.\u0275\u0275elementStart(0,"div",23)(1,"span",24),C.\u0275\u0275text(2,"\u041e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432: "),C.\u0275\u0275elementStart(3,"span",25),C.\u0275\u0275text(4),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(5,"span",24),C.\u0275\u0275text(6,"\u043d\u0430 \u0441\u0443\u043c\u043c\u0443 "),C.\u0275\u0275elementStart(7,"span",25),C.\u0275\u0275text(8),C.\u0275\u0275elementEnd()()()),2&Wt){const Qe=C.\u0275\u0275nextContext(2);C.\u0275\u0275property("ngClass",C.\u0275\u0275pureFunction1(3,U,0===Qe.documentList.length)),C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate1("",Qe.totalComissionCount,","),C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate1("",Qe.totalComissionAmount," RUB")}}function Z(Wt,Xe){if(1&Wt){const Qe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementContainerStart(0),C.\u0275\u0275template(1,H,9,5,"div",22),C.\u0275\u0275pipe(2,"async"),C.\u0275\u0275elementStart(3,"app-alt-document-list",14),C.\u0275\u0275listener("changePaginationEmit",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(lt.getDocumentList(at))})("actionDone",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(lt.onActionDone(at))}),C.\u0275\u0275pipe(4,"async"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementContainerEnd()}if(2&Wt){const Qe=C.\u0275\u0275nextContext();C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",!1===C.\u0275\u0275pipeBind1(2,8,Qe.cardIndexService.isLoading$)),C.\u0275\u0275advance(2),C.\u0275\u0275property("listType","card-index-"+Qe.selectedTab)("customDocumentListItemIcon","quick_reference")("documentList",Qe.documentList)("currentPage",Qe.currentPage)("sizeList",Qe.sizeList)("isGroupDocuments",!0)("isLoading",C.\u0275\u0275pipeBind1(4,10,Qe.cardIndexService.isLoading$))}}function oe(Wt,Xe){1&Wt&&(C.\u0275\u0275elementStart(0,"div",27)(1,"div",28),C.\u0275\u0275text(2,"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0430\u043a\u0446\u0435\u043f\u0442"),C.\u0275\u0275elementEnd()()),2&Wt&&(C.\u0275\u0275advance(1),C.\u0275\u0275property("routerLink","/acceptance"))}function Pe(Wt,Xe){if(1&Wt){const Qe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementContainerStart(0),C.\u0275\u0275template(1,oe,3,1,"div",26),C.\u0275\u0275elementStart(2,"app-alt-document-list",14),C.\u0275\u0275listener("changePaginationEmit",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(lt.getDocumentList(at))})("actionDone",function(at){C.\u0275\u0275restoreView(Qe);const lt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(lt.onActionDone(at))}),C.\u0275\u0275pipe(3,"async"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementContainerEnd()}if(2&Wt){const Qe=C.\u0275\u0275nextContext();C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",Qe.isShowGoToAcceptance),C.\u0275\u0275advance(1),C.\u0275\u0275property("listType","card-index-"+Qe.selectedTab)("customDocumentListItemIcon","quick_reference")("documentList",Qe.documentList)("currentPage",Qe.currentPage)("sizeList",Qe.sizeList)("isGroupDocuments",!0)("isLoading",C.\u0275\u0275pipeBind1(3,8,Qe.cardIndexService.isLoading$))}}class Ie{constructor(Xe,Qe,Be,at,lt,Dt){this.router=Xe,this.cardIndexService=Qe,this.activatedRoute=Be,this.appConfigService=at,this.modalService=lt,this.translationService=Dt,this.pathData=[{capture:"Card file",bold:!0}],this.tabs=O,this.selectedTab=L.value,this.currentPage=w,this.sizeList=B,this.operationsFilterDebounceTime=700,this.isLoading$=this.cardIndexService.isLoading$,this.documentList=[],this.accListSave=[],this.accList=[],this.accListEdit=[],this.isPowerOfAttorneyListLoading$=this.cardIndexService.isLoading$,this.isLoading=!1,this.destroy$=new u.x,this._accountsList=[],this._debouncedFilterChange$=new u.x,this.checkboxListProducts=[],this.checkboxListOrder=[],this.checkboxListTypes=[],this.checkboxListOpCodes=[],this.isShowGoToAcceptance=!1,this.totalComissionCount=0,this.totalComissionAmount=0,this.isFiltersApplied=!1}get getFiltersTooltip(){return this.isFiltersApplied?this.translationService.translate("Filters applied"):""}get getPrioritiesCheckboxTooltip(){return this.getTooltip(this.checkboxListOrder)}get getOpCodesCheckboxTooltip(){return this.getTooltip(this.checkboxListOpCodes)}get getListTypesCheckboxTooltip(){return this.getTooltip(this.checkboxListTypes)}get getProductsCheckboxTooltip(){return this.getTooltip(this.checkboxListProducts)}ngOnInit(){this.filtersInit(),this.appConfigService.settings$.pipe((0,h.h)(Xe=>Xe.isLoaded),(0,l.R)(this.destroy$)).subscribe(Xe=>{this.isAccessEdit=!!Xe.ulSettings["REQUEST/SMS_NOTIF_AGREEMENT"],this.isShowGoToAcceptance=!!Xe.ulSettings["SERVICE_SECTIONS/ACCEPT_APPLICATIONS"]}),this.initPagination(),this.cardIndexService.cardIndexCounters$.subscribe(Xe=>{if(null===Xe)return;this._accountsList=Xe.accList,this.totalComissionCount=Xe.commission,this.totalComissionAmount=Xe.commissionAmount;const Qe=new Map;this.checkboxListProducts.length>0&&this.checkboxListProducts.filter(at=>!at.chosen).forEach(at=>Qe.set(at.label,!1)),this.checkboxListProducts=[{label:"\u0412\u0441\u0435 \u0441\u0447\u0435\u0442\u0430",chosen:!Qe.has("\u0412\u0441\u0435 \u0441\u0447\u0435\u0442\u0430"),value:"",all:!0}],Xe.accList.forEach(at=>{this.checkboxListProducts.push({label:at.accName,chosen:!Qe.has(at.accName),value:at.accNumber,all:!1})});const Be={all:"unread",commission:"commissionUnread",acceptance:"onAccept"};this.tabs.forEach(at=>at.number=+Xe[Be[at.value]])}),this.cardIndexService.acceptanceDocsList$.pipe((0,l.R)(this.destroy$)).subscribe(Xe=>{null!==Xe&&(this.documentList=this.groupByDocDate(Xe.docs),this.currentPage={number:Xe.page.number-1,size:+Xe.page.size,total:+Xe.page.total})}),this._debouncedFilterChange$.pipe((0,l.R)(this.destroy$),(0,m.b)(this.operationsFilterDebounceTime)).subscribe(()=>{this.cardIndexService.loadDocuments(this.currentPage,this.filters)})}getTooltip(Xe){return Xe.filter(Qe=>!Qe.all).filter(Qe=>Qe.chosen).map(Qe=>Qe.label).join(", ")}filtersInit(){this.checkboxListOrder=_,this.checkboxListTypes=y,this.checkboxListOpCodes=$,this.filters={cardTypes:[],priorities:[],searchTerm:"",opCodes:[],tabName:"acceptance",accountList:[],invalid:!1}}onChangePriority(Xe){this.setFilterValue(Xe,"priorities")}onChangeCardType(Xe){this.setFilterValue(Xe,"cardTypes")}onChangeOpCode(Xe){this.setFilterValue(Xe,"opCodes")}onChangeAccounts(Xe){this.setFilterValue(Xe,"accountList")}onResetFilters(){this.currentPage.number=0,this.checkboxListOpCodes.forEach(Xe=>Xe.chosen=!0),this.checkboxListOrder.forEach(Xe=>Xe.chosen=!0),this.checkboxListTypes.forEach(Xe=>Xe.chosen=!0),this.checkboxListProducts.forEach(Xe=>Xe.chosen=!0),this.filters.cardTypes=[],this.filters.opCodes=[],this.filters.priorities=[],this.filters.accountList=[],this.filters.searchTerm="",this.filters.invalid=!1,this.checkFiltersAreApplied(),this.cardIndexService.loadDocuments(this.currentPage,this.filters)}setFilterValue(Xe,Qe){this.filters[Qe]=this.getFilterValue(Xe),this.filters.invalid=this.validateFilterValues(),this.checkFiltersAreApplied(),this.currentPage.number=0,this.cardIndexService.loadDocuments(this.currentPage,this.filters)}getFilterValue(Xe){return Xe.some(Qe=>Qe.all&&Qe.chosen)?[]:Xe.filter(Qe=>!Qe.all).filter(Qe=>Qe.chosen).map(Qe=>Qe.value)}checkFiltersAreApplied(){this.isFiltersApplied=null!==this.filters.searchTerm&&""!==this.filters.searchTerm||this.checkboxListOpCodes.some(Xe=>!Xe.chosen)||this.checkboxListOrder.some(Xe=>!Xe.chosen)||this.checkboxListProducts.some(Xe=>!Xe.chosen)||this.checkboxListTypes.some(Xe=>!Xe.chosen)}validateFilterValues(){return!(this.checkboxListOrder.some(Qe=>Qe.chosen)&&this.checkboxListOpCodes.some(Qe=>Qe.chosen)&&this.checkboxListProducts.some(Qe=>Qe.chosen)&&this.checkboxListTypes.some(Qe=>Qe.chosen))}groupByDocDate(Xe){if(null===Xe)return[];const Qe=Xe.reduce(function(at,lt){return(at[lt.docDate]=at[lt.docDate]||[]).push(lt),at},{}),Be=[];for(const[at,lt]of Object.entries(Qe))lt.forEach(Dt=>Dt.acc=this._accountsList.find(Yt=>Yt.accNumber===Dt.payerAccount)),lt.forEach(Dt=>{Dt.buttonActions.filter(Yt=>!!Yt.data?.operation).forEach(Yt=>Yt.data.operation.accountId=this._accountsList.find(Tt=>Tt.accNumber===Dt.payerAccount)?.accId),Dt.acceptDoc&&(Dt.acceptDoc.cardExecuteDate=a()(Dt.acceptDoc.endAcceptDate).format("DD.MM.YYYY"))}),Be.push({dateDocs:lt,docDate:at});return Be}openExportCardFileDocumentsModal(){this.modalService.open(x.J,{header:"Register of card file documents",styleMode:"forSign",inputs:{cardIndexAccountsList:this._accountsList}})}getDocumentList(Xe){this.router.navigate([],{queryParams:{page:Xe.number,size:Xe.size},relativeTo:this.activatedRoute,queryParamsHandling:"merge",replaceUrl:!0})}onActionDone(Xe){["print","advance_accept"].includes(Xe)||(this.cardIndexService.getCardIndexCounters().subscribe(),this.cardIndexService.loadDocuments(this.currentPage,this.filters),document.querySelector(".tabs-container.card-index").scrollLeft={all:0,commission:100,acceptance:300}[this.filters.tabName])}initPagination(){this.activatedRoute.queryParams.subscribe(Xe=>{this.filters.tabName=Xe?.tab||"all",this.currentPage.number=+Xe.page||0,this.currentPage.size=+Xe.size||20,this.selectedTab=this.filters.tabName,this.selectedTabIndex=this.tabs.findIndex(Qe=>Qe.value===this.filters.tabName),this.cardIndexService.loadDocuments(this.currentPage,this.filters)})}onSelectedTab(Xe){const Qe=this.tabs[Xe];this.currentPage=w,this.router.navigate([],{queryParams:{tab:Qe.value,page:this.currentPage.number,size:this.currentPage.size},relativeTo:this.activatedRoute,queryParamsHandling:"merge"})}onSearchChange(Xe){this.filters.searchTerm=Xe,this.currentPage.number=0,this.checkFiltersAreApplied(),this._debouncedFilterChange$.next(null)}onMoreFiltersClick(){this.moreFiltersOpen=!this.moreFiltersOpen}ngOnDestroy(){this.onResetFilters(),this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(Qe){return new(Qe||Ie)(C.\u0275\u0275directiveInject(n.F0),C.\u0275\u0275directiveInject(T.$),C.\u0275\u0275directiveInject(n.gz),C.\u0275\u0275directiveInject(j._),C.\u0275\u0275directiveInject(I.Z),C.\u0275\u0275directiveInject(i.D7))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:Ie,selectors:[["app-opening-currency-account-history"]],decls:10,vars:13,consts:[[3,"pathData"],[3,"withCloseButton","withTitle","loading"],["type","small header",1,"restr-button",3,"ngClass","text","click"],[1,"tabs-container","extra-margin","card-index"],[3,"initialIndex","currentIndex","numberDigitsLimit","selectTab"],[3,"label","number",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"label","number"],[1,"filter-row",3,"ngClass"],[1,"search-filter"],["data-qa","1657789495619","inputClass","no-description w100 card-index-search","typeClass","flex-input-filter",3,"matIcon","value","placeholder","valueChange"],["matTooltipClass","operations-filter-tooltip",1,"more-wrap",3,"matTooltip","matTooltipPosition","click"],[1,"more-filters__title"],[1,"pyramid-icon"],["noDocumentsTitle","\u041d\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432",3,"listType","customDocumentListItemIcon","documentList","currentPage","sizeList","isGroupDocuments","isLoading","changePaginationEmit","actionDone"],[1,"more-filters","card-index-filters",3,"ngClass"],["matTooltipClass","operations-filter-tooltip",1,"select-wrap",3,"ngClass","matTooltip","matTooltipPosition"],["label","Priorities","data-qa","1657789537296",1,"more-filters__select",3,"checkboxList","multiSelectChange"],["label","\u0422\u0438\u043f\u044b \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u0438","data-qa","1657789537296",1,"more-filters__select",3,"checkboxList","multiSelectChange"],["label","\u0422\u0438\u043f\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432","data-qa","1657789537296",1,"more-filters__select",3,"checkboxList","multiSelectChange"],["label","\u0421\u0447\u0435\u0442\u0430","data-qa","1657789537296",1,"more-filters__select",3,"checkboxList","multiSelectChange"],[1,"clear-filter",3,"ngClass","click"],["class","sub-info-total",3,"ngClass",4,"ngIf"],[1,"sub-info-total",3,"ngClass"],[1,"text"],[1,"text","bold"],["class","sub-info-total",4,"ngIf"],[1,"sub-info-total"],[1,"btn-link",3,"routerLink"]],template:function(Qe,Be){1&Qe&&(C.\u0275\u0275element(0,"app-path",0),C.\u0275\u0275elementContainerStart(1),C.\u0275\u0275elementStart(2,"app-page",1)(3,"app-button",2),C.\u0275\u0275listener("click",function(){return Be.openExportCardFileDocumentsModal()}),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(4,"div",3)(5,"app-tabs",4),C.\u0275\u0275listener("selectTab",function(lt){return Be.onSelectedTab(lt)}),C.\u0275\u0275template(6,we,1,2,"app-tab",5),C.\u0275\u0275elementEnd()(),C.\u0275\u0275template(7,Ce,14,27,"ng-container",6),C.\u0275\u0275template(8,Z,5,12,"ng-container",6),C.\u0275\u0275template(9,Pe,4,10,"ng-container",6),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementContainerEnd()),2&Qe&&(C.\u0275\u0275property("pathData",Be.pathData),C.\u0275\u0275advance(2),C.\u0275\u0275property("withCloseButton",!1)("withTitle",!1)("loading",!1),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass","register-button-"+Be.selectedTab)("text","\u0420\u0435\u0435\u0441\u0442\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432"),C.\u0275\u0275advance(2),C.\u0275\u0275property("initialIndex",0)("currentIndex",Be.selectedTabIndex)("numberDigitsLimit","no-limit"),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngForOf",Be.tabs),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf","all"===Be.selectedTab),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf","commission"===Be.selectedTab),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf","acceptance"===Be.selectedTab))},dependencies:[F.mk,F.sg,F.O5,n.rH,z.O,X.c,p.n,P.i,E.a,R.I,ne.l,G.r,ce.Hw,xe.gM,F.Ov,i.X$],styles:['@charset "UTF-8";[_nghost-%COMP%]{padding:10px 0;display:block}.performed-buttons[_ngcontent-%COMP%]{display:flex}.button[_ngcontent-%COMP%]{padding:14px 33px;border:1px solid #2f54eb;cursor:pointer;color:#2f54eb}.button[_ngcontent-%COMP%]:not(:first-child){border-left:none}.button[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.button[_ngcontent-%COMP%]:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.button.active[_ngcontent-%COMP%]{background:#2f54eb;color:#fff}.filter-row[_ngcontent-%COMP%]{padding-top:20px;display:flex;padding-bottom:10px}.filter-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative}.filter-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-left:20px}.loan-agreement-message[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;color:#080708;font-style:normal;font-weight:400;font-size:14px;line-height:normal;margin-top:24px;margin-bottom:24px;background:#F1F2F2;padding:12px 16px;border-radius:4px}.more-filters[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;margin-bottom:24px;margin-top:20px;justify-content:space-between;gap:16px}.more-filters.plan-more-filter[_ngcontent-%COMP%]{margin-top:10px;justify-content:flex-start}.more-filters__title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding-right:12px}@media screen and (max-width: 520px){.more-filters__title[_ngcontent-%COMP%]{display:none}}.more-filters.reset-filters[_ngcontent-%COMP%]{color:#2f54eb;font-weight:600;font-size:14px;cursor:pointer;width:-moz-fit-content;width:fit-content}.select-wrap[_ngcontent-%COMP%]{display:flex;position:relative;width:49%;flex:1 1 100%}.select-wrap.more-plan[_ngcontent-%COMP%], .select-wrap.auto-width[_ngcontent-%COMP%]{width:auto;flex:initial}.select-wrap[_ngcontent-%COMP%]   app-multi-select[_ngcontent-%COMP%]{width:100%}.select-wrap[_ngcontent-%COMP%]   app-multi-select.medium-width[_ngcontent-%COMP%]{width:240px}.select-wrap[_ngcontent-%COMP%]   app-multi-select.medium-width[_ngcontent-%COMP%]:nth-child(1){width:246px}.input-wrap[_ngcontent-%COMP%]{width:24%}.input-wrap[_ngcontent-%COMP%]     .more-filters__input{width:100%}.search-filter[_ngcontent-%COMP%]{flex:1 0;min-width:300px}@media screen and (max-width: 435px){.search-filter[_ngcontent-%COMP%]{min-width:auto}}.hidden-filter[_ngcontent-%COMP%]{display:none}.select-filter[_ngcontent-%COMP%]{width:230px}.select-filter-three[_ngcontent-%COMP%]{flex:368px 1 0;max-width:368px}.select-filter-four[_ngcontent-%COMP%]{flex:272px 1 0;max-width:272px}.select-filter-performed-four[_ngcontent-%COMP%]{flex:370px 1 0;max-width:370px}.select-filter-performed-five[_ngcontent-%COMP%]{flex:268px 1 0;max-width:268px}@media screen and (max-width: 865px){.select-filter-performed-five[_ngcontent-%COMP%]{flex-grow:1;max-width:none}}  mat-tooltip-component{background:none}  .operations-filter-tooltip{filter:drop-shadow(0px 5px 20px rgba(9,7,8,.1));pointer-events:none}  .operations-filter-tooltip .mdc-tooltip__surface{color:#000;background-color:#fff!important;font-family:Open Sans,Source Sans Pro,sans-serif!important;font-size:12px;font-weight:400;max-width:400px}.more-wrap[_ngcontent-%COMP%]{border:1px solid #dedede;border-radius:5px;min-width:93px;display:flex;height:50px;align-items:center;justify-content:space-between;padding:0 12px;cursor:pointer}.more-wrap[_ngcontent-%COMP%]   .pyramid-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:20px;color:#88909b;display:flex;justify-content:center;align-items:center}.more-wrap.active[_ngcontent-%COMP%]{border:1px solid #2f54eb}.more-wrap.active[_ngcontent-%COMP%]   .pyramid-icon[_ngcontent-%COMP%], .more-wrap.active[_ngcontent-%COMP%]   .more-filters__title[_ngcontent-%COMP%]{color:#2f54eb}@media screen and (min-width: 1024px){.more-wrap[_ngcontent-%COMP%]{margin-left:20px}}@media screen and (max-width: 520px){.more-wrap[_ngcontent-%COMP%]{min-width:auto}}.restr-button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;padding-top:32px;display:block}@media screen and (min-width: 375px) and (max-width: 765px){.restr-button[_ngcontent-%COMP%]{padding-top:16px}}@media screen and (min-width: 920px){.restr-button[_ngcontent-%COMP%]{position:absolute;right:32px;top:18px;padding-top:0}}@media screen and (min-width: 768px){.register-button-commission[_ngcontent-%COMP%], .register-button-acceptance[_ngcontent-%COMP%]{display:none}}.tabs-container[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede;overflow:scroll hidden;scrollbar-width:none;-ms-text-overflow-style:none}.tabs-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.tabs-container.extra-margin[_ngcontent-%COMP%]{margin-bottom:24px}[_nghost-%COMP%]     .tabs-container.card-index .tab.tab__counter .tab-number{background-color:#2f54eb;transform:translate(8px,1px);width:auto;border-radius:16px;padding:2px 8px;height:20px;font-size:12px;font-weight:700}[_nghost-%COMP%]     .tabs-container.card-index .tab.tab__counter:last-child .tab-number{background-color:#e23428;margin-right:8px}@media screen and (max-width: 920px){[_nghost-%COMP%]     .tabs-container.card-index{flex-direction:column-reverse;align-items:flex-start}}@media screen and (min-width: 768px){[_nghost-%COMP%]     .card-index-acceptance{margin-top:-36px}}@media screen and (min-width: 768px){[_nghost-%COMP%]     .card-index-acceptance .alt-document-list__top-paginator{padding-bottom:32px}}@media screen and (min-width: 935px){[_nghost-%COMP%]     .card-index-commission .alt-document-list__top-paginator{margin-top:-28px}}app-path[_ngcontent-%COMP%]{display:block;margin-bottom:24px}.sms-table[_ngcontent-%COMP%]{width:100%;border-spacing:0;font-family:Open Sans}.sms-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{background:#f1f2f2}.sms-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-weight:600;font-size:12px;line-height:16px;text-transform:uppercase;color:#444}.sms-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{vertical-align:baseline}.sms-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:14px 16px;border-bottom:1px solid #dedede;font-style:normal;font-weight:400;font-size:14px;line-height:22px;letter-spacing:.01em;color:#080708}.sms-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.phone-row[_ngcontent-%COMP%]{min-width:200px}.sms-table[_ngcontent-%COMP%]   tr.head-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:none}.empty-state-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:160px;width:100%}.empty-state-wrapper[_ngcontent-%COMP%]   .empty-text[_ngcontent-%COMP%]{font-size:18px;font-weight:400;line-height:25px;color:#88909b}.flex-table-cell[_ngcontent-%COMP%]{display:flex;align-items:center}.flex-table-cell[_ngcontent-%COMP%]   .icon-info[_ngcontent-%COMP%]{margin-left:7px;width:20px;height:20px;background-image:url(/assets/icons/info.png);background-repeat:no-repeat;background-position:center center}.accordion-wrapper[_ngcontent-%COMP%]{position:relative;background:#f1f2f2;padding:20px;border-radius:4px;margin-bottom:24px;font-family:Open Sans}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:space-between}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .text-title-info[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:24px;letter-spacing:0em;color:#444;margin-right:12px}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-info[_ngcontent-%COMP%]{font-size:10px;font-weight:700;line-height:14px;letter-spacing:0em;color:#444;padding:4px 8px;border-radius:4px;background:#dedede;text-transform:uppercase}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-info.accept[_ngcontent-%COMP%]{color:#00a843;background:rgba(0,168,67,.1490196078)}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{color:#88909b;font-size:24px}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .arrow.active[_ngcontent-%COMP%]{transform:rotate(180deg)}.accordion-wrapper[_ngcontent-%COMP%]   .content-accordion[_ngcontent-%COMP%]{margin-top:16px;font-size:14px;font-weight:400;line-height:20px;color:#444}.accordion-wrapper[_ngcontent-%COMP%]   .content-accordion[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{text-decoration:none;font-weight:600;color:#2f54eb}.title-edit[_ngcontent-%COMP%]{padding:26px 0;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0em}.close[_ngcontent-%COMP%]{cursor:pointer;font-size:27px;color:#88909b}.indent[_ngcontent-%COMP%]{margin-bottom:24px}.add-number[_ngcontent-%COMP%]{cursor:pointer;font-size:14px;font-weight:600;line-height:20px;letter-spacing:0em;color:#2f54eb}.add-number.error[_ngcontent-%COMP%]{color:#e23428}.wrapper-name-acc[_ngcontent-%COMP%]{display:flex;flex-direction:column}.wrapper-name-acc[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;color:#080708;margin-bottom:4px}.wrapper-name-acc[_ngcontent-%COMP%]   .full-name[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:16px;letter-spacing:0em;color:#88909b}.wrapper-button[_ngcontent-%COMP%]{margin-top:32px;width:218px}.filter-row[_ngcontent-%COMP%]{padding-top:0;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #dedede}.filter-row.open[_ngcontent-%COMP%]{border-bottom:unset}.more-filters.open[_ngcontent-%COMP%]{padding-bottom:16px;margin-bottom:0;margin-top:-30px}.more-filters__title[_ngcontent-%COMP%]{font-size:14px}@media (max-width: 768px){.more-filters__title[_ngcontent-%COMP%]{color:#88909b}}.sub-info-total[_ngcontent-%COMP%]{position:relative;display:flex}@media screen and (max-width: 768px){.sub-info-total[_ngcontent-%COMP%]{margin-bottom:24px}}.sub-info-total.nodocs[_ngcontent-%COMP%]{display:none}.sub-info-total[_ngcontent-%COMP%]   .btn-link[_ngcontent-%COMP%]{cursor:pointer;font-family:Open Sans;font-size:14px;font-weight:600;line-height:20px;letter-spacing:0em;text-align:left;color:#2f54eb;padding:8px 16px;border-radius:4px;border:1px solid #2f54eb;z-index:1000}@media screen and (max-width: 768px){.sub-info-total[_ngcontent-%COMP%]   .btn-link[_ngcontent-%COMP%]{width:100%;text-align:center}}.sub-info-total[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-family:Open Sans;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;text-align:left;margin-right:7px}.sub-info-total[_ngcontent-%COMP%]   .text.bold[_ngcontent-%COMP%]{font-family:Open Sans;font-size:14px;font-weight:600;line-height:20px;letter-spacing:0em;text-align:left;margin-right:0}.more-filters[_ngcontent-%COMP%]{flex-wrap:wrap}.clear-filter[_ngcontent-%COMP%]{font-family:Open Sans;font-size:14px;font-weight:600;line-height:20px;text-align:left;cursor:pointer;color:#2f54eb;border-bottom:1px solid #dedede;height:36px;box-sizing:content-box;display:flex;justify-content:flex-start;align-items:center;padding-bottom:24px;margin-bottom:24px}.clear-filter.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}@media screen and (max-width: 620px){.clear-filter[_ngcontent-%COMP%]{padding-bottom:16px}}@media (max-width: 768px){[_nghost-%COMP%]     input.card-index-search::placeholder{color:#88909b}[_nghost-%COMP%]     input.card-index-search::-webkit-input-placeholder{color:#88909b}[_nghost-%COMP%]     input.card-index-search:-moz-placeholder{color:#88909b}[_nghost-%COMP%]     input.card-index-search:-ms-input-placeholder{color:#88909b}}']})}(0,e.gn)([(0,i.SQ)()],Ie.prototype,"lang",void 0);const pt=[{path:"",pathMatch:"full",component:Ie},{path:"**",redirectTo:"/desktop"}];let Ht=(()=>{class Wt{static#e=this.\u0275fac=function(Be){return new(Be||Wt)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:Wt});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({imports:[n.Bz.forChild(pt),n.Bz]})}return Wt})()},502:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>B});var n=t(61135),e=t(77579),i=t(39646),d=t(60515),a=t(82722),u=t(18505),h=t(70262),l=t(95698),m=t(63900),x=t(94650),O=t(9149),L=t(3751),w=t(15644);let B=(()=>{class _{constructor($,C,T){this.toastCustomService=$,this.apiService=C,this.configUtilService=T,this.acceptanceDocsList$=new n.X(null),this._isLoading=new n.X(!0),this.destroy$=new e.x,this.isLoading$=this._isLoading.asObservable(),this.cardIndexCounters$=new n.X(null),this.cardIndexDocs$=new n.X([])}getCardIndexCounters(){return this.apiService.get("metinv/card_index/counters").pipe((0,a.R)(this.destroy$),(0,u.b)($=>{const C={...$,accList:this.configUtilService.getArray($.accList)};this.cardIndexCounters$.next(C)}),(0,h.K)(()=>(0,i.of)(null)))}setIsLoading($){this._isLoading.next($)}loadDocuments($,C){if(C.invalid)return void this.acceptanceDocsList$.next({docs:[],page:$});this.setIsLoading(!0);const T=this.createPayload($,C);this.apiService.post("metinv/card_index/common",T).pipe((0,l.q)(1),(0,m.w)(j=>{const I=this.parseAcceptanceDocsResponse(j);this.acceptanceDocsList$.next(I);const F=(I.docs||[]).filter(z=>"1"===z.unread).map(z=>z.docId);return(0,i.of)(F)}),(0,m.w)(j=>this.markAsRead(j)),(0,m.w)(()=>this.getCardIndexCounters()),(0,h.K)(()=>(this.acceptanceDocsList$.next({docs:[],page:$}),(0,i.of)(null)))).subscribe(()=>{this.setIsLoading(!1)})}createMetibAccept($,C){const T={id:$.id,accId:$.accId,acceptAmount:"DECLINE"!==$.acceptType?$.acceptAmount:null,acceptType:$.acceptType,cause:$.cause,endAcceptDate:$.endAcceptDate,paymentRequestDocId:$.paymentRequestDocId,...C};return("DECLINE"===$.acceptType||"PARTLY_ACCEPT"===$.acceptType)&&delete T.notAcceptAmount,this.apiService.post("request/process/metinv/accept_no_accept",T).pipe((0,h.K)(j=>(this.toastCustomService.show({DECLINE:"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0442\u043a\u0430\u0437\u0430 \u043e\u0442 \u0430\u043a\u0446\u0435\u043f\u0442\u0430",PARTLY_ACCEPT:"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043a\u0446\u0435\u043f\u0442\u0430",ACCEPT:"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0430\u043a\u0446\u0435\u043f\u0442\u0430"}[T.acceptType],"error"),j?.errorText&&this.toastCustomService.errorHandle(j,"fullRed"),console.error(j),d.E)))}getCardIndexDocById($){return this.apiService.get(`metinv/card_index/${$}`).pipe((0,h.K)(C=>(this.toastCustomService.errorHandle(C),(0,i.of)(null))))}markAsRead($){return 0===$.length?(0,i.of)(null):this.apiService.post("metinv/card_index/read_docs",$).pipe((0,h.K)(C=>(this.toastCustomService.show("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043d\u0430 \u043e\u0442\u043c\u0435\u0442\u043a\u0443 \u043e \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0438","error"),console.error(C),(0,i.of)(null))))}createPayload($,C){const T={pageName:C.tabName,pageNumber:$.number+1,pageSize:$.size,priority:null};return"all"===C.tabName?(T.searchTerm=C.searchTerm||"",C.priorities?.length>0&&(T.priority=C.priorities.join(";")),C.cardTypes?.length>0&&(T.cardType=C.cardTypes.join(";")),C.opCodes?.length>0&&(T.opCode=C.opCodes.join(";")),C.accountList?.length>0&&(T.accountList=C.accountList.join(";"))):"commission"===C.tabName?(T.opCode="09;17",T.cardType="2;2A"):"acceptance"===C.tabName&&(T.opCode="02",T.cardType="1S"),T}parseAcceptanceDocsResponse($){return{docs:this.configUtilService.getArray($.cardIndexDocsWithActions).map(j=>({...j.cardIndexDoc,actions:this.configUtilService.getArray(j.actions),buttonActions:this.configUtilService.getArray(j.actions).map(I=>({type:I,data:{docId:j.cardIndexDoc.docId,docType:"request_accept_no_accept",docModule:"ibankul",inPopup:!1,operation:this.getCreateAcceptOperationData(j)}})),acceptDoc:this.getAcceptDocData(j)})),page:$.page}}getCreateAcceptOperationData($){return{accountId:$.cardIndexDoc.payerAccountId,amount:$.cardIndexDoc.debetAmount,type:"ACCEPT",docIds:$.cardIndexDoc.docId,requestId:$.requestAcceptNoAcceptDoc?.id,paymentDoc:{amount:$.cardIndexDoc.debetAmount,corrAccNumber:$.cardIndexDoc.receiverAccount,corrFullname:$.cardIndexDoc.receiverName,corrInn:$.cardIndexDoc.receiverInn,corrBankBik:$.cardIndexDoc.receiverBankBic,corrBankName:$.cardIndexDoc.receiverBankName,docInfo:`\u041f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u2116${$.cardIndexDoc.docNumber} \u043e\u0442 ${$.cardIndexDoc.docDate} \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 ${$.cardIndexDoc.debetAmount} \u0440\u0443\u0431\u043b\u0435\u0439`,endAcceptDate:$.cardIndexDoc.cardExecuteDate,notAcceptAmount:0,paymentRequestDocDate:$.cardIndexDoc.docDate,paymentRequestDocNumber:$.cardIndexDoc.docNumber,paymentRequestDocId:$.cardIndexDoc.docId,paymentRequestUid:$.cardIndexDoc.uid}}}getAcceptDocData($){return $.requestAcceptNoAcceptDoc?.id||"02"!==$.cardIndexDoc.opCode||"1S"!==$.cardIndexDoc.cardType?$.requestAcceptNoAcceptDoc?{...$.requestAcceptNoAcceptDoc,endAcceptDate:$.cardIndexDoc.cardExecuteDate}:null:{endAcceptDate:$.cardIndexDoc.cardExecuteDate,acptStatus:$.cardIndexDoc.acptStatus}}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(C){return new(C||_)(x.\u0275\u0275inject(O.j),x.\u0275\u0275inject(L.s),x.\u0275\u0275inject(w.Pj))};static#t=this.\u0275prov=x.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac})}return _})()},71328:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{CashOrderModule:()=>vi});var n=t(36895),e=t(24006),i=t(97392),d=t(65938),a=t(10266),u=t(95495),h=t(50807),l=t(9525),m=t(37413),x=t(84005),O=t(74471),L=t(64303),w=t(71702),B=t(88044),_=t(99762),y=t(54215),$=t(44180),C=t(36544),T=t(97582),j=t(16611),I=t(61135),F=t(77579),z=t(82722),X=t(39300),p=t(15439),P=t.n(p);const E=[{title:"Last Name",formControlName:"lastName",class:"metib-full-width",cols:4},{title:"First Name",formControlName:"firstName",class:"metib-full-width",cols:4},{title:"Second Name",formControlName:"secondName",class:"metib-full-width",cols:4},{title:"Birth date",formControlName:"birthDate",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/]}},{title:"Phone number to contact",formControlName:"phoneNumber",class:"metib-full-width",cols:6,mask:{TextMask:["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/]}},{title:"Passport series",formControlName:"passportSeries",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/," ",/\d/,/\d/]}},{title:"Passport number",formControlName:"passportNumber",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/]}},{title:"Date of issue of the passport",formControlName:"passportIssuedDate",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/]}},{title:"Division code",formControlName:"passportIssuedCode",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/]}},{title:"Issued by",formControlName:"passportIssuedBy",class:"metib-full-width",cols:12}];var R=t(94650),ne=t(9149),G=t(38101),ce=t(62289),xe=t(16304),we=t(90782),Ge=t(90995);function ct(Zn,gn){if(1&Zn&&(R.\u0275\u0275elementStart(0,"mat-grid-tile",8),R.\u0275\u0275element(1,"app-metib-input",9),R.\u0275\u0275elementEnd()),2&Zn){const Mt=gn.$implicit,$t=R.\u0275\u0275nextContext();R.\u0275\u0275property("colspan",$t.isMobileView?1:Mt.cols),R.\u0275\u0275advance(1),R.\u0275\u0275classMap(Mt.class),R.\u0275\u0275property("formControlName",Mt.formControlName)("mask",Mt.mask)("title",Mt.title)("hint",$t.getHint(Mt.formControlName))}}function pe(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-button",10),R.\u0275\u0275listener("clicked",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.handleClear())}),R.\u0275\u0275elementEnd()}}function Ce(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-button",11),R.\u0275\u0275listener("clicked",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.handleCancel())}),R.\u0275\u0275elementEnd()}}const U="DD.MM.YYYY";class H{constructor(gn,Mt,$t){this.toastCustomService=gn,this.modalService=Mt,this.breakpointObserver=$t,this.tiles=E,this.cols=12,this.isMobileView=!1,this.controlsToCheck=["firstName","lastName","secondName","birthDate","passportSeries","passportNumber","passportIssuedCode","passportIssuedDate","passportIssuedBy"],this.destroyed$=new F.x,this.breakpointObserver.observe(["(max-width: 765px)"]).pipe((0,z.R)(this.destroyed$)).subscribe(kn=>{kn.matches?(this.isMobileView=!0,this.cols=1):(this.isMobileView=!1,this.cols=12)}),this.getPassportForm()}ngAfterViewInit(){this.getPassportForm()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}get isFormValid(){return this.passportForm.valid}handleClose(){this.editIncomplete&&this.editIncomplete(this.getFormData())}handleSubmit(){if(this.checkFormIsValidOnSubmit(),this.isFormValid)this.editDone(this.getFormData());else{let gn=!1,Mt=!1;Object.keys(this.passportForm.controls).forEach($t=>{const kn=this.passportForm.get($t);kn.hasError("isRequired")||kn.hasError("emptySubmit")?gn=!0:kn.hasError("invalidDate")&&(Mt=!0)}),gn?(this.toastCustomService.show("Fill all form fields","error"),this.passportForm.markAllAsTouched()):Mt&&this.toastCustomService.show("Incorrect date","error")}}getFormData(){const gn={...this.passportForm.value};return gn.phoneNumber=gn.phoneNumber.replace(/[\s()-]/g,""),gn.birthDate=this.dateToISO(gn.birthDate),gn.passportSeries=gn.passportSeries.replace(/\s/g,""),gn.passportIssuedDate=this.dateToISO(gn.passportIssuedDate),gn}dateToISO(gn){return gn?P()(gn,U).format("YYYY-MM-DD"):""}dateFromISO(gn){return gn?P()(gn).format(U):""}handleClear(){this.passportForm.reset(),this.passportForm.markAllAsTouched()}handleCancel(){this.modalService.close()}getHint(gn){return this.passportForm.get(gn).hasError("invalidDate")?{text:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u0434\u0430\u0442\u0430",type:"error"}:null}getPassportForm(){const gn=Zi=>P()(Zi,U).isValid(),Mt=Zi=>{if(Zi){const Wo=P()(Zi,U).format("YYYY.MM.DD");return P()(Wo).toDate()}},$t=Zi=>{if(""===Zi.value||null===Zi.value)return[];const Wo=/^(?=.{1,255}$)[\u0430-\u044f\u0451\u0410-\u042f\u0401]+(?:[- ][\u0430-\u044f\u0451\u0410-\u042f\u0401]+)*$/.test(Zi?.value?.trim());return(Zi.value||"").replace(/\s+/g," ").trim().split(" ").length>2||!Wo?[{invalidName:!0}]:[]},kn=e.Validators.compose([Zi=>$t(Zi)]),ai=e.Validators.compose([Zi=>"-"===Zi?.value?[]:$t(Zi)]),qi=e.Validators.compose([Zi=>""===Zi.value||null===Zi.value?[]:(Zi.value||"").replace(/\D/g,"").length<11?[{invalidPhone:!0}]:null]),eo=e.Validators.compose([Zi=>{if(""===Zi.value||null===Zi.value)return[];if(!gn(Zi.value))return{invalidDate:!0};const Wo=P()().set({hour:0,minute:0,second:0}).subtract(100,"years").toDate(),na=P()().set({hour:0,minute:0,second:1}).subtract(14,"years").toDate(),qa=Mt(Zi.value);return qa<Wo||qa>na?{invalidDate:!0}:(this.passportForm.get("passportIssuedDate").updateValueAndValidity(),null)}]),Oo=e.Validators.compose([Zi=>{if(""===Zi.value||null===Zi.value)return null;if(!gn(Zi.value))return{invalidDate:!0};const Wo=Mt(Zi.value),na=Mt(this.passportForm.get("birthDate").value),qa=Wo>P()().toDate(),rr=na&&P()(na).add(14,"years").toDate()>Wo;return qa||rr?{invalidDate:!0}:null}]),Fo=e.Validators.compose([Zi=>null]);this.passportForm=new e.UntypedFormGroup(this.data?{lastName:new e.UntypedFormControl(this.data.lastName,[Fo,kn]),firstName:new e.UntypedFormControl(this.data.firstName,[Fo,kn]),secondName:new e.UntypedFormControl(this.data.secondName,[Fo,ai]),phoneNumber:new e.UntypedFormControl(this.data.phoneNumber,[qi]),birthDate:new e.UntypedFormControl(this.dateFromISO(this.data.birthDate),[Fo,eo]),passportSeries:new e.UntypedFormControl(this.data.passportSeries,[Fo]),passportNumber:new e.UntypedFormControl(this.data.passportNumber,[Fo]),passportIssuedDate:new e.UntypedFormControl(this.dateFromISO(this.data.passportIssuedDate),[Oo]),passportIssuedCode:new e.UntypedFormControl(this.data.passportIssuedCode,[Fo]),passportIssuedBy:new e.UntypedFormControl(this.data.passportIssuedBy,[Fo])}:{lastName:new e.UntypedFormControl("",[Fo,kn]),firstName:new e.UntypedFormControl("",[Fo,kn]),secondName:new e.UntypedFormControl("",[Fo,ai]),phoneNumber:new e.UntypedFormControl("",[qi]),birthDate:new e.UntypedFormControl("",[Fo,eo]),passportSeries:new e.UntypedFormControl("",[Fo]),passportNumber:new e.UntypedFormControl("",[Fo]),passportIssuedDate:new e.UntypedFormControl("",[Oo]),passportIssuedCode:new e.UntypedFormControl("",[Fo]),passportIssuedBy:new e.UntypedFormControl("",[Fo])})}checkFormIsValidOnSubmit(){this.passportForm.get("passportIssuedDate").updateValueAndValidity(),this.controlsToCheck.forEach(gn=>{const Mt=this.passportForm.get(gn);(""===Mt.value||null===Mt.value)&&Mt.setErrors({isRequired:!0},{emitEvent:!0})}),this.passportForm.markAllAsTouched()}static#e=this.\u0275fac=function(Mt){return new(Mt||H)(R.\u0275\u0275directiveInject(ne.j),R.\u0275\u0275directiveInject(G.Z),R.\u0275\u0275directiveInject(ce.Yg))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:H,selectors:[["app-metib-modal-passport"]],inputs:{data:"data",editDone:"editDone",editIncomplete:"editIncomplete"},decls:8,vars:5,consts:[[1,"metib-modal-passport__form-wrap"],[3,"formGroup"],["gutterSize","20px","rowHeight","56px",3,"cols"],[3,"colspan",4,"ngFor","ngForOf"],[1,"metib-modal-passport__buttons"],["text","Save","type","small header",3,"clicked"],["text","Clear fields","type","medium-for-sign-mail",3,"clicked",4,"ngIf"],["text","Cancel","type","medium-for-sign-mail",3,"clicked",4,"ngIf"],[3,"colspan"],["appearance","dcb",1,"dcb",3,"formControlName","mask","title","hint"],["text","Clear fields","type","medium-for-sign-mail",3,"clicked"],["text","Cancel","type","medium-for-sign-mail",3,"clicked"]],template:function(Mt,$t){1&Mt&&(R.\u0275\u0275elementStart(0,"div",0)(1,"form",1)(2,"mat-grid-list",2),R.\u0275\u0275template(3,ct,2,7,"mat-grid-tile",3),R.\u0275\u0275elementEnd()(),R.\u0275\u0275elementStart(4,"div",4)(5,"app-button",5),R.\u0275\u0275listener("clicked",function(){return $t.handleSubmit()}),R.\u0275\u0275elementEnd(),R.\u0275\u0275template(6,pe,1,0,"app-button",6),R.\u0275\u0275template(7,Ce,1,0,"app-button",7),R.\u0275\u0275elementEnd()()),2&Mt&&(R.\u0275\u0275advance(1),R.\u0275\u0275property("formGroup",$t.passportForm),R.\u0275\u0275advance(1),R.\u0275\u0275property("cols",$t.cols),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngForOf",$t.tiles),R.\u0275\u0275advance(3),R.\u0275\u0275property("ngIf",!$t.data),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",$t.data))},dependencies:[n.sg,n.O5,xe.w,e.\u0275NgNoValidate,e.NgControlStatus,e.NgControlStatusGroup,we.Il,we.DX,e.FormGroupDirective,e.FormControlName,Ge.r],styles:['@charset "UTF-8";.metib-modal-passport__form-wrap[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;min-width:724px;width:100%}@media screen and (max-width: 768px){.metib-modal-passport__form-wrap[_ngcontent-%COMP%]{min-width:auto;max-height:80vh;overflow:auto}}.metib-modal-passport__form-wrap[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{max-width:100%}.metib-modal-passport__form-wrap[_ngcontent-%COMP%]     .dynamic-input__overlay .dynamic-input__input{padding-left:0;padding-right:0}.metib-modal-passport__form-wrap[_ngcontent-%COMP%]     .dynamic-input .dynamic-input__title{padding-left:0}.metib-modal-passport__form-wrap[_ngcontent-%COMP%]     button.link-orange{margin-right:10px}.metib-modal-passport__form-wrap[_ngcontent-%COMP%]     button.link-orange>span{justify-content:end}.metib-modal-passport__form-wrap[_ngcontent-%COMP%]     mat-grid-tile .mat-grid-tile-content{align-items:flex-start!important}.metib-modal-passport__form-wrap[_ngcontent-%COMP%]{padding:24px 32px}@media screen and (max-width: 768px){.metib-modal-passport__form-wrap[_ngcontent-%COMP%]{padding:24px 16px}}.metib-modal-passport__buttons[_ngcontent-%COMP%]{margin-top:60px;display:flex;gap:16px;flex-wrap:wrap}.metib-modal-passport[_ngcontent-%COMP%]     app-metib-input{margin-top:0}.metib-modal-passport[_ngcontent-%COMP%]   .dynamic-select.active[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{border:0;box-shadow:none}.metib-modal-passport[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{color:#88909b;font-weight:400;font-size:12px;line-height:16px}.metib-modal-passport[_ngcontent-%COMP%]   .dynamic-select.active[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{color:#88909b}','@charset "UTF-8";.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:7px;width:10px;fill:#88909b;cursor:pointer}']})}(0,T.gn)([(0,j.SQ)()],H.prototype,"lang",void 0);var Z=(()=>{return(Zn=Z||(Z={})).HISTORY="HISTORY",Zn.RECIPIENTS="RECIPIENTS",Z;var Zn})();const oe=[{capture:"All applications",value:Z.HISTORY,routerLink:"/zakaz_nalichnyh"},{capture:"Recipients",value:Z.RECIPIENTS,routerLink:"/zakaz_nalichnyh/spisok_poluchateley"}],Pe={size:20,number:0,total:0},Ie=[10,20,100];var pt=t(71060),Ht=t(40929),Wt=t(75568),Xe=t(23439),Qe=t(65218),Be=t(15557),at=t(30815),lt=t(15725),Dt=t(65266),Yt=t(54244),Tt=t(98900),ot=t(24201);function Gt(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-menu-select",5),R.\u0275\u0275listener("changeEvent",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.onDotItemClicked(kn))}),R.\u0275\u0275elementStart(1,"button",6),R.\u0275\u0275element(2,"span",7),R.\u0275\u0275elementEnd()()}if(2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("icon",!0)("items",Mt.item.actionItems)}}let wt=(()=>{class Zn{constructor(){this.dotItemClicked=new R.EventEmitter}onDotItemClicked(Mt){this.dotItemClicked.emit(Mt)}static#e=this.\u0275fac=function($t){return new($t||Zn)};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Zn,selectors:[["app-recipient-item"]],inputs:{item:"item"},outputs:{dotItemClicked:"dotItemClicked"},decls:6,vars:2,consts:[[1,"recipient-item"],["svgIcon","contact-page",1,"recipient-item__svg"],[1,"recipient-item__title"],[1,"recipient-item__menu"],[3,"icon","items","changeEvent",4,"ngIf"],[3,"icon","items","changeEvent"],[1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"]],template:function($t,kn){1&$t&&(R.\u0275\u0275elementStart(0,"div",0),R.\u0275\u0275element(1,"mat-icon",1),R.\u0275\u0275elementStart(2,"div",2),R.\u0275\u0275text(3),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(4,"div",3),R.\u0275\u0275template(5,Gt,3,2,"app-menu-select",4),R.\u0275\u0275elementEnd()()),2&$t&&(R.\u0275\u0275advance(3),R.\u0275\u0275textInterpolate1(" ",kn.item.fullName," "),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngIf",kn.item.actionItems))},dependencies:[n.O5,ot.r,i.Hw],styles:['@charset "UTF-8";.recipient-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding:9px 7px 9px 20px;font-size:16px;line-height:normal;display:flex;align-items:center}@media screen and (max-width: 768px){.recipient-item[_ngcontent-%COMP%]{padding-left:0;padding-top:15px;padding-bottom:16px}}.recipient-item__title[_ngcontent-%COMP%]{flex:1;margin:0 15px}.recipient-item__menu[_ngcontent-%COMP%]{padding:6px 4px 0 0;vertical-align:middle}@media screen and (max-width: 768px){.recipient-item__menu[_ngcontent-%COMP%]{padding-top:0}}.recipient-item__icon[_ngcontent-%COMP%]{display:block;color:#88909b;width:24px;height:23px;font-size:24px}']})}return Zn})();function Ze(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"div",2)(1,"app-recipient-item",3),R.\u0275\u0275listener("dotItemClicked",function(kn){const qi=R.\u0275\u0275restoreView(Mt).$implicit,eo=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(eo.onDotItemClick(kn,qi))}),R.\u0275\u0275elementEnd()()}if(2&Zn){const Mt=gn.$implicit;R.\u0275\u0275advance(1),R.\u0275\u0275property("item",Mt)}}let Ut=(()=>{class Zn{constructor(){this.dotItemClicked=new R.EventEmitter}onDotItemClick(Mt,$t){this.dotItemClicked.emit({item:Mt,id:$t.id})}static#e=this.\u0275fac=function($t){return new($t||Zn)};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Zn,selectors:[["app-recipient-list"]],inputs:{recipients:"recipients"},outputs:{dotItemClicked:"dotItemClicked"},decls:2,vars:1,consts:[[1,"recipient-list"],["class","recipient-list__item",4,"ngFor","ngForOf"],[1,"recipient-list__item"],[3,"item","dotItemClicked"]],template:function($t,kn){1&$t&&(R.\u0275\u0275elementStart(0,"div",0),R.\u0275\u0275template(1,Ze,2,1,"div",1),R.\u0275\u0275elementEnd()),2&$t&&(R.\u0275\u0275advance(1),R.\u0275\u0275property("ngForOf",kn.recipients))},dependencies:[n.sg,wt],styles:['@charset "UTF-8";.recipient-list__item[_ngcontent-%COMP%]{border-bottom:1px solid #dbe5ec}.recipient-list__item[_ngcontent-%COMP%]:first-child{border-top:1px solid #dbe5ec}']})}return Zn})();function vn(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-recipient-list",4),R.\u0275\u0275listener("dotItemClicked",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.dotItemClickedEvent(kn))}),R.\u0275\u0275elementEnd()}if(2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("recipients",Mt.recipientsData)}}function xn(Zn,gn){1&Zn&&R.\u0275\u0275element(0,"app-empty-stub",6),2&Zn&&R.\u0275\u0275property("display",!0)}function bn(Zn,gn){if(1&Zn&&R.\u0275\u0275template(0,xn,1,1,"app-empty-stub",5),2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("ngIf",!Mt.isLoading)}}function hn(Zn,gn){1&Zn&&R.\u0275\u0275element(0,"app-loader")}let pn=(()=>{class Zn{constructor(Mt,$t){this.cashOrderService=Mt,this.toastCustomService=$t,this.dotItemClicked=new R.EventEmitter,this.isLoading=!0,this.recipients=[],this.recipientsData=[]}setLoading(Mt){this.isLoading=Mt}getRecipientsData(){this.cashOrderService.getRecipients().subscribe({next:Mt=>{this.recipients=Mt,this.setRecipientItemData(),this.setLoading(!1)},error:Mt=>{this.toastCustomService.show(Mt,"error"),this.setLoading(!1)}})}dotItemClickedEvent({item:Mt,id:$t}){const kn=this.recipients.find(ai=>ai.id===$t);kn&&this.dotItemClicked.emit({item:Mt,recipient:kn})}ngOnInit(){this.eventRecipientSubscription=this.eventsRecipient.pipe((0,Yt.n)(Mt=>null===Mt)).subscribe(Mt=>{const $t=this.recipients.findIndex(kn=>kn.id===Mt.id);-1!==$t?this.recipients[$t]=Mt:this.recipients.unshift(Mt),this.setRecipientItemData()}),this.eventDeleteSubscription=this.eventsDelete.subscribe(Mt=>{const $t=this.recipients.findIndex(kn=>kn.id===Mt);-1!==$t&&(this.recipients.splice($t,1),this.setRecipientItemData())}),this.setLoading(!0),this.getRecipientsData()}setRecipientItemData(){this.recipientsData=this.recipients.map(Mt=>({id:Mt.id,fullName:`${Mt.lastName} ${Mt.firstName} ${Mt.secondName}`.trim(),position:Mt.position,actionItems:[{name:"edit",matIcon:"edit",matStyleOutlined:!0,description:"Edit"},{name:"delete",matIcon:"delete_forever",matStyleOutlined:!0,description:"Delete"}]}))}ngOnDestroy(){this.eventRecipientSubscription.unsubscribe(),this.eventDeleteSubscription.unsubscribe()}static#e=this.\u0275fac=function($t){return new($t||Zn)(R.\u0275\u0275directiveInject(pt.s),R.\u0275\u0275directiveInject(ne.j))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Zn,selectors:[["app-cash-order-recipients-list"]],inputs:{eventsRecipient:"eventsRecipient",eventsDelete:"eventsDelete"},outputs:{dotItemClicked:"dotItemClicked"},decls:5,vars:3,consts:[["data-qa","1657867752563",1,"cash-order-recipients"],["data-qa","1657867757361",3,"recipients","dotItemClicked",4,"ngIf","ngIfElse"],["emptyList",""],[4,"ngIf"],["data-qa","1657867757361",3,"recipients","dotItemClicked"],["stubCssClass","empty-stub-dcb","data-qa","1657867762076","text","No recipients",3,"display",4,"ngIf"],["stubCssClass","empty-stub-dcb","data-qa","1657867762076","text","No recipients",3,"display"]],template:function($t,kn){if(1&$t&&(R.\u0275\u0275elementStart(0,"div",0),R.\u0275\u0275template(1,vn,1,1,"app-recipient-list",1),R.\u0275\u0275template(2,bn,1,1,"ng-template",null,2,R.\u0275\u0275templateRefExtractor),R.\u0275\u0275elementEnd(),R.\u0275\u0275template(4,hn,1,0,"app-loader",3)),2&$t){const ai=R.\u0275\u0275reference(3);R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",null==kn.recipientsData?null:kn.recipientsData.length)("ngIfElse",ai),R.\u0275\u0275advance(3),R.\u0275\u0275property("ngIf",kn.isLoading)}},dependencies:[Wt.R,n.O5,Tt.q,Ut],styles:[".cash-order-recipients[_ngcontent-%COMP%]{margin-top:32px;min-height:66px}"]})}return Zn})();function In(Zn,gn){1&Zn&&R.\u0275\u0275element(0,"app-tab",13),2&Zn&&R.\u0275\u0275property("label",gn.$implicit.capture)}function Dn(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-button",14),R.\u0275\u0275listener("clicked",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.createClicked())}),R.\u0275\u0275pipe(1,"translate"),R.\u0275\u0275elementEnd()}if(2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("text",R.\u0275\u0275pipeBind2(1,1,"New order",Mt.lang))}}function Tn(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-button",15),R.\u0275\u0275listener("clicked",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.addClicked())}),R.\u0275\u0275pipe(1,"translate"),R.\u0275\u0275elementEnd()}if(2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("text",R.\u0275\u0275pipeBind2(1,1,"New recipient",Mt.lang))}}function mn(Zn,gn){if(1&Zn&&(R.\u0275\u0275elementStart(0,"div",16)(1,"div",17)(2,"mat-icon",18),R.\u0275\u0275text(3,"info"),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(4,"div",19),R.\u0275\u0275text(5),R.\u0275\u0275pipe(6,"translate"),R.\u0275\u0275elementStart(7,"a",20),R.\u0275\u0275text(8),R.\u0275\u0275pipe(9,"translate"),R.\u0275\u0275elementEnd()()()()),2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275advance(5),R.\u0275\u0275textInterpolate1(" ",R.\u0275\u0275pipeBind2(6,2,"Cash order sent description",Mt.lang)," "),R.\u0275\u0275advance(3),R.\u0275\u0275textInterpolate(R.\u0275\u0275pipeBind2(9,5,"Power of attorney alt",Mt.lang))}}function Yn(Zn,gn){if(1&Zn&&(R.\u0275\u0275elementStart(0,"app-collapse-text-block",21)(1,"div",19),R.\u0275\u0275text(2),R.\u0275\u0275pipe(3,"translate"),R.\u0275\u0275elementStart(4,"a",20),R.\u0275\u0275text(5),R.\u0275\u0275pipe(6,"translate"),R.\u0275\u0275elementEnd()()()),2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275advance(2),R.\u0275\u0275textInterpolate1(" ",R.\u0275\u0275pipeBind2(3,2,"Cash order sent description",Mt.lang)," "),R.\u0275\u0275advance(3),R.\u0275\u0275textInterpolate(R.\u0275\u0275pipeBind2(6,5,"Power of attorney alt",Mt.lang))}}const cn=function(Zn){return{"extra-margin":Zn}};function Nn(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-alt-document-list",22),R.\u0275\u0275listener("changePaginationEmit",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.getCashRequestList(kn))})("actionDone",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.onActionDone(kn))}),R.\u0275\u0275pipe(1,"async"),R.\u0275\u0275elementEnd()}if(2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("documentList",Mt.cashRequestList)("currentPage",Mt.currentPage)("sizeList",Mt.sizeList)("isLoading",R.\u0275\u0275pipeBind1(1,5,Mt.isCashRequestListLoading$))("ngClass",R.\u0275\u0275pureFunction1(7,cn,null==Mt.cashRequestList?null:Mt.cashRequestList.length))}}function Bt(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-cash-order-recipients-list",23),R.\u0275\u0275listener("dotItemClicked",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.dotItemClicked(kn))}),R.\u0275\u0275elementEnd()}if(2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("eventsDelete",Mt.deleteSubject.asObservable())("eventsRecipient",Mt.recipientSubject.asObservable())}}function En(Zn,gn){1&Zn&&R.\u0275\u0275element(0,"app-loader")}class Wn{constructor(gn,Mt,$t,kn,ai){this.router=gn,this.cashOrderService=Mt,this.documentService=$t,this.toastCustomService=kn,this.modalService=ai,this.page=Z.HISTORY,this.pathData=[{capture:"Get Cash",bold:!0}],this.tabs=oe,this.currentPage=Pe,this.sizeList=Ie,this.isCashRequestListLoading$=this.cashOrderService.isLoading$,this.cashRequestList=[],this.isLoading=!1,this.currentTab=this.tabs[0],this.recipientSubject=new I.X(null),this.deleteSubject=new F.x,this.destroyed$=new F.x}get TABS(){return Z}ngOnInit(){this.currentTab=this.tabs.find(gn=>gn.value===this.page),this.currentTab.value===Z.HISTORY&&this.initCashRequestList()}onActionDone(gn){("delete"===gn||"delete_sign"===gn||"sign"===gn)&&this.getCashRequestList(this.currentPage)}getCashRequestList(gn){this.router.navigate(["/zakaz_nalichnyh"],{queryParams:{page:gn?.number?+gn.number+1:1,size:gn?.size?gn.size:10}}),this.cashOrderService.loadCashRequestList(gn)}onSelectTab(gn){this.tabs[gn].routerLink&&this.router.navigate([this.tabs[gn].routerLink])}createClicked(){this.router.navigate(["/zakaz_nalichnyh/novaya_zayavka"])}setLoading(gn){this.isLoading=gn}dotItemClicked({item:gn,recipient:Mt}){switch(gn.name){case"edit":this.editRecipient({id:Mt.id,firstName:Mt?.firstName,secondName:Mt?.secondName,lastName:Mt?.lastName,birthDate:Mt.birthDate,phoneNumber:Mt.phone,passportSeries:Mt.employeeDocs[0].docSerial,passportNumber:Mt.employeeDocs[0].docNumber,passportIssuedBy:Mt.employeeDocs[0].docOrg,passportIssuedCode:Mt.employeeDocs[0].docOrgCode,passportIssuedDate:Mt.employeeDocs[0].dateOfIssue});break;case"delete":this.documentService.deleteDocument(Mt.id).pipe((0,z.R)(this.destroyed$)).subscribe({next:()=>{this.deleteSubject.next(Mt.id),this.toastCustomService.show("Recipient deleted successfully","success"),this.setLoading(!1)},error:()=>{this.toastCustomService.show("Delete recipient error","error"),this.setLoading(!1)}})}}addClicked(){this.editRecipient()}editRecipient(gn){this.modalService.open(H,{header:"Recipient with passport",overflow:"initial",size:"auto-width",styleMode:"forSign",inputs:{data:gn,editDone:Mt=>{if(!Mt)return;this.setLoading(!0);const $t={firstName:Mt?.firstName??"",secondName:Mt?.secondName??"",lastName:Mt?.lastName??"",citizenship:"\u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0435",birthDate:Mt.birthDate,position:"\u041f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c",phone:Mt.phoneNumber,phoneForSms:Mt.phoneNumber,employeeDocs:[{typeDocument:"21",docSerial:Mt.passportSeries,docNumber:Mt.passportNumber,docOrg:Mt.passportIssuedBy,docOrgCode:Mt.passportIssuedCode,dateOfIssue:Mt.passportIssuedDate}]};gn&&($t.id=gn.id),this.cashOrderService.recipientRequest($t).pipe((0,z.R)(this.destroyed$)).subscribe({next:kn=>{$t.id=kn.id,gn||this.toastCustomService.show("Recipient has been added","success"),this.recipientSubject.next($t),this.setLoading(!1),this.modalService.close()},error:kn=>{this.toastCustomService.show(kn,"error"),this.setLoading(!1)}})}}})}ngOnDestroy(){this.cashOrderService.clearCashRequestList(),this.destroyed$.next(null),this.destroyed$.complete()}initCashRequestList(){this.cashOrderService.cashRequestList$.pipe((0,z.R)(this.destroyed$),(0,X.h)(gn=>null!==gn)).subscribe(gn=>{this.cashRequestList=gn?.documents,this.currentPage=gn?.page,this.currentPage||(this.currentPage=Pe,this.getCashRequestList(this.currentPage))}),this.getCashRequestList(this.currentPage)}static#e=this.\u0275fac=function(Mt){return new(Mt||Wn)(R.\u0275\u0275directiveInject($.F0),R.\u0275\u0275directiveInject(pt.s),R.\u0275\u0275directiveInject(Ht.Z),R.\u0275\u0275directiveInject(ne.j),R.\u0275\u0275directiveInject(G.Z))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Wn,selectors:[["app-cash-order-page"]],inputs:{page:"page"},decls:13,vars:13,consts:[["data-qa","1657867507399",3,"pathData"],["data-qa","1657968436122",1,"cash-order",3,"withCloseButton","withTitle","loading"],["data-qa","1657968442595",1,"tabs-container"],["data-qa","1657867535801",3,"currentIndex","selectTab"],[3,"label",4,"ngFor","ngForOf"],["type","small header","class","header-button","data-qa","1657968446824",3,"text","clicked",4,"ngIf"],["type","small header","class","header-button","data-qa","1657968446825",3,"text","clicked",4,"ngIf"],["class","cash-order-info",4,"ngIf"],["class","cash-order-info--mobile",4,"ngIf"],[1,"document-list"],["data-qa","1657968472224","class","cash-order-list",3,"documentList","currentPage","sizeList","isLoading","ngClass","changePaginationEmit","actionDone",4,"ngIf"],["data-qa","1657867562177",3,"eventsDelete","eventsRecipient","dotItemClicked",4,"ngIf"],[4,"ngIf"],[3,"label"],["type","small header","data-qa","1657968446824",1,"header-button",3,"text","clicked"],["type","small header","data-qa","1657968446825",1,"header-button",3,"text","clicked"],[1,"cash-order-info"],[1,"cash-order-info-wrapper"],["fontSet","material-icons-outlined",1,"cash-order-info__icon"],[1,"cash-order-info__text"],["data-qa","1657876780853","href","/uploads/typical-forms/doverennost_dlya_oper_zala.doc"],[1,"cash-order-info--mobile"],["data-qa","1657968472224",1,"cash-order-list",3,"documentList","currentPage","sizeList","isLoading","ngClass","changePaginationEmit","actionDone"],["data-qa","1657867562177",3,"eventsDelete","eventsRecipient","dotItemClicked"]],template:function(Mt,$t){1&Mt&&(R.\u0275\u0275element(0,"app-path",0),R.\u0275\u0275elementStart(1,"app-page",1)(2,"div",2)(3,"app-tabs",3),R.\u0275\u0275listener("selectTab",function(ai){return $t.onSelectTab(ai)}),R.\u0275\u0275template(4,In,1,1,"app-tab",4),R.\u0275\u0275elementEnd(),R.\u0275\u0275template(5,Dn,2,4,"app-button",5),R.\u0275\u0275template(6,Tn,2,4,"app-button",6),R.\u0275\u0275elementEnd(),R.\u0275\u0275template(7,mn,10,8,"div",7),R.\u0275\u0275template(8,Yn,7,8,"app-collapse-text-block",8),R.\u0275\u0275elementStart(9,"div",9),R.\u0275\u0275template(10,Nn,2,9,"app-alt-document-list",10),R.\u0275\u0275template(11,Bt,1,2,"app-cash-order-recipients-list",11),R.\u0275\u0275template(12,En,1,0,"app-loader",12),R.\u0275\u0275elementEnd()()),2&Mt&&(R.\u0275\u0275property("pathData",$t.pathData),R.\u0275\u0275advance(1),R.\u0275\u0275property("withCloseButton",!1)("withTitle",!1)("loading",!1),R.\u0275\u0275advance(2),R.\u0275\u0275property("currentIndex",$t.tabs.indexOf($t.currentTab)),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngForOf",$t.tabs),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",$t.currentTab.value===$t.TABS.HISTORY),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",$t.currentTab.value===$t.TABS.RECIPIENTS),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",null==$t.cashRequestList?null:$t.cashRequestList.length),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",null==$t.cashRequestList?null:$t.cashRequestList.length),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngIf",$t.currentTab.value===$t.TABS.HISTORY),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",$t.currentTab.value===$t.TABS.RECIPIENTS),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",$t.currentTab.value===$t.TABS.RECIPIENTS&&$t.isLoading))},dependencies:[Wt.R,Xe.c,Qe.n,Be.i,n.mk,n.sg,n.O5,at.l,lt.I,Ge.r,i.Hw,Dt.C,pn,j.X$,n.Ov],styles:['@charset "UTF-8";.cash-order[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede;flex-wrap:wrap-reverse;row-gap:4px}.cash-order[_ngcontent-%COMP%]   .tabs-container.extra-margin[_ngcontent-%COMP%]{margin-bottom:24px}.cash-order[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]   .header-button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;height:47px}@media screen and (max-width: 768px){.cash-order[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]   .header-button[_ngcontent-%COMP%]{margin-top:16px}}.cash-order-info[_ngcontent-%COMP%]{margin-top:32px;border-radius:4px;background:#f1f2f2}.cash-order-info-wrapper[_ngcontent-%COMP%]{padding:16px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;color:#444;display:flex;align-items:center;column-gap:10px}.cash-order-info__text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#2f54eb;font-weight:600;line-height:20px;text-decoration:none;word-break:break-word}.cash-order-info__icon[_ngcontent-%COMP%]{display:block;color:#70b6f6;width:18px;height:17px;min-width:18px;min-height:17px;font-size:18px}.cash-order-info--mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 768px){.cash-order-info[_ngcontent-%COMP%]{display:none}.cash-order-info--mobile[_ngcontent-%COMP%]{display:block;margin-top:32px}}.cash-order[_ngcontent-%COMP%]   .document-list[_ngcontent-%COMP%]{position:relative}.cash-order[_ngcontent-%COMP%]   .document-list[_ngcontent-%COMP%]   .cash-order-list[_ngcontent-%COMP%]{display:block}.cash-order[_ngcontent-%COMP%]   .document-list[_ngcontent-%COMP%]   .cash-order-list.extra-margin[_ngcontent-%COMP%]{margin-top:32px}app-path[_ngcontent-%COMP%]{display:block;margin-bottom:24px}']})}(0,T.gn)([(0,j.SQ)()],Wn.prototype,"lang",void 0);let rn=(()=>{class Zn{constructor(){this.CashOrderTabs=Z}static#e=this.\u0275fac=function($t){return new($t||Zn)};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Zn,selectors:[["app-cash-order-recipients"]],decls:1,vars:1,consts:[["data-qa","1657867745370",3,"page"]],template:function($t,kn){1&$t&&R.\u0275\u0275element(0,"app-cash-order-page",0),2&$t&&R.\u0275\u0275property("page",kn.CashOrderTabs.RECIPIENTS)},dependencies:[Wn]})}return Zn})();var Sn=t(54409),ke=t(95698),ge=t(62557),q=t(63900),J=t(4128),Oe=t(39646),je=t(7052),Et=(()=>{return(Zn=Et||(Et={})).FIRST="1",Zn.SECOND="2",Et;var Zn})();const dt=[{name:"\u0414\u0430\u0442\u0430 \u0438 \u0430\u0434\u0440\u0435\u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f",stepNumberStr:Et.FIRST},{name:"\u0421\u0443\u043c\u043c\u0430 \u0438 \u0446\u0435\u043b\u0438 \u0440\u0430\u0441\u0445\u043e\u0434\u0430",stepNumberStr:Et.SECOND}];var qe=t(18505),ze=t(6146),zt=t(37601);let vt=(()=>{class Zn{constructor(Mt,$t,kn,ai){this.cashOrderService=Mt,this.userDataService=$t,this.toastCustomService=kn,this.router=ai,this._initialData=new I.X(null),this.initialData$=this._initialData.asObservable().pipe((0,Yt.n)(qi=>null===qi)),this._currentStep=new I.X(Et.FIRST),this.currentStep$=this._currentStep.asObservable(),this._currentCashOrderData=new I.X(null),this.currentCashOrderData$=this._currentCashOrderData.asObservable().pipe((0,Yt.n)(qi=>null===qi)),this._notificationInfoBlockData=new I.X(null),this.notificationInfoBlockData$=this._notificationInfoBlockData.asObservable().pipe((0,Yt.n)(qi=>null===qi))}initData(Mt){(0,J.D)({order:Mt?this.cashOrderService.getCashOrderById(Mt).pipe((0,qe.b)($t=>{$t||(this.toastCustomService.show("Document not found","error"),setTimeout(()=>{this.router.navigate(["zakaz_nalichnyh"])},1e3))})):(0,Oe.of)(null),clientInfo:this.userDataService.getClientInfoOrganization(),nextDocumentData:Mt?(0,Oe.of)(null):this.cashOrderService.getCashOrderNextDocNumber(),cashOrderParams:this.cashOrderService.getCashOrderParams(),places:this.cashOrderService.getPlaces(),recipients:this.cashOrderService.getRecipients()}).subscribe({next:$t=>{let kn={docNumber:"",docDate:new Date,docModule:"ibankul",docType:ze.o.RequestReceiveCash};if($t.order){const ai=$t.order.requestReceiveCash.docNumber.split(" ");kn={...$t.order.requestReceiveCash,docNumber:2===ai.length?`${ai[0]} ${ai[1].padStart(7,"0")}`:ai.toString()}}if($t?.nextDocumentData?.docNumber){const ai=`0000000${$t.nextDocumentData.docNumber}`;kn.docNumber=`\u0417\u041d ${ai.substring(ai.length-7)}`}this._initialData.next({clientInfo:$t.clientInfo,nextDocumentData:$t.nextDocumentData,cashOrderParams:$t.cashOrderParams,places:$t.places,recipients:$t.recipients}),this._currentCashOrderData.next(kn)},error:$t=>{this.toastCustomService.errorHandle($t),setTimeout(()=>{this.router.navigate(["/"])},1e3),console.error($t)}})}clearAllCashOrderData(){this._initialData.next(null),this._currentStep.next(Et.FIRST),this._currentCashOrderData.next(null),this._notificationInfoBlockData.next(null)}setCurrentStep(Mt){this._currentStep.next(Mt)}getCurrentStep(){return this._currentStep.getValue()}setCurrentCashOrderData(Mt){this._currentCashOrderData.next(Mt)}getCurrentCashOrderData(){return this._currentCashOrderData.getValue()}setInfoBlockData(Mt){this._notificationInfoBlockData.next(Mt)}static#e=this.\u0275fac=function($t){return new($t||Zn)(R.\u0275\u0275inject(pt.s),R.\u0275\u0275inject(zt.M),R.\u0275\u0275inject(ne.j),R.\u0275\u0275inject($.F0))};static#t=this.\u0275prov=R.\u0275\u0275defineInjectable({token:Zn,factory:Zn.\u0275fac,providedIn:"root"})}return Zn})();var Rt=t(15644),gt=t(17916),sn=t(62256),wn=t(18455),Qn=t(88155);function pi(Zn,gn){1&Zn&&(R.\u0275\u0275elementStart(0,"mat-error",16),R.\u0275\u0275text(1," \u0412\u044b\u0431\u0440\u0430\u043d \u043d\u0435\u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0434\u0435\u043d\u044c "),R.\u0275\u0275elementEnd())}class Ei{constructor(gn,Mt,$t,kn,ai,qi,eo){this.cashOrderPageComponent=gn,this.cashOrderStoreService=Mt,this.cashOrderService=$t,this.fb=kn,this.toastCustomService=ai,this.configUtilService=qi,this.workdayService=eo,this.isLoading=new R.EventEmitter(!0),this.selectPlaces=[],this.selectOffices=[],this.selectRecipients=[],this.form=this.fb.group({receiverEmployeeId:new e.FormControl(""),receiveDate:new e.FormControl("",[e.Validators.required],je.h.createValidator(this.workdayService)),place:new e.FormControl(""),bankName:new e.FormControl("")}),this.cashOrderPlaceOnEditInit=null,this.currentCashOrderPlace=null,this.receiveMinDate=new Date,this.receiveMaxDate=P()(new Date).add(20,"days").toDate(),this.CASH_ORDER_FORM_STEPS_INFO_TEXT="\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0435\u043d\u0435\u0433 \u0431\u0435\u0437 \u0434\u043e\u043f. \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0435 \u043f\u043e\u0437\u0434\u043d\u0435\u0435 12:30 \u0447\u0430\u0441\u043e\u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0434\u043d\u044f, \u043f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u043d\u044e \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043a\u0430\u0437\u0430.\n\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0435\u043d\u0435\u0436\u043d\u043e\u0433\u043e \u0447\u0435\u043a\u0430 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f, \u0432\u044b\u0434\u0430\u0447\u0430 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0440\u0430\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u0430\u0441\u0441\u043e\u0432\u043e\u043c\u0443 \u043e\u0440\u0434\u0435\u0440\u0443, \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e \u0437\u0430\u044f\u0432\u043a\u0435",this.required=e.Validators.required,this.destroyed$=new F.x}ngOnInit(){this.initForm()}initForm(){(0,ge.$)([this.cashOrderStoreService.initialData$,this.cashOrderStoreService.currentCashOrderData$]).pipe((0,ke.q)(1),(0,z.R)(this.destroyed$)).subscribe(([gn,Mt])=>{if(this.order=Mt,gn?.places){this.places=gn.places;const $t=Object.keys(this.places).map(kn=>({value:kn,caption:kn}));this.selectPlaces=$t.sort((kn,ai)=>kn.caption.localeCompare(ai.caption))}gn.recipients&&this.setSelectRecipients(gn.recipients),this.patchForm(),this.subscribeOnFormChanges(),this.isLoading.emit(!1)})}addRecipient(){this.cashOrderPageComponent.addClicked(),this.cashOrderPageComponent.recipientSubject.pipe((0,Yt.n)(gn=>null===gn),(0,q.w)(gn=>(0,J.D)([this.cashOrderService.getRecipients(),(0,Oe.of)(gn)])),(0,z.R)(this.destroyed$)).subscribe(([gn,Mt])=>{if(gn&&Mt){this.setSelectRecipients(gn);const $t=this.selectRecipients.find(kn=>kn.value===Mt.id);setTimeout(()=>{this.form.get("receiverEmployeeId").setValue($t.value)}),this.form.get("receiverEmployeeId").updateValueAndValidity()}})}validateDate(gn){this.form.get("receiveDate").setErrors(gn?{incorrect:!0}:null)}goToSecondStep(){if(this.formsValidate()){const gn={...this.cashOrderStoreService.getCurrentCashOrderData(),receiverEmployeeId:this.form.get("receiverEmployeeId").value||void 0,branchCode:this.form.get("bankName").value||void 0,receiveDate:this.form.get("receiveDate").value||void 0,place:this.form.get("place").value||void 0};if(this.cashOrderPlaceOnEditInit?.bankBik!==this.currentCashOrderPlace?.bankBik){const Mt=this.configUtilService.getArray(gn.sourcesOfIncome);Mt.forEach($t=>{$t.amount="",$t.sourcesIncome=""}),gn.sourcesOfIncome=Mt}this.setDataForNotificationBlock(),this.cashOrderStoreService.setCurrentCashOrderData(gn),this.cashOrderStoreService.setCurrentStep(Et.SECOND),this.toastCustomService.closeAllErrorToasts()}}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}setDataForNotificationBlock(){const gn=this.cashRecipients.find(kn=>this.form.get("receiverEmployeeId").value===kn.id),Mt=this.places[this.form.get("place").value].find(kn=>this.form.get("bankName").value===kn.branchId),$t={title:`\u0414\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f: ${P()(this.form.get("receiveDate").value).format("DD.MM.YYYY")}`,receiverName:`${gn?.lastName} ${gn?.firstName} ${gn?.secondName}`,cashRegister:`${this.configUtilService.capitalizeFirstLetter(Mt.place.toLowerCase())}, ${Mt.name}`};this.cashOrderStoreService.setInfoBlockData($t)}setSelectRecipients(gn){this.cashRecipients=gn,this.selectRecipients=gn.map(Mt=>({value:Mt.id,caption:`${Mt.lastName} ${Mt.firstName} ${Mt.secondName} (${Mt.position})`}))}subscribeOnFormChanges(){this.form.get("place").valueChanges.pipe((0,z.R)(this.destroyed$)).subscribe(gn=>{this.selectOffices=(this.places[gn]||[]).map(Mt=>({value:Mt.branchId,caption:Mt.name})),this.selectOffices.find(Mt=>Mt.value===this.form.get("bankName").value)||this.form.get("bankName").setValue("")}),this.form.get("bankName").valueChanges.pipe((0,z.R)(this.destroyed$)).subscribe(gn=>{const Mt=this.form.get("place")?.value;Mt&&(this.currentCashOrderPlace=this.places[Mt].find($t=>gn===$t.branchId))})}formsValidate(){return this.errBox=new e.FormControl({}),this.form.get("receiverEmployeeId").setValidators([e.Validators.required]),this.form.get("place").setValidators([e.Validators.required]),this.form.get("bankName").setValidators([e.Validators.required]),this.formValidate(this.form),this.errBox.hasError("required")?(this.toastCustomService.show("Fill in the required fields on the form","error"),!1):this.form.get("receiveDate").hasError("isWeekend")?(this.toastCustomService.show("Attention! The selected date is a non-working day. Please select another date.","error"),!1):this.errBox.errors?(this.toastCustomService.show(this.getErrorMessage()||"Unknown error","error"),!1):this.form.valid}getErrorMessage(){if(this.errBox.hasError("matDatepickerFilter"))return"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f"}updateValidity(gn){Object.keys(gn.controls).forEach(Mt=>{const $t=gn.get(Mt);$t&&"receiveDate"!==Mt&&$t.updateValueAndValidity()})}formValidate(gn){this.updateValidity(this.form),Object.keys(gn.controls).forEach(Mt=>{const $t=gn.get(Mt);!$t.value&&$t.validator&&$t.setErrors({...$t.errors,required:!0}),$t&&$t.errors&&(this.errBox.setErrors({...this.errBox.errors,...$t.errors}),$t.markAsTouched())})}patchForm(){if(this.order){let gn="",Mt="";Object.keys(this.places).some(ai=>{const qi=this.places[ai].find(eo=>eo.branchId===this.order.branchCode);return this.order?.accNumber&&(this.cashOrderPlaceOnEditInit=qi),gn=qi?.place||"",Mt=qi?.branchId||"",!!gn.length});const $t=this.order.receiverEmployeeId?this.selectRecipients.find(ai=>ai.value===parseFloat(this.order.receiverEmployeeId).toString()).value:"";gn.length&&(this.selectOffices=(this.places[gn]||[]).map(ai=>({value:ai.branchId,caption:ai.name})));let kn=!1;this.order?.receiveDate&&(kn=P()(this.order.receiveDate).isBefore(P()(),"day")),setTimeout(()=>{this.form.patchValue({...this.order,place:gn,bankName:Mt,receiverEmployeeId:$t,receiveDate:this.order?.receiveDate&&!kn?P()(this.order.receiveDate,"YYYY-MM-DD").toDate():""})})}}static#e=this.\u0275fac=function(Mt){return new(Mt||Ei)(R.\u0275\u0275directiveInject(Wn),R.\u0275\u0275directiveInject(vt),R.\u0275\u0275directiveInject(pt.s),R.\u0275\u0275directiveInject(e.FormBuilder),R.\u0275\u0275directiveInject(ne.j),R.\u0275\u0275directiveInject(Rt.Pj),R.\u0275\u0275directiveInject(gt.E))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Ei,selectors:[["app-cash-order-request-create-first-step"]],outputs:{isLoading:"isLoading"},features:[R.\u0275\u0275ProvidersFeature([Wn])],decls:21,vars:29,consts:[[1,"cash-order-create-first-step"],[3,"text"],[1,"cash-order-create-first-step-form",3,"formGroup"],[1,"cash-order-create-first-step-form__header","mr24"],[1,"cash-order-create-first-step-form__row","mr15"],["placeholder","\u0414\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f","data-qa","1657868200784","formControlName","receiveDate",1,"form-field",3,"appearance","autosize","customValue","minDate","maxDate","isRequired","title","readOnly","isInvalidDate"],["data-qa","1657868229965",4,"ngIf"],["customIcon","expand_more","appearance","dcb-alt","data-qa","1657868241532","formControlName","place",1,"form-field",3,"items","placeholder","title"],[1,"cash-order-create-first-step-form__row"],["customIcon","expand_more","appearance","dcb-alt","data-qa","1657868246559","formControlName","bankName",1,"form-field",3,"items","placeholder","title"],[1,"cash-order-create-first-step-form__header"],["customIcon","expand_more","appearance","dcb-alt","data-qa","1657868190551","formControlName","receiverEmployeeId",1,"form-field",3,"isReceiver","items","placeholder","title"],[1,"cash-order-create-first-step-form__row-button"],["type","empty-bordered","text","New recipient",3,"clicked"],[1,"cash-order-create-first-step__buttons"],["type","small header","text","Next",1,"cash-order-create-first-step__buttons--button",3,"clicked"],["data-qa","1657868229965"]],template:function(Mt,$t){1&Mt&&(R.\u0275\u0275elementStart(0,"section",0),R.\u0275\u0275element(1,"app-collapse-text-block",1),R.\u0275\u0275elementStart(2,"div",2)(3,"div",3),R.\u0275\u0275text(4),R.\u0275\u0275pipe(5,"translate"),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(6,"div",4)(7,"app-metib-datepicker",5),R.\u0275\u0275listener("isInvalidDate",function(ai){return $t.validateDate(ai)}),R.\u0275\u0275template(8,pi,2,0,"mat-error",6),R.\u0275\u0275elementEnd(),R.\u0275\u0275element(9,"app-metib-select",7),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(10,"div",8),R.\u0275\u0275element(11,"app-metib-select",9),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(12,"div",10),R.\u0275\u0275text(13),R.\u0275\u0275pipe(14,"translate"),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(15,"div",8),R.\u0275\u0275element(16,"app-metib-select",11),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(17,"div",12)(18,"app-button",13),R.\u0275\u0275listener("clicked",function(){return $t.addRecipient()}),R.\u0275\u0275elementEnd()()(),R.\u0275\u0275elementStart(19,"div",14)(20,"app-button",15),R.\u0275\u0275listener("clicked",function(){return $t.goToSecondStep()}),R.\u0275\u0275elementEnd()()()),2&Mt&&(R.\u0275\u0275advance(1),R.\u0275\u0275property("text",$t.CASH_ORDER_FORM_STEPS_INFO_TEXT),R.\u0275\u0275advance(1),R.\u0275\u0275property("formGroup",$t.form),R.\u0275\u0275advance(2),R.\u0275\u0275textInterpolate(R.\u0275\u0275pipeBind2(5,23,"Date and address",$t.lang)),R.\u0275\u0275advance(3),R.\u0275\u0275property("appearance","dcb")("autosize",!0)("customValue",$t.form.get("receiveDate").value)("minDate",$t.receiveMinDate)("maxDate",$t.receiveMaxDate)("isRequired",!0)("title","\u0414\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f")("readOnly",!0),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",$t.form.get("receiveDate").hasError("isWeekend")),R.\u0275\u0275advance(1),R.\u0275\u0275property("items",$t.selectPlaces)("placeholder","City")("title","City"),R.\u0275\u0275advance(2),R.\u0275\u0275property("items",$t.selectOffices)("placeholder","Bank Office")("title","Bank Office"),R.\u0275\u0275advance(2),R.\u0275\u0275textInterpolate(R.\u0275\u0275pipeBind2(14,26,"Recipient",$t.lang)),R.\u0275\u0275advance(3),R.\u0275\u0275property("isReceiver",!0)("items",$t.selectRecipients)("placeholder","\u041f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0435\u043d\u0435\u0433")("title","\u041f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0435\u043d\u0435\u0433"))},dependencies:[sn.A,wn.nI,Qn.A,n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,Ge.r,Dt.C,j.X$],styles:['@charset "UTF-8";.cash-order-create-first-step[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.cash-order-create-first-step-form__header[_ngcontent-%COMP%]{color:#080708;font-size:18px;font-style:normal;font-weight:700;line-height:24px;padding-bottom:12px;margin-top:40px}.cash-order-create-first-step-form__header.mr24[_ngcontent-%COMP%]{margin-top:24px}.cash-order-create-first-step-form__row[_ngcontent-%COMP%]{display:flex;column-gap:20px;row-gap:20px}@media screen and (max-width: 768px){.cash-order-create-first-step-form__row[_ngcontent-%COMP%]{flex-wrap:wrap}}.cash-order-create-first-step-form__row.mr15[_ngcontent-%COMP%]{margin-bottom:15px}.cash-order-create-first-step-form__row[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{flex-grow:1;width:50%}.cash-order-create-first-step-form__row-button[_ngcontent-%COMP%]{display:flex;margin-top:32px;width:-moz-fit-content;width:fit-content}.cash-order-create-first-step__info[_ngcontent-%COMP%]{font-size:16px;color:#444;margin-top:24px}.cash-order-create-first-step__buttons[_ngcontent-%COMP%]{display:flex;column-gap:16px;margin-top:48px}.cash-order-create-first-step[_ngcontent-%COMP%]   .mini-info[_ngcontent-%COMP%]{color:#444;display:flex;flex-direction:column;padding:4px 20px 20px 48px}.cash-order-create-first-step[_ngcontent-%COMP%]   .mini-info__title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:20px;margin-top:0;margin-bottom:12px}.cash-order-create-first-step[_ngcontent-%COMP%]   .mini-info__text-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px}.cash-order-create-first-step[_ngcontent-%COMP%]   .mini-info__text-info-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:12px}.cash-order-create-first-step[_ngcontent-%COMP%]   .mini-info__text[_ngcontent-%COMP%]{font-size:14px;line-height:20px;font-weight:400}.cash-order-create-first-step[_ngcontent-%COMP%]   .mini-info__block[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:20px}mat-error[_ngcontent-%COMP%]{color:#d9291e;font-weight:400;font-size:14px}']})}(0,T.gn)([(0,j.SQ)()],Ei.prototype,"lang",void 0);var ki=t(36738),Co=t(54004),xo=t(10956),no=t(71884),Qo=t(53065),Mo=t(98504);function po(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"mat-icon",15),R.\u0275\u0275listener("click",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext().index,ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.closeLine(kn))}),R.\u0275\u0275elementEnd()}if(2&Zn){const Mt=R.\u0275\u0275nextContext().index;R.\u0275\u0275attribute("data-qa","1657867873368"+Mt)}}function Io(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-button",16),R.\u0275\u0275listener("clicked",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext().index,ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.closeLine(kn))}),R.\u0275\u0275elementEnd()}}function en(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"app-metib-select",9),R.\u0275\u0275listener("ngModelChange",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(ai.onChangeSelect(kn))}),R.\u0275\u0275elementEnd()(),R.\u0275\u0275elementStart(5,"div",8),R.\u0275\u0275element(6,"app-metib-input",10),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(7,"div",8)(8,"app-metib-input",11),R.\u0275\u0275listener("ngModelChange",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.onAmountChange())}),R.\u0275\u0275elementEnd()()(),R.\u0275\u0275elementStart(9,"div",12),R.\u0275\u0275template(10,po,1,1,"mat-icon",13),R.\u0275\u0275template(11,Io,1,0,"app-button",14),R.\u0275\u0275elementEnd()()()}if(2&Zn){const Mt=gn.$implicit,$t=gn.index,kn=R.\u0275\u0275nextContext();R.\u0275\u0275attribute("data-qa","1657867797679"+$t),R.\u0275\u0275advance(1),R.\u0275\u0275property("formGroup",kn.getFormGroup(Mt)),R.\u0275\u0275advance(3),R.\u0275\u0275property("formControlName",kn.config.select.name)("items",kn.config.select.items)("placeholder",kn.config.select.title)("title",kn.config.select.title),R.\u0275\u0275attribute("data-qa","1657867845480"+$t),R.\u0275\u0275advance(2),R.\u0275\u0275property("field",kn.config.inputAmount)("formControlName",kn.config.inputAmount.name)("mask",kn.numberMask)("title",kn.config.inputAmount.title),R.\u0275\u0275attribute("data-qa","1657867859687"+$t),R.\u0275\u0275advance(2),R.\u0275\u0275property("field",kn.config.inputCalcSum)("formControlName",kn.config.inputCalcSum.name)("hint",kn.getHint(Mt))("mask",kn.amountMask)("readonly",!0)("title",kn.config.inputCalcSum.title),R.\u0275\u0275attribute("data-qa","1657867865537"+$t),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngIf",$t>0),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",$t>0)}}let tt=(()=>{class Zn{constructor(Mt,$t,kn){this.cashOrderService=Mt,this.currencyPipe=$t,this.fb=kn,this.config=this.defaultConfig,this.balance=0,this.numberMask={TextMask:(0,Qo.createNumberMask)({prefix:"",allowDecimal:!1,thousandsSeparatorSymbol:""})},this.amountMask={TextMask:(0,xo.z3)(2),type:"amount",stripMask:!0,decimalSymbol:"."},this.formContainer=this.fb.group({forms:this.fb.array([])}),this.destroyed$=new F.x}get forms(){return this.formContainer.controls.forms}get defaultConfig(){return{actionAddTitle:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0443\u043f\u044e\u0440\u044b",select:{title:"\u041d\u043e\u043c\u0438\u043d\u0430\u043b",name:"banknote",items:[{caption:"5000",value:"5000"},{caption:"1000",value:"1000"},{caption:"500",value:"500"},{caption:"100",value:"100"},{caption:"50",value:"50"},{caption:"10",value:"10"},{caption:"5",value:"5"},{caption:"2",value:"2"},{caption:"1",value:"1"},{caption:"0.5",value:"0.5"},{caption:"0.1",value:"0.1"}],validators:[e.Validators.required]},inputAmount:{title:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0443\u043f\u044e\u0440",name:"numberBanknotes",validators:[e.Validators.required]},inputCalcSum:{title:"\u0421\u0443\u043c\u043c\u0430",name:"sum"}}}ngOnInit(){const Mt=pt.s.arrayWrap(this.banknoteSelection);Mt&&Mt.length>0?Mt.forEach($t=>{this.addLine($t)}):this.addLine(),this.cashOrderService.totalAmount$.pipe((0,z.R)(this.destroyed$)).subscribe($t=>{this.balanceCalc($t),this.formsValidate()})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}closeLine(Mt){this.forms.removeAt(Mt),this.onAmountChange()}addLine(Mt){this.forms.push(this.createForm(Mt))}createForm(Mt){const $t=this.fb.group({});return $t.addControl(this.config.select.name,new e.UntypedFormControl(Mt?Mt.key:"",this.config.select.validators)),$t.addControl(this.config.inputAmount.name,new e.UntypedFormControl(Mt?Mt.value.$:null,this.config.inputAmount.validators)),$t.addControl(this.config.inputCalcSum.name,new e.UntypedFormControl(Mt?parseFloat(Mt.value.$)*parseFloat(Mt.key):"",this.config.inputCalcSum.validators)),$t.get(this.config.inputAmount.name).valueChanges.pipe((0,no.x)(),(0,z.R)(this.destroyed$)).subscribe(()=>{this.sumCalc($t)}),$t.get(this.config.inputCalcSum.name).valueChanges.pipe((0,no.x)(),(0,z.R)(this.destroyed$)).subscribe(kn=>{const ai=$t.get(this.config.inputAmount.name),qi=$t.get(this.config.select.name);if(qi.value&&+kn>=+qi.value){const eo=Math.round(+kn/+qi.value);+ai.value!==eo&&ai.setValue(eo)}this.formsValidate()}),$t.get(this.config.select.name).valueChanges.pipe((0,no.x)(),(0,z.R)(this.destroyed$)).subscribe(()=>{this.sumCalc($t)}),$t}sumCalc(Mt){const ai=+Mt.get(this.config.select.name).value*(isNaN(Mt.get(this.config.inputAmount.name).value)?0:+Mt.get(this.config.inputAmount.name).value),qi=Mt.get(this.config.inputCalcSum.name);+qi.value!==ai&&qi.setValue(ai),this.balanceCalc(),this.formsValidate()}formsValidate(){this.forms.controls.forEach(Mt=>{this.amountCalcValidate(Mt)})}amountCalcValidate(Mt){const $t=Mt.get(this.config.inputCalcSum.name),kn=Number($t.value),ai=Number(Mt.get(this.config.select.name).value.replace(/\s+/g,"")),qi=Number.parseInt(Mt.get(this.config.inputAmount.name).value);$t.setErrors(null),$t.markAsUntouched(),0===kn?($t.setErrors({required:!0}),$t.markAsTouched()):this.balance<0?($t.setErrors({exceedBalanceBanknote:!0}),$t.markAsTouched()):ai>=1&&kn%ai!=0||ai<1&&(qi*(100*ai)).toFixed(2)!==(100*kn).toFixed(2)?($t.setErrors({notMultipleBanknote:!0}),$t.markAsTouched()):this.balance>0&&($t.setErrors({undistributedBalanceBanknote:this.currencyPipe.transform(this.balance)+" \u20bd"}),$t.markAsTouched())}onAmountChange(){this.balanceCalc(),this.formsValidate()}getHint(Mt){const $t=Mt.get(this.config.inputCalcSum.name);if($t.errors){if($t.hasError("exceedBalanceBanknote"))return{text:"\u0421\u0443\u043c\u043c\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u0442\u043e\u043a"};if($t.hasError("notMultipleBanknote"))return{text:"\u0421\u0443\u043c\u043c\u0430 \u043d\u0435 \u043a\u0440\u0430\u0442\u043d\u0430 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u0443"}}return $t.updateValueAndValidity(),{text:"\u041e\u0441\u0442\u0430\u0442\u043e\u043a: "+this.currencyPipe.transform(this.balance)}}balanceCalc(Mt){let $t=0;this.balance=Mt?Number(Mt):this.cashOrderService.totalAmount$.value,this.forms.controls.forEach(kn=>{$t+=Number(kn.get(this.config.inputCalcSum.name).value)||0}),this.balance=this.balance-$t}onChangeSelect(Mt){this.selectedNominal=this.config.select.items.find($t=>$t.value===Mt)}getFormGroup(Mt){return Mt}static#e=this.\u0275fac=function($t){return new($t||Zn)(R.\u0275\u0275directiveInject(pt.s),R.\u0275\u0275directiveInject(Mo.H),R.\u0275\u0275directiveInject(e.UntypedFormBuilder))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Zn,selectors:[["app-cash-order-block-banknotes"]],inputs:{config:"config",banknoteSelection:"banknoteSelection"},decls:5,vars:2,consts:[["data-qa","1657867774790",1,"cash-order-banknotes",3,"formGroup"],[1,"cash-order-banknotes","form-wrapper"],["formArrayName","forms",4,"ngFor","ngForOf"],[1,"cash-order-banknotes__button"],["type","empty-bordered","text","Add more",1,"cash-order-banknotes__button--more",3,"clicked"],["formArrayName","forms"],[1,"cash-order-banknotes__form-row",3,"formGroup"],[1,"form-row"],[1,"form-row-item"],["appearance","dcb-alt","customIcon","expand_more",1,"form-row__field",3,"formControlName","items","placeholder","title","ngModelChange"],["appearance","dcb",1,"form-row__field",3,"field","formControlName","mask","title"],["appearance","dcb",1,"form-row__field",3,"field","formControlName","hint","mask","readonly","title","ngModelChange"],[1,"form-row__icon"],["svgIcon","delete-custom",3,"click",4,"ngIf"],["type","empty-bordered","text","Delete",3,"clicked",4,"ngIf"],["svgIcon","delete-custom",3,"click"],["type","empty-bordered","text","Delete",3,"clicked"]],template:function($t,kn){1&$t&&(R.\u0275\u0275elementStart(0,"div",0)(1,"div",1),R.\u0275\u0275template(2,en,12,21,"div",2),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(3,"div",3)(4,"app-button",4),R.\u0275\u0275listener("clicked",function(){return kn.addLine()}),R.\u0275\u0275elementEnd()()()),2&$t&&(R.\u0275\u0275property("formGroup",kn.formContainer),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngForOf",kn.forms.controls))},dependencies:[xe.w,Qn.A,n.sg,n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,e.FormArrayName,Ge.r,i.Hw],styles:[".cash-order-banknotes__form-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;column-gap:12px;row-gap:20px}.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]{display:flex;gap:20px}@media screen and (max-width: 768px){.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]{width:100%;flex-wrap:wrap}}.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row-item[_ngcontent-%COMP%]{width:194px}@media screen and (max-width: 768px){.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row-item[_ngcontent-%COMP%]{width:100%}}.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row__field[_ngcontent-%COMP%]{display:block}.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row__icon[_ngcontent-%COMP%]{display:flex;align-items:center}.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row__icon[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 768px){.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row__icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:none}.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row__icon[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{display:block}}.cash-order-banknotes__form-row[_ngcontent-%COMP%]   .form-row__icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{cursor:pointer}.cash-order-banknotes.form-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px}.cash-order-banknotes__button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;display:block;margin-top:32px}@media screen and (max-width: 768px){.cash-order-banknotes__button[_ngcontent-%COMP%]{width:100%}}"]})}return Zn})();const nt={actionAddTitle:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0443\u043f\u044e\u0440\u044b",select:{title:"\u041d\u043e\u043c\u0438\u043d\u0430\u043b",name:"banknote",items:[{caption:"5000",value:"5000"},{caption:"1000",value:"1000"},{caption:"500",value:"500"},{caption:"100",value:"100"},{caption:"50",value:"50"},{caption:"10",value:"10"},{caption:"5",value:"5"},{caption:"2",value:"2"},{caption:"1",value:"1"},{caption:"0.5",value:"0.5"},{caption:"0.1",value:"0.1"}],validators:[]},inputAmount:{title:"\u041a\u043e\u043b-\u0432\u043e \u043a\u0443\u043f\u044e\u0440",name:"numberBanknotes",validators:[]},inputCalcSum:{title:"\u0421\u0443\u043c\u043c\u0430",name:"sum"},dataQa:"1660031500556"},De={text:"",icon:"mark",cssClass:"gray fw400",isExpandable:!0};var At=t(44509);function Ae(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"app-metib-select",10),R.\u0275\u0275listener("ngModelChange",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.processFormsSelectItems())}),R.\u0275\u0275elementEnd()()(),R.\u0275\u0275elementStart(5,"div",8)(6,"div",9),R.\u0275\u0275element(7,"app-metib-input",11),R.\u0275\u0275pipe(8,"currencySymbol"),R.\u0275\u0275elementEnd()(),R.\u0275\u0275elementStart(9,"div",8)(10,"div",9)(11,"app-metib-input",12),R.\u0275\u0275listener("ngModelChange",function(){const ai=R.\u0275\u0275restoreView(Mt).index,qi=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(qi.onTargetTextChange(qi.config.inputText.name,ai))}),R.\u0275\u0275elementEnd()()()()()}if(2&Zn){const Mt=gn.$implicit,$t=gn.index,kn=R.\u0275\u0275nextContext();R.\u0275\u0275attribute("data-qa","1657868045229"+$t),R.\u0275\u0275advance(1),R.\u0275\u0275property("formGroup",kn.getFormGroup(Mt)),R.\u0275\u0275attribute("data-qa","1657868053027"+$t),R.\u0275\u0275advance(3),R.\u0275\u0275property("formControlName",kn.config.select.name)("items",kn.formsSelectItems[$t])("placeholder",kn.config.select.title)("title",kn.config.select.title),R.\u0275\u0275attribute("data-qa","1657868056330"+$t),R.\u0275\u0275advance(3),R.\u0275\u0275property("field",kn.config.inputAmount)("formControlName",kn.config.inputAmount.name)("hint",kn.getHint(Mt))("mask",kn.amountMask)("title",kn.config.inputAmount.title+", "+R.\u0275\u0275pipeBind2(8,20,kn.currencyCode,!0))("maxLength",null==kn.maxLengthsList[$t]?null:kn.maxLengthsList[$t].maxAmountLength),R.\u0275\u0275attribute("data-qa","1657868063701"+$t),R.\u0275\u0275advance(4),R.\u0275\u0275property("field",kn.config.inputText)("formControlName",kn.config.inputText.name)("title",kn.config.inputText.title)("maxLength",null==kn.maxLengthsList[$t]?null:kn.maxLengthsList[$t].maxTextLength),R.\u0275\u0275attribute("data-qa","1657868073981"+$t)}}function bt(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-button",13),R.\u0275\u0275listener("clicked",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.closeLine())}),R.\u0275\u0275elementEnd()}}let Le=(()=>{class Zn{set availableNumberOfCharacters(Mt){this._availableNumberOfCharacters=Mt,this.forms?.length&&this.updateFieldsMaxLength()}constructor(Mt,$t,kn){this.cashOrderService=Mt,this.currencyPipe=$t,this.fb=kn,this.amountChanged=new R.EventEmitter,this.formsSelectItems=[],this.maxLengthsList=[],this.formContainer=this.fb.group({forms:this.fb.array([])}),this.amountMask={TextMask:(0,xo.z3)(2),type:"amount",stripMask:!0,decimalSymbol:"."},this.totalAmount=0,this._destroyed$=new F.x}get forms(){return this.formContainer.controls.forms}ngOnInit(){const Mt=pt.s.arrayWrap(this.sourcesOfIncome);Mt&&Mt.length>0?(Mt.forEach($t=>{this.addLine($t)}),this.onAmountChange()):this.addLine()}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}addLine(Mt){const $t=this.fb.group({}),kn=new e.UntypedFormControl(!1);$t.addControl("isShowAmountHint",kn),this.forms.push($t),$t.addControl(this.config.select.name,new e.UntypedFormControl(Mt?Mt.symbol:"",this.config.select.validators));const ai=new e.UntypedFormControl(Mt?Mt.amount:"",this.config.inputAmount.validators);$t.addControl(this.config.inputAmount.name,ai),ai.valueChanges.pipe((0,z.R)(this._destroyed$)).subscribe(()=>{this.onAmountChange(),kn&&kn.setValue(!0)}),$t.addControl(this.config.inputText.name,new e.UntypedFormControl(Mt?Mt.sourcesIncome:"",this.config.inputText.validators)),!Mt&&1===this.config.select.items.length&&($t.get(this.config.select.name)?.setValue(this.config.select.items[0].value),$t.get(this.config.select.name)?.updateValueAndValidity()),this.formsSelectItems.push([...this.config.select.items]),this.maxLengthsList.push({maxAmountLength:null,maxTextLength:null}),this.cashOrderService.totalAmount$.pipe((0,z.R)(this._destroyed$)).subscribe(qi=>{this.totalAmount=qi,this.updateAddButtonAvailability()}),this.updateFieldsMaxLength(),this.processFormsSelectItems()}onAmountChange(Mt,$t,kn){const ai=this.cashOrderService.totalAmount$.value-this.calculateDistributedAmount();this.cashOrderService.totalBalance$.next(ai),this.updateFieldsMaxLength(Mt,kn),this.amountChanged.emit()}calculateDistributedAmount(){let Mt=0;return this.forms.controls.forEach($t=>{const kn=$t.get(this.config.inputAmount.name);Mt+=Number(kn.value)||0}),this.cashOrderService.distributedAmount$.next(Mt),Mt}onTargetTextChange(Mt,$t){this.updateFieldsMaxLength(Mt,$t)}updateFieldsMaxLength(Mt,$t){let kn=0,ai=0;this.forms.controls.forEach(qi=>{const eo=qi.get(this.config.inputAmount.name),Fo=/^(0|0?[1-9]\d*)\.\d\d$/.test(eo?.value)?7:10;ai+=(eo?.value?.length||0)+Fo;const Zi=qi.get(this.config.inputText.name);kn+=(Zi?.value?.length||0)+7}),this._currentMaxAvailableLength=this._availableNumberOfCharacters-(kn+ai),this.maxLengthsList.forEach((qi,eo)=>{const Oo=this.forms.controls[eo].get(this.config.inputAmount.name),Fo=this._currentMaxAvailableLength+(Oo?.value?.length||0),Zi=this.forms.controls[eo].get(this.config.inputText.name),Wo=this._currentMaxAvailableLength+(Zi?.value?.length||0);eo===$t?(Mt===this.config.inputText.name&&(qi.maxAmountLength=Fo),Mt===this.config.inputAmount.name&&(qi.maxTextLength=Wo)):(qi.maxAmountLength=Fo,qi.maxTextLength=Wo)}),this.updateAddButtonAvailability()}updateAddButtonAvailability(){let kn=(this.totalAmount-(this.cashOrderService.distributedAmount$.value||0)).toString();kn=Number.parseFloat(kn).toFixed(2);const ai=this._currentMaxAvailableLength>14+kn?.length+3&&parseFloat(kn)>0;this.config.actionAdd.disabled=1===this.config.select.items?.length||!ai}processFormsSelectItems(){const Mt=this.forms.controls.map($t=>$t.get(this.config.select.name).value);for(let $t=0;$t<this.formsSelectItems.length;$t++)this.formsSelectItems[$t]=this.config.select.items.filter(kn=>{const ai=[...Mt];return ai.splice($t,1),!ai.includes(kn.value)})}getHint(Mt){if(!Mt||!Mt.get("isShowAmountHint").value)return;const $t=Mt.get(this.config.inputAmount.name);if($t.errors){if($t.hasError("exceedTotalAmount"))return{text:"\u0421\u0443\u043c\u043c\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0431\u0449\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u0437\u0430\u044f\u0432\u043a\u0438"};if($t.hasError("exceedBalance"))return{text:"\u0421\u0443\u043c\u043c\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0442\u0441\u0442\u0430\u0442\u043e\u043a"}}const kn=this.cashOrderService.totalBalance$.value;return{text:"\u041e\u0441\u0442\u0430\u0442\u043e\u043a \u0441\u0443\u043c\u043c\u044b: "+this.currencyPipe.transform(kn>=0?kn:0)}}closeLine(){this.forms.removeAt(this.forms.controls.length-1),this.formsSelectItems.splice(this.formsSelectItems.length-1,1),this.maxLengthsList.splice(this.maxLengthsList.length-1,1),this.processFormsSelectItems(),this.onAmountChange()}getFormGroup(Mt){return Mt}static#e=this.\u0275fac=function($t){return new($t||Zn)(R.\u0275\u0275directiveInject(pt.s),R.\u0275\u0275directiveInject(Mo.H),R.\u0275\u0275directiveInject(e.UntypedFormBuilder))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:Zn,selectors:[["app-cash-order-expense-goals-block"]],inputs:{config:"config",sourcesOfIncome:"sourcesOfIncome",currencyCode:"currencyCode",availableNumberOfCharacters:"availableNumberOfCharacters"},outputs:{amountChanged:"amountChanged"},decls:6,vars:4,consts:[["data-qa","1657868032881",1,"cash-order-expense-goals",3,"formGroup"],[1,"cash-order-expense-goals","form-wrapper"],["formArrayName","forms",4,"ngFor","ngForOf"],[1,"cash-order-expense-goals__buttons"],["type","empty-bordered","text","Add more",1,"cash-order-expense-goals__buttons--button",3,"disabled","clicked"],["type","empty-bordered","class","cash-order-expense-goals__buttons--button","text","Cancel",3,"clicked",4,"ngIf"],["formArrayName","forms"],[1,"cash-order-expense-goals-form",3,"formGroup"],[1,"row"],[1,"col-md"],["appearance","dcb-alt","customIcon","expand_more",3,"formControlName","items","placeholder","title","ngModelChange"],["appearance","dcb",3,"field","formControlName","hint","mask","title","maxLength"],["appearance","dcb",3,"field","formControlName","title","maxLength","ngModelChange"],["type","empty-bordered","text","Cancel",1,"cash-order-expense-goals__buttons--button",3,"clicked"]],template:function($t,kn){1&$t&&(R.\u0275\u0275elementStart(0,"div",0)(1,"div",1),R.\u0275\u0275template(2,Ae,12,23,"div",2),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(3,"div",3)(4,"app-button",4),R.\u0275\u0275listener("clicked",function(){return kn.addLine()}),R.\u0275\u0275elementEnd(),R.\u0275\u0275template(5,bt,1,0,"app-button",5),R.\u0275\u0275elementEnd()()),2&$t&&(R.\u0275\u0275property("formGroup",kn.formContainer),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngForOf",kn.forms.controls),R.\u0275\u0275advance(2),R.\u0275\u0275property("disabled",null==kn.config||null==kn.config.actionAdd?null:kn.config.actionAdd.disabled),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngIf",kn.formsSelectItems.length>1))},dependencies:[xe.w,Qn.A,n.sg,n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,e.FormArrayName,Ge.r,At.G],styles:['@charset "UTF-8";.cash-order-expense-goals.form-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:32px}.cash-order-expense-goals-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px}.cash-order-expense-goals-form[_ngcontent-%COMP%]   .mr20[_ngcontent-%COMP%]{margin-bottom:20px}.cash-order-expense-goals__buttons[_ngcontent-%COMP%]{display:flex;column-gap:16px;margin-top:32px;width:-moz-fit-content;width:fit-content}app-metib-input[_ngcontent-%COMP%], app-metib-select[_ngcontent-%COMP%]{width:100%}']})}return Zn})();var Pt=t(25781),dn=t(12593),St=t(6582);function jt(Zn,gn){if(1&Zn&&(R.\u0275\u0275elementStart(0,"app-spb-notification",16)(1,"div",17)(2,"div",18)(3,"div",19)(4,"span",20),R.\u0275\u0275text(5),R.\u0275\u0275elementEnd()()(),R.\u0275\u0275elementStart(6,"div",18)(7,"div",19)(8,"span",20),R.\u0275\u0275text(9),R.\u0275\u0275elementEnd()()()()()),2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("customConfig",Mt.CASH_ORDER_AMOUNT_NOTIFICATION_CONFIG),R.\u0275\u0275advance(5),R.\u0275\u0275textInterpolate(Mt.notificationInfoBlockData.cashRegister),R.\u0275\u0275advance(4),R.\u0275\u0275textInterpolate(Mt.notificationInfoBlockData.receiverName)}}function ht(Zn,gn){if(1&Zn&&R.\u0275\u0275element(0,"app-cash-order-block-banknotes",21),2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("banknoteSelection",null!=Mt.order&&Mt.order.banknoteSelectionBetweenSteps?null==Mt.order.banknoteSelectionBetweenSteps?null:Mt.order.banknoteSelectionBetweenSteps.entry:null==Mt.order||null==Mt.order.banknoteSelection?null:Mt.order.banknoteSelection.entry)("config",Mt.configBanknotes)}}function on(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-cash-order-expense-goals-block",22),R.\u0275\u0275listener("amountChanged",function(){R.\u0275\u0275restoreView(Mt);const kn=R.\u0275\u0275nextContext();return R.\u0275\u0275resetView(kn.validatePurposesFormArray())}),R.\u0275\u0275elementEnd()}if(2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275property("config",Mt.configSourcesOfIncome)("sourcesOfIncome",Mt.order?Mt.order.sourcesOfIncome:null)("currencyCode",Mt.contrCurrCode)("availableNumberOfCharacters",Mt.availableNumberOfCharacters)}}const Nt=function(){return{name:"string"}};class It{constructor(gn,Mt,$t,kn,ai,qi,eo,Oo,Fo){this.cashOrderService=gn,this.fb=Mt,this.cashOrderStoreService=$t,this.currencyPipe=kn,this.configUtilService=ai,this.toastCustomService=qi,this.currencySymbolPipe=eo,this.router=Oo,this.modalService=Fo,this.isLoading=new R.EventEmitter(!0),this.sourceOfIncomeAmount=0,this.isBillsAccordionClosed=!1,this.isExpenseGoalsAccordionClosed=!1,this.contrCurrCode="643",this.selectAccounts=[],this.amountMask={TextMask:(0,xo.z3)(2),type:"amount",stripMask:!0,decimalSymbol:"."},this.configBanknotes=nt,this.form=this.fb.group({accNumber:new e.FormControl(""),requiredBanknoteSelection:new e.FormControl(!1),totalAmount:new e.FormControl("",[this.totalAmountValidator(),e.Validators.required])}),this.availableAccountsList=[],this.isDraftDisabled$=new I.X(!0),this.CASH_ORDER_AMOUNT_NOTIFICATION_CONFIG=De,this.destroyed$=new F.x}get isBanknotesChecked(){return"true"===this.form.get("requiredBanknoteSelection")?.value||!0===this.form.get("requiredBanknoteSelection")?.value}get purposesFormArray(){return this.purposeGetting?.formContainer.controls.forms}get accountBalance(){return this.selectedAccount&&this.selectedAccount.additionalCaption?+this.selectedAccount.additionalCaption.replace(/ /g,""):0}ngOnInit(){this.initFrom(),this.cashOrderService.totalAmount$.pipe((0,z.R)(this.destroyed$)).subscribe(gn=>{this.isDraftDisabled$.next(!gn),this.cashOrderService.totalBalance$.next(gn-this.calculateDistributedAmount())})}calculateDistributedAmount(){let gn=0;return this.purposesFormArray?.controls.forEach(Mt=>{const $t=Mt.get(this.configSourcesOfIncome.inputAmount.name);gn+=Number($t.value)||0}),this.cashOrderService.totalBalance$.next(this.cashOrderService.totalAmount$.value-gn),gn}validatePurposesFormArray(){this.purposesFormArray?.controls.forEach(gn=>{this.balanceValidate(gn.get(this.configSourcesOfIncome.inputAmount.name))})}balanceValidate(gn){if(!gn||!gn.dirty)return;gn.setErrors(null);const Mt=Number(gn.value),$t=this.calculateDistributedAmount(),kn=Number(this.form.get("totalAmount")?.value)??0,ai=kn-$t;Mt>kn?gn.setErrors({exceedTotalAmount:!0}):ai<0?gn.setErrors({exceedBalance:!0}):ai>0&&gn.setErrors({undistributedBalance:this.currencyPipe.transform(ai)+" \u20bd"})}totalAmountValidator(){return gn=>Number(gn.value)>this.accountBalance?{exceedAccountBalance:!0}:null}getDefaultConfig(gn,Mt){return{actionAdd:{title:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0446\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f",disabled:!gn},select:{title:"\u041a\u0430\u0441\u0441\u043e\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b",name:"symbol",items:Mt,validators:[]},inputAmount:{title:"\u0421\u0443\u043c\u043c\u0430",name:"amount",validators:[]},inputText:{title:"\u0426\u0435\u043b\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u0430",name:"sourcesIncome",validators:[]},dataQa:"1660031492400"}}setCountryCode(gn){gn&&(this.contrCurrCode=gn)}getTotalAmountHint(){if(this.form.get("totalAmount").hasError("exceedAccountBalance"))return{text:"\u0421\u0443\u043c\u043c\u0430 \u0437\u0430\u044f\u0432\u043a\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043f\u043e \u0441\u0447\u0435\u0442\u0443"}}onChangeCheckbox(gn){this.form.get("requiredBanknoteSelection").setValue(!!gn.target.checked)}backToFirstStep(){this.isLoading.emit(!0);let gn={...this.cashOrderStoreService.getCurrentCashOrderData(),accNumber:this.form.get("accNumber")?this.form.get("accNumber").value:"",totalAmount:this.form.get("totalAmount").value,currCode:"810",requiredBanknoteSelection:this.isBanknotesChecked.toString(),sourcesOfIncome:this.getSourcesOfIncome()};this.isBanknotesChecked&&this.banknotes&&(gn={...gn,banknoteSelection:this.getBanknoteSelection(),banknoteSelectionBetweenSteps:this.getBanknoteSelection(!0)}),this.cashOrderStoreService.setCurrentCashOrderData(gn),this.cashOrderStoreService.setCurrentStep(Et.FIRST)}send(gn=!1){gn&&(this.form.get("accNumber").clearValidators(),this.form.get("totalAmount").clearValidators(),this.updateValidityAllForms()),this.toastCustomService.closeAllErrorToasts(),(gn||this.formsValidate())&&(this.isLoading.emit(!0),this.setDataToSend(gn),this.cashOrderService.createCashOrder(this.dataToSend).pipe((0,z.R)(this.destroyed$)).subscribe({next:Mt=>{gn?this.router.navigate(["zakaz_nalichnyh"]):(this.isLoading.emit(!1),this.modalService.open(ki.D,{inputs:{confirmAction:()=>{this.toastCustomService.show("\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d","success"),this.modalService.close(),this.router.navigate(["/zakaz_nalichnyh"])},cancelAction:()=>{this.router.navigate(["/zakaz_nalichnyh"])},document:{docIds:[Mt.id],docType:Mt?.docType||this.dataToSend.docType,docModule:Mt?.docModule||this.dataToSend.docModule}},isSign:!0,isSignDesign:!0}))},error:Mt=>{this.toastCustomService.errorHandle(Mt?.errorText),this.isLoading.emit(!1),console.error(Mt)}}))}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}initFrom(){(0,ge.$)([this.cashOrderStoreService.initialData$,this.cashOrderStoreService.currentCashOrderData$,this.cashOrderStoreService.notificationInfoBlockData$]).pipe((0,ke.q)(1),(0,z.R)(this.destroyed$)).subscribe(([gn,Mt,$t])=>{this.order=Mt,this.notificationInfoBlockData=$t,this.cashRegisterList=gn.places,this.organization=gn.clientInfo,De.text=$t.title;const kn=gn.clientInfo,ai=gn.cashOrderParams;if(ai?.availableAcc){const Oo=this.configUtilService.getArray(ai.availableAcc);this.setSelectAccounts(Oo),this.availableAccountsList=Oo}this.order?.accNumber||this.setDefaultAccount();const qi=10===kn?.INN?.length,eo=this.prepareCashSourcesList(ai?.cashSource);this.configSourcesOfIncome=this.getDefaultConfig(qi,eo),this.patchForm(),this.subscribeOnFormChanges(),this.isLoading.emit(!1)})}setSelectAccounts(gn){this.selectAccounts=gn.sort((Mt,$t)=>Mt.beginDate>$t.beginDate?1:-1).map(Mt=>({value:Mt.number,caption:Mt.alias||Mt.info,description:Mt.formattedNumber,additionalCaption:this.currencyPipe.transform(Mt.balance),contrCurrCode:Mt.currencyCode}))}onChangeAccount(gn){this.selectedAccount=this.selectAccounts.find(Mt=>Mt.value===gn)}subscribeOnFormChanges(){this.form.get("accNumber").valueChanges.pipe((0,z.R)(this.destroyed$)).subscribe(gn=>{this.calculateAvailableNumberOfCharacters(),this.onChangeAccount(gn),this.form.get("totalAmount")?.touched&&this.form.get("totalAmount").updateValueAndValidity()}),this.form.get("totalAmount").valueChanges.pipe((0,z.R)(this.destroyed$),(0,Co.U)(gn=>gn?Number(gn):0)).subscribe(gn=>{this.cashOrderService.totalAmount$.next(gn),this.purposesFormArray?.touched&&this.validatePurposesFormArray()})}cleanPurposeGetting(){this.purposeGetting&&this.purposesFormArray?.controls.forEach(gn=>{gn.get(this.configSourcesOfIncome.inputAmount.name).setValue(""),gn.get(this.configSourcesOfIncome.inputText.name).setValue("")})}calculateAvailableNumberOfCharacters(){let gn=255;gn-=72;const Mt=this.form.get("accNumber").value,$t=this.availableAccountsList.find(eo=>eo.number===Mt)?.bankingInformation?.bic,kn=this.cashRegisterList[this.order.place].find(eo=>eo.branchId===this.order.branchCode)?.bankBik;$t===kn||(gn-=33,(this.availableNumberOfCharacters||0===this.availableNumberOfCharacters)&&this.cleanPurposeGetting());let qi=this.organization?.shortName?.length;12===this.organization.INN.length&&(qi=this.organization?.fullName?.length-2),gn-=qi+1,this.availableNumberOfCharacters=gn}setDefaultAccount(){1===this.selectAccounts.length&&(setTimeout(()=>{this.form.get("accNumber").setValue(this.selectAccounts[0].value)}),this.selectedAccount=this.selectAccounts[0])}getSourcesOfIncome(){const gn=[];return this.purposeGetting&&this.purposesFormArray?.controls.forEach(Mt=>{const $t=Number.parseFloat(Mt.get(this.configSourcesOfIncome.inputAmount.name).value).toFixed(2);gn.push({symbol:Mt.get(this.configSourcesOfIncome.select.name).value,sourcesIncome:Mt.get(this.configSourcesOfIncome.inputText.name).value,amount:$t})}),gn}getBanknoteSelection(gn=!1){let Mt={};return this.banknotes&&(gn?(Mt.entry=[],this.banknotes.formContainer.controls.forms.controls.forEach($t=>{if($t.get(this.configBanknotes.select.name).value&&$t.get(this.configBanknotes.inputAmount.name).value){const kn={key:$t.get(this.configBanknotes.select.name).value,value:{$:$t.get(this.configBanknotes.inputAmount.name).value,"@type":"xs:int"}};Mt.entry.push(kn)}})):this.banknotes.formContainer.controls.forms.controls.forEach($t=>{$t.get(this.configBanknotes.select.name).value&&$t.get(this.configBanknotes.inputAmount.name).value&&(Mt={...Mt,[$t.get(this.configBanknotes.select.name).value]:parseInt($t.get(this.configBanknotes.inputAmount.name).value,10)})})),Mt}formsValidate(){this.errBox=new e.UntypedFormControl({});let gn=0;if(this.form.get("accNumber").setValidators([e.Validators.required]),this.form.get("totalAmount").setValidators([this.totalAmountValidator(),e.Validators.required]),this.formValidate(this.form),this.purposeGetting&&this.purposesFormArray?.controls.forEach(ai=>{ai.get(this.configSourcesOfIncome.select.name).setValidators([e.Validators.required]),ai.get(this.configSourcesOfIncome.inputAmount.name).setValidators([e.Validators.required]),ai.get(this.configSourcesOfIncome.inputText.name).setValidators([e.Validators.required]),gn=gn+Number(ai.get(this.configSourcesOfIncome.inputAmount.name))||0,this.formValidate(ai)}),this.isBanknotesChecked&&this.banknotes&&this.banknotes.formContainer.controls.forms.controls.forEach(ai=>{ai.get(this.configBanknotes.select.name).setValidators([e.Validators.required]),ai.get(this.configBanknotes.inputAmount.name).setValidators([e.Validators.required]),ai.get(this.configBanknotes.inputCalcSum.name).setValidators([e.Validators.required]),this.formValidate(ai)}),this.errBox.hasError("required"))return this.toastCustomService.show("Fill in the required fields on the form","error"),!1;const Mt=this.cashOrderService.totalAmount$.value,$t=Number(this.selectedAccount.additionalCaption),kn=this.cashOrderService.totalBalance$.value;if(Mt>$t)return this.toastCustomService.show("\u0421\u0443\u043c\u043c\u0430 \u0437\u0430\u044f\u0432\u043a\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043f\u043e \u0441\u0447\u0435\u0442\u0443","error"),!1;if(kn>0){const ai=`${this.currencyPipe.transform(kn)}${this.currencySymbolPipe.transform(this.contrCurrCode)}`;return this.purposesFormArray?.controls.forEach(qi=>{qi.get(this.configSourcesOfIncome.inputAmount.name).setErrors({undistributedBalance:ai}),qi.get("isShowAmountHint").setValue(!0)}),this.toastCustomService.show(`\u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a: ${ai}`,"error"),!1}return gn>kn?(this.toastCustomService.show("\u0421\u0443\u043c\u043c\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0431\u0449\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u0437\u0430\u044f\u0432\u043a\u0438","error"),!1):this.errBox.errors?(this.toastCustomService.show(this.getErrorMessage()||"Unknown error","error"),!1):!(!this.form.valid||this.purposeGetting&&!this.purposeGetting.formContainer.controls.forms.valid||this.isBanknotesChecked&&!this.banknotes?.formContainer.controls.forms.valid)}getErrorMessage(){return this.errBox.hasError("exceedBalanceBanknote")?"\u0421\u0443\u043c\u043c\u0430 \u043a\u0443\u043f\u044e\u0440 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u0442\u043e\u043a":this.errBox.hasError("notMultipleBanknote")?"\u0421\u0443\u043c\u043c\u0430 \u043a\u0443\u043f\u044e\u0440 \u043d\u0435 \u043a\u0440\u0430\u0442\u043d\u0430 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u0443":this.errBox.hasError("undistributedBalanceBanknote")?`\u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a: ${this.errBox.getError("undistributedBalanceBanknote")}`:void 0}setDataToSend(gn=!1){this.dataToSend={draft:gn,docModule:this.order.docModule,docType:this.order.docType,docNumber:this.order.docNumber,docDate:P()(this.order.docDate).format("YYYY-MM-DD"),accNumber:this.form.get("accNumber")?this.form.get("accNumber").value:"",totalAmount:Number.parseFloat(this.form.get("totalAmount").value).toFixed(2),currCode:"810",requiredBanknoteSelection:this.isBanknotesChecked.toString(),sourcesOfIncome:this.getSourcesOfIncome(),receiverEmployeeId:this.order?.receiverEmployeeId,branchCode:this.order?.branchCode,receiveDate:this.order?.receiveDate},this.order?.id&&(this.dataToSend.id=this.order?.id),this.isBanknotesChecked&&this.banknotes&&(this.dataToSend={...this.dataToSend,banknoteSelection:this.getBanknoteSelection()})}updateValidity(gn){Object.keys(gn.controls).forEach(Mt=>{const $t=gn.get(Mt);$t&&($t.markAsTouched(),$t.updateValueAndValidity({emitEvent:!1}))})}updateValidityAllForms(){this.updateValidity(this.form),this.purposesFormArray.controls.forEach(gn=>{this.updateValidity(gn)})}formValidate(gn){this.updateValidityAllForms(),Object.keys(gn.controls).forEach(Mt=>{const $t=gn.get(Mt);!$t.value&&$t.validator&&$t.setErrors({...$t.errors,required:!0}),$t&&$t.errors&&(this.errBox.setErrors({...this.errBox.errors,...$t.errors}),$t.markAsTouched())})}patchForm(){this.cashOrderService.totalBalance$.next(0),this.cashOrderService.totalAmount$.next(this.order?parseFloat(this.order.totalAmount):0),this.order&&setTimeout(()=>{this.form.patchValue({...this.order}),this.calculateAvailableNumberOfCharacters()})}prepareCashSourcesList(gn=[]){return this.configUtilService.getArray(gn).map(Mt=>({value:Mt.code,caption:Mt.caption}))}static#e=this.\u0275fac=function(Mt){return new(Mt||It)(R.\u0275\u0275directiveInject(pt.s),R.\u0275\u0275directiveInject(e.FormBuilder),R.\u0275\u0275directiveInject(vt),R.\u0275\u0275directiveInject(Mo.H),R.\u0275\u0275directiveInject(Rt.Pj),R.\u0275\u0275directiveInject(ne.j),R.\u0275\u0275directiveInject(At.G),R.\u0275\u0275directiveInject($.F0),R.\u0275\u0275directiveInject(G.Z))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:It,selectors:[["app-cash-order-request-create-second-step"]],viewQuery:function(Mt,$t){if(1&Mt&&(R.\u0275\u0275viewQuery(Le,5),R.\u0275\u0275viewQuery(tt,5)),2&Mt){let kn;R.\u0275\u0275queryRefresh(kn=R.\u0275\u0275loadQuery())&&($t.purposeGetting=kn.first),R.\u0275\u0275queryRefresh(kn=R.\u0275\u0275loadQuery())&&($t.banknotes=kn.first)}},outputs:{isLoading:"isLoading"},decls:23,vars:37,consts:[[1,"cash-order-create-second-step",3,"formGroup"],[1,"cash-order-create-second-step__info"],[3,"customConfig",4,"ngIf"],[1,"cash-order-create-second-step__header"],[1,"cash-order-create-second-step__column-block"],["appearance","dcb-alt","customTitle","Write-off Account","data-qa","1657868158231","formControlName","accNumber","placeholder","Write-off Account","customIcon","expand_more",1,"wide-control",3,"items","customEmptyCaption","selectedContrCurrCode"],["appearance","dcb","data-qa","1657868167160","formControlName","totalAmount",1,"wide-control",3,"field","hint","mask","title"],["label","\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u0443\u043f\u044e\u0440\u044b (\u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0437\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044f: 0,1% \u043e\u0442 \u0441\u0443\u043c\u043c\u044b \u0437\u0430\u044f\u0432\u043a\u0438)","data-qa","1657868253258",1,"cash-order-create-second-step__checkbox",3,"chosen","checkboxChange"],["data-qa","1657971848216","arrowStyle","thin-gray","arrowClass","dcb-arrow","titleCssClass","dcb","headerCssClass","dcb-header",1,"cash-order-create-second-step__accordion",3,"hidden","hide","title","toggleAccordtion"],["data-qa","1657868266155",3,"banknoteSelection","config",4,"ngIf"],["data-qa","1657971848217","arrowStyle","thin-gray","arrowClass","dcb-arrow","titleCssClass","dcb","headerCssClass","dcb-header",1,"cash-order-create-second-step__accordion",3,"hide","title","toggleAccordtion"],["data-qa","1657868178965",3,"config","sourcesOfIncome","currencyCode","availableNumberOfCharacters","amountChanged",4,"ngIf"],[1,"cash-order-create-second-step__buttons"],["type","small header","text","Send for signature",1,"cash-order-create-second-step__buttons--button",3,"clicked"],["type","medium-for-sign-mail","text","Save as draft",1,"cash-order-create-second-step__buttons--button",3,"disabled","clicked"],["type","medium-for-sign-mail","text","Back",1,"cash-order-create-second-step__buttons--button",3,"clicked"],[3,"customConfig"],[1,"mini-info"],[1,"mini-info__block"],[1,"mini-info__text-info"],[1,"mini-info__text"],["data-qa","1657868266155",3,"banknoteSelection","config"],["data-qa","1657868178965",3,"config","sourcesOfIncome","currencyCode","availableNumberOfCharacters","amountChanged"]],template:function(Mt,$t){1&Mt&&(R.\u0275\u0275elementStart(0,"section",0)(1,"div",1),R.\u0275\u0275template(2,jt,10,3,"app-spb-notification",2),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(3,"div",3),R.\u0275\u0275text(4),R.\u0275\u0275pipe(5,"translate"),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(6,"div",4)(7,"app-metib-select",5),R.\u0275\u0275listener("selectedContrCurrCode",function(ai){return $t.setCountryCode(ai)}),R.\u0275\u0275elementEnd(),R.\u0275\u0275element(8,"app-metib-input",6),R.\u0275\u0275pipe(9,"translate"),R.\u0275\u0275pipe(10,"currencySymbol"),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(11,"app-checkbox",7),R.\u0275\u0275listener("checkboxChange",function(ai){return $t.onChangeCheckbox(ai)}),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(12,"app-accordion-page",8),R.\u0275\u0275listener("toggleAccordtion",function(ai){return $t.isBillsAccordionClosed=ai}),R.\u0275\u0275pipe(13,"translate"),R.\u0275\u0275template(14,ht,1,2,"app-cash-order-block-banknotes",9),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(15,"app-accordion-page",10),R.\u0275\u0275listener("toggleAccordtion",function(ai){return $t.isExpenseGoalsAccordionClosed=ai}),R.\u0275\u0275pipe(16,"translate"),R.\u0275\u0275template(17,on,1,4,"app-cash-order-expense-goals-block",11),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(18,"div",12)(19,"app-button",13),R.\u0275\u0275listener("clicked",function(){return $t.send()}),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(20,"app-button",14),R.\u0275\u0275listener("clicked",function(){return $t.send(!0)}),R.\u0275\u0275pipe(21,"async"),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(22,"app-button",15),R.\u0275\u0275listener("clicked",function(){return $t.backToFirstStep()}),R.\u0275\u0275elementEnd()()()),2&Mt&&(R.\u0275\u0275property("formGroup",$t.form),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngIf",$t.notificationInfoBlockData),R.\u0275\u0275advance(2),R.\u0275\u0275textInterpolate(R.\u0275\u0275pipeBind2(5,19,"Account and amount",$t.lang)),R.\u0275\u0275advance(3),R.\u0275\u0275property("items",$t.selectAccounts)("customEmptyCaption","No bank accounts available"),R.\u0275\u0275advance(1),R.\u0275\u0275propertyInterpolate2("title","",R.\u0275\u0275pipeBind2(9,22,"Total application amount",$t.lang),", ",R.\u0275\u0275pipeBind2(10,25,$t.contrCurrCode,!0),""),R.\u0275\u0275property("field",R.\u0275\u0275pureFunction0(36,Nt))("hint",$t.getTotalAmountHint())("mask",$t.amountMask),R.\u0275\u0275advance(3),R.\u0275\u0275property("chosen",$t.isBanknotesChecked),R.\u0275\u0275advance(1),R.\u0275\u0275property("hidden",!$t.isBanknotesChecked)("hide",$t.isBillsAccordionClosed)("title",R.\u0275\u0275pipeBind2(13,28,"Bills",$t.lang)),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngIf",$t.isBanknotesChecked&&$t.configBanknotes),R.\u0275\u0275advance(1),R.\u0275\u0275property("hide",$t.isExpenseGoalsAccordionClosed)("title",R.\u0275\u0275pipeBind2(16,31,"Expense goals",$t.lang)),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngIf",$t.configSourcesOfIncome&&$t.availableNumberOfCharacters),R.\u0275\u0275advance(3),R.\u0275\u0275property("disabled",R.\u0275\u0275pipeBind1(21,34,$t.isDraftDisabled$)))},dependencies:[Pt.b,dn.y,xe.w,Qn.A,n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,Ge.r,St.y,Le,tt,j.X$,At.G,n.Ov],styles:['@charset "UTF-8";.cash-order-create-second-step[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.cash-order-create-second-step__info[_ngcontent-%COMP%]{font-size:16px;color:#444;margin-bottom:24px}.cash-order-create-second-step__header[_ngcontent-%COMP%]{color:#080708;font-size:18px;font-style:normal;font-weight:700;line-height:24px;padding-bottom:12px}.cash-order-create-second-step__column-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px;margin-bottom:32px}.cash-order-create-second-step__checkbox[_ngcontent-%COMP%]{display:block;margin-bottom:40px}.cash-order-create-second-step__accordion[_ngcontent-%COMP%]{margin-bottom:40px;display:block}.cash-order-create-second-step[_ngcontent-%COMP%]   .wide-control[_ngcontent-%COMP%]{width:100%}.cash-order-create-second-step__buttons[_ngcontent-%COMP%]{display:flex;gap:16px;flex-wrap:wrap;margin-top:48px}.cash-order-create-second-step[_ngcontent-%COMP%]   .mini-info[_ngcontent-%COMP%]{color:#444;display:flex;flex-direction:column;padding:4px 20px 20px 48px;row-gap:8px}@media screen and (max-width: 768px){.cash-order-create-second-step[_ngcontent-%COMP%]   .mini-info[_ngcontent-%COMP%]{padding:0 12px 12px}}.cash-order-create-second-step[_ngcontent-%COMP%]   .mini-info__title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:20px;margin-top:0;margin-bottom:12px}.cash-order-create-second-step[_ngcontent-%COMP%]   .mini-info__text-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px}.cash-order-create-second-step[_ngcontent-%COMP%]   .mini-info__text-info-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:12px}.cash-order-create-second-step[_ngcontent-%COMP%]   .mini-info__text[_ngcontent-%COMP%]{font-size:14px;line-height:20px;font-weight:400}']})}(0,T.gn)([(0,j.SQ)()],It.prototype,"lang",void 0);var Ot=t(91676);function fn(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-cash-order-request-create-first-step",9),R.\u0275\u0275listener("isLoading",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext(2);return R.\u0275\u0275resetView(ai.onStepFormLoading(kn))}),R.\u0275\u0275elementEnd()}}function Xn(Zn,gn){if(1&Zn){const Mt=R.\u0275\u0275getCurrentView();R.\u0275\u0275elementStart(0,"app-cash-order-request-create-second-step",9),R.\u0275\u0275listener("isLoading",function(kn){R.\u0275\u0275restoreView(Mt);const ai=R.\u0275\u0275nextContext(2);return R.\u0275\u0275resetView(ai.onStepFormLoading(kn))}),R.\u0275\u0275elementEnd()}}function _i(Zn,gn){if(1&Zn&&(R.\u0275\u0275elementStart(0,"div",3)(1,"div",4),R.\u0275\u0275elementContainerStart(2,5),R.\u0275\u0275pipe(3,"async"),R.\u0275\u0275template(4,fn,1,0,"app-cash-order-request-create-first-step",6),R.\u0275\u0275template(5,Xn,1,0,"app-cash-order-request-create-second-step",6),R.\u0275\u0275elementContainerEnd(),R.\u0275\u0275elementEnd(),R.\u0275\u0275elementStart(6,"div",7),R.\u0275\u0275element(7,"app-steps-track",8),R.\u0275\u0275pipe(8,"async"),R.\u0275\u0275elementEnd()()),2&Zn){const Mt=R.\u0275\u0275nextContext();R.\u0275\u0275advance(2),R.\u0275\u0275property("ngSwitch",R.\u0275\u0275pipeBind1(3,5,Mt.currentStep$)),R.\u0275\u0275advance(2),R.\u0275\u0275property("ngSwitchCase",Mt.FORM_STEPS.FIRST),R.\u0275\u0275advance(1),R.\u0275\u0275property("ngSwitchCase",Mt.FORM_STEPS.SECOND),R.\u0275\u0275advance(2),R.\u0275\u0275property("stepNumber",R.\u0275\u0275pipeBind1(8,7,Mt.currentStep$))("stepsConfig",Mt.CASH_ORDER_FORM_STEPS)}}class ci{constructor(gn,Mt,$t,kn){this.route=gn,this.router=Mt,this.modalService=$t,this.cashOrderStoreService=kn,this.pathData=[{capture:"Get Cash",bold:!0,href:"/zakaz_nalichnyh"}],this.docNumber="\u0417\u041d -",this.docDate=new Date,this.isLoading=!0,this.currentStep$=this.cashOrderStoreService.currentStep$,this.CASH_ORDER_FORM_STEPS=dt,this.FORM_STEPS=Et,this.destroyed$=new F.x}ngOnInit(){this.cashOrderStoreService.initData(this.route.snapshot.paramMap.get("id")),this.setInitialInfo()}finishWorkWithRequest(){this.isDataChanged()&&!this.cashOrderFormSecondStep?.isDraftDisabled$.value&&this.cashOrderStoreService.getCurrentStep()===this.FORM_STEPS.SECOND?this.saveAsDraft():this.router.navigate(["/zakaz_nalichnyh"])}onStepFormLoading(gn){this.isLoading=gn}ngOnDestroy(){this.cashOrderStoreService.clearAllCashOrderData(),this.destroyed$.next(null),this.destroyed$.complete()}setInitialInfo(){this.cashOrderStoreService.currentCashOrderData$.pipe((0,ke.q)(1),(0,z.R)(this.destroyed$)).subscribe({next:gn=>{this.docDate=gn.docDate,this.docNumber=gn.docNumber,this.cashOrderOnInit=gn}})}saveAsDraft(){this.modalService.open(Sn.e,{header:"Saving draft",styleMode:"forSign",overflow:"initial",size:"auto-width",inputs:{confirmBtnText:"Yes, save",cancelBtnText:"No",btnConfirmType:"primary",additionalText:"Cash order draft save request prompt",confirmAction:()=>{this.cashOrderFormSecondStep.send(!0)},cancelAction:()=>{this.onClose()}}})}onClose(){this.router.navigate(["/zakaz_nalichnyh"])}isDataChanged(){const gn=this.cashOrderStoreService.getCurrentCashOrderData();return JSON.stringify(this.cashOrderOnInit)!==JSON.stringify(gn)||"draft"===gn?.status}static#e=this.\u0275fac=function(Mt){return new(Mt||ci)(R.\u0275\u0275directiveInject($.gz),R.\u0275\u0275directiveInject($.F0),R.\u0275\u0275directiveInject(G.Z),R.\u0275\u0275directiveInject(vt))};static#t=this.\u0275cmp=R.\u0275\u0275defineComponent({type:ci,selectors:[["app-cash-order-request-create"]],viewQuery:function(Mt,$t){if(1&Mt&&(R.\u0275\u0275viewQuery(Ei,5),R.\u0275\u0275viewQuery(It,5)),2&Mt){let kn;R.\u0275\u0275queryRefresh(kn=R.\u0275\u0275loadQuery())&&($t.cashOrderFormFirstStep=kn.first),R.\u0275\u0275queryRefresh(kn=R.\u0275\u0275loadQuery())&&($t.cashOrderFormSecondStep=kn.first)}},decls:5,vars:11,consts:[["data-qa","1657868134992",3,"pathData"],["data-qa","1657968399965",3,"title","withCloseButton","loading","close"],["class","cash-order-create",4,"ngIf"],[1,"cash-order-create"],[1,"cash-order-create__left"],[3,"ngSwitch"],[3,"isLoading",4,"ngSwitchCase"],[1,"cash-order-create__right"],[3,"stepNumber","stepsConfig"],[3,"isLoading"]],template:function(Mt,$t){1&Mt&&(R.\u0275\u0275element(0,"app-path",0),R.\u0275\u0275elementStart(1,"app-page",1),R.\u0275\u0275listener("close",function(){return $t.finishWorkWithRequest()}),R.\u0275\u0275pipe(2,"translate"),R.\u0275\u0275pipe(3,"date"),R.\u0275\u0275template(4,_i,9,9,"div",2),R.\u0275\u0275elementEnd()),2&Mt&&(R.\u0275\u0275property("pathData",$t.pathData),R.\u0275\u0275advance(1),R.\u0275\u0275property("title",$t.docNumber+" "+R.\u0275\u0275pipeBind2(2,5,"By",$t.lang)+" "+R.\u0275\u0275pipeBind2(3,8,$t.docDate,"dd.MM.yyyy"))("withCloseButton",!0)("loading",$t.isLoading),R.\u0275\u0275advance(3),R.\u0275\u0275property("ngIf",$t.cashOrderOnInit))},dependencies:[n.O5,n.RF,n.n9,at.l,lt.I,Ot.R,Ei,It,j.X$,n.Ov,n.uU],styles:['@charset "UTF-8";.cash-order-create[_ngcontent-%COMP%]{display:flex;margin-top:32px;column-gap:104px;font-size:16px;font-family:Open Sans,Source Sans Pro,sans-serif;flex-wrap:wrap-reverse;row-gap:24px}.cash-order-create__left[_ngcontent-%COMP%]{max-width:660px;width:100%}.cash-order-create__left[_ngcontent-%COMP%]   .left__info[_ngcontent-%COMP%]{margin-bottom:24px}[_nghost-%COMP%]     .cash-order-create app-metib-input, [_nghost-%COMP%]     .cash-order-create app-metib-select{margin:0}[_nghost-%COMP%]     .cash-order-create app-metib-input input::placeholder{color:#88909b}[_nghost-%COMP%]     .cash-order-create app-checkbox .checkbox-wrap .checkbox .checkbox__label{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;line-height:22px;color:#444!important}[_nghost-%COMP%]     .cash-order-create app-metib-datepicker mat-form-field{margin:0!important}[_nghost-%COMP%]     .cash-order-create app-metib-datepicker mat-form-field.ng-invalid .mat-form-field-flex{padding:11px 0 0!important}[_nghost-%COMP%]     .cash-order-create app-metib-datepicker .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]     .cash-order-create app-metib-datepicker .mat-form-field-wrapper .mat-form-field-flex{min-height:55px;padding:10px 0}[_nghost-%COMP%]     .cash-order-create app-metib-datepicker .mat-form-field-wrapper .mat-form-field-infix{padding:16px 34px 8px 12px;border-top:0;margin-top:0}']})}(0,T.gn)([(0,j.SQ)()],ci.prototype,"lang",void 0);const Ui=[{path:"",pathMatch:"full",component:Wn},{path:"spisok_poluchateley",pathMatch:"full",component:rn},{path:"novaya_zayavka",pathMatch:"full",component:ci,canActivate:[C.W]},{path:"redaktirovat_zayavku/:id",pathMatch:"full",component:ci},{path:"**",redirectTo:"/desktop"}];let li=(()=>{class Zn{static#e=this.\u0275fac=function($t){return new($t||Zn)};static#t=this.\u0275mod=R.\u0275\u0275defineNgModule({type:Zn});static#n=this.\u0275inj=R.\u0275\u0275defineInjector({imports:[$.Bz.forChild(Ui),$.Bz]})}return Zn})(),vi=(()=>{class Zn{static#e=this.\u0275fac=function($t){return new($t||Zn)};static#t=this.\u0275mod=R.\u0275\u0275defineNgModule({type:Zn});static#n=this.\u0275inj=R.\u0275\u0275defineInjector({providers:[u.l],imports:[y.m,n.ez,m.D,li,_.N,x.n,e.ReactiveFormsModule,e.FormsModule,d.Is,B.u,w.B,O.h,a.AV,i.Ps,l.A,h.Y,L.Q]})}return Zn})()},65493:(Ee,Q,t)=>{"use strict";t.d(Q,{j:()=>w});var n=t(61135),e=t(69751),i=t(4128),d=t(63900),a=t(34782),u=t(54004),h=t(94650),l=t(3751),m=t(37601),x=t(46520),O=t(94716),L=t(20961);let w=(()=>{class B{constructor(y,$,C,T,j){this.apiService=y,this.userDataService=$,this.svetoforService=C,this.dadataService=T,this.billFormService=j,this.editCounterpartAccountNumber$=new n.X(null)}saveCorr(y){return new e.y($=>{this.apiService.post("dic/corr/v2",y).subscribe({next:C=>$.next(C),error:C=>$.error(C)})})}getCorrList(y){return(0,i.D)([this.userDataService.getClientInfoOrganization(),this.svetoforService.isSvetoforAccessSetting()]).pipe((0,d.w)(([$,C])=>{const T="paid"===$.konturFocusSubscr&&C;return y&&(this.counterPartsCache$=void 0),this.counterPartsCache$||(this.counterPartsCache$=this.requestCorrList(T).pipe((0,a.d)(1))),this.counterPartsCache$}))}requestCorrList(y=!0){return this.apiService.get(`dic/corr/list?kontur_focus=${y}`)}getCorrFullnameItems(y,$){return("FL"===$?this.userDataService.getCorrlistByType(y,"'FL'","=").pipe((0,u.U)(T=>({dadataList:[],corrList:T.list}))):this.dadataService.getCompanySuggestions(y).pipe((0,u.U)(T=>({dadataList:T.suggestions,corrList:T.pagingDataResult.list})))).pipe((0,u.U)(T=>this.billFormService.corrFullNameItems(T)))}static#e=this.\u0275fac=function($){return new($||B)(h.\u0275\u0275inject(l.s),h.\u0275\u0275inject(m.M),h.\u0275\u0275inject(x.W),h.\u0275\u0275inject(O.y),h.\u0275\u0275inject(L.R))};static#t=this.\u0275prov=h.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})()},54049:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>p});var n=t(97582),e=t(94650),i=t(44180),d=t(16611),a=t(61135),u=t(77579),h=t(39841),l=t(39646),m=t(54004),x=t(71884),O=t(63900),L=t(82722),w=t(95698),B=t(34782),_=t(40929),y=t(9149),$=t(29198),C=t(38101),T=t(61810),j=t(95495),I=t(3949),F=t(62673),z=t(65064),X=t(92041);class p{constructor(E){this.injector=E,this.acceptImmediatelyTitle=new a.X(null),this.performerConfig=T.M,this.prefillData$=new a.X(null),this.isEditMode=!1,this.destroy$=new u.x,this.subCalculateByExchange=new u.x,this.isClientRateValue=!1,this.isModal=!1,this.currencyExchangeFormFacade=this.injector.get(z.g),this.contentInitializedService=this.injector.get(F.v),this.changeDetectorRef=this.injector.get(e.ChangeDetectorRef),this.router=this.injector.get(i.F0),this.toastCustomService=this.injector.get(y.j),this.formGroup=this.currencyExchangeFormFacade.getFormGroup(),this.modalService=this.injector.get(C.Z),this.route=this.injector.get(i.gz),this.documentService=this.injector.get(_.Z),this.vedService=this.injector.get($.$),this.currencyNamePipe=new j.l(this.vedService)}get status(){return this.documentStatus}set status(E){this.documentStatus=E}get isModalForm(){return this.isModal}set isModalForm(E){this.isModal=E}get amountCredit$(){return this.currencyExchangeFormFacade.amountCredit$()}get amountDebit$(){return this.currencyExchangeFormFacade.amountDebit$()}get onlineModeIsAvailable$(){return this.currencyExchangeFormFacade.onlineModeAvailable$()}get isOnlineMode$(){return this.currencyExchangeFormFacade.isOnlineMode$()}get isPrecheckMode$(){return this.currencyExchangeFormFacade.isPrecheckMode$()}get showClientCourseForm$(){return this.currencyExchangeFormFacade.showClientCourseForm$()}get courseIsSent$(){return this.currencyExchangeFormFacade.courseIsSent$()}get courseSuccessFixed$(){return this.currencyExchangeFormFacade.courseSuccessFixed$()}get creditEntered(){return"amountCredit"===this.currencyExchangeFormFacade.getEnteredField()}get isSale(){return"sale"===this.currencyExchangeMode}get disableCreateDocumentButton$(){return(0,h.a)([this.courseIsSent$,this.isOnlineMode$,this.onlineModeIsAvailable$,this.unFinishedDeal$,this.clientCourseIsApproved$,this.courseSuccessFixed$]).pipe((0,m.U)(([E,R,ne,G,ce])=>R&&!ne||R&&E&&!ce||R&&G&&(G.deal&&G.deal.type!==this.currencyExchangeMode||!G.draft)))}get clientRequestRate$(){return this.currencyExchangeFormFacade.clientRequestRate$()}get obtainedTransactionRate$(){return this.currencyExchangeFormFacade.obtainedTransactionRate$()}get clientCourseIsApproved$(){return this.currencyExchangeFormFacade.clientCourseApproved$()}get acceptImmediately(){return this.formGroup.get("acceptImmediately").value}setIsClientRate(E){this.isClientRateValue=E.target?E.target.checked:E||!1,this.isClientRateValue||this.formGroup.get("clientRequestRate").reset()}getIsClientRate(){return this.isClientRateValue}init(){this.contentInitializedService.setInitialized(!1),this.prepareForm(),this.subscribeOnCalculateByExchange(),this.subscribeOnErrors(),this.formGroup.get("acceptImmediately").setValue(!0),this.route.queryParams.pipe((0,x.x)(),(0,O.w)(E=>(E.id||E.docId)&&E.docType?this.documentService.getDocumentById("ibankul_curr",E.docType,E.id||E.docId):(0,l.of)(null)),(0,L.R)(this.destroy$)).subscribe(E=>{if(E){const R=Object.values(E)[0];this.prefillData$.next(R)}else this.formGroup.get("acceptImmediately").setValue(!1)}),this.isPrecheckMode$.pipe((0,L.R)(this.destroy$)).subscribe(E=>{this.acceptImmediatelyTitle.next(E?"Auto execution":"Accept immediately")})}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete(),this.subCalculateByExchange.next(null),this.subCalculateByExchange.complete(),this.currencyExchangeFormFacade.clearData()}onFixRate(){this.disableFixCourseButton$.pipe((0,w.q)(1)).subscribe(E=>{E||this.currencyExchangeFormFacade.fixDealRate(this.currencyExchangeMode)})}onFixClientCourse(){this.disableSentClientCourseButton$.pipe((0,w.q)(1)).subscribe(E=>{E||this.currencyExchangeFormFacade.sentClientCourse(this.currencyExchangeMode)})}onByClientCourse(){this.currencyExchangeFormFacade.toggleShowClientCourseForm()}onClickSendButton(){this.disableCreateDocumentButton$.pipe((0,w.q)(1)).subscribe(E=>{E||this.currencyExchangeFormFacade.createDocument(this.performerBlock)})}onFormChangedPerformer(E){this.currencyExchangeFormFacade.updateEmployeeInfo(E)}subscribeOnCalculateByExchange(){this.currencyExchangeFormFacade.currencyExchangeType$().pipe((0,L.R)(this.destroy$)).subscribe(E=>{"online"===E||"precheck"===E&&this.isModalForm?this.currencyExchangeFormFacade.calculateByExchange(this.subCalculateByExchange):this.subCalculateByExchange.next(null)})}prepareForm(){this.currencyExchangeFormFacade.fetchMainFormData(this.currencyExchangeMode).pipe((0,w.q)(1)).subscribe(()=>{this.currencies$=this.currencyExchangeFormFacade.currencies$(),this.creditAccounts$=this.currencyExchangeFormFacade.creditAccounts$(),this.creditNoFactoringAccounts$=this.getNoFactoringAccounts(this.currencyExchangeFormFacade.creditAccounts$()),this.creditCurr$=this.currencyExchangeFormFacade.creditCurr$(),this.dealTypes$=this.currencyExchangeFormFacade.dealTypes$(),this.dealTypeCode$=this.currencyExchangeFormFacade.dealTypeCode$(),this.debitAccounts$=this.currencyExchangeFormFacade.debitAccounts$(),this.debitNoFactoringAccounts$=this.getNoFactoringAccounts(this.currencyExchangeFormFacade.debitAccounts$()),this.debitCurr$=this.currencyExchangeFormFacade.debitCurr$(),this.unFinishedDeal$=this.currencyExchangeFormFacade.unfinishedDeal$().pipe((0,B.d)(1)),this.setDisableFixCourseButton(),this.setDisableSentClientCourseButton(),this.pending$=this.currencyExchangeFormFacade.pending$().pipe((0,B.d)(1)),this.currencyExchangeFormFacade.calculateByClientRate(this.destroy$),this.contentInitializedService.setInitialized(!0),(0,h.a)([this.currencies$,this.dealTypes$,this.prefillData$]).pipe((0,L.R)(this.destroy$)).subscribe(([E,R,ne])=>{if(this.isEditMode=!!ne?.id,!ne||!E||!E.length)return;ne.acceptImmediately?this.formGroup.get("acceptImmediately").setValue(ne.acceptImmediately===I.JM):this.formGroup.get("acceptImmediately").setValue(!1),this.formGroup.get("id").patchValue(ne.id);let G="";G=ne.fixedRateMode?"BY_BANK"===ne.fixedRateMode?"FromBank":"FromExchange":ne.dealType,this.formGroup.get("dealType").patchValue(G),ne.docNumber&&this.formGroup.get("docNumber").patchValue(ne.docNumber),ne.creditAmount?(this.formGroup.get("amountCredit").setValue(ne.creditAmount),this.onInputByClient("amountCredit")):ne.amountCredit&&"0.00"!==ne.amountCredit&&(this.formGroup.get("amountCredit").setValue(ne.amountCredit),this.onInputByClient("amountCredit")),ne.debitAmount?(this.formGroup.get("amountDebit").setValue(ne.debitAmount),this.onInputByClient("amountDebit")):ne.amountDebit&&"0.00"!==ne.amountDebit&&(this.formGroup.get("amountDebit").setValue(ne.amountDebit),this.onInputByClient("amountDebit")),this.formGroup.get("additionalInfo").setValue(ne.necessaryInfo||""),setTimeout(()=>{ne.debitCurrCodeIso?this.formGroup.get("debitCurr").patchValue(ne.debitCurrCodeIso):ne.debitAccCurr&&this.currencyNamePipe.transform(ne.debitAccCurr,!0).pipe((0,w.q)(1)).subscribe(ce=>{this.formGroup.get("debitCurr").patchValue(ce)}),ne.creditCurrCodeIso?this.formGroup.get("creditCurr").patchValue(ne.creditCurrCodeIso):ne.creditAccCurr&&this.currencyNamePipe.transform(ne.creditAccCurr,!0).pipe((0,w.q)(1)).subscribe(ce=>{this.formGroup.get("creditCurr").patchValue(ce)}),ne.clientRequestRate&&(this.formGroup.get("hasClientRate").setValue(!0),this.setIsClientRate({target:{checked:!0}})),this.formGroup.get("clientRequestRate").setValue(ne.clientRequestRate||""),this.onInputByClient("clientRequestRate"),this.formGroup.get("creditAccId").setValue(ne.creditAccId),this.formGroup.get("debitAccId").setValue(ne.debitAccId)},200),this.formGroup.get("employee").setValue(ne.employee),this.formGroup.get("employeePhone").setValue(ne.employeePhone)})})}getNoFactoringAccounts(E){return E.pipe((0,m.U)(R=>R.filter(ne=>!X.$.FACTORING_ACCOUNT_MASK.test(ne.number))))}onInputByClient(E){this.currencyExchangeFormFacade.setEnteredField(E)}onInputFocus(E){this.currencyExchangeFormFacade.setFocusField(E)}setDisableFixCourseButton(){this.disableFixCourseButton$=(0,h.a)([this.currencyExchangeFormFacade.courseIsSent$(),this.currencyExchangeFormFacade.courseSuccessFixed$(),this.currencyExchangeFormFacade.onlineModeAvailable$(),this.currencyExchangeFormFacade.showClientCourseForm$(),this.unFinishedDeal$,this.obtainedTransactionRate$]).pipe((0,m.U)(([E,R,ne,G,ce,xe])=>!xe||E||R||!ne||G||ce&&(ce.deal&&ce.deal.type!==this.currencyExchangeMode||!ce.draft)||this.isModalForm&&"precheck"!==this.status),(0,B.d)(1))}setDisableSentClientCourseButton(){this.disableSentClientCourseButton$=(0,h.a)([this.currencyExchangeFormFacade.courseIsSent$(),this.currencyExchangeFormFacade.clientCourseApproved$(),this.currencyExchangeFormFacade.courseSuccessFixed$(),this.currencyExchangeFormFacade.onlineModeAvailable$(),this.unFinishedDeal$]).pipe((0,m.U)(([E,R,ne,G,ce])=>E||R||ne||!G||ce&&(ce.deal&&ce.deal.type!==this.currencyExchangeMode||!ce.draft)))}subscribeOnErrors(){this.currencyExchangeFormFacade.getErrors$().pipe((0,L.R)(this.destroy$)).subscribe(E=>{this.toastCustomService.show(E,"error")})}static#e=this.\u0275fac=function(R){return new(R||p)(e.\u0275\u0275inject(e.Injector))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac})}(0,n.gn)([(0,d.SQ)()],p.prototype,"lang",void 0)},47706:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>Ce});var n=t(49671),e=t(17445),i=t(39300),d=t(82722),a=t(95698),u=t(28746),h=t(54004),l=t(74720),m=t(54049),x=t(94650),O=t(24006),L=t(20656),w=t(68642),B=t(4455),_=t(66200),y=t(98504),$=t(36895),C=t(75568),T=t(47898),j=t(40375),I=t(70154),F=t(61705),z=t(65793),X=t(21276),p=t(16463),P=t(90995),E=t(16611);function R(U,H){if(1&U&&x.\u0275\u0275element(0,"app-select-credit-currency-control",16),2&U){const Z=x.\u0275\u0275nextContext(2);x.\u0275\u0275property("currencies",Z.getCurrencies())}}function ne(U,H){if(1&U&&x.\u0275\u0275element(0,"app-select-debit-currency-control",17),2&U){const Z=x.\u0275\u0275nextContext(2);x.\u0275\u0275property("currencies",Z.getCurrencies())}}function G(U,H){if(1&U&&(x.\u0275\u0275elementStart(0,"div",6),x.\u0275\u0275element(1,"app-amount-credit-control",18)(2,"app-amount-debit-control",19),x.\u0275\u0275elementEnd()),2&U){const Z=x.\u0275\u0275nextContext(2);x.\u0275\u0275advance(1),x.\u0275\u0275property("currency",Z.getCreditCurrencyIsoCode()),x.\u0275\u0275advance(1),x.\u0275\u0275property("currency",Z.getDebitCurrencyIsoCode())}}function ce(U,H){if(1&U&&(x.\u0275\u0275elementStart(0,"div",6),x.\u0275\u0275element(1,"app-amount-debit-control",20)(2,"app-amount-credit-control",21),x.\u0275\u0275elementEnd()),2&U){const Z=x.\u0275\u0275nextContext(2);x.\u0275\u0275advance(1),x.\u0275\u0275property("currency",Z.getDebitCurrencyIsoCode()),x.\u0275\u0275advance(1),x.\u0275\u0275property("currency",Z.getCreditCurrencyIsoCode())}}function xe(U,H){if(1&U){const Z=x.\u0275\u0275getCurrentView();x.\u0275\u0275elementStart(0,"div")(1,"div",6),x.\u0275\u0275template(2,R,1,1,"app-select-credit-currency-control",7),x.\u0275\u0275template(3,ne,1,1,"app-select-debit-currency-control",8),x.\u0275\u0275element(4,"app-deal-type-control",9),x.\u0275\u0275pipe(5,"async"),x.\u0275\u0275element(6,"app-doc-number-control",10),x.\u0275\u0275elementEnd(),x.\u0275\u0275template(7,G,3,2,"div",11),x.\u0275\u0275template(8,ce,3,2,"div",11),x.\u0275\u0275elementStart(9,"div",12)(10,"app-button",13),x.\u0275\u0275listener("click",function(){x.\u0275\u0275restoreView(Z);const Pe=x.\u0275\u0275nextContext();return x.\u0275\u0275resetView(Pe.onFixRatePopup())}),x.\u0275\u0275pipe(11,"async"),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(12,"app-button",14),x.\u0275\u0275listener("click",function(){x.\u0275\u0275restoreView(Z);const Pe=x.\u0275\u0275nextContext();return x.\u0275\u0275resetView(Pe.cancel())}),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(13,"app-button",15),x.\u0275\u0275listener("click",function(){x.\u0275\u0275restoreView(Z);const Pe=x.\u0275\u0275nextContext();return x.\u0275\u0275resetView(Pe.revoke())}),x.\u0275\u0275elementEnd()()()}if(2&U){const Z=x.\u0275\u0275nextContext();x.\u0275\u0275advance(2),x.\u0275\u0275property("ngIf","buy"===Z.currencyExchangeMode),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngIf","sale"===Z.currencyExchangeMode),x.\u0275\u0275advance(1),x.\u0275\u0275property("dealTypes",x.\u0275\u0275pipeBind1(5,7,Z.dealTypes$)),x.\u0275\u0275advance(3),x.\u0275\u0275property("ngIf","buy"===Z.currencyExchangeMode),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngIf","sale"===Z.currencyExchangeMode),x.\u0275\u0275advance(2),x.\u0275\u0275property("disabled",x.\u0275\u0275pipeBind1(11,9,Z.disableFixCourseButton$)||!Z.isBalanceEnough)("text","Fix rate now")}}const we=function(U){return{accountSum:U}};function Ge(U,H){if(1&U&&(x.\u0275\u0275elementStart(0,"div",22),x.\u0275\u0275text(1),x.\u0275\u0275pipe(2,"translate"),x.\u0275\u0275elementEnd()),2&U){const Z=x.\u0275\u0275nextContext();x.\u0275\u0275advance(1),x.\u0275\u0275textInterpolate1(" ",x.\u0275\u0275pipeBind3(2,1,"Balance is not enough",Z.lang,x.\u0275\u0275pureFunction1(5,we,Z.conversionBalance))," ")}}function ct(U,H){if(1&U&&(x.\u0275\u0275element(0,"app-broadcast-rate",23),x.\u0275\u0275pipe(1,"async"),x.\u0275\u0275pipe(2,"async"),x.\u0275\u0275pipe(3,"async")),2&U){const Z=x.\u0275\u0275nextContext();x.\u0275\u0275property("currency","buy"===Z.currencyExchangeMode?Z.getCreditCurrencyIsoCode():Z.getDebitCurrencyIsoCode())("dealTypeCode",x.\u0275\u0275pipeBind1(1,4,Z.dealTypeCode$))("onlineRate",x.\u0275\u0275pipeBind1(2,6,Z.obtainedTransactionRate$))("serviceAvailable",x.\u0275\u0275pipeBind1(3,8,Z.onlineModeIsAvailable$))}}let Ce=(()=>{class U extends m.i{constructor(Z,oe,Pe,Ie,pt,Ht,Wt){super(Z),this.injector=Z,this.fb=oe,this.onlineCourseService=Pe,this.currencyExchangeFormService=Ie,this.revokeDocumentAction=pt,this.localState=Ht,this.currencyPipe=Wt,this.loader=!0}get conversionBalance(){return this.data?.conversionBalance?this.currencyPipe.transform(this.data.conversionBalance,2,"."):""}get isBalanceEnough(){return"no_money"!==this.data?.status}ngOnInit(){this.init(),this.data=this.data.preCheckConversion||this.data,this.currencyExchangeMode="RUR"===this.data.creditCurrCodeIso?"sale":"buy",this.onlineCourseService.setCurrencyExchangeMode(this.currencyExchangeMode),this.isModalForm=!0,this.status=this.data.status,this.onlineCourseService.setIsPrecheckMode(!0),this.onlineCourseService.setDocId(this.data.id),this.onlineCourseService.fetchActiveStatusAfterPeriod(this.destroy$),this.contentInitializedService.initialized$().pipe((0,i.h)(Z=>Z),(0,d.R)(this.destroy$)).subscribe(()=>{this.setCurrencies(this.localState.getCurrencies());const Z=this.localState.getDebitAccounts().find(oe=>oe.id===this.data.debitAccId);this.setDebitCurrencyIsoCode(this.data.debitCurrCodeIso),this.setCreditCurrencyIsoCode(this.data.creditCurrCodeIso),this.setDebitBalance(Z?Z.balance:"0"),setTimeout(()=>{this.formGroup=this.currencyExchangeFormService.getFormGroup(),this.currencyExchangeFormService.updateValue({amountDebit:this.data.debitAmount||"",amountCredit:this.data.creditAmount||"",docNumber:this.data.docNumber,creditCurr:this.getCreditCurrencyIsoCode(),debitCurr:this.getDebitCurrencyIsoCode(),dealType:"BY_BANK"===this.data.fixedRateMode?"FromBank":"FromExchange"}),this.formGroup.disable({emitEvent:!1}),+this.formGroup.get("amountDebit").value>0?this.currencyExchangeFormFacade.setEnteredField("amountDebit"):+this.formGroup.get("amountCredit").value>0&&this.currencyExchangeFormFacade.setEnteredField("amountCredit"),this.onlineCourseService.setCurrencyExchangeType$("precheck"),this.loader=!1})})}setCurrencies(Z){this.currencies=Z}getCurrencies(){return this.currencies}getDebitCurrencyIsoCode(){return this.debitCurr}setDebitCurrencyIsoCode(Z){this.debitCurr=Z}setDebitBalance(Z){this.debitBalance=Z}getCreditCurrencyIsoCode(){return this.creditCurr}setCreditCurrencyIsoCode(Z){this.creditCurr=Z}cancel(){this.modalService.close()}onFixRatePopup(){var Z=this;this.isBalanceEnough&&this.disableFixCourseButton$.pipe((0,a.q)(1)).subscribe(function(){var oe=(0,n.Z)(function*(Pe){Pe||("precheck"===(yield Z.getDocumentById()).status?(Z.loader=!0,Z.localState.setPending(!0),Z.currencyExchangeFormFacade.fixDealRatePrecheck(Z.currencyExchangeMode).pipe((0,a.q)(1),(0,u.x)(()=>Z.localState.setPending(!1))).subscribe(()=>{const pt=(0,e.F)(2e3).pipe((0,d.R)(Z.destroy$)).subscribe((0,n.Z)(function*(){const Ht=yield Z.getDocumentById();"send_to_twix"!==Ht.status&&(pt.unsubscribe(),Z.modalService.close(),Z.showSuccessMessage(Ht.status))}))},pt=>{Z.loader=!1,Z.localState.setErrors(pt||"\u041e\u0448\u0438\u0431\u043a\u0430. \u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u0440\u0441")})):Z.toastCustomService.show("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u0440\u0441","error"))});return function(Pe){return oe.apply(this,arguments)}}())}reloadHistory(){const Z=this.router.url;this.router.navigate([""]).then(()=>{this.router.navigate([Z])})}getDocumentById(){return new Promise(Z=>{this.documentService.getDocumentById(this.data.docModule,this.data.docType,this.data.id).pipe((0,a.q)(1),(0,h.U)(oe=>oe.preCheckConversion)).subscribe(oe=>Z(oe))})}revoke(){this.modalService.open(l.L,{header:"Withdraw",docType:this.data.docType,inputs:{text:"Are you sure you want to withdraw the application?",operation:{docIds:this.data.docId||this.data.id,data:this.data},declinenDone:()=>{this.reloadHistory()}}})}showSuccessMessage(Z){if("fixed"===Z){const oe="precheck_conversion"===this.data.docType?"RUR"===this.data.creditCurrCodeIso?"\u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0443":"\u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443":"\u043d\u0430 \u043e\u0431\u043c\u0435\u043d",Pe=this.formGroup.get("amountCredit").value||"",Ie=this.formGroup.get("creditCurr").value||"";this.toastCustomService.show("\u041a\u0443\u0440\u0441 \u0437\u0430\u044f\u0432\u043a\u0438 "+oe+" "+(Pe?Pe+" "+Ie:"\u0432\u0430\u043b\u044e\u0442\u044b")+" \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d","success")}else this.toastCustomService.show("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u0440\u0441","error")}static#e=this.\u0275fac=function(oe){return new(oe||U)(x.\u0275\u0275directiveInject(x.Injector),x.\u0275\u0275directiveInject(O.FormBuilder),x.\u0275\u0275directiveInject(L.o),x.\u0275\u0275directiveInject(w.c),x.\u0275\u0275directiveInject(B.a),x.\u0275\u0275directiveInject(_.Z),x.\u0275\u0275directiveInject(y.H))};static#t=this.\u0275cmp=x.\u0275\u0275defineComponent({type:U,selectors:[["app-currency-exchange-popup"]],inputs:{data:"data"},features:[x.\u0275\u0275InheritDefinitionFeature],decls:6,vars:5,consts:[[1,"purchase-currency"],["data-qa","1663076394724",1,"purchase-currency__form",3,"formGroup"],[4,"ngIf"],["class","balance-limit",4,"ngIf"],[3,"hidden"],[3,"currency","dealTypeCode","onlineRate","serviceAvailable",4,"ngIf"],[1,"form-wrapper"],["class","three-inline","data-qa","1663076398797","formControlName","creditCurr",3,"currencies",4,"ngIf"],["class","three-inline","data-qa","1663076402357","formControlName","debitCurr",3,"currencies",4,"ngIf"],["data-qa","1663076406376","formControlName","dealType",1,"three-inline",3,"dealTypes"],["data-qa","1663076408752","formControlName","docNumber",1,"three-inline"],["class","form-wrapper",4,"ngIf"],[1,"currency-exchange__buttons"],["data-qa","1663076444603",3,"disabled","text","click"],["data-qa","1663076449712","text","Fix rate later","type","small",3,"click"],["data-qa","1663076451396","text","Cancel connection","type","small-bordered",3,"click"],["data-qa","1663076398797","formControlName","creditCurr",1,"three-inline",3,"currencies"],["data-qa","1663076402357","formControlName","debitCurr",1,"three-inline",3,"currencies"],["data-qa","1663076431024","formControlName","amountCredit",1,"half-inline",3,"currency"],["data-qa","1663076433920","formControlName","amountDebit",1,"half-inline",3,"currency"],["data-qa","1663076437588","formControlName","amountDebit",1,"half-inline",3,"currency"],["data-qa","1663076439778","formControlName","amountCredit",1,"half-inline",3,"currency"],[1,"balance-limit"],[3,"currency","dealTypeCode","onlineRate","serviceAvailable"]],template:function(oe,Pe){if(1&oe&&(x.\u0275\u0275elementStart(0,"div",0)(1,"div",1),x.\u0275\u0275template(2,xe,14,11,"div",2),x.\u0275\u0275template(3,Ge,3,7,"div",3),x.\u0275\u0275element(4,"app-loader",4),x.\u0275\u0275elementEnd(),x.\u0275\u0275template(5,ct,4,10,"app-broadcast-rate",5),x.\u0275\u0275elementEnd()),2&oe){let Ie;x.\u0275\u0275advance(1),x.\u0275\u0275property("formGroup",Pe.formGroup),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngIf",!Pe.loader),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngIf",!Pe.loader&&!Pe.isBalanceEnough),x.\u0275\u0275advance(1),x.\u0275\u0275property("hidden",!Pe.loader),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngIf",!Pe.loader&&(null==(Ie=Pe.getCurrencies())?null:Ie.length))}},dependencies:[$.O5,O.NgControlStatus,O.NgControlStatusGroup,O.FormGroupDirective,O.FormControlName,C.R,T.z,j.L,I.U,F.V,z.S,X.r,p.u,P.r,$.Ov,E.X$],styles:['@charset "UTF-8";.purchase-currency[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:24px;position:relative;min-height:80px}.purchase-currency__form[_ngcontent-%COMP%]{max-width:760px;width:100%}.purchase-currency__form[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{font-size:smaller;color:gray}.purchase-currency__form[_ngcontent-%COMP%]   .currency-exchange__buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:30px;margin-bottom:30px}.purchase-currency__form[_ngcontent-%COMP%]   .currency-exchange__buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{height:60px}.purchase-currency__form[_ngcontent-%COMP%]   .currency-exchange__buttons-left[_ngcontent-%COMP%]{display:flex}.purchase-currency__form[_ngcontent-%COMP%]   .currency-exchange__buttons-left[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:10px}.purchase-currency__not-available[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;padding:24px;font-size:18px}.purchase-currency[_ngcontent-%COMP%]   .form-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-flow:row wrap}.purchase-currency[_ngcontent-%COMP%]   .form-wrapper-column[_ngcontent-%COMP%]{flex-direction:column}.purchase-currency[_ngcontent-%COMP%]   .form-wrapper[_ngcontent-%COMP%]   .three-inline[_ngcontent-%COMP%]{width:calc(33% - 10px)}.purchase-currency[_ngcontent-%COMP%]   .form-wrapper[_ngcontent-%COMP%]   .half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.purchase-currency[_ngcontent-%COMP%]   .form-wrapper[_ngcontent-%COMP%]   app-performer-block[_ngcontent-%COMP%]   app-form-autocomplete-wrapper[_ngcontent-%COMP%]{width:100%!important}.purchase-currency[_ngcontent-%COMP%]   .form-wrapper[_ngcontent-%COMP%]   app-performer-block[_ngcontent-%COMP%]   app-form-autocomplete-wrapper[_ngcontent-%COMP%]   app-dynamic-form-autocomplete[_ngcontent-%COMP%]{width:100%!important}.purchase-currency[_ngcontent-%COMP%]   .form-wrapper[_ngcontent-%COMP%]   app-performer-block[_ngcontent-%COMP%]   app-dynamic-form-input[_ngcontent-%COMP%]{width:100%!important}.purchase-currency[_ngcontent-%COMP%]   .balance-limit[_ngcontent-%COMP%]{color:#d9291e}',".currency-exchange__buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:10px}.currency-exchange__buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{height:54px}.currency-exchange__buttons-left[_ngcontent-%COMP%]{display:flex}.currency-exchange__buttons-left[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:10px}"]})}return U})()},3949:(Ee,Q,t)=>{"use strict";t.d(Q,{Er:()=>i,JM:()=>e,L7:()=>a,Yh:()=>l,bx:()=>x,hr:()=>O,jo:()=>h,jy:()=>u,sX:()=>d,yf:()=>m});var n=t(6146);const e="\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435=\u041d\u0435\u0437\u0430\u043c\u0435\u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e",i="\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435=\u041f\u041e \u0421\u041e\u0413\u041b\u0410\u0421\u041e\u0412\u0410\u041d\u0418\u042e",d=20,a=["new","draft","fixed","check","precheck","for_send","send","send_template","for_send_abs","for_send_ps","for_decline","wait_decline","decline","cancel","auto_cancel","end","send_to_twix","no_money"],u=["check","precheck","for_send","send","send_template","for_send_abs","for_send_ps","fixed"],h=["end"],l=["for_decline","decline","cancel","auto_cancel"],m=[n.o.DocCurrBuy,n.o.DocCurrSell,n.o.DocCurrAgentFactoring,n.o.DocPlatporConv,n.o.DocDraftBuysell,n.o.PrecheckConversion,n.o.DocCurrBuyChildren],x=["precheck","no_money"],O=["new","end","cancel","decline","auto_cancel"]},63697:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{CurrencyExchangeModule:()=>dt});var n=t(36895),e=t(37413),i=t(71702),d=t(88044),a=t(54215),u=t(24006),h=t(74471),l=t(97271),m=t(66216),x=t(35522),O=t(92454),L=t(32286),w=t(65064),B=t(68642),_=t(66200),y=t(13652),$=t(60265),C=t(54004),T=t(48718),j=t(94650);let I=(()=>{class rt extends T.y{fetchAccountsWithCurrencies(){return this.mode=this.onlineCourseService.getCurrencyExchangeMode(),this.docType="precheck_conversion",this.apiService.post("sale"===this.mode?"curr/sell_metinv":"curr/buy_metinv",{}).pipe((0,C.U)(zt=>{const vt=this.utils.getArray(zt.creditAccounts),Rt=this.utils.getArray(zt.debitAccounts),gt=[];return[...Rt,...vt].forEach(sn=>{gt.find(wn=>wn.code===sn.currencyCode)||gt.push({isoCode:sn.currency,code:sn.currencyCode})}),{creditAccounts:vt,debitAccounts:Rt,currencies:gt}}))}static#e=this.\u0275fac=function(){let ze;return function(vt){return(ze||(ze=j.\u0275\u0275getInheritedFactory(rt)))(vt||rt)}}();static#t=this.\u0275prov=j.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac})}return rt})(),F=(()=>{class rt{static#e=this.\u0275fac=function(zt){return new(zt||rt)};static#t=this.\u0275mod=j.\u0275\u0275defineNgModule({type:rt});static#n=this.\u0275inj=j.\u0275\u0275defineInjector({providers:[w.g,_.Z,B.c,I,{provide:$.L,useClass:I},{provide:x.G,useClass:m.a},{provide:L.b,useClass:O.P}],imports:[n.ez,l.F,u.ReactiveFormsModule,a.m,y.V,e.D,h.h]})}return rt})();var z=t(44180),X=t(97582),p=t(16611),P=t(61135),E=t(77579),R=t(17445),ne=t(63900),G=t(39646),ce=t(71884),xe=t(82722),we=t(39300),Ge=t(35684),ct=t(86349),pe=t(6146),U=(t(66266),t(47706)),H=t(3949),Z=t(51348),oe=t(88581),Pe=t(40929),Ie=t(38101),pt=t(20656),Ht=t(37595),Wt=t(75885),Xe=t(75568),Qe=t(48086),Be=t(93379),at=t(98900);function lt(rt,qe){if(1&rt){const ze=j.\u0275\u0275getCurrentView();j.\u0275\u0275elementStart(0,"div")(1,"div",7)(2,"div",8),j.\u0275\u0275text(3),j.\u0275\u0275elementEnd()(),j.\u0275\u0275elementStart(4,"app-document-list",9),j.\u0275\u0275listener("actionDone",function(vt){j.\u0275\u0275restoreView(ze);const Rt=j.\u0275\u0275nextContext(2);return j.\u0275\u0275resetView(Rt.handleOnActionDone(vt))}),j.\u0275\u0275elementEnd()()}if(2&rt){const ze=qe.$implicit,zt=qe.index;j.\u0275\u0275attribute("data-qa","1657879293804"+zt),j.\u0275\u0275advance(3),j.\u0275\u0275textInterpolate(ze.dateCapture),j.\u0275\u0275advance(1),j.\u0275\u0275property("documents",ze.operations),j.\u0275\u0275attribute("data-qa","1657879304234"+zt)}}function Dt(rt,qe){if(1&rt){const ze=j.\u0275\u0275getCurrentView();j.\u0275\u0275elementStart(0,"div",10),j.\u0275\u0275listener("click",function(){j.\u0275\u0275restoreView(ze);const vt=j.\u0275\u0275nextContext(2);return j.\u0275\u0275resetView(vt.showMoreClick())}),j.\u0275\u0275text(1),j.\u0275\u0275pipe(2,"translate"),j.\u0275\u0275elementEnd()}if(2&rt){const ze=j.\u0275\u0275nextContext(2);j.\u0275\u0275advance(1),j.\u0275\u0275textInterpolate1(" ",j.\u0275\u0275pipeBind2(2,1,"Show more",ze.lang)," ")}}function Yt(rt,qe){1&rt&&j.\u0275\u0275element(0,"app-loader")}function Tt(rt,qe){if(1&rt&&(j.\u0275\u0275elementStart(0,"div"),j.\u0275\u0275template(1,lt,5,4,"div",3),j.\u0275\u0275pipe(2,"async"),j.\u0275\u0275template(3,Dt,3,4,"div",4),j.\u0275\u0275pipe(4,"async"),j.\u0275\u0275element(5,"app-empty-stub",5),j.\u0275\u0275pipe(6,"async"),j.\u0275\u0275template(7,Yt,1,0,"app-loader",6),j.\u0275\u0275pipe(8,"async"),j.\u0275\u0275elementEnd()),2&rt){const ze=j.\u0275\u0275nextContext();let zt;j.\u0275\u0275advance(1),j.\u0275\u0275property("ngForOf",j.\u0275\u0275pipeBind1(2,4,ze.documents$)),j.\u0275\u0275advance(2),j.\u0275\u0275property("ngIf",j.\u0275\u0275pipeBind1(4,6,ze.currencyExchangeHistoryService.showMore$)),j.\u0275\u0275advance(2),j.\u0275\u0275property("display",0===(null==(zt=j.\u0275\u0275pipeBind1(6,8,ze.documents$))?null:zt.length)),j.\u0275\u0275advance(2),j.\u0275\u0275property("ngIf",j.\u0275\u0275pipeBind1(8,10,ze.currencyExchangeHistoryService.loading$))}}class ot{constructor(qe,ze,zt,vt,Rt,gt,sn,wn,Qn){this.currencyExchangeHistoryService=qe,this.documentSignService=ze,this.documentService=zt,this.modalService=vt,this.router=Rt,this.onlineCourseService=gt,this.currencyExchangeDocItemMapper=sn,this.lastOperationService=wn,this.route=Qn,this.lang="",this.documents$=new P.X(null),this.destroyed$=new E.x,this.recordSubscriptions=new Map}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}ngOnInit(){this.currencyExchangeHistoryService.fetchDocuments(!0),this.subscribeRoute(),this.subscribeDocuments(),this.subscribePeriod()}addRecordSubscription(qe){const ze=(0,R.F)(3e3).pipe((0,xe.R)(this.destroyed$)).subscribe(()=>{this.documentService.getDocumentById("ibankul_curr",pe.o.PrecheckConversion,qe,!0).subscribe(zt=>{if(zt&&zt.preCheckConversion){const[vt]=this.currencyExchangeDocItemMapper.transform([zt.preCheckConversion]);(this.documents$.value||[]).forEach(Rt=>{Rt.operations.forEach(gt=>{gt.id===vt.id&&ct.l7(gt,vt)})})}})});this.recordSubscriptions.set(qe,ze)}unsubscribeAndRemoveAllRecSub(){this.recordSubscriptions.forEach(qe=>{qe.unsubscribe()}),this.recordSubscriptions.clear()}getParamsForCourse(qe){return{...parseFloat(qe.creditAmount)>0&&{creditAmount:qe.creditAmount},...parseFloat(qe.debitAmount)>0&&{debitAmount:qe.debitAmount},creditCurrCodeIso:qe.creditCurrCodeIso,debitCurrCodeIso:qe.debitCurrCodeIso,mode:qe.fixedRateMode}}showMoreClick(){this.currencyExchangeHistoryService.fetchDocuments(!1)}handleOnActionDone(qe){("decline_request"===qe||"send"===qe||"sign"===qe)&&(this.unsubscribeAndRemoveAllRecSub(),this.currencyExchangeHistoryService.fetchDocuments(!0))}subscribeRoute(){this.route.queryParams.subscribe(qe=>{const ze=qe.precheckId,zt=this.onlineCourseService.getOnlineModeAvailableCurrentValue();!ze||!zt||(this.documentService.getDocumentById("ibankul_curr",pe.o.PrecheckConversion,ze).pipe((0,xe.R)(this.destroyed$),(0,ne.w)(vt=>{const Rt=vt?vt.preCheckConversion:null;return Rt&&H.bx.includes(Rt.status)?this.onlineCourseService.fetchCourse(this.getParamsForCourse(Rt)).pipe((0,C.U)(gt=>[gt,Rt])):(0,G.of)(null)}),(0,we.h)(Boolean)).subscribe(([vt,Rt])=>{this.modalService.open(U.G,{header:"RUR"===Rt.creditCurrCodeIso?"Sale of currency":"Purchase of currency",size:"big",inputs:{data:Rt}})}),this.router.navigate([]))})}subscribeDocuments(){this.currencyExchangeHistoryService.documentsObservable$.pipe((0,xe.R)(this.destroyed$),(0,Ge.T)(1)).subscribe(qe=>{this.unsubscribeAndRemoveAllRecSub(),qe.forEach(ze=>{ze.operations.forEach(zt=>{zt.docType===pe.o.PrecheckConversion&&zt.statusDoc&&!H.hr.includes(zt.statusDoc)&&this.addRecordSubscription(zt.id||"")})}),this.documents$.next(qe)})}subscribePeriod(){this.lastOperationService.chosenPeriod$.pipe((0,xe.R)(this.destroyed$),(0,Ge.T)(1),(0,ce.x)((qe,ze)=>qe.beginDate===ze.beginDate&&qe.endDate===ze.endDate)).subscribe(()=>{this.unsubscribeAndRemoveAllRecSub(),this.currencyExchangeHistoryService.fetchDocuments(!0)})}static#e=this.\u0275fac=function(ze){return new(ze||ot)(j.\u0275\u0275directiveInject(Z.w),j.\u0275\u0275directiveInject(oe.V),j.\u0275\u0275directiveInject(Pe.Z),j.\u0275\u0275directiveInject(Ie.Z),j.\u0275\u0275directiveInject(z.F0),j.\u0275\u0275directiveInject(pt.o),j.\u0275\u0275directiveInject(Ht.E),j.\u0275\u0275directiveInject(Wt.o),j.\u0275\u0275directiveInject(z.gz))};static#t=this.\u0275cmp=j.\u0275\u0275defineComponent({type:ot,selectors:[["app-document-history"]],decls:4,vars:7,consts:[["data-qa","1657879276380",1,"history-application"],[1,"content-wrapper"],[4,"appSkeleton","appSkeletonWidth","appSkeletonHeight","appSkeletonRepeat","appSkeletonMargin"],[4,"ngFor","ngForOf"],["class","show-more","data-qa","1657879314163",3,"click",4,"ngIf"],[3,"display"],[4,"ngIf"],[1,"history-title-wrap"],[1,"history-title"],[3,"documents","actionDone"],["data-qa","1657879314163",1,"show-more",3,"click"]],template:function(ze,zt){1&ze&&(j.\u0275\u0275elementStart(0,"div",0)(1,"div",1),j.\u0275\u0275template(2,Tt,9,12,"div",2),j.\u0275\u0275pipe(3,"async"),j.\u0275\u0275elementEnd()()),2&ze&&(j.\u0275\u0275advance(2),j.\u0275\u0275property("appSkeleton",null===j.\u0275\u0275pipeBind1(3,5,zt.documents$))("appSkeletonWidth","100%")("appSkeletonHeight","85px")("appSkeletonRepeat",5)("appSkeletonMargin","10px 0"))},dependencies:[Xe.R,Qe.d,Be.e,at.q,n.sg,n.O5,p.X$,n.Ov],styles:['@charset "UTF-8";.history-application[_ngcontent-%COMP%]{display:flex;flex-direction:column}.history-title-wrap[_ngcontent-%COMP%]{padding:12px 19px;background:#f1f2f2}.history-title[_ngcontent-%COMP%]{font-size:18px;color:#88909b}.content-wrapper[_ngcontent-%COMP%]{padding-top:35px;position:relative}.show-more[_ngcontent-%COMP%]{padding:12px 0;background:#f1f2f2;text-align:center;cursor:pointer}']})}(0,X.gn)([(0,p.SQ)()],ot.prototype,"lang",void 0);var Gt=t(15439),wt=t.n(Gt),Ut=t(62673),vn=t(9149),xn=t(37601),bn=t(75198),hn=t(65218),pn=t(15557),In=t(43679),Dn=t(30815),Tn=t(15725),mn=t(19683);function Yn(rt,qe){if(1&rt){const ze=j.\u0275\u0275getCurrentView();j.\u0275\u0275elementStart(0,"div",13)(1,"div")(2,"span",8),j.\u0275\u0275text(3),j.\u0275\u0275pipe(4,"translate"),j.\u0275\u0275elementEnd(),j.\u0275\u0275elementStart(5,"app-datepicker",14),j.\u0275\u0275listener("dateChange",function(vt){j.\u0275\u0275restoreView(ze);const Rt=j.\u0275\u0275nextContext(2);return j.\u0275\u0275resetView(Rt.datePickersChanged(vt,"beginDate"))}),j.\u0275\u0275elementEnd()(),j.\u0275\u0275elementStart(6,"div")(7,"span",8),j.\u0275\u0275text(8),j.\u0275\u0275pipe(9,"translate"),j.\u0275\u0275elementEnd(),j.\u0275\u0275elementStart(10,"app-datepicker",15),j.\u0275\u0275listener("dateChange",function(vt){j.\u0275\u0275restoreView(ze);const Rt=j.\u0275\u0275nextContext(2);return j.\u0275\u0275resetView(Rt.datePickersChanged(vt,"endDate"))}),j.\u0275\u0275elementEnd()()()}if(2&rt){const ze=j.\u0275\u0275nextContext(2);j.\u0275\u0275advance(3),j.\u0275\u0275textInterpolate(j.\u0275\u0275pipeBind2(4,4,"From",ze.lang)),j.\u0275\u0275advance(2),j.\u0275\u0275property("value",ze.datesPeriod.beginDate),j.\u0275\u0275advance(3),j.\u0275\u0275textInterpolate(j.\u0275\u0275pipeBind2(9,7,"To",ze.lang)),j.\u0275\u0275advance(2),j.\u0275\u0275property("value",ze.datesPeriod.endDate)}}function cn(rt,qe){if(1&rt){const ze=j.\u0275\u0275getCurrentView();j.\u0275\u0275elementStart(0,"div",7)(1,"span",8),j.\u0275\u0275text(2,"\u0437\u0430"),j.\u0275\u0275elementEnd(),j.\u0275\u0275elementStart(3,"div")(4,"app-no-input-select",9),j.\u0275\u0275listener("periodChange",function(vt){j.\u0275\u0275restoreView(ze);const Rt=j.\u0275\u0275nextContext();return j.\u0275\u0275resetView(Rt.changePeriod(vt))}),j.\u0275\u0275elementStart(5,"span",10)(6,"span")(7,"span",11),j.\u0275\u0275text(8),j.\u0275\u0275pipe(9,"lowercase"),j.\u0275\u0275elementEnd()()()()(),j.\u0275\u0275template(10,Yn,11,10,"div",12),j.\u0275\u0275elementEnd()}if(2&rt){const ze=j.\u0275\u0275nextContext();j.\u0275\u0275advance(4),j.\u0275\u0275property("items",ze.lastOperationService.periods),j.\u0275\u0275advance(4),j.\u0275\u0275textInterpolate(j.\u0275\u0275pipeBind1(9,3,ze.datesPeriod.currentPeriod.description)),j.\u0275\u0275advance(2),j.\u0275\u0275property("ngIf","today"!==ze.datesPeriod.currentPeriod.period&&"yesterday"!==ze.datesPeriod.currentPeriod.period)}}function Nn(rt,qe){if(1&rt&&j.\u0275\u0275element(0,"app-tab",16),2&rt){const zt=qe.index;j.\u0275\u0275property("label",qe.$implicit.capture),j.\u0275\u0275attribute("data-qa","1657879086710"+zt)}}class Bt{constructor(qe,ze,zt,vt,Rt,gt,sn,wn){this.changeDetectorRef=qe,this.router=ze,this.activatedRoute=zt,this.onlineCourseService=vt,this.contentInitialized=Rt,this.lastOperationService=gt,this.toast=sn,this.userDataService=wn,this.pathData=[],this.initialTabIndex=0,this.currentIndex=0,this.childrenViewInitialized$=this.contentInitialized.initialized$(),this.destroyed$=new E.x,this.activeStatus$=new E.x,this._datesPeriod=this.lastOperationService.chosenPeriod$.value}get datesPeriod(){return this._datesPeriod}set datesPeriod(qe){const ze=this.lastOperationService.setPeriodInRange(this.datesPeriod,qe);ze.hasError&&this.toast.show("Year dates error","error"),this._datesPeriod=ze.period,sessionStorage.setItem("filter-period",JSON.stringify(ze.period)),this.lastOperationService.chosenPeriod$.next(ze.period)}ngOnInit(){this.activatedRoute.data.pipe((0,xe.R)(this.destroyed$)).subscribe(({pageData:qe})=>{this.mode=qe.mode,this.pathData=qe.pathData,this.tabs=qe.tabs,this.getOnlineModeStatus(this.mode),this.lastOperationService.setSessionStorage(this.userDataService.STORAGE_NAME_CURRENCY_EXCHANGE_MODE,this.mode)}),this.router.events.pipe((0,xe.R)(this.destroyed$)).subscribe(qe=>{if(qe instanceof z.m2){const ze=qe.url.substr(qe.url.lastIndexOf("/")+1);(function Ze(rt){return["online","offline","precheck"].indexOf(rt)>-1})(ze)&&(this.mode=ze),this.setInitialTabIndex()}}),this.setInitialTabIndex()}ngOnDestroy(){this.activeStatus$.next(null),this.activeStatus$.complete(),this.destroyed$.next(null),this.destroyed$.complete()}onClose(){this.router.navigate(["/desktop"])}goToNewTab(qe){this.activeTab=this.tabs[qe],this.router.navigate([`/currency-exchange/${this.mode}/${this.activeTab.value}`])}changePeriod(qe){this.datesPeriod="period"!==qe.period?this.lastOperationService.changePeriod(qe,this.datesPeriod.endDate,this.datesPeriod.beginDate):{...this.datesPeriod,currentPeriod:qe}}datePickersChanged(qe,ze){this.datesPeriod={...this.datesPeriod,[ze]:qe},"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(Rt=>"period"===Rt.period));const zt=wt()(this.datesPeriod.endDate),vt=wt()(this.datesPeriod.beginDate);zt.diff(vt,"days")>365||(this.datesPeriod=ct.d9(this.datesPeriod))}ngAfterContentChecked(){this.changeDetectorRef.detectChanges()}getOnlineModeStatus(qe){"online"===qe||"precheck"===qe?this.onlineCourseService.fetchActiveStatusAfterPeriod(this.activeStatus$):this.activeStatus$.next(null)}setInitialTabIndex(){this.currentIndex=this.getTabIdx(this.tabs),this.activeTab=this.tabs[this.currentIndex]}getTabIdx(qe){let ze;return qe.forEach((zt,vt)=>{location.pathname.endsWith(zt.value)&&(ze=vt)}),ze||0}static#e=this.\u0275fac=function(ze){return new(ze||Bt)(j.\u0275\u0275directiveInject(j.ChangeDetectorRef),j.\u0275\u0275directiveInject(z.F0),j.\u0275\u0275directiveInject(z.gz),j.\u0275\u0275directiveInject(pt.o),j.\u0275\u0275directiveInject(Ut.v),j.\u0275\u0275directiveInject(Wt.o),j.\u0275\u0275directiveInject(vn.j),j.\u0275\u0275directiveInject(xn.M))};static#t=this.\u0275cmp=j.\u0275\u0275defineComponent({type:Bt,selectors:[["app-currency-exchange"]],decls:8,vars:11,consts:[["data-qa","1657879032784",3,"pathData"],["data-qa","1657879037367",3,"withTitle"],["data-qa","1657879041105",3,"closeButton","title","closeEvent"],["class","header__title",4,"ngIf"],[1,"currency-exchange__tabs"],["data-qa","1657879075160",3,"currentIndex","initialIndex","selectTab"],[3,"label",4,"ngFor","ngForOf"],[1,"header__title"],[1,"title-item"],["data-qa","1657879051229",3,"items","periodChange"],[1,"title-item","clickable"],[1,"title-item-text"],["class","my-period-dates",4,"ngIf"],[1,"my-period-dates"],["data-qa","1657879065457",3,"value","dateChange"],["data-qa","1657879060949",3,"value","dateChange"],[3,"label"]],template:function(ze,zt){1&ze&&(j.\u0275\u0275element(0,"app-path",0),j.\u0275\u0275elementStart(1,"app-page",1)(2,"app-page-title",2),j.\u0275\u0275listener("closeEvent",function(){return zt.onClose()}),j.\u0275\u0275template(3,cn,11,5,"div",3),j.\u0275\u0275elementEnd(),j.\u0275\u0275elementStart(4,"div",4)(5,"app-tabs",5),j.\u0275\u0275listener("selectTab",function(Rt){return zt.goToNewTab(Rt)}),j.\u0275\u0275template(6,Nn,1,2,"app-tab",6),j.\u0275\u0275elementEnd()(),j.\u0275\u0275element(7,"router-outlet"),j.\u0275\u0275elementEnd()),2&ze&&(j.\u0275\u0275property("pathData",zt.pathData),j.\u0275\u0275advance(1),j.\u0275\u0275property("withTitle",!1),j.\u0275\u0275advance(1),j.\u0275\u0275classMap(zt.activeTab?zt.activeTab.value:""),j.\u0275\u0275property("closeButton",!0)("title",zt.pathData[0].capture),j.\u0275\u0275advance(1),j.\u0275\u0275property("ngIf",zt.activeTab&&"history"===zt.activeTab.value),j.\u0275\u0275advance(2),j.\u0275\u0275property("currentIndex",zt.currentIndex)("initialIndex",zt.initialTabIndex),j.\u0275\u0275advance(1),j.\u0275\u0275property("ngForOf",zt.tabs))},dependencies:[bn.Q,hn.n,pn.i,In.S,z.lC,n.sg,n.O5,Dn.l,Tn.I,mn.T,p.X$,n.i8],styles:['@charset "UTF-8";.currency-exchange__tabs[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}app-page[_ngcontent-%COMP%]   app-page-title[_ngcontent-%COMP%]     .page-title{justify-content:unset}app-page[_ngcontent-%COMP%]   app-page-title[_ngcontent-%COMP%]     .page-title__content{margin-left:7px;flex-grow:1}app-page[_ngcontent-%COMP%]   app-page-title[_ngcontent-%COMP%]     .header__title{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;align-items:center;font-size:24px;color:#080708;font-weight:700}app-page[_ngcontent-%COMP%]   app-page-title[_ngcontent-%COMP%]     .header__title .title-item{margin-right:8px}app-page[_ngcontent-%COMP%]   app-page-title[_ngcontent-%COMP%]     .header__title .title-item.clickable{cursor:pointer;text-decoration:underline;color:#7180b9}']})}(0,X.gn)([(0,p.SQ)()],Bt.prototype,"lang",void 0);var En=t(17489),Wn=t(39841),rn=t(92041);const Sn=[{capture:"Purchase currency",value:"buying",number:0},{capture:"Sell currency",value:"sale",number:1},{capture:"Application for repayment of agent factoring",value:"repayment-factoring",number:2},{capture:"History applications",value:"history",number:3}],ke=[{capture:"Application for the purchase of currency",value:"buying",number:0},{capture:"Application for the sale of currency",value:"sale",number:1},{capture:"Currency conversion",value:"conversion",number:2},{capture:"Factoring repayment request",value:"repayment-factoring",number:3},{capture:"History applications",value:"history",number:4}],ge=[{capture:"Purchase currency",value:"buying",number:0},{capture:"Sell currency",value:"sale",number:1},{capture:"History applications",value:"history",number:3}];var q=t(39486),J=t(81300);let Oe=(()=>{class rt{constructor(ze,zt,vt){this.productService=ze,this.onlineCourseService=zt,this.serverSettings=vt}resolve(ze,zt){const vt=ze.paramMap.get("mode");return this.onlineCourseService.setCurrencyExchangeType$(vt),(0,Wn.a)([this.productService.getProducts(),this.serverSettings.getBooleanSettings(this.serverSettings.servicesULCurr,["PAY/CURRBUY","PAY/CURRSELL","PAY/PLATPOR_CONV"])]).pipe((0,C.U)(([Rt,gt])=>{this.onlineCourseService.setIsOnlineMode("online"===vt),this.onlineCourseService.setIsPrecheckMode("precheck"===vt);const sn=this.productService.getProductsCurrency().map(ki=>ki.currency),wn=En.uniq(sn).length>1;let Qn;switch(vt){case"online":Qn=Sn;break;case"offline":Qn=ke;break;case"precheck":Qn=ge}wn||(Qn=Qn.filter(ki=>"conversion"!==ki.value));const pi=this.onlineCourseService.getPathData(vt);return Rt.some(ki=>rn.$.FACTORING_ACCOUNT_MASK.test(ki.number))||(Qn=Qn.filter(ki=>"repayment-factoring"!==ki.value)),gt["PAY/CURRBUY"]||(Qn=Qn.filter(ki=>"buying"!==ki.value)),gt["PAY/CURRSELL"]||(Qn=Qn.filter(ki=>"sale"!==ki.value)),gt["PAY/PLATPOR_CONV"]||(Qn=Qn.filter(ki=>"conversion"!==ki.value)),{pathData:pi,tabs:Qn,mode:vt}}))}static#e=this.\u0275fac=function(zt){return new(zt||rt)(j.\u0275\u0275inject(q.su),j.\u0275\u0275inject(pt.o),j.\u0275\u0275inject(J.l))};static#t=this.\u0275prov=j.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac})}return rt})();const je=[{path:":mode",component:Bt,resolve:{pageData:Oe},children:[{path:"",redirectTo:"buying",pathMatch:"full"},{path:"buying",loadChildren:()=>Promise.all([t.e(551),t.e(592),t.e(350)]).then(t.bind(t,46350)).then(rt=>rt.BuyingCurrencyFormModule)},{path:"sale",loadChildren:()=>Promise.all([t.e(551),t.e(592),t.e(300)]).then(t.bind(t,52300)).then(rt=>rt.SaleCurrencyFormModule)},{path:"conversion",loadChildren:()=>t.e(938).then(t.bind(t,50938)).then(rt=>rt.ConversionCurrencyFormModule)},{path:"repayment-factoring",loadChildren:()=>Promise.all([t.e(551),t.e(697)]).then(t.bind(t,33348)).then(rt=>rt.RepaymentFactoringFormModule)},{path:"history",component:ot},{path:"**",redirectTo:"/desktop"}]}];let Et=(()=>{class rt{static#e=this.\u0275fac=function(zt){return new(zt||rt)};static#t=this.\u0275mod=j.\u0275\u0275defineNgModule({type:rt});static#n=this.\u0275inj=j.\u0275\u0275defineInjector({providers:[Oe],imports:[z.Bz.forChild(je),z.Bz]})}return rt})(),dt=(()=>{class rt{static#e=this.\u0275fac=function(zt){return new(zt||rt)};static#t=this.\u0275mod=j.\u0275\u0275defineNgModule({type:rt});static#n=this.\u0275inj=j.\u0275\u0275defineInjector({providers:[Ut.v,Oe,pt.o,Ht.E],imports:[a.m,e.D,Et,n.ez,d.u,i.B,F,F]})}return rt})()},37595:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>x}),t(66266);var e=t(6146),i=t(3949),d=t(94650),a=t(44509),u=t(98504),h=t(15644),l=t(16611),m=t(20656);let x=(()=>{class O{constructor(w,B,_,y,$){this.currencySymbolPipe=w,this.currencyPipe=B,this.utilConfigService=_,this.translation=y,this.onlineCourseService=$}static addCreateApplicationAction(w,B){w.docType===e.o.DocDraftBuysell&&B.push({type:"createApplication",data:{docType:w.docType,docId:w.id}})}static addShowSignAction(w,B){(w.actions||[]).includes("sign_list")&&B.push({type:"showSigns",data:{docId:w.id}})}static addSendAction(w,B){"new"===w.status&&w.docType!==e.o.DocDraftBuysell&&"2"===w.signStatus&&B.push({type:"send",data:{docId:w.id,docType:w.docType,docModule:w.docModule}})}static addEditAction(w,B){"new"===w.status&&"2"!==w.signStatus&&"1"!==w.signStatus&&B.push({type:"edit",data:{docId:w.id,docType:w.docType,docModule:w.docModule}})}static addFixRateAction(w,B){["precheck","no_money"].includes(w.status)&&B.push({type:"fixRate",data:{docType:w.docType,docId:w.id,inPopup:!0}})}static addSignAction(w,B){"new"===w.status&&w.docType!==e.o.DocDraftBuysell&&"2"!==w.signStatus&&B.push({type:"sign",data:{docId:w.id,docType:w.docType,docModule:w.docModule,conversionMode:"precheck_conversion"===w.docType?"precheck":w.draftDealId?"online":"offline"}})}static addDeclineRequestAction(w,B){w.docType===e.o.PrecheckConversion||"true"===w.isAuto?(w.actions||[]).includes("decline")&&B.push({type:"decline_request_without_reason",data:{docId:w.id,docType:w.docType,docModule:w.docModule,document:w}}):(i.jy.includes(w.status)&&!w.draftDealId||w.docType===e.o.FixedRate&&"draft"===w.status)&&B.push({type:"revoke_document",data:{revoked:{docId:w.id,docType:w.docType,docModule:w.docModule}}})}static addContinueProcessAction(w,B){w.docType===e.o.FixedRate&&"draft"===w.status&&B.push({type:"continueProcessingApplication",data:{document:w}})}static getTitle(w){switch(w.docType){case e.o.DocCurrAgentFactoring:return"\u041f\u043e\u0433\u0430\u0448\u0435\u043d\u0438\u0435 \u0430\u0433\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430 "+(w.draftDealId?"\u043e\u043d\u043b\u0430\u0439\u043d":"");case e.o.DocCurrBuy:return w.draftDealId?"Buy currency online":w.acceptImmediately===i.JM?"Buy currency auto":"Purchase of currency";case e.o.DocCurrSell:return w.draftDealId?"Sale currency online":w.acceptImmediately===i.JM?"Sale currency auto":"Sale of currency";case e.o.PrecheckConversion:return"RUR"===w.creditCurrCodeIso?"Sale of currency":"Purchase of currency";case e.o.DocDraftBuysell:return`${O.getDraftType(w.draftType||"")} \u043e\u043d\u043b\u0430\u0439\u043d`;case e.o.DocPlatporConv:return"\u041a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0432\u0430\u043b\u044e\u0442\u044b";case e.o.FixedRate:return"RUR"===w.creditIso?"\u041f\u0440\u043e\u0434\u0430\u0436\u0430 \u0432\u0430\u043b\u044e\u0442\u044b \u043e\u043d\u043b\u0430\u0439\u043d":"\u041f\u043e\u043a\u0443\u043f\u043a\u0430 \u0432\u0430\u043b\u044e\u0442\u044b \u043e\u043d\u043b\u0430\u0439\u043d";default:return""}}static getDraftType(w){switch(w){case"CB":return"\u041f\u043e\u043a\u0443\u043f\u043a\u0430 \u0432\u0430\u043b\u044e\u0442\u044b";case"CS":return"\u041f\u0440\u043e\u0434\u0430\u0436\u0430 \u0432\u0430\u043b\u044e\u0442\u044b";default:return"\u041f\u043e\u0433\u0430\u0448\u0435\u043d\u0438\u0435 \u0430\u0433\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430"}}static getRevokeTitle(w){switch(w.docType){case e.o.DocCurrAgentFactoring:return"\u041e\u0442\u0437\u044b\u0432 \u043d\u0430 \u043f\u043e\u0433\u0430\u0448\u0435\u043d\u0438\u0435 \u0430\u0433\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430 "+(w.draftDealId?"\u043e\u043d\u043b\u0430\u0439\u043d":"");case e.o.DocCurrBuy:return"\u041e\u0442\u0437\u044b\u0432 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 \u0432\u0430\u043b\u044e\u0442\u044b "+(w.draftDealId?"\u043e\u043d\u043b\u0430\u0439\u043d":"");case e.o.DocCurrSell:return"\u041e\u0442\u0437\u044b\u0432 \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 \u0432\u0430\u043b\u044e\u0442\u044b "+(w.draftDealId?"\u043e\u043d\u043b\u0430\u0439\u043d":"");case e.o.DocPlatporConv:return"\u041e\u0442\u0437\u044b\u0432 \u043d\u0430 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u044e \u0432\u0430\u043b\u044e\u0442\u044b";default:return""}}static getCreditCurr(w){return w.docType===e.o.PrecheckConversion?w.creditCurrCodeIso||"":w.docType===e.o.FixedRate?w.creditIso||"":w.creditAccCurr||(w.draftType&&"CS"===w.draftType?w.sellCurrency:w.buyCurrency)||""}static getDebitCurr(w){return w.docType===e.o.PrecheckConversion?w.debitCurrCodeIso||"":w.docType===e.o.FixedRate?w.debitIso||"":w.debitAccCurr||(w.draftType&&"CS"===w.draftType?w.buyCurrency:w.sellCurrency)||""}static getClientRate(w){const B=Number(w.clientRequestRate||w.draftRate||w.clientRate);return Number.isNaN(B)?"":B.toFixed(4)}static isSale(w){return w.docType===e.o.FixedRate?"RUR"!==w.creditIso:w.docType===e.o.PrecheckConversion?"RUR"===w.creditCurrCodeIso:!!(w.docType===e.o.DocCurrSell||w.draftType&&"CS"===w.draftType)}static getCreditAmount(w){return w.docType===e.o.FixedRate||w.docType===e.o.PrecheckConversion?w.finalAmountCredit||w.creditAmount||"":"fixed"===w.status?w.finalAmountCredit||w.creditAmount||w.amountCredit||"":w.finalAmountCredit||w.amountCredit||(w.draftType&&"CS"===w.draftType?w.sellAmount:w.buyAmount)||""}static getDebitAmount(w){return w.docType===e.o.FixedRate||w.docType===e.o.PrecheckConversion?w.finalAmountDebit||w.debitAmount||"":"fixed"===w.status?w.finalAmountDebit||w.debitAmount||w.amountDebit||"":w.finalAmountDebit||w.amountDebit||(w.draftType&&"CS"===w.draftType?w.buyAmount:w.sellAmount)||""}static getStatus(w){const B=`${w.status}`.toLowerCase();return"new"!==B||w.draftType?"new"===B&&w.draftType?"\u041d\u043e\u0432\u044b\u0439":"end"===B?"\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d":"auto_cancel"===B?"\u041e\u0442\u043e\u0437\u0432\u0430\u043d. \u041e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0434\u043d\u044f":w.statusCaption?w.statusCaption[0].toUpperCase()+w.statusCaption.slice(1):w.status:`${w.signStatusCaption}`}static getStatusClassName(w){return i.jo.includes(w)?"performed":i.jy.includes(w)?"in-processing":i.Yh.includes(w)?"canceled":"new"===w?"for-sign":""}static addPrintAction(w,B){i.Yh.concat(i.jo).includes(w.status)&&B.push({type:"print",data:{docId:w.id,inPopup:!0}})}transform(w){return this.utilConfigService.objectsParser(w,{id:"id",title:B=>O.getTitle(B),description:B=>this.getDescription(B),declineInfo:"declineInfo",conversionInfo:B=>this.parseConversionInfo(B),dots:B=>this.getButtonActions(B),customDecline:()=>!0,docType:"docType",docModule:"docModule",revokeId:"revokeId",revokeDocNumber:"revokeDocNumber",revokeStatus:"revokeStatus",revokeTitle:B=>O.getRevokeTitle(B),statusDoc:"status"})}getButtonActions(w){const B=[];return this.onlineCourseService.getOnlineModeAvailableCurrentValue()&&O.addFixRateAction(w,B),O.addCreateApplicationAction(w,B),O.addDeclineRequestAction(w,B),O.addShowSignAction(w,B),O.addPrintAction(w,B),O.addSignAction(w,B),O.addSendAction(w,B),O.addEditAction(w,B),O.addContinueProcessAction(w,B),{buttonActions:B}}parseConversionInfo(w){const B=O.getCreditCurr(w),_=O.getDebitCurr(w);return{isSale:O.isSale(w),docDate:w.date||w.docDate,amountBlock:{amountCredit:this.getParsedAmount(O.getCreditAmount(w),B),amountDebit:this.getParsedAmount(O.getDebitAmount(w),_)},statusBar:{status:O.getStatus(w),className:O.getStatusClassName(w.status)}}}getDealName(w){return w.docType===e.o.FixedRate||w.docType===e.o.PrecheckConversion?w.clientRate?O.isSale(w)?"\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0443\u0440\u0441 \u0441\u0434\u0435\u043b\u043a\u0438":"\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0443\u0440\u0441 \u0441\u0434\u0435\u043b\u043a\u0438":"BY_BANK"===w.fixedRateMode?"\u043f\u043e \u043a\u0443\u0440\u0441\u0443 \u0431\u0430\u043d\u043a\u0430":"\u043f\u043e \u0440\u044b\u043d\u043e\u0447\u043d\u043e\u043c\u0443 \u043a\u0443\u0440\u0441\u0443":w.clientRequestRate&&!w.draftDealId?w.docType===e.o.DocCurrBuy?"\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0443\u0440\u0441 \u0441\u0434\u0435\u043b\u043a\u0438":"\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0443\u0440\u0441 \u0441\u0434\u0435\u043b\u043a\u0438":w.dealType?this.translation.translate(w.dealType):""}getParsedAmount(w,B){let _="0.00";return w&&(_="number"==typeof w?w.toFixed(2):w),`${this.currencyPipe.transform(_)} ${this.currencySymbolPipe.transform(B)}`}getDescription(w){const B=w.docNumber?`\u2116${w.docNumber}, `:"",_=this.getDealName(w),y=O.getClientRate(w),$=w.commission?`, \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044f ${w.commission} \u0440\u0443\u0431.`:"";let C="";y&&(C=this.getRateString(y,w));const T=w.finalRequestRate||w.rate;if(w.docType===e.o.PrecheckConversion&&T){const I=Number(T);C=this.getRateString(Number.isNaN(I)?"":I.toFixed(4),w)}let j="";if(T){const I=this.getRateString(+T?(+T||0).toFixed(4):"",w);j=I?", \u043a\u0443\u0440\u0441 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f "+I:""}return C=C?" "+C:"",`${B} ${_}${C}${j} ${$}`}getRateString(w,B){if(!w)return"";const _=O.isSale(B)?O.getDebitCurr(B):O.getCreditCurr(B);return`1 ${this.currencySymbolPipe.transform(_)} = ${w}`}static#e=this.\u0275fac=function(B){return new(B||O)(d.\u0275\u0275inject(a.G),d.\u0275\u0275inject(u.H),d.\u0275\u0275inject(h.Pj),d.\u0275\u0275inject(l.D7),d.\u0275\u0275inject(m.o))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac})}return O})()},51348:(Ee,Q,t)=>{"use strict";t.d(Q,{w:()=>O});var n=t(61135),e=t(63900),i=t(54004),d=t(3949),a=t(94650),u=t(3751),h=t(15644),l=t(75885),m=t(37595),x=t(36895);let O=(()=>{class L{constructor(B,_,y,$,C){this.apiService=B,this.utilService=_,this.lastOperationService=y,this.currencyExchangeDocItemMapper=$,this.datePipe=C,this.loading$=new n.X(!1),this.showMore$=new n.X(!1),this.documents$=new n.X([])}get documentsObservable$(){return this.documents$.asObservable()}static generateURL(B,_){let y=`last_documents_full/with_revoke?number_of_entries=${d.sX}&list_of_statuses=${_}`;return B&&(y=`${y}&point_of_reference=${B}`),y}fetchDocuments(B=!1){const _=this.lastOperationService.chosenPeriod$.getValue();this.loading$.next(!0),this.apiService.post("curr/draft/list",{}).pipe((0,e.w)(()=>this.apiService.post(L.generateURL(B?"":this.getLastDocId(),d.L7.join(";")),{docTypes:d.yf.map(y=>({docModule:"ibankul_curr",docType:y})),dateFrom:this.utilService.revertFormatDateDMY(_.beginDate,""),dateTo:this.utilService.revertFormatDateDMY(_.endDate,"")}).pipe((0,i.U)(y=>this.utilService.getArray(y?.lastDocumentFullWithActions).map($=>({actions:$.actions,...$.document,...$.revokeDocument&&{revokeStatus:$.revokeDocument.status,revokeDocNumber:$.revokeDocument.docNumber,revokeId:$.revokeDocument.id}})))))).subscribe(y=>{const $=this.currencyExchangeDocItemMapper.transform(y);this.groupDocuments(B?[]:this.documents$.value,$),this.showMore$.next(y.length>=d.sX),this.loading$.next(!1)})}getLastDocId(){const _=[];return this.documents$.value.forEach(y=>{y.operations.forEach($=>{_.push(parseInt($.id||"0")||Number.MAX_VALUE)})}),`${_.sort()[0]||""}`}groupDocuments(B,_){_.forEach(y=>{const $=this.datePipe.transform(y.conversionInfo?.docDate,"yyyy-MM-dd"),C=B.find(T=>T.date===$);C?C.operations.push(y):B.push({date:$||"",dateCapture:this.datePipe.transform(y.conversionInfo?.docDate||"","dd MMMM yyyy",void 0,"ru")||"",operations:[y]})}),this.documents$.next(B.sort((y,$)=>new Date($.date).getTime()-new Date(y.date).getTime()).map(y=>({...y,operations:[...y.operations]})))}static#e=this.\u0275fac=function(_){return new(_||L)(a.\u0275\u0275inject(u.s),a.\u0275\u0275inject(h.Pj),a.\u0275\u0275inject(l.o),a.\u0275\u0275inject(m.E),a.\u0275\u0275inject(x.uU))};static#t=this.\u0275prov=a.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},66216:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>e});var n=t(94650);let e=(()=>{class i{calculateCreditAmount(a,u){const m=parseFloat(u)/parseFloat(a);return Number.isNaN(m)?"":m.toString()}calculateDebitAmount(a,u){const m=parseFloat(u)*parseFloat(a);return Number.isNaN(m)?"":m.toString()}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac})}return i})()},35522:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>e});const e=new(t(94650).InjectionToken)("Calculation amount service")},180:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>e});var n=t(94650);let e=(()=>{class i{calculateCreditAmount(a,u){const m=parseFloat(u)*parseFloat(a);return Number.isNaN(m)?"":m.toString()}calculateDebitAmount(a,u){const m=parseFloat(u)/parseFloat(a);return Number.isNaN(m)?"":m.toString()}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac})}return i})()},47898:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>l});var n=t(94650),e=t(36895),i=t(44509);function d(m,x){if(1&m&&(n.\u0275\u0275elementStart(0,"div",7),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"currencySymbol"),n.\u0275\u0275elementEnd()),2&m){const O=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate2(" 1 ",n.\u0275\u0275pipeBind1(2,2,O.currency)," = ",null==O.onlineRate?null:O.onlineRate.rate," ")}}function a(m,x){if(1&m&&(n.\u0275\u0275elementStart(0,"span",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&m){const O=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" \u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f: ",O.onlineRate.commission," % ")}}function u(m,x){1&m&&(n.\u0275\u0275elementStart(0,"span",9),n.\u0275\u0275text(1," \u041a\u0443\u0440\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e"),n.\u0275\u0275element(2,"br"),n.\u0275\u0275text(3," \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d "),n.\u0275\u0275elementEnd())}function h(m,x){if(1&m&&(n.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"span",3),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,d,3,4,"div",4),n.\u0275\u0275template(5,a,2,1,"span",5),n.\u0275\u0275template(6,u,4,0,"ng-template",null,6,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementEnd()()),2&m){const O=n.\u0275\u0275reference(7),L=n.\u0275\u0275nextContext();n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(L.dealTypeName),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",L.serviceAvailable)("ngIfElse",O),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",L.showCommission&&L.onlineRate)}}let l=(()=>{class m{get showCommission(){return"FromExchange"===this.dealTypeCode}get dealTypeName(){return"FromExchange"===this.dealTypeCode?"\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u0440\u044b\u043d\u043e\u0447\u043d\u044b\u0439 \u043a\u0443\u0440\u0441":"\u041a\u0443\u0440\u0441 \u0411\u0430\u043d\u043a\u0430"}static#e=this.\u0275fac=function(L){return new(L||m)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:m,selectors:[["app-broadcast-rate"]],inputs:{dealTypeCode:"dealTypeCode",currency:"currency",onlineRate:"onlineRate",serviceAvailable:"serviceAvailable"},decls:1,vars:1,consts:[["class","broadcast-rate-wrapper","data-qa","1657879634064",4,"ngIf"],["data-qa","1657879634064",1,"broadcast-rate-wrapper"],[1,"broadcast-rate-info"],[1,"broadcast-rate-info__deal_type"],["class","broadcast-rate-info__value",4,"ngIf","ngIfElse"],["class","broadcast-rate-info__commission",4,"ngIf"],["serviceNotAvailable",""],[1,"broadcast-rate-info__value"],[1,"broadcast-rate-info__commission"],[1,"not-available"]],template:function(L,w){1&L&&n.\u0275\u0275template(0,h,8,4,"div",0),2&L&&n.\u0275\u0275property("ngIf",w.dealTypeCode&&w.currency)},dependencies:[e.O5,i.G],styles:["[_nghost-%COMP%]{display:flex;flex-grow:1;justify-content:center}.broadcast-rate-wrapper[_ngcontent-%COMP%]{width:260px;border:2px solid #0e83df;border-radius:10px;padding:15px 30px 20px;margin-top:10px;margin-left:15px;align-self:flex-start}.broadcast-rate-wrapper[_ngcontent-%COMP%]   .broadcast-rate-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.broadcast-rate-wrapper[_ngcontent-%COMP%]   .broadcast-rate-info__deal_type[_ngcontent-%COMP%]{margin-bottom:16px;text-align:center}.broadcast-rate-wrapper[_ngcontent-%COMP%]   .broadcast-rate-info__value[_ngcontent-%COMP%]{font-size:28px;font-weight:600;margin-bottom:20px}.broadcast-rate-wrapper[_ngcontent-%COMP%]   .not-available[_ngcontent-%COMP%]{font-size:16px;text-align:center;font-weight:600}"]})}return m})()},70154:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>L});var n=t(94650),e=t(24006),i=t(15810),d=t(49066),a=t(10956),h=t(8058),l=t(16611),m=t(44509),x=t(18430);const O={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>L),multi:!0};let L=(()=>{class w extends i.k{constructor(_,y,$){super(_),this.dynamicFormService=_,this.translationService=y,this.currencySymbolPipe=$,this.inputByClient=new n.EventEmitter,this.inputFocus=new n.EventEmitter,this.fieldConfig=[{field:{name:"amountCredit"},component:{type:d.j.Input,title:"Amount credit",placeholder:" "},visual:{withAppend:!0,visualDisabled:!1},mask:{TextMask:(0,a.z3)(2),type:"amount",decimalSymbol:".",stripMask:!0},dataQa:"1660031391251"}],this.fieldKey="amountCredit",this.formGroup=this.dynamicFormService.generateFormGroup(this.fieldConfig)}set currency(_){if(_){const y=this.currencySymbolPipe.transform(_);let $=this.translationService.translate(this.fieldConfig[0].component.title);$=$.split(",").slice(0,1).concat([`, ${y}`]).join(""),this.dynamicFormService.changeComponentTitle(this.fieldConfig,this.fieldKey,$),this.dynamicFormService.setAppendSymbol(this.fieldConfig,this.fieldKey,y)}}onClick(){this.onTouched()}handleOnEvent(_){"input"===_.eventType&&this.inputByClient.emit(_.fieldName),this.inputFocus.emit("blur"===_.eventType?null:_.fieldName)}static#e=this.\u0275fac=function(y){return new(y||w)(n.\u0275\u0275directiveInject(h.w),n.\u0275\u0275directiveInject(l.D7),n.\u0275\u0275directiveInject(m.G))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:w,selectors:[["app-amount-credit-control"]],hostBindings:function(y,$){1&y&&n.\u0275\u0275listener("click",function(T){return $.onClick(T)})},inputs:{currency:"currency"},outputs:{inputByClient:"inputByClient",inputFocus:"inputFocus"},features:[n.\u0275\u0275ProvidersFeature([O]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:2,consts:[["data-qa","1657879684078",3,"config","formGroup","event"]],template:function(y,$){1&y&&(n.\u0275\u0275elementStart(0,"app-dynamic-form",0),n.\u0275\u0275listener("event",function(T){return $.handleOnEvent(T)}),n.\u0275\u0275elementEnd()),2&y&&n.\u0275\u0275property("config",$.fieldConfig)("formGroup",$.formGroup)},dependencies:[x.r],styles:['@charset "UTF-8";.ng-touched.ng-invalid[_nghost-%COMP%]     .dynamic-input__input{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}.ng-touched.ng-invalid[_nghost-%COMP%]     .append-icon{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}']})}return w})()},16463:(Ee,Q,t)=>{"use strict";t.d(Q,{u:()=>L});var n=t(94650),e=t(24006),i=t(15810),d=t(49066),a=t(10956),h=t(8058),l=t(16611),m=t(44509),x=t(18430);const O={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>L),multi:!0};let L=(()=>{class w extends i.k{constructor(_,y,$){super(_),this.dynamicFormService=_,this.translationService=y,this.currencySymbolPipe=$,this.inputByClient=new n.EventEmitter,this.inputFocus=new n.EventEmitter,this.fieldConfig=[{field:{name:"amountDebit"},component:{type:d.j.Input,title:"Amount debit",placeholder:"Enter data"},visual:{withAppend:!0,visualDisabled:!1},mask:{TextMask:(0,a.z3)(2),type:"amount",decimalSymbol:".",stripMask:!0},dataQa:"1660031381281"}],this.fieldKey="amountDebit",this.formGroup=this.dynamicFormService.generateFormGroup(this.fieldConfig)}set currency(_){if(_){const y=this.currencySymbolPipe.transform(_);let $=this.translationService.translate(this.fieldConfig[0].component.title);$=$.split(",").slice(0,1).concat([`, ${y}`]).join(""),this.dynamicFormService.changeComponentTitle(this.fieldConfig,this.fieldKey,$),this.dynamicFormService.setAppendSymbol(this.fieldConfig,this.fieldKey,y)}}onClick(){this.onTouched()}handleOnEvent(_){"input"===_.eventType&&this.inputByClient.emit(_.fieldName),this.inputFocus.emit("blur"===_.eventType?null:_.fieldName)}static#e=this.\u0275fac=function(y){return new(y||w)(n.\u0275\u0275directiveInject(h.w),n.\u0275\u0275directiveInject(l.D7),n.\u0275\u0275directiveInject(m.G))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:w,selectors:[["app-amount-debit-control"]],hostBindings:function(y,$){1&y&&n.\u0275\u0275listener("click",function(T){return $.onClick(T)})},inputs:{currency:"currency"},outputs:{inputByClient:"inputByClient",inputFocus:"inputFocus"},features:[n.\u0275\u0275ProvidersFeature([O]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:2,consts:[["data-qa","1657879689775",3,"config","formGroup","event"]],template:function(y,$){1&y&&(n.\u0275\u0275elementStart(0,"app-dynamic-form",0),n.\u0275\u0275listener("event",function(T){return $.handleOnEvent(T)}),n.\u0275\u0275elementEnd()),2&y&&n.\u0275\u0275property("config",$.fieldConfig)("formGroup",$.formGroup)},dependencies:[x.r],styles:['@charset "UTF-8";.ng-touched.ng-invalid[_nghost-%COMP%]     .dynamic-input__input{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}.ng-touched.ng-invalid[_nghost-%COMP%]     .append-icon{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}']})}return w})()},61705:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>m});var n=t(94650),e=t(24006),i=t(15810),d=t(49066),u=t(8058),h=t(18430);const l={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>m),multi:!0};let m=(()=>{class x extends i.k{constructor(L){super(L),this.dynamicFormService=L,this.fieldConfig=[{field:{name:"dealType"},component:{type:d.j.Select,title:"Rate type"},select:{items:[]},visual:{visualDisabled:!1},dataQa:"1660031064658"}],this.fieldKey="dealType",this.formGroup=this.dynamicFormService.generateFormGroup(this.fieldConfig)}set dealTypes(L){if(L){const w=this.dynamicFormService.generateItemsForSelect(L,"code","caption");this.dynamicFormService.setSelectItems(this.fieldConfig,"dealType",w)}}static#e=this.\u0275fac=function(w){return new(w||x)(n.\u0275\u0275directiveInject(u.w))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:x,selectors:[["app-deal-type-control"]],inputs:{dealTypes:"dealTypes"},features:[n.\u0275\u0275ProvidersFeature([l]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:2,consts:[["data-qa","1657879733659",3,"config","formGroup"]],template:function(w,B){1&w&&n.\u0275\u0275element(0,"app-dynamic-form",0),2&w&&n.\u0275\u0275property("config",B.fieldConfig)("formGroup",B.formGroup)},dependencies:[h.r]})}return x})()},65793:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>m});var n=t(94650),e=t(24006),i=t(15810),d=t(49066),u=t(8058),h=t(18430);const l={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>m),multi:!0};let m=(()=>{class x extends i.k{constructor(L){super(L),this.dynamicFormService=L,this.fieldConfig=[{field:{name:"docNumber"},component:{type:d.j.Input,title:"Number",placeholder:"Enter data"},visual:{visualDisabled:!1},dataQa:"1660031213311"}],this.fieldKey="docNumber",this.formGroup=this.dynamicFormService.generateFormGroup(this.fieldConfig)}static#e=this.\u0275fac=function(w){return new(w||x)(n.\u0275\u0275directiveInject(u.w))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:x,selectors:[["app-doc-number-control"]],features:[n.\u0275\u0275ProvidersFeature([l]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:2,consts:[["data-qa","1657879743637",3,"config","formGroup"]],template:function(w,B){1&w&&n.\u0275\u0275element(0,"app-dynamic-form",0),2&w&&n.\u0275\u0275property("config",B.fieldConfig)("formGroup",B.formGroup)},dependencies:[h.r]})}return x})()},15810:(Ee,Q,t)=>{"use strict";t.d(Q,{k:()=>a});var n=t(77579),e=t(82722),i=t(94650),d=t(8058);let a=(()=>{class u{constructor(l){this.dynamicFormService=l,this.destroyed$=new n.x,this.onTouched=()=>{}}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}registerOnChange(l){this.formGroup.get(this.fieldKey).valueChanges.pipe((0,e.R)(this.destroyed$)).subscribe(l)}registerOnTouched(l){this.onTouched=l}getValue(){return this.formGroup.get(this.fieldKey).value}writeValue(l,m=!1,x=!0){this.formGroup.get(this.fieldKey).setValue(l,{emitEvent:m,onlySelf:x})}setDisabledState(l){l?this.dynamicFormService.disableControl(this.fieldConfig,this.fieldKey):this.dynamicFormService.enableControl(this.fieldConfig,this.fieldKey)}static#e=this.\u0275fac=function(m){return new(m||u)(i.\u0275\u0275inject(d.w))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac})}return u})()},40375:(Ee,Q,t)=>{"use strict";t.d(Q,{L:()=>m});var n=t(94650),e=t(24006),i=t(15810),d=t(49066),u=t(8058),h=t(18430);const l={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>m),multi:!0};let m=(()=>{class x extends i.k{constructor(L){super(L),this.dynamicFormService=L,this.fieldKey="creditCurr",this.fieldConfig=[{field:{name:"creditCurr"},component:{type:d.j.Select,title:"Currency",placeholder:"Select currency"},visual:{visualDisabled:!1},dataQa:"1660031386170"}],this.formGroup=this.dynamicFormService.generateFormGroup(this.fieldConfig)}set currencies(L){L&&this.generateCurrencySelectItems(L)}set componentTitle(L){L&&this.dynamicFormService.changeComponentTitle(this.fieldConfig,this.fieldKey,L)}ngOnChanges(L){if(this.selectedDebitCurrency&&this.selectedDebitCurrency===this.formGroup.get(this.fieldKey).value){const B=this.dynamicFormService.getFieldConfig(this.fieldConfig,this.fieldKey).select.items.find(_=>_.value!==this.selectedDebitCurrency);B&&this.writeValue(B.value,!0)}}generateCurrencySelectItems(L){const w=this.dynamicFormService.generateItemsForSelect(L,"isoCode","isoCode");this.dynamicFormService.setSelectItems(this.fieldConfig,this.fieldKey,w)}static#e=this.\u0275fac=function(w){return new(w||x)(n.\u0275\u0275directiveInject(u.w))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:x,selectors:[["app-select-credit-currency-control"]],inputs:{selectedDebitCurrency:"selectedDebitCurrency",currencies:"currencies",componentTitle:"componentTitle"},features:[n.\u0275\u0275ProvidersFeature([l]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature],decls:1,vars:2,consts:[["data-qa","1657879748760",3,"config","formGroup"]],template:function(w,B){1&w&&n.\u0275\u0275element(0,"app-dynamic-form",0),2&w&&n.\u0275\u0275property("config",B.fieldConfig)("formGroup",B.formGroup)},dependencies:[h.r],encapsulation:2})}return x})()},21276:(Ee,Q,t)=>{"use strict";t.d(Q,{r:()=>m});var n=t(94650),e=t(24006),i=t(15810),d=t(49066),u=t(8058),h=t(18430);const l={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>m),multi:!0};let m=(()=>{class x extends i.k{constructor(L){super(L),this.dynamicFormService=L,this.fieldConfig=[{field:{name:"debitCurr"},component:{type:d.j.Select,title:"Currency",placeholder:"Select currency"},visual:{visualDisabled:!1},dataQa:"1660031480844"}],this.fieldKey="debitCurr",this.formGroup=this.dynamicFormService.generateFormGroup(this.fieldConfig),this.isConversion=!1}set componentTitle(L){L&&this.dynamicFormService.changeComponentTitle(this.fieldConfig,this.fieldKey,L)}set currencies(L){L&&this.generateCurrencySelectItems(L)}ngOnChanges(L){if(this.selectedCreditCurrency&&this.selectedCreditCurrency===this.formGroup.get(this.fieldKey).value){const B=this.dynamicFormService.getFieldConfig(this.fieldConfig,this.fieldKey).select.items.find(_=>_.value!==this.selectedCreditCurrency);B&&this.writeValue(B.value,!0)}}generateCurrencySelectItems(L){const w=this.dynamicFormService.generateItemsForSelect(L,"isoCode","isoCode");this.dynamicFormService.setSelectItems(this.fieldConfig,this.fieldKey,w)}static#e=this.\u0275fac=function(w){return new(w||x)(n.\u0275\u0275directiveInject(u.w))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:x,selectors:[["app-select-debit-currency-control"]],inputs:{selectedCreditCurrency:"selectedCreditCurrency",isConversion:"isConversion",componentTitle:"componentTitle",currencies:"currencies"},features:[n.\u0275\u0275ProvidersFeature([l]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature],decls:1,vars:2,consts:[["data-qa","1657879754252",3,"config","formGroup"]],template:function(w,B){1&w&&n.\u0275\u0275element(0,"app-dynamic-form",0),2&w&&n.\u0275\u0275property("config",B.fieldConfig)("formGroup",B.formGroup)},dependencies:[h.r],encapsulation:2})}return x})()},62673:(Ee,Q,t)=>{"use strict";t.d(Q,{v:()=>i});var n=t(61135),e=t(94650);let i=(()=>{class d{constructor(){this.loaded$=new n.X(!1)}setInitialized(u){this.loaded$.next(u)}initialized$(){return this.loaded$.asObservable()}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac})}return d})()},16764:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>u});var n=t(54004),e=t(3949),i=t(94650),d=t(15644),a=t(3751);let u=(()=>{class h{constructor(m,x){this.configService=m,this.apiService=x}createDocument(m,x){const O=x?this.buildOnlineData(m):this.buildOfflineData(m);return x?this.createOnlineDocument(O):this.createOfflineDocument(O).pipe((0,n.U)(({id:L})=>({id:L,docType:this.docType,docModule:"ibankul_curr"})))}createPrecheckData(m){const x=parseFloat(m.amountCredit)>0;return{id:m.id?m.id:void 0,debitCurrCodeIso:m.debitCurr,creditCurrCodeIso:m.currCode,amount:x?m.amountCredit:m.amountDebit,currCodeIso:x?m.currCode:m.debitCurr,mode:"FromBank"===m.dealType?"BY_BANK":"BY_MARKET",conversionType:"BUYSELL",debitAccId:m.debitAccId,creditAccId:m.creditAccId,docNumber:m.docNumber,docDate:m.docDate,employee:m.employee?m.employee:void 0,employeePhone:m.employeePhone?m.employeePhone:void 0,necessaryInfo:m.necessaryInfo?m.necessaryInfo:void 0}}createOnlineDocument(m){return this.apiService.post("fxts/conversion/create",m)}buildOfflineData(m){return("doc_currbuy"===m.docType||"doc_currsell"===m.docType)&&(m.acceptImmediately=!1),{id:m.id?m.id:void 0,docNumber:m.docNumber,docDate:this.configService.revertFormatDateDMY(m.docDate,"-"),creditAccId:m.creditAccId,debitAccId:m.debitAccId,currCode:m.creditCurr,amountCredit:m.amountCredit,amountDebit:m.amountDebit,clientRequestRate:m.clientRequestRate,employee:m.employee,employeePhone:m.employeePhone,dealType:"doc_platpor_conv"===this.docType?"FromBank":m.dealType,creditType:!1,chargeType:"1",supplyConditionType:"EMPTY",acceptImmediately:m.acceptImmediately?e.JM:e.Er,requestRateType:m.draftDealId?"4":"1",draftDealId:m.draftDealId,requestRate:m.draftDealId?m.requestRate:null,currencyExchangeType:m.currencyExchangeType,debitCurr:m.debitCurr,necessaryInfo:m.additionalInfo}}buildOnlineData(m){return{debitAccId:m.debitAccId,creditAccId:m.creditAccId,fixedRateId:m.fixedRateId,employee:m.employee,employeePhone:m.employeePhone}}static#e=this.\u0275fac=function(x){return new(x||h)(i.\u0275\u0275inject(d.Pj),i.\u0275\u0275inject(a.s))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac})}return h})()},92454:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>d});var n=t(3949),e=t(16764),i=t(94650);let d=(()=>{class a extends e.i{createOfflineDocument(h){if("precheck"===h.currencyExchangeType&&h.acceptImmediately===n.Er){this.docType="precheck_conversion",this.url="pre_check/"+(h.id?"update":"create");const l=this.createPrecheckData(h);return this.apiService.post(this.url,l)}return"precheck"===h.currencyExchangeType&&(h.isAuto="true"),this.docType="doc_currbuy",this.url="curr/buy_metinv",h.creditType&&(h.creditType="0"===h.creditType),delete h.currencyExchangeType,this.apiService.post(this.url,h)}static#e=this.\u0275fac=function(){let h;return function(m){return(h||(h=i.\u0275\u0275getInheritedFactory(a)))(m||a)}}();static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac})}return a})()},32286:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>e});const e=new(t(94650).InjectionToken)("\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430")},65064:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>xe});var n=t(24006),e=t(62843),i=t(4128),d=t(82805),a=t(39841),u=t(39646),h=t(68675),l=t(34782),m=t(63900),x=t(54004),O=t(95698),L=t(70262),w=t(18505),B=t(91005),_=t(65535),y=t(28746),$=t(82722),C=t(78372),T=t(39300),j=t(35522),I=t(32286),F=t(60265),z=t(70260),X=t(94650),p=t(66200),P=t(20656),E=t(44180),R=t(68642),ne=t(10092);t(48718),t(16764);let xe=(()=>{class we{constructor(ct,pe,Ce,U,H,Z,oe,Pe){this.currencyFormDataService=ct,this.createDocumentService=pe,this.calculationAmountService=Ce,this.localState=U,this.onlineCourseService=H,this.router=Z,this.currencyForm=oe,this.draftApplication=Pe}static fieldNotEmpty(ct){return!!ct&&!(/^0$/.test(ct)||/^0.0*$/.test(ct))}static getConversionType(ct){return"factoring"===ct?"Factoring":"BUYSELL"}amountCredit$(){return this.currencyForm.getFormGroup().get("amountCredit").valueChanges.pipe((0,h.O)(this.currencyForm.getFormGroup().get("amountCredit").value))}amountDebit$(){return this.currencyForm.getFormGroup().get("amountDebit").valueChanges.pipe((0,h.O)(this.currencyForm.getFormGroup().get("amountDebit").value))}courseIsSent$(){return this.cachingCourseIsSent$||(this.cachingCourseIsSent$=this.localState.getCourseIsSent$().pipe((0,l.d)(1))),this.cachingCourseIsSent$}courseSuccessFixed$(){return this.cachingCourseSuccessFixed$||(this.cachingCourseSuccessFixed$=this.localState.getCourseSuccessFixed$().pipe((0,l.d)(1))),this.cachingCourseSuccessFixed$}clientCourseApproved$(){return this.localState.getCourseClientApproved$()}unfinishedDeal$(){return this.localState.getUnfinishedDeal$()}currencies$(){return this.cachingCurrencies$||(this.cachingCurrencies$=this.localState.getCurrencies$().pipe((0,l.d)(1))),this.cachingCurrencies$}creditAccounts$(){return this.creditCurr$().pipe((0,m.w)(ct=>this.localState.getCreditAccounts$().pipe((0,x.U)(pe=>this.currencyFormDataService.filterAccountsByCurrency(pe,ct||"RUR")))))}creditCurr$(){return this.currencyForm.getFormGroup().get("creditCurr").valueChanges.pipe((0,h.O)(this.currencyForm.getFormGroup().get("creditCurr").value),(0,l.d)(1))}clientRequestRate$(){return this.cachingClientRequestRate$||(this.cachingClientRequestRate$=this.currencyForm.getFormGroup().get("clientRequestRate").valueChanges.pipe((0,h.O)(this.currencyForm.getFormGroup().get("clientRequestRate").value),(0,l.d)(1))),this.cachingClientRequestRate$}dealTypes$(){return this.localState.getDealTypes$()}debitAccounts$(){return this.debitCurr$().pipe((0,m.w)(ct=>this.localState.getDebitAccounts$().pipe((0,x.U)(pe=>this.currencyFormDataService.filterAccountsByCurrency(pe,ct||"RUR")))))}debitCurr$(){return this.currencyForm.getFormGroup().get("debitCurr").valueChanges.pipe((0,h.O)(this.currencyForm.getFormGroup().get("debitCurr").value),(0,l.d)(1))}dealTypeCode$(){return this.currencyForm.getFormGroup().get("dealType").valueChanges.pipe((0,h.O)(this.currencyForm.getFormGroup().get("dealType").value))}currencyExchangeType$(){return this.cachingCurrencyExchangeType$||(this.cachingCurrencyExchangeType$=this.onlineCourseService.getCurrencyExchangeType$().pipe((0,l.d)(1))),this.cachingCurrencyExchangeType$}isOnlineMode$(){return this.cachingOnlineMode$||(this.cachingOnlineMode$=this.onlineCourseService.getIsOnlineMode$().pipe((0,l.d)(1))),this.cachingOnlineMode$}isPrecheckMode$(){return this.cachingPrecheckMode$||(this.cachingPrecheckMode$=this.onlineCourseService.getIsPrecheckMode$().pipe((0,l.d)(1))),this.cachingPrecheckMode$}onlineModeAvailable$(){return this.cachingOnlineModeAvailable$||(this.cachingOnlineModeAvailable$=this.onlineCourseService.getOnlineModeAvailable$().pipe((0,l.d)(1))),this.cachingOnlineModeAvailable$}obtainedTransactionRate$(){return this.cachingObtainedTransactionRate$||(this.cachingObtainedTransactionRate$=this.localState.getObtainedTransactionRate$().pipe((0,l.d)(1))),this.cachingObtainedTransactionRate$}pending$(){return this.localState.getPending$()}fixDealRatePrecheck(ct){return this.onlineCourseService.fixRate(this.currencyForm.getFormGroup().getRawValue(),we.getConversionType(ct),this.localState.getEnteredField())}fixDealRate(ct){this.localState.setPending(!0),this.amountValidation$().pipe((0,O.q)(1),(0,x.U)(pe=>{if(!pe)throw new Error("Not filled amount credit or amount debit");return pe}),(0,L.K)(pe=>(0,e._)(pe.message)),(0,m.w)(()=>this.onlineCourseService.fixRate(this.currencyForm.getFormGroup().getRawValue(),we.getConversionType(ct),this.localState.getEnteredField())),(0,w.b)(({id:pe})=>{this.currencyForm.updateValue({fixedRateId:pe},!1),this.currencyForm.disableForm()}),(0,B.g)(z.UQ),(0,m.w)(({id:pe})=>this.onlineCourseService.checkDraftExists(pe).pipe((0,_.a)(Ce=>Ce.pipe((0,B.g)(z.UQ))))),(0,y.x)(()=>this.localState.setPending(!1))).subscribe({next:pe=>{this.localState.setObtainedTransactionRate({rate:pe.draftRate},!0),this.localState.setCourseSuccessFixed(!0),this.currencyForm.enableControl("creditAccId"),this.currencyForm.enableControl("debitAccId")},error:pe=>{this.localState.setErrors(pe)}})}sentClientCourse(ct){this.localState.setPending(!0),this.amountValidation$().pipe((0,O.q)(1),(0,x.U)(pe=>{if(!pe)throw new Error("Not filled amount credit or amount debit");return pe}),(0,L.K)(pe=>(0,e._)(pe.message)),(0,m.w)(()=>this.onlineCourseService.fixRate(this.currencyForm.getFormGroup().getRawValue(),we.getConversionType(ct),this.localState.getEnteredField())),(0,y.x)(()=>this.localState.setPending(!1))).subscribe({next:()=>{this.localState.setCourseIsSent(!0),this.currencyForm.disableForm()},error:pe=>this.localState.setErrors(pe)})}getFormGroup(){return this.currencyForm.getFormGroup()}fetchMainFormData(ct){return(0,i.D)([this.currencyFormDataService.fetchAccountsWithCurrencies(),this.currencyFormDataService.fetchDealTypes(),this.currencyFormDataService.fetchNextDocId(),this.getUnfinishedDeal()]).pipe((0,w.b)(([pe,Ce,U,H])=>{this.localState.setUnfinishedDeal(H),this.localState.setCurrencies(pe.currencies),this.localState.setCreditAccounts(pe.creditAccounts),this.localState.setDebitAccounts(pe.debitAccounts),this.localState.setDealTypes(Ce);const Z=this.onlineCourseService.getIsOnlineModeCurrentValue();pe.currencies.length?(this.setFormDefaultValue(Ce,U,pe.currencies,ct),this.draftApplication.getValue()&&!H&&this.prefillFormFromDraft(),H&&H.deal&&H.deal.type===ct&&Z&&this.prefillFormFromUnfinishedDeal(H),this.currencyForm.disableControl("docNumber")):this.currencyForm.disableForm()}))}getErrors$(){return this.localState.getErrors$()}calculateByExchange(ct){const pe=(0,d.H)(0,z.P5).pipe((0,$.R)(ct)),Ce=this.prepareDataForCalculate$();(0,a.a)([Ce,pe]).pipe((0,$.R)(ct),(0,C.b)(z.zq),(0,T.h)(()=>{const U=this.onlineCourseService.getIsOnlineModeCurrentValue(),H=this.onlineCourseService.getIsPrecheckModeValue(),Z=this.onlineCourseService.getOnlineModeAvailableCurrentValue(),oe=this.localState.getShowClientCourseCurrentValue(),Pe=this.localState.getCourseIsSentCurrentValue(),Ie=this.localState.getCourseSuccessFixedCurrentValue(),pt=this.localState.getCourseClientValue(),Ht=this.localState.getPendingCurrentValue();return Z&&!oe&&(U||H)&&!Ht&&!Ie&&!Pe&&!pt}),(0,x.U)(([U])=>U),(0,w.b)(U=>{!U.hasOwnProperty("creditAmount")&&!U.hasOwnProperty("debitAmount")&&this.currencyForm.updateValue({amountCredit:"",amountDebit:""},!1)}),(0,T.h)(U=>U.hasOwnProperty("creditAmount")&&we.fieldNotEmpty(U.creditAmount)||U.hasOwnProperty("debitAmount")&&we.fieldNotEmpty(U.debitAmount)),(0,m.w)(U=>this.onlineCourseService.fetchCourse(U))).subscribe({next:U=>{this.localState.setObtainedTransactionRate(U),this.setResultOnlineCalculated(U)},error:U=>this.localState.setErrors(U.errorText)})}calculateByClientRate(ct){(0,a.a)([this.amountCredit$(),this.amountDebit$(),this.clientRequestRate$()]).pipe((0,$.R)(ct),(0,T.h)(()=>{const pe=this.onlineCourseService.getIsOnlineModeCurrentValue(),Ce=this.localState.getShowClientCourseCurrentValue(),U=this.localState.getCourseIsSentCurrentValue(),H=this.localState.getNeedCalculate(),Z=this.localState.getCourseSuccessFixedCurrentValue(),oe=this.localState.getCourseClientValue();return pe&&Ce&&!U&&!Z&&!oe&&H||!pe&&H}),(0,w.b)(()=>{this.localState.setNeedCalculate(!1)})).subscribe(([pe,Ce,U])=>{const H=this.localState.getEnteredField(),Z=this.localState.getPrevEnteredField()||H;let oe;"amountCredit"===H&&!U&&("amountDebit"===Z||Z===H)&&(oe={amountDebit:""}),"amountDebit"===H&&!U&&("amountCredit"===Z||Z===H)&&(oe={amountCredit:""}),"amountCredit"===H&&U&&(oe={amountDebit:this.calculationAmountService.calculateDebitAmount(U,pe)}),"amountDebit"===H&&U&&(oe={amountCredit:this.calculationAmountService.calculateCreditAmount(U,Ce)}),oe&&(this.currencyForm.markAmountAsValid(),this.currencyForm.updateValue(oe,!0,!0))})}createDocument(ct){this.localState.setPending(!0),(0,a.a)([this.isOnlineMode$(),this.courseSuccessFixed$(),this.showClientCourseForm$(),this.courseIsSent$(),this.amountValidation$(),this.onlineModeAvailable$()]).pipe((0,O.q)(1),(0,T.h)(([pe,Ce])=>pe&&Ce||!pe),(0,x.U)(([pe,Ce,U,H,Z])=>{if(!Z)throw new Error("Not filled amount credit or amount debit");if(pe&&!Ce&&!U||pe&&U&&!H)throw new Error("Fixing request rate and sign document");return pe}),(0,L.K)(pe=>(0,e._)(pe.message)),(0,m.w)(pe=>(0,u.of)(this.currencyForm.getFormGroup().getRawValue()).pipe((0,x.U)(Ce=>{const U=this.localState.getEnteredField(),H=this.onlineCourseService.getCurrencyExchangeTypeValue();if(U){const Z="amountCredit"===U?"amountDebit":"amountCredit",{amountDebit:oe,amountCredit:Pe,...Ie}=Ce;return{...Ie,currencyExchangeType:H,[U]:Ce[U],[Z]:"0"}}return{...Ce,currencyExchangeType:H}}),(0,m.w)(Ce=>this.createDocumentService.createDocument(Ce,pe).pipe((0,L.K)(U=>(0,e._)(U.errorText))))))).subscribe({next:pe=>{ct.newPerson&&ct.savePerformer(),this.router.navigate(["/document-details"],{queryParams:{docId:pe.id,docModule:pe.docModule,docType:pe.docType,conversionMode:this.onlineCourseService.getCurrencyExchangeTypeValue()}}),this.localState.setPending(!1)},error:pe=>{if(this.localState.setPending(!1),/\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0435|\u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439/.test(pe)&&(pe=pe.replace("\u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u0441\u0434\u0435\u043b\u043a\u0435","\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0435 \u043b\u0438\u0446\u043e"),ct.performerForm.get("employee").markAsTouched(),ct.performerForm.get("employee").updateValueAndValidity()),/\u0422\u0435\u043b\u0435\u0444\u043e\u043d/.test(pe)&&(pe=pe.replace("\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e","\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0433\u043e"),ct.performerForm.get("phone").setValidators(n.Validators.required),ct.performerForm.get("phone").markAsTouched(),ct.performerForm.get("phone").updateValueAndValidity()),"1008: \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432: employee"===pe){pe="";const H=ct.performerForm.get("employee").value,Z=ct.performerForm.get("phone").value;H||(ct.performerForm.get("employee").markAsTouched(),ct.performerForm.get("employee").updateValueAndValidity(),pe="\u041d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u043f\u043e\u043b\u0435 \xab\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0435 \u043b\u0438\u0446\u043e\xbb. "),Z||(pe+="\u041d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u043f\u043e\u043b\u0435 \xab\u0422\u0435\u043b\u0435\u0444\u043e\u043d \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u043b\u0438\u0446\u0430\xbb",ct.performerForm.get("phone").setValidators(n.Validators.required),ct.performerForm.get("phone").markAsTouched(),ct.performerForm.get("phone").updateValueAndValidity())}"Not filled amount credit or amount debit"===pe&&this.currencyForm.markAmountAsInvalid(),this.localState.setErrors(pe)}})}setEnteredField(ct){this.localState.setEnteredField(ct),this.localState.setNeedCalculate(!0)}setFocusField(ct){this.localState.setFocusField(ct)}getEnteredField(){return this.localState.getEnteredField()}showClientCourseForm$(){return this.cachingShowClientCourseForm$||(this.cachingShowClientCourseForm$=this.localState.getShowClientCourseForm$().pipe((0,l.d)(1))),this.cachingShowClientCourseForm$}clearData(){this.currencyForm.clear(),this.localState.clear(),this.draftApplication.clear(),this.currencyForm.enableForm()}updateEmployeeInfo(ct){this.currencyForm.updateEmployeeInfo(ct)}toggleShowClientCourseForm(){const pe=!this.localState.getShowClientCourseCurrentValue(),Ce="amountCredit"===this.localState.getEnteredField()?"amountDebit":"amountCredit";this.localState.setShowClientCourseForm(pe),this.currencyForm.updateValue({clientRequestRate:"",[Ce]:""}),pe&&(this.localState.setObtainedTransactionRate(null),this.currencyForm.updateValue({[Ce]:""},!1))}disableHeadControls(){this.currencyForm.disableControl("creditCurr"),this.currencyForm.disableControl("debitCurr"),this.currencyForm.disableControl("dealType"),this.currencyForm.disableControl("amountCredit"),this.currencyForm.disableControl("amountDebit"),this.currencyForm.disableControl("clientRequestRate")}enableHeadControls(){this.currencyForm.enableControl("creditCurr"),this.currencyForm.enableControl("debitCurr"),this.currencyForm.enableControl("dealType"),this.currencyForm.enableControl("amountCredit"),this.currencyForm.enableControl("amountDebit"),this.currencyForm.enableControl("clientRequestRate")}setFormDefaultValue(ct,pe,Ce,U){const H=["buy","factoring"].includes(U)?{creditCurr:Ce[0].isoCode,debitCurr:"RUR"}:"sale"===U?{creditCurr:"RUR",debitCurr:Ce[0].isoCode}:Ce.length>1?{creditCurr:Ce[0].isoCode,debitCurr:Ce[1].isoCode}:{creditCurr:Ce[0].isoCode,debitCurr:""};this.currencyForm.updateValue({dealType:ct[0].code,docNumber:pe,...H},!0)}amountValidation$(){return(0,a.a)([this.amountCredit$(),this.amountDebit$()]).pipe((0,O.q)(1),(0,x.U)(([ct,pe])=>we.fieldNotEmpty(ct)||we.fieldNotEmpty(pe)),(0,w.b)(ct=>{ct||this.currencyForm.markAmountAsInvalid()}))}getUnfinishedDeal(){return this.onlineCourseService.getIsOnlineModeCurrentValue()?this.currencyFormDataService.fetchUnfinishedDeal().pipe((0,m.w)(ct=>ct?this.onlineCourseService.checkDraftExists(ct.id).pipe((0,x.U)(pe=>({...pe&&{draft:pe},deal:ct})),(0,L.K)(()=>(0,u.of)({draft:null,deal:ct}))):(0,u.of)(null))):(0,u.of)(null)}prepareDataForCalculate$(){return this.currencyForm.getFormGroup().valueChanges.pipe((0,h.O)(this.currencyForm.getFormGroup().value),(0,x.U)(({amountCredit:ct,amountDebit:pe,dealType:Ce,creditCurr:U,debitCurr:H})=>{const Z=this.localState.getEnteredField();return{debitCurrCodeIso:H,creditCurrCodeIso:U,mode:"FromBank"===Ce?"BY_BANK":"BY_MARKET",..."amountCredit"===Z&&we.fieldNotEmpty(ct)&&{creditAmount:ct},..."amountDebit"===Z&&we.fieldNotEmpty(pe)&&{debitAmount:pe}}}))}prefillFormFromDraft(){const{courseSuccessFixed:ct,clientRequestRate:pe,useClientCourse:Ce,clientCourseIsSent:U,courseClientApproved:H,actions:Z,...oe}=this.draftApplication.getValue();oe.docNumber||delete oe.docNumber,Ce?(oe.clientRequestRate=pe,this.localState.setShowClientCourseForm(Ce),this.localState.setCourseIsSent(U)):this.localState.setObtainedTransactionRate({rate:pe}),ct&&this.localState.setCourseSuccessFixed(ct),H&&this.localState.setCourseClientApproved(H),this.fillForm(oe),Z&&Z.includes("update")?this.enableHeadControls():this.disableHeadControls()}prefillFormFromUnfinishedDeal(ct){if(!ct.draft)return;const{deal:pe,draft:Ce}=ct;let U={};if("true"===pe.fixedRateByClientRate)U={...U,clientRequestRate:Ce.draftRate},this.localState.setShowClientCourseForm(!0),this.localState.setCourseClientApproved(!0),this.localState.setCourseIsSent(!0);else{const H={rate:Ce.draftRate,debitAmount:pe.debitAmount,creditAmount:pe.creditAmount,..."BY_MARKET"===pe.fixedRateMode&&{commission:Number(pe.point).toFixed(2)}};this.localState.setObtainedTransactionRate(H),this.localState.setCourseSuccessFixed(!0)}U={...U,amountCredit:pe.creditAmount?pe.creditAmount:Ce.buyAmount,amountDebit:pe.debitAmount?pe.debitAmount:Ce.sellAmount,dealType:"BY_BANK"===pe.fixedRateMode?"FromBank":"FromExchange",creditCurr:pe.creditIso,debitCurr:pe.debitIso,fixedRateId:pe.id},this.fillForm(U),pe.actions&&pe.actions.includes("update")?this.enableHeadControls():this.disableHeadControls()}fillForm(ct){this.currencyForm.updateValue(ct,!0)}setResultOnlineCalculated(ct){const pe=this.getEnteredField();if(!pe)return;const Ce="amountCredit"===pe?"amountDebit":"amountCredit",U=this.currencyForm.getFormGroup().get(pe).value.replace(".",""),H="amountCredit"===pe?ct.creditAmount.replace(".",""):ct.debitAmount.replace(".","");let oe={[Ce]:"amountCredit"===Ce?ct.creditAmount:ct.debitAmount};U!==H&&(oe={...oe,[pe]:"amountCredit"===pe?ct.creditAmount:ct.debitAmount});const Pe=this.localState.getFocusField();Pe&&oe[Pe]&&delete oe[Pe],this.currencyForm.updateValue(oe,!1)}static#e=this.\u0275fac=function(pe){return new(pe||we)(X.\u0275\u0275inject(F.L),X.\u0275\u0275inject(I.b),X.\u0275\u0275inject(j.G,8),X.\u0275\u0275inject(p.Z),X.\u0275\u0275inject(P.o),X.\u0275\u0275inject(E.F0),X.\u0275\u0275inject(R.c),X.\u0275\u0275inject(ne.F))};static#t=this.\u0275prov=X.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac})}return we})()},68642:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>i});var n=t(24006),e=t(94650);let i=(()=>{class d{constructor(u){this.fb=u,this.createForm()}getFormGroup(){return this.formGroup}updateValue(u,h=!1,l=!1){this.formGroup.patchValue(u,{emitEvent:h,onlySelf:l})}disableControl(u){this.formGroup.get(u).disable({emitEvent:!0,onlySelf:!0})}enableControl(u){this.formGroup.get(u).enable({emitEvent:!0,onlySelf:!0})}updateEmployeeInfo(u){this.formGroup.patchValue({employee:u.employee.value,employeePhone:u.phone.value},{emitEvent:!0})}markAmountAsInvalid(){this.formGroup.get("amountCredit").setValidators([n.Validators.required]),this.formGroup.get("amountCredit").markAsTouched(),this.formGroup.get("amountDebit").setValidators([n.Validators.required]),this.formGroup.get("amountDebit").markAsTouched(),this.formGroup.get("amountCredit").updateValueAndValidity(),this.formGroup.get("amountDebit").updateValueAndValidity()}disableForm(){this.formGroup.disable({emitEvent:!0})}enableForm(){this.formGroup.enable({emitEvent:!0})}clear(){this.formGroup.reset({id:"",creditCurr:"",debitCurr:"",dealType:"",docNumber:"",docDate:new Date,amountCredit:"",amountDebit:"",clientRequestRate:"",creditAccId:"",debitAccId:"",additionalInfo:"",acceptImmediately:!0,draftDealId:null,requestRate:null,fixedRateId:void 0,employee:null,employeePhone:null,hasClientRate:void 0})}markAmountAsValid(){this.formGroup.get("amountCredit").setValidators(null),this.formGroup.get("amountDebit").setValidators(null),this.formGroup.get("amountCredit").updateValueAndValidity({emitEvent:!1}),this.formGroup.get("amountDebit").updateValueAndValidity({emitEvent:!1})}createForm(){this.formGroup=this.fb.group({id:new n.UntypedFormControl(""),creditCurr:new n.UntypedFormControl("",[n.Validators.required]),debitCurr:new n.UntypedFormControl(""),dealType:new n.UntypedFormControl("",[n.Validators.required]),docNumber:new n.UntypedFormControl("",[n.Validators.required]),docDate:new n.UntypedFormControl(new Date),amountCredit:new n.UntypedFormControl(""),amountDebit:new n.UntypedFormControl(""),clientRequestRate:new n.UntypedFormControl(""),hasClientRate:new n.UntypedFormControl(void 0),creditAccId:new n.UntypedFormControl(""),debitAccId:new n.UntypedFormControl(""),additionalInfo:new n.UntypedFormControl(""),acceptImmediately:new n.UntypedFormControl(!0),draftDealId:new n.UntypedFormControl,requestRate:new n.UntypedFormControl,fixedRateId:new n.UntypedFormControl(void 0),employee:new n.UntypedFormControl,employeePhone:new n.UntypedFormControl})}static#e=this.\u0275fac=function(h){return new(h||d)(e.\u0275\u0275inject(n.UntypedFormBuilder))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac})}return d})()},66200:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>d});var n=t(61135),e=t(77579),i=t(94650);let d=(()=>{class a{constructor(){this.currencies$=new n.X([]),this.creditAccounts$=new n.X([]),this.courseIsSent$=new n.X(!1),this.courseSuccessFixed$=new n.X(!1),this.courseClientApproved$=new n.X(!1),this.debitAccounts$=new n.X([]),this.dealTypes$=new n.X([]),this.showClientCourseForm$=new n.X(!1),this.errors$=new e.x,this.obtainedTransactionRate=new n.X(null),this.unfinishedDeal$=new n.X(null),this.focusField=null,this.pending$=new n.X(!1)}setCurrencies(h){this.currencies$.next(h)}getCurrencies$(){return this.currencies$.asObservable()}getCurrencies(){return this.currencies$.getValue()}setCreditAccounts(h){this.creditAccounts$.next(h)}getCreditAccounts$(){return this.creditAccounts$.asObservable()}setCourseIsSent(h){this.courseIsSent$.next(h)}getCourseIsSent$(){return this.courseIsSent$.asObservable()}getCourseIsSentCurrentValue(){return this.courseIsSent$.getValue()}setCourseSuccessFixed(h){this.courseSuccessFixed$.next(h)}getCourseSuccessFixed$(){return this.courseSuccessFixed$.asObservable()}getCourseSuccessFixedCurrentValue(){return this.courseSuccessFixed$.getValue()}setDebitAccounts(h){this.debitAccounts$.next(h)}getDebitAccounts(){return this.debitAccounts$.getValue()}getDebitAccounts$(){return this.debitAccounts$.asObservable()}setDealTypes(h){this.dealTypes$.next(h)}getDealTypes$(){return this.dealTypes$.asObservable()}setFocusField(h){this.focusField=h}getFocusField(){return this.focusField}setEnteredField(h){this.prevEnteredField=this.enteredField,"clientRequestRate"!==h&&(this.enteredField=h)}setNeedCalculate(h){this.needCalculate=h}getNeedCalculate(){return this.needCalculate}setObtainedTransactionRate(h,l=!1){this.obtainedTransactionRate.next(l?{...this.obtainedTransactionRate.getValue(),...h}:h)}getObtainedTransactionRate$(){return this.obtainedTransactionRate.asObservable()}getEnteredField(){return this.enteredField}getPrevEnteredField(){return this.prevEnteredField}setShowClientCourseForm(h){this.showClientCourseForm$.next(h)}getShowClientCourseForm$(){return this.showClientCourseForm$.asObservable()}getShowClientCourseCurrentValue(){return this.showClientCourseForm$.getValue()}setErrors(h){this.errors$.next(h)}getErrors$(){return this.errors$.asObservable()}setPending(h){this.pending$.next(h)}getPending$(){return this.pending$}getPendingCurrentValue(){return this.pending$.getValue()}setUnfinishedDeal(h){this.unfinishedDeal$.next(h)}getUnfinishedDeal$(){return this.unfinishedDeal$.asObservable()}setCourseClientApproved(h){this.courseClientApproved$.next(h)}getCourseClientApproved$(){return this.courseClientApproved$.asObservable()}getCourseClientValue(){return this.courseClientApproved$.getValue()}clear(){this.currencies$.next([]),this.creditAccounts$.next([]),this.debitAccounts$.next([]),this.dealTypes$.next([]),this.courseIsSent$.next(!1),this.courseSuccessFixed$.next(!1),this.courseClientApproved$.next(!1),this.showClientCourseForm$.next(!1),this.obtainedTransactionRate.next(null),this.enteredField=void 0,this.prevEnteredField=void 0,this.unfinishedDeal$.next(null),this.pending$.next(!1)}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac})}return a})()},13652:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>l});var n=t(36895),e=t(74471),i=t(36561),d=t(54215),a=t(99762),u=t(94650);let h=(()=>{class m{static#e=this.\u0275fac=function(L){return new(L||m)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:m});static#n=this.\u0275inj=u.\u0275\u0275defineInjector({imports:[a.N,n.ez,d.m,e.h]})}return m})(),l=(()=>{class m{static#e=this.\u0275fac=function(L){return new(L||m)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:m});static#n=this.\u0275inj=u.\u0275\u0275defineInjector({imports:[h,n.ez,i.D,d.m,e.h,h]})}return m})()},48718:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>L});var n=t(17489),i=t(4128),d=t(54004),a=t(90042),u=t(94650),h=t(3751),l=t(15644),m=t(92008),x=t(20656),O=t(29198);let L=(()=>{class w{constructor(_,y,$,C,T,j){this.apiService=_,this.utils=y,this.appConfigService=$,this.newTariffService=C,this.onlineCourseService=T,this.vedService=j,this.TRANSIT_CURRENCY_ACCOUNT=/(^\d{16}1)/g,this.CREDIT_ACCOUNT=/(^44[2-9])|(^45[0-7])/g,this.ACCOUNT_CARD_TYPE="7"}fetchNextDocId(){return this.vedService.getNextDocNumMetinv(this.docType).pipe((0,d.U)(_=>_.docNumber))}fetchUnfinishedDeal(){return this.apiService.post("last_documents_full?number_of_entries=1&list_of_statuses=new",{docTypes:[{docModule:"ibankul_curr",docType:"fixed_rate"}]}).pipe((0,d.U)(_=>{if(_&&_.lastDocumentFullWithActions&&!n.isEmpty(_.lastDocumentFullWithActions)){const y=Array.isArray(_.lastDocumentFullWithActions)?_.lastDocumentFullWithActions[0].document:_.lastDocumentFullWithActions.document;return{...y,type:"BUYSELL"===y.fixedRateConversionType?"RUR"===y.creditIso?"sale":"buy":"factoring"}}return null}))}shouldHideFromExchange(){return this.newTariffService.isShowPackage$.value||a.iY.isUnifiedTariffBook(this.appConfigService.settings$.value.currentTariff)}fetchDealTypes(){return this.cachingDealTypes$||(this.cachingDealTypes$=(0,i.D)([this.apiService.publicGet("cur_rko_buy_deal_type"),this.apiService.get("fxts/conversion/check/in_action/ved007")]).pipe((0,d.U)(_=>{const y=this.utils.getArray(_[0]);return _[1]||this.shouldHideFromExchange()?y.filter($=>"FromExchange"!==$.code):y}),(0,d.U)(_=>_.map(y=>({...y,caption:"\u041f\u043e \u043a\u0443\u0440\u0441\u0443 \u0431\u0430\u043d\u043a\u0430"===y.caption?"\u041f\u043e \u043a\u0443\u0440\u0441\u0443 \u0411\u0430\u043d\u043a\u0430":y.caption,description:"FromExchange"===y.code?"\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u0432\u0437\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0422\u0430\u0440\u0438\u0444\u0430\u043c \u0411\u0430\u043d\u043a\u0430":"\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u043d\u0435 \u0432\u0437\u0438\u043c\u0430\u0435\u0442\u0441\u044f"}))))),this.cachingDealTypes$}filterAccountsByCurrency(_,y){return _.filter($=>{const C=this.TRANSIT_CURRENCY_ACCOUNT.test($.number),T=this.CREDIT_ACCOUNT.test($.number),j=$.type===this.ACCOUNT_CARD_TYPE;return"RUR"!==y?$.currency===y&&!C&&!j&&!T:$.currency===y&&!j&&!T})}getCurrencyList(){return this.apiService.publicGet("currency")}static#e=this.\u0275fac=function(y){return new(y||w)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.Pj),u.\u0275\u0275inject(m._),u.\u0275\u0275inject(a.iY),u.\u0275\u0275inject(x.o),u.\u0275\u0275inject(O.$))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac})}return w})()},60265:(Ee,Q,t)=>{"use strict";t.d(Q,{L:()=>e});const e=new(t(94650).InjectionToken)("Currency exchange form data service")},92041:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>d});var n=t(54004),e=t(48718),i=t(94650);let d=(()=>{class a extends e.y{constructor(){super(...arguments),this.docType="doc_curr_agent_factoring"}static#e=this.FACTORING_ACCOUNT_MASK=/^47423/;fetchAccountsWithCurrencies(){return this.apiService.post("curr/agent_factoring",{}).pipe((0,n.U)(h=>{const l=this.utils.getArray(h.creditAccounts),m=this.utils.getArray(h.debitAccounts),x=[];return l.forEach(O=>{"RUR"!==O.currency&&!x.find(L=>L.isoCode===O.currency)&&x.push({isoCode:O.currency,code:O.currencyCode})}),{creditAccounts:l,debitAccounts:m,currencies:x}}))}static#t=this.\u0275fac=function(){let h;return function(m){return(h||(h=i.\u0275\u0275getInheritedFactory(a)))(m||a)}}();static#n=this.\u0275prov=i.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac})}return a})()},70260:(Ee,Q,t)=>{"use strict";t.d(Q,{P5:()=>i,UQ:()=>d,fZ:()=>n,zq:()=>e});const n=1e4,e=250,i=1e3,d=1e3},20656:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>w});var n=t(61135),e=t(62843),i=t(82805),d=t(95698),a=t(70262),u=t(63900),h=t(71884),l=t(82722),m=t(54004),x=t(70260),O=t(94650),L=t(3751);let w=(()=>{class B{constructor(y){this.apiService=y,this.isOnlineMode$=new n.X(!1),this.isPrecheckMode$=new n.X(!1),this.onlineModeAvailable$=new n.X(!1),this.currencyExchangeType$=new n.X(null),this.FXTS_URL="fxts/conversion"}fixRate(y,$,C){const T={debitCurrCodeIso:y.debitCurr,creditCurrCodeIso:y.creditCurr,mode:"FromBank"===y.dealType?"BY_BANK":"BY_MARKET",amount:y[C],currCodeIso:"amountCredit"===C?y.creditCurr:y.debitCurr,...y.clientRequestRate&&{rate:y.clientRequestRate},conversionType:$};return"precheck"===this.getCurrencyExchangeTypeValue()?this.apiService.get(`pre_check/fix/${this.docId}`).pipe((0,d.q)(1),(0,a.K)(I=>(0,e._)(I.errorText))):this.apiService.post(`${this.FXTS_URL}/fix/`,T).pipe((0,d.q)(1),(0,a.K)(I=>(0,e._)(I.errorText)))}checkDraftExists(y){return this.apiService.get(`${this.FXTS_URL}/check/draft/${y}`)}fetchActiveStatusAfterPeriod(y){(0,i.H)(0,x.fZ).pipe((0,u.w)(()=>this.fetchIsActiveStatus()),(0,h.x)(),(0,l.R)(y)).subscribe($=>this.setOnlineModeAvailable($))}fetchCourse(y){return this.apiService.post("fxts/conversion/exchange",y)}setCurrencyExchangeType$(y){this.currencyExchangeType$.next(y)}setCurrencyExchangeMode(y){this.currencyExchangeMode=y}getCurrencyExchangeMode(){return this.currencyExchangeMode}setDocId(y){this.docId=y}getCurrencyExchangeType$(){return this.currencyExchangeType$.asObservable()}getCurrencyExchangeTypeValue(){return this.currencyExchangeType$.getValue()}getOnlineModeAvailable$(){return this.onlineModeAvailable$.asObservable()}getOnlineModeAvailableCurrentValue(){return this.onlineModeAvailable$.getValue()}getIsOnlineMode$(){return this.isOnlineMode$.asObservable()}getIsPrecheckMode$(){return this.isPrecheckMode$.asObservable()}setIsPrecheckMode(y){this.isPrecheckMode$.next(y)}getIsPrecheckModeValue(){return this.isPrecheckMode$.getValue()}getIsOnlineModeCurrentValue(){return this.isOnlineMode$.getValue()}setIsOnlineMode(y){this.isOnlineMode$.next(y)}setOnlineModeAvailable(y){this.onlineModeAvailable$.next(y)}getPathData(y){switch(y){case"online":return[{capture:"Currency exchange online",bold:!0}];case"offline":case"precheck":return[{capture:"Currency exchange",bold:!0}]}}fetchIsActiveStatus(){return this.apiService.get("fxts/conversion/is_active").pipe((0,m.U)(y=>y.active))}static#e=this.\u0275fac=function($){return new($||B)(O.\u0275\u0275inject(L.s))};static#t=this.\u0275prov=O.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac})}return B})()},40249:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{DealingModule:()=>X});var n=t(36895),e=t(74471),i=t(71702),d=t(88044),a=t(97271),u=t(99762),h=t(54215),l=t(44180),m=t(97582),x=t(16611),O=t(54004),L=t(94650),w=t(29198),B=t(15644),_=t(40929),y=t(48086),$=t(65218),C=t(15557),T=t(30815);function j(p,P){if(1&p){const E=L.\u0275\u0275getCurrentView();L.\u0275\u0275elementStart(0,"app-tab",7),L.\u0275\u0275listener("click",function(){const G=L.\u0275\u0275restoreView(E).$implicit,ce=L.\u0275\u0275nextContext();return L.\u0275\u0275resetView(ce.onTabClick(G))}),L.\u0275\u0275pipe(1,"translate"),L.\u0275\u0275elementEnd()}if(2&p){const E=P.$implicit,R=P.index,ne=L.\u0275\u0275nextContext();L.\u0275\u0275propertyInterpolate("label",L.\u0275\u0275pipeBind2(1,2,E.capture,ne.lang)),L.\u0275\u0275attribute("data-qa","1657960949111"+R)}}class I{constructor(P,E,R,ne,G){this.translation=P,this.router=E,this.vedService=R,this.util=ne,this.documentService=G,this.pagePath=[{capture:"Treasury",bold:!0},{capture:"Documents",href:"/treasury/documents"},{capture:"Agreement DBC NSO"}],this.tabNumber=0,this.initialTabIndex=0,this.tabs=[{capture:"\u0412\u0445\u043e\u0434\u044f\u0449\u0438\u0435",value:"ingoing",number:0},{capture:"\u0418\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435",value:"outgoing",number:1}],this.actions=[{name:"requestRisda",description:this.translation.translate("Request RISDA")}],this.allDocuments=[],this.countOnPage=5,this.documents=[]}ngOnInit(){this.getNewDocs()}getNewDocs(){let P;this.documents.length&&(P=this.documents[this.documents.length-1].id),this.vedService.requestDocuments(this.countOnPage,P,{docTypes:[{docModule:"ibankul",docType:"doc_supplementary_agreement"}]}).pipe((0,O.U)(E=>this.parseDocuments(E))).subscribe(E=>{E.length<this.countOnPage&&(this.allAlreadyLoaded=!0),this.allDocuments=[...this.allDocuments,...E],this.documents=this.allDocuments.filter(0===this.tabNumber?R=>"sign_in_bank"===R.systemStatus:R=>"new"!==R.systemStatus&&"sign_in_bank"!==R.systemStatus)})}loadActions(P){P.additionalData.actionsLoaded||(P.additionalData.actionsLoaded=!0,P.dots.buttonActions=[{type:"print",data:{docId:P.id,inPopup:!0}}],"sign_in_bank"===P.systemStatus&&P.dots.buttonActions.push({type:"sign",data:{docId:P.id,docModule:"ibankul",docType:"doc_supplementary_agreement",url:"/dealing"}}))}onTabClick(P){this.tabNumber=P,this.documents=this.allDocuments.filter(0===this.tabNumber?E=>"sign_in_bank"===E.systemStatus:E=>"new"!==E.systemStatus&&"sign_in_bank"!==E.systemStatus)}parseDocuments(P){return this.util.objectsParser(P,{id:"id",title:"name",description:E=>`\u2116${E.docNumber}${E.description?", "+E.description:""}`,status:"status",systemStatus:"systemStatus",declineInfo:"declineInfo",info:"docDate",statusColor:E=>{switch(E.systemStatus){case"end":case"processed_vk":return"green";case"decline":return"red";default:return""}},dots:()=>({}),additionalData:E=>({id:E.id,docModule:E.docModule||"",docType:E.docType,actionsLoaded:!1,docNumber:E.docNumber||"",docDate:E.docDate||"",description:E.description})})}showMore(){this.getNewDocs()}onDocClick(P){this.documentService.getFile(`print/pdf?doc_ids=${P.id}`).subscribe(()=>{})}static#e=this.\u0275fac=function(E){return new(E||I)(L.\u0275\u0275directiveInject(x.D7),L.\u0275\u0275directiveInject(l.F0),L.\u0275\u0275directiveInject(w.$),L.\u0275\u0275directiveInject(B.Pj),L.\u0275\u0275directiveInject(_.Z))};static#t=this.\u0275cmp=L.\u0275\u0275defineComponent({type:I,selectors:[["app-dealing"]],decls:7,vars:5,consts:[["data-qa","1657960878796",3,"pathData"],["data-qa","1657960901165",1,"container"],[1,"content"],[1,"content__tabs"],["data-qa","1657960910336",3,"initialIndex","selectTab"],[3,"label","click",4,"ngFor","ngForOf"],["data-qa","1657961027735",3,"documents","showMoreButton","docClicked","dotsClicked","showMoreClicked"],[3,"label","click"]],template:function(E,R){1&E&&(L.\u0275\u0275element(0,"app-path",0),L.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3)(4,"app-tabs",4),L.\u0275\u0275listener("selectTab",function(G){return R.onTabClick(G)}),L.\u0275\u0275template(5,j,2,5,"app-tab",5),L.\u0275\u0275elementEnd()(),L.\u0275\u0275elementStart(6,"app-document-list",6),L.\u0275\u0275listener("docClicked",function(G){return R.onDocClick(G)})("dotsClicked",function(G){return R.loadActions(G)})("showMoreClicked",function(){return R.showMore()}),L.\u0275\u0275elementEnd()()()),2&E&&(L.\u0275\u0275property("pathData",R.pagePath),L.\u0275\u0275advance(4),L.\u0275\u0275property("initialIndex",R.initialTabIndex),L.\u0275\u0275advance(1),L.\u0275\u0275property("ngForOf",R.tabs),L.\u0275\u0275advance(1),L.\u0275\u0275property("documents",R.documents)("showMoreButton",R.documents.length&&!R.allAlreadyLoaded))},dependencies:[n.sg,y.d,$.n,C.i,T.l,x.X$],styles:['@charset "UTF-8";.container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{min-height:20em}.container[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid #dedede}.container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]{display:flex;justify-content:space-between;height:48px;width:135px;margin:auto 0 auto auto}.container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]   .button__arrow[_ngcontent-%COMP%]{width:10px;height:10px;border:2px solid white;transform:rotate(45deg);border-top:none;border-left:none}']})}(0,m.gn)([(0,x.SQ)()],I.prototype,"lang",void 0);const F=[{path:"",component:I},{path:"**",redirectTo:""}];let z=(()=>{class p{static#e=this.\u0275fac=function(R){return new(R||p)};static#t=this.\u0275mod=L.\u0275\u0275defineNgModule({type:p});static#n=this.\u0275inj=L.\u0275\u0275defineInjector({imports:[l.Bz.forChild(F),l.Bz]})}return p})(),X=(()=>{class p{static#e=this.\u0275fac=function(R){return new(R||p)};static#t=this.\u0275mod=L.\u0275\u0275defineNgModule({type:p});static#n=this.\u0275inj=L.\u0275\u0275defineInjector({imports:[n.ez,z,h.m,u.N,a.F,d.u,e.h,i.B]})}return p})()},26911:(Ee,Q,t)=>{"use strict";t.d(Q,{X:()=>u});var n=t(54004),e=t(94650),i=t(15644),d=t(36895);function a(h,l){if(1&h&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&h){const m=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,m.demoLabel))}}let u=(()=>{class h{constructor(m){this.configUtilService=m}get demoLabel(){return this.configUtilService.getConfigs().pipe((0,n.U)(m=>m.data?.demoLabel||""))}static#e=this.\u0275fac=function(x){return new(x||h)(e.\u0275\u0275directiveInject(i.Pj))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:h,selectors:[["app-demo-label"]],decls:2,vars:3,consts:[["class","demo",4,"ngIf"],[1,"demo"]],template:function(x,O){1&x&&(e.\u0275\u0275template(0,a,3,3,"div",0),e.\u0275\u0275pipe(1,"async")),2&x&&e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,1,O.demoLabel))},dependencies:[d.O5,d.Ov],styles:['@charset "UTF-8";.demo[_ngcontent-%COMP%]{text-align:center;padding:8px;background-color:#284681;color:#d7dde7;line-height:1.25}'],changeDetection:0})}return h})()},55278:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>i});var n=t(36895),e=t(94650);let i=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:d});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.ez]})}return d})()},45111:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>n,Y:()=>e});var n=(()=>{return(i=n||(n={})).CREATE="create",i.APPLICATION="depositsApplication",i.CONFIRM="depositsConfirm",n;var i})();const e=[{capture:"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0443",value:n.CREATE,number:0},{capture:"Applications",value:n.APPLICATION,number:1},{capture:"Confirmations",value:n.CONFIRM,number:2}]},99611:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{DepositsModule:()=>Et});var n=t(36895),e=t(17869),i=t(82350),d=t(74471),a=t(71702),u=t(88044),h=t(97271),l=t(99762),m=t(54215),x=t(44180),O=t(97582),L=t(16611),w=t(77579),B=t(82722),_=t(45111),y=t(94650),$=t(65218),C=t(15557),T=t(30815),j=t(6146),I=t(15439),F=t.n(I),z=t(39841),X=t(63900),p=t(39646),P=t(4128),E=t(54004),R=t(39300),ne=t(70262),G=t(28746),ce=t(24006),xe=t(53065),we=t(49066);const Ge=(0,xe.createNumberMask)({prefix:"",allowDecimal:!0,thousandsSeparatorSymbol:""}),ct=(0,xe.createNumberMask)({prefix:"",allowDecimal:!1,thousandsSeparatorSymbol:""}),pe=[{field:{name:"product",validators:[ce.Validators.required]},component:{type:we.j.Select,title:"Product",placeholder:"Enter data"},select:{},dataQa:"1660031054029"},{field:{name:"amount",validators:[ce.Validators.required]},component:{type:we.j.Input,title:"Amount"},visual:{cssClass:"half-inline"},mask:{TextMask:Ge,type:"amount",decimalSymbol:".",stripMask:!0},dataQa:"1660031056771"},{field:{name:"currCode",validators:[ce.Validators.required]},component:{type:we.j.Select,title:"Currency",placeholder:"Enter data"},select:{},visual:{cssClass:"half-inline"},dataQa:"1663155021755"}],U=[{field:{name:"startDate",disabled:!0,validators:[ce.Validators.required]},component:{type:we.j.Input,title:"Placement date"},visual:{cssClass:"three-inline"},dataQa:"1660031184632"},{field:{name:"endDate",validators:[ce.Validators.required,dt=>{if(!dt.value)return{error:"\u041e\u0448\u0438\u0431\u043a\u0430! \u041d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043f\u043e\u043b\u044f!"};const rt=dt.value.split("."),qe=new Date(rt[2]+"-"+rt[1]+"-"+rt[0]+" 00:00:00"),ze=new Date;return ze.setHours(0,0,0,0),qe<ze?{error:"\u0414\u0430\u0442\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u0434\u0430\u0442\u044b \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f"}:qe.toDateString()===ze.toDateString()?{error:"\u0414\u0430\u0442\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u0430 \u0434\u0430\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f"}:null}]},component:{type:we.j.DatePicker,title:"Return date"},visual:{cssClass:"three-inline",matIcon:"calendar_today",matStyleOutlined:!0},dataQa:"1660031186743"},{field:{name:"days",validators:[]},component:{type:we.j.Input,placeholder:"Enter data",title:"Number of days"},visual:{cssClass:"three-inline"},mask:{TextMask:ct},dataQa:"1660031189208"}],H=[{field:{name:"additionalInfo",validators:[ce.Validators.required]},component:{type:we.j.Input,placeholder:"Enter data",title:"Info For Bank"},visual:{},dataQa:"1660031191896"}];var Z=t(8058),oe=t(40929),Pe=t(9297),Ie=t(9149),pt=t(17916),Ht=t(25781),Wt=t(75568),Xe=t(85369),Qe=t(1830),Be=t(95447),at=t(18430),lt=t(81620),Dt=t(19683),Yt=t(90995),Tt=t(94938);function ot(dt,rt){1&dt&&y.\u0275\u0275element(0,"app-loader")}function Gt(dt,rt){1&dt&&y.\u0275\u0275element(0,"app-page-title",4),2&dt&&y.\u0275\u0275property("title","\u041d\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043a\u0438")}function wt(dt,rt){1&dt&&(y.\u0275\u0275elementStart(0,"div",27),y.\u0275\u0275text(1," \u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432 \u0434\u0435\u043f\u043e\u0437\u0438\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0434\u043e 17-30 \u043f\u043e \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u0434\u043d\u0438. \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u0432 \u0411\u0430\u043d\u043a \u043f\u043e \u0442\u0435\u043b. 8-495-727-97-95 "),y.\u0275\u0275elementEnd())}function Ze(dt,rt){1&dt&&(y.\u0275\u0275elementStart(0,"div",27),y.\u0275\u0275text(1," \u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432 \u043d\u0435\u0441\u043d\u0438\u0436\u0430\u0435\u043c\u044b\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0434\u043e 18-00 \u043f\u043e \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u0434\u043d\u0438. \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u0432 \u0411\u0430\u043d\u043a \u043f\u043e \u0442\u0435\u043b. 8-495-727-97-95 "),y.\u0275\u0275elementEnd())}function Ut(dt,rt){1&dt&&(y.\u0275\u0275elementStart(0,"label",28),y.\u0275\u0275text(1,"\u0414\u043b\u044f \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0434\u0435\u043b\u043a\u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u0432 \u0411\u0430\u043d\u043a \u043f\u043e \u0442\u0435\u043b. (495)727-97-95"),y.\u0275\u0275elementEnd())}function vn(dt,rt){if(1&dt){const qe=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",18)(1,"app-checkbox",29),y.\u0275\u0275listener("checkboxChange",function(){y.\u0275\u0275restoreView(qe);const zt=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(zt.earlyReturn=!zt.earlyReturn)}),y.\u0275\u0275elementEnd()()}if(2&dt){const qe=y.\u0275\u0275nextContext(2);y.\u0275\u0275advance(1),y.\u0275\u0275property("chosen",qe.earlyReturn)}}function xn(dt,rt){if(1&dt&&(y.\u0275\u0275elementStart(0,"span",28),y.\u0275\u0275text(1),y.\u0275\u0275elementEnd()),2&dt){const qe=y.\u0275\u0275nextContext(2);y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate(qe.errorForm)}}function bn(dt,rt){if(1&dt){const qe=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div")(1,"div",5)(2,"app-line-with-number-and-date",6),y.\u0275\u0275listener("numberChanged",function(zt){y.\u0275\u0275restoreView(qe);const vt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(vt.numberChanged(zt))}),y.\u0275\u0275elementEnd()(),y.\u0275\u0275elementStart(3,"div",7)(4,"form",8),y.\u0275\u0275element(5,"app-dynamic-form",9),y.\u0275\u0275elementStart(6,"div",10),y.\u0275\u0275text(7),y.\u0275\u0275elementEnd(),y.\u0275\u0275element(8,"app-separator"),y.\u0275\u0275elementStart(9,"app-form-block",11),y.\u0275\u0275element(10,"app-dynamic-form",12),y.\u0275\u0275elementEnd(),y.\u0275\u0275template(11,wt,2,0,"div",13),y.\u0275\u0275template(12,Ze,2,0,"div",13),y.\u0275\u0275element(13,"app-separator"),y.\u0275\u0275elementStart(14,"app-form-block",14)(15,"app-performer-block",15),y.\u0275\u0275listener("formChanged",function(zt){y.\u0275\u0275restoreView(qe);const vt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(vt.onFormChange(zt))}),y.\u0275\u0275elementEnd()(),y.\u0275\u0275element(16,"app-separator"),y.\u0275\u0275elementStart(17,"app-form-block",16),y.\u0275\u0275element(18,"app-dynamic-form",17),y.\u0275\u0275elementEnd(),y.\u0275\u0275element(19,"app-separator"),y.\u0275\u0275elementStart(20,"div",18)(21,"app-checkbox",19),y.\u0275\u0275listener("checkboxChange",function(){y.\u0275\u0275restoreView(qe);const zt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(zt.acceptImmediately=!zt.acceptImmediately)}),y.\u0275\u0275elementEnd(),y.\u0275\u0275template(22,Ut,2,0,"label",20),y.\u0275\u0275elementEnd(),y.\u0275\u0275template(23,vn,2,1,"div",21),y.\u0275\u0275elementEnd(),y.\u0275\u0275template(24,xn,2,1,"span",20),y.\u0275\u0275elementStart(25,"div",22)(26,"div",23)(27,"app-button",24),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(qe);const zt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(zt.submit())}),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(28,"app-button",25),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(qe);const zt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(zt.onCancelClick())}),y.\u0275\u0275elementEnd()(),y.\u0275\u0275elementStart(29,"app-button",26),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(qe);const zt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(zt.submit(!0))}),y.\u0275\u0275elementEnd()()()()}if(2&dt){const qe=y.\u0275\u0275nextContext();y.\u0275\u0275advance(2),y.\u0275\u0275propertyInterpolate("text",qe.title),y.\u0275\u0275property("numberEditable",!0)("number",qe.docNumber)("showDate",!1),y.\u0275\u0275advance(3),y.\u0275\u0275property("config",qe.formConfig)("formGroup",qe.form),y.\u0275\u0275advance(2),y.\u0275\u0275textInterpolate(qe.error),y.\u0275\u0275advance(3),y.\u0275\u0275property("config",qe.termFormConfig)("formGroup",qe.termForm),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf","cash_placement"===qe.docType),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf","irreducible_balance"===qe.docType),y.\u0275\u0275advance(6),y.\u0275\u0275property("config",qe.additionalFormConfig)("formGroup",qe.additionalForm),y.\u0275\u0275advance(3),y.\u0275\u0275property("chosen",qe.acceptImmediately),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!qe.acceptImmediately),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf","cash_placement"===qe.docType&&qe.earlyReturnDisplay),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",qe.errorForm)}}function hn(dt,rt){if(1&dt&&y.\u0275\u0275element(0,"app-document-info",30),2&dt){const qe=y.\u0275\u0275nextContext();y.\u0275\u0275property("data",qe.documentInfo)("hideInfoBlock",!0)("signParams",qe.signParams)}}class pn{constructor(rt,qe,ze,zt,vt,Rt,gt,sn){this.dynamicFormService=rt,this.documentService=qe,this.router=ze,this.newDepositsService=zt,this.toastCustomService=vt,this.translationService=Rt,this.workdayService=gt,this.sbpService=sn,this.cancelClick=new y.EventEmitter,this.formConfig=pe,this.form=this.dynamicFormService.generateFormGroup(pe),this.termFormConfig=U,this.termForm=this.dynamicFormService.generateFormGroup(U),this.additionalFormConfig=H,this.additionalForm=this.dynamicFormService.generateFormGroup(H),this.acceptImmediately=!0,this.earlyReturn=!1,this.earlyReturnDisplay=!1,this.title="deposits request",this.pagePath=[{capture:"deposits",bold:!0}],this.currenciesNSO=[],this.currenciesDeposit=[],this.loading=!1,this.destroyed$=new w.x}ngOnInit(){this.checkSupAgreement(),this.subscribeOnFields()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}subscribeOnFields(){this.form.get("product").valueChanges.pipe((0,B.R)(this.destroyed$)).subscribe(rt=>{this.docType=rt;const qe=this.newDepositsService.products.find(ze=>ze.value===rt);if(this.title=qe?.caption,"irreducible_balance"===this.docType){const ze=this.dynamicFormService.generateItemsForSelect(this.currenciesNSO,"value","caption");this.dynamicFormService.setSelectItems(this.formConfig,"currCode",ze),this.formData.controls&&(this.formData.controls.currCode?.setValue(""),1===this.currenciesNSO.length&&this.formData.controls.currCode.setValue(this.currenciesNSO[0].value))}else{const ze=this.dynamicFormService.generateItemsForSelect(this.currenciesDeposit,"value","caption");this.dynamicFormService.setSelectItems(this.formConfig,"currCode",ze)}this.newDepositsService.nextDocNumber(this.docType).subscribe(ze=>{this.docNumber=ze.docNumber})}),(0,z.a)([this.form.get("currCode").valueChanges,this.termForm.get("endDate").valueChanges]).pipe((0,R.h)(rt=>!(!rt[0].length||!rt[1].length)),(0,X.w)(([rt,qe])=>this.workdayService.workdayCheckByCurrency(rt,qe).pipe((0,ne.K)(ze=>(this.termForm.get("endDate").setErrors({isWeekend:!0}),this.sbpService.errorHandle(ze),(0,p.of)(null))))),(0,B.R)(this.destroyed$)).subscribe({next:rt=>{!1===rt?(this.termForm.get("endDate").setErrors({isWeekend:!0}),this.toastCustomService.show(this.translationService.translate("Attention! The selected date is a non-working day. Please select another date."),"warning")):rt&&(this.termForm.get("endDate").setErrors(null),this.termForm.get("endDate").updateValueAndValidity({emitEvent:!1}),this.toastCustomService.closeAllErrorToasts())}}),this.termForm.controls.startDate.setValue(F()(new Date).format("DD.MM.YYYY")),this.termForm.get("endDate").valueChanges.pipe((0,B.R)(this.destroyed$)).subscribe(rt=>{rt?.length?this.calculateDays(this.termForm.get("startDate").value,rt)&&+this.termForm.get("days").value!==this.calculateDays(this.termForm.get("startDate").value,rt)&&this.termForm.get("days").setValue(this.calculateDays(this.termForm.get("startDate").value,rt)):this.termForm.get("days").value&&this.termForm.get("days").setValue(null)}),this.termForm.get("days").valueChanges.pipe((0,B.R)(this.destroyed$)).subscribe(rt=>{rt?(this.termForm.get("endDate").value?.length&&!F()(this.termForm.get("endDate").value,"DD.MM.YYYY").isSame(F()(this.setEndDate(rt),"DD.MM.YYYY"))||!this.termForm.get("endDate").value?.length)&&this.termForm.get("endDate").setValue(this.setEndDate(rt)):this.termForm.get("endDate").value?.length&&this.termForm.get("endDate").setValue(""),this.termForm.get("endDate").markAsTouched()})}checkSupAgreement(){const rt=[];for(let qe=0;qe<this.newDepositsService.depositCurrencies.length;qe++)rt.push(this.newDepositsService.checkDepositsSuppAgreement(this.newDepositsService.depositCurrencies[qe].value));this.loading=!0,(0,P.D)(rt).pipe((0,E.U)(qe=>(this.currenciesDeposit=this.newDepositsService.depositCurrencies.filter(zt=>qe.find(vt=>zt.value===vt.currCode).isAvailable),qe.filter(zt=>zt.isAvailable).length?this.newDepositsService.products:this.newDepositsService.products.filter(zt=>zt.value!==j.o.CashPlacement))),(0,B.R)(this.destroyed$)).subscribe({next:qe=>{const ze=this.dynamicFormService.generateItemsForSelect(qe,"value","caption");this.dynamicFormService.setSelectItems(this.formConfig,"product",ze),1===qe.length&&this.form.controls.product.setValue(qe[0].value),this.checkCurrenciesNSO(qe)}})}endDateValid(rt){if(!rt||!rt.length)return!1;const qe=F()(rt,"DD.MM.YYYY");return!(qe.isBefore(new Date)||qe.isSame((new Date).getDate()))}checkCurrenciesNSO(rt){const qe=[];for(let ze=0;ze<this.newDepositsService.currencies.length;ze++)qe.push(this.newDepositsService.checkNSOSuppAgreement(this.newDepositsService.currencies[ze].value));(0,P.D)(qe).pipe((0,B.R)(this.destroyed$)).subscribe({next:ze=>{const zt=[];for(let vt=0;vt<ze.length;vt++)ze[vt]&&zt.push(this.newDepositsService.currencies[vt]);if(zt.length){if(1===rt.length){const vt=this.dynamicFormService.generateItemsForSelect(zt,"value","caption");this.dynamicFormService.setSelectItems(this.formConfig,"currCode",vt),this.formData.controls&&1===zt.length&&this.formData.controls.currCode.setValue(zt[0].value)}}else if(1===rt.length)this.error=!0;else{const vt=this.dynamicFormService.generateItemsForSelect([rt[0]],"value","caption");this.dynamicFormService.setSelectItems(this.formConfig,"product",vt),this.form.controls.product.setValue(rt[0].value)}this.currenciesNSO=zt,this.loading=!1,this.toastCustomService.show("\u0423\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442! \u041f\u0440\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0441\u0434\u0435\u043b\u043a\u0438 \u041d\u0421\u041e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0439 \u0441\u043e \u0441\u0447\u0435\u0442\u0430. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043e\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u043d\u0430 \u0441\u0447\u0435\u0442\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u0440\u0430\u0441\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u044e \u0441\u0434\u0435\u043b\u043a\u0438 \u0431\u0435\u0437 \u0443\u043f\u043b\u0430\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432.","error")},error:()=>this.router.navigate(["/desktop"])})}calculateDays(rt,qe){let ze;if(!this.endDateValid(this.termForm.get("endDate").value))return null;ze=rt.split(".");const zt=new Date(ze[2]+"-"+ze[1]+"-"+ze[0]);ze=qe.split(".");const vt=new Date(ze[2]+"-"+ze[1]+"-"+ze[0]),Rt=Math.ceil(Math.abs(vt.getTime()-zt.getTime())/864e5),gt=this.calcBusinessDays(zt,vt);return this.earlyReturnDisplay=gt>=3,Rt}calcBusinessDays(rt,qe){let ze,zt;if(qe<rt)return-1;let vt=rt.getDay(),Rt=qe.getDay();return ze=Math.floor((qe.getTime()-rt.getTime())/6048e5),vt=0===vt?7:vt,Rt=0===Rt?7:Rt,vt>5&&Rt>5&&Rt>=vt&&(ze-=1),vt=vt>5?0:vt,Rt=Rt>5?5:Rt,zt=vt<=Rt?5*ze+(Rt-vt):5*(ze+1)-(vt-Rt),zt}setEndDate(rt){const qe=this.termForm.get("startDate").value.split("."),zt=new Date(qe[2]+"-"+qe[1]+"-"+qe[0]).getTime()+3600*rt*24*1e3;return F()(new Date(zt)).format("DD.MM.YYYY")}onFormChange(rt){this.formData={...this.formData,...rt}}numberChanged(rt){this.docNumber=rt}submit(rt){if(this.form.valid&&this.termForm.valid){this.loading=!0,this.errorForm="";let qe=this.termForm.get("startDate").value.split(".");const ze=new Date(qe[2]+"-"+qe[1]+"-"+qe[0]).getTime();qe=this.termForm.get("endDate").value.split(".");const zt=new Date(qe[2]+"-"+qe[1]+"-"+qe[0]).getTime();this.formData={docNumber:this.docNumber,employee:this.formData.employee,employeePhone:this.formData.phone,amount:this.form.get("amount").value,currCode:this.form.get("currCode").value,startDate:ze,endDate:zt,executionType:this.acceptImmediately,additionalInfo:this.additionalForm.get("additionalInfo").value},"cash_placement"===this.docType&&(this.formData.earlyReturnType=this.earlyReturn,this.formData.placementDate=this.formData.startDate,this.formData.withdrawalDate=this.formData.endDate),this.newDepositsService.createNewDeposit(this.docType,this.formData).pipe((0,X.w)(vt=>rt?(this.toastCustomService.show("Draft saved","success","Success"),this.router.navigate(["/deposits"],{queryParams:{tab:_.N.APPLICATION}}).then(),(0,p.of)(null)):(0,z.a)([this.documentService.getDocumentById("ibankul_curr",this.docType,vt.id),(0,p.of)(vt)])),(0,G.x)(()=>this.loading=!1),(0,B.R)(this.destroyed$)).subscribe({next:([vt,Rt])=>{vt&&Rt&&(this.documentInfo="cash_placement"===this.docType?vt.cashPlacement:vt.irreducibleBalance,this.signParams={docId:+Rt.id,docType:this.docType,docModule:"ibankul_curr"},this.result={type:Rt.id?"success":"error",data:Rt.id?this.documentInfo:Rt})},error:vt=>{this.errorForm=vt.errorText}})}else{const qe=this.termForm.get("endDate").errors;this.errorForm=qe&&qe.error?qe.error:"\u041e\u0448\u0438\u0431\u043a\u0430! \u041d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043f\u043e\u043b\u044f!"}}onCancelClick(){this.cancelClick.emit()}static#e=this.\u0275fac=function(qe){return new(qe||pn)(y.\u0275\u0275directiveInject(Z.w),y.\u0275\u0275directiveInject(oe.Z),y.\u0275\u0275directiveInject(x.F0),y.\u0275\u0275directiveInject(Pe.d),y.\u0275\u0275directiveInject(Ie.j),y.\u0275\u0275directiveInject(L.D7),y.\u0275\u0275directiveInject(pt.E),y.\u0275\u0275directiveInject(i.V))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:pn,selectors:[["app-new-deposits"]],outputs:{cancelClick:"cancelClick"},decls:5,vars:4,consts:[["data-qa","1657877981766"],[4,"ngIf"],["styleType","no-border",3,"title",4,"ngIf"],["data-qa","1657878057908",3,"data","hideInfoBlock","signParams",4,"ngIf"],["styleType","no-border",3,"title"],[1,"container-title"],["data-qa","1657877990657",3,"numberEditable","number","showDate","text","numberChanged"],["data-qa","1657878017625",1,"deposits-container-content"],["data-qa","1657877994922"],["data-qa","1657878000592",3,"config","formGroup"],[1,"error"],["data-qa","1657878005485","title","Term"],["data-qa","1657878008567",3,"config","formGroup"],["class","deposits_text",4,"ngIf"],["data-qa","1657878014316","title","Performer"],["data-qa","1657878024712",3,"formChanged"],["data-qa","1657878028998","title","Additionally"],["data-qa","1657878031792",3,"config","formGroup"],[1,"deposits_checkbox"],["data-qa","1657878036183","label","Accept immediately",3,"chosen","checkboxChange"],["class","mat-error",4,"ngIf"],["class","deposits_checkbox",4,"ngIf"],[1,"deposits_buttons"],[1,"deposits_buttons-left"],["data-qa","1657878047941","text","Send for signature",3,"click"],["data-qa","1657878050400","text","Cancel","type","bordered",3,"click"],["data-qa","1657878054693","text","Save as draft","type","bordered",3,"click"],[1,"deposits_text"],[1,"mat-error"],["data-qa","1657878040282","label","With the right of early return",3,"chosen","checkboxChange"],["data-qa","1657878057908",3,"data","hideInfoBlock","signParams"]],template:function(qe,ze){1&qe&&(y.\u0275\u0275elementStart(0,"div",0),y.\u0275\u0275template(1,ot,1,0,"app-loader",1),y.\u0275\u0275template(2,Gt,1,1,"app-page-title",2),y.\u0275\u0275template(3,bn,30,17,"div",1),y.\u0275\u0275template(4,hn,1,3,"app-document-info",3),y.\u0275\u0275elementEnd()),2&qe&&(y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ze.loading),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ze.error),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!ze.error&&(!ze.result||ze.result&&"success"!==ze.result.type)),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ze.documentInfo&&ze.signParams))},dependencies:[Ht.b,Wt.R,Xe.N,Qe.Q,n.O5,Be.a,at.r,lt.d,Dt.T,Yt.r,Tt.K],styles:['@charset "UTF-8";.deposits_buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:30px}.deposits_buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{height:60px}.deposits_buttons-left[_ngcontent-%COMP%]{display:flex}.deposits_buttons-left[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:10px}.deposits_text[_ngcontent-%COMP%]{margin-bottom:20px;color:#88909b}.deposits_checkbox[_ngcontent-%COMP%]{margin:20px 0}form[_ngcontent-%COMP%]   .form-title[_ngcontent-%COMP%]{color:#004785;font-weight:600;font-family:Source Sans Pro;font-size:22px;margin:10px 0}.deposits-text[_ngcontent-%COMP%]{font-size:24px;padding-top:20px}.tabs-block[_ngcontent-%COMP%]{border-bottom:1px solid #f1f2f2;margin-bottom:24px}']})}(0,O.gn)([(0,L.SQ)()],pn.prototype,"lang",void 0);var In=t(29198),Dn=t(15644),Tn=t(98504),mn=t(48086);function Yn(dt,rt){1&dt&&y.\u0275\u0275element(0,"app-loader")}function cn(dt,rt){if(1&dt){const qe=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",2)(1,"app-document-list",3),y.\u0275\u0275listener("actionDone",function(zt){y.\u0275\u0275restoreView(qe);const vt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(vt.onWithdraw(zt))})("docClicked",function(zt){y.\u0275\u0275restoreView(qe);const vt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(vt.onDocClick(zt))})("dotsClicked",function(zt){y.\u0275\u0275restoreView(qe);const vt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(vt.loadActions(zt))})("showMoreClicked",function(){y.\u0275\u0275restoreView(qe);const zt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(zt.showMore())}),y.\u0275\u0275elementEnd()()}if(2&dt){const qe=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275property("documents",qe.documents)("showMoreButton",qe.documents.length&&!qe.allAlreadyLoaded)}}let Nn=(()=>{class dt{constructor(qe,ze,zt,vt,Rt,gt){this.vedService=qe,this.util=ze,this.router=zt,this.datePipe=vt,this.currencyPipe=Rt,this.configUtilService=gt,this.documents=[],this.allAlreadyLoaded=!1,this.countOnPage=5}getNewDocs(qe){let ze;qe&&(this.documents=[]),this.documents.length&&(ze=this.documents[this.documents.length-1].id),this.loading=!0,this.vedService.requestDocumentsDeposits(this.countOnPage,ze,{docTypes:[{docModule:"ibankul_curr",docType:"cash_placement"},{docModule:"ibankul_curr",docType:"irreducible_balance"}]}).pipe((0,E.U)(zt=>this.parseDocuments(zt))).subscribe(zt=>{zt.length<this.countOnPage&&(this.allAlreadyLoaded=!0),this.loading=!1,this.documents=[...this.documents,...zt],this.documents.forEach(vt=>{"1"===vt.signStatus&&(vt.status=vt.signStatusCaption)})})}parseDocuments(qe){return this.util.objectsParser(qe,{id:"id",title:"name",depositInfo:ze=>this.vedService.getDepositInfo(ze),description:ze=>`\u2116${ze.docNumber}${ze.description?", "+ze.description:""}`,status:"status",signStatus:"signStatus",signStatusCaption:"signStatusCaption",systemStatus:"systemStatus",declineInfo:"declineInfo",customDecline:ze=>!!ze.declineInfo,info:"docDate",docType:"docType",statusColor:ze=>{switch(ze.systemStatus){case"end":case"processed_vk":return"green";case"decline":return"red"}},dots:()=>({}),additionalData:ze=>({id:ze.id,docModule:ze.docModule||"",docType:ze.docType,actionsLoaded:!1,docNumber:ze.docNumber||"",docDate:ze.docDate||"",description:ze.description})})}ngOnInit(){this.getNewDocs()}loadActions(qe){if(qe.additionalData.actionsLoaded)return;qe.additionalData.actionsLoaded=!0,qe.dots.buttonActions=[{type:"print",data:{docId:qe.id}}],"new"===qe.systemStatus&&(qe.dots.buttonActions.push({type:"sign",data:{docId:qe.id,docType:qe.docType,docModule:"ibankul_curr",fromTab:_.N.APPLICATION}}),qe.dots.buttonActions.push({type:"delete",data:{docId:qe.id}}));const ze=this.configUtilService.getNextDayFromRuFormat(qe.additionalData.docDate);"for_send_abs"===qe.systemStatus&&new Date<ze&&qe.dots.buttonActions.push({type:"withdraw",data:{docId:qe.id}})}onWithdraw(qe){("withdraw"===qe||"delete"===qe)&&(this.loading=!0,setTimeout(()=>this.getNewDocs(!0),1e3))}onDocClick(qe){this.router.navigate(["/document-details"],{queryParams:{docModule:qe.additionalData.docModule,docType:qe.additionalData.docType,docId:qe.additionalData.id,fromTab:_.N.APPLICATION}})}showMore(){this.getNewDocs()}static#e=this.\u0275fac=function(ze){return new(ze||dt)(y.\u0275\u0275directiveInject(In.$),y.\u0275\u0275directiveInject(Dn.Pj),y.\u0275\u0275directiveInject(x.F0),y.\u0275\u0275directiveInject(n.uU),y.\u0275\u0275directiveInject(Tn.H),y.\u0275\u0275directiveInject(Dn.Pj))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:dt,selectors:[["app-applications-tab"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","docs-tab__documents","data-qa","1657878078423",4,"ngIf"],["data-qa","1657878078423",1,"docs-tab__documents"],["data-qa","1657878081118",3,"documents","showMoreButton","actionDone","docClicked","dotsClicked","showMoreClicked"]],template:function(ze,zt){1&ze&&(y.\u0275\u0275template(0,Yn,1,0,"app-loader",0),y.\u0275\u0275template(1,cn,2,2,"div",1)),2&ze&&(y.\u0275\u0275property("ngIf",zt.loading),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!zt.loading))},dependencies:[Wt.R,mn.d,n.O5],encapsulation:2})}return dt})();t(66266);var En=t(78506);let Wn=(()=>{class dt{constructor(qe,ze,zt){this.vedService=qe,this.configUtilService=ze,this.router=zt,this.destroy$=new w.x,this.documents=[],this.allAlreadyLoaded=!1,this.countOnPage=5}ngOnInit(){this.getNewDocs()}getNewDocs(){let qe;this.documents.length&&(qe=this.documents[this.documents.length-1].id),this.vedService.requestDocumentsMetinv(this.countOnPage,qe,{docTypes:[{docModule:"ibankul_curr",docType:"confirm_cash_placement"},{docModule:"ibankul_curr",docType:"confirm_irreducible_balance"}],orderBy:{fieldName:"docDate",order:"desc"}}).pipe((0,E.U)(ze=>this.parseDocuments(ze))).subscribe(ze=>{ze.length<this.countOnPage&&(this.allAlreadyLoaded=!0),this.documents=[...this.documents,...ze]})}loadActions(qe){if(qe.additionalData.actionsLoaded)return;qe.additionalData.actionsLoaded=!0;const ze=[];this.configUtilService.getArray(qe.actions).forEach(zt=>{switch(zt){case"print":ze.push({type:"print",data:{docId:qe.id}});break;case"forSendToBank":ze.push({type:"send",data:{docId:qe.id,docType:qe.docType,docModule:"ibankul_curr",fromTab:"depositsConfirm"}});break;case"sign_on_client":ze.push({type:"accept",data:{docId:qe.id,docType:qe.docType,docModule:"ibankul_curr",fromTab:"depositsConfirm"}});break;case"pay":ze.push({type:"topUpDeposit",data:{action:"topUpDeposit",docId:qe.id,docModule:"ibankul_curr",docType:qe.docType,currCode:qe.currCode,paymentData:{...qe.paymentData}}})}}),qe.dots.buttonActions=ze}parseDocuments(qe){return this.configUtilService.objectsParser(qe,{actions:ze=>ze.actions,id:ze=>ze.document.id,title:ze=>"confirm_irreducible_balance"===ze.document.docType?"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435/\u041d\u0421\u041e":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435/\u0434\u0435\u043f\u043e\u0437\u0438\u0442",depositInfo:ze=>this.vedService.getDepositInfo(ze.document),description:ze=>`\u2116${ze.document.docNumber}${ze.document.description?", "+ze.document.description:""}`,status:ze=>this.getStatus(ze.document),declineInfo:ze=>ze.document.declineInfo,customDecline:ze=>!!ze.declineInfo,info:ze=>this.configUtilService.formatDateString(ze.document.docDate),docType:ze=>ze.document.docType,currCode:ze=>ze.document.currCode,statusColor:ze=>this.getStatusColor(ze),dots:()=>({}),additionalData:ze=>({id:ze.document.id,docModule:ze.document.docModule||"",docType:ze.document.docType,actionsLoaded:!1,docNumber:ze.document.docNumber||"",docDate:ze.document.docDate||"",description:ze.document.description}),paymentData:ze=>({...["\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435","\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d"].includes(ze.document.statusCaption)&&!ze.document.platporId&&{contractNumber:"",contractAmount:ze.document.amount,contractAcc:ze.document.accNumber,confirmationNumber:ze.document.docNumber,confirmationDate:ze.document.docDate,depositId:ze.document.id}})})}getStatus(qe){return"new"===qe.status?qe.signStatusCaption:qe.statusCaption}getStatusColor(qe){switch(qe){case"end":case"processed_vk":return En.Dr.GREEN;case"decline":return En.Dr.RED;default:return En.Dr.DEFAULT}}onActionDone(qe){if("send"===qe.actionType){const ze=qe?.document?.docType||qe?.document?.additionalData?.docType,zt=qe?.document?.docModule||qe?.document?.additionalData?.docModule,vt=qe?.document?.id||qe?.document?.additionalData?.id;ze&&zt&&vt&&this.vedService.requestDocumentInfo({docModule:zt,docType:ze,id:vt},!1).pipe((0,B.R)(this.destroy$)).subscribe({next:Rt=>{if(Rt){const gt=this.documents.find(sn=>sn.id===Rt.id);gt&&(gt.status=this.getStatus(Rt),gt.statusColor=this.getStatusColor(Rt.status),gt.actions=Rt.actions,gt.additionalData.actionsLoaded=!1)}}})}}onDocClick(qe){this.router.navigate(["/document-details"],{queryParams:{docModule:qe.additionalData.docModule,docType:qe.additionalData.docType,docId:qe.additionalData.id,fromTab:"depositsConfirm"}})}showMore(){this.getNewDocs()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||dt)(y.\u0275\u0275directiveInject(In.$),y.\u0275\u0275directiveInject(Dn.Pj),y.\u0275\u0275directiveInject(x.F0))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:dt,selectors:[["app-confirm-tab"]],decls:2,vars:2,consts:[["data-qa","1657878067847",1,"docs-tab__documents"],["data-qa","1657878070067",3,"documents","showMoreButton","docClicked","dotsClicked","showMoreClicked","actionDone"]],template:function(ze,zt){1&ze&&(y.\u0275\u0275elementStart(0,"div",0)(1,"app-document-list",1),y.\u0275\u0275listener("docClicked",function(Rt){return zt.onDocClick(Rt)})("dotsClicked",function(Rt){return zt.loadActions(Rt)})("showMoreClicked",function(){return zt.showMore()})("actionDone",function(Rt){return zt.onActionDone(Rt)}),y.\u0275\u0275elementEnd()()),2&ze&&(y.\u0275\u0275advance(1),y.\u0275\u0275property("documents",zt.documents)("showMoreButton",zt.documents.length&&!zt.allAlreadyLoaded))},dependencies:[mn.d],encapsulation:2})}return dt})();function rn(dt,rt){if(1&dt&&(y.\u0275\u0275element(0,"app-tab",9),y.\u0275\u0275pipe(1,"translate")),2&dt){const qe=rt.$implicit,ze=rt.index,zt=y.\u0275\u0275nextContext();y.\u0275\u0275propertyInterpolate("label",y.\u0275\u0275pipeBind2(1,2,qe.capture,zt.lang)),y.\u0275\u0275attribute("data-qa","1657877951747"+ze)}}function Sn(dt,rt){if(1&dt){const qe=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"app-new-deposits",10),y.\u0275\u0275listener("cancelClick",function(){y.\u0275\u0275restoreView(qe);const zt=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(zt.changeTab(1))}),y.\u0275\u0275elementEnd()}}function ke(dt,rt){1&dt&&y.\u0275\u0275element(0,"app-applications-tab",11)}function ge(dt,rt){1&dt&&y.\u0275\u0275element(0,"app-confirm-tab",12)}class q{constructor(rt,qe){this.route=rt,this.router=qe,this.title="deposits",this.pagePath=[{capture:"deposits and nso",bold:!0}],this.initialTabIndex=0,this.tabs=_.Y,this.currentTab=this.tabs[0],this.DEPOSITS_TABS_VALUES=_.N,this.destroyed$=new w.x}ngOnInit(){this.route.queryParams.pipe((0,B.R)(this.destroyed$)).subscribe(rt=>{if(rt.tab){let qe=this.tabs.findIndex(ze=>ze.value===rt.tab);-1===qe&&(qe=0),this.initialTabIndex=qe,this.currentTab=this.tabs[qe]}else this.initialTabIndex=0;this.changeTab(this.initialTabIndex)})}changeTab(rt){this.currentTab=this.tabs[rt],this.router.navigate([],{relativeTo:this.route,queryParams:{tab:this.currentTab.value}})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||q)(y.\u0275\u0275directiveInject(x.gz),y.\u0275\u0275directiveInject(x.F0))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:q,selectors:[["app-deposits"]],decls:9,vars:6,consts:[["data-qa","1657877928550"],[3,"pathData"],["data-qa","1657877933207",1,"container"],[1,"tabs-block"],["data-qa","1657877936928",3,"currentIndex","selectTab"],[3,"label",4,"ngFor","ngForOf"],["data-qa","1657877965926",3,"cancelClick",4,"ngIf"],["data-qa","1657877968459",4,"ngIf"],["data-qa","1657877971086",4,"ngIf"],[3,"label"],["data-qa","1657877965926",3,"cancelClick"],["data-qa","1657877968459"],["data-qa","1657877971086"]],template:function(qe,ze){1&qe&&(y.\u0275\u0275elementStart(0,"div",0),y.\u0275\u0275element(1,"app-path",1),y.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"app-tabs",4),y.\u0275\u0275listener("selectTab",function(vt){return ze.changeTab(vt)}),y.\u0275\u0275template(5,rn,2,5,"app-tab",5),y.\u0275\u0275elementEnd()(),y.\u0275\u0275template(6,Sn,1,0,"app-new-deposits",6),y.\u0275\u0275template(7,ke,1,0,"app-applications-tab",7),y.\u0275\u0275template(8,ge,1,0,"app-confirm-tab",8),y.\u0275\u0275elementEnd()()),2&qe&&(y.\u0275\u0275advance(1),y.\u0275\u0275property("pathData",ze.pagePath),y.\u0275\u0275advance(3),y.\u0275\u0275property("currentIndex",ze.initialTabIndex),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngForOf",ze.tabs),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ze.currentTab.value===ze.DEPOSITS_TABS_VALUES.CREATE),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ze.currentTab.value===ze.DEPOSITS_TABS_VALUES.APPLICATION),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ze.currentTab.value===ze.DEPOSITS_TABS_VALUES.CONFIRM))},dependencies:[$.n,C.i,n.sg,n.O5,T.l,pn,Nn,Wn,L.X$],styles:['@charset "UTF-8";.deposits_buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:30px}.deposits_buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{height:60px}.deposits_buttons-left[_ngcontent-%COMP%]{display:flex}.deposits_buttons-left[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:10px}.deposits_text[_ngcontent-%COMP%]{margin-bottom:20px;color:#88909b}.deposits_checkbox[_ngcontent-%COMP%]{margin:20px 0}form[_ngcontent-%COMP%]   .form-title[_ngcontent-%COMP%]{color:#004785;font-weight:600;font-family:Source Sans Pro;font-size:22px;margin:10px 0}.deposits-text[_ngcontent-%COMP%]{font-size:24px;padding-top:20px}.tabs-block[_ngcontent-%COMP%]{border-bottom:1px solid #f1f2f2;margin-bottom:24px}']})}(0,O.gn)([(0,L.SQ)()],q.prototype,"lang",void 0);const J=[{path:"",component:q},{path:"**",redirectTo:""}];let Oe=(()=>{class dt{static#e=this.\u0275fac=function(ze){return new(ze||dt)};static#t=this.\u0275mod=y.\u0275\u0275defineNgModule({type:dt});static#n=this.\u0275inj=y.\u0275\u0275defineInjector({imports:[x.Bz.forChild(J),x.Bz]})}return dt})();var je=t(80722);let Et=(()=>{class dt{static#e=this.\u0275fac=function(ze){return new(ze||dt)};static#t=this.\u0275mod=y.\u0275\u0275defineNgModule({type:dt});static#n=this.\u0275inj=y.\u0275\u0275defineInjector({providers:[Pe.d,i.V],imports:[m.m,n.ez,Oe,e._,l.N,h.F,u.u,a.B,d.h,je.E]})}return dt})()},9297:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>m});var n=t(39646),e=t(54004),i=t(70262),d=t(6146),a=t(8226),u=t(94650),h=t(3751),l=t(9149);let m=(()=>{class x{constructor(L,w){this.apiService=L,this.toastCustomService=w,this.currencies=[{value:a.$3,caption:"RUB"},{value:a.L4,caption:"USD"},{value:a.mv,caption:"CNY"},{value:a.CM,caption:"EUR"}],this.depositCurrencies=[{value:a.$3,caption:"RUB"},{value:a.mv,caption:"CNY"}],this.products=[{value:d.o.CashPlacement,caption:"\u0417\u0410\u042f\u0412\u041a\u0410 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432  \u0432 \u0434\u0435\u043f\u043e\u0437\u0438\u0442"},{value:d.o.IrreduciblBalance,caption:"\u0417\u0410\u042f\u0412\u041a\u0410 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432 \u043d\u0435\u0441\u043d\u0438\u0436\u0430\u0435\u043c\u044b\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a"}]}checkDepositsSuppAgreement(L){return this.apiService.post("check/supplementary_agreement/deposit/"+L,{}).pipe((0,e.U)(()=>({isAvailable:!0,currCode:L})),(0,i.K)(()=>(0,n.of)({isAvailable:!1,currCode:L})))}checkDepositsNSO(){return this.apiService.get("dealing/nso_contract_check")}getNsoApplicationAvailability(L=!0){const w=["10","11"];return L&&w.push("01"),this.checkDepositsNSO().pipe((0,e.U)(B=>w?.includes(B.retCode)),(0,i.K)(B=>(this.toastCustomService.errorHandle(B),(0,n.of)(!1))))}checkNSOSuppAgreement(L){return this.apiService.post("check/supplementary_agreement/nso/"+L,{}).pipe((0,e.U)(()=>!0),(0,i.K)(()=>(0,n.of)(!1)))}nextDocNumber(L){return this.apiService.get(`document/number/next?doc_module=ibankul_curr&doc_type=${L}`)}createNewDeposit(L,w){return this.apiService.post("deposit/dealing/"+L,w)}static#e=this.\u0275fac=function(w){return new(w||x)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.j))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac})}return x})()},74720:(Ee,Q,t)=>{"use strict";t.d(Q,{L:()=>X});var n=t(97582),e=t(16611),i=t(77579),d=t(63900),a=t(82722),u=t(6146),h=t(94650),l=t(38101),m=t(40929),x=t(9149),O=t(36895),L=t(90995),w=t(75568),B=t(95698),_=t(39486),y=t(44509),$=t(98504),C=t(66439);function T(p,P){if(1&p&&(h.\u0275\u0275elementStart(0,"span",5),h.\u0275\u0275text(1),h.\u0275\u0275pipe(2,"appCurrency"),h.\u0275\u0275pipe(3,"currencySymbol"),h.\u0275\u0275elementEnd()),2&p){const E=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate2("+ ",h.\u0275\u0275pipeBind1(2,2,E.doc.creditAmount||"0.00")," ",h.\u0275\u0275pipeBind1(3,4,E.doc.creditCurrCodeIso),"")}}function j(p,P){if(1&p&&(h.\u0275\u0275elementStart(0,"span",6),h.\u0275\u0275text(1),h.\u0275\u0275pipe(2,"appCurrency"),h.\u0275\u0275pipe(3,"currencySymbol"),h.\u0275\u0275elementEnd()),2&p){const E=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate2("- ",h.\u0275\u0275pipeBind1(2,2,E.doc.debitAmount||"0.00")," ",h.\u0275\u0275pipeBind1(3,4,E.doc.debitCurrCodeIso),"")}}class I{constructor(P){this.productService=P}set document(P){this.doc=P,this.productService.getProducts().pipe((0,B.q)(1)).subscribe(E=>{const R=E.find(G=>G.id===this.doc.creditAccId),ne=E.find(G=>G.id===this.doc.debitAccId);this.creditAccNumber=R?R.number:"",this.debitAccNumber=ne?ne.number:""})}get precheckTitle(){return"RUR"===this.doc.creditCurrCodeIso?"Sell request":"Buy request"}get fixedRateMode(){return"BY_BANK"===this.doc.fixedRateMode?"FromBank":"FromMarket"}get debitExists(){return parseFloat(this.doc.debitAmount)>0}get creditExists(){return parseFloat(this.doc.creditAmount)>0}ngOnInit(){}static#e=this.\u0275fac=function(E){return new(E||I)(h.\u0275\u0275directiveInject(_.su))};static#t=this.\u0275cmp=h.\u0275\u0275defineComponent({type:I,selectors:[["app-document-precheck-info"]],inputs:{document:"document"},decls:23,vars:25,consts:[[1,"precheck-info"],[1,"precheck-caption"],[1,"precheck-value"],["class","precheck-debit",4,"ngIf"],["class","precheck-credit",4,"ngIf"],[1,"precheck-debit"],[1,"precheck-credit"]],template:function(E,R){1&E&&(h.\u0275\u0275elementStart(0,"div",0)(1,"div",1),h.\u0275\u0275text(2),h.\u0275\u0275pipe(3,"translate"),h.\u0275\u0275elementStart(4,"span"),h.\u0275\u0275text(5),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(6),h.\u0275\u0275pipe(7,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(8,"div",2),h.\u0275\u0275template(9,T,4,6,"span",3),h.\u0275\u0275template(10,j,4,6,"span",4),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(11,"div",1),h.\u0275\u0275text(12),h.\u0275\u0275pipe(13,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(14,"div",2),h.\u0275\u0275text(15),h.\u0275\u0275pipe(16,"account_number"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(17,"div",1),h.\u0275\u0275text(18),h.\u0275\u0275pipe(19,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(20,"div",2),h.\u0275\u0275text(21),h.\u0275\u0275pipe(22,"account_number"),h.\u0275\u0275elementEnd()()),2&E&&(h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate1(" ",h.\u0275\u0275pipeBind2(3,9,R.precheckTitle,R.lang)," "),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate1("\u2116",R.doc.docNumber,""),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate1(". ",h.\u0275\u0275pipeBind2(7,12,R.fixedRateMode,R.lang)," "),h.\u0275\u0275advance(3),h.\u0275\u0275property("ngIf",R.creditExists),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",R.debitExists),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind2(13,15,"Deposit Account",R.lang)),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(16,18,R.creditAccNumber)),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind2(19,20,"Write-off Account",R.lang)),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(22,23,R.debitAccNumber)))},dependencies:[O.O5,e.X$,y.G,$.H,C.k],styles:['@charset "UTF-8";.precheck-info[_ngcontent-%COMP%]{border:2px solid #d9291e;border-radius:16px;padding:12px 24px;background-color:#fff}@media only screen and (min-width: 768px){.precheck-info[_ngcontent-%COMP%]{margin:-32px 16px -82px 0}}.precheck-caption[_ngcontent-%COMP%]{color:#88909b;margin-bottom:2px}.precheck-caption[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#000}.precheck-value[_ngcontent-%COMP%]{font-size:18px;margin-bottom:8px}.precheck-debit[_ngcontent-%COMP%]{color:#28b26d}.precheck-credit[_ngcontent-%COMP%]{color:#d9291e}']})}function F(p,P){if(1&p&&h.\u0275\u0275element(0,"app-document-precheck-info",9),2&p){const E=h.\u0275\u0275nextContext();h.\u0275\u0275property("document",E.operation&&E.operation.data)}}function z(p,P){1&p&&h.\u0275\u0275element(0,"app-loader")}(0,n.gn)([(0,e.SQ)()],I.prototype,"lang",void 0);class X{constructor(P,E,R){this.modalService=P,this.documentService=E,this.toast=R,this.load=!1,this.destroyed$=new i.x,this.conversionDocTypes=[u.o.DocPlatporConv,u.o.DocCurrBuy,u.o.DocCurrSell,u.o.DocCurrAgentFactoring]}get isPreCheck(){return"precheck_conversion"===this.modalService.docType}get isAutoCurrConversion(){return"true"===this.operation?.data?.isAuto}close(){this.load=!1,this.modalService.close()}decline(){this.load=!0;const P=this.getDeclineRequest();if(!P)return this.toast.show("Decline is not available","error"),this.declinenDone(),void this.close();P.pipe((0,a.R)(this.destroyed$)).subscribe({next:()=>{this.declinenDone(),this.close()},error:E=>{this.toast.show(E.errorText||"Error","error"),this.declinenDone(),this.close()}})}getDeclineRequest(){return this.isAutoCurrConversion?this.declineAutoCurrConversion():this.conversionDocTypes.includes(this.modalService.docType)?this.documentService.declineRequest(this.operation.docIds):this.documentService.declineDocument(this.operation.docIds)}declineAutoCurrConversion(){return this.documentService.isAllowedAction(this.operation.data,"decline").pipe((0,d.w)(P=>{if(!P)throw{errorText:"Decline is not available"};return this.documentService.declineDocument(this.operation.docIds)}))}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(E){return new(E||X)(h.\u0275\u0275directiveInject(l.Z),h.\u0275\u0275directiveInject(m.Z),h.\u0275\u0275directiveInject(x.j))};static#t=this.\u0275cmp=h.\u0275\u0275defineComponent({type:X,selectors:[["app-document-decline-modal"]],inputs:{declinenDone:"declinenDone",operation:"operation",text:"text"},decls:12,vars:11,consts:[["data-qa","1657877542428",1,"delete-modal"],[1,"delete-modal__header-wrapper"],[1,"delete-modal__header-value"],[3,"document",4,"ngIf"],[1,"delete-modal__wrapper"],[1,"delete-modal__button"],["data-qa","1657877546014","type","large",3,"text","click"],["data-qa","1657877549214",3,"type","text","click"],[4,"ngIf"],[3,"document"]],template:function(E,R){1&E&&(h.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),h.\u0275\u0275text(3),h.\u0275\u0275pipe(4,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275template(5,F,1,1,"app-document-precheck-info",3),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(6,"div",4)(7,"div",5)(8,"app-button",6),h.\u0275\u0275listener("click",function(){return R.decline()}),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(9,"div",5)(10,"app-button",7),h.\u0275\u0275listener("click",function(){return R.close()}),h.\u0275\u0275elementEnd()()()(),h.\u0275\u0275template(11,z,1,0,"app-loader",8)),2&E&&(h.\u0275\u0275classProp("load",R.load),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate1(" ",h.\u0275\u0275pipeBind2(4,8,R.text||"Are you sure you want to decline the confirm?",R.lang)," "),h.\u0275\u0275advance(2),h.\u0275\u0275property("ngIf",R.isPreCheck),h.\u0275\u0275advance(3),h.\u0275\u0275propertyInterpolate("text","Yes"),h.\u0275\u0275advance(2),h.\u0275\u0275propertyInterpolate("text","Cancel"),h.\u0275\u0275property("type","small-bordered"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",R.load))},dependencies:[O.O5,L.r,w.R,I,e.X$],styles:['@charset "UTF-8";.delete-modal.load[_ngcontent-%COMP%]{opacity:.4}.delete-modal__title[_ngcontent-%COMP%]{font-size:33px;font-weight:600;color:#284681;border-bottom:1px solid #dedede;padding-bottom:32px}.delete-modal__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}@media only screen and (min-width: 768px){.delete-modal__header-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}}.delete-modal__buttons[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-wrap:wrap;gap:16px;margin-top:20px}.delete-modal__wrapper[_ngcontent-%COMP%]{display:flex}.delete-modal__button[_ngcontent-%COMP%]{padding-top:20px}.delete-modal__button[_ngcontent-%COMP%]:first-child{margin-right:20px}.delete-modal__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.delete-modal__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.delete-modal__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.delete-modal__button-label__input[_ngcontent-%COMP%]{display:none}.delete-modal__button.view[_ngcontent-%COMP%]{margin-right:20px}.delete-modal__button.load[_ngcontent-%COMP%]{width:170px}.delete-modal__button.disabled[_ngcontent-%COMP%], .delete-modal__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}(0,n.gn)([(0,e.SQ)()],X.prototype,"lang",void 0)},45835:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>w});var n=t(97582),e=t(16611),i=t(6146),d=t(94650),a=t(38101),u=t(40929),h=t(9149),l=t(67887),m=t(36895),x=t(90995),O=t(75568);function L(B,_){1&B&&d.\u0275\u0275element(0,"app-loader")}class w{constructor(_,y,$,C){this.modalService=_,this.documentService=y,this.toast=$,this.sbpApiService=C,this.successMessage="Document delete success",this.load=!1}get isManyDocs(){return Array.isArray(this.operation)}close(){this.modalService.close()}confirmDelete(){this.isManyDocs?this.deleteMany():this.delete()}getRestByDocType(_){return _===i.o.SbpQrTsp?this.sbpApiService.postRegistrySbpDelete(this.operation.docIds):this.documentService.deleteDocument(this.operation.docIds)}deleteMany(){if(this.load=!0,this.operation.length){const _=this.operation.map(y=>+y.docIds);this.documentService.deleteMultipleDocuments(_).subscribe({next:()=>{this.load=!1,this.deletionDone(),this.close(),this.toast.show(`\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u044b (${_.length})`,"success")},error:y=>{this.toast.show(y.errorText,"error"),this.load=!1,this.close()}})}else this.load=!1,this.toast.show("\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0443\u0441\u0442","error")}delete(){this.load=!0,(this.operation.docType?this.getRestByDocType(this.operation.docType):this.documentService.deleteDocument(this.operation.docIds)).subscribe({complete:()=>{this.load=!1,this.deletionDone(),this.close(),this.toast.show(this.successMessage,"success")},error:y=>{this.toast.errorHandle(y),this.load=!1}})}static#e=this.\u0275fac=function(y){return new(y||w)(d.\u0275\u0275directiveInject(a.Z),d.\u0275\u0275directiveInject(u.Z),d.\u0275\u0275directiveInject(h.j),d.\u0275\u0275directiveInject(l.Y))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:w,selectors:[["app-document-delete-modal"]],inputs:{deletionDone:"deletionDone",operation:"operation",text:"text",successMessage:"successMessage"},decls:8,vars:7,consts:[["data-qa","1657877522679",1,"delete-modal"],[1,"delete-modal__header-value"],[1,"delete-modal__buttons"],["data-qa","1657877530869","text","Yes, delete","type","small header",3,"click"],["data-qa","1657877533711","text","Cancel","type","medium-for-sign-mail",3,"click"],[4,"ngIf"]],template:function(y,$){1&y&&(d.\u0275\u0275elementStart(0,"div",0)(1,"div",1),d.\u0275\u0275text(2),d.\u0275\u0275pipe(3,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(4,"div",2)(5,"app-button",3),d.\u0275\u0275listener("click",function(){return $.confirmDelete()}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"app-button",4),d.\u0275\u0275listener("click",function(){return $.close()}),d.\u0275\u0275elementEnd()()(),d.\u0275\u0275template(7,L,1,0,"app-loader",5)),2&y&&(d.\u0275\u0275classProp("load",$.load),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1(" ",d.\u0275\u0275pipeBind2(3,4,$.text||"Are you sure you want to delete the document?",$.lang)," "),d.\u0275\u0275advance(5),d.\u0275\u0275property("ngIf",$.load))},dependencies:[m.O5,x.r,O.R,e.X$],styles:['@charset "UTF-8";.delete-modal.load[_ngcontent-%COMP%]{opacity:.4}.delete-modal__title[_ngcontent-%COMP%]{font-size:33px;font-weight:600;color:#284681;border-bottom:1px solid #dedede;padding-bottom:32px}.delete-modal__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}@media only screen and (min-width: 768px){.delete-modal__header-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}}.delete-modal__buttons[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-wrap:wrap;gap:16px;margin-top:20px}.delete-modal__wrapper[_ngcontent-%COMP%]{display:flex}.delete-modal__button[_ngcontent-%COMP%]{padding-top:20px}.delete-modal__button[_ngcontent-%COMP%]:first-child{margin-right:20px}.delete-modal__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.delete-modal__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.delete-modal__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.delete-modal__button-label__input[_ngcontent-%COMP%]{display:none}.delete-modal__button.view[_ngcontent-%COMP%]{margin-right:20px}.delete-modal__button.load[_ngcontent-%COMP%]{width:170px}.delete-modal__button.disabled[_ngcontent-%COMP%], .delete-modal__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}(0,n.gn)([(0,e.SQ)()],w.prototype,"lang",void 0)},56108:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>j});var n=t(97582),e=t(24006),i=t(16611),d=t(95698),a=t(53065),h=t(94650),l=t(8058),m=t(38101),x=t(3751),O=t(9149),L=t(36895),w=t(75568),B=t(5103),_=t(59549),y=t(67795),$=t(284);function C(I,F){if(1&I&&(h.\u0275\u0275elementStart(0,"mat-error"),h.\u0275\u0275text(1),h.\u0275\u0275pipe(2,"translate"),h.\u0275\u0275elementEnd()),2&I){const z=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate1(" ",h.\u0275\u0275pipeBind2(2,1,"Must filled",z.lang)," ")}}const T=function(I){return{mask:I}};class j{constructor(F,z,X,p){this.dynamicFormService=F,this.modalService=z,this.apiService=X,this.toast=p,this.emailMask=a.emailMask,this.loader=!1,this.form=new e.FormGroup({email:new e.FormControl("",[e.Validators.required])})}setLoader(F){this.loader=F}onSend(){this.setLoader(!0);const F={documentId:this.id,address:this.form.get("email").value,format:"pdf"};this.apiService.post("print_form/send/email",F).pipe((0,d.q)(1)).subscribe(()=>{this.toast.show("Document sent","success"),this.modalService.close(),setTimeout(()=>this.setLoader(!1))},z=>{this.toast.show(z.errorText,"error"),this.setLoader(!1)})}isValidForm(){return this.form.valid}getLoader(){return this.loader}static#e=this.\u0275fac=function(z){return new(z||j)(h.\u0275\u0275directiveInject(l.w),h.\u0275\u0275directiveInject(m.Z),h.\u0275\u0275directiveInject(x.s),h.\u0275\u0275directiveInject(O.j))};static#t=this.\u0275cmp=h.\u0275\u0275defineComponent({type:j,selectors:[["app-document-email-send-modal"]],inputs:{id:"id"},decls:15,vars:14,consts:[[1,"print-modal"],[1,"print-modal__header-value"],[3,"formGroup"],["appearance","fill"],["formControlName","email","matInput","",3,"textMask","type"],[4,"ngIf"],[1,"print-modal__wrapper"],[1,"print-modal__button"],["size-m","","primary","",3,"disabled","click"],[3,"hidden"]],template:function(z,X){1&z&&(h.\u0275\u0275elementStart(0,"div",0)(1,"div",1),h.\u0275\u0275text(2),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),h.\u0275\u0275text(6),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(7,"input",4),h.\u0275\u0275template(8,C,3,4,"mat-error",5),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(9,"div",6)(10,"div",7)(11,"button",8),h.\u0275\u0275listener("click",function(){return X.onSend()}),h.\u0275\u0275text(12),h.\u0275\u0275pipe(13,"translate"),h.\u0275\u0275elementEnd()()(),h.\u0275\u0275element(14,"app-loader",9),h.\u0275\u0275elementEnd()),2&z&&(h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate1(" ","\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b"," "),h.\u0275\u0275advance(1),h.\u0275\u0275property("formGroup",X.form),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate("E-mail"),h.\u0275\u0275advance(1),h.\u0275\u0275property("textMask",h.\u0275\u0275pureFunction1(12,T,X.emailMask))("type","text"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",X.form.get("email").invalid&&X.form.get("email").enabled),h.\u0275\u0275advance(3),h.\u0275\u0275property("disabled",!X.isValidForm()),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind2(13,9,"Just Send",X.lang)),h.\u0275\u0275advance(2),h.\u0275\u0275property("hidden",!X.getLoader()))},dependencies:[L.O5,e.\u0275NgNoValidate,e.DefaultValueAccessor,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,w.R,B.n,_.KE,_.hX,_.TO,y.hd,$.Nt,i.X$],styles:['@charset "UTF-8";.print-modal[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding:24px 32px}.print-modal__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:22px;color:#000}.print-modal__wrapper[_ngcontent-%COMP%]{display:flex;margin-top:60px;column-gap:16px}',"app-document-email-send-modal .mat-mdc-form-field-hint{color:#88909b}  app-document-email-send-modal .mat-mdc-select-value-text{text-overflow:initial!important;white-space:nowrap;overflow:hidden;display:block}  app-document-email-send-modal .mat-mdc-form-field{width:100%;font-family:Open Sans,Source Sans Pro,sans-serif;margin-top:20px}  app-document-email-send-modal .mdc-text-field--filled:not(.mdc-text-field--disabled){background:none}  app-document-email-send-modal .mat-mdc-form-field-focus-overlay{background:none}  app-document-email-send-modal .mat-radio-button .mat-radio-label{align-items:flex-start}  app-document-email-send-modal .mat-radio-button .mat-radio-label .mat-radio-label-content{padding-left:16px}  app-document-email-send-modal .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#2f54eb}  app-document-email-send-modal .mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#fff!important}  app-document-email-send-modal .mat-mdc-radio-group.qr-code-form__radio-group.ng-invalid.ng-touched .mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336!important}  app-document-email-send-modal .mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#2f54eb!important;background:#2f54eb!important}  app-document-email-send-modal .mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:#88909b}  app-document-email-send-modal .mat-form-field-label{color:#88909b}  app-document-email-send-modal .mat-mdc-radio-button.mat-accent{--mdc-radio-selected-focus-icon-color: #2f54eb;--mdc-radio-selected-icon-color: #2f54eb;--mdc-radio-selected-pressed-icon-color: #2f54eb;--mat-mdc-radio-checked-ripple-color: #2f54eb}"]})}(0,n.gn)([(0,i.SQ)()],j.prototype,"lang",void 0)},1244:(Ee,Q,t)=>{"use strict";t.d(Q,{m:()=>Ce});var n=t(97582),e=t(16611),i=t(15439),d=t.n(i),a=t(83e3),u=t(10956),h=t(6146),l=t(94650),m=t(36895),x=t(98504),O=t(43557);const L=["nameTitleLeft"],w=["nameTitleRight"];function B(U,H){if(1&U&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275elementStart(1,"div",12),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementContainerEnd()),2&U){const Z=l.\u0275\u0275nextContext().$implicit;l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(Z.value)}}function _(U,H){if(1&U&&l.\u0275\u0275element(0,"div",13),2&U){const Z=l.\u0275\u0275nextContext().$implicit;l.\u0275\u0275property("innerHTML",Z.value,l.\u0275\u0275sanitizeHtml)}}function y(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"div",8)(1,"div",9),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(4,B,3,1,"ng-container",10),l.\u0275\u0275template(5,_,1,1,"ng-template",null,11,l.\u0275\u0275templateRefExtractor),l.\u0275\u0275elementEnd()),2&U){const Z=H.$implicit,oe=l.\u0275\u0275reference(6),Pe=l.\u0275\u0275nextContext(3);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind2(3,3,Z.caption,Pe.lang)),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",!Z.isValueAsHTMl)("ngIfElse",oe)}}function $(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"div",6),l.\u0275\u0275template(1,y,7,6,"div",7),l.\u0275\u0275elementEnd()),2&U){const Z=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",Z.otherData)}}function C(U,H){if(1&U){const Z=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",2),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(Z);const Pe=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(Pe.onContentToggle())}),l.\u0275\u0275elementStart(1,"div",3)(2,"span"),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275element(5,"app-arrow-toggle",4),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(6,$,2,1,"div",5),l.\u0275\u0275elementEnd()}if(2&U){const Z=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind2(4,3,"Document data",Z.lang)),l.\u0275\u0275advance(2),l.\u0275\u0275property("hide",Z.isHide),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!Z.isHide)}}function T(U,H){if(1&U&&l.\u0275\u0275element(0,"img",25),2&U){const Z=l.\u0275\u0275nextContext(3);l.\u0275\u0275property("src",Z.data.headerImageSrc,l.\u0275\u0275sanitizeUrl)}}function j(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"div",19)(1,"div",21),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"div",22),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd()()),2&U){const Z=l.\u0275\u0275nextContext().$implicit,oe=l.\u0275\u0275nextContext(3);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(3,2,Z.capture,oe.lang)," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",Z.value," ")}}function I(U,H){if(1&U&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,j,6,5,"div",26),l.\u0275\u0275elementContainerEnd()),2&U){const Z=H.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Z.value)}}function F(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"div",27),l.\u0275\u0275element(1,"app-arrow-toggle",28),l.\u0275\u0275elementEnd()),2&U){const Z=l.\u0275\u0275nextContext(3);l.\u0275\u0275advance(1),l.\u0275\u0275property("hide",Z.isHide)}}const z=function(){return["inq_curr_181","inq_conf_181","doc_transit_pay_doc"]};function X(U,H){if(1&U){const Z=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",17),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(Z);const Pe=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(Pe.onContentToggle())}),l.\u0275\u0275elementStart(1,"div",18)(2,"div",19),l.\u0275\u0275template(3,T,1,1,"img",20),l.\u0275\u0275elementStart(4,"div")(5,"div",21),l.\u0275\u0275text(6),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(7,"div",22),l.\u0275\u0275text(8),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275template(9,I,2,1,"ng-container",23),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(10,F,2,1,"div",24),l.\u0275\u0275elementEnd()}if(2&U){const Z=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",Z.data.headerImageSrc),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",Z.getDocInfoHeader()," "),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",Z.data.description," "),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",Z.data.headerFields),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!l.\u0275\u0275pureFunction0(5,z).includes(Z.data.docType))}}function p(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"li",37)(1,"div",38),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"div",39),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd()()),2&U){const Z=l.\u0275\u0275nextContext().$implicit,oe=l.\u0275\u0275nextContext(3);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(3,2,Z.capture,oe.lang)," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",Z.value," ")}}function P(U,H){if(1&U&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,p,6,5,"li",36),l.\u0275\u0275elementContainerEnd()),2&U){const Z=H.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Z.value)}}function E(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"li",37)(1,"div",38),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"div",39),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd()()),2&U){const Z=l.\u0275\u0275nextContext().$implicit,oe=l.\u0275\u0275nextContext(3);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(3,2,Z.capture,oe.lang)," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",Z.value," ")}}function R(U,H){if(1&U&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,E,6,5,"li",36),l.\u0275\u0275elementContainerEnd()),2&U){const Z=H.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Z.value)}}function ne(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"div",29)(1,"div",30)(2,"div",21),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"div",31,32),l.\u0275\u0275text(7),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(8,"ul",33),l.\u0275\u0275template(9,P,2,1,"ng-container",23),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(10,"div",34)(11,"div",21),l.\u0275\u0275text(12),l.\u0275\u0275pipe(13,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(14,"div",31,35),l.\u0275\u0275text(16),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(17,"ul",33),l.\u0275\u0275template(18,R,2,1,"ng-container",23),l.\u0275\u0275elementEnd()()()),2&U){const Z=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(4,6,"Payer",Z.lang)," "),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate1(" ",Z.data.fullName," "),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",Z.data.leftRows),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(13,9,"Recipient",Z.lang)," "),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate1(" ",Z.data.corrFullName," "),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",Z.data.rightRows)}}function G(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"li",37)(1,"div",38),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"div",39),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd()()),2&U){const Z=l.\u0275\u0275nextContext().$implicit,oe=l.\u0275\u0275nextContext(3);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(3,2,Z.capture,oe.lang)," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",Z.value," ")}}function ce(U,H){if(1&U&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,G,6,5,"li",36),l.\u0275\u0275elementContainerEnd()),2&U){const Z=H.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Z.value)}}function xe(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"div",29)(1,"ul",33),l.\u0275\u0275template(2,ce,2,1,"ng-container",23),l.\u0275\u0275elementEnd()()),2&U){const Z=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",Z.data.leftRows)}}const we=function(){return["doc_currbuy","doc_currbuy_children","doc_currsell","doc_platpor_conv","doc_curr_agent_factoring","doc_sbp_transferbyqrcode_ul"]};function Ge(U,H){if(1&U&&(l.\u0275\u0275elementStart(0,"div",14),l.\u0275\u0275projection(1),l.\u0275\u0275template(2,X,11,6,"div",15),l.\u0275\u0275template(3,ne,19,12,"div",16),l.\u0275\u0275template(4,xe,3,1,"div",16),l.\u0275\u0275projection(5,1),l.\u0275\u0275elementEnd()),2&U){const Z=l.\u0275\u0275nextContext();l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",Z.isDefaultDocType(Z.data.docType)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!Z.isHide&&Z.isPlatporDocType(Z.data.docType)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!Z.isHide&&l.\u0275\u0275pureFunction0(3,we).includes(Z.data.docType))}}const ct=["*",[["",8,"document-info__refuse-reason"]]],pe=["*",".document-info__refuse-reason"];class Ce{constructor(H,Z,oe){this.translation=H,this.datePipe=Z,this.currencyPipe=oe,this.data={corrFullName:"",description:"",docType:"",fullName:"",leftRows:[],rightRows:[]},this.isHide=!1,this.DocTypes=h.o}ngOnInit(){(0,a.Ul)(this.data.accountNum)&&(this.data.fullName=(0,a.Ul)(this.data.accountNum)),this.data.description||(this.data.description=this.getDescription(this.data))}ngAfterViewInit(){this.makeNameTitlesHeightEqual()}isPlatporDocType(H){return[h.o.DocPlatporCurr,h.o.DocPlatpor,h.o.DocPlatporSBPSalary,h.o.CollectionInstruction,h.o.DocPlatporBp,h.o.DocPlatporCurrComplex,h.o.DocPlatporCurrBp,h.o.TransferRests,h.o.DocPlatporCurrTg,h.o.DocPlatporCurrTgOv].includes(H)}onContentToggle(){this.isHide=!this.isHide}makeNameTitlesHeightEqual(){if(!this.nameTitleLeft&&!this.nameTitleRight)return;let H=this.nameTitleLeft.nativeElement.clientHeight,Z=this.nameTitleRight.nativeElement.clientHeight;H>Z?Z=H:H=Z,this.nameTitleLeft.nativeElement.style.height=`${H}px`,this.nameTitleRight.nativeElement.style.height=`${Z}px`}isDefaultDocType(H){return[h.o.DocPlatpor,h.o.DocPlatporSBPSalary,h.o.DocPlatporCurr,h.o.InqCurr181,h.o.InqConf181,h.o.DocTransitPayDoc,h.o.CollectionInstruction,h.o.DocPlatporCurrComplex,h.o.DocPlatporCurrBp,h.o.DocPlatporBp,h.o.TransferRests,h.o.DocPlatporCurrTg,h.o.DocPlatporCurrTgOv,h.o.DocSbpTransferByQrCode,h.o.DocCurrBuyChildren].includes(H)}getDocInfoHeader(){return[h.o.DocPlatpor,h.o.DocPlatporSBPSalary,h.o.DocPlatporCurr,h.o.DocPlatporCurrBp,h.o.DocPlatporCurrComplex,h.o.TransferRests,h.o.DocSbpTransferByQrCode].includes(this.data.docType)?this.translation.translate("Payment purpose"):this.translation.translate(this.getDocName(this.data.docType))}getDocName(H){switch(H){case"inq_curr_181":return"Currency transactions information";case"doc_platpor_curr_tg":return"Cross-border title";case"doc_platpor_currbuy_tg":return"Cross-border with buy currency title";case"inq_conf_181":return"SPD full";case"doc_transit_pay_doc":return"Transit account order";case"doc_currbuy_children":return"Purchase of currency";default:return"Document"}}getDescription(H){let Z;return H.docNumber&&(Z=`\u2116 ${H.docNumber}`,H.docDate&&(Z+=` \u043e\u0442 ${u.at.test(H.docDate)?H.docDate:d()(H.docDate).format("DD.MM.YYYY")}`),H.amount&&H.currCode&&(Z+=` \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 ${this.currencyPipe.transform(H.amount)} ${H.currCode}`)),Z}static#e=this.\u0275fac=function(Z){return new(Z||Ce)(l.\u0275\u0275directiveInject(e.D7),l.\u0275\u0275directiveInject(m.uU),l.\u0275\u0275directiveInject(x.H))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ce,selectors:[["app-bottom-info-block"]],viewQuery:function(Z,oe){if(1&Z&&(l.\u0275\u0275viewQuery(L,5),l.\u0275\u0275viewQuery(w,5)),2&Z){let Pe;l.\u0275\u0275queryRefresh(Pe=l.\u0275\u0275loadQuery())&&(oe.nameTitleLeft=Pe.first),l.\u0275\u0275queryRefresh(Pe=l.\u0275\u0275loadQuery())&&(oe.nameTitleRight=Pe.first)}},inputs:{data:"data",otherData:"otherData",isHide:"isHide"},ngContentSelectors:pe,decls:2,vars:2,consts:[["class","document-info__bottom-block",3,"click",4,"ngIf"],["class","document-info__bottom-block",4,"ngIf"],[1,"document-info__bottom-block",3,"click"],[1,"document-info__header"],[1,"document-info__top-toggle",3,"hide"],["class","document-info__other",4,"ngIf"],[1,"document-info__other"],["class","document-info__other-item",4,"ngFor","ngForOf"],[1,"document-info__other-item"],[1,"document-info__capture"],[4,"ngIf","ngIfElse"],["asHTML",""],[1,"document-info__value"],[1,"document-info__value",3,"innerHTML"],[1,"document-info__bottom-block"],["class","document-info__bottom-block-header","data-qa","1663155685850",3,"click",4,"ngIf"],["class","document-info__info-block",4,"ngIf"],["data-qa","1663155685850",1,"document-info__bottom-block-header",3,"click"],[1,"document-info__purpose-wrapper"],[1,"document-info__purpose"],["class","document-info__purpose__logo",3,"src",4,"ngIf"],[1,"document-info__bottom-block-capture","document-info__capture"],[1,"document-info__desc"],[4,"ngFor","ngForOf"],["class","document-info__bottom-block-toggle",4,"ngIf"],[1,"document-info__purpose__logo",3,"src"],["class","document-info__purpose",4,"ngIf"],[1,"document-info__bottom-block-toggle"],[3,"hide"],[1,"document-info__info-block"],[1,"document-info__payer"],[1,"document-info__desc","document-info__value"],["nameTitleLeft",""],[1,"document-info__info-list"],[1,"document-info__recipient"],["nameTitleRight",""],["class","document-info__info-item",4,"ngIf"],[1,"document-info__info-item"],[1,"document-info__info-capture","document-info__capture"],[1,"document-info__info-value"]],template:function(Z,oe){1&Z&&(l.\u0275\u0275projectionDef(ct),l.\u0275\u0275template(0,C,7,6,"div",0),l.\u0275\u0275template(1,Ge,6,4,"div",1)),2&Z&&(l.\u0275\u0275property("ngIf",oe.otherData),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!oe.otherData))},dependencies:[m.sg,m.O5,O.V,e.X$],styles:['@charset "UTF-8";.payment__container[_ngcontent-%COMP%]{padding:0 30px}.payment__card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 30px 40px}.document-info[_ngcontent-%COMP%]{margin-top:20px}.document-info__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.document-info__middle-block[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:25px;margin-bottom:30px}.document-info__middle-block-left[_ngcontent-%COMP%]{display:flex;align-items:center}.document-info__big-numbers[_ngcontent-%COMP%]{color:#444;font-size:64px;margin-right:20px}.document-info__account-desc[_ngcontent-%COMP%]{margin-bottom:4px}.document-info__account-name[_ngcontent-%COMP%]{max-width:210px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px}.document-info__capture[_ngcontent-%COMP%]{font-size:16px;color:#88909b}.document-info__value[_ngcontent-%COMP%]{color:#444;font-size:20px;display:flex}.document-info__bottom-block[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:25px}.document-info__purpose[_ngcontent-%COMP%]{padding-bottom:23px;display:flex}.document-info__purpose__logo[_ngcontent-%COMP%]{width:100px;margin-right:20px}.document-info__purpose-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.document-info__refuse-reason[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid #dedede;padding-top:17px}.document-info__bottom-block-capture[_ngcontent-%COMP%]{margin-bottom:8px}.document-info__bottom-block-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.document-info__info-block[_ngcontent-%COMP%]{margin-top:27px;display:flex}.document-info__payer[_ngcontent-%COMP%]{width:50%;padding-right:15px}.document-info__recipient[_ngcontent-%COMP%]{width:50%;padding-left:15px}.document-info__info-list[_ngcontent-%COMP%]{margin-top:25px}.document-info__info-item[_ngcontent-%COMP%]{display:flex;margin-bottom:14px}.document-info__info-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.document-info__info-capture[_ngcontent-%COMP%]{min-width:210px;padding-right:12px}.document-info__info-value[_ngcontent-%COMP%]{font-size:16px;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-sign[_ngcontent-%COMP%]{display:block;margin:30px 0}.document-info__sign-block[_ngcontent-%COMP%]{width:100%;padding-right:30px}.document-info__other-item[_ngcontent-%COMP%]{margin-bottom:20px}.document-info__other-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.document-info__additional-buttons[_ngcontent-%COMP%]{display:flex;gap:15px;margin-top:15px}.document-info__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#003ad2;align-items:center}.document-info__other[_ngcontent-%COMP%]{margin-top:20px}']})}(0,n.gn)([(0,e.SQ)()],Ce.prototype,"lang",void 0)},99921:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>u,c:()=>a});var n=t(36895),e=t(66439),i=t(71060),d=t(98504);const a=(h,l)=>{const m=new e.k,x=new n.uU("ru-RU"),O=L=>{const w=l.find(B=>B.caption.includes(L));return w?w.value:""};if(l)return{description:h.cause,fullName:O("\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430"),corrFullName:O("\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430"),docType:h.docType,leftRows:[{capture:"INN/KIO",value:O("\u0418\u041d\u041d \u043a\u043b\u0438\u0435\u043d\u0442\u0430")},{capture:"KPP",value:O("\u041a\u041f\u041f \u043a\u043b\u0438\u0435\u043d\u0442\u0430")},{capture:"Account",value:m.transform(O("\u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430 \u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f")||"")},{capture:"Bank BIK",value:O("\u0411\u0418\u041a \u0431\u0430\u043d\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430")},{capture:"Bank",value:O("\u0411\u0430\u043d\u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0430")}],rightRows:[{capture:"Account",value:m.transform(O("\u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430")||"")},{capture:"Bank BIK",value:O("\u0411\u0418\u041a \u0431\u0430\u043d\u043a\u0430")},{capture:"Bank",value:O("\u0411\u0430\u043d\u043a \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430")}]};if("doc_currbuy"===h.docType||"doc_currbuy_children"===h.docType)return{description:"doc_currbuy_children"===h.docType?h.necessaryInfo:"",fullName:h.fullname,corrFullName:h.corrFullname,docType:h.docType,leftRows:[{capture:"Write-off Account",value:h.debitAccNumber},{capture:"Deposit Account",value:h.creditAccNumber},{capture:"Rate type",value:h.dealName},{capture:"Max currency rate",value:h.clientRequestRate},{capture:"Additionally",value:h.acceptImmediately}],rightRows:[]};if("doc_currsell"===h.docType)return{description:"",fullName:h.fullname,corrFullName:h.corrFullname,docType:h.docType,leftRows:[{capture:"Write-off Account",value:h.debitAccNumber},{capture:"Deposit Account",value:h.creditAccNumber},{capture:"Rate type",value:h.dealName},{capture:"Max currency rate",value:h.clientRequestRate},{capture:"Additionally",value:h.acceptImmediately}],rightRows:[]};if("doc_platpor_conv"===h.docType)return{description:"",fullName:h.fullname,corrFullName:h.corrFullname,docType:h.docType,leftRows:[{capture:"Rate type",value:h.dealName}],rightRows:[]};if("inq_curr_181"===h.docType||"inq_conf_181"===h.docType)return{docNumber:h.docNumber,docDate:h.docDate,corrFullName:h.corrFullname,fullName:h.fullname,leftRows:[],rightRows:[],description:h.description||h.purpose,docType:h.docType};if("doc_transit_pay_doc"===h.docType)return{amount:h.amount,docNumber:h.docNumber,docDate:h.docDate,currCode:h.currCode,corrFullName:h.corrFullname,fullName:h.fullname,leftRows:[],rightRows:[],description:h.description||h.purpose,docType:h.docType};if("doc_sbp_transferbyqrcode_ul"===h.docType)return{amount:h.amount,docNumber:h.docNumber,docDate:h.docDate,currCode:h.currCode,leftRows:[{capture:"Write-off Account",value:h.accNumber},{capture:"UL Name",value:h.corrFullname},{capture:"corrName",value:h.corrBrandname},{capture:"Corr bank name",value:h.bankName},{capture:"Corr bank inn",value:h.corrInn},{capture:"Corr Acc Recipient",value:h.corrBankCorrAccount},{capture:"Pay amount and symbol",value:h.amount},{capture:"Nds amount",value:h.ndsAmount||h.taxAmount?h.ndsAmount||h.taxAmount:"\u041d\u0414\u0421 \u043d\u0435 \u043e\u0431\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f"},{capture:"Commission amount",value:h.comissionAmount+""},{capture:"All amount",value:h.amountAll},{capture:"Date and time of operation",value:x.transform(h.createStamp,"dd.MM.yyyy HH:mm")},{capture:"SBP operation id",value:h.sbpQrcId}],rightRows:[],description:h.description||h.purpose,docType:h.docType,headerImageSrc:"/assets/images/sbp.svg"};{const L={description:h.description||h.purpose,fullName:h.fullname,corrFullName:h.corrFullname,docType:h.docType,leftRows:[{capture:"INN/KIO",value:h.inn},{capture:"KPP",value:h.kpp},{capture:"Account",value:m.transform(h.accNumber||"")},{capture:"Bank BIK",value:h.bankBik},{capture:"Bank",value:h.bankName},{capture:"Corr Acc",value:h.bankCorrAccount},{capture:"City",value:h.corrPlace},{capture:"Address",value:h.corrAddress}],rightRows:[{capture:"INN/KIO",value:h.corrInn},{capture:"KPP",value:h.corrKpp},{capture:"Account",value:m.transform(h.corrAccNumber||"")},{capture:"Bank BIK",value:h.corrBankBik},{capture:"Bank",value:h.corrBankName},{capture:"Corr Acc",value:h.corrBankCorrAccount},{capture:"SWIFT",value:h.corrBankSwift}]};return h.type&&"collectionInstruction"===h.type&&(L.headerFields=[{capture:"Inkasso agreement num",value:h.accAgreementNum},{capture:"Inkasso ground name",value:h.groundAgreementName},{capture:"Inkasso ground num",value:h.groundAgreementNum}]),{...h.amount?{amount:h.amount}:{},...h.currCode?{currCode:h.currCode}:{},...h.docNumber?{docNumber:h.docNumber}:{},...L}}},u=(h,l)=>{const m=new e.k,x=new n.uU("en-US"),O=new d.H,L=i.s.arrayWrap(h.sourcesOfIncome),w=l.cashSources,B=l?l.place:null,_=l?l.recipient:null,y=_?`${_.lastName} ${_.firstName} ${_.secondName}`.trim():"",$=[{title:"Recipient",type:"h",data:[{head:"Name",data:[h.fullname]},{head:"FIO Recipient",data:[y]},{head:"Write-off Account",data:[m.transform(h.accNumber||"")]},{head:"Received date",data:[x.transform(h.receiveDate,"dd.MM.yyyy")]},{head:"Bank Office",data:[B?`${B.place}, ${B.name}`:""]}]},{title:"Directions",type:"v",data:[{head:"Amount",data:L?L.map(C=>O.transform(C.amount,2,",")+" \u20bd"):[]},{head:"Goal",data:L?L.map(C=>{const T=w.find(j=>j.value===C.symbol);return T?T.caption:""}):[]}]}];if("true"===h.requiredBanknoteSelection&&h.banknoteSelection){const C=i.s.arrayWrap(h.banknoteSelection.entry);$.push({title:"Bills",type:"v",data:[{head:"Denomination",data:C.map(T=>O.transform(T.key,0))},{head:"Notes",data:C.map(T=>T.value.$)},{head:"Amount and symbol",data:C.map(T=>O.transform(parseFloat(T.value.$)*parseFloat(T.key),2,","))}]})}return $}},95447:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>E});var n=t(97582),e=t(36895),i=t(94650),d=t(16611),a=t(59363),u=t(88581),h=t(90995),l=t(46923),m=t(75568),x=t(81876),O=t(1244),L=t(15963),w=t(44509),B=t(98504);function _(R,ne){if(1&R&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&R){const G=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate("\u2116"+G.data.docNumber)}}function y(R,ne){if(1&R&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementContainerEnd()),2&R){const G=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate2(" ",i.\u0275\u0275pipeBind2(2,2,"By",G.lang)," ",G.data.docDate," ")}}function $(R,ne){1&R&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&R&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate("-"))}function C(R,ne){if(1&R&&(i.\u0275\u0275elementStart(0,"div",19)(1,"div",20),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",21)(5,"span",22),i.\u0275\u0275text(6),i.\u0275\u0275elementEnd()()()),2&R){const G=i.\u0275\u0275nextContext(3);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(3,2,"doc_payment_request_outgoing"===G.data.docType?"To account":"From account",G.lang)," : "),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate(G.data.accountName)}}function T(R,ne){if(1&R&&(i.\u0275\u0275elementStart(0,"div",16)(1,"div",17),i.\u0275\u0275template(2,$,2,1,"ng-container",5),i.\u0275\u0275text(3),i.\u0275\u0275pipe(4,"appCurrency"),i.\u0275\u0275pipe(5,"currencySymbol"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(6,C,7,5,"div",18),i.\u0275\u0275elementEnd()),2&R){const G=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf","doc_payment_request_outgoing"!==G.data.docType&&G.data.accountNum),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate2(" ",i.\u0275\u0275pipeBind1(4,4,G.data.amount)," ",i.\u0275\u0275pipeBind1(5,6,G.data.currency)," "),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",G.data.accountNum)}}function j(R,ne){if(1&R){const G=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"app-document-sign-with-wrapper",23),i.\u0275\u0275listener("result",function(xe){i.\u0275\u0275restoreView(G);const we=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(we.docSigned(xe))}),i.\u0275\u0275elementEnd()}if(2&R){const G=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("certificates",G.signParams.certificates)("cross",G.data.cross)("docId",G.signParams.docId)("docModule",G.signParams.docModule)("docType",G.signParams.docType)("initialSignStatus",G.data.signStatus)("successCustomMessage",G.data.successMessage)("successCustomTitle",G.data.successTitle)("isSentIcon",!G.data.hideIcon)("resultSignTitleColor",G.data.resultSignTitleColor)("isNavigationAfterDone",G.isNavigationAfterDone)}}function I(R,ne){if(1&R&&(i.\u0275\u0275elementStart(0,"div",27)(1,"div",28),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",29),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd()()),2&R){const G=i.\u0275\u0275nextContext(3);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(3,2,"Refuse cause",G.lang)," "),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",G.data.declineInfo," ")}}function F(R,ne){if(1&R&&i.\u0275\u0275element(0,"app-metib-info-block",30),2&R){const G=i.\u0275\u0275nextContext(3);i.\u0275\u0275property("data",G.data.bottomBlockInfo)}}function z(R,ne){if(1&R&&(i.\u0275\u0275elementStart(0,"app-bottom-info-block",24),i.\u0275\u0275template(1,I,6,5,"div",25),i.\u0275\u0275template(2,F,1,1,"app-metib-info-block",26),i.\u0275\u0275elementEnd()),2&R){const G=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("data",G.bottomBlockData)("isHide",!0)("otherData",G.data.bottomInfoBlockOtherData),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",G.data.declineInfo),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",G.data.bottomBlockInfo)}}function X(R,ne){if(1&R){const G=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",31)(1,"app-button",32),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(G);const xe=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(xe.navigate())}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"app-button",33),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(G);const xe=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(xe.goBack(xe.data.docType))}),i.\u0275\u0275elementEnd()()}if(2&R){const G=i.\u0275\u0275nextContext(2);let ce;i.\u0275\u0275advance(1),i.\u0275\u0275property("disabled",!G.isNavigationButtonAvailable)("text",null!==(ce=G.data.additionalButtonRedirectText)&&void 0!==ce?ce:"Navigate")}}function p(R,ne){1&R&&i.\u0275\u0275element(0,"app-loader")}function P(R,ne){if(1&R){const G=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"div",4),i.\u0275\u0275text(3),i.\u0275\u0275pipe(4,"translate"),i.\u0275\u0275template(5,_,2,1,"ng-container",5),i.\u0275\u0275template(6,y,3,5,"ng-container",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(7,"div",6)(8,"div",7),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(G);const xe=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(xe.goBack(xe.data.docType))}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(9,"div",8)(10,"div",9),i.\u0275\u0275template(11,T,7,8,"div",10),i.\u0275\u0275template(12,j,1,11,"app-document-sign-with-wrapper",11),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",12)(14,"app-button-actions",13),i.\u0275\u0275listener("buttonPending",function(xe){i.\u0275\u0275restoreView(G);const we=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(we.pending=xe)}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(15,z,3,5,"app-bottom-info-block",14),i.\u0275\u0275template(16,X,3,2,"div",15),i.\u0275\u0275template(17,p,1,0,"app-loader",5),i.\u0275\u0275elementEnd()}if(2&R){const G=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(4,9,G.documentTitle,G.lang)," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",G.data.docNumber&&!G.data.documentTitle&&"doc_sbp_transferbyqrcode_ul"!==G.data.docType),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",G.data.docDate&&!G.data.documentTitle&&"doc_sbp_transferbyqrcode_ul"!==G.data.docType),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngIf",G.data.amount),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",G.signParams),i.\u0275\u0275advance(2),i.\u0275\u0275property("buttons",G.data.buttons),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",G.showBottomInfoBlock),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",G.showAdditionalButtons),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",G.pending)}}class E{constructor(ne,G){this.datePipe=ne,this.documentSignService=G,this.isNavigationAfterDone=!0,this.showAdditionalButtons=!1,this.fullDocSignEvent=new i.EventEmitter,this.docTypesWithHiddenInfoBlock=["request_accept_no_accept","request_advance_accept","accept_edit","doc_interbnk_currency_transfer","accept_cancellation","doc_supplementary_agreement","service_transfer_tg"]}get documentTitle(){if(this.data.documentTitle)return this.data.documentTitle;switch(this.signParams&&this.signParams.docType){case"request_paycontrol_on":return"PayControl certificate issue";case"cert_renew_paycontrol":return"Certificate reissue PayControl";case"request_paycontrol_off":return"Disable PayControl certificate";case"request_accept_no_accept":return"Application for acceptance/refusal of acceptance";case"request_advance_accept":return"Order for advance acceptance";case"accept_edit":return"Application for a change in advance of this acceptance";case"accept_cancellation":return"Application for annulment";case"doc_supplementary_agreement":return"Supplementary agreement";case"cash_placement":return"Application for placing money in deposit";case"irreducible_balance":return"Application for placing money in minimum balance";case"request_receive_cash":return"Cash order";case"inq_curr_181":return"Currency transactions information";case"service_transfer_tg":return"Connect cross-border title";case"doc_platpor_curr_tg":return"Cross-border payment";case"inq_conf_181":return"SPD full";case"doc_transit_pay_doc":return"Transit account order";case"doc_interbnk_currency_transfer":return"Interbank currency transfer";case"transfer_rests":return"Transfer of balances";case"doc_sbp_transferbyqrcode_ul":return"Confirm QR-payment";default:return["UL","NALOG","TAMOZH"].indexOf(this.signParams.corrType)>-1?"Payment":"Payment to counterparty"}}get bottomBlockData(){return this.data}get showBottomInfoBlock(){return!this.hideInfoBlock&&!this.docTypesWithHiddenInfoBlock.includes(this.signParams.docType)&&!a.Dk.includes(this.signParams.docType)}get isNavigationButtonAvailable(){return!!this.data.additionalButtonRedirectUrl}ngOnInit(){try{this.data.docDate=this.datePipe.transform(this.data.docDate,"dd.MM.yyyy"),this.bottomInfoBlockData={corrFullName:this.data.corrFullName,description:this.data.description,fullName:this.data.fullName,docDate:this.data.docDate,docNumber:this.data.docNumber,accountNum:this.data.accountNum,docType:this.data.docType,leftRows:this.data.leftRows,rightRows:this.data.rightRows,headerFields:this.data.headerFields}}catch{}}goBack(ne){this.documentSignService.goBackNavigation({docType:ne})}docSigned(ne){!0===ne.sign&&2==ne.signStatus&&this.fullDocSignEvent.emit()}navigate(){window.open(this.data.additionalButtonRedirectUrl,"_self")}static#e=this.\u0275fac=function(G){return new(G||E)(i.\u0275\u0275directiveInject(e.uU),i.\u0275\u0275directiveInject(u.V))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:E,selectors:[["app-document-info"]],inputs:{data:"data",signParams:"signParams",hideInfoBlock:"hideInfoBlock",isNavigationAfterDone:"isNavigationAfterDone",showAdditionalButtons:"showAdditionalButtons"},outputs:{fullDocSignEvent:"fullDocSignEvent"},features:[i.\u0275\u0275ProvidersFeature([e.uU])],decls:2,vars:1,consts:[["data-qa","1657877427226",1,"document-info","card"],["class","document-info-wrap","data-qa","1657877433356",4,"ngIf"],["data-qa","1657877433356",1,"document-info-wrap"],[1,"document-info__top-block"],[1,"document-info__title","section-title"],[4,"ngIf"],[1,"cross-wrap"],["data-qa","1657877447458",1,"cross",3,"click"],[1,"document-info__middle-block"],[1,"document-info__sign-block"],["class","document-info__middle-block-left",4,"ngIf"],["class","document-sign","data-qa","1657877469388","documentSignMaxWidth","570px",3,"certificates","cross","docId","docModule","docType","initialSignStatus","successCustomMessage","successCustomTitle","isSentIcon","resultSignTitleColor","isNavigationAfterDone","result",4,"ngIf"],[1,"document-info__middle-block-right"],["data-qa","1657877492155",3,"buttons","buttonPending"],["data-qa","1657877498908",3,"data","isHide","otherData",4,"ngIf"],["class","document-info__additional-buttons",4,"ngIf"],[1,"document-info__middle-block-left"],[1,"document-info__big-numbers"],["class","document-info__account",4,"ngIf"],[1,"document-info__account"],[1,"document-info__account-desc","document-info__capture"],[1,"document-info__value"],[1,"document-info__account-name"],["data-qa","1657877469388","documentSignMaxWidth","570px",1,"document-sign",3,"certificates","cross","docId","docModule","docType","initialSignStatus","successCustomMessage","successCustomTitle","isSentIcon","resultSignTitleColor","isNavigationAfterDone","result"],["data-qa","1657877498908",3,"data","isHide","otherData"],["class","document-info__refuse-reason",4,"ngIf"],["data-qa","1657877506797",3,"data",4,"ngIf"],[1,"document-info__refuse-reason"],[1,"document-info__bottom-block-capture","document-info__capture"],[1,"document-info__desc",2,"color","red"],["data-qa","1657877506797",3,"data"],[1,"document-info__additional-buttons"],[3,"disabled","text","click"],["text","Close","type","bordered",3,"click"]],template:function(G,ce){1&G&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,P,18,12,"div",1),i.\u0275\u0275elementEnd()),2&G&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ce.data))},dependencies:[e.O5,h.r,l.n,m.R,x.v,O.m,L.t,d.X$,w.G,B.H],styles:['@charset "UTF-8";.payment__container[_ngcontent-%COMP%]{padding:0 30px}.payment__card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 30px 40px}.document-info[_ngcontent-%COMP%]{margin-top:20px}.document-info__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.document-info__middle-block[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:25px;margin-bottom:30px}.document-info__middle-block-left[_ngcontent-%COMP%]{display:flex;align-items:center}.document-info__big-numbers[_ngcontent-%COMP%]{color:#444;font-size:64px;margin-right:20px}.document-info__account-desc[_ngcontent-%COMP%]{margin-bottom:4px}.document-info__account-name[_ngcontent-%COMP%]{max-width:210px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px}.document-info__capture[_ngcontent-%COMP%]{font-size:16px;color:#88909b}.document-info__value[_ngcontent-%COMP%]{color:#444;font-size:20px;display:flex}.document-info__bottom-block[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:25px}.document-info__purpose[_ngcontent-%COMP%]{padding-bottom:23px;display:flex}.document-info__purpose__logo[_ngcontent-%COMP%]{width:100px;margin-right:20px}.document-info__purpose-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.document-info__refuse-reason[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid #dedede;padding-top:17px}.document-info__bottom-block-capture[_ngcontent-%COMP%]{margin-bottom:8px}.document-info__bottom-block-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.document-info__info-block[_ngcontent-%COMP%]{margin-top:27px;display:flex}.document-info__payer[_ngcontent-%COMP%]{width:50%;padding-right:15px}.document-info__recipient[_ngcontent-%COMP%]{width:50%;padding-left:15px}.document-info__info-list[_ngcontent-%COMP%]{margin-top:25px}.document-info__info-item[_ngcontent-%COMP%]{display:flex;margin-bottom:14px}.document-info__info-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.document-info__info-capture[_ngcontent-%COMP%]{min-width:210px;padding-right:12px}.document-info__info-value[_ngcontent-%COMP%]{font-size:16px;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-sign[_ngcontent-%COMP%]{display:block;margin:30px 0}.document-info__sign-block[_ngcontent-%COMP%]{width:100%;padding-right:30px}.document-info__other-item[_ngcontent-%COMP%]{margin-bottom:20px}.document-info__other-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.document-info__additional-buttons[_ngcontent-%COMP%]{display:flex;gap:15px;margin-top:15px}']})}(0,n.gn)([(0,d.SQ)()],E.prototype,"lang",void 0)},26871:(Ee,Q,t)=>{"use strict";t.d(Q,{O:()=>L});var n=t(97582),e=t(16611),i=t(63900),d=t(94650),a=t(40929),u=t(38101),h=t(9149),l=t(36895),m=t(90995),x=t(75568);function O(w,B){1&w&&d.\u0275\u0275element(0,"app-loader")}class L{constructor(B,_,y,$){this.documentService=B,this.modalService=_,this.translation=y,this.toastCustomService=$,this.load=!1}ngOnInit(){this.operation.bodyInfo=this.operation.bodyInfo||this.translation.translate("Select print format")}printPdf(){this.load=!0,this.operation.fileName?(window.open(`/uploads/typical-forms/${this.operation.fileName}.pdf`),this.modalClose()):this.operation.saveToFile?this.documentService.isNewSavingTypeExist(this.operation.docIds).pipe((0,i.w)(B=>this.documentService.getFile(B?`print/pdf?doc_ids=${this.operation.docIds}`:`metinv/mail2client/save/swift?doc_ids=${this.operation.docIds}`))).subscribe(()=>{this.modalClose()}):this.documentService.getFile(`print/pdf?doc_ids=${this.operation.docIds}${'\u043f\u0430\u043e \u043a\u043e\u043c\u0431\u0430\u043d\u043a "\u0445\u0438\u043c\u0438\u043a"'===this.operation?.unit?.displayName.toLowerCase()?"&print_type=bp_jasper":""}`).subscribe(()=>{this.modalClose()})}printDocx(){this.load=!0,this.operation.fileName?(window.open(`/uploads/typical-forms/${this.operation.fileName}`),this.modalClose()):this.operation.saveToFile?this.documentService.getFile(`print/docx?doc_ids=${this.operation.docIds}${'\u043f\u0430\u043e \u043a\u043e\u043c\u0431\u0430\u043d\u043a "\u0445\u0438\u043c\u0438\u043a"'===this.operation?.unit?.displayName.toLowerCase()?"&print_type=bp_jasper":""}`,!0,`${this.operation.filename||"file"}.docx`).subscribe(()=>{this.modalClose()}):this.documentService.getFile(`print/docx?doc_ids=${this.operation.docIds}${'\u043f\u0430\u043e \u043a\u043e\u043c\u0431\u0430\u043d\u043a "\u0445\u0438\u043c\u0438\u043a"'===this.operation?.unit?.displayName.toLowerCase()?"&print_type=bp_jasper":""}`,!0,`${this.operation.filename||"file"}.docx`).subscribe({next:()=>{this.modalClose()},error:B=>{this.load=!1,500===B.status&&this.toastCustomService.show(this.translation.translate("Format not available, please use PDF format"),"error")}})}modalClose(){this.load=!1,this.modalService.close()}static#e=this.\u0275fac=function(_){return new(_||L)(d.\u0275\u0275directiveInject(a.Z),d.\u0275\u0275directiveInject(u.Z),d.\u0275\u0275directiveInject(e.D7),d.\u0275\u0275directiveInject(h.j))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:L,selectors:[["app-document-print-modal"]],decls:9,vars:8,consts:[["data-qa","1657877379915",1,"print-modal"],[1,"print-modal__header-value"],[1,"print-modal__wrapper"],[1,"print-modal__button"],["data-qa","1657877385884",3,"type","text","click"],["data-qa","1657877389145",3,"type","text","click"],[4,"ngIf"]],template:function(_,y){1&_&&(d.\u0275\u0275elementStart(0,"div",0)(1,"div",1),d.\u0275\u0275text(2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"div",2)(4,"div",3)(5,"app-button",4),d.\u0275\u0275listener("click",function(){return y.printPdf()}),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(6,"div",3)(7,"app-button",5),d.\u0275\u0275listener("click",function(){return y.printDocx()}),d.\u0275\u0275elementEnd()()()(),d.\u0275\u0275template(8,O,1,0,"app-loader",6)),2&_&&(d.\u0275\u0275classProp("load",y.load),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1(" ",y.operation.bodyInfo," "),d.\u0275\u0275advance(3),d.\u0275\u0275propertyInterpolate("text","PDF"),d.\u0275\u0275property("type","small header"),d.\u0275\u0275advance(2),d.\u0275\u0275propertyInterpolate("text","WORD"),d.\u0275\u0275property("type","small header"),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",y.load))},dependencies:[l.O5,m.r,x.R],styles:['@charset "UTF-8";.print-modal[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding:24px 32px}.print-modal__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:22px;color:#000}.print-modal__wrapper[_ngcontent-%COMP%]{display:flex;margin-top:60px;column-gap:16px}']})}(0,n.gn)([(0,e.SQ)()],L.prototype,"lang",void 0)},36229:(Ee,Q,t)=>{"use strict";t.d(Q,{M:()=>d});var n=t(94650),e=t(36895);function i(a,u){if(1&a&&(n.\u0275\u0275elementStart(0,"li",2)(1,"div",3),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div",4),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd()()),2&a){const h=u.$implicit;n.\u0275\u0275attribute("data-qa","1657877223384"+u.index),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",h.caption," "),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",h.state," ")}}let d=(()=>{class a{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["app-document-show-sings-modal"]],inputs:{sings:"sings"},decls:2,vars:1,consts:[["data-qa","1657877215021",1,"signs"],["class","signs__item",4,"ngFor","ngForOf"],[1,"signs__item"],[1,"sings__desc"],[1,"sings__value"]],template:function(l,m){1&l&&(n.\u0275\u0275elementStart(0,"ul",0),n.\u0275\u0275template(1,i,5,3,"li",1),n.\u0275\u0275elementEnd()),2&l&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",m.sings))},dependencies:[e.sg],styles:['@charset "UTF-8";.signs__item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:20px;color:#444;border-bottom:1px solid #dedede;padding:28px 0 30px}.sings__desc[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:80%}']})}return a})()},57677:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>m});var n=t(97582),e=t(16611),i=t(69109),d=t(13571),a=t(94650),u=t(38101),h=t(9149);function l(x,O){if(1&x&&(a.\u0275\u0275elementStart(0,"div",7),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&x){const L=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind2(2,1,"Paycontrol delete sign message",L.lang)," ")}}class m{constructor(O,L){this.modalService=O,this.toastService=L,this.loader=!0,this.isModalDesign=!1,this.isMail=!1,this.mappingFields={actions:"actions",amount:"amount",counterpartName:"corrFullname",currency:"accCurr",details:"description",docDate:"docDate",ownerAccountNumber:"accId",status:"statusCaption",cancelDocName:"cancelDocName",cancelDocNumber:"cancelDocNumber",createStamp:"createStamp",cause:"cause",docNumber:"docNumber"}}get disabledBtn(){return!this.signComponent||this.signComponent.form.invalid||this.signComponent.innerLoader}get showBtn(){return this.signComponent&&this.signComponent.currentCertificate&&!this.deleteSignResult&&(this.signComponent.currentCertificate.cryptoTypeCode===i.d.Rutoken&&this.signComponent.form.valid||"SMS-\u043a\u043e\u0434"===this.signComponent.currentCertificate.issuerName||this.isPayControl||this.signComponent.currentCertificate.cryptoTypeCode===i.d.InputCode)}get isPayControl(){return this.signComponent.currentCertificate.cryptoTypeCode===i.d.Paycontrol}setLoader(O){this.loader=O}setResult(O){if(!O||O.length>1)return this.close();this.deleteSignResult=O[0].deleteSign;const L=Object.entries(this.mappingFields);for(const[w,B]of L)this.operation[w]=O[0].document[B];this.updateActions&&!this.isPayControl&&this.updateActions(),this.changeDetectorRef&&this.changeDetectorRef.detectChanges(),this.deletionDone&&this.deletionDone(),this.isPayControl||(this.close(),this.toastService.show("Signature deleted!","success"))}deleteSign(){this.signComponent.signDocument()}close(){this.updateActions&&this.isPayControl&&this.updateActions(),this.modalService.close()}static#e=this.\u0275fac=function(L){return new(L||m)(a.\u0275\u0275directiveInject(u.Z),a.\u0275\u0275directiveInject(h.j))};static#t=this.\u0275cmp=a.\u0275\u0275defineComponent({type:m,selectors:[["app-document-sign-delete-modal"]],viewQuery:function(L,w){if(1&L&&a.\u0275\u0275viewQuery(d.A,7),2&L){let B;a.\u0275\u0275queryRefresh(B=a.\u0275\u0275loadQuery())&&(w.signComponent=B.first)}},inputs:{operation:"operation",isModalDesign:"isModalDesign",isMail:"isMail",deletionDone:"deletionDone"},decls:8,vars:19,consts:[["data-qa","1657877158232",1,"document-sign-delete"],[1,"document-sign-delete__loader-wrapper"],["data-qa","1657877164355",1,"document-sign-delete__form",3,"customLoader","isModalDesign","deleteSign","docId","docModule","docType","isMail","showFieldsDescription","loader","resultEvent"],["class","document-sign-delete__message",4,"ngIf"],[1,"document-sign-delete__button"],["data-qa","1657877171599",3,"disabled","text","click"],[3,"hidden"],[1,"document-sign-delete__message"]],template:function(L,w){1&L&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"app-document-sign",2),a.\u0275\u0275listener("loader",function(_){return w.setLoader(_)})("resultEvent",function(_){return w.setResult(_)}),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(3,l,3,4,"div",3),a.\u0275\u0275elementStart(4,"div",4)(5,"app-button",5),a.\u0275\u0275listener("click",function(){return w.deleteSign()}),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275element(7,"app-loader",6),a.\u0275\u0275elementEnd()()),2&L&&(a.\u0275\u0275advance(1),a.\u0275\u0275classProp("document-sign-delete__loader-wrapper--no-click",w.deleteSignResult),a.\u0275\u0275advance(1),a.\u0275\u0275property("customLoader",!0)("isModalDesign",w.isModalDesign)("deleteSign",!0)("docId",w.operation.docIds)("docModule",w.operation.docModule)("docType",w.operation.docType)("isMail",w.isMail)("showFieldsDescription",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",w.deleteSignResult&&w.isPayControl),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("document-sign-delete__button--hidden",!w.showBtn),a.\u0275\u0275advance(1),a.\u0275\u0275propertyInterpolate("text",a.\u0275\u0275pipeBind2(6,16,"Delete",w.lang)),a.\u0275\u0275property("disabled",w.disabledBtn),a.\u0275\u0275advance(2),a.\u0275\u0275property("hidden",!w.loader))},styles:['@charset "UTF-8";.document-sign-delete[_ngcontent-%COMP%]{padding:30px}.document-sign-delete.load[_ngcontent-%COMP%]{opacity:.4}.document-sign-delete__title[_ngcontent-%COMP%]{font-size:33px;font-weight:600;color:#284681;border-bottom:1px solid #dedede;padding-bottom:32px}.document-sign-delete__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}@media only screen and (min-width: 768px){.document-sign-delete__header-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}}.document-sign-delete__buttons[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-wrap:wrap;gap:16px;margin-top:20px}.document-sign-delete__wrapper[_ngcontent-%COMP%]{display:flex}.document-sign-delete__button[_ngcontent-%COMP%]{padding-top:20px}.document-sign-delete__button[_ngcontent-%COMP%]:first-child{margin-right:20px}.document-sign-delete__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.document-sign-delete__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.document-sign-delete__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.document-sign-delete__button-label__input[_ngcontent-%COMP%]{display:none}.document-sign-delete__button.view[_ngcontent-%COMP%]{margin-right:20px}.document-sign-delete__button.load[_ngcontent-%COMP%]{width:170px}.document-sign-delete__button.disabled[_ngcontent-%COMP%], .document-sign-delete__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.document-sign-delete__form[_ngcontent-%COMP%]{margin-top:15px;display:block}.document-sign-delete__loader-wrapper[_ngcontent-%COMP%]{position:relative}.document-sign-delete__loader-wrapper--no-click[_ngcontent-%COMP%]{pointer-events:none}.document-sign-delete__button[_ngcontent-%COMP%]{padding:0;margin-top:15px;display:flex}.document-sign-delete__button--hidden[_ngcontent-%COMP%]{display:none}.document-sign-delete__message[_ngcontent-%COMP%]{color:#444;font-size:18px;font-family:Source Sans Pro;margin:10px 0;outline:none!important}.document-sign-delete__header-value[_ngcontent-%COMP%]{font-weight:600}']})}(0,n.gn)([(0,e.SQ)()],m.prototype,"lang",void 0)},81876:(Ee,Q,t)=>{"use strict";t.d(Q,{v:()=>Ge});var n=t(97582),e=t(94650),i=t(16611),d=t(77579),a=t(69109),u=t(13571),h=t(88581),l=t(9149),m=t(44180),x=t(36895),O=t(90995),L=t(11260),w=t(75568);function B(ct,pe){if(1&ct&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("document-sign__message--new",Ce.isNewDesign),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,Ce.message,Ce.lang))}}function _(ct,pe){if(1&ct&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("document-sign__message--new",Ce.isNewDesign),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,Ce.customMessage,Ce.lang))}}function y(ct,pe){if(1&ct&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&ct){const Ce=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u043e\u0434 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 ",Ce.countdownTimeFormatted,"")}}function $(ct,pe){if(1&ct&&(e.\u0275\u0275elementStart(0,"div",18),e.\u0275\u0275template(1,y,2,1,"span",1),e.\u0275\u0275elementEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Ce.countdownTimeFormatted)}}function C(ct,pe){if(1&ct){const Ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",19),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(Ce);const H=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(H.sign())}),e.\u0275\u0275elementEnd()}if(2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",Ce.disabledBtn)("type",Ce.isModalDesign?"small header":"small")}}function T(ct,pe){if(1&ct){const Ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",20),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(Ce);const H=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(H.resendSmsCode())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",Ce.isResendSmsCodeButtonDisabled)("text",e.\u0275\u0275pipeBind2(1,2,"Request code",Ce.lang))}}function j(ct,pe){if(1&ct){const Ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",21),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Ce);const H=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(H.refuse())}),e.\u0275\u0275elementEnd()}}function I(ct,pe){if(1&ct&&e.\u0275\u0275element(0,"app-svg-icon",22),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",Ce.titleIconName)}}function F(ct,pe){if(1&ct&&(e.\u0275\u0275elementStart(0,"div",23),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,Ce.successCustomMessage,Ce.lang)," ")}}function z(ct,pe){if(1&ct&&(e.\u0275\u0275elementStart(0,"div",23),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("error",3===Ce.resultStatus),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,Ce.messageForSignStatus+(Ce.beginningOfMessageForSignStatus?"":Ce.resultStatus),Ce.lang)," ")}}function X(ct,pe){if(1&ct&&(e.\u0275\u0275elementStart(0,"div",23),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"span",24),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"titlecase"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,2,"See status link",Ce.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1('"',e.\u0275\u0275pipeBind1(5,5,e.\u0275\u0275pipeBind2(6,7,"Requests",Ce.lang)),'"')}}function p(ct,pe){if(1&ct){const Ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",26),e.\u0275\u0275listener("click",function(){const Z=e.\u0275\u0275restoreView(Ce).$implicit;return e.\u0275\u0275resetView(Z.action())}),e.\u0275\u0275elementEnd()}if(2&ct){const U=pe.index;e.\u0275\u0275property("text",pe.$implicit.title),e.\u0275\u0275attribute("data-qa","1659636510362"+U)}}function P(ct,pe){if(1&ct&&(e.\u0275\u0275elementStart(0,"div",4),e.\u0275\u0275template(1,p,1,2,"app-button",25),e.\u0275\u0275elementEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Ce.signButtons)}}function E(ct,pe){1&ct&&e.\u0275\u0275elementContainer(0)}function R(ct,pe){if(1&ct&&(e.\u0275\u0275elementStart(0,"div")(1,"div",23),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&ct){const Ce=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,1,"Partially signed description",Ce.lang)," ")}}function ne(ct,pe){if(1&ct&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,E,1,0,"ng-container",27),e.\u0275\u0275template(2,R,4,4,"div",1),e.\u0275\u0275elementContainerEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Ce.partSignTemplate),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Ce.partSignTemplate)}}function G(ct,pe){1&ct&&e.\u0275\u0275elementContainer(0)}function ce(ct,pe){if(1&ct&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,G,1,0,"ng-container",27),e.\u0275\u0275elementContainerEnd()),2&ct){const Ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Ce.successTemplate)}}const xe=function(ct){return{color:ct}},we=function(){return[2,3]};class Ge{constructor(pe,Ce,U,H,Z,oe){this.translation=pe,this.documentSignService=Ce,this.toast=U,this.router=H,this.route=Z,this.changeDetectorRef=oe,this.documentsForSign=[],this.docIds=[],this.autoAcceptAllTypesOfSign=!0,this.isNeedMessage=!0,this.isNewDesign=!1,this.isModalDesign=!1,this.descriptionHeader="",this.isMail=!1,this.isCreatedMessage=!0,this.noDefaultMessage=!1,this.isNeedBankOpeningHoursCheck=!1,this.isSentIcon=!0,this.titleIconName="clock",this.resultSignTitleColor="",this.isNavigationAfterDone=!0,this.useMetibComponents=!1,this.result=new e.EventEmitter,this.actionDoneTitle=new e.EventEmitter,this.isResendSmsCodeButtonDisabled=!1,this.docNames={doc_platpor:"Rur payment",doc_platpor_curr:"Rur payment",request_cancel:"Document recall application",mail2bank:"Letter",request_kontur_focus_on:"Application for connection",request_kontur_focus_off:"Application for disable",direct1c_connect_request:"Application for connection",direct1c_disconnect_request:"Application for disable",deposit:"Application for opening deposit",doc_payment_request_outgoing:"New payment request",doc_transit_pay_doc:"Order",request_paycontrol_on:"Application",cert_renew_paycontrol:"Application",request_paycontrol_off:"Application",dealpass_contr_181:"",dealpass_cred_181:"",inq_curr_181:"",inq_conf_181:"",dealpass_renew_181:"",dealpass_close_181:"",inq_statement_181:""},this.signButtons=[],this.SECONDS_TO_RESEND_DEFAULT=60,this.secondsToResend=this.SECONDS_TO_RESEND_DEFAULT,this.destroyed$=new d.x,this._isDocHasFullSign=!1}set docId(pe){pe&&(this.docIds=[pe])}get showBtn(){return this.signComponent&&this.signComponent.currentCertificate&&Boolean(this.signComponent.currentCertificate.cryptoTypeCode)}get showSignPaycontrolBtn(){return this.signComponent&&!this.signComponent.qrCode&&this.signComponent.currentCertificate&&this.signComponent.currentCertificate.cryptoTypeCode===a.d.Paycontrol}get showRefusePaycontrolBtn(){return this.signComponent&&this.signComponent.currentCertificate&&this.signComponent.currentCertificate.cryptoTypeCode===a.d.Paycontrol}get disabledBtn(){return!this.signComponent||this.signComponent.form.invalid||this.signComponent.innerLoader}get messageForSignStatus(){return(this.beginningOfMessageForSignStatus||1===this.docIds.length||1===this.resultStatus?"":"Message for multiple signature status")+(this.beginningOfMessageForSignStatus?"":" ")}get successTitle(){if(1===this.resultStatus)return this.translation.translate("Partially signed");if(this.successCustomTitle)return this.successCustomTitle;if(this.docIds.length>1)return this.translation.translate("Multiple document sent")+"!";switch(this.docType){case"mail2bank":return this.translation.translate("Sign and sent")+"!";case"request_paycontrol_on":return this.translation.translate("Application for issue sent")+"!";case"cert_renew_paycontrol":return this.translation.translate("Certificate issuance application sent")+"!";case"request_paycontrol_off":return this.translation.translate("Certificate disconnection request sent")+"!";default:return this.translation.translate("Sent to the Bank")}}get isCertsAvailable(){return!!this.signComponent.certificates.length}get noCertificates(){return this.translation.translate("You do not have any confirmation methods by which it is possible to sign this document. Contact the Bank or try to confirm the document later")}get isDocHasFullSign(){return this._isDocHasFullSign}set initialSignStatus(pe){this._isDocHasFullSign=2==pe,this._isDocHasFullSign&&(this.resultStatus=2)}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}ngOnInit(){this.docName=this.translation.translate(this.docNames[this.docType]);let pe=this.translation.translate("Before sending, select the document confirmation method");switch(this.docType){case"request_cancel":case"request_kontur_focus_on":case"request_kontur_focus_off":case"direct1c_connect_request":case"direct1c_disconnect_request":case"accept_cancellation":case"request_accept_no_accept":case"request_advance_accept":case"accept_edit":pe=this.translation.translate("Before sending, select the application confirmation method");break;case"mail2bank":pe=this.translation.translate("Before sending, select the mail confirmation method")+":";break;case"deposit":pe=this.translation.translate("Sign an application to open a deposit")+"! "+this.translation.translate("Select confirmation method")+":";break;case"precheck_conversion":if(this.document){const Ce="RUR"===this.document.creditCurrCodeIso?"sale":"buying";this.signButtons=[{title:"Change application",action:()=>{this.router.navigate([`/currency-exchange/precheck/${Ce}`],{queryParams:{docId:this.docIds[0],docType:this.docType,docModule:this.docModule||"ibankul_curr"}}).then()}}]}}this.message=1===this.docIds.length?`${pe}`:`${this.translation.translate("Before sending, select confirmation method")}`}setMessage(pe){this.isCreatedMessage=!0,this.message=pe}setResult(pe){if((pe.errorText||pe.error)&&pe.signed)this.resultStatus=3,this.signButtons=[],"precheck_conversion"===pe.docType&&(this.cross||(this.cross=this.documentSignService.getPathData()),this.cross&&(this.signButtons=[{title:"Go to history applications",action:()=>{this.router.navigate([this.cross.href],{queryParams:this.cross.params}).then()}}]));else if(1===pe.length&&"sbp_qr_cash_register"!==this.docType&&"sbp_trade_service_enterprise"!==this.docType){this.resultStatus=Math.abs(pe[0].signStatus),this.cross||(this.cross=this.documentSignService.getPathData());const Ce=pe[0].document;Ce&&"precheck_conversion"===Ce.docType&&(this.cross=this.cross?{href:this.cross.href,params:{precheckId:Ce.id}}:{href:"/currency-exchange/precheck/history",params:{precheckId:Ce.id}}),this.isNavigationAfterDone?this.getDoneNavigation(pe).then(()=>{1===pe[0].signStatus&&this.toast.show(this.translation.translate("The document has been successfully transferred to the partially signed status"),"success"),2===pe[0].signStatus&&this.toast.show(this.translation.translate("The document has been successfully transferred to the signed status"),"success"),this.result.emit(pe[0]),this.actionDoneTitle.emit(this.translation.translate("The document has been successfully transferred to the signed status"))}):(1===pe[0].signStatus&&this.toast.show(this.translation.translate("The document has been successfully transferred to the partially signed status"),"success"),2===pe[0].signStatus&&this.toast.show(this.translation.translate("The document has been successfully transferred to the signed status"),"success"),this.result.emit(pe[0]),this.actionDoneTitle.emit(this.translation.translate("The document has been successfully transferred to the signed status")))}else this.resultStatus=2,pe.forEach(U=>{if(this.resultStatus=U.signStatus,2!==U.signStatus&&1!==U.signStatus){const H=`${this.translation.translate("Document")} ${U.document.docNumber};\n            ${this.translation.translate("By")} ${U.document.docDate} ${this.translation.translate("Package sign document error")}`;this.toast.show(H,"error")}if(1===U.signStatus){const H=`${this.translation.translate("The document has been successfully transferred to the partially signed status")}`;this.toast.show(H,"success")}if(2===U.signStatus){const H=`${this.translation.translate("The document has been successfully transferred to the signed status")}`;this.toast.show(H,"success")}}),pe.every(U=>2===U.signStatus||1===U.signStatus)?this.actionDoneTitle.emit(this.successTitle):this.actionDoneTitle.emit(""),this.result.emit(pe)}getDoneNavigation(pe){let Ce=this.route.snapshot.queryParams.docType?this.route.snapshot.queryParams.docType:pe[0].document?pe[0].document.docType:"";const U=this.route.snapshot.queryParams.backUrl;return U&&"one-window"===U&&(Ce=U),this.documentSignService.goBackNavigation({cross:this.cross||null,docType:Ce})}sign(){this.signComponent&&this.signComponent.signDocument(this.action,this.showRefusePaycontrolBtn)}resendSmsCode(){this.signComponent&&this.signComponent.initInputCode()}onSmsSent(){this.initCountdownTimer()}refuse(){this.signComponent&&this.signComponent.refusePaycontrol()}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}getFormattedCountdownTimer(){let pe=Math.floor(this.secondsToResend/60),Ce=Math.floor(this.secondsToResend%60);return pe=pe<10?`0${pe}`:pe,Ce=Ce<10?`0${Ce}`:Ce,`${pe}:${Ce}`}initCountdownTimer(){clearInterval(this.countdownSetIntervalTimer),this.isResendSmsCodeButtonDisabled=!0,this.secondsToResend=this.SECONDS_TO_RESEND_DEFAULT,this.countdownTimeFormatted=this.getFormattedCountdownTimer(),this.countdownSetIntervalTimer=setInterval(()=>{this.secondsToResend=this.secondsToResend-1,this.countdownTimeFormatted=this.getFormattedCountdownTimer(),0===this.secondsToResend&&(this.isResendSmsCodeButtonDisabled=!1,clearInterval(this.countdownSetIntervalTimer)),this.changeDetectorRef.detectChanges()},1e3)}static#e=this.\u0275fac=function(Ce){return new(Ce||Ge)(e.\u0275\u0275directiveInject(i.D7),e.\u0275\u0275directiveInject(h.V),e.\u0275\u0275directiveInject(l.j),e.\u0275\u0275directiveInject(m.F0),e.\u0275\u0275directiveInject(m.gz),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ge,selectors:[["app-document-sign-with-wrapper"]],viewQuery:function(Ce,U){if(1&Ce&&e.\u0275\u0275viewQuery(u.A,7),2&Ce){let H;e.\u0275\u0275queryRefresh(H=e.\u0275\u0275loadQuery())&&(U.signComponent=H.first)}},inputs:{docModule:"docModule",docType:"docType",documentsForSign:"documentsForSign",docIds:"docIds",certificates:"certificates",fakeSign:"fakeSign",autoAcceptAllTypesOfSign:"autoAcceptAllTypesOfSign",isNeedMessage:"isNeedMessage",isNewDesign:"isNewDesign",isModalDesign:"isModalDesign",descriptionHeader:"descriptionHeader",isMail:"isMail",customMessage:"customMessage",isCreatedMessage:"isCreatedMessage",noDefaultMessage:"noDefaultMessage",isNeedBankOpeningHoursCheck:"isNeedBankOpeningHoursCheck",successCustomTitle:"successCustomTitle",successCustomMessage:"successCustomMessage",action:"action",documentSignMaxWidth:"documentSignMaxWidth",cross:"cross",successTemplate:"successTemplate",partSignTemplate:"partSignTemplate",isSentIcon:"isSentIcon",titleIconName:"titleIconName",resultSignTitleColor:"resultSignTitleColor",isNavigationAfterDone:"isNavigationAfterDone",beginningOfMessageForSignStatus:"beginningOfMessageForSignStatus",useMetibComponents:"useMetibComponents",document:"document",summaryDocumentId:"summaryDocumentId",docId:"docId",initialSignStatus:"initialSignStatus"},outputs:{result:"result",actionDoneTitle:"actionDoneTitle"},decls:27,vars:53,consts:[["data-qa","1657876908589",1,"document-sign__wrapper",3,"hidden"],[4,"ngIf"],["data-qa","1657876915156",3,"autoAcceptAllTypesOfSign","action","customLoader","docIds","docModule","docType","documentsForSign","fakeSign","isNeedBankOpeningHoursCheck","isNewDesign","descriptionHeader","isMail","isModalDesign","specifiedCertificates","summaryDocumentId","loader","message","resultEvent","smsSent"],["class","document-sign__timer","data-qa","1681285647",4,"ngIf"],[1,"document-sign__buttons"],["data-qa","1657876919999","text","Sign",3,"disabled","type","clicked",4,"ngIf"],["data-qa","1681210593","type","medium-for-sign-mail",3,"disabled","text","clicked",4,"ngIf"],["data-qa","1657876991973","text","Refuse","type","medium-for-sign-mail",3,"click",4,"ngIf"],["loaderClass","modal-design",3,"hidden"],[1,"document-sign__wrapper",3,"hidden"],[1,"document-sign__message"],["data-qa","1657877128883",1,"result-sign"],["svgClass","result-sign__icon",3,"icon",4,"ngIf"],[1,"result-sign__text"],[1,"result-sign__title",3,"ngStyle"],["class","result-sign__message",4,"ngIf"],["class","result-sign__message",3,"error",4,"ngIf"],["class","document-sign__buttons",4,"ngIf"],["data-qa","1681285647",1,"document-sign__timer"],["data-qa","1657876919999","text","Sign",3,"disabled","type","clicked"],["data-qa","1681210593","type","medium-for-sign-mail",3,"disabled","text","clicked"],["data-qa","1657876991973","text","Refuse","type","medium-for-sign-mail",3,"click"],["svgClass","result-sign__icon",3,"icon"],[1,"result-sign__message"],[1,"link"],["type","small",3,"text","click",4,"ngFor","ngForOf"],["type","small",3,"text","click"],[4,"ngTemplateOutlet"]],template:function(Ce,U){1&Ce&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,B,4,6,"ng-container",1),e.\u0275\u0275template(2,_,4,6,"ng-container",1),e.\u0275\u0275elementStart(3,"app-document-sign",2),e.\u0275\u0275listener("loader",function(Z){return U.loader=Z})("message",function(Z){return U.setMessage(Z)})("resultEvent",function(Z){return U.setResult(Z)})("smsSent",function(){return U.onSmsSent()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,$,2,1,"div",3),e.\u0275\u0275elementStart(5,"div",4),e.\u0275\u0275template(6,C,1,2,"app-button",5),e.\u0275\u0275template(7,T,2,5,"app-button",6),e.\u0275\u0275template(8,j,1,0,"app-button",7),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(9,"app-loader",8),e.\u0275\u0275elementStart(10,"div",9)(11,"div",10),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",10),e.\u0275\u0275text(15),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"div",11),e.\u0275\u0275template(17,I,1,1,"app-svg-icon",12),e.\u0275\u0275elementStart(18,"div",13)(19,"div",14),e.\u0275\u0275text(20),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(21,F,3,4,"div",15),e.\u0275\u0275template(22,z,3,6,"div",16),e.\u0275\u0275template(23,X,7,10,"div",15),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(24,P,2,1,"div",17),e.\u0275\u0275template(25,ne,3,2,"ng-container",1),e.\u0275\u0275template(26,ce,2,1,"ng-container",1)),2&Ce&&(e.\u0275\u0275styleProp("max-width",U.documentSignMaxWidth),e.\u0275\u0275classProp("modal-design",U.isModalDesign),e.\u0275\u0275property("hidden",U.resultStatus||!U.isCertsAvailable||U.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!U.noDefaultMessage&&U.isNeedMessage&&U.message),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.customMessage),e.\u0275\u0275advance(1),e.\u0275\u0275property("autoAcceptAllTypesOfSign",U.autoAcceptAllTypesOfSign)("action",U.action)("customLoader",!0)("docIds",U.docIds)("docModule",U.docModule)("docType",U.docType)("documentsForSign",U.documentsForSign)("fakeSign",U.fakeSign)("isNeedBankOpeningHoursCheck",U.isNeedBankOpeningHoursCheck)("isNewDesign",U.isNewDesign)("descriptionHeader",U.descriptionHeader)("isMail",U.isMail)("isModalDesign",U.isModalDesign)("specifiedCertificates",U.certificates)("summaryDocumentId",U.summaryDocumentId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","INPUT_CODE"===(null==U.signComponent||null==U.signComponent.currentCertificate?null:U.signComponent.currentCertificate.cryptoTypeCode)),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("document-sign__buttons--hidden",!U.showBtn),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!U.showSignPaycontrolBtn),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!U.showSignPaycontrolBtn&&"INPUT_CODE"===(null==U.signComponent||null==U.signComponent.currentCertificate?null:U.signComponent.currentCertificate.cryptoTypeCode)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.showRefusePaycontrolBtn),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!U.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",U.isCertsAvailable||U.isDocHasFullSign),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(13,47,U.message,U.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(U.noCertificates),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("result-sign--hidden",!U.resultStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.isSentIcon),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("result-sign__text--new",U.isNewDesign),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("result-sign__title--new",U.isNewDesign),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(50,xe,U.resultSignTitleColor)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",U.successTitle," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.successCustomMessage&&U.successCustomMessage.length&&1!==U.resultStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","mail2bank"!==U.docType&&U.messageForSignStatus&&U.messageForSignStatus.length>1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","mail2bank"!==U.docType&&U.beginningOfMessageForSignStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.signButtons),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===U.resultStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.successTemplate&&e.\u0275\u0275pureFunction0(52,we).includes(U.resultStatus)))},dependencies:[x.sg,x.O5,x.tP,x.PC,O.r,L.b,w.R,u.A,x.rS,i.X$],styles:['@charset "UTF-8";.document-sign__message{font-size:18px;color:#444;margin:10px 0;outline:none!important}.document-sign__message--new{font-family:Open Sans,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:22px;margin-bottom:48px}.document-sign__buttons{padding:0;margin-top:15px;display:flex;gap:16px}.document-sign__buttons--hidden{display:none}.document-sign__buttons app-button{width:-moz-fit-content;width:fit-content}.document-sign__timer{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;font-weight:700;margin-top:14px;margin-bottom:40px}.result-sign{display:flex;align-items:center;justify-content:flex-start}.result-sign--hidden{display:none}.result-sign__icon{width:96px;height:100px;fill:#88909b;fill-opacity:.5}.result-sign__text{margin-left:30px;color:#444}.result-sign__text--new{margin-left:0;font-family:Open Sans,sans-serif;font-style:normal;font-weight:400;font-size:18px;line-height:25px}.result-sign__title{font-size:33px;font-weight:600;margin-bottom:8px}.result-sign__title--new{margin-bottom:20px;font-weight:600;font-size:28px;line-height:38px;font-family:Open Sans,sans-serif;font-style:normal;color:#003ad2}.result-sign__message{font-size:18px}.result-sign__message.error{color:#d9291e}.result-sign__message .link{color:#2f54eb;cursor:pointer}\n'],encapsulation:2})}(0,n.gn)([(0,i.SQ)()],Ge.prototype,"lang",void 0)},13571:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>Ce});var n=t(97582),e=t(94650),i=t(18430),d=t(16611),a=t(77579),u=t(39646),h=t(82805),l=t(62843),m=t(54244),x=t(82722),O=t(71884),L=t(34782),w=t(95698),B=t(70262),_=t(63900),y=t(28746),$=t(66304),C=t(54004),T=t(18139),j=t(69109),I=t(24006),F=t(49066),P=t(88581),E=t(8058),R=t(37601),ne=t(15644),G=t(44180),ce=t(36895),xe=t(3751),we=t(38101);function Ge(U,H){if(1&U&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&U){const Z=H.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Z," ")}}function ct(U,H){if(1&U&&(e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275element(1,"img",9),e.\u0275\u0275elementStart(2,"div",10),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()),2&U){const Z=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("src","data:image/gif;base64,"+Z.qrCode,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate4(" ",e.\u0275\u0275pipeBind2(4,5,"QR code validity time",Z.lang)," ",Z.qrCounter," ",e.\u0275\u0275pipeBind2(5,8,"seconds",Z.lang),". ",e.\u0275\u0275pipeBind2(6,11,"QR code validity time message",Z.lang)," ")}}const pe=function(U){return{"modal-design":U}};class Ce{constructor(H,Z,oe,Pe,Ie,pt,Ht,Wt,Xe,Qe,Be,at,lt){this.documentSignService=H,this.dynamicFormService=Z,this.userDataService=oe,this.configUtilService=Pe,this.elRef=Ie,this.router=pt,this.translation=Ht,this.location=Wt,this.apiService=Xe,this.modalService=Qe,this.destroyService=Be,this._cdr=at,this.ngZone=lt,this.showFieldError=!1,this.inputClass="",this.isNewDesign=!1,this.docIds=[],this.documentsForSign=[],this.autoAcceptAllTypesOfSign=!0,this.customLoader=!1,this.isErrorCenter=!1,this.isNeedPreSignAction=!1,this.isNeedBankOpeningHoursCheck=!1,this.isModalDesign=!1,this.isMail=!1,this.isOpeningCurr=!1,this.useMetibComponents=!1,this.messageEvent=new e.EventEmitter,this.loader=new e.EventEmitter,this.resultEvent=new e.EventEmitter,this.changeSert=new e.EventEmitter,this.smsSent=new e.EventEmitter,this.isDisabled=new e.EventEmitter,this.errorEmitter=new e.EventEmitter,this.certificateField={field:{name:"certificate",validators:[I.Validators.required],requiredMessage:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"},component:{type:F.j.Select,placeholder:"Choose verification method",title:"Confirmation method"},select:{items:[]},visual:{cssClass:"no-description",inputClass:"above-modal",hide:!1},dataQa:"1660031041525"},this.tokenField={field:{name:"tokenId",validators:[I.Validators.required]},component:{type:F.j.Select,title:"Token",placeholder:"Token"},select:{items:[]},visual:{cssClass:"no-description",hide:!0},dataQa:"1660031043725"},this.ie11=!1,this.innerLoader=!1,this.downloadedCertificates=[],this.signatures=[],this.destroyed$=new a.x,this._descriptionHeader=[],this.showFieldsDescription=!1}get certificateControl(){return this.form?.get("certificate")}get tokenIdControl(){return this.form?.get("tokenId")}get inputCodeControl(){return this.form?.get("inputCode")}set docId(H){H&&(this.docIds=[H])}get descriptionHeader(){return this._descriptionHeader}set descriptionHeader(H){this._descriptionHeader=Array.isArray(H)?H:[H]}get certificates(){return this.specifiedCertificates?this.specifiedCertificates:this.downloadedCertificates}set certificates(H){this.downloadedCertificates=H}ngOnInit(){this.prepareFormConfig(),this.loadCertificates(),this.certificateControl.valueChanges.pipe((0,m.n)(H=>Array.isArray(H)),(0,x.R)(this.destroyed$)).subscribe(H=>this.setCertificate(H)),this.tokenIdControl.valueChanges.pipe((0,x.R)(this.destroyed$)).subscribe(H=>{this.isDisabled.emit(!0),this.inputCodeControl.patchValue(""),this.inputCodeField.visual.hide=!H,this.messageEvent.emit("Enter cryptotoken PIN")}),this.inputCodeControl.valueChanges.pipe((0,O.x)(),(0,x.R)(this.destroyed$)).subscribe(H=>{this.isDisabled.emit(!H),this.clearInputCodeError()})}ngAfterViewInit(){this.input=this.elRef.nativeElement.querySelector("input"),this.inputClass.trim()&&this.inputCodeField?.visual&&(this.inputCodeField.visual.inputClass=this.inputClass)}ngOnDestroy(){this.payControlRequestInterval&&clearInterval(this.payControlRequestInterval),this.qrCodeInterval&&clearInterval(this.qrCodeInterval),this.currentSub&&!this.currentSub.closed&&this.currentSub.unsubscribe(),this.subs&&this.subs.forEach(H=>H.unsubscribe())}ngOnChanges(H){H.deleteSign&&this.deleteSignInit(H.deleteSign.currentValue)}getCertificates(H=!1){if(H&&(this.certificatesCache$=void 0),!this.certificatesCache$){const Z=this.specifiedCertificates?(0,u.of)(this.specifiedCertificates):this.documentSignService.getCertificates();this.certificatesCache$=Z.pipe((0,L.d)(1))}return this.certificatesCache$}initInputCode(){this.fakeSign?(0,h.H)(1e3).pipe((0,x.R)(this.destroyed$),(0,w.q)(1)).subscribe(()=>{this.messageEvent.emit("Enter the code you received in the SMS message")}):(this.enableLoader(!0),this.documentSignService.initInputCode({certificate:this.currentCertificate,docModule:this.docModule,docType:this.docType,docIds:this.docIds,documentsForSign:this.documentsForSign},this.signId).pipe((0,x.R)(this.destroyed$)).subscribe({next:()=>{this.smsSent.emit(),this.messageEvent.emit("Enter the code you received in the SMS message"),this.enableLoader(!1),setTimeout(()=>{document.querySelector("app-document-sign .sign").focus()},0)},error:H=>this.defaultErrorHandler(H)}))}handleEvent(H){"enter-key"===H.eventType&&this.signDocument(this.action)}signDocument(H=null,Z=!1,oe=null){this.showFieldError&&(this.config.filter(Pe=>!Pe.visual.hide).forEach(Pe=>{this.form.get(Pe.field.name).markAsTouched()}),this.dynamicFormComponent.dynamicForm.onSubmit(void 0)),this.dynamicFormComponent.dynamicForm.form.updateValueAndValidity(),this.form.valid||!this.dynamicFormComponent.dynamicForm.form.valid?(this.input.blur(),this.fakeSign?this.startFakeSign():(this.enableLoader(!0),(this.isNeedBankOpeningHoursCheck?this.apiService.getServerState():(0,u.of)(!0)).pipe((0,B.K)(Pe=>((0,l._)(Pe),(0,u.of)(null))),(0,_.w)(Pe=>this.apiService.getIsWorkingHoursHandler(Pe)?this.isNeedPreSignAction&&(this.docId||this.docIds[0])?this.documentSignService.updateDocDateById(this.docId||this.docIds[0]).pipe((0,w.q)(1),(0,_.w)(()=>this.sign(H,oe))):this.sign(H,oe):(0,u.of)(null)),(0,x.R)(this.destroyed$),(0,y.x)(()=>{this.enableLoader(!1)})).subscribe({next:Pe=>{this.ngZone.run(()=>{this.successSign(Pe),this._cdr.markForCheck(),this.isModalDesign&&this.isMail?(this.modalService.close(),this.router.navigate(["mail"])):this.isModalDesign&&this.isOpeningCurr&&this.router.navigate(["opening-currency-account-history"])})},error:Pe=>{this.ngZone.run(()=>{this.errorSign(Pe),this.errorEmitter.emit(!1),this.enableLoader(!1),this._cdr.markForCheck()})}}))):this.errorEmitter.emit(!1)}sign(H=null,Z=null){const{inputCode:oe,tokenId:Pe}=this.form.value;return this.documentSignService.signDocument({certificate:this.currentCertificate,inputCode:oe,tokenId:+Pe,docModule:this.docModule,docType:this.docType,docIds:this.docIds,signId:this.signId,actionId:this.actionId,action:H,additionalData:Z,documentsForSign:this.documentsForSign,summaryDocumentId:this.summaryDocumentId},this.autoAcceptAllTypesOfSign)}refusePaycontrol(){this.enableLoader(!0),this.documentSignService.refusePaycontrol({certId:this.currentCertificate.id,docId:this.actionId}).subscribe({next:()=>{this.enableLoader(!1),this.location.back()},error:Z=>{this.defaultErrorHandler(Z)}})}startFakeSign(){this.enableLoader(!0),(0,h.H)(1e3).pipe((0,x.R)(this.destroyed$)).subscribe(H=>{this.successSign([{signStatus:2,document:void 0}])})}successSign(H){setTimeout(()=>{let Z;this.userDataService.logData({successSign:!0}),Z=(H.error||H.errorText)&&H.signed?{...H}:Array.from(H).map(oe=>this.deleteSign?{deleteSign:0===oe.signStatus,...oe}:{sign:1===oe.signStatus||2===oe.signStatus,...oe}),this.resultEvent.emit(Z),this.enableLoader(!1)})}errorSign(H){this.userDataService.logData({errorSign:{err:H}}),this.form.get("inputCode").setErrors({}),this.form.get("inputCode").updateValueAndValidity(),this.defaultErrorHandler(H)}inputCodeValidator(H){return H.value&&this.error&&this.error.incorrectInputCode&&H.value===this.error.incorrectInputCode?{incorrect:!0}:null}clearInputCodeError(){this.error=void 0}defaultErrorHandler(H){H.errorText&&this.showError(H.errorText),this.enableLoader(!1)}showError(H){H=this.translation.translate(H),this.error?this.error.errorText=H:this.error={errorText:H}}enableLoader(H){this.customLoader?this.loader.emit(H):(this.innerLoader=H,this._cdr.markForCheck())}prepareFormConfig(){this.inputCodeField=((U,H=!1,Z="")=>({field:{name:"inputCode",validators:[I.Validators.required,U],requiredMessage:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u0434"},component:{type:H?F.j.MetibInput:F.j.Input,title:"Code from SMS",placeholder:"Code from SMS"},visual:{cssClass:"no-description",inputClass:Z,hide:!0},isNewDesign:!0,dataQa:"1660031047956"}))(this.inputCodeValidator.bind(this),this.useMetibComponents,"sign"),this.showFieldsDescription&&(this.certificateField.visual.cssClass=void 0,this.tokenField.visual.cssClass=void 0,this.inputCodeField.visual.cssClass=void 0),this.config=[{...this.certificateField,isNewDesign:this.isNewDesign,isModalDesign:this.isModalDesign},{...this.tokenField,isNewDesign:this.isNewDesign,isModalDesign:this.isModalDesign},{...this.inputCodeField,isNewDesign:this.isNewDesign,isModalDesign:this.isModalDesign}],this.form=this.dynamicFormService.generateFormGroup(this.config)}deleteSignInit(H){if(H){this.certificateField.component.title="Signature key certificate";const Z=this.documentSignService.getDocumentSignList(this.docIds[0]);this.getCertificates().pipe((0,$.c)(Z)).subscribe(oe=>{this.signatures=oe;const Pe=this.documentSignService.getCertificatesBySignatures(this.certificates,oe,this.isMail);if(this.setCertificateSelectionOptions(Pe),!Pe.length){const Ie=this.translation.translate("No suitable certificate for signature delete");this.showError(Ie)}this.enableLoader(!1)},oe=>this.defaultErrorHandler(oe))}else this.signId=null,this.signatures=null}loadCertificates(){this.enableLoader(!0),this.getCertificates().pipe((0,x.R)(this.destroyed$)).subscribe({next:H=>{this.certificates=H,this.deleteSign||(this.setCertificateSelectionOptions(H),this.enableLoader(!1)),this.setDefaultCertificate(),this.enableLoader(!1)},error:H=>{this.defaultErrorHandler(H)}})}setCertificateSelectionOptions(H){this.certificateField.select.items=this.dynamicFormService.generateItemsForSelect(H,"id","subjectName","cryptoName")}setCertificate(H){this.qrCode=void 0,this.currentCertificate=this.certificates.find(oe=>String(oe.id)===H),this.deleteSign&&this.setSignId(this.currentCertificate);const Z=this.currentCertificate.cryptoTypeCode;return this.changeCertificate(Z),Z===j.d.Rutoken?this.initRutoken():Z===j.d.InputCode?this.initInputCode():Z===j.d.Paycontrol?this.initPaycontrol():Z===j.d.None?this.initNone():null}setSignId(H){const Z=this.signatures.find(oe=>this.documentSignService.signatureVerificationFromCertificate(oe,H,this.isMail));Z&&(this.signId=+Z.id)}changeCertificate(H){this.messageEvent.emit(void 0),this.inputCodeControl.setValue(void 0),this.inputCodeControl.reset(),this.tokenIdControl.setValue(void 0),this.isNewDesign&&(this.certificateField.visual.hide=!0),H===j.d.InputCode&&(this.tokenIdControl.disable(),this.tokenField.visual.hide=!0,this.inputCodeField.visual.hide=!1,this.inputCodeField.component.placeholder="Enter SMS",this.inputCodeField.component.title="SMS code",this.inputCodeField.component.inputType="text"),H===j.d.Rutoken&&(this.tokenIdControl.enable(),this.tokenField.visual.hide=!0,this.inputCodeField.visual.hide=!0,this.inputCodeField.component.placeholder="Enter PIN",this.inputCodeField.component.title="Cryptotoken PIN",this.inputCodeField.component.inputType="password"),H===j.d.Paycontrol&&(this.tokenIdControl.disable(),this.tokenField.visual.hide=!0,this.deleteSign?this.inputCodeControl.disable():(this.inputCodeField.visual.hide=!1,this.inputCodeField.component.placeholder="Enter confirmation code",this.inputCodeField.component.title="Confirmation code",this.inputCodeField.component.inputType="text")),H===j.d.None&&(this.tokenIdControl.disable(),this.tokenField.visual.hide=!0,this.inputCodeField.visual.hide=!0),this.changeSert.emit(this.currentCertificate)}initNone(){return this.fakeSign?this.startFakeSign():(this.enableLoader(!0),this.currentSub=this.documentSignService.signDocumentByEmulator({certificate:this.currentCertificate,docModule:this.docModule,docType:this.docType,docIds:this.docIds,documentsForSign:this.documentsForSign},this.signId).subscribe({next:H=>this.successSign(H),error:H=>this.defaultErrorHandler(H)}),null)}initRutoken(){this.enableLoader(!0),this.currentSub=this.documentSignService.initRutoken().subscribe({next:H=>{this.tokenField.select.items=this.dynamicFormService.generateItemsForSelect(H,"id","label"),this.tokenField.visual.hide=!1,this.enableLoader(!1)},error:H=>{this.defaultErrorHandler(H)}})}initPaycontrol(){this.deleteSign||(this.enableLoader(!0),this.messageEvent.emit(void 0),this.currentSub=this.documentSignService.initInputCode({certificate:this.currentCertificate,docModule:this.docModule,docType:this.docType,docIds:this.docIds,documentsForSign:this.documentsForSign}).pipe((0,x.R)(this.destroyService)).subscribe({next:H=>{this.actionId=H.transactions[0].id,H.transactions[0].qrCode&&"null"!==H.transactions[0].qrCode?(this.messageEvent.emit("Paycontrol message with qr"),this.qrCode=H.transactions[0].qrCode,this.qrCounter=300,this.payControlRequestInterval=setInterval(()=>{this.documentSignService.getDocumentInfo(this.docType,this.docModule,""+this.docIds.join(";")).pipe((0,C.U)(oe=>Object.values(oe)[0])).subscribe({next:oe=>{const Pe=this.configUtilService.getArray(oe);let Ie=!0;Pe.forEach(pt=>{Ie=Ie&&pt.signStatus&&"2"==`${pt.signStatus}`}),this.enableLoader(!1),Ie&&this.closeComponent()},error:oe=>{this.defaultErrorHandler(oe),clearInterval(this.payControlRequestInterval)}})},this.configUtilService.adminConfig.data.payControlInterval?1e3*this.configUtilService.adminConfig.data.payControlInterval:5e3),this.qrCodeInterval=setInterval(()=>{this.qrCounter=this.qrCounter-1,0===this.qrCounter&&(clearInterval(this.qrCodeInterval),this.closeComponent())},1e3)):(this.messageEvent.emit("Paycontrol message"),this.inputCodeField.visual.hide=!0,this.inputCodeControl.disable(),this.qrCode=void 0),this.enableLoader(!1)},error:H=>this.defaultErrorHandler(H)}))}closeComponent(){this.payControlRequestInterval&&clearInterval(this.payControlRequestInterval);const H=this.documentSignService.getPathData();H?this.router.navigate([H.href],{queryParams:H.params}):this.router.navigate(["../"]),this.enableLoader(!1)}setDefaultCertificate(){1===this.certificates.length&&this.certificates[0].id&&setTimeout(()=>{this.certificateControl.patchValue(String(this.certificates[0].id))})}static#e=this.\u0275fac=function(Z){return new(Z||Ce)(e.\u0275\u0275directiveInject(P.V),e.\u0275\u0275directiveInject(E.w),e.\u0275\u0275directiveInject(R.M),e.\u0275\u0275directiveInject(ne.Pj),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(G.F0),e.\u0275\u0275directiveInject(d.D7),e.\u0275\u0275directiveInject(ce.Ye),e.\u0275\u0275directiveInject(xe.s),e.\u0275\u0275directiveInject(we.Z),e.\u0275\u0275directiveInject(T.p),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.NgZone))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ce,selectors:[["app-document-sign"]],viewQuery:function(Z,oe){if(1&Z&&e.\u0275\u0275viewQuery(i.r,5),2&Z){let Pe;e.\u0275\u0275queryRefresh(Pe=e.\u0275\u0275loadQuery())&&(oe.dynamicFormComponent=Pe.first)}},inputs:{docModule:"docModule",showFieldError:"showFieldError",docType:"docType",errorWidth:"errorWidth",inputClass:"inputClass",isNewDesign:"isNewDesign",docIds:"docIds",documentsForSign:"documentsForSign",autoAcceptAllTypesOfSign:"autoAcceptAllTypesOfSign",customLoader:"customLoader",isErrorCenter:"isErrorCenter",isNeedPreSignAction:"isNeedPreSignAction",isNeedBankOpeningHoursCheck:"isNeedBankOpeningHoursCheck",isModalDesign:"isModalDesign",isMail:"isMail",isOpeningCurr:"isOpeningCurr",deleteSign:"deleteSign",specifiedCertificates:"specifiedCertificates",fakeSign:"fakeSign",action:"action",useMetibComponents:"useMetibComponents",summaryDocumentId:"summaryDocumentId",docId:"docId",showFieldsDescription:"showFieldsDescription",descriptionHeader:"descriptionHeader"},outputs:{messageEvent:"messageEvent",loader:"loader",resultEvent:"resultEvent",changeSert:"changeSert",smsSent:"smsSent",isDisabled:"isDisabled",errorEmitter:"errorEmitter"},features:[e.\u0275\u0275ProvidersFeature([T.p]),e.\u0275\u0275NgOnChangesFeature],decls:9,vars:14,consts:[["data-qa","1657877186982",1,"document-sign__wrapper",3,"hidden","ngClass"],[1,"description-container"],[4,"ngFor","ngForOf"],["data-qa","1657877191121",3,"showFieldError","config","formGroup","event"],["data-qa","1657877194666",1,"document-sign__error"],["class","document-sign__qr-code","data-qa","1657877205336",4,"ngIf"],[1,"document-sign__loader"],[1,"loader"],["data-qa","1657877205336",1,"document-sign__qr-code"],["alt","","data-qa","1657877201616",3,"src"],[1,"document-sign__qr-counter"]],template:function(Z,oe){1&Z&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,Ge,2,1,"span",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"app-dynamic-form",3),e.\u0275\u0275listener("event",function(Ie){return oe.handleEvent(Ie)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",4),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,ct,7,14,"div",5),e.\u0275\u0275elementStart(7,"div",6),e.\u0275\u0275element(8,"div",7),e.\u0275\u0275elementEnd()()),2&Z&&(e.\u0275\u0275property("hidden",oe.resultStatus)("ngClass",e.\u0275\u0275pureFunction1(12,pe,oe.isModalDesign)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",oe.descriptionHeader),e.\u0275\u0275advance(1),e.\u0275\u0275property("showFieldError",oe.showFieldError)("config",oe.config)("formGroup",oe.form),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("width",oe.errorWidth),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==oe.error?null:oe.error.errorText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",oe.qrCode),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("document-sign__loader--hidden",!oe.innerLoader))},dependencies:[ce.mk,ce.sg,ce.O5,I.NgControlStatusGroup,I.FormGroupDirective,i.r,d.X$],styles:['@charset "UTF-8";.document-sign__wrapper[_ngcontent-%COMP%]{position:relative}.document-sign__wrapper.modal-design[_ngcontent-%COMP%]{min-height:80px;margin-top:14px}.document-sign__error[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;font-weight:400;color:#d9291e;width:-moz-fit-content;width:fit-content;padding:0 12px;line-height:16px;overflow:hidden;text-overflow:ellipsis}.document-sign__qr-code[_ngcontent-%COMP%]{margin:15px 0 30px}.document-sign__qr-code[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:300px;height:300px}.document-sign__qr-counter[_ngcontent-%COMP%]{font-size:16px;margin:15px 0 0}.document-sign__loader[_ngcontent-%COMP%]{position:absolute;top:80;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;background-color:#ffffffb3}.document-sign__loader--hidden[_ngcontent-%COMP%]{display:none}.description-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}'],changeDetection:0})}(0,n.gn)([(0,d.SQ)()],Ce.prototype,"lang",void 0)},15848:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>B});var n=t(97582),e=t(16611),i=t(49066),d=t(94650),a=t(24006),u=t(38101),h=t(40929),l=t(9149),m=t(36895),x=t(18430),O=t(90995),L=t(75568);function w(_,y){1&_&&d.\u0275\u0275element(0,"app-loader")}class B{constructor(y,$,C,T){this.fb=y,this.modalService=$,this.documentService=C,this.toast=T,this.load=!1,this.selectConfig=[{field:{name:"name"},component:{placeholder:"Template name",title:"Enter the title",type:i.j.Input}}],this.form=this.fb.group({name:[]}),this.actionAfter=()=>{}}ngOnInit(){}createDocumentTemplate(){this.load=!0,this.documentService.createDocumentTemplate(this.docId,this.form.value).subscribe(y=>{this.load=!1,y&&y.id&&this.toast.show("Template saved","success"),this.actionAfter()},y=>{this.toast.show(y.errorText,"error"),this.load=!1})}close(){this.modalService.close(),this.actionAfter()}static#e=this.\u0275fac=function($){return new($||B)(d.\u0275\u0275directiveInject(a.UntypedFormBuilder),d.\u0275\u0275directiveInject(u.Z),d.\u0275\u0275directiveInject(h.Z),d.\u0275\u0275directiveInject(l.j))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:B,selectors:[["app-document-template-create-modal"]],inputs:{actionAfter:"actionAfter"},decls:11,vars:15,consts:[["data-qa","1657876887485",1,"template-create"],[1,"import__select"],["data-qa","1657876889794",3,"config","formGroup"],[1,"template-create__wrapper"],[1,"template-create__button"],["data-qa","1657876893055","type","large",3,"text","click"],["data-qa","1657876900900","type","small-bordered",3,"text","click"],[4,"ngIf"]],template:function($,C){1&$&&(d.\u0275\u0275elementStart(0,"div",0)(1,"div",1),d.\u0275\u0275element(2,"app-dynamic-form",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"app-button",5),d.\u0275\u0275listener("click",function(){return C.createDocumentTemplate()}),d.\u0275\u0275pipe(6,"translate"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(7,"div",4)(8,"app-button",6),d.\u0275\u0275listener("click",function(){return C.close()}),d.\u0275\u0275pipe(9,"translate"),d.\u0275\u0275elementEnd()()()(),d.\u0275\u0275template(10,w,1,0,"app-loader",7)),2&$&&(d.\u0275\u0275classProp("load",C.load),d.\u0275\u0275advance(2),d.\u0275\u0275property("config",C.selectConfig)("formGroup",C.form),d.\u0275\u0275advance(2),d.\u0275\u0275classProp("disabled",""===C.form.get("name").value||null===C.form.get("name").value),d.\u0275\u0275advance(1),d.\u0275\u0275propertyInterpolate("text",d.\u0275\u0275pipeBind2(6,9,"Save",C.lang)),d.\u0275\u0275advance(3),d.\u0275\u0275propertyInterpolate("text",d.\u0275\u0275pipeBind2(9,12,"Cancel",C.lang)),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngIf",C.load))},dependencies:[m.O5,a.NgControlStatusGroup,a.FormGroupDirective,x.r,O.r,L.R,e.X$],styles:['@charset "UTF-8";.template-create.load[_ngcontent-%COMP%]{opacity:.4}.template-create__title[_ngcontent-%COMP%]{font-size:33px;font-weight:600;color:#284681;border-bottom:1px solid #dedede;padding-bottom:32px}.template-create__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}@media only screen and (min-width: 768px){.template-create__header-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}}.template-create__buttons[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-wrap:wrap;gap:16px;margin-top:20px}.template-create__wrapper[_ngcontent-%COMP%]{display:flex}.template-create__button[_ngcontent-%COMP%]{padding-top:20px}.template-create__button[_ngcontent-%COMP%]:first-child{margin-right:20px}.template-create__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.template-create__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.template-create__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.template-create__button-label__input[_ngcontent-%COMP%]{display:none}.template-create__button.view[_ngcontent-%COMP%]{margin-right:20px}.template-create__button.load[_ngcontent-%COMP%]{width:170px}.template-create__button.disabled[_ngcontent-%COMP%], .template-create__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.template-create__header-value[_ngcontent-%COMP%]{font-weight:600}']})}(0,n.gn)([(0,e.SQ)()],B.prototype,"lang",void 0)},8886:(Ee,Q,t)=>{"use strict";t.d(Q,{W:()=>n});class n{constructor(){this.docModule="",this.docType="",this.onlyActions=[],this.filter={additional:"",dateTo:"",dateFrom:""},this.sorting=[],this.page={number:0,size:0}}}},17869:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>p});var n=t(36895),e=t(24006),i=t(65938),d=t(284),a=t(44180),u=t(16611),h=t(67795),l=t(27719),m=t(38360),x=t(74471),O=t(78895),L=t(71702),w=t(88044),B=t(63978),_=t(99762),y=t(36561),$=t(48038),C=t(57677),T=t(13571),j=t(5103),I=t(59549),F=t(94650),z=t(90995),X=t(75568);let p=(()=>{class P{static#e=this.\u0275fac=function(ne){return new(ne||P)};static#t=this.\u0275mod=F.\u0275\u0275defineNgModule({type:P});static#n=this.\u0275inj=F.\u0275\u0275defineInjector({imports:[n.ez,e.FormsModule,e.ReactiveFormsModule,_.N,a.Bz,l.n,x.h,w.u,L.B,m.I,B.A,$.Y,O.q,u.qw,y.D,i.Is,j.n,I.lN,h.QA,d.c]})}return P})();F.\u0275\u0275setComponentScope(C.n,[n.O5,z.r,X.R,T.A],[u.X$])},15963:(Ee,Q,t)=>{"use strict";t.d(Q,{t:()=>l});var n=t(97582),e=t(16611),i=t(94650),d=t(36895);function a(m,x){if(1&m&&(i.\u0275\u0275elementStart(0,"div",7),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&m){const O=x.$implicit;i.\u0275\u0275attribute("data-qa","1657876861826"+x.index),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",O," ")}}function u(m,x){if(1&m&&(i.\u0275\u0275elementStart(0,"div")(1,"div",5),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(4,a,2,2,"div",6),i.\u0275\u0275elementEnd()),2&m){const O=x.$implicit,L=x.index,w=i.\u0275\u0275nextContext(2);i.\u0275\u0275attribute("data-qa","1657876856632"+L),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(3,3,O.head,w.lang)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",O.data)}}function h(m,x){if(1&m&&(i.\u0275\u0275elementStart(0,"div",2)(1,"div",3),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div"),i.\u0275\u0275template(5,u,5,6,"div",4),i.\u0275\u0275elementEnd()()),2&m){const O=x.$implicit,L=x.index,w=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("data-qa","1657876827876"+L),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(3,7,O.title,w.lang)),i.\u0275\u0275advance(2),i.\u0275\u0275classProp("metib-info-block__table-h","h"===O.type)("metib-info-block__table-v","v"===O.type),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",O.data)}}class l{static#e=this.\u0275fac=function(O){return new(O||l)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:l,selectors:[["app-metib-info-block"]],inputs:{data:"data"},decls:2,vars:1,consts:[["data-qa","1657876812933",1,"metib-info-block"],["class","metib-info-block__row",4,"ngFor","ngForOf"],[1,"metib-info-block__row"],[1,"metib-info-block__head"],[4,"ngFor","ngForOf"],[1,"metib-info-block__table-head"],["class","metib-info-block__table-data",4,"ngFor","ngForOf"],[1,"metib-info-block__table-data"]],template:function(O,L){1&O&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,h,6,10,"div",1),i.\u0275\u0275elementEnd()),2&O&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",L.data))},dependencies:[d.sg,e.X$],styles:['@charset "UTF-8";.metib-info-block[_ngcontent-%COMP%]{margin:30px 15px;background-color:#dedede;padding:30px 50px;font-size:16px;color:#000}.metib-info-block__row[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:20px}.metib-info-block__head[_ngcontent-%COMP%]{margin-bottom:20px;line-height:22px;color:#003ad2}.metib-info-block__table-head[_ngcontent-%COMP%]{color:#444;min-width:140px;margin-right:50px}.metib-info-block__table-v[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.metib-info-block__table-v[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:10px}.metib-info-block__table-h[_ngcontent-%COMP%]{display:flex;flex-direction:column}.metib-info-block__table-h[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:10px}.metib-info-block__table-data[_ngcontent-%COMP%]{flex:1;min-width:140px}']})}(0,n.gn)([(0,e.SQ)()],l.prototype,"lang",void 0)},42761:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>X});var n=t(97582),e=t(16611),i=t(77579),d=t(95698),a=t(82722),u=t(94037),h=t(94650),l=t(38101),m=t(44180),x=t(40929),O=t(9149),L=t(75568),w=t(36895),B=t(81876),_=t(59650);function y(p,P){if(1&p){const E=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"div",5),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(E);const ne=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(ne.onDocsInfoClick())}),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()}if(2&p){const E=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate1(" ",E.getDocsInfoHeader," ")}}function $(p,P){if(1&p&&(h.\u0275\u0275elementStart(0,"div",11),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&p){const E=h.\u0275\u0275nextContext().$implicit;h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(E.type)}}function C(p,P){if(1&p&&(h.\u0275\u0275elementStart(0,"div",8),h.\u0275\u0275template(1,$,2,1,"div",9),h.\u0275\u0275elementStart(2,"div",10)(3,"div"),h.\u0275\u0275text(4,"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0422\u0421\u041f"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(5,"div"),h.\u0275\u0275text(6),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(7,"div",10)(8,"div"),h.\u0275\u0275text(9,"\u0410\u0434\u0440\u0435\u0441"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(10,"div"),h.\u0275\u0275text(11),h.\u0275\u0275elementEnd()()()),2&p){const E=P.$implicit,R=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",R.docsInfo.length>1),h.\u0275\u0275advance(5),h.\u0275\u0275textInterpolate(E.name),h.\u0275\u0275advance(5),h.\u0275\u0275textInterpolate(E.address)}}function T(p,P){if(1&p&&(h.\u0275\u0275elementStart(0,"div",6),h.\u0275\u0275template(1,C,12,3,"div",7),h.\u0275\u0275elementEnd()),2&p){const E=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275property("ngForOf",E.docsInfo)}}function j(p,P){if(1&p){const E=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"a",18),h.\u0275\u0275listener("click",function(){const G=h.\u0275\u0275restoreView(E).$implicit,ce=h.\u0275\u0275nextContext(3);return h.\u0275\u0275resetView(ce.printAgreement(G.id))}),h.\u0275\u0275text(1),h.\u0275\u0275pipe(2,"translate"),h.\u0275\u0275elementEnd()}if(2&p){const E=P.$implicit,R=h.\u0275\u0275nextContext(3);h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind2(2,1,E.name,R.lang))}}function I(p,P){if(1&p&&(h.\u0275\u0275elementStart(0,"div",16),h.\u0275\u0275template(1,j,3,4,"a",17),h.\u0275\u0275elementEnd()),2&p){const E=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275property("ngForOf",E.printDocs)}}function F(p,P){if(1&p){const E=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"div",12)(1,"ng-scrollbar",13),h.\u0275\u0275template(2,I,2,1,"div",14),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"app-document-sign-with-wrapper",15),h.\u0275\u0275listener("actionDoneTitle",function(ne){h.\u0275\u0275restoreView(E);const G=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(G.close(ne))}),h.\u0275\u0275elementEnd()()}if(2&p){const E=h.\u0275\u0275nextContext();h.\u0275\u0275classProp("modal-design",E.isModalDesign),h.\u0275\u0275advance(2),h.\u0275\u0275property("ngIf",E.printDocs.length),h.\u0275\u0275advance(1),h.\u0275\u0275property("action",E.action)("certificates",E.data.certificates)("cross",E.cross)("docIds",E.data.docIds)("docModule",E.data.docModule)("docType",E.data.docType)("documentsForSign",E.data.docs)("isCreatedMessage",!1)("isNavigationAfterDone",E.isNavigationAfterDone)("isNeedMessage",!1)("isNewDesign",E.isNewDesign)("isModalDesign",E.isModalDesign)("descriptionHeader",E.descriptionHeader)}}function z(p,P){1&p&&h.\u0275\u0275element(0,"app-loader",19)}class X{constructor(P,E,R,ne,G){this.modalService=P,this.router=E,this.documentService=R,this.packageSignPageService=ne,this.toastCustomService=G,this.documents=[],this.signParamsMetinv=[],this.printDocs=[],this.isNewDesign=!0,this.isNavigationAfterDone=!0,this.isModalDesign=!1,this.docsInfo=[],this.destroy$=new i.x,this.isLoading=!1,this.docsInfoOpen=!1,this.isClosedWithoutSignCompleted=!0,this.done=ce=>{},this.closeWithoutSignCompleted=()=>{}}get getDocsInfoHeader(){return this.docsInfoOpen?"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b"}ngOnInit(){this.isLoading=!0,this.getDocuments$().pipe((0,d.q)(1),(0,a.R)(this.destroy$)).subscribe({next:P=>this.successHandler(P),error:P=>{this.toastCustomService.errorHandle(P,"fullRed"),this.errorHandler()}})}getDocuments$(){let P;return P=this.signParamsMetinv.length>0?this.packageSignPageService.getData({filter:this.signParamsMetinv}):this.documents.length>0?this.packageSignPageService.getDataByDocuments(this.documents):this.packageSignPageService.getDataByIds(this.ids),P}onDocsInfoClick(){this.docsInfoOpen=!this.docsInfoOpen}successHandler(P){this.data=P,this.isLoading=!1}printAgreement(P){P&&this.documentService.getFile(`print/pdf?doc_ids=${P}`).pipe((0,d.q)(1)).subscribe()}errorHandler(){this.isLoading=!1}close(P){this.done(P),this.isClosedWithoutSignCompleted=!1,this.modalService.close()}ngOnDestroy(){this.isClosedWithoutSignCompleted&&this.closeWithoutSignCompleted(),this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(E){return new(E||X)(h.\u0275\u0275directiveInject(l.Z),h.\u0275\u0275directiveInject(m.F0),h.\u0275\u0275directiveInject(x.Z),h.\u0275\u0275directiveInject(u.r),h.\u0275\u0275directiveInject(O.j))};static#t=this.\u0275cmp=h.\u0275\u0275defineComponent({type:X,selectors:[["app-package-sign-modal"]],inputs:{ids:"ids",documents:"documents",signParamsMetinv:"signParamsMetinv",descriptionHeader:"descriptionHeader",action:"action",printDocs:"printDocs",cross:"cross",isNewDesign:"isNewDesign",isNavigationAfterDone:"isNavigationAfterDone",isModalDesign:"isModalDesign",docsInfo:"docsInfo",done:"done",closeWithoutSignCompleted:"closeWithoutSignCompleted"},features:[h.\u0275\u0275ProvidersFeature([u.r])],decls:5,vars:4,consts:[[1,"package-sign"],["class","package-sign__docs-info-header",3,"click",4,"ngIf"],["class","package-sign__docs-info",4,"ngIf"],["class","package-sign__content",3,"modal-design",4,"ngIf"],["loaderClass","modal-design",4,"ngIf"],[1,"package-sign__docs-info-header",3,"click"],[1,"package-sign__docs-info"],["class","package-sign__docs-info-doc",4,"ngFor","ngForOf"],[1,"package-sign__docs-info-doc"],["class","package-sign__docs-info-doc-title",4,"ngIf"],[1,"package-sign__docs-info-doc-row"],[1,"package-sign__docs-info-doc-title"],[1,"package-sign__content"],["autoHeightDisabled","false"],["class","package-sign__links-wrap",4,"ngIf"],["data-qa","1663155405337",3,"action","certificates","cross","docIds","docModule","docType","documentsForSign","isCreatedMessage","isNavigationAfterDone","isNeedMessage","isNewDesign","isModalDesign","descriptionHeader","actionDoneTitle"],[1,"package-sign__links-wrap"],["class","package-sign__link",3,"click",4,"ngFor","ngForOf"],[1,"package-sign__link",3,"click"],["loaderClass","modal-design"]],template:function(E,R){1&E&&(h.\u0275\u0275elementStart(0,"div",0),h.\u0275\u0275template(1,y,2,1,"div",1),h.\u0275\u0275template(2,T,2,1,"div",2),h.\u0275\u0275template(3,F,4,16,"div",3),h.\u0275\u0275template(4,z,1,0,"app-loader",4),h.\u0275\u0275elementEnd()),2&E&&(h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",!R.isLoading&&R.docsInfo.length>0),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",!R.isLoading&&R.docsInfo.length>0&&R.docsInfoOpen),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",!R.isLoading&&R.data),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",R.isLoading))},dependencies:[L.R,w.sg,w.O5,B.v,_.KC,e.X$],styles:['@charset "UTF-8";.package-sign[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:210px;padding:24px 32px;font-family:Open Sans,Source Sans Pro,sans-serif}@media screen and (max-width: 768px){.package-sign[_ngcontent-%COMP%]{padding:24px 16px}}.package-sign__title[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:18px;line-height:25px;display:flex;align-items:center;color:#000;margin-bottom:64px}.package-sign__title.modal-design[_ngcontent-%COMP%]{max-width:none;margin:0}.package-sign__link[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;line-height:22px;cursor:pointer;margin-bottom:10px;text-decoration:none;border-bottom:1px solid #2f54eb;color:#2f54eb;width:-moz-fit-content;width:fit-content}.package-sign__links-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:15px;max-height:50px}.package-sign__content[_ngcontent-%COMP%]{max-width:360px;margin:0 auto;width:100%}.package-sign__content.modal-design[_ngcontent-%COMP%]{max-width:none;margin:0}.package-sign__docs-info-header[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;padding-bottom:24px;font-weight:400}.package-sign__docs-info[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:8px 16px 0;max-height:280px;overflow-y:auto}@media (max-height: 800px){.package-sign__docs-info[_ngcontent-%COMP%]{max-height:calc(100vh - 520px)}}.package-sign__docs-info[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dedede;border-radius:4px}.package-sign__docs-info[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:253px;background-color:#f1f2f2}.package-sign__docs-info[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.package-sign__docs-info-doc[_ngcontent-%COMP%]{display:flex;justify-content:stretch;flex-direction:column;padding-top:4px;padding-bottom:12px}.package-sign__docs-info-doc-title[_ngcontent-%COMP%]{flex:1;padding-bottom:10px;font-weight:700;font-size:14px}.package-sign__docs-info-doc-row[_ngcontent-%COMP%]{padding:6px 0;display:flex;justify-content:flex-start;flex-direction:row;gap:12px;font-size:14px;font-weight:400;line-height:19px}.package-sign__docs-info-doc-row[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-child{color:#88909b;min-width:100px}.package-sign__docs-info-doc-row[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){color:#444;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media screen and (min-width: 375px) and (max-width: 768px){.package-sign[_ngcontent-%COMP%]{padding:24px 16px}.package-sign[_ngcontent-%COMP%]     .panel-form__button.header{font-size:16px!important;font-weight:600}.package-sign[_ngcontent-%COMP%]     .panel-form__button.small-bordered{font-size:16px!important;font-weight:600}}@media screen and (min-width: 375px) and (max-width: 768px) and (min-width: 375px) and (max-width: 768px){.package-sign[_ngcontent-%COMP%]     .panel-form__button.small-bordered{padding:12px 16px}}']})}(0,n.gn)([(0,e.SQ)()],X.prototype,"lang",void 0)},94037:(Ee,Q,t)=>{"use strict";t.d(Q,{r:()=>C});var n=t(62843),e=t(86099),i=t(39646),d=t(54004),a=t(70262),u=t(6146),h=t(99921),l=t(94650),m=t(44180),x=t(15644),O=t(86962),L=t(75885),w=t(37601),B=t(9149),_=t(16611),y=t(44509),$=t(98504);let C=(()=>{class T{constructor(I,F,z,X,p,P,E,R,ne){this.activatedRoute=I,this.configUtilService=F,this.forSignOperationService=z,this.lastOperationsService=X,this.userDataService=p,this.toastCustomService=P,this.translationService=E,this.currencySymbolPipe=R,this.currencyPipe=ne,this.COMPLEX_CURR_DOC_TYPES=[u.o.DocPlatporCurrComplex,u.o.DocPlatporCurrBp]}getDataByIds(I){return this.docIds=I,this.forSignOperationService.requestForSignOperationsByIds(this.docIds).pipe((0,d.U)(F=>{const z=this.configUtilService.getArray(F.certificates),X=[],p=F.docs[0].docModule,P=F.docs[0].docType,E=this.configUtilService.getArray(F.docs[0].docs).map(xe=>("inq_curr_181"===xe.doc.docType||"inq_conf_181"===xe.doc.docType?(xe.doc.amount=0,xe.doc.currCode=""):"doc_transit_pay_doc"===xe.doc.docType&&(xe.doc.amount=xe.doc.transAmountTotal,xe.doc.currCode=xe.doc.transCurrCodeIso),X.push(xe.signs.map(we=>we.certId.toString())),xe.doc)),R={operations:E,infoData:E.map(xe=>(0,h.c)(xe)),amount:this.getAmount(E)},ne=this.configUtilService.getCommonElementsFromArrays(X),G=z.filter(xe=>ne.includes(""+xe.id)),ce=G.length?G:z;return{...R,docs:this.getDocs(F),certificates:ce,buttons:[{type:"print",data:{url:`print/pdf?doc_ids=${this.docIds}`}}],docIds:this.docIds.split(","),docModule:p,docType:P}}))}getDataByDocuments(I){const F=I[0].docModule,z=I[0].docType,X=I.map(p=>p.docId);return this.forSignOperationService.requestForSignOperationsByIds(X.join(",")).pipe((0,d.U)(p=>{const P=this.configUtilService.getArray(p.certificates);return{buttons:[{type:"print",data:{url:`print/pdf?doc_ids=${X.join(",")}`}}],certificates:P,docModule:F,docType:z,docIds:X,docs:I}}))}getData(I){const F=I||this.getParamsFromStorage();return this.docIds=this.activatedRoute.snapshot.queryParams?.docIds||F?.filter?.map(X=>X.docIds).join(","),this.docIds?(F?this.forSignOperationService.requestForSignOperationsMetinvByIds(F):this.forSignOperationService.requestForSignOperationsByIds(this.docIds)).pipe((0,a.K)(X=>{const p=""+X.status!="404"&&X.errorText?X?.errorText:"An error has occurred. Please try again later.";return(0,n._)(()=>new Error(p))}),(0,e.z)(X=>X?.docs?(0,i.of)(X):(0,n._)(()=>new Error("No data for signature"))),(0,d.U)(X=>{const p=X.docs[0].docModule;let P=[{type:"print",data:{url:`print/pdf?doc_ids=${this.docIds}`}}],E=X.docs[0].docType;const R=this.configUtilService.getArray(X.certificates).map(pe=>({...pe,id:pe.id.toString()})),ne=[];let G=[];this.configUtilService.getArray(X.docs).forEach(pe=>{this.configUtilService.getArray(pe.docs).forEach(Ce=>{G.push(this.getOperation(Ce.doc)),ne.push(Ce.signs.map(U=>U.certId.toString()))})});const ce=this.getAmount(G),xe=this.configUtilService.getCommonElementsFromArrays(ne),we=R.filter(pe=>xe.includes(pe.id)),Ge=this.isSigningRubPaymentWithCtiCheck(X);Ge&&(G=[Ge],P=[],E=u.o.DocPlatporBp,this.toastCustomService.show(this.translationService.translate("Attention! You sign two documents: RUR payment and CTI"),"error"));const ct=this.iComplexCurrCheck(X);return ct&&(G=ct,P=[],E=X.docs.find(pe=>this.COMPLEX_CURR_DOC_TYPES.includes(pe.docType)).docType),{docs:this.getDocs(X),certificates:we,operations:G,infoData:G.map(pe=>(0,h.c)(pe)),amount:ce,buttons:P,docIds:this.docIds.split(","),docModule:p,docType:E}})):(0,n._)(()=>new Error("Not found"))}getParamsFromStorage(){const I=this.lastOperationsService.getSessionStorage(this.userDataService.STORAGE_NAME_PARAMS_FOR_SIGN);return I?{filter:JSON.parse(I).filter}:void 0}getOperation(I){const F=I;switch(I.docType){case"inq_curr_181":case"inq_conf_181":F.amount=0,F.currCode="",F.description=`\u2116 ${I.docNumber} \u043e\u0442 ${this.configUtilService.formatDateString(I.docDate)}`;break;case"doc_transit_pay_doc":F.amount=this.currencyPipe.transform(I.transAmountTotal),F.currCode=this.currencySymbolPipe.transform(I.transCurrCodeIso,!0),F.description=`${F.description}`;break;default:F.amount=this.currencyPipe.transform(F.amount),F.currCode=this.currencySymbolPipe.transform(F.currCode,!0),F.description=`${F.description}`}return F}getAmount(I){const F=I[0].currCode;let z=0;for(let X=0;X<I.length;X++){if(I[X].currCode!==F)return;z+=+this.configUtilService.removeSpaces(I[X].amountAll||I[X].amount)||0}return{value:z,currCode:F}}getDocs(I){const F=[];return I?.docs?.map(z=>{z&&this.configUtilService.getArray(z.docs).map(X=>{X&&X.doc&&F.push({docId:X.doc.id,docModule:X.doc.docModule,docType:X.doc.docType})})}),F}isSigningRubPaymentWithCtiCheck(I){let F=!1,z=!1,X=null;return I.docs.forEach(p=>{p.docs=this.configUtilService.getArray(p?.docs),p.docType===u.o.DocInqCurr181&&(z=!0),p.docType===u.o.DocPlatporBp&&(F=!0,X=p?.docs[0]?.doc)}),F&&z?X:null}iComplexCurrCheck(I){let F=!1;const z=[null,null];return I.docs.forEach(X=>{X.docType===u.o.DocInqCurr181&&(F=!0,z[1]=X?.docs?.map(p=>p?.doc)[0]),(X.docType===u.o.DocPlatporCurrBp||X.docType===u.o.DocPlatporCurrComplex)&&(z[0]=X?.docs?.map(p=>p?.doc)[0])}),z.every(X=>!!X)&&F?z:null}static#e=this.\u0275fac=function(F){return new(F||T)(l.\u0275\u0275inject(m.gz),l.\u0275\u0275inject(x.Pj),l.\u0275\u0275inject(O.l),l.\u0275\u0275inject(L.o),l.\u0275\u0275inject(w.M),l.\u0275\u0275inject(B.j),l.\u0275\u0275inject(_.D7),l.\u0275\u0275inject(y.G),l.\u0275\u0275inject($.H))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac})}return T})()},5248:(Ee,Q,t)=>{"use strict";t.d(Q,{Bg:()=>_,CI:()=>x,JN:()=>e,LV:()=>$,NJ:()=>m,W8:()=>O,Ww:()=>y,_4:()=>B,eC:()=>n,g$:()=>w,nW:()=>a,ok:()=>h,ph:()=>L,u0:()=>u,xs:()=>l});const n="\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0441\u043a\u043e\u0439 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438",e="325751",a="ibankul",u="ROLE_ATTACHMENT_WITH_STAMP";var h=(()=>{return(C=h||(h={})).NotSigned="0",C.PartiallySigned="1",C.Signed="2",h;var C})(),l=(()=>{return(C=l||(l={})).RequestAdvanceAccept="request_advance_accept",C.AcceptEdit="accept_edit",C.AcceptCancellation="accept_cancellation",l;var C})(),m=(()=>{return(C=m||(m={})).True="true",C.False="false",m;var C})(),x=(()=>{return(C=x||(x={})).SenderBank="mail2client",C.SenderClient="post2bank",C.Post2Client="post2client",x;var C})();const O=["joinedMailList","incomingMailList","outgoingMailList"];var L=(()=>{return(C=L||(L={}))[C.One=1]="One",C[C.Two=2]="Two",C[C.Three=3]="Three",C[C.Four=4]="Four",C[C.Five=5]="Five",C[C.Eight=8]="Eight",C[C.NinetyNine=99]="NinetyNine",L;var C})();const w={OneHundredOne:"101",OneHundredFour:"104",OneHundredFive:"105",OneHundredSix:"106",OneHundredSeven:"107",OneHundredSixty:"116"},B="042202727";var _=(()=>{return(C=_||(_={})).New="new",C.Draft="draft",C.Delete="delete",C.Unread="unread",C.Fixed="fixed",C.ForSign="for_sign",C.All="all",_;var C})(),y=(()=>{return(C=y||(y={})).CodeSixty="code_60",C.CheckboxEight="checkBox08",C.AdditionalBody="additionalBody",y;var C})(),$=(()=>{return(C=$||($={})).ACCEPTANCE="acceptance",C.INBOX="inbox",C.OUT="out",$;var C})()},27828:(Ee,Q,t)=>{"use strict";t.d(Q,{r:()=>C});var n=t(61135),e=t(39841),i=t(54004),d=t(45835),a=t(26871),u=t(36229),h=t(57677),l=t(8886),m=t(5248),x=t(94650),O=t(3751),L=t(15644),w=t(40929),B=t(38101),_=t(16611),y=t(44180),$=t(9149);let C=(()=>{class T{constructor(I,F,z,X,p,P,E){this.apiService=I,this.configUtilService=F,this.documentService=z,this.modalService=X,this.translation=p,this.router=P,this.toast=E,this.unreadMailNumber$=new n.X(""),this.openedMail$=new n.X(null),this.sighMails$=new n.X([]),this.unreadMailIds$=new n.X([]),this.action$=new n.X(null),this.operationAlert$=new n.X(null),this.deleteMail$=new n.X(null),this.loader$=new n.X(!1),this.incomingConfig=new l.W,this.outcomingConfig=new l.W,this.incomingConfig.docModule="ibankul",this.incomingConfig.docType="mail2client",this.incomingConfig.filter={additional:"status in ('send', 'end', 'decline')",dateFrom:"",dateTo:""},this.incomingConfig.page={number:0,size:5},this.incomingConfig.sorting=[{field:"registerStamp",order:"DESC"}],this.incomingConfig.onlyActions=["print","answer"],this.outcomingConfig=this.configUtilService.deepClone(this.incomingConfig),this.outcomingConfig.filter.additional="status in ('for_send', 'draft', 'new', 'send', 'working', 'end')",this.outcomingConfig.sorting=[{field:"createstamp",order:"DESC"}],this.outcomingConfig.onlyActions=["print","update","send","sign_on_client","delete_sign","delete","sign_list","copy"],this.outcomingConfig.docType="mail2bank"}ngOnInit(){}getMailUnreadNumber(){return this.apiService.get("mail2client/unread/v2")}getLetters(I,F,z,X){const p=this.configUtilService.deepClone(this[F]);return p.filter.dateFrom=this.configUtilService.revertFormatDateDMY(I.beginDate,"-"),p.filter.dateTo=this.configUtilService.revertFormatDateDMY(I.endDate,"-"),p.filter.additional=""!==z?`${p.filter.additional} and ((caption like '%${z}%') or (description like '%${z}%'))`:p.filter.additional,p.page.number=X||0,(0,e.a)(this.apiService.post("pageable/document/visual/page",p)).pipe((0,i.U)(P=>(P[0].list?(P[0].list=this.configUtilService.getArray(P[0].list),P[0].list.forEach(E=>{E.registerStamp=this.configUtilService.formatDateStringDMYHM(E.registerStamp,void 0,","),E.createstamp=this.configUtilService.formatDateStringDMYHM(E.createstamp,void 0,","),E.attachments=this.configUtilService.getArray(E.attachments),this.hasSaveToFileAction(E)&&E.actions.push("save_to_file"),this.hasSaveToFileAction(E)&&E?.attachments?.length&&E.actions.push("save_all_attachments")})):P[0].list=[],P[0])))}hasSaveToFileAction(I){return"mail2client"===I.docType}readMail(I){return this.apiService.put(`mail2client/unread/${I}`)}getAttachment(I,F){return this.apiService.get(`attachment/${I}/${F}`,void 0,"blob")}getAttachmentWithStamp(I,F){return this.apiService.get(`print/attach/with_stamp/${I}/${F}`,void 0,"blob")}extractAttachment(I,F){const z=URL.createObjectURL(I),X=document.createElementNS("http://www.w3.org/1999/xhtml","a");return X.setAttribute("href",z),X.style.cssText="display: none",X.download=F,document.body.appendChild(X),X.click(),document.body.removeChild(X),I.type}getMail2BankSetup(){return this.apiService.get("mail2bank/info/setup").pipe((0,i.U)(I=>I.docSettings))}getSettingValue(I,F){return I.find(z=>z.name===F).value}getMailTypes(){return this.apiService.get("metinv/dic/mail_type/additional_data").pipe((0,i.U)(I=>I.mailType||I.mailTypeMetinv))}getMailTypesBySection(I){return this.apiService.get("metinv/dic/mail_type/"+I).pipe((0,i.U)(F=>{if(F&&F.mailType)return F.mailType.constructor===Array?F.mailType.map(z=>z.id):F.mailType.id}))}getMailUnits(){return this.apiService.get("dic/bank_section").pipe((0,i.U)(I=>I.bankSectionDicElement))}postMail(I){return this.apiService.post("metinv/mail2bank",I)}deleteFile(I,F){return this.apiService.delete(`attachment/${I}/${F}`)}createCopy(I){return this.apiService.post(`copy/document/${I}`,{})}operationActionChange(I,F){switch(this.loader$.next(!0),F.docIds=F.id,I.name){case"print":this.loader$.next(!1),this.modalService.open(a.O,{header:"Print document",styleMode:"forSign",inputs:{operation:F}});break;case"answer":if(F.caption===m.eC&&F.sectionId===m.JN){this.goToCreditMonitoring();break}this.router.navigate(["/mailing-info"]),F.answer=!0,this.loader$.next(!1),this.openedMail$.next(F);break;case"delete":this.loader$.next(!1),this.modalService.open(d.q,{header:"Delete mail",inputs:{operation:F,text:this.translation.translate("Do you really want to delete the mail?"),deletionDone:()=>{this.deleteMail$.next(!0)}}});break;case"delete_sign":this.documentSignDelete(F),this.loader$.next(!1);break;case"update":case"edit":this.router.navigate(["mailing-new"],{queryParams:{mailId:F.id}}),this.loader$.next(!1);break;case"copy":case"createCopy":this.createCopy(F.id).subscribe(z=>{this.loader$.next(!1),this.router.navigate(["mailing-new"],{queryParams:{mailId:z.id,copy:!0}})});break;case"sign_on_client":this.openedMail$.next(F),this.router.navigate(["mailing-sign"]),this.loader$.next(!1);break;case"send":this.documentService.sendDocument("ibankul","mail2bank",F.id).subscribe(z=>{this.loader$.next(!1),this.operationAlert$.next({items:[{message:this.translation.translate("The letter is sent to bank")}],errorType:"success",id:F.id}),this.toast.show("The letter is sent to bank","success")},z=>{this.loader$.next(!1),this.operationAlert$.next({items:[{message:z.errorText}],errorType:"error",id:F.id}),this.toast.show(z.errorText,"error")});break;case"sign_list":this.apiService.get(`document/signature/metinv?doc_id=${F.id}`).subscribe(z=>{this.loader$.next(!1),z=this.configUtilService.getArray(z.signature),this.modalService.open(u.M,{header:"Electronic Document Signatures",size:"big",inputs:{sings:z}})});break;case"save_to_file":this.loader$.next(!1),this.modalService.open(a.O,{header:"Save letter",styleMode:"forSign",inputs:{operation:{...F,bodyInfo:this.translation.translate("Select file type format"),saveToFile:!0}}});break;case"save_all_attachments":this.loader$.next(!1),this.getAllAttachmentsZip(F.id).subscribe(z=>this.extractAttachment(z,`all-attachments-${F?.createstamp}.zip`))}}isDisableAnswerAction(I){return"true"===String(I.responseReceived)}documentSignDelete(I){this.modalService.open(h.n,{header:"Delete sign",inputs:{operation:I,deletionDone:()=>{this.deleteMail$.next(!0)}},overflow:"initial"})}getAllAttachmentsZip(I){return this.apiService.get(`metinv/attachment/${I}`,{},"blob")}goToCreditMonitoring(){this.router.navigate(["/credit"],{queryParams:{monitoring:!0}})}static#e=this.\u0275fac=function(F){return new(F||T)(x.\u0275\u0275inject(O.s),x.\u0275\u0275inject(L.Pj),x.\u0275\u0275inject(w.Z),x.\u0275\u0275inject(B.Z),x.\u0275\u0275inject(_.D7),x.\u0275\u0275inject(y.F0),x.\u0275\u0275inject($.j))};static#t=this.\u0275prov=x.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})()},69109:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>n});var n=(()=>{return(e=n||(n={})).InputCode="INPUT_CODE",e.Rutoken="AKTIV_RUTOKEN",e.Paycontrol="PAYCONTROL",e.None="NONE",n;var e})()},13120:(Ee,Q,t)=>{"use strict";t.d(Q,{mZ:()=>n,rz:()=>i});const n=["image/jpeg","image/tiff","application/pdf"],i=["image/jpeg","image/tiff","application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]},94907:(Ee,Q,t)=>{"use strict";t.d(Q,{Sh:()=>d,TG:()=>n,d0:()=>l,gt:()=>u,nC:()=>i,uo:()=>a});class n{constructor(){this.EUR={value:0,remainder:0},this.USD={value:0,remainder:0},this.RUR={value:0,remainder:0}}}class i{constructor(){this.filtered=[],this.operations=[],this.lastLoadedCount=0}}class d{constructor(x,O=null,L=null,w=!0,B=""){if(this.currentPeriod=x,O)this.beginDate=O;else{const _=new Date;_.setMonth(_.getMonth()-1),this.beginDate=_}this.endDate=L?O:new Date,this.useUpdateCalendarDates=w,this.name=B}}const a=20,u=["doc_supplementary_agreement","request_accept_no_accept","request_advance_accept","accept_edit","accept_cancellation","doc_draft_buysell","cash_placement","irreducible_balance","confirm_cash_placement","confirm_irreducible_balance","request_receive_cash","doc_platpor","transfer_rests"],l=["today","yesterday","week","month","quater","year","period"]},59363:(Ee,Q,t)=>{"use strict";t.d(Q,{Dk:()=>i,K9:()=>e,f:()=>d,hO:()=>n});const n=["REQUEST/PAYCONTROL_ON","REQUEST/PAYCONTROL_RENEW","REQUEST/PAYCONTROL_OFF"],e="-99999",i=["request_paycontrol_on","cert_renew_paycontrol","request_paycontrol_off"];var d=(()=>{return(a=d||(d={})).On="request_paycontrol_on",a.Renew="cert_renew_paycontrol",a.Off="request_paycontrol_off",d;var a})()},8226:(Ee,Q,t)=>{"use strict";t.d(Q,{$3:()=>m,CM:()=>O,G1:()=>w,IA:()=>n,L4:()=>L,LN:()=>B,V2:()=>y,_7:()=>i,bs:()=>_,e_:()=>h,fL:()=>u,hG:()=>e,mv:()=>x,zN:()=>d});const n="102",e="115",i="116",d=["1000","1001","1002"],u="47422",h="452",m="810",x="156",O="978",L="840",w=["810","643"],B=new RegExp(/100\d/),_=new RegExp(/200\d/);var y=(()=>{return($=y||(y={})).USD="$",$.RUR="\u20bd",$.EUR="\u20ac",y;var $})()},11482:(Ee,Q,t)=>{"use strict";t.d(Q,{W:()=>e,X:()=>n});var n=(()=>{return(i=n||(n={})).Opens="open_accounts_reference",i.Remainder="accounts_rest_reference",i.Period="turnover_reference",i.Debt="loan_debt_reference",i.Card="card_index_reference",n;var i})(),e=(()=>{return(i=e||(e={})).Opens="REFERENCES/OPEN_ACCOUNTS",i.Remainder="REFERENCES/ACCOUNTS_REST",i.Period="REFERENCES/TURNOVER",i.Debt="REFERENCES/LOAN_DEBT",i.Card="REFERENCES/CARD_INDEX",e;var i})()},86094:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>i});var n=t(94650),e=t(3751);let i=(()=>{class d{constructor(u){this.apiService=u}connectSupportVed(u){return this.apiService.post("ved/pers_supp",u)}showSupportVed(u){return this.apiService.get(`ved/pers_supp/show_ved?employeeId=${u.employeeId}&companyId=${u.companyId}`)}closeSupportVed(u){return this.apiService.post(`ved/pers_supp/set_show_ved?employeeId=${u.employeeId}&show=${u.show}&companyId=${u.companyId}`,{})}getStatusSupportVed(){return this.apiService.get("ved/pers_supp/status")}cancelSupportVed(){return this.apiService.post("ved/pers_supp/cancel",{})}static#e=this.\u0275fac=function(h){return new(h||d)(n.\u0275\u0275inject(e.s))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},21898:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>a});var n=t(61135),e=t(57460),i=t(22431),d=t(94650);let a=(()=>{class u{constructor(){this.SBP_STATUS=i.c,this.STATUS_AND_NOTIFICATION=e.wh,this.partialSigningSupportVedAgreementId$=new n.X(null),this.supportVedConnectionStatus$=new n.X(i.c.NEW),this.supportVedInitialStatus$=new n.X(null),this.agreementDataSupportVed$=new n.X(null),this.supportAgreementVed$=new n.X(null)}getNotification(l){return this.STATUS_AND_NOTIFICATION[l]}static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},71441:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{OpeningCurrencyAccountHistoryModule:()=>Pe});var n=t(36895),e=t(74471),i=t(71702),d=t(88044),a=t(54215),u=t(44180),h=t(97582),l=t(16611),m=t(77579),x=t(82722),O=t(39300);const L=[{capture:"\u0412\u0441\u0435 \u0437\u0430\u044f\u0432\u043a\u0438",value:"all"}],w={size:20,number:0,total:0},B=[10,20,100];var _=t(17489),y=t(61135),$=t(48382),C=t(39646),T=t(18505),j=t(86099),I=t(95698),F=t(63900),z=t(54004),X=t(6146),p=t(26306),P=t(98202),E=t(94650),R=t(40929),ne=t(29198),G=t(15644),ce=t(9149),xe=t(81300);let we=(()=>{class Ie{constructor(Ht,Wt,Xe,Qe,Be,at){this.documentService=Ht,this.vedService=Wt,this.utilService=Xe,this.datePipe=Qe,this.toastCustomService=Be,this.serverSettingsService=at,this.documentList=[],this._documentList=new y.X(null),this.documentList$=this._documentList.asObservable(),this._isLoading=new y.X(!0),this.isLoading$=this._isLoading.asObservable(),this.currenciesIsoCode=new Map,this.currenciesCode=new Map,this.docTypesData={docTypes:[{docModule:"ibankul",docType:X.o.BankAccountAgreement}]},this.ACCOUNT_TYPE_SEARCH_PATTERN="BANK_ACCOUNT_AGREEMENT/ACC_TYPE_",this.destroy$=new m.x}setIsLoading(Ht){this._isLoading.next(Ht)}loadDocuments(Ht){this.setIsLoading(!0);const Wt={visual:!0,page:Ht,lastDocumentFilter:this.docTypesData,additionalFilter:null};this.serverSettingsService.getResource(this.serverSettingsService.servicesUL).pipe((0,T.b)(Xe=>{const Qe=_.pickBy(Xe,(at,lt)=>_.some([this.ACCOUNT_TYPE_SEARCH_PATTERN],Dt=>_.includes(lt,Dt))),Be=[];for(const[at,lt]of Object.entries(Qe))1===lt&&Be.push(`'${at.substring(this.ACCOUNT_TYPE_SEARCH_PATTERN.length)}'`);Wt.additionalFilter=`ACCOUNT_TYPE in (${Be})`}),(0,j.z)(()=>this.documentService.getLastDocumentsPageable(Wt).pipe((0,I.q)(1),(0,x.R)(this.destroy$),(0,F.w)(Xe=>(0,$.s)(()=>!this.currenciesIsoCode.size,this.vedService.getCurrencyList().pipe((0,T.b)(Qe=>Qe.map(Be=>{this.currenciesIsoCode.set(Be.isoCode,Be),this.currenciesCode.set(Be.code,Be)})),(0,z.U)(()=>Xe)),(0,C.of)(Xe))),(0,z.U)(Xe=>{let Qe=[];return Xe?.documents?.length&&(Qe=this.prepareDocumentList(Xe)),{documents:Qe,page:Xe?.page}})))).subscribe({next:Xe=>{Ht?.showMore?this.documentList=[...this.documentList,...Xe.documents]:(this.documentList=[],this.documentList=[...Xe.documents]),this._documentList.next({documents:this.documentList,page:Xe?.page}),this.setIsLoading(!1)},error:Xe=>{Xe?.errorText&&this.toastCustomService.show(Xe.errorText,"error"),this.setIsLoading(!1)}})}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}prepareDocumentList(Ht){return Ht.documents.map(Wt=>{const Xe=this.currenciesCode.get(Wt.currCode)?.isoCode?this.currenciesCode.get(Wt.currCode).isoCode:Wt.currCode,Qe=this.currenciesIsoCode.get(Xe);"decline"===Wt.status&&(Wt.isOpenable=!0,Wt.isOpen=!1),Wt.statusCaption="new"===Wt.status?Wt.signStatusCaption:Wt.statusCaption;const Be=Wt.actions.filter(at=>"view"!==at);return{dots:{buttonActions:this.utilService.makeButtonActions({actions:Wt.actions,...Wt},Be,at=>"print"===at?{inPopup:!1}:{})},...Wt,date:this.datePipe.transform(Wt.docDate,"dd.MM.YYYY"),title:`\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u0447\u0435\u0442\u0430 \u2116${Wt.docNumber} \u043e\u0442 ${this.datePipe.transform(Wt.docDate,"dd.MM.YYYY")}`,description:Qe?`${p.dd[Wt.accountType]}, ${Qe.name} (${Qe.isoCode})`:`${p.dd[Wt.accountType]}, ${Wt.currCode}`,statusCaption:this.utilService.capitalizeFirstLetter(Wt.statusCaption),statusCaptionColor:P.rV.get(Wt.status)}})}static#e=this.\u0275fac=function(Wt){return new(Wt||Ie)(E.\u0275\u0275inject(R.Z),E.\u0275\u0275inject(ne.$),E.\u0275\u0275inject(G.Pj),E.\u0275\u0275inject(n.uU),E.\u0275\u0275inject(ce.j),E.\u0275\u0275inject(xe.l))};static#t=this.\u0275prov=E.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac})}return Ie})();var Ge=t(23439),ct=t(15725),pe=t(30815),Ce=t(90995);const U=function(Ie){return{"extra-margin":Ie}};class H{constructor(pt,Ht,Wt){this.router=pt,this.openingCurrencyAccountHistoryService=Ht,this.activatedRoute=Wt,this.pathData=[{capture:"Open accounts",bold:!0}],this.tabs=L,this.currentPage=w,this.sizeList=B,this.isLoading$=this.openingCurrencyAccountHistoryService.isLoading$,this.documentList=[],this.destroy$=new m.x}ngOnInit(){this.initPagination(),this.openingCurrencyAccountHistoryService.documentList$.pipe((0,x.R)(this.destroy$),(0,O.h)(pt=>null!==pt)).subscribe(pt=>{this.documentList=pt?.documents,this.currentPage=pt?.page,this.currentPage||(this.currentPage=w,this.getDocumentList(this.currentPage))}),this.getDocumentList(this.currentPage)}getDocumentList(pt){this.router.navigate(["opening-currency-account-history"],{queryParams:{page:pt?.number?+pt.number+1:1,size:pt?.size?pt.size:10}}),this.openingCurrencyAccountHistoryService.loadDocuments(pt)}openNewCurrencyAccount(){this.router.navigate(["/opening-currency-account"])}onActionDone(pt){("delete"===pt||"delete_sign"===pt)&&this.getDocumentList(this.currentPage)}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}initPagination(){if(this.activatedRoute.snapshot.queryParams.page>0&&this.sizeList.includes(+this.activatedRoute.snapshot.queryParams.size)){const pt=+this.activatedRoute.snapshot.queryParams.page-1,Ht=+this.activatedRoute.snapshot.queryParams.size;(this.currentPage.number!==pt||this.currentPage.size!==Ht)&&(this.currentPage={...this.currentPage,number:pt,size:Ht})}}static#e=this.\u0275fac=function(Ht){return new(Ht||H)(E.\u0275\u0275directiveInject(u.F0),E.\u0275\u0275directiveInject(we),E.\u0275\u0275directiveInject(u.gz))};static#t=this.\u0275cmp=E.\u0275\u0275defineComponent({type:H,selectors:[["app-opening-currency-account-history"]],features:[E.\u0275\u0275ProvidersFeature([we])],decls:8,vars:17,consts:[["data-qa","1657968433696",3,"pathData"],["data-qa","1657968436122",3,"withCloseButton","withTitle","loading"],["data-qa","1657968442595",1,"tabs-container",3,"ngClass"],["type","small header","data-qa","1657968446824",1,"new-order-button",3,"text","clicked"],[1,"document-list"],["data-qa","1657968472224",3,"documentList","currentPage","sizeList","isLoading","changePaginationEmit","actionDone"]],template:function(Ht,Wt){1&Ht&&(E.\u0275\u0275element(0,"app-path",0),E.\u0275\u0275elementStart(1,"app-page",1)(2,"div",2)(3,"app-button",3),E.\u0275\u0275listener("clicked",function(){return Wt.openNewCurrencyAccount()}),E.\u0275\u0275pipe(4,"translate"),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(5,"div",4)(6,"app-alt-document-list",5),E.\u0275\u0275listener("changePaginationEmit",function(Qe){return Wt.getDocumentList(Qe)})("actionDone",function(Qe){return Wt.onActionDone(Qe)}),E.\u0275\u0275pipe(7,"async"),E.\u0275\u0275elementEnd()()()),2&Ht&&(E.\u0275\u0275property("pathData",Wt.pathData),E.\u0275\u0275advance(1),E.\u0275\u0275property("withCloseButton",!1)("withTitle",!1)("loading",!1),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(15,U,Wt.documentList.length)),E.\u0275\u0275advance(1),E.\u0275\u0275property("text",E.\u0275\u0275pipeBind2(4,10,"New order",Wt.lang)),E.\u0275\u0275advance(3),E.\u0275\u0275property("documentList",Wt.documentList)("currentPage",Wt.currentPage)("sizeList",Wt.sizeList)("isLoading",E.\u0275\u0275pipeBind1(7,13,Wt.isLoading$)))},dependencies:[n.mk,Ge.c,ct.I,pe.l,Ce.r,n.Ov,l.X$],styles:['@charset "UTF-8";.tabs-container[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;justify-content:end;align-items:center;border-bottom:1px solid #dedede;padding:20px 0}@media screen and (max-width: 768px){.tabs-container[_ngcontent-%COMP%]{border-bottom:none;padding:16px 0}}.tabs-container.extra-margin[_ngcontent-%COMP%]{margin-bottom:24px}.tabs-container[_ngcontent-%COMP%]   .new-order-button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;max-width:152px;height:47px}@media screen and (min-width: 375px) and (max-width: 768px){.tabs-container[_ngcontent-%COMP%]   .new-order-button[_ngcontent-%COMP%]{max-width:100%}}app-path[_ngcontent-%COMP%]{display:block;margin-bottom:24px}']})}(0,h.gn)([(0,l.SQ)()],H.prototype,"lang",void 0);const Z=[{path:"",pathMatch:"full",component:H},{path:"**",redirectTo:"/desktop"}];let oe=(()=>{class Ie{static#e=this.\u0275fac=function(Wt){return new(Wt||Ie)};static#t=this.\u0275mod=E.\u0275\u0275defineNgModule({type:Ie});static#n=this.\u0275inj=E.\u0275\u0275defineInjector({imports:[u.Bz.forChild(Z),u.Bz]})}return Ie})(),Pe=(()=>{class Ie{static#e=this.\u0275fac=function(Wt){return new(Wt||Ie)};static#t=this.\u0275mod=E.\u0275\u0275defineNgModule({type:Ie});static#n=this.\u0275inj=E.\u0275\u0275defineInjector({imports:[n.ez,oe,a.m,i.B,d.u,e.h]})}return Ie})()},26306:(Ee,Q,t)=>{"use strict";t.d(Q,{ND:()=>d,dd:()=>n,e1:()=>a,uX:()=>i,wL:()=>u,z7:()=>e});const n={1:"\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u0432 \u0440\u0443\u0431\u043b\u044f\u0445 \u0420\u0424",4:"\u0412\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442",12:"\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u0441\u0447\u0435\u0442"},e=[{caption:n[4],value:"4",disabled:!1},{caption:n[1],value:"1",disabled:!1},{caption:n[12],value:"12",disabled:!1}],i=[{caption:"\u0420\u0443\u0431\u043b\u044c \u0420\u0424 (RUB)",value:"RUB",dataQa:"1663158970091"},{caption:"\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 \u044e\u0430\u043d\u044c (CNY)",value:"CNY",dataQa:"1663159661594"},{caption:"\u0422\u0443\u0440\u0435\u0446\u043a\u0430\u044f \u043b\u0438\u0440\u0430 (TRY)",value:"TRY",dataQa:"1663159661595"},{caption:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u043a\u0438\u0439 \u0442\u0435\u043d\u0433\u0435 (KZT)",value:"KZT",dataQa:"1663159661596"},{caption:"\u0414\u0440\u0443\u0433\u0430\u044f",value:"other",dataQa:"1663159659702"}],d=[{title:'\u041f\u0410\u041e \u0410\u041a\u0411 "\u041c\u0415\u0422\u0410\u041b\u041b\u0418\u041d\u0412\u0415\u0421\u0422\u0411\u0410\u041d\u041a"',value:"metib"},{title:'\u041f\u0410\u041e \u041a\u043e\u043c\u0431\u0430\u043d\u043a "\u0425\u0438\u043c\u0438\u043a"',value:"bpx"}],a={1:"BANK_ACCOUNT_AGREEMENT/ACC_TYPE_1",4:"BANK_ACCOUNT_AGREEMENT/ACC_TYPE_4",12:"BANK_ACCOUNT_AGREEMENT/ACC_TYPE_12"},u="IS_SOME_ACCOUNT_TYPE_AVAILABLE_FOR_CREATION"},67046:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{OpeningCurrencyAccountModule:()=>xn});var n=t(36895),e=t(24006),i=t(61885),d=t(51329),a=t(18139),u=t(74471),h=t(71702),l=t(88044),m=t(93555),x=t(99762),O=t(54215),L=t(44180),w=t(97582),B=t(36738),_=t(16611),y=t(15439),$=t.n(y),C=t(77579),T=t(62557),j=t(63900),I=t(39646),F=t(95698),z=t(82722),X=t(78372),p=t(6146),P=t(26306),E=t(94650),R=t(99045),ne=t(8058),G=t(88581),ce=t(37601),xe=t(9149),we=t(38101),Ge=t(40929),ct=t(68735),pe=t(75568),Ce=t(16304),U=t(88155),H=t(52068);const Z={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,E.forwardRef)(()=>oe),multi:!0};class oe{constructor(hn){this.elRef=hn,this.titlePrefix="",this.appearance="legacy",this.isRequired=!1,this.show=!1,this.filteredItems=[],this.onTouch=()=>{},this.onModelChange=()=>{}}get items(){return this._items}set items(hn){this._items=hn,this.filterOptions(this.valueForSearch)}get originalItems(){return this.items&&this.items.length?this.items:[]}get filterBy(){return this.filterByField||["caption"]}registerOnTouched(hn){this.onTouch=hn}registerOnChange(hn){this.onModelChange=hn}writeValue(hn){this.show&&!this.filteredItems.length&&this.filterOptions(this.valueForSearch),this.value=hn;const pn=this.originalItems.find(In=>In.value===hn);this.getSelectionOptions(pn?pn[this.filterBy[0]]:this.value,!1)}changeSearchValue(hn){this.value=hn,this.show=!0,this.getSelectionOptions(this.value,!1),this.change()}getSelectionOptions(hn,pn=!0){this.onTouch(),this.valueForSearch=hn,pn&&this.clearValue(),this.filterOptions(this.valueForSearch)}onClick(hn){this.show=this.elRef.nativeElement.parentNode.contains(hn.target),this.show&&!this.filteredItems.length&&(this.onTouch(),this.filterOptions(this.valueForSearch))}setItem(hn){this.value=hn.value,this.getSelectionOptions(hn.caption,!1),this.change(),setTimeout(pn=>this.show=!1)}change(){this.onTouch(),this.onModelChange(this.value)}clearValue(){this.value&&(this.value=void 0,this.change())}filterOptions(hn){if(hn){const In=`${hn.replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\+/g,"\\+").replace(/\-/g,"\\-")}`;let Dn=[];for(let Tn=0;Tn<=this.filterBy.length;Tn++){const mn=this.originalItems.filter(Yn=>new RegExp(In,"").test(Yn[this.filterBy[Tn]])||new RegExp(In,"gi").test(Yn[this.filterBy[Tn]]));Dn=[...Dn,...mn]}this.filteredItems=Dn}else this.filteredItems=this.originalItems}static#e=this.\u0275fac=function(pn){return new(pn||oe)(E.\u0275\u0275directiveInject(E.ElementRef))};static#t=this.\u0275cmp=E.\u0275\u0275defineComponent({type:oe,selectors:[["app-metib-autocomplete"]],hostBindings:function(pn,In){1&pn&&E.\u0275\u0275listener("click",function(Tn){return In.onClick(Tn)},!1,E.\u0275\u0275resolveDocument)},inputs:{cssClass:"cssClass",filterByField:"filterByField",placeholder:"placeholder",title:"title",titlePrefix:"titlePrefix",maxLength:"maxLength",appearance:"appearance",isRequired:"isRequired",items:"items"},features:[E.\u0275\u0275ProvidersFeature([Z])],decls:3,vars:9,consts:[[1,"dynamic-autocomplete"],[2,"width","100%",3,"placeholder","title","maxLength","titlePrefix","ngModel","appearance","required","ngModelChange"],[3,"open","options","select"]],template:function(pn,In){1&pn&&(E.\u0275\u0275elementStart(0,"div",0)(1,"app-metib-input",1),E.\u0275\u0275listener("ngModelChange",function(Tn){return In.changeSearchValue(Tn)}),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(2,"app-form-selection-options",2),E.\u0275\u0275listener("select",function(Tn){return In.setItem(Tn)}),E.\u0275\u0275elementEnd()()),2&pn&&(E.\u0275\u0275advance(1),E.\u0275\u0275property("placeholder",In.placeholder)("title",In.title)("maxLength",In.maxLength)("titlePrefix",In.titlePrefix)("ngModel",In.valueForSearch)("appearance",In.appearance)("required",In.isRequired),E.\u0275\u0275advance(1),E.\u0275\u0275property("open",In.show)("options",In.filteredItems))},dependencies:[e.NgControlStatus,e.RequiredValidator,e.NgModel,H.d,Ce.w],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%]   .dynamic-autocomplete[_ngcontent-%COMP%]{position:relative;width:100%}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}.ng-touched.ng-invalid[_nghost-%COMP%]     app-metib-input .dynamic-input__input{border-bottom:1px solid #d9291e!important;box-shadow:inset 0 -1px #d9291e}.ng-touched.ng-invalid[_nghost-%COMP%]     app-metib-input .dynamic-input__input::placeholder{color:#88909b;opacity:1}']})}(0,w.gn)([(0,_.SQ)()],oe.prototype,"lang",void 0);var Pe=t(30815),Ie=t(15725),pt=t(90995),Ht=t(94938);const Wt=function(bn){return{disabled:bn}};function Xe(bn,hn){if(1&bn){const pn=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"app-radio",13),E.\u0275\u0275listener("click",function(Dn){E.\u0275\u0275restoreView(pn);const Tn=E.\u0275\u0275nextContext().$implicit,mn=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(mn.onAccountTypeClick(Dn,Tn.value))}),E.\u0275\u0275elementEnd()}if(2&bn){const pn=E.\u0275\u0275nextContext(),In=pn.$implicit,Dn=pn.index,Tn=E.\u0275\u0275nextContext(2);E.\u0275\u0275property("value",In.value)("label",In.caption)("disabled",In.disabled)("ngClass",E.\u0275\u0275pureFunction1(6,Wt,In.disabled))("chosen",Tn.selectedAccountType===In.value),E.\u0275\u0275attribute("data-qa","1681812945"+Dn)}}function Qe(bn,hn){if(1&bn&&(E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275template(1,Xe,1,8,"app-radio",12),E.\u0275\u0275elementContainerEnd()),2&bn){const pn=hn.$implicit,In=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!!In.currentUlSettings[In.bankAccountAgreementUlSettings[pn.value]])}}function Be(bn,hn){if(1&bn&&(E.\u0275\u0275elementStart(0,"div",10),E.\u0275\u0275template(1,Qe,2,1,"ng-container",11),E.\u0275\u0275elementEnd()),2&bn){const pn=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("ngForOf",pn.bankAccountAgreementTypes)}}function at(bn,hn){if(1&bn&&E.\u0275\u0275element(0,"app-metib-select",22),2&bn){const pn=E.\u0275\u0275nextContext(3);E.\u0275\u0275property("items",pn.mainCurrencyItems)("title","Currency")("placeholder","Currency")}}const lt=function(){return["caption","description"]};function Dt(bn,hn){if(1&bn&&(E.\u0275\u0275elementStart(0,"div",23),E.\u0275\u0275element(1,"app-metib-autocomplete",24),E.\u0275\u0275pipe(2,"translate"),E.\u0275\u0275pipe(3,"translate"),E.\u0275\u0275elementEnd()),2&bn){const pn=E.\u0275\u0275nextContext(3);E.\u0275\u0275advance(1),E.\u0275\u0275property("items",pn.otherCurrencyItems)("filterByField",E.\u0275\u0275pureFunction0(11,lt))("isRequired",pn.isOtherCurrencyFieldRequired)("placeholder",E.\u0275\u0275pipeBind2(2,5,"Enter currency name",pn.lang))("title",E.\u0275\u0275pipeBind2(3,8,"Enter currency name",pn.lang))}}function Yt(bn,hn){if(1&bn&&(E.\u0275\u0275elementStart(0,"div",19)(1,"div",6),E.\u0275\u0275text(2,"\u0412\u0430\u043b\u044e\u0442\u0430 \u0441\u0447\u0435\u0442\u0430"),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(3,at,1,3,"app-metib-select",20),E.\u0275\u0275template(4,Dt,4,12,"div",21),E.\u0275\u0275elementEnd()),2&bn){const pn=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(3),E.\u0275\u0275property("ngIf",pn.isRubAccountType),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!pn.isRubAccountType)}}function Tt(bn,hn){if(1&bn&&(E.\u0275\u0275elementStart(0,"div",25)(1,"div",6),E.\u0275\u0275text(2),E.\u0275\u0275pipe(3,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275element(4,"app-metib-input",26),E.\u0275\u0275elementEnd()),2&bn){const pn=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind2(3,2,"Organization",pn.lang)),E.\u0275\u0275advance(2),E.\u0275\u0275property("title","International name")}}function ot(bn,hn){if(1&bn){const pn=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"div",27)(1,"app-button",28),E.\u0275\u0275listener("clicked",function(){E.\u0275\u0275restoreView(pn);const Dn=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(Dn.handleSendButtonClick())}),E.\u0275\u0275elementEnd()()}}function Gt(bn,hn){if(1&bn&&(E.\u0275\u0275elementStart(0,"div",14),E.\u0275\u0275template(1,Yt,5,2,"div",15),E.\u0275\u0275template(2,Tt,5,5,"div",16),E.\u0275\u0275elementStart(3,"app-metib-comment",17),E.\u0275\u0275text(4," \u041f\u0440\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430, \u0432\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044c \u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0411\u0430\u043d\u043a\u043e\u043c \u0443\u0441\u043b\u0443\u0433\u0438 \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044e \u0441\u0447\u0435\u0442\u0430, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0422\u0430\u0440\u0438\u0444\u0430\u043c. "),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(5,ot,2,0,"div",18),E.\u0275\u0275elementEnd()),2&bn){const pn=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",pn.isRubAccountType||pn.selectedAccountType&&!pn.isRubAccountType),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!pn.isRubAccountType),E.\u0275\u0275advance(1),E.\u0275\u0275property("disableToggleButton",!1),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",pn.selectedAccountType)}}class wt{constructor(hn,pn,In,Dn,Tn,mn,Yn,cn,Nn,Bt,En){this.openingCurrencyAccountService=hn,this.dynamicFormService=pn,this.router=In,this.route=Dn,this.documentSignService=Tn,this.fb=mn,this.userDataService=Yn,this.cdr=cn,this.toastCustomService=Nn,this.modalService=Bt,this.documentService=En,this.pathData=[{capture:"Open accounts",bold:!0,href:"/opening-currency-account-history"}],this.formGroup=this.fb.group({bankName:["",[e.Validators.required]],intFullName:[{value:null}],selectedCurrCode:[{value:null},[e.Validators.required]],otherCurrCode:new e.FormControl(""),currCode:[{value:null},[e.Validators.required]],docNumber:new e.FormControl(""),docDate:new e.FormControl(new Date)}),this.bankAccountAgreementTypes=P.z7,this.bankAccountAgreementUlSettings=P.e1,this.mainCurrencyItems=P.uX,this.optionsBanks=P.ND,this.otherCurrencyItems=[],this.isOtherCurrencyFieldRequired=!1,this.isLoading=!1,this.destroy$=new C.x,this.rurCurrencyCode="RUB",this._currenciesForSelect=[]}get isEditMode(){return this.queryParams&&"edit"===this.queryParams.action}prefillData(){this.isLoading=!0,(0,T.$)([this.userDataService.getClientInfoOrganization(),this.documentSignService.getDocumentInfo(p.o.BankAccountAgreement,this.queryParams.docModule,this.queryParams.id)]).pipe((0,F.q)(1),(0,z.R)(this.destroy$)).subscribe(([hn,pn])=>{if(pn){this.selectedAccountType=pn.bankAccountAgreement.accountType,this.updateIsRubAccountType(),this.isRubAccountType&&this.formGroup.get("selectedCurrCode").disable({emitEvent:!1});const In=!this.mainCurrencyItems.find(Dn=>Dn.value===pn.bankAccountAgreement.currCode);this.formGroup.patchValue({docNumber:pn.bankAccountAgreement.docNumber},{emitEvent:!1}),this.formGroup.patchValue({selectedCurrCode:pn.bankAccountAgreement.currCode},{emitEvent:!1}),this.setCurrCode(pn.bankAccountAgreement.currCode),this.formGroup.patchValue({intFullName:pn.bankAccountAgreement.intFullName,docDate:new Date(pn.bankAccountAgreement.docDate),selectedCurrCode:In?"other":pn.bankAccountAgreement.currCode,otherCurrCode:In?pn.bankAccountAgreement.currCode:null,currCode:pn.bankAccountAgreement.currCode},{emitEvent:!1}),hn?.intName&&this.formGroup.get("intFullName").disable({emitEvent:!1}),this.isLoading=!1}else this.router.navigate(["/"])})}loadBPX(){this.isLoading=!0,this.userDataService.getClientInfoOrganization().pipe((0,z.R)(this.destroy$)).subscribe(hn=>{this.optionsBanks=this.optionsBanks.filter(pn=>"bpx"!==pn.value||"true"===hn.isBpx),1===this.optionsBanks.length&&this.formGroup.get("bankName").patchValue(this.optionsBanks[0].value)})}loadInternationalName(){this.isLoading=!0,this.openingCurrencyAccountService.fetchInitialData().pipe((0,z.R)(this.destroy$),(0,j.w)(({docNumber:hn,currencies:pn,intFullName:In,ulSettings:Dn})=>{this.currentUlSettings=Dn,this._currenciesForSelect=this.dynamicFormService.generateItemsForSelect(pn,"code","caption");const Tn=this._currenciesForSelect.filter(mn=>mn.purpose&&"true"===mn.purpose.OpenValACC);if(this.otherCurrencyItems=Tn,this.isLoading=!1,this.formGroup.patchValue({intFullName:In,docNumber:hn,docDate:new Date},{emitEvent:!1}),this.setValidatorsIntFullNameField(),In?this.formGroup.get("intFullName").disable({emitEvent:!1}):(this.formGroup.updateValueAndValidity({emitEvent:!1}),this.initIntlNameValidation()),this.isEditMode){const{docType:mn,docModule:Yn,id:cn}=this.queryParams;if(mn&&Yn&&cn)return this.documentSignService.getDocumentInfo(mn,Yn,cn)}return(0,I.of)([])})).subscribe(hn=>{hn&&hn.bankAccountAgreement&&hn.bankAccountAgreement.currCode&&this.formGroup.patchValue({selectedCurrCode:hn.bankAccountAgreement.currCode}),this.isLoading=!1})}subscribeOnBankChanges(){this.formGroup.get("bankName").valueChanges.pipe((0,z.R)(this.destroy$)).subscribe(hn=>{this.selectedAccountType="",this.bankAccountAgreementTypes.forEach(pn=>pn.disabled="bpx"===hn&&"12"===pn.value),this.formGroup.get("otherCurrCode").patchValue(null,{emitEvent:!1}),this.filterCurrenciesByBank(hn)})}filterCurrenciesByBank(hn){this.otherCurrencyItems=this._currenciesForSelect.filter("bpx"!==hn?pn=>pn.purpose&&"true"===pn.purpose.OpenValACC:pn=>pn.purpose&&"true"===pn.purpose.OpenBPXValACC)}subscribeOnSelectedCurrCodeChanges(){const hn=this.formGroup.get("otherCurrCode");this.formGroup.get("selectedCurrCode").valueChanges.pipe((0,z.R)(this.destroy$)).subscribe(pn=>{this.isRubAccountType?(this.isOtherCurrencyFieldRequired=!1,hn.clearValidators(),hn.disable({emitEvent:!1}),hn.setValue(null,{emitEvent:!1}),this.setCurrCode(pn)):(this.isOtherCurrencyFieldRequired=!0,hn.enable({emitEvent:!1}),hn.setValidators([e.Validators.required]),hn.markAsUntouched(),hn.markAsPristine()),this.formGroup.updateValueAndValidity({emitEvent:!1})})}subscribeOnOtherCurrCodeChanges(){const hn=this.formGroup.get("otherCurrCode");hn.valueChanges.pipe((0,X.b)(0),(0,z.R)(this.destroy$)).subscribe(pn=>{let In=pn;""===pn.trim()&&(In=pn.trim());const Dn=this.otherCurrencyItems.find(mn=>mn.caption===In);Dn?.code&&(In=Dn.code),this.formGroup.get("otherCurrCode").patchValue(In,{emitEvent:!1}),this.otherCurrencyItems.find(mn=>mn.code===In)?hn.setErrors(null):hn.setErrors({invalid:!0}),hn.markAsTouched(),this.formGroup.updateValueAndValidity({emitEvent:!1})})}initIntlNameValidation(){const hn=this.formGroup.get("intFullName");hn.valueChanges.pipe((0,X.b)(300),(0,z.R)(this.destroy$)).subscribe(pn=>{""===pn?.trim()||pn?.trim()?.length<3?hn.setErrors({invalid:!0}):this.setValidatorsIntFullNameField(),hn.markAsTouched(),this.formGroup.updateValueAndValidity({emitEvent:!1})})}setCurrCode(hn){this.formGroup.get("currCode").setValue(hn,{emitEvent:!1})}updateIsRubAccountType(){this.isRubAccountType="1"===this.selectedAccountType||"12"===this.selectedAccountType}setValidatorsIntFullNameField(){this.formGroup.get("intFullName").setValidators([e.Validators.required,e.Validators.pattern("^[A-Za-z0-9'\" -]+$"),e.Validators.minLength(3),e.Validators.maxLength(255)])}ngOnInit(){this.route.queryParams.pipe((0,z.R)(this.destroy$)).subscribe(hn=>{this.queryParams=hn,this.isEditMode?this.prefillData():(this.loadBPX(),this.loadInternationalName())}),this.subscribeOnBankChanges(),this.subscribeOnSelectedCurrCodeChanges(),this.subscribeOnOtherCurrCodeChanges(),this.queryParams=this.route.snapshot.queryParams}onAccountTypeClick(hn,pn){hn.preventDefault(),this.selectedAccountType=pn,this.updateIsRubAccountType(),this.isRubAccountType?(this.mainCurrencyItems=P.uX,this.cdr.detectChanges(),this.formGroup.controls.selectedCurrCode.patchValue(this.rurCurrencyCode,{emitEvent:!1}),this.formGroup.controls.selectedCurrCode.disable(),this.formGroup.controls.selectedCurrCode.setValidators([e.Validators.required])):(this.mainCurrencyItems=P.uX.filter(In=>In.value!==this.rurCurrencyCode),this.formGroup.controls.selectedCurrCode.patchValue(null,{emitEvent:!1}),this.formGroup.controls.selectedCurrCode.enable(),this.formGroup.controls.selectedCurrCode.clearValidators())}handleSendButtonClick(){this.toastCustomService.closeAllErrorToasts(),this.formGroup.controls.otherCurrCode.value&&this.setCurrCode(this.formGroup.controls.otherCurrCode.value),this.isRubAccountType?this.formGroup.controls.intFullName.disable():(this.formGroup.controls.selectedCurrCode.patchValue(null,{emitEvent:!1}),this.formGroup.controls.selectedCurrCode.clearValidators()),this.formGroup.updateValueAndValidity();const hn=this.formGroup.get("bankName");if((!hn.value||null===hn.value?.value)&&this.toastCustomService.show("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0431\u0430\u043d\u043a","error"),this.formGroup.invalid)return this.formGroup.get("otherCurrCode").markAsTouched(),this.formGroup.markAllAsTouched(),this.formGroup.updateValueAndValidity(),void this.toastCustomService.show("Required fields on the form must be filled in","error");this.isLoading=!0;const pn=this.formGroup.get("docDate").value,In="bpx"===this.formGroup.get("bankName").value?"true":"false",Dn={...this.formGroup.getRawValue(),docDate:$()(pn).format("YYYY-MM-DD"),accountType:this.selectedAccountType,isBpx:In};delete Dn.bankName,this.openingCurrencyAccountService.openCurrencyAccount(Dn).pipe((0,z.R)(this.destroy$)).subscribe({next:({id:Tn})=>{this.isLoading=!1,this.openSign(Tn)},error:Tn=>{this.isLoading=!1;const mn=Tn?.errorText||Tn?.warningText;mn&&this.toastCustomService.show(mn,"error")}})}openSign(hn){this.modalService.open(B.D,{inputs:{confirmAction:()=>{this.toastCustomService.show("\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d \u0432 \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d","success"),this.modalService.close(),this.router.navigate(["opening-currency-account-history",{queryParams:{page:1,size:20}}])},cancelAction:()=>{this.documentService.deleteDocument(hn).subscribe()},document:{docIds:[hn],docType:p.o.BankAccountAgreement,docModule:"ibankul"}},isSign:!0,isSignDesign:!0})}handleCloseButtonClick(){this.router.navigate(["/opening-currency-account-history"])}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(pn){return new(pn||wt)(E.\u0275\u0275directiveInject(R.c),E.\u0275\u0275directiveInject(ne.w),E.\u0275\u0275directiveInject(L.F0),E.\u0275\u0275directiveInject(L.gz),E.\u0275\u0275directiveInject(G.V),E.\u0275\u0275directiveInject(e.FormBuilder),E.\u0275\u0275directiveInject(ce.M),E.\u0275\u0275directiveInject(E.ChangeDetectorRef),E.\u0275\u0275directiveInject(xe.j),E.\u0275\u0275directiveInject(we.Z),E.\u0275\u0275directiveInject(Ge.Z))};static#t=this.\u0275cmp=E.\u0275\u0275defineComponent({type:wt,selectors:[["app-opening-currency-account"]],decls:12,vars:16,consts:[["data-qa","1657968395027",3,"pathData"],["data-qa","1657968399965",3,"withCloseButton","close"],["data-qa","1657968403611","page-title-content","",3,"dateEditable","numberEditable","date","number","text"],["data-qa","1657968409801",1,"opening-currency-account",3,"formGroup"],[1,"opening-currency-account-bank-select"],["formControlName","bankName","label","\u0411\u0430\u043d\u043a \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u0447\u0435\u0442\u0430",3,"selectOptions","emptyValue"],[1,"opening-currency-account-title"],["class","opening-currency-account-types",4,"ngIf"],["class","opening-currency-account-form",4,"ngIf"],[3,"hidden"],[1,"opening-currency-account-types"],[4,"ngFor","ngForOf"],["name","opening-currency-account-type",3,"value","label","disabled","ngClass","chosen","click",4,"ngIf"],["name","opening-currency-account-type",3,"value","label","disabled","ngClass","chosen","click"],[1,"opening-currency-account-form"],["class","opening-currency-account-form__currency",4,"ngIf"],["class","opening-currency-account-form__org",4,"ngIf"],["commentStyle","yellow",3,"disableToggleButton"],["class","buttons-wrapper",4,"ngIf"],[1,"opening-currency-account-form__currency"],["customIcon","expand_more","appearance","dcb-alt","formControlName","selectedCurrCode","data-qa","1680260399",3,"items","title","placeholder",4,"ngIf"],["class","other-currency",4,"ngIf"],["customIcon","expand_more","appearance","dcb-alt","formControlName","selectedCurrCode","data-qa","1680260399",3,"items","title","placeholder"],[1,"other-currency"],["appearance","dcb","formControlName","otherCurrCode","selectedOptionsCssClass","gray-color-item","data-qa","1678362480",3,"items","filterByField","isRequired","placeholder","title"],[1,"opening-currency-account-form__org"],["formControlName","intFullName","appearance","dcb","data-qa","1680260346",3,"title"],[1,"buttons-wrapper"],["data-qa","1657968421760","text","Send for signature","type","small header",3,"clicked"]],template:function(pn,In){1&pn&&(E.\u0275\u0275element(0,"app-path",0),E.\u0275\u0275elementStart(1,"app-page",1),E.\u0275\u0275listener("close",function(){return In.handleCloseButtonClick()}),E.\u0275\u0275element(2,"app-line-with-number-and-date",2),E.\u0275\u0275pipe(3,"translate"),E.\u0275\u0275elementStart(4,"div",3)(5,"div",4),E.\u0275\u0275element(6,"app-metib-select-lib",5),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(7,"div",6),E.\u0275\u0275text(8,"\u0422\u0438\u043f \u0441\u0447\u0435\u0442\u0430"),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(9,Be,2,1,"div",7),E.\u0275\u0275template(10,Gt,6,4,"div",8),E.\u0275\u0275elementEnd(),E.\u0275\u0275element(11,"app-loader",9),E.\u0275\u0275elementEnd()),2&pn&&(E.\u0275\u0275property("pathData",In.pathData),E.\u0275\u0275advance(1),E.\u0275\u0275property("withCloseButton",!0),E.\u0275\u0275advance(1),E.\u0275\u0275property("dateEditable",!1)("numberEditable",!1)("date",In.formGroup.get("docDate").value)("number",In.formGroup.get("docNumber").value)("text",E.\u0275\u0275pipeBind2(3,13,"Application for opening an account",In.lang)),E.\u0275\u0275advance(2),E.\u0275\u0275property("formGroup",In.formGroup),E.\u0275\u0275advance(2),E.\u0275\u0275property("selectOptions",In.optionsBanks)("emptyValue",!1),E.\u0275\u0275advance(3),E.\u0275\u0275property("ngIf",In.currentUlSettings),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",In.formGroup&&In.selectedAccountType),E.\u0275\u0275advance(1),E.\u0275\u0275property("hidden",!In.isLoading))},dependencies:[ct.U,pe.R,Ce.w,U.A,oe,Pe.l,Ie.I,pt.r,n.mk,n.sg,n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,Ht.K,d.E,i.A,_.X$],styles:['@charset "UTF-8";.opening-currency-account[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-direction:column;padding-top:32px;max-width:720px}.opening-currency-account-bank-select[_ngcontent-%COMP%]{padding-bottom:40px}.opening-currency-account-info[_ngcontent-%COMP%]{color:#444;margin-bottom:24px}.opening-currency-account-title[_ngcontent-%COMP%]{font-weight:700;font-size:18px;margin-bottom:12px}.opening-currency-account-types[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px;margin-bottom:40px;margin-top:12px}.opening-currency-account-types[_ngcontent-%COMP%]   app-radio[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.opening-currency-account-form[_ngcontent-%COMP%]{max-width:660px}.opening-currency-account-form__org[_ngcontent-%COMP%], .opening-currency-account-form__currency[_ngcontent-%COMP%]{margin-bottom:40px}.opening-currency-account-form__currency[_ngcontent-%COMP%]   .other-currency[_ngcontent-%COMP%]{margin-top:12px}.opening-currency-account[_ngcontent-%COMP%]   .buttons-wrapper[_ngcontent-%COMP%]{display:flex;margin-top:48px;justify-content:space-between}.opening-currency-account[_ngcontent-%COMP%]   .flex-column[_ngcontent-%COMP%]{flex-direction:column}.opening-currency-account[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-top:20px}.opening-currency-account[_ngcontent-%COMP%]   app-metib-input[_ngcontent-%COMP%], .opening-currency-account[_ngcontent-%COMP%]   app-metib-select[_ngcontent-%COMP%]{width:100%}app-path[_ngcontent-%COMP%]{display:block;margin-bottom:24px}[_nghost-%COMP%]     .opening-currency-account app-metib-input, [_nghost-%COMP%]     .opening-currency-account app-metib-select{margin:0}[_nghost-%COMP%]     .opening-currency-account app-radio.disabled{pointer-events:none;opacity:1}']})}(0,w.gn)([(0,_.SQ)()],wt.prototype,"lang",void 0);const Ze=[{path:"",pathMatch:"full",component:wt},{path:"**",redirectTo:"/desktop"}];let Ut=(()=>{class bn{static#e=this.\u0275fac=function(In){return new(In||bn)};static#t=this.\u0275mod=E.\u0275\u0275defineNgModule({type:bn});static#n=this.\u0275inj=E.\u0275\u0275defineInjector({imports:[L.Bz.forChild(Ze),L.Bz]})}return bn})();var vn=t(80722);let xn=(()=>{class bn{static#e=this.\u0275fac=function(In){return new(In||bn)};static#t=this.\u0275mod=E.\u0275\u0275defineNgModule({type:bn});static#n=this.\u0275inj=E.\u0275\u0275defineInjector({providers:[R.c,a.p],imports:[Ut,O.m,x.N,l.u,h.B,u.h,m.d,n.ez,e.FormsModule,e.ReactiveFormsModule,vn.E,d.E,i.A]})}return bn})()},99045:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>O});var n=t(4128),e=t(39646),i=t(54004),d=t(6146),a=t(26306),u=t(94650),h=t(29198),l=t(3751),m=t(37601),x=t(92008);let O=(()=>{class L{constructor(B,_,y,$){this.vedService=B,this.apiService=_,this.userDataService=y,this.appConfigService=$}static isSomeAccountTypeAvailableForCreation(B){return!!(B[a.e1[1]]||B[a.e1[4]]||B[a.e1[12]])&&1===B["SERVICE_SECTIONS/ACCOUNT_AGREEMENT_SECTION"]}fetchInitialData(){return(0,n.D)([this.vedService.getNextDocNum(d.o.BankAccountAgreement,"ibankul"),this.userDataService.getClientInfoOrganization(),this.vedService.getCurrencyConversionList(),this.vedService.getCurrencyList(),(0,e.of)(this.appConfigService.settings)]).pipe((0,i.U)(([B,_,y,$,C])=>({docNumber:B.docNumber,intFullName:_.intName,currencies:(y?.data||[]).map(j=>{const I=j.description?JSON.parse(j.description):null,F=I&&I.OpenValACC?I:null,{code:z=""}=$.find(X=>X.isoCode===j.code)??{};return{...j,purpose:F,caption:`${j.caption} (${j.code})`,description:z}}),ulSettings:C.ulSettings})))}openCurrencyAccount(B){return this.apiService.post("bank_account_agreement/create",B)}static#e=this.\u0275fac=function(_){return new(_||L)(u.\u0275\u0275inject(h.$),u.\u0275\u0275inject(l.s),u.\u0275\u0275inject(m.M),u.\u0275\u0275inject(x._))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac})}return L})()},29148:(Ee,Q,t)=>{"use strict";t.d(Q,{J:()=>C});var n=t(97582),e=t(36895),i=t(16611),d=t(77579),a=t(82722),u=t(49066),h=t(94650),l=t(40929);let m=(()=>{class T{constructor(I){this.documentService=I}extractCardFileDocumentPDF(I,F,z,X){return this.documentService.getFile(I,F,z,!0,X)}static#e=this.\u0275fac=function(F){return new(F||T)(h.\u0275\u0275inject(l.Z))};static#t=this.\u0275prov=h.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac})}return T})();var x=t(24006),O=t(8058),L=t(75885),w=t(37601),B=t(68735),_=t(75568),y=t(18430),$=t(90995);class C{constructor(j,I,F,z,X,p){this.fb=j,this.dynamicFormService=I,this.lastOperationService=F,this.translation=z,this.exportCardFileDocumentsService=X,this.userDataService=p,this.cardIndexAccountsList=[],this.initPending=!0,this.restPending=!1,this.products=[],this.selectConfig=[{field:{name:"accId"},component:{placeholder:"Choose acc",title:"Payer account",type:u.j.Select},visual:{cssClass:"modal-select-for-sign",svgIcon:"expand_more"},select:{items:[]}}],this.form=this.fb.group({documentType:["pdf"],accId:[]}),this.ALL_CARD_FILE_DOCUMENTS={id:"all_card_file",info:"\u0412\u0441\u0435 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0435 \u0441\u0447\u0435\u0442\u0430 \u0441 \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u043e\u0439",balance:null},this.destroyed$=new d.x}get printButtonIsDisabled(){return["xlsx"].includes(this.chosenDocumentType)||!this.chosenCheckingAccount}get chosenDocumentType(){return this.form.controls.documentType.value}set chosenDocumentType(j){this.form.controls.documentType.setValue(j)}get chosenCheckingAccount(){return this.form.controls.accId.value}ngOnInit(){if(this.cardIndexAccountsList.length>0)return this.products=this.cardIndexAccountsList.map(j=>({id:j.accId,info:j.accName,balance:null})),this.products.push(this.ALL_CARD_FILE_DOCUMENTS),this.selectConfig[0].select.items=this.dynamicFormService.generateProductItemsForSelect(this.products),void(this.initPending=!1);this.userDataService.currentProduct$.pipe((0,a.R)(this.destroyed$)).subscribe(j=>{j&&this.products.push(j),this.products.push(this.ALL_CARD_FILE_DOCUMENTS),this.selectConfig[0].select.items=this.dynamicFormService.generateProductItemsForSelect(this.products),this.selectedProductId=j?.id,this.selectedProductId&&this.selectConfig[0].select.items.find(F=>F.value===this.selectedProductId)&&this.form.controls.accId.setValue(this.selectedProductId),this.initPending=!1})}onSubmit(j){if(!this.chosenCheckingAccount||"print"===j&&"pdf"!==this.chosenDocumentType)return;this.restPending=!0;const I=this.products.find(E=>E.id===this.chosenCheckingAccount),F=I&&I.number||I.info,z=`print/cardIndex/metinv/${this.chosenDocumentType}`,X=`${this.translation.translate("Card file")}-${F}.${this.chosenDocumentType}`,p=I.id===this.ALL_CARD_FILE_DOCUMENTS.id?null:I.id;this.exportCardFileDocumentsService.extractCardFileDocumentPDF(z,"download"===j,X,p?{accountId:p}:null).pipe((0,a.R)(this.destroyed$)).subscribe(()=>this.restPending=!1)}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(I){return new(I||C)(h.\u0275\u0275directiveInject(x.FormBuilder),h.\u0275\u0275directiveInject(O.w),h.\u0275\u0275directiveInject(L.o),h.\u0275\u0275directiveInject(i.D7),h.\u0275\u0275directiveInject(m),h.\u0275\u0275directiveInject(w.M))};static#t=this.\u0275cmp=h.\u0275\u0275defineComponent({type:C,selectors:[["app-export-card-file-documents-modal"]],inputs:{cardIndexAccountsList:"cardIndexAccountsList"},features:[h.\u0275\u0275ProvidersFeature([m,e.uU])],decls:23,vars:24,consts:[[1,"card-file-documents",3,"formGroup"],[1,"card-file-documents__type"],[1,"card-file-documents__type-title"],[1,"card-file-documents__type-radios"],[3,"chosen","name","value","click"],[1,"card-file-documents__type-radios-label"],[1,"card-file-documents__select"],[3,"config","formGroup"],[1,"card-file-documents__buttons"],[1,"card-file-documents__button",3,"click"],[3,"disabled","text","type"],[3,"hidden"]],template:function(I,F){1&I&&(h.\u0275\u0275elementStart(0,"form",0)(1,"div",1)(2,"div",2),h.\u0275\u0275text(3),h.\u0275\u0275pipe(4,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(5,"div",3)(6,"app-radio",4),h.\u0275\u0275listener("click",function(){return F.chosenDocumentType="pdf"}),h.\u0275\u0275elementStart(7,"span",5),h.\u0275\u0275text(8,"PDF"),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(9,"app-radio",4),h.\u0275\u0275listener("click",function(){return F.chosenDocumentType="xlsx"}),h.\u0275\u0275elementStart(10,"span",5),h.\u0275\u0275text(11,"XLSX"),h.\u0275\u0275elementEnd()()()(),h.\u0275\u0275elementStart(12,"div",2),h.\u0275\u0275text(13),h.\u0275\u0275pipe(14,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(15,"div",6),h.\u0275\u0275element(16,"app-dynamic-form",7),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(17,"div",8)(18,"div",9),h.\u0275\u0275listener("click",function(){return F.onSubmit("download")}),h.\u0275\u0275element(19,"app-button",10),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(20,"div",9),h.\u0275\u0275listener("click",function(){return F.onSubmit("print")}),h.\u0275\u0275element(21,"app-button",10),h.\u0275\u0275elementEnd()(),h.\u0275\u0275element(22,"app-loader",11),h.\u0275\u0275elementEnd()),2&I&&(h.\u0275\u0275property("formGroup",F.form),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate1(" ",h.\u0275\u0275pipeBind2(4,18,"Format",F.lang)," "),h.\u0275\u0275advance(3),h.\u0275\u0275property("chosen","pdf"===F.chosenDocumentType)("name","document-type")("value","pdf"),h.\u0275\u0275advance(3),h.\u0275\u0275property("chosen","xlsx"===F.chosenDocumentType)("name","document-type")("value","xlsx"),h.\u0275\u0275advance(4),h.\u0275\u0275textInterpolate1(" ",h.\u0275\u0275pipeBind2(14,21,"Account",F.lang)," "),h.\u0275\u0275advance(3),h.\u0275\u0275property("config",F.selectConfig)("formGroup",F.form),h.\u0275\u0275advance(3),h.\u0275\u0275property("disabled",!F.chosenCheckingAccount)("text","Download")("type","medium-for-sign"),h.\u0275\u0275advance(2),h.\u0275\u0275property("disabled",F.printButtonIsDisabled)("text","Print")("type","medium-for-sign-white"),h.\u0275\u0275advance(1),h.\u0275\u0275property("hidden",!F.initPending&&!F.restPending))},dependencies:[x.\u0275NgNoValidate,x.NgControlStatusGroup,B.U,_.R,x.FormGroupDirective,y.r,$.r,i.X$],styles:['@charset "UTF-8";.card-file-documents[_ngcontent-%COMP%]{padding:24px 32px;width:624px}@media screen and (max-width: 920px){.card-file-documents[_ngcontent-%COMP%]{width:100%}}@media (max-width: 768px){.card-file-documents[_ngcontent-%COMP%]{padding:24px 16px}}.card-file-documents__type[_ngcontent-%COMP%]{padding-bottom:32px}.card-file-documents__type-title[_ngcontent-%COMP%]{font-weight:700;font-size:18px;font-family:Open Sans,Source Sans Pro,sans-serif;color:#080708;margin-bottom:12px}.card-file-documents__type-radios[_ngcontent-%COMP%]{display:flex}.card-file-documents__type-radios-label[_ngcontent-%COMP%]{padding-left:12px;font-family:Open Sans,Source Sans Pro,sans-serif}.card-file-documents__type-radios[_ngcontent-%COMP%]   app-radio[_ngcontent-%COMP%]{margin-right:32px}.card-file-documents__type-radios[_ngcontent-%COMP%]   app-radio[_ngcontent-%COMP%]:last-child{margin-right:0}.card-file-documents__buttons[_ngcontent-%COMP%]{margin-top:60px;display:flex;align-items:center;column-gap:16px}[_nghost-%COMP%]     app-dynamic-form .dynamic-form-field{margin:0!important}[_nghost-%COMP%]     app-dynamic-form .dynamic-form-field .dynamic-select__title{padding:5px 36px 0 12px}[_nghost-%COMP%]     app-dynamic-form .dynamic-form-field .modal-select-for-sign .dynamic-select__fake{padding:28px 45px 8px 12px}[_nghost-%COMP%]     app-dynamic-form .dynamic-form-field .select-icon-position{top:calc(50% - 3px);right:11px}']})}(0,n.gn)([(0,i.SQ)()],C.prototype,"lang",void 0)},72695:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>n});const n=(e,i)=>{let d;return d=e.swiftBankingInformation?[{title:"Beneficiary",value:e.swiftBankingInformation.beneficiary},{title:"Beneficiary account",value:e.swiftBankingInformation.beneficiaryAcc},{title:"Transit beneficiary account",value:e.transitAccount},{title:"Recipient beneficiary bank",value:e.swiftBankingInformation.corrBank},{title:"Requisites Beneficiarys Bank SWIFT",value:e.swiftBankingInformation.corrSwift},{title:"Recipient bank address",value:e.swiftBankingInformation.internationalAddress}]:[{title:"Recipient bank name",value:e.bankingInformation.name},{title:"BIK",value:e.bankingInformation.bic},{title:"Requisites Corr Account",value:e.bankingInformation.correspondentAccount},{title:"Recipient",value:e.bankingInformation.payee},{title:"INN",value:i.INN},{title:"KPP",value:i.KPP},{title:"Corr acc number",value:e.number}],d.filter(a=>!!a.value)}},39916:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>y});var n=t(97582),e=t(16611),i=t(77579),d=t(54968),a=t(82722),u=t(94650),h=t(15644),l=t(38101),m=t(36895),x=t(90995),O=t(59650),L=t(44509),w=t(98504);function B($,C){if(1&$&&(u.\u0275\u0275elementStart(0,"tr",9)(1,"td",10),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"td",10),u.\u0275\u0275text(4),u.\u0275\u0275pipe(5,"appCurrency"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(6,"td",10),u.\u0275\u0275text(7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(8,"td",10),u.\u0275\u0275text(9),u.\u0275\u0275elementEnd()()),2&$){const T=C.$implicit,j=C.index,I=u.\u0275\u0275nextContext();u.\u0275\u0275attribute("data-qa","1657875036565"+j),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(I.configUtilService.formatDateString(T.beginDate)),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind1(5,5,T.amount)),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(T.reason),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(T.stayOrganization)}}const _=function($){return{"max-height":$}};class y{constructor(C,T,j){this.configUtilService=C,this.translation=T,this.modalService=j,this.destroy$=new i.x,this.buttonText=this.translation.translate("Ok"),this.tableScrollHeight=.7*window.innerHeight-190}ngOnInit(){this.product.stays=this.configUtilService.getArray(this.product.stays),(0,d.R)(window,"resize").pipe((0,a.R)(this.destroy$)).subscribe(()=>{this.tableScrollHeight=.7*window.innerHeight-190})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}close(){this.modalService.close()}static#e=this.\u0275fac=function(T){return new(T||y)(u.\u0275\u0275directiveInject(h.Pj),u.\u0275\u0275directiveInject(e.D7),u.\u0275\u0275directiveInject(l.Z))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-restrictions-modal"]],decls:25,vars:29,consts:[["data-qa","1657874560015",1,"restrictions"],[1,"restrictions__title"],["autoHeightDisabled","false",3,"ngStyle"],[1,"restrictions__table"],[1,"restrictions__table__title"],[1,"restrictions__table__title-td"],["class","restrictions__table__tr",4,"ngFor","ngForOf"],[1,"restrictions__footer"],["data-qa","1657875048224","type","large",3,"text","click"],[1,"restrictions__table__tr"],[1,"restrictions__table__td"]],template:function(T,j){1&T&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1),u.\u0275\u0275text(2),u.\u0275\u0275pipe(3,"translate"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"ng-scrollbar",2)(5,"table",3)(6,"tr",4)(7,"td",5),u.\u0275\u0275text(8),u.\u0275\u0275pipe(9,"translate"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(10,"td",5),u.\u0275\u0275text(11),u.\u0275\u0275pipe(12,"translate"),u.\u0275\u0275pipe(13,"currencySymbol"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(14,"td",5),u.\u0275\u0275text(15),u.\u0275\u0275pipe(16,"translate"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(17,"td",5),u.\u0275\u0275text(18),u.\u0275\u0275pipe(19,"translate"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(20,B,10,7,"tr",6),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(21,"div",7)(22,"app-button",8),u.\u0275\u0275listener("click",function(){return j.close()}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(23,"span"),u.\u0275\u0275text(24,"\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u0432 \u0432\u0430\u0448\u0435 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0431\u0430\u043d\u043a\u0430"),u.\u0275\u0275elementEnd()()()),2&T&&(u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate2("",u.\u0275\u0275pipeBind2(3,10,"Account Restrictions",j.lang)," \u2116 ",j.product.formattedNumber,""),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngStyle",u.\u0275\u0275pureFunction1(27,_,j.tableScrollHeight+"px")),u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind2(9,13,"Date overlay",j.lang)),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate2("",u.\u0275\u0275pipeBind2(12,16,"Amount",j.lang)," , ",u.\u0275\u0275pipeBind1(13,19,j.product.currency),""),u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind2(16,21,"Overlay basis",j.lang)),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind2(19,24,"IFNS Code",j.lang)),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",j.product.stays),u.\u0275\u0275advance(2),u.\u0275\u0275property("text",j.buttonText))},dependencies:[m.sg,m.PC,x.r,O.KC,e.X$,L.G,w.H],styles:['@charset "UTF-8";.restrictions__title[_ngcontent-%COMP%]{font-size:2em;font-weight:500;color:#284681;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:40px}.restrictions__table[_ngcontent-%COMP%]{margin:25px 0;width:100%;box-sizing:border-box;border-spacing:initial;border-collapse:collapse}.restrictions__table__title[_ngcontent-%COMP%]{background-color:#f1f2f2}.restrictions__table__title-td[_ngcontent-%COMP%]{padding:10px;color:#88909b;font-size:18px;width:150px}.restrictions__table__tr[_ngcontent-%COMP%]{border-bottom:1px solid #f1f2f2}.restrictions__table__td[_ngcontent-%COMP%]{padding:20px 10px;font-size:20px;color:#444}.restrictions__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.restrictions__footer[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:auto 0 auto auto;color:#88909b}#modal-container[_ngcontent-%COMP%]{width:1400px}']})}(0,n.gn)([(0,e.SQ)()],y.prototype,"lang",void 0)},49211:(Ee,Q,t)=>{"use strict";t.d(Q,{W:()=>p});var n=t(94650),e=t(77579),i=t(11482),d=t(11797),a=t(81300),u=t(40929),h=t(9149),l=t(44180),m=t(36895),x=t(54680),O=t(24201),L=t(97392);function w(P,E){1&P&&n.\u0275\u0275element(0,"mat-icon",16)}function B(P,E){1&P&&(n.\u0275\u0275elementStart(0,"mat-icon",17),n.\u0275\u0275text(1,"close"),n.\u0275\u0275elementEnd())}const _=function(P){return{color:P}};function y(P,E){if(1&P&&(n.\u0275\u0275elementStart(0,"div",18),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&P){const R=E.$implicit;n.\u0275\u0275styleMap(n.\u0275\u0275pureFunction1(3,_,R.color)),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",R.title," ")}}function $(P,E){if(1&P){const R=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-menu-select",19),n.\u0275\u0275listener("changeEvent",function(G){n.\u0275\u0275restoreView(R);const ce=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(ce.runAction(G,ce.itemReference))}),n.\u0275\u0275elementStart(1,"button",20),n.\u0275\u0275element(2,"span",21),n.\u0275\u0275elementEnd()()}if(2&P){const R=n.\u0275\u0275nextContext();n.\u0275\u0275property("icon",!0)("items",R.itemReference.actions)}}function C(P,E){if(1&P&&n.\u0275\u0275element(0,"span",25),2&P){const R=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("innerHTML",R.getDeclineMessage(R.itemReference),n.\u0275\u0275sanitizeHtml)}}function T(P,E){if(1&P&&(n.\u0275\u0275elementStart(0,"mat-icon",31),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&P){const R=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275property("fontSet",R.matStyleOutlined&&"material-icons-outlined"),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(R.matIcon)}}function j(P,E){if(1&P&&n.\u0275\u0275element(0,"mat-icon",32),2&P){const R=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275property("svgIcon",R.svgIcon)}}function I(P,E){if(1&P){const R=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",27),n.\u0275\u0275listener("click",function(){const ce=n.\u0275\u0275restoreView(R).$implicit,xe=n.\u0275\u0275nextContext(3);return n.\u0275\u0275resetView(xe.runAction(ce,xe.itemReference))}),n.\u0275\u0275template(1,T,2,2,"mat-icon",28),n.\u0275\u0275template(2,j,1,1,"mat-icon",29),n.\u0275\u0275elementStart(3,"div",30),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd()()}if(2&P){const R=E.$implicit;n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",R.matIcon),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",R.svgIcon),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",R.description," ")}}function F(P,E){if(1&P&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,I,5,3,"div",26),n.\u0275\u0275elementContainerEnd()),2&P){const R=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",R.itemReference.actions)}}function z(P,E){if(1&P&&(n.\u0275\u0275elementStart(0,"div",22),n.\u0275\u0275template(1,C,1,1,"span",23),n.\u0275\u0275template(2,F,2,1,"ng-container",24),n.\u0275\u0275elementEnd()),2&P){const R=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf","error"===(null==R.itemReference?null:R.itemReference.document.status)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf","error"!==(null==R.itemReference?null:R.itemReference.document.status))}}const X=function(P){return{active:P}};let p=(()=>{class P{constructor(R,ne,G,ce,xe,we){this.referencesService=R,this.serverSettings=ne,this.documentService=G,this.toastCustomService=ce,this.router=xe,this.datePipe=we,this.unsubscribe$=new e.x,this.expandFlag=!1,this.refreshList=new n.EventEmitter,this.repeatReferenceEmit=new n.EventEmitter}runAction(R,ne){const G=`reference/print/${ne.document.id}`,ce=`reference/download/${ne.document.id}`;switch(R.name){case"print":this.documentService.getFile(G).subscribe();break;case"download":this.documentService.getFile(G,!0,`reference${ne.document.id}.pdf`).subscribe();break;case"download_signed":this.documentService.getFile(ce,!0,`reference${ne.document.id}`).subscribe();break;case"repeat":this.openModalRepeatReference(ne);break;case"delete":this.referencesService.removeReference(ne.document.id).subscribe(()=>{this.toastCustomService.show("\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0430","success"),this.refreshList.emit()});break;case"credit_cabinet":"loan_debt_reference"===ne.document.docType&&this.router.navigate(["/credit-redirect",2]).then(()=>window.scrollTo(0,0))}}openModalRepeatReference(R){let ne={};const G="true"===R?.document?.isBpx?"bpx":"metib";switch(R?.document?.docType){case i.X.Opens:ne={bankName:G};break;case i.X.Remainder:ne={bankName:G,restDate:R?.document?.restDate,accounts:Array.isArray(R?.document?.accounts)?[...R.document.accounts]:[R?.document?.accounts]};break;case i.X.Period:ne={bankName:G,startDate:R?.document?.startDate,endDate:R?.document?.endDate,accounts:Array.isArray(R?.document?.accounts)?[...R.document.accounts]:[R?.document?.accounts]};break;case i.X.Debt:case i.X.Card:ne={bankName:G,requestDate:R?.document?.requestDate}}this.repeatReferenceEmit.emit({data:{...ne},type:R?.document?.docType})}openReferenceActions(){(this.itemReference?.actions.length||"error"===this.itemReference?.document.status)&&(this.expandFlag=!0)}getTitleReference(R){switch(R){case i.X.Opens:return"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0441\u0447\u0435\u0442\u0430\u043c";case i.X.Remainder:return"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0430\u043c \u043d\u0430 \u0434\u0430\u0442\u0443";case i.X.Period:return"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e \u043e\u0431\u043e\u0440\u043e\u0442\u0430\u043c \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434";case i.X.Debt:return"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043e\u0431 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u0441\u0443\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438";case i.X.Card:return"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0438/\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u0438";default:return""}}getDescriptionReference(R){switch(R){case i.X.Opens:return"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430\u043c \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430";case i.X.Remainder:return"\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438: "+this.datePipe.transform(new Date(this.itemReference?.document?.restDate),"dd.MM.yyyy")+", "+this.itemReference?.document?.accountsInfo;case i.X.Period:return"\u041f\u0435\u0440\u0438\u043e\u0434: "+this.datePipe.transform(new Date(this.itemReference?.document?.startDate),"dd.MM.yyyy")+" \u043f\u043e "+this.datePipe.transform(new Date(this.itemReference?.document?.endDate),"dd.MM.yyyy")+", \u0441\u0447\u0435\u0442: "+this.itemReference?.document?.accountsInfo;case i.X.Debt:case i.X.Card:return"\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438: "+this.datePipe.transform(new Date(this.itemReference?.document?.requestDate),"dd.MM.yyyy");default:return""}}getDeclineMessage(R){return R?.document?.declineInfo?R?.document?.declineInfo:"\u041f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437."}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||P)(n.\u0275\u0275directiveInject(d.A),n.\u0275\u0275directiveInject(a.l),n.\u0275\u0275directiveInject(u.Z),n.\u0275\u0275directiveInject(h.j),n.\u0275\u0275directiveInject(l.F0),n.\u0275\u0275directiveInject(m.uU))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:P,selectors:[["app-references-item"]],inputs:{itemReference:"itemReference",expandFlag:"expandFlag"},outputs:{refreshList:"refreshList",repeatReferenceEmit:"repeatReferenceEmit"},decls:26,vars:26,consts:[[1,"item-history",3,"ngClass"],[1,"info-wrapper",3,"click","clickOutside"],["class","icon-item-history","svgIcon","pdf",4,"ngIf"],["class","icon-item-history",4,"ngIf"],[1,"status-wrapper-item-history-mobile"],[1,"date-item-history"],[1,"status-text-item-history",3,"ngClass"],[1,"description-item-history"],[1,"text-description"],[1,"text-description-main"],["class","text-description-tag",3,"style",4,"ngFor","ngForOf"],[1,"text-description","gray",3,"ngClass","title"],[1,"status-wrapper-item-history"],[1,"wrapper-menu"],["ngClass","actions","wrapperClass","wrapper-class",3,"icon","items","changeEvent",4,"ngIf"],["class","action-wrapper",4,"ngIf"],["svgIcon","pdf",1,"icon-item-history"],[1,"icon-item-history"],[1,"text-description-tag"],["ngClass","actions","wrapperClass","wrapper-class",3,"icon","items","changeEvent"],[1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"],[1,"action-wrapper"],["class","error-msg-action",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"error-msg-action",3,"innerHTML"],["class","item-action-wrapper",3,"click",4,"ngFor","ngForOf"],[1,"item-action-wrapper",3,"click"],["class","icon",3,"fontSet",4,"ngIf"],["class","icon",3,"svgIcon",4,"ngIf"],[1,"description-action"],[1,"icon",3,"fontSet"],[1,"icon",3,"svgIcon"]],template:function(ne,G){1&ne&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275listener("click",function(){return G.openReferenceActions()})("clickOutside",function(){return G.expandFlag=!1}),n.\u0275\u0275template(2,w,1,0,"mat-icon",2),n.\u0275\u0275template(3,B,2,0,"mat-icon",3),n.\u0275\u0275elementStart(4,"div",4)(5,"div",5),n.\u0275\u0275text(6),n.\u0275\u0275pipe(7,"date"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(8,"div",6),n.\u0275\u0275text(9),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(10,"div",7)(11,"div",8)(12,"div",9),n.\u0275\u0275text(13),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(14,y,2,5,"div",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(15,"div",11),n.\u0275\u0275text(16),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(17,"div",12)(18,"div",5),n.\u0275\u0275text(19),n.\u0275\u0275pipe(20,"date"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(21,"div",6),n.\u0275\u0275text(22),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(23,"div",13),n.\u0275\u0275template(24,$,3,2,"app-menu-select",14),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(25,z,3,2,"div",15),n.\u0275\u0275elementEnd()),2&ne&&(n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(22,X,G.expandFlag)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf","error"!==(null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.status)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf","error"===(null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.status)),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(7,16,null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.createStamp,"dd.MM.yyyy HH:mm")," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.status),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.statusCaption," "),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(G.getTitleReference(null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.docType)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.tags),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(24,X,G.expandFlag))("title",G.getDescriptionReference(null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.docType)),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",G.getDescriptionReference(null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.docType)," "),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(20,19,null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.createStamp,"dd.MM.yyyy HH:mm")," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.status),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",null==G.itemReference||null==G.itemReference.document?null:G.itemReference.document.statusCaption," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",null==G.itemReference?null:G.itemReference.actions.length),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",G.expandFlag))},dependencies:[x._,O.r,m.mk,m.sg,m.O5,L.Hw,m.uU],styles:['@charset "UTF-8";.item-history[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-family:Open Sans;font-style:normal}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{cursor:pointer;margin-top:1px;padding:19px;display:flex;align-items:center}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .wrapper-menu[_ngcontent-%COMP%]{min-width:40px}@media (max-width: 768px){.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{padding:16px 0;flex-wrap:wrap;justify-content:space-between}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .wrapper-menu[_ngcontent-%COMP%]{margin-top:-30px;min-width:25px}}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .icon-item-history[_ngcontent-%COMP%]{width:28px;height:28px;font-size:28px;color:#88909b;flex-shrink:0}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .icon-item-history-error[_ngcontent-%COMP%]{width:13px;height:13px;font-size:28px;color:#88909b;margin:7px;box-sizing:border-box;flex-shrink:0}@media (max-width: 768px){.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .icon-item-history[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .icon-item-history-error[_ngcontent-%COMP%]{display:none}}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]{width:calc(90% - 68px);padding-right:30px;display:flex;flex-direction:column}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]   .text-description[_ngcontent-%COMP%]{margin-left:20px;font-weight:400;font-size:16px;line-height:22px;color:#080708;display:flex;gap:12px;flex-wrap:wrap-reverse}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]   .text-description-main[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]   .text-description-tag[_ngcontent-%COMP%]{display:inline-block;height:22px;vertical-align:bottom;background-color:var(--background-light-gray);border-radius:4px;padding:4px 8px;color:var(--background-purpur);font-size:10px;font-weight:700;line-height:14px;text-transform:uppercase}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]   .text-description.gray[_ngcontent-%COMP%]{margin-top:10px;color:#88909b}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]   .text-description.active[_ngcontent-%COMP%]{text-overflow:unset;overflow:unset;white-space:unset}@media (max-width: 768px){.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]   .text-description[_ngcontent-%COMP%]{margin-left:0}}@media (max-width: 768px){.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .description-item-history[_ngcontent-%COMP%]{width:calc(100% - 40px)}}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]{width:13%;display:flex;flex-direction:column;min-width:10%;align-items:end}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .date-item-history[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .date-item-history[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:19px;text-align:right;color:#444;min-width:116px}@media (max-width: 768px){.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .date-item-history[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .date-item-history[_ngcontent-%COMP%]{text-align:left}}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .status-text-item-history[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .status-text-item-history[_ngcontent-%COMP%]{margin-top:10px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:16px;line-height:22px;text-align:right}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .status-text-item-history.end[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .status-text-item-history.end[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .status-text-item-history.end_sign[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .status-text-item-history.end_sign[_ngcontent-%COMP%]{color:#00a843}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .status-text-item-history.new[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .status-text-item-history.new[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .status-text-item-history.in_work[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .status-text-item-history.in_work[_ngcontent-%COMP%]{color:#2f54eb}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .status-text-item-history.error[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]   .status-text-item-history.error[_ngcontent-%COMP%]{color:#cf3737}@media (max-width: 768px){.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history[_ngcontent-%COMP%]{display:none}}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]{width:100%;display:none;align-items:center;flex-direction:row;margin-bottom:12px}.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]   .status-text-item-history[_ngcontent-%COMP%]{margin-left:12px;margin-top:0}@media (max-width: 768px){.item-history[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-wrapper-item-history-mobile[_ngcontent-%COMP%]{display:flex}}.action-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:63px}.action-wrapper[_ngcontent-%COMP%]   .error-msg-action[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#cf3737;padding:17px 0 18px 6px}.action-wrapper[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]{padding:17px 5px;cursor:pointer;display:flex;align-items:center;margin-right:40px}.action-wrapper[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:20px;color:#88909b;font-size:18px;margin-right:10px;display:flex;justify-content:center;align-items:center}.action-wrapper[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]   .description-action[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#88909b}.action-wrapper[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%], .action-wrapper[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]:hover   .description-action[_ngcontent-%COMP%]{color:#2f54eb}@media (max-width: 768px){.action-wrapper[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.action-wrapper[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]{padding-left:0}.action-wrapper[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]{display:none}.action-wrapper[_ngcontent-%COMP%]   .error-msg-action[_ngcontent-%COMP%], .item-history[_ngcontent-%COMP%]   .error-msg-action[_ngcontent-%COMP%]{padding:0 0 16px}}']})}return P})()},30334:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>Oe});var n=t(97582),e=t(16611),i=t(77579),d=t(82722),a=t(11482),u=t(24006),h=t(65938),l=t(15439),m=t.n(l),x=t(56451),O=t(39646),L=t(70262),B=(t(41795),t(73390)),_=t(94650),y=t(9149),$=t(11797),C=t(37601),T=t(36895),j=t(62256),I=t(18455),F=t(75568),z=t(88155),X=t(84385),p=t(59549),P=t(3238);const E=["allSelected"];function R(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"span",9),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext().$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.label," ")}}function ne(je,Et){if(1&je&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275template(1,R,2,1,"span",8),_.\u0275\u0275elementContainerEnd()),2&je){const dt=Et.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",dt.label)}}function G(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"mat-option",10,11),_.\u0275\u0275listener("click",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.toggleAllSelection())}),_.\u0275\u0275text(2," \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 "),_.\u0275\u0275elementEnd()}2&je&&_.\u0275\u0275property("value",0)}function ce(je,Et){1&je&&(_.\u0275\u0275elementStart(0,"mat-option",12),_.\u0275\u0275text(1," \u041d\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432"),_.\u0275\u0275elementEnd())}function xe(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"div",18),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"date"),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext().$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" \u041e\u0442\u043a\u0440\u044b\u0442 \u0441 ",_.\u0275\u0275pipeBind2(2,1,dt.beginDate,"dd.MM.yyyy")," ")}}function we(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"mat-option",10),_.\u0275\u0275listener("click",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.checkAllSelect())}),_.\u0275\u0275elementStart(1,"div",13)(2,"div",14)(3,"div",15),_.\u0275\u0275text(4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"div",16),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(7,"div",14),_.\u0275\u0275template(8,xe,3,4,"div",17),_.\u0275\u0275elementEnd()()()}if(2&je){const dt=Et.$implicit;_.\u0275\u0275property("value",dt),_.\u0275\u0275advance(4),_.\u0275\u0275textInterpolate1(" ",dt.label," "),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate1(" ",dt.currency," "),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",null==dt?null:dt.beginDate)}}const Ge=["*"];function ct(je){return()=>je?{incorrect:!0}:null}let pe=(()=>{class je{set value(dt){dt!==this._value&&(this._value=dt),this.onChange(dt)}constructor(dt){this.fb=dt,this.autosize=!0,this.label="",this.placeholder="",this.multiple=!1,this.isError=!1,this.checkboxList=[],this.resetValidate=new _.EventEmitter,this.selectControl=new u.FormControl([],u.Validators.required),this.registerOnChange=rt=>this.onChange=rt,this.registerOnTouched=rt=>this.onTouched=rt,this.onChange=rt=>{},this.onTouched=()=>{},this.selectControl.valueChanges.subscribe(rt=>{rt&&(this.value=rt.filter(qe=>qe.value).map(qe=>qe.value))})}ngOnChanges(dt){dt.isError&&this.selectControl&&!dt.isError.isFirstChange()&&(this.selectControl.clearValidators(),this.selectControl.addValidators([ct(this.isError)]),this.selectControl?.updateValueAndValidity(),this.selectControl.markAsTouched())}writeValue(dt){dt&&(this._value=dt,this.selectControl.patchValue([...this._value])),null===dt&&this.selectControl.reset()}toggleSelect(){this.resetValidate.emit(),this.selectControl.markAsUntouched()}toggleAllSelection(){this.selectControl.patchValue(this.allSelected.selected?[...this.checkboxList,0]:[])}compareFn(dt,rt){return dt?.value&&rt?.value?dt.value===rt?.value:dt===rt}checkAllSelect(){if(this.allSelected.selected)return this.allSelected.deselect(),!1;this.selectControl.value.length==this.checkboxList.length&&(this.allSelected.select(),this.selectControl.patchValue([...this.checkboxList,0]))}static#e=this.\u0275fac=function(rt){return new(rt||je)(_.\u0275\u0275directiveInject(u.FormBuilder))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:je,selectors:[["app-metib-multiselect"]],viewQuery:function(rt,qe){if(1&rt&&_.\u0275\u0275viewQuery(E,5),2&rt){let ze;_.\u0275\u0275queryRefresh(ze=_.\u0275\u0275loadQuery())&&(qe.allSelected=ze.first)}},inputs:{autosize:"autosize",label:"label",placeholder:"placeholder",multiple:"multiple",isError:"isError",checkboxList:"checkboxList",value:"value"},outputs:{resetValidate:"resetValidate"},features:[_.\u0275\u0275ProvidersFeature([{provide:u.NG_VALUE_ACCESSOR,useExisting:(0,_.forwardRef)(()=>je),multi:!0},{provide:X.PG,useValue:{overlayPanelClass:"multiselect"}}]),_.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Ge,decls:12,vars:13,consts:[[1,"wrapper-metib-multi-select"],["hideRequiredMarker","true"],["disableOptionCentering","","placeholder","\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0447\u0435\u0442 \u0434\u043b\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438",3,"compareWith","disabled","formControl","multiple","openedChange"],["select",""],[4,"ngFor","ngForOf"],[3,"value","click",4,"ngIf"],["class","empty","disabled","",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],["class","item-select-trigger",4,"ngIf"],[1,"item-select-trigger"],[3,"value","click"],["allSelected",""],["disabled","",1,"empty"],[1,"flex-wrapper"],[1,"wrapper-label"],[1,"label"],[1,"currency"],["class","date",4,"ngIf"],[1,"date"]],template:function(rt,qe){if(1&rt&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275elementStart(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"mat-select",2,3),_.\u0275\u0275listener("openedChange",function(){return qe.toggleSelect()}),_.\u0275\u0275elementStart(6,"mat-select-trigger"),_.\u0275\u0275template(7,ne,2,1,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(8,G,3,1,"mat-option",5),_.\u0275\u0275template(9,ce,2,0,"mat-option",6),_.\u0275\u0275template(10,we,9,4,"mat-option",7),_.\u0275\u0275elementEnd()(),_.\u0275\u0275projection(11),_.\u0275\u0275elementEnd()),2&rt){const ze=_.\u0275\u0275reference(5);_.\u0275\u0275advance(1),_.\u0275\u0275classProp("opened",ze.panelOpen),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate1(" ",qe.label," "),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("is-invalid",qe.isError),_.\u0275\u0275property("compareWith",qe.compareFn)("disabled",!qe.checkboxList.length)("formControl",qe.selectControl)("multiple",qe.multiple),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngForOf",qe.selectControl.value),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",qe.checkboxList.length),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!qe.checkboxList.length),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",qe.checkboxList)}},dependencies:[T.sg,T.O5,u.NgControlStatus,u.FormControlDirective,p.KE,p.hX,X.gD,X.$L,P.ey,T.uU],styles:["@charset \"UTF-8\";.wrapper-metib-multi-select[_ngcontent-%COMP%]   .item-select-trigger[_ngcontent-%COMP%]{background:#F1F2F2;margin-right:8px;padding:2px 12px;color:#080708;border-radius:8px;font-size:15px;font-family:Open Sans}.wrapper-metib-multi-select[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]  .mat-mdc-select-value-text{display:block;max-width:calc(100% - 14px);text-overflow:unset}[_nghost-%COMP%]  .mat-mdc-select-value{text-overflow:unset!important;height:24px}[_nghost-%COMP%]  .mat-mdc-text-field-wrapper, [_nghost-%COMP%]  .mat-mdc-form-field-focus-overlay{background:unset!important;padding:0!important}[_nghost-%COMP%]  .mat-mdc-text-field-wrapper.mdc-text-field--focused .mat-mdc-select-arrow, [_nghost-%COMP%]  .mat-mdc-form-field-focus-overlay.mdc-text-field--focused .mat-mdc-select-arrow{color:#2f54eb!important}[_nghost-%COMP%]  .mat-mdc-text-field-wrapper.mdc-text-field--focused .mdc-line-ripple.mdc-line-ripple--active:before, [_nghost-%COMP%]  .mat-mdc-form-field-focus-overlay.mdc-text-field--focused .mdc-line-ripple.mdc-line-ripple--active:before{border-bottom-color:#2f54eb!important}[_nghost-%COMP%]  .mat-mdc-text-field-wrapper.mdc-text-field--filled:hover .mdc-line-ripple:before{border-bottom-color:#88909b}[_nghost-%COMP%]  .mdc-floating-label, [_nghost-%COMP%]  .mat-mdc-select-placeholder{font-family:Open Sans;font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#88909b}[_nghost-%COMP%]  .mdc-floating-label mat-label, [_nghost-%COMP%]  .mat-mdc-select-placeholder mat-label{font-family:Open Sans;color:#88909b;font-size:16px}[_nghost-%COMP%]  .mdc-floating-label--float-above, [_nghost-%COMP%]  .mat-mdc-select-placeholder--float-above{top:20px!important}[_nghost-%COMP%]  .mdc-floating-label--float-above mat-label, [_nghost-%COMP%]  .mat-mdc-select-placeholder--float-above mat-label{font-size:15px}[_nghost-%COMP%]  .mdc-floating-label{margin-top:7px}[_nghost-%COMP%]  .mdc-floating-label--float-above{margin-top:0}[_nghost-%COMP%]  .mat-mdc-select-panel{border-radius:2px;box-shadow:0 4px 40px #08070840;min-width:100%!important}[_nghost-%COMP%]  .mat-mdc-select-panel::-webkit-scrollbar{background:transparent!important;width:10px;margin-right:5px;box-sizing:border-box}[_nghost-%COMP%]  .mat-mdc-select-panel::-webkit-scrollbar-thumb{background:#dedede;border-radius:4px;width:4px;margin:auto;border-right:3px solid white;border-left:3px solid white;box-sizing:border-box}[_nghost-%COMP%]  .mat-mdc-form-field-error-wrapper{padding:0!important}[_nghost-%COMP%]  .mat-mdc-form-field-infix{padding-right:22px;padding-left:12px}[_nghost-%COMP%]  .mat-mdc-form-field-subscript-wrapper{display:none}[_nghost-%COMP%]  .mdc-line-ripple:after{display:none}[_nghost-%COMP%]  .mdc-line-ripple:before{border-bottom-width:2px}[_nghost-%COMP%]  .mat-mdc-select-arrow-wrapper{transform:translateY(0)!important}[_nghost-%COMP%]  .opened .mat-mdc-select-arrow-wrapper{transform:rotate(0);background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45823 12.3535C5.33323 12.2285 5.26726 12.0827 5.26031 11.916C5.25337 11.7493 5.3124 11.6035 5.4374 11.4785L9.5624 7.35352C9.63184 7.28407 9.70129 7.23546 9.77073 7.20768C9.84018 7.1799 9.91656 7.16602 9.9999 7.16602C10.0832 7.16602 10.1596 7.1799 10.2291 7.20768C10.2985 7.23546 10.368 7.28407 10.4374 7.35352L14.5624 11.4577C14.6874 11.5688 14.7499 11.7112 14.7499 11.8848C14.7499 12.0584 14.6874 12.2077 14.5624 12.3327C14.4374 12.4577 14.2881 12.5202 14.1145 12.5202C13.9409 12.5202 13.7916 12.4577 13.6666 12.3327L9.9999 8.68685L6.33323 12.3743C6.22212 12.4993 6.07976 12.5584 5.90615 12.5514C5.73254 12.5445 5.58323 12.4785 5.45823 12.3535Z' fill='%232F54EB'/%3E%3C/svg%3E%0A\")}  .multiselect .mat-mdc-option{font-family:Open Sans!important;font-style:normal!important;font-weight:400!important;font-size:14px!important;line-height:19px!important;color:#88909b!important;border-bottom:1px solid #dedede;height:52px!important;padding:16px 12px!important}  .multiselect .mat-mdc-option .mdc-list-item__primary-text{display:flex!important;justify-content:space-between!important;width:100%}  .multiselect .mat-mdc-option .mdc-list-item__primary-text span{display:block}  .multiselect .mat-mdc-option mat-pseudo-checkbox{display:inline-block;color:#dedede!important;width:20px!important;height:20px!important}  .multiselect .mat-mdc-option mat-pseudo-checkbox:after{top:3.2px!important;left:2px!important;width:10px!important;height:4px!important}  .multiselect .mat-mdc-option mat-pseudo-checkbox.mat-pseudo-checkbox-checked{background:#2f54eb!important}  .multiselect .mat-mdc-option.empty mat-pseudo-checkbox{display:none}  .multiselect .mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,   .multiselect .mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{right:4px;bottom:6px}  app-metib-multiselect .mat-mdc-text-field-wrapper .mdc-line-ripple:before{border-bottom-width:1px;border-bottom-color:#88909b!important}  app-metib-multiselect .mat-mdc-text-field-wrapper .mat-mdc-select-arrow{color:#88909b!important}  app-metib-multiselect .mat-mdc-text-field-wrapper:hover .mdc-line-ripple:before{border-bottom-color:#88909b!important}  app-metib-multiselect .mat-mdc-select-arrow-wrapper{transform:unset!important}  app-metib-multiselect mat-error{margin-top:4px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#88909b}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper .mdc-line-ripple:before{border-bottom-width:1px;border-bottom-color:#e23428!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper .mat-mdc-select-arrow{color:#e23428!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper .mat-mdc-select-arrow-wrapper{transform:rotate(180deg);background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.0006 13.5633C9.91728 13.5633 9.84089 13.5494 9.77145 13.5217C9.702 13.4939 9.63256 13.4453 9.56311 13.3758L5.43811 9.25082C5.327 9.13971 5.27492 8.9904 5.28186 8.8029C5.28881 8.6154 5.34784 8.4661 5.45895 8.35499C5.59784 8.2161 5.74714 8.15707 5.90686 8.1779C6.06658 8.19874 6.20895 8.26471 6.33395 8.37582L10.0006 12.0425L13.6673 8.37582C13.7784 8.26471 13.9277 8.20221 14.1152 8.18832C14.3027 8.17443 14.452 8.23693 14.5631 8.37582C14.702 8.48693 14.761 8.63277 14.7402 8.81332C14.7194 8.99388 14.6534 9.14665 14.5423 9.27165L10.4381 13.3758C10.3687 13.4453 10.2992 13.4939 10.2298 13.5217C10.1603 13.5494 10.0839 13.5633 10.0006 13.5633Z' fill='%23DD1C1A'/%3E%3C/svg%3E%0A\")!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper .mat-mdc-select-arrow-wrapper{background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.0006 13.5633C9.91728 13.5633 9.84089 13.5494 9.77145 13.5217C9.702 13.4939 9.63256 13.4453 9.56311 13.3758L5.43811 9.25082C5.327 9.13971 5.27492 8.9904 5.28186 8.8029C5.28881 8.6154 5.34784 8.4661 5.45895 8.35499C5.59784 8.2161 5.74714 8.15707 5.90686 8.1779C6.06658 8.19874 6.20895 8.26471 6.33395 8.37582L10.0006 12.0425L13.6673 8.37582C13.7784 8.26471 13.9277 8.20221 14.1152 8.18832C14.3027 8.17443 14.452 8.23693 14.5631 8.37582C14.702 8.48693 14.761 8.63277 14.7402 8.81332C14.7194 8.99388 14.6534 9.14665 14.5423 9.27165L10.4381 13.3758C10.3687 13.4453 10.2992 13.4939 10.2298 13.5217C10.1603 13.5494 10.0839 13.5633 10.0006 13.5633Z' fill='%23DD1C1A'/%3E%3C/svg%3E%0A\")}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper:hover .mdc-line-ripple:before{border-bottom-color:#f44336!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper.mdc-text-field--focused .mat-mdc-select-arrow-wrapper{background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45823 12.3535C5.33323 12.2285 5.26726 12.0827 5.26031 11.916C5.25337 11.7493 5.3124 11.6035 5.4374 11.4785L9.5624 7.35352C9.63184 7.28407 9.70129 7.23546 9.77073 7.20768C9.84018 7.1799 9.91656 7.16602 9.9999 7.16602C10.0832 7.16602 10.1596 7.1799 10.2291 7.20768C10.2985 7.23546 10.368 7.28407 10.4374 7.35352L14.5624 11.4577C14.6874 11.5688 14.7499 11.7112 14.7499 11.8848C14.7499 12.0584 14.6874 12.2077 14.5624 12.3327C14.4374 12.4577 14.2881 12.5202 14.1145 12.5202C13.9409 12.5202 13.7916 12.4577 13.6666 12.3327L9.9999 8.68685L6.33323 12.3743C6.22212 12.4993 6.07976 12.5584 5.90615 12.5514C5.73254 12.5445 5.58323 12.4785 5.45823 12.3535Z' fill='%232F54EB'/%3E%3C/svg%3E%0A\")!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper.mdc-text-field--focused .mat-mdc-select-arrow{color:#2f54eb!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper.mdc-text-field--focused .mat-mdc-select-arrow-wrapper{transform:rotate(180deg);background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45823 12.3535C5.33323 12.2285 5.26726 12.0827 5.26031 11.916C5.25337 11.7493 5.3124 11.6035 5.4374 11.4785L9.5624 7.35352C9.63184 7.28407 9.70129 7.23546 9.77073 7.20768C9.84018 7.1799 9.91656 7.16602 9.9999 7.16602C10.0832 7.16602 10.1596 7.1799 10.2291 7.20768C10.2985 7.23546 10.368 7.28407 10.4374 7.35352L14.5624 11.4577C14.6874 11.5688 14.7499 11.7112 14.7499 11.8848C14.7499 12.0584 14.6874 12.2077 14.5624 12.3327C14.4374 12.4577 14.2881 12.5202 14.1145 12.5202C13.9409 12.5202 13.7916 12.4577 13.6666 12.3327L9.9999 8.68685L6.33323 12.3743C6.22212 12.4993 6.07976 12.5584 5.90615 12.5514C5.73254 12.5445 5.58323 12.4785 5.45823 12.3535Z' fill='%232F54EB'/%3E%3C/svg%3E%0A\")!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty .mat-mdc-text-field-wrapper.mdc-text-field--focused .mdc-line-ripple.mdc-line-ripple--active:before{border-bottom-color:#2f54eb!important}  app-metib-multiselect.ng-touched.ng-invalid.ng-dirty mat-error{margin-top:4px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#e23428}.flex-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.flex-wrapper[_ngcontent-%COMP%]   .wrapper-label[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.flex-wrapper[_ngcontent-%COMP%]   .wrapper-label[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;text-align:left;color:#444;white-space:nowrap}.flex-wrapper[_ngcontent-%COMP%]   .wrapper-label[_ngcontent-%COMP%]   .currency[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:16px;letter-spacing:0em;text-align:left;color:#88909b}.flex-wrapper[_ngcontent-%COMP%]   .wrapper-label[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:16px;letter-spacing:0em;text-align:right;color:#88909b;white-space:nowrap}@media (max-width: 768px){.flex-wrapper[_ngcontent-%COMP%]   .wrapper-label[_ngcontent-%COMP%]{width:125px}}"]})}return je})();var Ce=t(97392),U=t(51329),H=t(57823);function Z(je,Et){1&je&&_.\u0275\u0275element(0,"app-loader")}function oe(je,Et){1&je&&(_.\u0275\u0275elementStart(0,"div",12),_.\u0275\u0275text(1," \u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430\u043c \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0434\u0430\u0442\u0443 "),_.\u0275\u0275elementEnd())}function Pe(je,Et){1&je&&(_.\u0275\u0275elementStart(0,"div",12),_.\u0275\u0275text(1," \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043d\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0434\u0430\u0442\u0443 "),_.\u0275\u0275elementEnd())}function Ie(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"div",12),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"date"),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0421\u043f\u0440\u0430\u0432\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0430\u0442\u0443 \u043d\u0435 \u043f\u043e\u0437\u0434\u043d\u0435\u0435 ",_.\u0275\u0275pipeBind2(2,1,dt.getDateLimitPeriod,"dd.MM.yyyy")," ")}}function pt(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"app-metib-comment",17),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"translate"),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("disableToggleButton",!1),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind2(2,2,"The refertence will be formed no earlier than next working day for this bank",dt.lang)," ")}}const Ht=function(je){return{"hide-field":je}};function Wt(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"div",13)(1,"div",14),_.\u0275\u0275element(2,"app-metib-select",15),_.\u0275\u0275template(3,pt,3,5,"app-metib-comment",16),_.\u0275\u0275elementEnd()()),2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275property("formGroup",dt.formReference),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(5,Ht,!dt.isShowBankSelect)),_.\u0275\u0275advance(1),_.\u0275\u0275property("items",dt.optionsBanks)("appearance","dcb"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",dt.isShowComment)}}function Xe(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"app-metib-comment",17),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"translate"),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("disableToggleButton",!1),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind2(2,2,"The refertence will be formed no earlier than next working day for this bank",dt.lang)," ")}}const Qe=function(je){return{show:je}};function Be(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",13)(1,"div",14),_.\u0275\u0275element(2,"app-metib-select",15),_.\u0275\u0275template(3,Xe,3,5,"app-metib-comment",16),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"app-metib-datepicker",18),_.\u0275\u0275listener("resetValidate",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.formReference.get("restDate").markAsUntouched())}),_.\u0275\u0275elementStart(5,"mat-error",19),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(7,"app-metib-multiselect",20),_.\u0275\u0275listener("resetValidate",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.formReference.get("accounts").markAsUntouched())}),_.\u0275\u0275elementStart(8,"mat-error",19),_.\u0275\u0275text(9),_.\u0275\u0275elementEnd()()()}if(2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275property("formGroup",dt.formReference),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(22,Ht,!dt.isShowBankSelect)),_.\u0275\u0275advance(1),_.\u0275\u0275property("items",dt.optionsBanks)("appearance","dcb"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",dt.isShowComment),_.\u0275\u0275advance(1),_.\u0275\u0275property("hideTitle",!0)("title","\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("minDate",dt.minDate)("maxDate",dt.maxDate)("placeholder","\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("autosize",!0)("startView","month")("filter","past")("readOnly",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(24,Qe,dt.errorDateText||dt.formReference.get("restDate").touched&&dt.formReference.get("restDate").invalid)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.errorDateText?dt.errorDateText:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"," "),_.\u0275\u0275advance(1),_.\u0275\u0275property("checkboxList",dt.checkboxListProductsView)("label","\u0421\u0447\u0435\u0442\u0430 \u0434\u043b\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("multiple",!0)("isError",dt.isErrorSelect),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(26,Qe,dt.isErrorSelect&&dt.formReference.get("accounts").touched&&dt.formReference.get("accounts").invalid)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.errorSelectText," ")}}function at(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"app-metib-comment",17),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"translate"),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("disableToggleButton",!1),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind2(2,2,"The refertence will be formed no earlier than next working day for this bank",dt.lang)," ")}}const lt=function(je){return{error:je}};function Dt(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",13)(1,"div",14),_.\u0275\u0275element(2,"app-metib-select",15),_.\u0275\u0275template(3,at,3,5,"app-metib-comment",16),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"div",21)(5,"div",22)(6,"app-metib-datepicker",23),_.\u0275\u0275listener("resetValidate",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.resetValid(qe.formReference.get("startDate")))}),_.\u0275\u0275elementStart(7,"mat-error",19),_.\u0275\u0275text(8),_.\u0275\u0275elementEnd()()(),_.\u0275\u0275elementStart(9,"div",22)(10,"app-metib-datepicker",24),_.\u0275\u0275listener("resetValidate",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.resetValid(qe.formReference.get("endDate")))}),_.\u0275\u0275elementStart(11,"mat-error",19),_.\u0275\u0275text(12),_.\u0275\u0275elementEnd()()()(),_.\u0275\u0275elementStart(13,"app-metib-multiselect",20),_.\u0275\u0275listener("resetValidate",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.formReference.get("accounts").markAsUntouched())}),_.\u0275\u0275elementStart(14,"mat-error",19),_.\u0275\u0275text(15),_.\u0275\u0275elementEnd()()()}if(2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275property("formGroup",dt.formReference),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(33,Ht,!dt.isShowBankSelect)),_.\u0275\u0275advance(1),_.\u0275\u0275property("items",dt.optionsBanks)("appearance","dcb"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",dt.isShowComment),_.\u0275\u0275advance(3),_.\u0275\u0275property("hideTitle",!0)("title","\u041f\u0435\u0440\u0438\u043e\u0434 \u0441")("minDate",dt.minDate)("maxDate",dt.maxDate)("placeholder","\u041f\u0435\u0440\u0438\u043e\u0434 \u0441")("autosize",!1)("startView","month")("filter",-2)("readOnly",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(35,Qe,dt.errorDateText||dt.formReference.get("startDate").touched&&dt.formReference.get("startDate").invalid)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.errorDateText?dt.errorDateText:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"," "),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(37,lt,dt.formReference.get("endDate").touched&&dt.formReference.get("endDate").invalid))("title","\u041f\u0435\u0440\u0438\u043e\u0434 \u0434\u043e")("hideTitle",!0)("minDate",dt.minDate)("placeholder","\u041f\u0435\u0440\u0438\u043e\u0434 \u0434\u043e")("autosize",!1)("startView","month")("filter",-2)("readOnly",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(39,Qe,dt.errorDateText||dt.formReference.get("endDate").touched&&dt.formReference.get("endDate").invalid)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.errorDateText?dt.errorDateText:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"," "),_.\u0275\u0275advance(1),_.\u0275\u0275property("checkboxList",dt.checkboxListProductsView)("label","\u0421\u0447\u0435\u0442\u0430 \u0434\u043b\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("multiple",!0)("isError",dt.isErrorSelect),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(41,Qe,dt.isErrorSelect&&dt.formReference.get("accounts").touched&&dt.formReference.get("accounts").invalid)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.errorSelectText," ")}}function Yt(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"app-metib-comment",17),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"translate"),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("disableToggleButton",!1),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind2(2,2,"The refertence will be formed no earlier than next working day for this bank",dt.lang)," ")}}function Tt(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",13)(1,"div",14),_.\u0275\u0275element(2,"app-metib-select",15),_.\u0275\u0275template(3,Yt,3,5,"app-metib-comment",16),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"app-metib-datepicker",25),_.\u0275\u0275listener("resetValidate",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.formReference.get("requestDate").markAsUntouched())}),_.\u0275\u0275elementStart(5,"mat-error",19),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd()()()}if(2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275property("formGroup",dt.formReference),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(15,Ht,!dt.isShowBankSelect)),_.\u0275\u0275advance(1),_.\u0275\u0275property("items",dt.optionsBanks)("appearance","dcb"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",dt.isShowComment),_.\u0275\u0275advance(1),_.\u0275\u0275property("title","\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("hideTitle",!0)("placeholder","\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("minDate",dt.minDate)("autosize",!0)("startView","month")("filter",-1)("readOnly",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(17,Qe,dt.errorDateText||dt.formReference.get("requestDate").touched&&dt.formReference.get("requestDate").invalid)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.errorDateText?dt.errorDateText:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"," ")}}function ot(je,Et){if(1&je&&(_.\u0275\u0275elementStart(0,"app-metib-comment",17),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"translate"),_.\u0275\u0275elementEnd()),2&je){const dt=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("disableToggleButton",!1),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind2(2,2,"The refertence will be formed no earlier than next working day for this bank",dt.lang)," ")}}function Gt(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",13)(1,"div",14),_.\u0275\u0275element(2,"app-metib-select",15),_.\u0275\u0275template(3,ot,3,5,"app-metib-comment",16),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"app-metib-datepicker",25),_.\u0275\u0275listener("resetValidate",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.formReference.get("requestDate").markAsUntouched())}),_.\u0275\u0275elementStart(5,"mat-error",26),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd()()()}if(2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275property("formGroup",dt.formReference),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(15,Ht,!dt.isShowBankSelect)),_.\u0275\u0275advance(1),_.\u0275\u0275property("items",dt.optionsBanks)("appearance","dcb"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",dt.isShowComment),_.\u0275\u0275advance(1),_.\u0275\u0275property("title","\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("hideTitle",!0)("placeholder","\u0414\u0430\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043a\u0438")("minDate",dt.minDate)("autosize",!0)("startView","month")("filter",-1)("readOnly",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(17,Qe,dt.errorDateText||dt.formReference.get("requestDate").touched&&dt.formReference.get("requestDate").invalid)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",dt.errorDateText?dt.errorDateText:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"," ")}}function wt(je,Et){1&je&&(_.\u0275\u0275elementStart(0,"div",27),_.\u0275\u0275text(1," \u041f\u043e\u0441\u043b\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f."),_.\u0275\u0275element(2,"br"),_.\u0275\u0275text(3," \u041e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043c\u043e\u0436\u043d\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043f\u0440\u0430\u0432\u043e\u043a "),_.\u0275\u0275elementEnd())}function Ze(je,Et){1&je&&_.\u0275\u0275element(0,"div",28)}function Ut(je,Et){1&je&&_.\u0275\u0275element(0,"div",29)}function vn(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",30)(1,"app-metib-button",31),_.\u0275\u0275listener("clicked",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.handleSubmit(null==qe.formReference?null:qe.formReference.value))}),_.\u0275\u0275text(2," \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c "),_.\u0275\u0275elementEnd()()}2&je&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("type","primary-new"))}function xn(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",32)(1,"app-metib-button",31),_.\u0275\u0275listener("clicked",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.handleClose())}),_.\u0275\u0275text(2," \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0438\u0441\u0442\u043e\u0440\u0438\u0438"),_.\u0275\u0275elementEnd()()}2&je&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("type","white-new"))}const bn=function(je){return{formation:je}};class hn{constructor(Et,dt,rt,qe,ze,zt,vt){switch(this.messageRef=Et,this.fb=dt,this.toastCustomService=rt,this.referencesService=qe,this.userDataService=ze,this.toastService=zt,this.data=vt,this.lang="ru",this.unsubscribe$=new i.x,this.isErrorSelect=!1,this.isErrorSelectPeriod=!1,this.errorSelectText="",this.errorDateText="",this.checkboxListProducts=[],this.checkboxListProductsView=[],this.currencyType="RUR",this.filterValue=null,this.optionsBanks=B.N,this.isRepeat=!1,this.minDate=B.$,this.maxDate=new Date((new Date).getFullYear(),12,31),this.isLoader=!1,this.isShowComment=!1,this.isShowBankSelect=!1,this._clientType="",this._products=[],this._bpxProducts=[],vt?.type){case"opens":case"debt":case"card":this.formReference=this.generateForm(vt?.type,vt?.contentForRepeat);break;case"remainder":this.formReference=this.generateForm(vt?.type,vt?.contentForRepeat),this.formReference?.controls.restDate.valueChanges.subscribe(gt=>{this.formReference?.controls.accounts.patchValue(null),this.checkboxListProducts&&(this.checkboxListProductsView=this.checkboxListProducts.filter(sn=>m()(sn.beginDate,"YYYY.MM.DD").isSameOrBefore(m()(gt,"YYYY.MM.DD"))),this.checkboxListProductsView?.length?this.isErrorSelect&&(this.errorSelectText="\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"):(this.formReference?.markAllAsTouched(),this.isErrorSelect=!0,this.errorSelectText="\u041f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0434\u0430\u0442\u0435 \u043d\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432"))});break;case"period":this.formReference=this.generateForm(vt?.type,vt?.contentForRepeat),(0,x.T)(this.formReference?.controls.startDate.valueChanges,this.formReference?.controls.endDate.valueChanges).subscribe(()=>{if(this.errorDateText="",this.checkboxListProducts&&this.formReference?.controls.startDate.value&&this.formReference?.controls.endDate.value){const gt=this.formReference?.controls.endDate.value,sn=this.formReference?.controls.startDate.value;this.checkboxListProductsView=this.checkboxListProducts.filter(Qn=>m()(Qn.beginDate,"YYYY.MM.DD").isSameOrBefore(m()(gt,"YYYY.MM.DD")));const wn=this.checkboxListProductsView.filter(Qn=>this.formReference?.controls.accounts.value.find(pi=>Qn.value===pi));if(this.formReference.get("accounts")?.patchValue(wn),m()(sn,"YYYY.MM.DD").isAfter(m()(gt,"YYYY.MM.DD")))return this.formReference?.controls.startDate.setErrors({error:!0}),this.formReference?.controls.endDate.setErrors({error:!0}),this.formReference?.controls.startDate.markAsTouched(),this.formReference?.controls.endDate.markAsTouched(),void(this.errorDateText="\u041d\u0435\u0432\u0435\u0440\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0438\u043e\u0434");if(this.formReference?.controls.startDate.setErrors(null),this.formReference?.controls.endDate.setErrors(null),this.formReference?.controls.startDate.markAsUntouched(),this.formReference?.controls.endDate.markAsUntouched(),this.errorDateText="",!this.checkboxListProductsView?.length)return this.formReference.markAllAsTouched(),this.isErrorSelect=!0,void(this.errorSelectText="\u041f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0435\u0440\u0438\u043e\u0434\u0443 \u043d\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432");this.isErrorSelect&&(this.errorSelectText="\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c")}})}}get getDateLimitPeriod(){return m()(new Date).subtract(2,"days").toDate()}ngOnInit(){this.checkBpx(),this.userDataService.dboAccountsBlocked$.pipe((0,d.R)(this.unsubscribe$)).subscribe(Et=>{Et&&Et.toast&&this.toastService.show(Et.toast,"error","",{toastClass:"account-blocked"})}),this.formReference&&this.formReference.get("bankName").valueChanges.pipe((0,d.R)(this.unsubscribe$)).subscribe(Et=>{this.isShowComment=this.isManualReference("bpx"===Et),this.formReference.contains("accounts")&&(this.setCheckboxListProducts("bpx"===Et),this.formReference.get("accounts")?.patchValue([]),this.formReference.get("accounts")?.markAsUntouched())})}checkBpx(){this.userDataService.getClientInfoOrganization().pipe((0,d.R)(this.unsubscribe$)).subscribe(Et=>{this._clientType=Et?.typeFromAbs,this.isShowBankSelect=this.isOrganizationBpx(Et),!this.isShowBankSelect&&this.formReference&&this.formReference.get("bankName")?.clearValidators()})}isOrganizationBpx(Et){return["1","2"].includes(Et.typeFromAbs)}isManualReference(Et){return Et&&("2"===this._clientType||"card"===this.data?.type&&"1"===this._clientType)}resetValid(Et){"\u041d\u0435\u0432\u0435\u0440\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0438\u043e\u0434"!==this.errorDateText&&Et.markAsUntouched()}generateForm(Et,dt){switch(this.isRepeat=null!==dt,this.isShowComment=this.isRepeat&&this.isManualReference("bpx"===dt?.bankName),Et){case"opens":return this.fb.group(dt?{bankName:[dt.bankName,u.Validators.required]}:{bankName:["",u.Validators.required]});case"remainder":return this.setProductsForPerformedOperations(),this.fb.group(dt?{bankName:[dt.bankName,u.Validators.required],restDate:[new Date(dt.restDate),[this.dateValidator(),u.Validators.required]],accounts:[dt.accounts,u.Validators.required]}:{bankName:["",u.Validators.required],restDate:["",[this.dateValidator(),u.Validators.required]],accounts:["",u.Validators.required]});case"period":return this.setProductsForPerformedOperations(),this.fb.group(dt?{bankName:[dt.bankName,u.Validators.required],startDate:[new Date(dt.startDate),[this.dateValidator(),u.Validators.required]],endDate:[new Date(dt.endDate),[this.dateValidator(),u.Validators.required]],accounts:[dt.accounts,u.Validators.required]}:{bankName:["",u.Validators.required],startDate:["",[this.dateValidator(),u.Validators.required]],endDate:["",[this.dateValidator(),u.Validators.required]],accounts:["",u.Validators.required]});case"debt":case"card":return this.fb.group(dt?{bankName:[dt.bankName,u.Validators.required],requestDate:[new Date(dt.requestDate),[this.dateValidator(),u.Validators.required]]}:{bankName:["",u.Validators.required],requestDate:["",[this.dateValidator(),u.Validators.required]]});default:return null}}dateValidator(){return Et=>{const dt=Et.value.toString().split("/").reverse().join("-");if(Et.value&&isNaN(new Date(dt).getTime()))return null;const rt=m()(new Date(dt));return m()((new Date).setHours(0,0,0)).isBefore(rt)?{invalidDate:!1}:null}}setProductsForPerformedOperations(){this.isLoader=!0,this.referencesService.sendRequestReference(this.data?.type).pipe((0,d.R)(this.unsubscribe$),(0,L.K)(Et=>(this.toastCustomService.errorHandle("\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0447\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438","fullRed"),(0,O.of)(null)))).subscribe(Et=>{if(Et?.debitAccounts&&(this._products=Array.isArray(Et.debitAccounts)?[...Et.debitAccounts]:[Et.debitAccounts],this._bpxProducts=Array.isArray(Et.debitAccounts)?[...Et.debitAccounts]:[Et.debitAccounts]),Et?.bpxDebitAccounts&&(this._bpxProducts=Array.isArray(Et.bpxDebitAccounts)?[...Et.bpxDebitAccounts]:[Et.bpxDebitAccounts]),this.isLoader=!1,this.formReference.contains("accounts")&&(!this.isShowBankSelect||this.formReference.get("bankName")?.value)){const dt="bpx"===this.formReference.get("bankName")?.value;this.setCheckboxListProducts(dt)}})}setCheckboxListProducts(Et=!1){const rt=this.data?.contentForRepeat?.accounts||[],qe=(Et?this._bpxProducts:this._products).map(ze=>({label:ze.alias?ze.alias:ze.info,chosen:rt.includes(ze.number),value:ze.number,beginDate:ze.beginDate,currency:ze.currency}));this.checkboxListProducts=qe,this.checkboxListProductsView=this.checkboxListProducts,this.formReference.get("accounts")?.markAsTouched(),this.isRepeat?(this.prefillForm(),this.isRepeat=!1):this.formReference.get("accounts").patchValue(null)}prefillForm(){const Et=this.checkboxListProductsView.map(qe=>({...qe,chosen:this.formReference?.controls.accounts.value.includes(qe.value)})),dt=Et.filter(qe=>qe.chosen);let rt;rt=dt?.length===Et?.length?[...dt,0]:[...dt],this.formReference?.controls.accounts.patchValue(rt),this.formReference.get("accounts")?.markAsTouched()}onProductSelect(Et){let dt=[];dt=Et.filter(rt=>rt.chosen&&!rt.all).map(rt=>rt.value),this.formReference?.controls.accounts.patchValue(dt?[...dt]:[])}handleClose(){this.messageRef.close()}handleSubmit(Et){this.data?.type&&this.withDataSubmit(this.data?.type,Et)}withDataSubmit(Et,dt){if(this.formReference?.valid&&!this.errorDateText){const rt=this.dataFormatting(Et,dt);this.requestSubmit(Et,rt)}else{if(this.formReference?.markAllAsTouched(),this.isErrorSelect=!0,this.isErrorSelectPeriod)return void(this.errorDateText="\u041d\u0435\u0432\u0435\u0440\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u0435\u0440\u0438\u043e\u0434");if(this.checkboxListProductsView?.length||dt?.accounts?.length)this.errorSelectText="\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c";else switch(this.data.type){case"period":this.errorSelectText="\u041f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0435\u0440\u0438\u043e\u0434\u0443 \u043d\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432";break;case"remainder":this.errorSelectText="\u041f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0434\u0430\u0442\u0435 \u043d\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0447\u0435\u0442\u043e\u0432";break;default:this.errorSelectText="\u041e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0444\u043e\u0440\u043c\u044b"}}}dataFormatting(Et,dt){switch(Et){case"opens":return{isBpx:"bpx"===dt.bankName};case"remainder":return{restDate:m()(dt.restDate).format("YYYY-MM-DD"),accounts:dt.accounts,isBpx:"bpx"===dt.bankName};case"period":return{startDate:m()(dt.startDate).format("YYYY-MM-DD"),endDate:m()(dt.endDate).format("YYYY-MM-DD"),accounts:dt.accounts,isBpx:"bpx"===dt.bankName};case"debt":case"card":return{requestDate:m()(dt.requestDate).format("YYYY-MM-DD"),isBpx:"bpx"===dt.bankName};default:return null}}requestSubmit(Et,dt){this.isLoader=!0,this.referencesService.sendRequestReference(Et,dt).pipe((0,d.R)(this.unsubscribe$)).subscribe({next:()=>{this.isLoader=!1,this.messageRef.close(!0)},error:rt=>{this.isLoader=!1,this.isErrorSelect=!0,this.errorSelectText=rt.errorText,this.toastCustomService.show(this.errorSelectText?this.errorSelectText:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0438","error")}})}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(dt){return new(dt||hn)(_.\u0275\u0275directiveInject(h.so),_.\u0275\u0275directiveInject(u.FormBuilder),_.\u0275\u0275directiveInject(y.j),_.\u0275\u0275directiveInject($.A),_.\u0275\u0275directiveInject(C.M),_.\u0275\u0275directiveInject(y.j),_.\u0275\u0275directiveInject(h.WI,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:hn,selectors:[["app-metib-modal-reference"]],decls:20,vars:18,consts:[[1,"header",3,"ngClass"],[1,"close",3,"click"],[1,"wrapper-modal-content"],[4,"ngIf"],[1,"content-modal-reference"],["class","description-modal-reference",4,"ngIf"],["class","form",3,"formGroup",4,"ngIf"],["class","description-modal-reference formation",4,"ngIf"],["class","opens-reference",4,"ngIf"],["class","opens-reference middle",4,"ngIf"],["class","wrapper-actions-modal-reference",4,"ngIf"],["class","wrapper-actions-modal-reference formation",4,"ngIf"],[1,"description-modal-reference"],[1,"form",3,"formGroup"],[1,"form-bank-select",3,"ngClass"],["title","\u0411\u0430\u043d\u043a \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438","placeholder","\u0411\u0430\u043d\u043a \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438","formControlName","bankName",3,"items","appearance"],["commentStyle","yellow",3,"disableToggleButton",4,"ngIf"],["commentStyle","yellow",3,"disableToggleButton"],["formControlName","restDate",1,"form-datepicker","mr0",3,"hideTitle","title","minDate","maxDate","placeholder","autosize","startView","filter","readOnly","resetValidate"],[3,"ngClass"],["formControlName","accounts",3,"checkboxList","label","multiple","isError","resetValidate"],[1,"wrapper-period"],[1,"flex-field"],["formControlName","startDate",1,"form-datepicker",3,"hideTitle","title","minDate","maxDate","placeholder","autosize","startView","filter","readOnly","resetValidate"],["formControlName","endDate",1,"form-datepicker","mr0",3,"ngClass","title","hideTitle","minDate","placeholder","autosize","startView","filter","readOnly","resetValidate"],["formControlName","requestDate",1,"form-datepicker",3,"title","hideTitle","placeholder","minDate","autosize","startView","filter","readOnly","resetValidate"],[1,"custom-field",3,"ngClass"],[1,"description-modal-reference","formation"],[1,"opens-reference"],[1,"opens-reference","middle"],[1,"wrapper-actions-modal-reference"],[3,"type","clicked"],[1,"wrapper-actions-modal-reference","formation"]],template:function(dt,rt){1&dt&&(_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275text(1),_.\u0275\u0275elementStart(2,"mat-icon",1),_.\u0275\u0275listener("click",function(){return rt.handleClose()}),_.\u0275\u0275text(3,"close"),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(4,"div",2),_.\u0275\u0275template(5,Z,1,0,"app-loader",3),_.\u0275\u0275elementStart(6,"div",4),_.\u0275\u0275template(7,oe,2,0,"div",5),_.\u0275\u0275template(8,Pe,2,0,"div",5),_.\u0275\u0275template(9,Ie,3,4,"div",5),_.\u0275\u0275template(10,Wt,4,7,"div",6),_.\u0275\u0275template(11,Be,10,28,"div",6),_.\u0275\u0275template(12,Dt,16,43,"div",6),_.\u0275\u0275template(13,Tt,7,19,"div",6),_.\u0275\u0275template(14,Gt,7,19,"div",6),_.\u0275\u0275template(15,wt,4,0,"div",7),_.\u0275\u0275template(16,Ze,1,0,"div",8),_.\u0275\u0275template(17,Ut,1,0,"div",9),_.\u0275\u0275template(18,vn,3,1,"div",10),_.\u0275\u0275template(19,xn,3,1,"div",11),_.\u0275\u0275elementEnd()()),2&dt&&(_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(16,bn,"formation"===(null==rt.data?null:rt.data.type))),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",null==rt.data?null:rt.data.title," "),_.\u0275\u0275advance(4),_.\u0275\u0275property("ngIf",rt.isLoader),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf","opens"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","remainder"===(null==rt.data?null:rt.data.type)||"debt"===(null==rt.data?null:rt.data.type)||"card"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","period"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","opens"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","remainder"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","period"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","debt"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","card"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","formation"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","opens"===(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","opens"!==(null==rt.data?null:rt.data.type)&&"formation"!==(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","formation"!==(null==rt.data?null:rt.data.type)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf","formation"===(null==rt.data?null:rt.data.type)))},dependencies:[T.mk,T.O5,j.A,I.nI,F.R,z.A,pe,u.NgControlStatus,u.NgControlStatusGroup,Ce.Hw,u.FormGroupDirective,u.FormControlName,U.E,H.n,T.uU,e.X$],styles:['@charset "UTF-8";.wrapper-modal-content[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{position:relative;background:#f1f2f2;border-radius:8px 8px 0 0;padding:24px 32px;font-family:Open Sans;font-style:normal;font-weight:700;font-size:20px;color:#080708;display:flex;align-items:center}.header.formation[_ngcontent-%COMP%]{text-align:center;display:flex;justify-content:center;padding:24px 36px}.header.formation[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){.header[_ngcontent-%COMP%]{padding:24px 66px 24px 16px}}.close[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:23px;padding:7px;width:40px;height:40px;color:#88909b;font-size:28px}@media (max-width: 768px){.close[_ngcontent-%COMP%]{right:9px}}  .mat-mdc-dialog-container{padding:0}  .cdk-overlay-container{z-index:1101}.content-modal-reference[_ngcontent-%COMP%]{padding:24px 32px;display:flex;flex-direction:column}@media (max-width: 768px){.content-modal-reference[_ngcontent-%COMP%]{padding:24px 16px}}.content-modal-reference[_ngcontent-%COMP%]   .description-modal-reference[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:16px;color:#444;padding-right:80px}.content-modal-reference[_ngcontent-%COMP%]   .description-modal-reference.formation[_ngcontent-%COMP%]{padding-bottom:60px;padding-right:0;text-align:center}@media (max-width: 768px){.content-modal-reference[_ngcontent-%COMP%]   .description-modal-reference[_ngcontent-%COMP%]{padding-right:0}}.content-modal-reference[_ngcontent-%COMP%]   .form[_ngcontent-%COMP%]{margin-bottom:15px;position:relative}.content-modal-reference[_ngcontent-%COMP%]   .form.mb0[_ngcontent-%COMP%]{margin-bottom:0;min-height:120px}.content-modal-reference[_ngcontent-%COMP%]   .form[_ngcontent-%COMP%]   .form-datepicker[_ngcontent-%COMP%]{margin-right:20px}@media (max-width: 768px){.content-modal-reference[_ngcontent-%COMP%]   .form[_ngcontent-%COMP%]   .form-datepicker[_ngcontent-%COMP%]{margin-right:0}}.content-modal-reference[_ngcontent-%COMP%]   .form[_ngcontent-%COMP%]   .form-datepicker.mr0[_ngcontent-%COMP%]{margin-right:0}.content-modal-reference[_ngcontent-%COMP%]   .form[_ngcontent-%COMP%]   .form-bank-select.hide-field[_ngcontent-%COMP%]{display:none}.content-modal-reference[_ngcontent-%COMP%]   .form[_ngcontent-%COMP%]   app-metib-select[_ngcontent-%COMP%]{width:100%}.content-modal-reference[_ngcontent-%COMP%]   .wrapper-actions-modal-reference[_ngcontent-%COMP%]{display:flex}.content-modal-reference[_ngcontent-%COMP%]   .wrapper-actions-modal-reference[_ngcontent-%COMP%]   app-metib-button[_ngcontent-%COMP%]{margin-right:20px}.content-modal-reference[_ngcontent-%COMP%]   .wrapper-actions-modal-reference.formation[_ngcontent-%COMP%]{justify-content:center}.content-modal-reference[_ngcontent-%COMP%]   .wrapper-actions-modal-reference.formation[_ngcontent-%COMP%]   app-metib-button[_ngcontent-%COMP%]{margin-right:0}.content-modal-reference[_ngcontent-%COMP%]   .opens-reference[_ngcontent-%COMP%]{height:60px}.content-modal-reference[_ngcontent-%COMP%]   .opens-reference.middle[_ngcontent-%COMP%]{height:20px}@media (max-width: 768px){  .container-reference{width:100%;max-width:calc(100vw - 32px)!important}}  .container-reference .mat-dialog-container{border-radius:8px}@media (max-width: 768px){[_nghost-%COMP%]  .mat-mdc-form-field-infix{padding-right:2px!important}}@media (max-width: 768px){[_nghost-%COMP%]  .mat-form-field-suffix{right:-20px!important}}[_nghost-%COMP%]  .mat-form-field{width:100%!important}app-multi-select[_ngcontent-%COMP%]{display:block;margin-top:20px}  .container-reference app-metib-datepicker{position:relative}  .container-reference app-metib-datepicker mat-error{margin:0;padding-left:12px}  .container-reference app-metib-datepicker .mat-form-field-underline:before{background-color:#0000006b!important;height:1px}app-metib-multiselect[_ngcontent-%COMP%]{display:block;margin-top:20px;margin-bottom:22px;position:relative}app-metib-multiselect[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{padding-left:12px}app-metib-multiselect[_ngcontent-%COMP%]   mat-error.show[_ngcontent-%COMP%]{bottom:-24px}.wrapper-period[_ngcontent-%COMP%]{display:flex}@media (max-width: 768px){.wrapper-period[_ngcontent-%COMP%]{flex-wrap:wrap}}.flex-field[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}@media (max-width: 768px){.flex-field[_ngcontent-%COMP%]{width:100%}}mat-error[_ngcontent-%COMP%]{height:0;opacity:0;transition:.3s;margin-top:4px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#cf3737}mat-error.show[_ngcontent-%COMP%]{height:19px;opacity:1}','@charset "UTF-8";.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:7px;width:10px;fill:#88909b;cursor:pointer}']})}(0,n.gn)([(0,e.SQ)()],hn.prototype,"lang",void 0);var pn=t(63471),In=t(38101),Dn=t(81300),Tn=t(40929),mn=t(14228),Yn=t(44180),cn=t(21676),Nn=t(49211);function Bt(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",22),_.\u0275\u0275listener("click",function(){const ze=_.\u0275\u0275restoreView(dt).$implicit,zt=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(zt.openModalGetReference(ze))}),_.\u0275\u0275element(1,"mat-icon",23),_.\u0275\u0275elementStart(2,"div",24),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd()()}if(2&je){const dt=Et.$implicit,rt=_.\u0275\u0275nextContext();_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(rt.getNameReference(dt))}}function En(je,Et){1&je&&(_.\u0275\u0275elementStart(0,"div",25),_.\u0275\u0275element(1,"div",26),_.\u0275\u0275elementStart(2,"div",27),_.\u0275\u0275text(3,"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"),_.\u0275\u0275elementEnd()())}function Wn(je,Et){1&je&&(_.\u0275\u0275elementStart(0,"div",28),_.\u0275\u0275text(1,"\u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432\u0441\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0438"),_.\u0275\u0275elementEnd())}const rn=function(je){return{disabled:je}};function Sn(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",29),_.\u0275\u0275listener("click",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(qe.refreshHistoryReferenceList(qe.currentPage))}),_.\u0275\u0275text(1," \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a "),_.\u0275\u0275elementEnd()}if(2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(1,rn,dt.disableRefreshBtn))}}function ke(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"app-references-item",33),_.\u0275\u0275listener("refreshList",function(){_.\u0275\u0275restoreView(dt);const qe=_.\u0275\u0275nextContext(2);return _.\u0275\u0275resetView(qe.getHistoryReferenceList(qe.currentPage))})("repeatReferenceEmit",function(qe){_.\u0275\u0275restoreView(dt);const ze=_.\u0275\u0275nextContext(2);return _.\u0275\u0275resetView(ze.repeatReference(qe.type,qe.data))}),_.\u0275\u0275elementEnd()}2&je&&_.\u0275\u0275property("itemReference",Et.$implicit)}function ge(je,Et){if(1&je){const dt=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",30),_.\u0275\u0275template(1,ke,1,1,"app-references-item",31),_.\u0275\u0275elementStart(2,"app-metib-paginator-custom",32),_.\u0275\u0275listener("changePaginationEmit",function(qe){_.\u0275\u0275restoreView(dt);const ze=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(ze.getHistoryReferenceList(qe))}),_.\u0275\u0275elementEnd()()}if(2&je){const dt=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",dt.referenceHistoryList),_.\u0275\u0275advance(1),_.\u0275\u0275property("currentPage",null==dt.currentPage?null:dt.currentPage.number)("currentSize",null==dt.currentPage?null:dt.currentPage.size)("currentTotal",null==dt.currentPage?null:dt.currentPage.total)("showMoreVisible",!0)}}const q=function(je){return{"references-info__text_hidden":je}},J=function(je){return{"references-info__link_show":je}};class Oe{onWindowScroll(){this.saveScrollTop=window.scrollY}constructor(Et,dt,rt,qe,ze,zt,vt,Rt,gt){if(this.referencesService=Et,this.modalService=dt,this.matDialog=rt,this.serverSettings=qe,this.documentService=ze,this.operationService=zt,this.translationService=vt,this.route=Rt,this.router=gt,this.unsubscribe$=new i.x,this.listReferencesDefault=[a.W.Opens,a.W.Remainder,a.W.Period,a.W.Debt,a.W.Card],this.resultVisibleReferences=[],this.isCollapseOpen=!1,this.referenceHistoryList=[],this.disableRefreshBtn=!1,this.icons=new pn.R(this.translationService).getIcons(),this.currentPage={size:10,number:0,total:0},this.sizeList=[10,20,100],this.isHistoryListByRoute=!1,this.saveScrollTop=0,Rt.snapshot.params.page>0&&this.sizeList.includes(+Rt.snapshot.params.size)){const sn=+Rt.snapshot.params.page-1,wn=+Rt.snapshot.params.size;this.currentPage.number===sn&&this.currentPage.size===wn?this.isHistoryListByRoute=!1:(this.currentPage={...this.currentPage,number:sn,size:wn},this.isHistoryListByRoute=!0)}}ngOnInit(){this.getHistoryReferenceList(this.currentPage),this.referencesService.getListReferences$().pipe((0,d.R)(this.unsubscribe$)).subscribe(Et=>{if(null!==Et){this.referenceHistoryList=Et?.documents;const dt=this.saveScrollTop;setTimeout(()=>{window.scroll({top:dt,left:0})},0),this.currentPage=Et?.page,this.currentPage||(this.currentPage={size:10,number:0,total:0},this.isHistoryListByRoute&&(this.getHistoryReferenceList(this.currentPage),this.isHistoryListByRoute=!1))}}),this.serverSettings.getBooleanSettings(this.serverSettings.servicesUL,this.listReferencesDefault).pipe((0,d.R)(this.unsubscribe$)).subscribe(Et=>{for(const dt in Et)Object.prototype.hasOwnProperty.call(Et,dt)&&Et[dt]&&this.resultVisibleReferences.push(dt)})}getHistoryReferenceList(Et){this.router.navigate(["references",Et?.number?+Et.number+1:1,Et?.size?Et.size:10]),this.referencesService.getHistoryReferenceList(Et)}refreshHistoryReferenceList(Et){this.disableRefreshBtn||(this.disableRefreshBtn=!0,this.getHistoryReferenceList(Et),setTimeout(()=>{this.disableRefreshBtn=!1},5e3))}openMcd(){window.open(this.referencesService.mcdLink,"_blank")}showOrHideInfo(){this.isCollapseOpen=!this.isCollapseOpen}repeatReference(Et,dt){let rt="";switch(Et){case a.X.Opens:rt=a.W.Opens;break;case a.X.Remainder:rt=a.W.Remainder;break;case a.X.Period:rt=a.W.Period;break;case a.X.Debt:rt=a.W.Debt;break;case a.X.Card:rt=a.W.Card}this.openModalGetReference(rt,dt)}openModalGetReference(Et,dt){let rt={};switch(Et){case a.W.Opens:rt={data:{title:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0441\u0447\u0435\u0442\u0430\u043c",type:"opens",contentForRepeat:dt||null},width:"724px",panelClass:"container-reference",autoFocus:!1};break;case a.W.Remainder:rt={data:{title:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0430\u043c \u043d\u0430 \u0434\u0430\u0442\u0443",type:"remainder",contentForRepeat:dt||null},width:"724px",panelClass:"container-reference",autoFocus:!1};break;case a.W.Period:rt={data:{title:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e \u043e\u0431\u043e\u0440\u043e\u0442\u0430\u043c \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434",type:"period",contentForRepeat:dt||null},width:"724px",panelClass:"container-reference",autoFocus:!1};break;case a.W.Debt:rt={data:{title:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043e\u0431 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u0441\u0443\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438",type:"debt",contentForRepeat:dt||null},width:"724px",panelClass:"container-reference",autoFocus:!1};break;case a.W.Card:rt={data:{title:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0438/\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u0438 ",type:"card",contentForRepeat:dt||null},width:"724px",panelClass:"container-reference",autoFocus:!1}}this.matDialog.open(hn,rt).afterClosed().pipe((0,d.R)(this.unsubscribe$)).subscribe(ze=>{ze&&this.openResultModal()})}openResultModal(){this.matDialog.open(hn,{data:{title:"\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u043f\u0440\u0430\u0432\u043a\u0443",type:"formation"},width:"724px",panelClass:"container-reference"}).afterClosed().pipe((0,d.R)(this.unsubscribe$)).subscribe(()=>{this.getHistoryReferenceList(this.currentPage)})}getNameReference(Et){switch(Et){case a.W.Opens:return"\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0441\u0447\u0435\u0442\u0430";case a.W.Remainder:return"\u041e\u0441\u0442\u0430\u0442\u043a\u0438 \u043f\u043e \u0441\u0447\u0435\u0442\u0430\u043c \u043d\u0430 \u0434\u0430\u0442\u0443";case a.W.Period:return"\u041e\u0431\u043e\u0440\u043e\u0442\u044b \u043f\u043e \u0441\u0447\u0435\u0442\u0430\u043c \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434";case a.W.Debt:return"\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0441\u0443\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u043e\u043b\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438";case a.W.Card:return"\u041d\u0430\u043b\u0438\u0447\u0438\u0435/\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u0438";default:return""}}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(dt){return new(dt||Oe)(_.\u0275\u0275directiveInject($.A),_.\u0275\u0275directiveInject(In.Z),_.\u0275\u0275directiveInject(h.uw),_.\u0275\u0275directiveInject(Dn.l),_.\u0275\u0275directiveInject(Tn.Z),_.\u0275\u0275directiveInject(mn.f),_.\u0275\u0275directiveInject(e.D7),_.\u0275\u0275directiveInject(Yn.gz),_.\u0275\u0275directiveInject(Yn.F0))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:Oe,selectors:[["app-references"]],hostBindings:function(dt,rt){1&dt&&_.\u0275\u0275listener("scroll",function(ze){return rt.onWindowScroll(ze)},!1,_.\u0275\u0275resolveWindow)},decls:32,vars:27,consts:[[1,"wrapper-references"],[1,"title-page-reference"],[1,"list-type-references"],["class","item-reference",3,"click",4,"ngFor","ngForOf"],["class","foot-list-references",4,"ngIf"],[1,"title-history-references-wrapper"],[1,"title-history-references"],[1,"history-references"],[1,"references-info"],[1,"references-info-wrapper"],["fontSet","material-icons-outlined",1,"references-info__icon"],[1,"references-info__text"],[3,"ngClass"],[1,"references-info__number"],[1,"references-info__link",3,"ngClass"],[3,"click"],[1,"references-info__more"],["class","empty-state-history-references",4,"ngIf"],[1,"paginator-wrapper"],["class","references-refresh",3,"ngClass","click",4,"ngIf"],[3,"currentPage","currentSize","currentTotal","showSize","scrollAfterNavigate","sizeList","changePaginationEmit"],["class","list-history",4,"ngIf"],[1,"item-reference",3,"click"],["svgIcon","pdf",1,"icon-reference"],[1,"text-reference"],[1,"foot-list-references"],[1,"line"],[1,"btn-show-more"],[1,"empty-state-history-references"],[1,"references-refresh",3,"ngClass","click"],[1,"list-history"],[3,"itemReference","refreshList","repeatReferenceEmit",4,"ngFor","ngForOf"],[3,"currentPage","currentSize","currentTotal","showMoreVisible","changePaginationEmit"],[3,"itemReference","refreshList","repeatReferenceEmit"]],template:function(dt,rt){1&dt&&(_.\u0275\u0275elementStart(0,"div",0)(1,"div",1),_.\u0275\u0275text(2,"\u0421\u043f\u0440\u0430\u0432\u043a\u0438"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(3,"div",2),_.\u0275\u0275template(4,Bt,4,1,"div",3),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(5,En,4,0,"div",4),_.\u0275\u0275elementStart(6,"div",5)(7,"div",6),_.\u0275\u0275text(8,"\u0418\u0441\u0442\u043e\u0440\u0438\u044f"),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(9,"div",7)(10,"div",8)(11,"div",9)(12,"mat-icon",10),_.\u0275\u0275text(13,"info"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(14,"div",11)(15,"span",12),_.\u0275\u0275text(16),_.\u0275\u0275pipe(17,"translate"),_.\u0275\u0275elementStart(18,"span",13),_.\u0275\u0275text(19),_.\u0275\u0275elementEnd()()()(),_.\u0275\u0275elementStart(20,"div",14)(21,"span",15),_.\u0275\u0275listener("click",function(){return rt.openMcd()}),_.\u0275\u0275text(22),_.\u0275\u0275pipe(23,"translate"),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(24,"div",16)(25,"span",15),_.\u0275\u0275listener("click",function(){return rt.showOrHideInfo()}),_.\u0275\u0275text(26),_.\u0275\u0275elementEnd()()(),_.\u0275\u0275template(27,Wn,2,0,"div",17),_.\u0275\u0275elementStart(28,"div",18),_.\u0275\u0275template(29,Sn,2,3,"div",19),_.\u0275\u0275elementStart(30,"app-metib-paginator-custom",20),_.\u0275\u0275listener("changePaginationEmit",function(ze){return rt.getHistoryReferenceList(ze)}),_.\u0275\u0275elementEnd()(),_.\u0275\u0275template(31,ge,3,5,"div",21),_.\u0275\u0275elementEnd()()),2&dt&&(_.\u0275\u0275advance(4),_.\u0275\u0275property("ngForOf",rt.resultVisibleReferences),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",rt.resultVisibleReferences.length>5),_.\u0275\u0275advance(10),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(23,q,!rt.isCollapseOpen)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1("",_.\u0275\u0275pipeBind2(17,17,"Reference description",rt.lang)," "),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(rt.referencesService.numberMcd),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(25,J,!rt.isCollapseOpen)),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind2(23,20,"Check status",rt.lang)),_.\u0275\u0275advance(4),_.\u0275\u0275textInterpolate(rt.isCollapseOpen?"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!(null!=rt.referenceHistoryList&&rt.referenceHistoryList.length)),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",null==rt.referenceHistoryList?null:rt.referenceHistoryList.length),_.\u0275\u0275advance(1),_.\u0275\u0275property("currentPage",null==rt.currentPage?null:rt.currentPage.number)("currentSize",null==rt.currentPage?null:rt.currentPage.size)("currentTotal",null==rt.currentPage?null:rt.currentPage.total)("showSize",!0)("scrollAfterNavigate",!1)("sizeList",rt.sizeList),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",null==rt.referenceHistoryList?null:rt.referenceHistoryList.length))},dependencies:[cn.n,T.mk,T.sg,T.O5,Ce.Hw,Nn.W,e.X$],styles:['@charset "UTF-8";.wrapper-references[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal}.wrapper-references[_ngcontent-%COMP%]   .title-page-reference[_ngcontent-%COMP%]{margin-top:12px;font-weight:700;font-size:24px;line-height:33px;color:#444}.wrapper-references[_ngcontent-%COMP%]   .description-page-reference[_ngcontent-%COMP%]{margin-top:12px;font-weight:400;font-size:16px;line-height:22px;color:#88909b}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-wrap:wrap;row-gap:20px;column-gap:18px}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]{width:calc(33% - 10px);cursor:pointer;display:flex;align-items:center;padding:20px;background:#ffffff;border-radius:8px}@media (max-width: 768px){.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]{width:100%}}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]   .text-reference[_ngcontent-%COMP%]{width:100%;margin-left:12px;font-weight:600;font-size:14px;line-height:19px;color:#080708}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]:hover{box-shadow:0 5px 20px #0807081a}.wrapper-references[_ngcontent-%COMP%]   .foot-list-references[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-references[_ngcontent-%COMP%]   .foot-list-references[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{width:89%;height:1px;background:#dedede;margin-right:12px}.wrapper-references[_ngcontent-%COMP%]   .foot-list-references[_ngcontent-%COMP%]   .btn-show-more[_ngcontent-%COMP%]{border:1px solid #2f54eb;border-radius:4px;align-items:center;padding:8px 12px;font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#2f54eb;cursor:pointer}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:46px}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .title-history-references[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:27px;color:#444}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .title-history-references.disabled[_ngcontent-%COMP%]{opacity:.5}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .refresh-history[_ngcontent-%COMP%]{font-weight:600;font-size:14px;line-height:19px;color:#88909b}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;margin-top:19px;background:#fff;padding:23px 32px 48px}@media (max-width: 768px){.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]{padding:24px 16px 48px}}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .empty-state-history-references[_ngcontent-%COMP%]{margin-top:124px;margin-bottom:80px;width:100%;font-weight:400;font-size:16px;line-height:22px;text-align:center;color:#88909b}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]{margin-top:33px;display:flex;flex-direction:column}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   app-references-item[_ngcontent-%COMP%]{background:#fff;border-bottom:1px solid #dedede}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   app-references-item[_ngcontent-%COMP%]:first-of-type{border-top:1px solid #dedede}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   app-references-item[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   .references-show-more-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border-radius:0 0 4px 4px;padding:20px}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   .references-show-more-wrapper[_ngcontent-%COMP%]   .references-show-more[_ngcontent-%COMP%]{padding:14px 25px;background:#f1f2f2;text-align:center;color:#88909b;cursor:pointer;font-size:16px;width:100%}.icon-reference[_ngcontent-%COMP%]{width:34px;height:34px;color:#88909b}.arrow-reference[_ngcontent-%COMP%]{color:transparent;font-size:16px;height:unset}.paginator-wrapper[_ngcontent-%COMP%]{position:relative}.references-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:2px;margin-bottom:24px;border-radius:4px;background:#fdf7e4}.references-info__link[_ngcontent-%COMP%]{color:#2f54eb;width:-moz-fit-content;width:fit-content;white-space:nowrap;margin:auto 20px;font-weight:600;font-size:14px;border-bottom:1px solid #2f54eb;cursor:pointer}.references-info__more[_ngcontent-%COMP%]{display:none}.references-info__number[_ngcontent-%COMP%]{font-weight:700}.references-info-wrapper[_ngcontent-%COMP%]{padding:20px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;color:#444;display:flex;align-items:center;column-gap:10px}.references-info__text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.references-info__text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#2f54eb}.references-info__icon[_ngcontent-%COMP%]{display:block;color:#f1c84a;width:36px;height:17px;font-size:18px}.references-refresh[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:24px;font-weight:600;font-size:14px;line-height:19px;color:#444;text-align:center;padding:13px 12px;border:1px solid #88909b;border-radius:4px}@media (min-width: 768px){.references-refresh[_ngcontent-%COMP%]{position:absolute;padding:8px 16px}}@media (min-width: 375px) and (max-width: 768px){.references-info[_ngcontent-%COMP%]{display:block;padding:18px}.references-info__text[_ngcontent-%COMP%]{overflow:hidden}.references-info__text_hidden[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.references-info-wrapper[_ngcontent-%COMP%]{padding:0}.references-info__link[_ngcontent-%COMP%]{margin:0;line-height:20px}.references-info__link_show[_ngcontent-%COMP%]{display:none}.references-info__more[_ngcontent-%COMP%]{display:block;color:#2f54eb;width:-moz-fit-content;width:fit-content;line-height:20px;font-weight:400;font-size:14px;border-bottom:1px solid #2f54eb;cursor:pointer;padding-top:12px}.references-info__icon[_ngcontent-%COMP%]{display:none}}']})}(0,n.gn)([(0,e.SQ)()],Oe.prototype,"lang",void 0)},70418:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{ReliableBusinessModule:()=>De});var n=t(36895),e=t(24006),i=t(65938),d=t(59541),a=t(37413),u=t(71702),h=t(88044),l=t(99762),m=t(54215),x=t(44180),O=t(97582),L=t(16611),w=t(15439),B=t.n(w),_=t(77579),y=t(61135),$=t(39646),C=t(4128),T=t(62843),j=t(70262),I=t(82722),F=t(35684),z=t(63900),X=t(54004),p=t(18505),P=t(94650),E=t(3751),R=t(15644),ne=(()=>{return(ve=ne||(ne={}))[ve.VIRGIN=0]="VIRGIN",ve[ve.CONNECTED=1]="CONNECTED",ve[ve.WAITING_CONNECTION=31]="WAITING_CONNECTION",ve[ve.WAITING_DISCONNECTION=30]="WAITING_DISCONNECTION",ne;var ve})(),G=(()=>{return(ve=G||(G={})).CONNECT="Connecting",ve.DISCONNECT="Turn off",ve.SENT="Sent",ve.SIGN="Sign",G;var ve})();let ce=(()=>{class ve{constructor(Me,We){this.apiService=Me,this.configUtilService=We}getReliableBusinessStatus(){return this.apiService.get("white_business/subscription/status")}getReliableBusinessPrice(){return this.apiService.get("white_business/subscription/price")}getReliableBusinessInfo(){return this.apiService.get("white_business/info")}postReliableBusinessSubscription(Me,We,ut){return this.apiService.post("white_business/subscription",{operationBool:Me,...Me?{accNumber:We,prolongation:ut}:{}})}getAccountsAndSettings(){return this.apiService.post("white_business/subscription",{}).pipe((0,X.U)(Me=>({debitAccounts:this.configUtilService.getArray(Me.debitAccounts),docSettings:this.configUtilService.getArray(Me.docSettings)})))}static#e=this.\u0275fac=function(We){return new(We||ve)(P.\u0275\u0275inject(E.s),P.\u0275\u0275inject(R.Pj))};static#t=this.\u0275prov=P.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();var xe=t(98202),we=t(39300),Ge=(()=>{return(ve=Ge||(Ge={})).INFO="info",ve.ERROR="error",ve.WARNING="warning",ve.SUCCESS="success",Ge;var ve})(),ct=(()=>{return(ve=ct||(ct={})).WILL_BE_DISABLED="Will be disabled",ve.CONNECTED_SINCE="Connected since",ve.CONNECTED_UNTIL="Connected until",ct;var ve})(),pe=t(68753),Ce=t(38101),U=t(75568),H=t(66518),Z=t(57823);function oe(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"div",9),P.\u0275\u0275text(1," \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0411\u0430\u043d\u043a "),P.\u0275\u0275element(2,"br")(3,"br")(4,"br"),P.\u0275\u0275elementStart(5,"div",10)(6,"div",11)(7,"app-metib-button",12),P.\u0275\u0275listener("clicked",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.signAgain())}),P.\u0275\u0275text(8,"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c"),P.\u0275\u0275elementEnd()()()()}}function Pe(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"app-confirmation-block",13),P.\u0275\u0275listener("loader",function(ut){P.\u0275\u0275restoreView(Me);const ue=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ue.setLoader(ut))})("resultWithDocument",function(ut){P.\u0275\u0275restoreView(Me);const ue=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ue.result(ut))}),P.\u0275\u0275elementEnd()}if(2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275property("docId",Me.docId)("useLoader",!0)("useModalStyle",!0)}}function Ie(ve,Se){1&ve&&(P.\u0275\u0275elementStart(0,"div",14),P.\u0275\u0275text(1,"\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0411\u0430\u043d\u043a. \u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438"),P.\u0275\u0275elementEnd())}function pt(ve,Se){1&ve&&P.\u0275\u0275element(0,"app-loader")}let Ht=(()=>{class ve{constructor(Me,We,ut,ue,et){this.reliableBusinessService=Me,this.authService=We,this.translation=ut,this.modalService=ue,this.changeDetectorRef=et,this.loader=!0,this.MESSAGE_TYPES=Ge,this.MESSAGE_TEXT=ct,this.needSecondSign=!1}ngOnInit(){const Me=this.authService.isLoggedIn$.pipe((0,we.h)(We=>!We)).subscribe(We=>{this.modalService.close(),Me.unsubscribe()});if(this.config.data.lastDocument&&(this.lastDocument=this.config.data.lastDocument),1==this.lastDocument?.signStatus&&"new"==this.lastDocument?.status)return this.docId=+this.lastDocument.id,void(this.needSecondSign=!0);this.reliableBusinessService.postReliableBusinessSubscription(!1,null,null).subscribe(We=>{this.docId=We,this.loader=!1,this.changeDetectorRef.markForCheck()})}signAgain(){this.needSecondSign=!1}result(Me){if(Me){if(this.lastDocument=Me.document[0].document,1==this.lastDocument?.signStatus&&"new"==this.lastDocument?.status)return this.docId=+this.lastDocument.id,void(this.needSecondSign=!0);this.lastDocument&&(this.lastDocument.status="send"),this.needSecondSign=!1,this.resultMessage=!0,this.afterAction({result:Me.resultStatus,typeMsg:this.MESSAGE_TYPES.ERROR,typeRb:this.translation.translate(this.MESSAGE_TEXT.WILL_BE_DISABLED)+" ",document:this.lastDocument}),setTimeout(()=>{this.modalService.close()},5e3)}}setLoader(Me){this.loader=Me}static#e=this.\u0275fac=function(We){return new(We||ve)(P.\u0275\u0275directiveInject(ce),P.\u0275\u0275directiveInject(pe.e),P.\u0275\u0275directiveInject(L.D7),P.\u0275\u0275directiveInject(Ce.Z),P.\u0275\u0275directiveInject(P.ChangeDetectorRef))};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-rb-sign-off-modal"]],inputs:{config:"config",afterAction:"afterAction"},decls:10,vars:9,consts:[[3,"className"],[1,"rb-sign-off-modal"],[1,"modal-header"],["mat-dialog-title",""],["mat-dialog-content",""],["class","resultMessage",4,"ngIf"],["buttonHorizontalPositionFlex","flex-start","docModule","ibankul","docType","aml_subscription",3,"docId","useLoader","useModalStyle","loader","resultWithDocument",4,"ngIf"],["class","result-message",4,"ngIf"],[4,"ngIf"],[1,"resultMessage"],[1,"signup-modal__wrapper"],[1,"signup-modal__field"],["type","primary",3,"clicked"],["buttonHorizontalPositionFlex","flex-start","docModule","ibankul","docType","aml_subscription",3,"docId","useLoader","useModalStyle","loader","resultWithDocument"],[1,"result-message"]],template:function(We,ut){1&We&&(P.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),P.\u0275\u0275text(4,'\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438 "17 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439"'),P.\u0275\u0275elementEnd()(),P.\u0275\u0275elementStart(5,"div",4),P.\u0275\u0275template(6,oe,9,0,"div",5),P.\u0275\u0275template(7,Pe,1,3,"app-confirmation-block",6),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(8,Ie,2,0,"div",7),P.\u0275\u0275elementEnd()(),P.\u0275\u0275template(9,pt,1,0,"app-loader",8)),2&We&&(P.\u0275\u0275styleProp("min-height",ut.config.height||"")("width",ut.config.width||""),P.\u0275\u0275property("className",ut.config.panelClass||""),P.\u0275\u0275advance(6),P.\u0275\u0275property("ngIf",ut.docId&&ut.needSecondSign&&!ut.resultMessage),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",ut.docId&&!ut.resultMessage&&!ut.needSecondSign),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",ut.resultMessage),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",ut.loader))},dependencies:[U.R,n.O5,H.B,Z.n,i.uh,i.xY],styles:['@charset "UTF-8";.rb-subscribe-modal{display:flex;flex-direction:column;flex-grow:1;font-family:Open Sans,Source Sans Pro,sans-serif}.rb-subscribe-modal app-select.invalid .custom-select .custom-select__fake{border-color:#ff2727;color:#ff2727}.rb-subscribe-modal app-select.invalid .custom-select .custom-select__fake .title{color:#ff2727}.rb-subscribe-modal app-select.invalid .custom-select .arrow-down{fill:#ff2727}.rb-subscribe-modal .custom-select .custom-select__fake{border-width:0 0 1px 0!important;box-shadow:none!important;border-style:solid;border-color:#000;border-radius:0;color:#000;min-width:360px;display:flex;align-items:baseline;max-width:640px;font-weight:400}.rb-subscribe-modal .signup-modal__wrapper{display:flex;flex-direction:column;gap:40px;position:relative}.rb-subscribe-modal .signup-modal__field{display:flex;gap:10px;justify-content:space-between}.rb-subscribe-modal .signup-modal__field app-metib-select{flex:1 0 auto;margin-top:24px;margin-right:0;margin-bottom:0}.rb-subscribe-modal .signup-modal__field app-metib-button{padding-top:20px}.rb-subscribe-modal .mat-mdc-dialog-content,.rb-subscribe-modal .mat-mdc-dialog-container,.rb-subscribe-modal .mat-mdc-mdc-dialog-container{overflow:visible}.rb-subscribe-modal .mat-mdc-dialog-content{width:100%;padding:0 32px 24px}.rb-subscribe-modal button span i{text-transform:none!important}.rb-subscribe-modal .document-sign__error{text-align:center}.rb-subscribe-modal .resultMessage{text-align:center;padding-top:30px}.rb-subscribe-modal .result-message{padding:70px 45px;text-align:center}.rb-sign-off-modal{display:flex;flex-direction:column;flex-grow:1}.mat-dialog-container,.mat-mdc-dialog-container{display:flex;flex-direction:column;flex-grow:1;position:relative}\n'],encapsulation:2,changeDetection:0})}return ve})();var Wt=t(39486),Xe=t(98504),Qe=t(9149),Be=t(88155);let at=(()=>{class ve{constructor(){}get value(){return this._value}set value(Me){this._value=Me}registerOnChange(Me){this.onChange=Me}registerOnTouched(Me){}writeValue(Me){this.value=Me}onChangeValue(Me){this.onChange(Me.target.checked)}static#e=this.\u0275fac=function(We){return new(We||ve)};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-metib-slide-toggle"]],features:[P.\u0275\u0275ProvidersFeature([{provide:e.NG_VALUE_ACCESSOR,useExisting:(0,P.forwardRef)(()=>ve),multi:!0}])],decls:3,vars:1,consts:[["type","checkbox",3,"checked","input"],[1,"slider"]],template:function(We,ut){1&We&&(P.\u0275\u0275elementStart(0,"label")(1,"input",0),P.\u0275\u0275listener("input",function(et){return ut.onChangeValue(et)}),P.\u0275\u0275elementEnd(),P.\u0275\u0275element(2,"span",1),P.\u0275\u0275elementEnd()),2&We&&(P.\u0275\u0275advance(1),P.\u0275\u0275property("checked",ut.value))},styles:['label[_ngcontent-%COMP%]{position:relative;display:flex;width:46px;height:24px}span[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#dedede;transition:.4s;border-radius:34px}span[_ngcontent-%COMP%]:before{position:absolute;content:"";height:18px;width:18px;left:2px;bottom:3px;background-color:#fff;transition:.4s;border-radius:50%}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#003ad2}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(23px)}']})}return ve})();function lt(ve,Se){1&ve&&P.\u0275\u0275element(0,"app-loader")}function Dt(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"form",7)(1,"div",8),P.\u0275\u0275element(2,"app-metib-select",9),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(3,lt,1,0,"app-loader",10),P.\u0275\u0275elementStart(4,"div",8)(5,"span"),P.\u0275\u0275text(6,"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u043e\u0434\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438"),P.\u0275\u0275elementEnd(),P.\u0275\u0275element(7,"app-metib-slide-toggle",11),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(8,"div",8)(9,"app-metib-button",12),P.\u0275\u0275listener("clicked",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext(2);return P.\u0275\u0275resetView(ut.forSign())}),P.\u0275\u0275text(10,"\u0414\u0430\u043b\u0435\u0435"),P.\u0275\u0275elementEnd()()()}if(2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275property("formGroup",Me.form),P.\u0275\u0275advance(2),P.\u0275\u0275property("items",Me.accounts)("label","caption"),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",Me.isLoading)}}function Yt(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"div",13),P.\u0275\u0275text(1," \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0411\u0430\u043d\u043a "),P.\u0275\u0275element(2,"br")(3,"br")(4,"br"),P.\u0275\u0275elementStart(5,"div",14)(6,"div",8)(7,"app-metib-button",12),P.\u0275\u0275listener("clicked",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext(2);return P.\u0275\u0275resetView(ut.signAgain())}),P.\u0275\u0275text(8,"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c"),P.\u0275\u0275elementEnd()()()()}}function Tt(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"app-confirmation-block",15),P.\u0275\u0275listener("resultWithDocument",function(ut){P.\u0275\u0275restoreView(Me);const ue=P.\u0275\u0275nextContext(2);return P.\u0275\u0275resetView(ue.result(ut))}),P.\u0275\u0275elementEnd()}if(2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275property("additionalData",Me.additionalData)("docId",Me.docId)("useLoader",!0)("useModalStyle",!0)}}function ot(ve,Se){if(1&ve&&(P.\u0275\u0275elementContainerStart(0),P.\u0275\u0275template(1,Dt,11,4,"form",4),P.\u0275\u0275template(2,Yt,9,0,"div",5),P.\u0275\u0275template(3,Tt,1,4,"app-confirmation-block",6),P.\u0275\u0275elementContainerEnd()),2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",!Me.docId),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",Me.docId&&Me.needSecondSign),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",Me.docId&&!Me.needSecondSign)}}function Gt(ve,Se){1&ve&&(P.\u0275\u0275elementStart(0,"div",13),P.\u0275\u0275text(1,"\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0411\u0430\u043d\u043a."),P.\u0275\u0275element(2,"br"),P.\u0275\u0275text(3,"\u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438."),P.\u0275\u0275elementEnd())}let wt=(()=>{class ve{constructor(Me,We,ut,ue,et,At,Ae,bt,Le){this.modalService=Me,this.productsService=We,this.reliableBusinessService=ut,this.fb=ue,this.authService=et,this.translation=At,this.changeDetectorRef=Ae,this.currencyPipe=bt,this.toastCustomService=Le,this.accounts=[],this.MESSAGE_TYPES=Ge,this.MESSAGE_TEXT=ct,this.isLoading=!0,this.form=this.fb.group({accountNumber:[null,e.Validators.required],prolongation:[!1]}),this.needSecondSign=!1,this.destroy$=new _.x}get accFld(){return this.form.get("accountNumber")}get prolFld(){return this.form.get("prolongation")}ngOnInit(){const Me=this.authService.isLoggedIn$.pipe((0,we.h)(We=>!We)).pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.modalService.close(),Me.unsubscribe()});if(this.config.data.lastDocument&&(this.lastDocument=this.config.data.lastDocument),1==this.lastDocument?.signStatus&&"new"==this.lastDocument?.status)return this.docId=+this.lastDocument.id,void(this.needSecondSign=!0);this.initAccountList()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}forSign(){this.accFld.markAsTouched(),this.form.markAsTouched(),this.form.updateValueAndValidity(),!this.form.invalid&&(this.additionalData={accountNumber:this.accFld.value},this.prolongation=this.prolFld.value,this.isLoading=!0,this.reliableBusinessService.postReliableBusinessSubscription(!0,this.accFld.value,!!this.prolongation).pipe((0,I.R)(this.destroy$)).subscribe(Me=>{this.docId=Me,this.isLoading=!1,this.changeDetectorRef.markForCheck()}))}signAgain(){this.needSecondSign=!1}result(Me){if(Me){if(this.lastDocument=Me.document[0].document,1==this.lastDocument?.signStatus&&"new"==this.lastDocument?.status)return this.docId=+this.lastDocument.id,this.needSecondSign=!0,void this.afterAction({document:this.lastDocument});this.lastDocument&&(this.lastDocument.status="send"),this.needSecondSign=!1,this.signResult=1,this.afterAction({result:3,typeMsg:this.MESSAGE_TYPES.SUCCESS,isProlongation:!!this.prolongation,typeRb:this.prolongation?this.translation.translate(this.MESSAGE_TEXT.CONNECTED_SINCE)+" ":this.translation.translate(this.MESSAGE_TEXT.CONNECTED_UNTIL)+" ",document:this.lastDocument}),setTimeout(()=>{this.modalService.close()},5e3)}}initAccountList(){this.reliableBusinessService.getAccountsAndSettings().pipe((0,I.R)(this.destroy$)).subscribe({next:Me=>{this.accounts=Me.debitAccounts.map(We=>({value:We.number,caption:We.alias||We.info,description:We.formattedNumber,additionalCaption:this.currencyPipe.transform(We.balance),contrCurrCode:We.currencyCode})),this.isLoading=!1,this.changeDetectorRef.markForCheck()},error:Me=>{this.isLoading=!1,this.changeDetectorRef.markForCheck(),this.toastCustomService.errorHandle(Me)}})}static#e=this.\u0275fac=function(We){return new(We||ve)(P.\u0275\u0275directiveInject(Ce.Z),P.\u0275\u0275directiveInject(Wt.su),P.\u0275\u0275directiveInject(ce),P.\u0275\u0275directiveInject(e.FormBuilder),P.\u0275\u0275directiveInject(pe.e),P.\u0275\u0275directiveInject(L.D7),P.\u0275\u0275directiveInject(P.ChangeDetectorRef),P.\u0275\u0275directiveInject(Xe.H),P.\u0275\u0275directiveInject(Qe.j))};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-rb-sign-up-modal"]],inputs:{config:"config",afterAction:"afterAction"},decls:5,vars:5,consts:[[3,"className"],["mat-dialog-content",""],[4,"ngIf","ngIfElse"],["resultMessage",""],["class","signup-modal__wrapper",3,"formGroup",4,"ngIf"],["class","resultMessage",4,"ngIf"],["buttonHorizontalPositionFlex","flex-start","docModule","ibankul","docType","aml_subscription","buttonType","primary-new",3,"additionalData","docId","useLoader","useModalStyle","resultWithDocument",4,"ngIf"],[1,"signup-modal__wrapper",3,"formGroup"],[1,"signup-modal__field"],["placeholder","Commission write-off account","customIcon","expand_more","appearance","dcb-alt","title","Commission write-off account","formControlName","accountNumber",3,"items","label"],[4,"ngIf"],["formControlName","prolongation"],["type","primary-new",3,"clicked"],[1,"resultMessage"],[1,"signup-modal__wrapper"],["buttonHorizontalPositionFlex","flex-start","docModule","ibankul","docType","aml_subscription","buttonType","primary-new",3,"additionalData","docId","useLoader","useModalStyle","resultWithDocument"]],template:function(We,ut){if(1&We&&(P.\u0275\u0275elementStart(0,"div",0)(1,"div",1),P.\u0275\u0275template(2,ot,4,3,"ng-container",2),P.\u0275\u0275template(3,Gt,4,0,"ng-template",null,3,P.\u0275\u0275templateRefExtractor),P.\u0275\u0275elementEnd()()),2&We){const ue=P.\u0275\u0275reference(4);P.\u0275\u0275styleProp("min-height",ut.config.height||""),P.\u0275\u0275property("className",ut.config.panelClass||""),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",!ut.signResult)("ngIfElse",ue)}},dependencies:[U.R,Be.A,n.O5,H.B,Z.n,at,e.\u0275NgNoValidate,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,i.xY],styles:['@charset "UTF-8";.rb-subscribe-modal{display:flex;flex-direction:column;flex-grow:1;font-family:Open Sans,Source Sans Pro,sans-serif}.rb-subscribe-modal app-select.invalid .custom-select .custom-select__fake{border-color:#ff2727;color:#ff2727}.rb-subscribe-modal app-select.invalid .custom-select .custom-select__fake .title{color:#ff2727}.rb-subscribe-modal app-select.invalid .custom-select .arrow-down{fill:#ff2727}.rb-subscribe-modal .custom-select .custom-select__fake{border-width:0 0 1px 0!important;box-shadow:none!important;border-style:solid;border-color:#000;border-radius:0;color:#000;min-width:360px;display:flex;align-items:baseline;max-width:640px;font-weight:400}.rb-subscribe-modal .signup-modal__wrapper{display:flex;flex-direction:column;gap:40px;position:relative}.rb-subscribe-modal .signup-modal__field{display:flex;gap:10px;justify-content:space-between}.rb-subscribe-modal .signup-modal__field app-metib-select{flex:1 0 auto;margin-top:24px;margin-right:0;margin-bottom:0}.rb-subscribe-modal .signup-modal__field app-metib-button{padding-top:20px}.rb-subscribe-modal .mat-mdc-dialog-content,.rb-subscribe-modal .mat-mdc-dialog-container,.rb-subscribe-modal .mat-mdc-mdc-dialog-container{overflow:visible}.rb-subscribe-modal .mat-mdc-dialog-content{width:100%;padding:0 32px 24px}.rb-subscribe-modal button span i{text-transform:none!important}.rb-subscribe-modal .document-sign__error{text-align:center}.rb-subscribe-modal .resultMessage{text-align:center;padding-top:30px}.rb-subscribe-modal .result-message{padding:70px 45px;text-align:center}\n'],encapsulation:2,changeDetection:0})}return ve})();var Ut=t(90042),vn=t(40929),xn=t(11260);const bn=["*"];let hn=(()=>{class ve{constructor(){this.title="",this.subTitle="\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u043e \u043e\u0442\u0440\u0430\u0441\u043b\u0438. \u041c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0431\u0449\u0443\u044e \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443\n\u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 90 \u0438 180 \u0434\u043d\u0435\u0439 \u0438 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u0447\u0435\u0442\u0430."}static#e=this.\u0275fac=function(We){return new(We||ve)};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-page-section"]],inputs:{title:"title",subTitle:"subTitle"},ngContentSelectors:bn,decls:6,vars:2,consts:[[1,"page-section"],[1,"page-section__title"],[1,"page-section__sub-title",3,"innerHTML"],[1,"page-section__content"]],template:function(We,ut){1&We&&(P.\u0275\u0275projectionDef(),P.\u0275\u0275elementStart(0,"section",0)(1,"h6",1),P.\u0275\u0275text(2),P.\u0275\u0275elementEnd(),P.\u0275\u0275element(3,"p",2),P.\u0275\u0275elementStart(4,"div",3),P.\u0275\u0275projection(5),P.\u0275\u0275elementEnd()()),2&We&&(P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate1(" ",ut.title," "),P.\u0275\u0275advance(1),P.\u0275\u0275property("innerHTML",ut.subTitle,P.\u0275\u0275sanitizeHtml))},styles:[".page-section[_ngcontent-%COMP%]{width:100%;margin:30px 0;font-size:18px}.page-section__title[_ngcontent-%COMP%]{margin-bottom:30px;font-size:1.23em;font-weight:700;text-align:center}.page-section__sub-title[_ngcontent-%COMP%]{margin-bottom:40px;text-align:left}.page-section__content[_ngcontent-%COMP%]{display:flex;justify-content:center}"]})}return ve})(),pn=(()=>{class ve{constructor(Me){this.hostRef=Me}ngAfterViewInit(){this.initDefault(this.hostRef.nativeElement)}initDefault(Me){!function In(ve){const Se=ve.querySelector(".tooltip")?ve.querySelector(".tooltip"):null,Me=ve.querySelector(".tooltip-name")?ve.querySelector(".tooltip-name"):null;!Se||!Me||(ve.addEventListener("mouseenter",We=>{if(ve.classList.contains("no-more-info"))return;const{left:ut,right:ue,bottom:et}=Me.getBoundingClientRect(),{clientWidth:At}=Se,bt=window.innerWidth-ue>At;Se.style.width=ut>At||bt?"max-content":"min-content";const{clientHeight:Le}=Se,Pt=window.innerWidth-ue>At,dn=window.innerHeight-et>Le;Pt?dn?(Se.classList.remove("right-up-arrow-before"),Se.classList.add("right-down-arrow-before"),Se.classList.remove("left-down-arrow-before"),Se.classList.remove("left-up-arrow-before")):(Se.classList.add("right-up-arrow-before"),Se.classList.remove("right-down-arrow-before"),Se.classList.remove("left-down-arrow-before"),Se.classList.remove("left-up-arrow-before")):dn?(Se.classList.remove("right-up-arrow-before"),Se.classList.remove("right-down-arrow-before"),Se.classList.add("left-down-arrow-before"),Se.classList.remove("left-up-arrow-before")):(Se.classList.remove("right-up-arrow-before"),Se.classList.remove("right-down-arrow-before"),Se.classList.remove("left-down-arrow-before"),Se.classList.add("left-up-arrow-before")),Se.style.top=Se.classList.contains("left-down-arrow-before")||Se.classList.contains("right-down-arrow-before")?"40px":`-${Le+15}px`,Se.style.opacity="1",Se.style.zIndex="100"}),ve.addEventListener("mouseleave",()=>{Se.style.opacity="0",Se.style.zIndex="-5",Se.style.width="max-content"}))}(Me)}static#e=this.\u0275fac=function(We){return new(We||ve)(P.\u0275\u0275directiveInject(P.ElementRef))};static#t=this.\u0275dir=P.\u0275\u0275defineDirective({type:ve,selectors:[["","appTooltipify",""]]})}return ve})();const Dn=["percentageCircle"];let Tn=(()=>{class ve{constructor(){this.isValue=!1,this.hasValue=!0,this.wholeAmount=100,this.color="",this.bgColor="#FFFFF",this.type="primary"}ngAfterViewInit(){this.percentageCircle.nativeElement.setAttribute("stroke-dasharray","0,25,100")}static#e=this.\u0275fac=function(We){return new(We||ve)};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-circle-diagram"]],viewQuery:function(We,ut){if(1&We&&P.\u0275\u0275viewQuery(Dn,5),2&We){let ue;P.\u0275\u0275queryRefresh(ue=P.\u0275\u0275loadQuery())&&(ut.percentageCircle=ue.first)}},inputs:{isValue:"isValue",hasValue:"hasValue",wholeAmount:"wholeAmount",color:"color",value:"value",bgColor:"bgColor",type:"type"},decls:9,vars:30,consts:[[1,"flex-wrapper"],["viewBox","0 0 36 36","xmlns","http://www.w3.org/2000/svg",1,"circular-chart"],["d","M18 2.0845\n          a 15.9155 15.9155 0 0 1 0 31.831\n          a 15.9155 15.9155 0 0 1 0 -31.831",1,"circle-bg"],["d","M18 2.0845\n          a 15.9155 15.9155 0 0 1 0 31.831\n          a 15.9155 15.9155 0 0 1 0 -31.831",1,"circle"],["percentageCircle",""],["x","19","y","21.35",1,"percentage"],[1,"small"]],template:function(We,ut){1&We&&(P.\u0275\u0275elementStart(0,"div",0),P.\u0275\u0275namespaceSVG(),P.\u0275\u0275elementStart(1,"svg",1),P.\u0275\u0275element(2,"path",2)(3,"path",3,4),P.\u0275\u0275elementStart(5,"text",5),P.\u0275\u0275text(6),P.\u0275\u0275elementStart(7,"tspan",6),P.\u0275\u0275text(8),P.\u0275\u0275elementEnd()()()()),2&We&&(P.\u0275\u0275styleProp("background-color",ut.bgColor),P.\u0275\u0275advance(3),P.\u0275\u0275classProp("error-stroke","error"===ut.type&&!ut.color)("primary-stroke","primary"===ut.type&&!ut.color)("success-stroke","success"===ut.type&&!ut.color)("warning-stroke","warning"===ut.type&&!ut.color)("black-stroke","black"===ut.type&&!ut.color)("gray-stroke","gray"===ut.type&&!ut.color),P.\u0275\u0275attribute("stroke",ut.color),P.\u0275\u0275advance(2),P.\u0275\u0275classProp("error","error"===ut.type&&!ut.color)("primary","primary"===ut.type&&!ut.color)("success","success"===ut.type&&!ut.color)("warning","warning"===ut.type&&!ut.color)("black","black"===ut.type&&!ut.color)("gray","gray"===ut.type&&!ut.color),P.\u0275\u0275attribute("fill",ut.color),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",ut.hasValue?ut.value:"",""),P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate(ut.isValue||!ut.hasValue?"":"%"))},styles:['@charset "UTF-8";.svg-item[_ngcontent-%COMP%]{position:relative;height:100%;width:100%}.success[_ngcontent-%COMP%]{fill:#28b26d}.warning[_ngcontent-%COMP%]{fill:#f3ac24}.error[_ngcontent-%COMP%]{fill:#d9291e}.black[_ngcontent-%COMP%]{fill:#444}.gray[_ngcontent-%COMP%]{fill:#c4c4c4}.primary[_ngcontent-%COMP%]{fill:#284681}.success-stroke[_ngcontent-%COMP%]{stroke:#28b26d}.warning-stroke[_ngcontent-%COMP%]{stroke:#f3ac24}.error-stroke[_ngcontent-%COMP%]{stroke:#d9291e}.primary-stroke[_ngcontent-%COMP%]{stroke:#284681}.black-stroke[_ngcontent-%COMP%]{stroke:#444}.gray-stroke[_ngcontent-%COMP%]{stroke:#c4c4c4}.circular-chart[_ngcontent-%COMP%]{display:block;filter:drop-shadow(2px 4px 4px rgba(0,0,0,.12))}@keyframes _ngcontent-%COMP%_progress{0%{stroke-dasharray:0 100}}.percentage[_ngcontent-%COMP%]{font-size:.61em;text-anchor:middle;line-height:1;font-style:normal;font-weight:700;text-align:center}.small[_ngcontent-%COMP%]{font-size:.55em}.circle-bg[_ngcontent-%COMP%]{fill:none;stroke:#eee;stroke-width:2.8}.circle[_ngcontent-%COMP%]{fill:none;stroke-width:2.8;stroke-linecap:round;animation:_ngcontent-%COMP%_progress 1s ease-out forwards}']})}return ve})();function mn(ve,Se){if(1&ve&&(P.\u0275\u0275elementContainerStart(0),P.\u0275\u0275elementStart(1,"span",9),P.\u0275\u0275text(2),P.\u0275\u0275pipe(3,"translate"),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementContainerEnd()),2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind2(3,1,"No data",Me.lang))}}function Yn(ve,Se){if(1&ve&&(P.\u0275\u0275elementStart(0,"div",10)(1,"p",11),P.\u0275\u0275text(2),P.\u0275\u0275pipe(3,"translate"),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(4,"p",12),P.\u0275\u0275text(5),P.\u0275\u0275elementEnd()()),2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind2(3,2,"Recommended value",Me.lang)),P.\u0275\u0275advance(3),P.\u0275\u0275textInterpolate1("> ",Me.dataTabletCircleDiagram.recommendedValue,"%")}}function cn(ve,Se){if(1&ve&&(P.\u0275\u0275elementContainerStart(0),P.\u0275\u0275template(1,mn,4,4,"ng-container",2),P.\u0275\u0275template(2,Yn,6,5,"div",8),P.\u0275\u0275elementContainerEnd()),2&ve){const Me=P.\u0275\u0275nextContext(),We=P.\u0275\u0275reference(11);P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",Me.isNoData)("ngIfElse",We),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",Me.dataTabletCircleDiagram.recommendedValue)}}function Nn(ve,Se){if(1&ve&&(P.\u0275\u0275elementStart(0,"div",13)(1,"span",14),P.\u0275\u0275text(2),P.\u0275\u0275elementEnd(),P.\u0275\u0275text(3),P.\u0275\u0275elementEnd()),2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate(Me.dataTabletCircleDiagram.moreInfoHeader||Me.dataTabletCircleDiagram.title),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",Me.dataTabletCircleDiagram.moreInfoText," ")}}function Bt(ve,Se){1&ve&&(P.\u0275\u0275namespaceSVG(),P.\u0275\u0275elementStart(0,"svg",15),P.\u0275\u0275element(1,"path",16),P.\u0275\u0275elementEnd())}function En(ve,Se){if(1&ve&&P.\u0275\u0275element(0,"app-circle-diagram",17),2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275property("color",Me.dataTabletCircleDiagram.color)("isValue",Me.dataTabletCircleDiagram.isValue)("type",Me.dataTabletCircleDiagram.type)("value",Me.dataTabletCircleDiagram.value)("wholeAmount",Me.dataTabletCircleDiagram.wholeAmount)}}const Wn=function(ve,Se){return{color:ve,"border-bottom":Se}};class rn{constructor(){this.isLocked=!1,this.dataTabletCircleDiagram={color:"",moreInfo:"",moreInfoText:"",title:"",value:"",type:"primary",isValue:!1,moreInfoType:"black",recommendedValue:null},this.title="",this.paymentModalAction=new P.EventEmitter}get isNoData(){return null===this.dataTabletCircleDiagram.value||!this.dataTabletCircleDiagram.wholeAmount&&this.dataTabletCircleDiagram.value&&this.dataTabletCircleDiagram.isValue}paymentModal(){this.paymentModalAction.emit()}static#e=this.\u0275fac=function(Me){return new(Me||rn)};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:rn,selectors:[["app-tablet-circle-diagram"]],inputs:{isLocked:"isLocked",dataTabletCircleDiagram:"dataTabletCircleDiagram",title:"title"},outputs:{paymentModalAction:"paymentModalAction"},decls:12,vars:12,consts:[[1,"tablet"],[1,"tablet__title"],[4,"ngIf","ngIfElse"],["appTooltipify","",1,"tablet__tooltip-wrapper"],[1,"tablet__tooltip-name","tooltip-name",3,"ngClass","ngStyle","click"],["class","tablet__tooltip right-up-arrow-before tooltip",4,"ngIf"],["locked",""],["circle",""],["class","tablet__recommended",4,"ngIf"],[1,"tablet__no-data"],[1,"tablet__recommended"],[1,"tablet__recommended-text","tablet__recommended-text--gray"],[1,"tablet__recommended-text"],[1,"tablet__tooltip","right-up-arrow-before","tooltip"],[1,"tablet__tooltip-header"],["fill","none","height","48","viewBox","0 0 41 48","width","41","xmlns","http://www.w3.org/2000/svg",1,"tablet__locked"],["d","M20.25 0C13.2713 0 7.59375 5.3832 7.59375 12V19.2H5.0625C3.71984 19.2 2.43217 19.7057 1.48277 20.6059C0.533369 21.5061 0 22.727 0 24V43.2C0 44.473 0.533369 45.6939 1.48277 46.5941C2.43217 47.4943 3.71984 48 5.0625 48H35.4375C36.7802 48 38.0678 47.4943 39.0172 46.5941C39.9666 45.6939 40.5 44.473 40.5 43.2V24C40.5 22.727 39.9666 21.5061 39.0172 20.6059C38.0678 19.7057 36.7802 19.2 35.4375 19.2H32.9062V12C32.9062 5.3832 27.2287 0 20.25 0ZM12.6562 12C12.6562 8.0304 16.0633 4.8 20.25 4.8C24.4367 4.8 27.8438 8.0304 27.8438 12V19.2H12.6562V12ZM22.7812 37.7352V43.2H17.7188V37.7352C16.8338 37.2547 16.1232 36.5312 15.6807 35.6601C15.2381 34.7889 15.0844 33.8111 15.2399 32.8555C15.3953 31.8998 15.8525 31.0113 16.5512 30.307C17.25 29.6028 18.1575 29.1158 19.154 28.9104C19.8942 28.7552 20.6616 28.7596 21.3998 28.9231C22.138 29.0866 22.828 29.4051 23.4191 29.8552C24.0101 30.3053 24.4871 30.8754 24.8148 31.5235C25.1425 32.1716 25.3126 32.8812 25.3125 33.6C25.311 34.4394 25.0763 35.2636 24.6319 35.9895C24.1875 36.7155 23.5492 37.3176 22.7812 37.7352Z","fill","#88909B"],[1,"tablet__circle",3,"color","isValue","type","value","wholeAmount"]],template:function(Me,We){if(1&Me&&(P.\u0275\u0275elementStart(0,"div",0)(1,"h3",1),P.\u0275\u0275text(2),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(3,cn,3,3,"ng-container",2),P.\u0275\u0275elementStart(4,"div",3)(5,"span",4),P.\u0275\u0275listener("click",function(){return We.isLocked?We.paymentModal():null}),P.\u0275\u0275text(6),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(7,Nn,4,2,"div",5),P.\u0275\u0275elementEnd()(),P.\u0275\u0275template(8,Bt,2,0,"ng-template",null,6,P.\u0275\u0275templateRefExtractor),P.\u0275\u0275template(10,En,1,5,"ng-template",null,7,P.\u0275\u0275templateRefExtractor)),2&Me){const ut=P.\u0275\u0275reference(9);P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate(We.dataTabletCircleDiagram?We.dataTabletCircleDiagram.title:We.title),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",!We.isLocked)("ngIfElse",ut),P.\u0275\u0275advance(1),P.\u0275\u0275classProp("no-more-info",!We.dataTabletCircleDiagram||!We.dataTabletCircleDiagram.moreInfoText||!We.dataTabletCircleDiagram.moreInfo||We.isLocked),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngClass",We.dataTabletCircleDiagram?We.dataTabletCircleDiagram.moreInfoType:"")("ngStyle",P.\u0275\u0275pureFunction2(9,Wn,We.isLocked?"#003AD2":null,We.isLocked?"1px dashed #003AD2":null)),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate(We.isLocked?"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u043f\u043b\u0430\u0442\u044b":We.dataTabletCircleDiagram.moreInfo),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",We.dataTabletCircleDiagram)}},dependencies:[n.mk,n.O5,n.PC,pn,Tn,L.X$],styles:['@charset "UTF-8";.tablet[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;align-items:center;padding:15px 24px 31px;background:#ffffff;box-shadow:0 4px 30px #00000021;border-radius:4px;box-sizing:border-box}.tablet__title[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:14px;line-height:19px;color:#000;margin:0 0 35px;max-width:92%;height:57px;text-align:center}.tablet__recommended[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.tablet__recommended-text[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:19px;width:50%;text-align:right;margin:0}.tablet__recommended-text--gray[_ngcontent-%COMP%]{color:#88909b;text-align:left}.tablet__circle[_ngcontent-%COMP%]{width:110px;height:110px;margin-bottom:auto}.tablet__locked[_ngcontent-%COMP%]{margin:auto;width:48px;height:41px}.tablet__tooltip-name[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:14px;line-height:19px;color:#444;border-bottom:1px dashed #444444;cursor:pointer}.tablet__tooltip-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;margin-top:auto}.tablet__tooltip-header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:15px}.tablet__tooltip[_ngcontent-%COMP%]{opacity:0;position:absolute;display:flex;background:#1a2a40;border-radius:4px;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#fff;padding:20px;max-width:400px;width:max-content;flex-direction:column;z-index:-5}.tablet__tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;width:20px;height:20px;background:#1a2a40;border-radius:2px;transform:rotate(45deg);left:18px;top:-9px}.tablet__no-data[_ngcontent-%COMP%]{height:100px;margin:auto;font-weight:400;font-size:14px;line-height:19px;text-align:center;color:#88909b;max-width:70%}.primary[_ngcontent-%COMP%]{color:#284681;border-bottom:1px dashed #284681}.warning[_ngcontent-%COMP%]{color:#f3ac24;border-bottom:1px dashed #f3ac24}.error[_ngcontent-%COMP%]{color:#d9291e;border-bottom:1px dashed #d9291e}.black[_ngcontent-%COMP%]{color:#444}']})}(0,O.gn)([(0,L.SQ)()],rn.prototype,"lang",void 0);var Sn=t(97392),ke=t(11481);let ge=(()=>{class ve{constructor(Me,We){this.type=Ge.INFO,Object.keys(xe.PJ).forEach(ut=>Me.addSvgIcon(xe.u[ut],We.bypassSecurityTrustResourceUrl(xe.PJ[ut])))}get messageIcon(){return this.type}get applyStyles(){return{"background-color":xe.I5[this.enumByType]}}get enumByType(){return Object.keys(xe.u).find(Me=>xe.u[Me]===this.type)}static#e=this.\u0275fac=function(We){return new(We||ve)(P.\u0275\u0275directiveInject(Sn.jv),P.\u0275\u0275directiveInject(ke.DomSanitizer))};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-metib-status-alert"]],inputs:{title:"title",type:"type"},decls:4,vars:3,consts:[[1,"metib-status-alert",3,"ngStyle"],[1,"metib-status-alert__icon"],[3,"svgIcon"],[1,"metib-status-alert__text",3,"innerHTML"]],template:function(We,ut){1&We&&(P.\u0275\u0275elementStart(0,"article",0)(1,"div",1),P.\u0275\u0275element(2,"mat-icon",2),P.\u0275\u0275elementEnd(),P.\u0275\u0275element(3,"p",3),P.\u0275\u0275elementEnd()),2&We&&(P.\u0275\u0275property("ngStyle",ut.applyStyles),P.\u0275\u0275advance(2),P.\u0275\u0275property("svgIcon",ut.messageIcon),P.\u0275\u0275advance(1),P.\u0275\u0275property("innerHTML",ut.title,P.\u0275\u0275sanitizeHtml))},dependencies:[n.PC,Sn.Hw],styles:[".metib-status-alert[_ngcontent-%COMP%]{margin:36px 0;width:100%;border-radius:4px;padding:16px 30px;display:flex;align-items:center}.metib-status-alert__icon[_ngcontent-%COMP%]{display:flex;align-items:center}.metib-status-alert__text[_ngcontent-%COMP%]{padding:0 13px;margin:0}"]})}return ve})();function q(ve,Se){if(1&ve&&(P.\u0275\u0275elementContainerStart(0),P.\u0275\u0275elementStart(1,"span",8),P.\u0275\u0275text(2),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementContainerEnd()),2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275advance(1),P.\u0275\u0275property("ngClass",Me.dataTabletDiagram.type),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate(Me.dataTabletDiagram.valueText)}}function J(ve,Se){if(1&ve&&(P.\u0275\u0275elementStart(0,"div",9)(1,"span",10),P.\u0275\u0275text(2),P.\u0275\u0275elementEnd(),P.\u0275\u0275text(3),P.\u0275\u0275elementEnd()),2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate(Me.dataTabletDiagram.moreInfoHeader||Me.dataTabletDiagram.title),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",Me.dataTabletDiagram.moreInfoText," ")}}function Oe(ve,Se){1&ve&&(P.\u0275\u0275namespaceSVG(),P.\u0275\u0275elementStart(0,"svg",11),P.\u0275\u0275element(1,"path",12),P.\u0275\u0275elementEnd())}const je=function(ve,Se){return{color:ve,"border-bottom":Se}};class Et{constructor(){this.isLocked=!1,this.dataTabletDiagram={color:"",moreInfo:"",moreInfoHeader:"",moreInfoText:"",title:"",value:"",valueText:"",type:"primary",isValue:!1,moreInfoType:"black",recommendedValue:null},this.title="",this.paymentModalAction=new P.EventEmitter}paymentModal(){this.paymentModalAction.emit()}ngOnChanges(Se){"color"in Se&&(this.colorBorder=`1px dashed ${this.dataTabletDiagram.color}`)}static#e=this.\u0275fac=function(Me){return new(Me||Et)};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:Et,selectors:[["app-wide-tablet"]],inputs:{isLocked:"isLocked",dataTabletDiagram:"dataTabletDiagram",title:"title"},outputs:{paymentModalAction:"paymentModalAction"},features:[P.\u0275\u0275NgOnChangesFeature],decls:11,vars:17,consts:[[1,"tablet"],[1,"tablet__title"],[4,"ngIf","ngIfElse"],[1,"tablet__gray-hr"],["appTooltipify","",1,"tablet__tooltip-wrapper"],[3,"ngClass","ngStyle","click"],["class","tablet__tooltip right-up-arrow-before tooltip",4,"ngIf"],["locked",""],[1,"tablet__value-text",3,"ngClass"],[1,"tablet__tooltip","right-up-arrow-before","tooltip"],[1,"tablet__tooltip-header"],["fill","none","height","48","viewBox","0 0 41 48","width","41","xmlns","http://www.w3.org/2000/svg",1,"tablet__locked"],["d","M20.25 0C13.2713 0 7.59375 5.3832 7.59375 12V19.2H5.0625C3.71984 19.2 2.43217 19.7057 1.48277 20.6059C0.533369 21.5061 0 22.727 0 24V43.2C0 44.473 0.533369 45.6939 1.48277 46.5941C2.43217 47.4943 3.71984 48 5.0625 48H35.4375C36.7802 48 38.0678 47.4943 39.0172 46.5941C39.9666 45.6939 40.5 44.473 40.5 43.2V24C40.5 22.727 39.9666 21.5061 39.0172 20.6059C38.0678 19.7057 36.7802 19.2 35.4375 19.2H32.9062V12C32.9062 5.3832 27.2287 0 20.25 0ZM12.6562 12C12.6562 8.0304 16.0633 4.8 20.25 4.8C24.4367 4.8 27.8438 8.0304 27.8438 12V19.2H12.6562V12ZM22.7812 37.7352V43.2H17.7188V37.7352C16.8338 37.2547 16.1232 36.5312 15.6807 35.6601C15.2381 34.7889 15.0844 33.8111 15.2399 32.8555C15.3953 31.8998 15.8525 31.0113 16.5512 30.307C17.25 29.6028 18.1575 29.1158 19.154 28.9104C19.8942 28.7552 20.6616 28.7596 21.3998 28.9231C22.138 29.0866 22.828 29.4051 23.4191 29.8552C24.0101 30.3053 24.4871 30.8754 24.8148 31.5235C25.1425 32.1716 25.3126 32.8812 25.3125 33.6C25.311 34.4394 25.0763 35.2636 24.6319 35.9895C24.1875 36.7155 23.5492 37.3176 22.7812 37.7352Z","fill","#88909B"]],template:function(Me,We){if(1&Me&&(P.\u0275\u0275elementStart(0,"div",0)(1,"h3",1),P.\u0275\u0275text(2),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(3,q,3,2,"ng-container",2),P.\u0275\u0275element(4,"hr",3),P.\u0275\u0275elementStart(5,"div",4)(6,"span",5),P.\u0275\u0275listener("click",function(){return We.isLocked?We.paymentModal():null}),P.\u0275\u0275text(7),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(8,J,4,2,"div",6),P.\u0275\u0275elementEnd()(),P.\u0275\u0275template(9,Oe,2,0,"ng-template",null,7,P.\u0275\u0275templateRefExtractor)),2&Me){const ut=P.\u0275\u0275reference(10);P.\u0275\u0275advance(1),P.\u0275\u0275classProp("no-margin",We.dataTabletDiagram?We.dataTabletDiagram.valueText:""),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",We.dataTabletDiagram?We.dataTabletDiagram.title:We.title," "),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",!We.isLocked)("ngIfElse",ut),P.\u0275\u0275advance(2),P.\u0275\u0275classProp("no-more-info",!We.dataTabletDiagram||!We.dataTabletDiagram.moreInfoText||!We.dataTabletDiagram.moreInfo||We.isLocked),P.\u0275\u0275advance(1),P.\u0275\u0275classMapInterpolate1("tablet__tooltip-name ",We.dataTabletDiagram?null!=We.dataTabletDiagram.color&&We.dataTabletDiagram.color.length?null:We.dataTabletDiagram.moreInfoType:"","-border tooltip-name"),P.\u0275\u0275property("ngClass",We.dataTabletDiagram?null!=We.dataTabletDiagram.color&&We.dataTabletDiagram.color.length?null:We.dataTabletDiagram.moreInfoType:"")("ngStyle",P.\u0275\u0275pureFunction2(14,je,We.isLocked?"#003AD2":null,We.isLocked?"1px dashed #003AD2":null)),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate(We.isLocked?"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u043f\u043b\u0430\u0442\u044b":We.dataTabletDiagram.moreInfo),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",We.dataTabletDiagram)}},dependencies:[n.mk,n.O5,n.PC,pn],styles:['@charset "UTF-8";.tablet[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;align-items:center;padding:15px 25px 34px;background:#ffffff;box-shadow:0 4px 30px #00000021;border-radius:4px;box-sizing:border-box;min-height:203px;height:-moz-fit-content;height:fit-content;margin-bottom:20px}.tablet__value-text[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:14px;line-height:19px;margin-bottom:auto;margin-top:auto;max-width:65%;text-align:center}.tablet__title[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:14px;line-height:19px;color:#000;margin:0 0 25px;max-width:92%;text-align:center}.tablet__locked[_ngcontent-%COMP%]{width:27px;height:32px;margin-top:auto;margin-bottom:auto}.tablet__tooltip-name[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:14px;line-height:19px;color:#444;border-bottom:1px dashed #444444;cursor:pointer}.tablet__tooltip-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative}.tablet__tooltip-header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:15px}.tablet__tooltip[_ngcontent-%COMP%]{opacity:0;position:absolute;display:flex;background:#1a2a40;border-radius:4px;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#fff;padding:20px;max-width:400px;width:max-content;flex-direction:column;z-index:-5}.tablet__tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;width:20px;height:20px;background:#1a2a40;border-radius:2px;transform:rotate(45deg);left:18px;top:-9px}.tablet__gray-hr[_ngcontent-%COMP%]{background:#dedede;border:1px solid #dedede;width:100%;margin-bottom:20px;margin-top:0}.primary[_ngcontent-%COMP%]{color:#284681}.warning[_ngcontent-%COMP%]{color:#f3ac24}.error[_ngcontent-%COMP%]{color:#d9291e}.success[_ngcontent-%COMP%]{color:#28b26d}.black[_ngcontent-%COMP%]{color:#444;border-bottom:1px dashed #444444}.primary-border[_ngcontent-%COMP%]{border-bottom:1px dashed #284681}.warning-border[_ngcontent-%COMP%]{border-bottom:1px dashed #f3ac24}.error-border[_ngcontent-%COMP%]{border-bottom:1px dashed #d9291e}.success-border[_ngcontent-%COMP%]{border-bottom:1px dashed #28b26d}.black-border[_ngcontent-%COMP%]{border-bottom:1px dashed #444444}.no-margin[_ngcontent-%COMP%]{margin:0}']})}(0,O.gn)([(0,L.SQ)()],Et.prototype,"lang",void 0);var dt=t(15725),rt=t(30815),qe=t(97600);function ze(ve,Se){1&ve&&(P.\u0275\u0275elementStart(0,"div",7),P.\u0275\u0275text(1,"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"),P.\u0275\u0275elementEnd())}function zt(ve,Se){if(1&ve&&P.\u0275\u0275element(0,"canvas",8),2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275property("datasets",Me.chartData)("labels",Me.chartLabels)("legend",!1)("options",Me.options)("type","shadowline")}}class vt extends qe.ST{draw(){const{ctx:Se}=this.chart;Se.save(),Se.shadowColor="#00000044",Se.shadowBlur=4,Se.shadowOffsetX=0,Se.shadowOffsetY=4,super.draw(),Se.restore()}}class Rt{constructor(){this.chartLabels=[],this.chartData=[],this.isEmpty=!0,this.options={plugins:{legend:{display:!1,labels:{font:{family:"SourceSansPro"}}},tooltip:{enabled:!1}},scales:{x:{grid:{display:!1,drawBorder:!1},ticks:{font:{size:14},color:"#88909B"}},y:{grid:{borderDash:[4],color:"#88909B",drawBorder:!1},ticks:{font:{size:14},callback:Se=>["30","80"].includes(`${Se}`)?Se:null,color:"#88909B"},min:0,max:100}},elements:{point:{hoverBackgroundColor:"#9EB7E5",radius:4.5,borderWidth:0,backgroundColor:"#9EB7E5",hoverBorderWidth:0},line:{fill:!1,tension:.3,borderWidth:4}},layout:{padding:30},color:"#9EB7E5",borderColor:"#9EB7E5",backgroundColor:"#9EB7E5"},this.closed=new P.EventEmitter}set ranking(Se){Se?(this.isEmpty=!1,this.chartLabels=["",...Se.map(Me=>Me.date),""],this.chartData=[{data:[null,...Se.map(Me=>Me.all),null],pointBackgroundColor:"#9EB7E5",pointHoverBackgroundColor:"#9EB7E5"}]):this.isEmpty=!0}ngOnInit(){vt.id="shadowline",vt.defaults=qe.ST.defaults,qe.kL.register(vt),qe.kL.register({id:"metib",beforeDraw:Se=>{const Me=Se.ctx,We=Se.scales.x,ut=Se.scales.y;Me.save(),Me.lineWidth=1,Me.strokeStyle="#88909B",Me.beginPath(),Me.moveTo(We.left,We.bottom-We.height),Me.lineTo(We.right,We.bottom-We.height),Me.stroke(),Me.beginPath(),Me.moveTo(ut.left+ut.width,ut.top),Me.lineTo(ut.left+ut.width,ut.bottom),Me.stroke();const ue=Se.data.labels[Math.floor(Se.data.labels.length/2)];if(ue){const et=We.getPixelForValue(ue);Me.beginPath(),Me.setLineDash([2]),Me.moveTo(et,ut.top),Me.lineTo(et,ut.bottom),Me.stroke()}Me.restore()},afterDraw:Se=>{const Me=Se.ctx,We=Se.scales.x,ut=Se.scales.y;Me.save(),Se.data.labels.forEach((ue,et)=>{const At=Se.data.datasets[0].data[et],Ae=We.getPixelForValue(ue),bt=ut.getPixelForValue(At);Me.textAlign="center",Me.font="700 16px 'Open Sans', 'Source Sans Pro', sans-serif",Me.fillStyle=At>=80?"#1FD071":At<=30?"#FF2727":"#F1C84A",Me.fillText(At?`${At}%`:"",Ae,bt-15)}),Me.restore()}})}static#e=this.\u0275fac=function(Me){return new(Me||Rt)};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:Rt,selectors:[["app-weekly-ranking"]],inputs:{ranking:"ranking"},outputs:{closed:"closed"},decls:9,vars:6,consts:[[1,"weekly-ranking-chart"],[1,"weekly-ranking-chart__head"],[1,"weekly-ranking-chart__head-title"],[1,"cross","small","orange",3,"click"],[1,"weekly-ranking-chart__chart"],["class","empty-state",4,"ngIf"],["baseChart","","height","329","width","930",3,"datasets","labels","legend","options","type",4,"ngIf"],[1,"empty-state"],["baseChart","","height","329","width","930",3,"datasets","labels","legend","options","type"]],template:function(Me,We){1&Me&&(P.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),P.\u0275\u0275text(3),P.\u0275\u0275pipe(4,"translate"),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(5,"div",3),P.\u0275\u0275listener("click",function(){return We.closed.emit()}),P.\u0275\u0275elementEnd()(),P.\u0275\u0275elementStart(6,"div",4),P.\u0275\u0275template(7,ze,2,0,"div",5),P.\u0275\u0275template(8,zt,1,5,"canvas",6),P.\u0275\u0275elementEnd()()),2&Me&&(P.\u0275\u0275advance(3),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind2(4,3,"Weekly ranking chart",We.lang)),P.\u0275\u0275advance(4),P.\u0275\u0275property("ngIf",We.isEmpty),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",!We.isEmpty))},dependencies:[n.O5,d.jh,L.X$],styles:['@charset "UTF-8";.weekly-ranking-chart[_ngcontent-%COMP%]{background-color:#e7e7e766;padding:25px 30px 5px}.weekly-ranking-chart[_ngcontent-%COMP%]   .empty-state[_ngcontent-%COMP%]{margin-top:20px;font-family:Open Sans;font-style:normal;font-weight:700;font-size:16px;line-height:22px;text-align:center;color:#88909b;padding:30px}.weekly-ranking-chart__head[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:5px}.weekly-ranking-chart__head-title[_ngcontent-%COMP%]{flex:1;margin:0 8px 0 20px;text-align:center;font-size:18px;line-height:24px;color:#000;font-weight:600}']})}(0,O.gn)([(0,L.SQ)()],Rt.prototype,"lang",void 0);var gt=t(79892);let sn=(()=>{class ve{constructor(Me){this.translation=Me,this.type="primary"}get text(){return this.translation.translate(typeof this.value>"u"||null===this.value?"Level of business<br>reliability":30>=+this.value?"Low level of business<br>reliability":30<+this.value&&80>+this.value?"Average level of business<br>reliability":80<=+this.value?"High level of business<br>reliability":"Level of business<br>reliability")}get arcStyle(){return this.color?{stroke:this.color,opacity:.15}:{}}get style(){return this.color?{color:this.color}:{}}get valueString(){return typeof this.value>"u"?"%":this.value}get percentString(){return typeof this.value>"u"?"":"%"}static#e=this.\u0275fac=function(We){return new(We||ve)(P.\u0275\u0275directiveInject(L.D7))};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-general-score"]],inputs:{type:"type",value:"value",color:"color"},decls:9,vars:7,consts:[[1,"outer-container",3,"ngClass"],["width","216","height","216",1,"arc-container"],["d","M 207 108 A 99 99 0 1 1 108 9",1,"arc",3,"ngStyle"],[1,"score"],[1,"score-value",3,"ngStyle"],[1,"score-percent",3,"ngStyle"],[1,"score-text",3,"innerHTML"]],template:function(We,ut){1&We&&(P.\u0275\u0275elementStart(0,"div",0),P.\u0275\u0275namespaceSVG(),P.\u0275\u0275elementStart(1,"svg",1),P.\u0275\u0275element(2,"path",2),P.\u0275\u0275elementEnd(),P.\u0275\u0275namespaceHTML(),P.\u0275\u0275elementStart(3,"div",3)(4,"span",4),P.\u0275\u0275text(5),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(6,"span",5),P.\u0275\u0275text(7),P.\u0275\u0275elementEnd()(),P.\u0275\u0275element(8,"div",6),P.\u0275\u0275elementEnd()),2&We&&(P.\u0275\u0275property("ngClass",ut.type),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngStyle",ut.arcStyle),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngStyle",ut.style),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate(ut.valueString),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngStyle",ut.style),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate(ut.percentString),P.\u0275\u0275advance(1),P.\u0275\u0275property("innerHTML",ut.text,P.\u0275\u0275sanitizeHtml))},dependencies:[n.mk,n.PC],styles:['@charset "UTF-8";.outer-container[_ngcontent-%COMP%]{position:relative;width:343px;height:216px}.outer-container[_ngcontent-%COMP%]   .arc-container[_ngcontent-%COMP%]{position:absolute}.outer-container[_ngcontent-%COMP%]   .arc[_ngcontent-%COMP%]{fill:none;stroke-width:18px;stroke-linecap:round}.outer-container.primary[_ngcontent-%COMP%]   .arc[_ngcontent-%COMP%]{stroke:#003ad226}.outer-container.primary[_ngcontent-%COMP%]   .score-value[_ngcontent-%COMP%], .outer-container.primary[_ngcontent-%COMP%]   .score-percent[_ngcontent-%COMP%]{color:#003ad2}.outer-container.secondary[_ngcontent-%COMP%]   .arc[_ngcontent-%COMP%]{stroke:#0097ec26}.outer-container.secondary[_ngcontent-%COMP%]   .score-value[_ngcontent-%COMP%], .outer-container.secondary[_ngcontent-%COMP%]   .score-percent[_ngcontent-%COMP%]{color:#0097ec}.outer-container.warning[_ngcontent-%COMP%]   .arc[_ngcontent-%COMP%]{stroke:#f3ac2426}.outer-container.warning[_ngcontent-%COMP%]   .score-value[_ngcontent-%COMP%], .outer-container.warning[_ngcontent-%COMP%]   .score-percent[_ngcontent-%COMP%]{color:#f3ac24}.outer-container.success[_ngcontent-%COMP%]   .arc[_ngcontent-%COMP%]{stroke:#00a84326}.outer-container.success[_ngcontent-%COMP%]   .score-value[_ngcontent-%COMP%], .outer-container.success[_ngcontent-%COMP%]   .score-percent[_ngcontent-%COMP%]{color:#00a843}.outer-container.disabled[_ngcontent-%COMP%]{opacity:1}.outer-container.disabled[_ngcontent-%COMP%]   .arc[_ngcontent-%COMP%]{stroke:#dedede59}.outer-container.disabled[_ngcontent-%COMP%]   .score-value[_ngcontent-%COMP%], .outer-container.disabled[_ngcontent-%COMP%]   .score-percent[_ngcontent-%COMP%]{color:#fff}.outer-container.disabled[_ngcontent-%COMP%]   .score-text[_ngcontent-%COMP%]{color:#444}.outer-container[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]{position:absolute;width:183px;text-align:center;top:5px;left:56px}.outer-container[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-value[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:80px;font-weight:700}.outer-container[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   .score-percent[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:50px;font-weight:700}.outer-container[_ngcontent-%COMP%]   .score-text[_ngcontent-%COMP%]{position:absolute;left:65px;top:124px;width:245px;font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:600;font-size:14px;line-height:19px;text-transform:uppercase;color:#88909b}'],changeDetection:0})}return ve})(),wn=(()=>{class ve{constructor(){this.isShowFullInfo=!1,this.value=35,this.valueCaption="\u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0438\u0437\u043d\u0435\u0441\u0430",this.color=xe.wL.STATIC_BLUE,this.buttonDisabled=!1,this.handleEnableClick=new P.EventEmitter,this.handleCloseClick=new P.EventEmitter}get enableClass(){return this.isShowFullInfo?"rb-enabled":null}handleClick(Me){this.handleEnableClick.emit(Me)}handleClose(Me){this.handleCloseClick.emit(Me)}static#e=this.\u0275fac=function(We){return new(We||ve)};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:ve,selectors:[["app-rb-header"]],inputs:{isShowFullInfo:"isShowFullInfo",value:"value",type:"type",titleCaption:"titleCaption",valueCaption:"valueCaption",color:"color",buttonCaption:"buttonCaption",buttonDisabled:"buttonDisabled"},outputs:{handleEnableClick:"handleEnableClick",handleCloseClick:"handleCloseClick"},decls:12,vars:9,consts:[[1,"rb-header",3,"ngClass"],[1,"rb-header__title"],[1,"rb-header__title-caption"],[1,"rb-header__title-text",3,"innerHTML"],[1,"rb-header__title-btn"],[3,"type","isDisabled","clicked"],[1,"rb-header__decoration"],[3,"color","value","type"],[1,"rb-header__close"],[3,"clicked"]],template:function(We,ut){1&We&&(P.\u0275\u0275elementStart(0,"article",0)(1,"div",1)(2,"h2",2),P.\u0275\u0275text(3),P.\u0275\u0275elementEnd(),P.\u0275\u0275element(4,"p",3),P.\u0275\u0275elementStart(5,"div",4)(6,"app-metib-button",5),P.\u0275\u0275listener("clicked",function(et){return ut.handleClick(et)}),P.\u0275\u0275text(7),P.\u0275\u0275elementEnd()()(),P.\u0275\u0275elementStart(8,"div",6),P.\u0275\u0275element(9,"app-general-score",7),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(10,"div",8)(11,"app-metib-close",9),P.\u0275\u0275listener("clicked",function(et){return ut.handleClose(et)}),P.\u0275\u0275elementEnd()()()),2&We&&(P.\u0275\u0275property("ngClass",ut.enableClass),P.\u0275\u0275advance(3),P.\u0275\u0275textInterpolate1(" ","\u041d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0411\u0438\u0437\u043d\u0435\u0441"," "),P.\u0275\u0275advance(1),P.\u0275\u0275property("innerHTML",ut.titleCaption,P.\u0275\u0275sanitizeHtml),P.\u0275\u0275advance(2),P.\u0275\u0275property("type",ut.buttonDisabled?"disabled-lg":"primary-lg")("isDisabled",ut.buttonDisabled),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",ut.buttonCaption," "),P.\u0275\u0275advance(2),P.\u0275\u0275property("color",ut.color)("value",ut.value)("type",ut.type))},dependencies:[n.mk,Z.n,gt.U,sn],styles:['@charset "UTF-8";.rb-header[_ngcontent-%COMP%]{margin-left:-32px;margin-right:-32px;min-height:337px;display:flex;font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:600;background-image:linear-gradient(93.91deg,#9eb7e5 7.2%,rgba(158,183,229,.66) 94.82%);border-top-left-radius:2px;border-top-right-radius:2px;position:relative;z-index:80}.rb-header__title[_ngcontent-%COMP%]{max-width:600px;color:#fff;margin:30px 0 0 50px}.rb-header__title-caption[_ngcontent-%COMP%]{margin:0;font-weight:600;font-size:38px;line-height:52px}.rb-header__title-text[_ngcontent-%COMP%]{margin:25px 0 0;font-size:18px;line-height:25px}.rb-header__title-btn[_ngcontent-%COMP%]{margin:70px 0 0}.rb-header__decoration[_ngcontent-%COMP%]{position:relative;margin:60px 0 0 130px}.rb-header__decoration-numbers[_ngcontent-%COMP%]{position:absolute;left:35%;top:10px}.rb-header__decoration-value[_ngcontent-%COMP%]{font-weight:700;color:#fff}.rb-header__decoration-value_number[_ngcontent-%COMP%]{font-size:80px;line-height:100px}.rb-header__decoration-value_symbol[_ngcontent-%COMP%]{font-size:50px;line-height:68px}.rb-header__decoration-text[_ngcontent-%COMP%]{left:35%;top:45%;position:absolute;width:250px;font-size:14px;line-height:19px;color:#444}.rb-header__decoration-circle[_ngcontent-%COMP%]{box-sizing:content-box;position:relative;width:180px;height:180px;border-radius:50%;border-bottom:20px solid;border-right:20px solid;border-left:20px solid;border-color:#fff;border-top:20px solid transparent;transform:rotate(45deg);opacity:.15}.rb-header__decoration-circle[_ngcontent-%COMP%]:before, .rb-header__decoration-circle[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:20px;height:10px;background-color:#fff;border-radius:20px 20px 0 0}.rb-header__decoration-circle[_ngcontent-%COMP%]:before{top:11px;left:13px;transform:rotate(45deg)}.rb-header__decoration-circle[_ngcontent-%COMP%]:after{top:11px;right:13px;transform:rotate(-45deg)}.rb-header__close[_ngcontent-%COMP%]{margin:35px 25px 0 auto}.rb-header.rb-enabled[_ngcontent-%COMP%]{background-image:none}.rb-header.rb-enabled[_ngcontent-%COMP%]   .rb-header__title[_ngcontent-%COMP%]{color:#000}']})}return ve})(),Qn=(()=>{class ve{constructor(Me){this._el=Me,this.spiedTags=[],this.sectionChange=new P.EventEmitter}onScroll(Me){const We=this._el.nativeElement.children;for(let ut=0;ut<We.length;ut++){const ue=We[ut];if(this.spiedTags.some(et=>et===ue.tagName)){const et=ue.getBoundingClientRect();if(et.y+et.height-142>0)return void(ue.id!==this.currentSection&&(this.currentSection=ue.id,this.sectionChange.emit(this.currentSection)))}}}static#e=this.\u0275fac=function(We){return new(We||ve)(P.\u0275\u0275directiveInject(P.ElementRef))};static#t=this.\u0275dir=P.\u0275\u0275defineDirective({type:ve,selectors:[["","appScrollSpy",""]],hostBindings:function(We,ut){1&We&&P.\u0275\u0275listener("scroll",function(et){return ut.onScroll(et)},!1,P.\u0275\u0275resolveDocument)},inputs:{spiedTags:"spiedTags"},outputs:{sectionChange:"sectionChange"}})}return ve})();const pi=function(ve){return{active:ve}};function Ei(ve,Se){if(1&ve&&(P.\u0275\u0275elementStart(0,"nav",39)(1,"ul",40)(2,"li",41)(3,"a",42),P.\u0275\u0275text(4,"\u041e \u0441\u0435\u0440\u0432\u0438\u0441\u0435"),P.\u0275\u0275elementEnd()(),P.\u0275\u0275elementStart(5,"li",41)(6,"a",43),P.\u0275\u0275text(7,"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438"),P.\u0275\u0275elementEnd()()()()),2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(3),P.\u0275\u0275property("ngClass",P.\u0275\u0275pureFunction1(2,pi,"about_bb"===Me.currentSection)),P.\u0275\u0275advance(3),P.\u0275\u0275property("ngClass",P.\u0275\u0275pureFunction1(4,pi,Me.currentSection.startsWith("indicators_bb")))}}function ki(ve,Se){if(1&ve&&(P.\u0275\u0275elementStart(0,"nav",39)(1,"ul",40)(2,"li",41)(3,"a",43),P.\u0275\u0275text(4,"\u041d\u0430\u043b\u043e\u0433\u0438"),P.\u0275\u0275elementEnd()(),P.\u0275\u0275elementStart(5,"li",41)(6,"a",44),P.\u0275\u0275text(7,"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0444\u0438\u0437\u043b\u0438\u0446\u0430\u043c \u0438 \u0441\u043d\u044f\u0442\u0438\u0435"),P.\u0275\u0275elementEnd()(),P.\u0275\u0275elementStart(8,"li",41)(9,"a",45),P.\u0275\u0275text(10,"\u041e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0441\u0442\u044c"),P.\u0275\u0275elementEnd()(),P.\u0275\u0275elementStart(11,"li",41)(12,"a",46),P.\u0275\u0275text(13,"\u0420\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u044f"),P.\u0275\u0275elementEnd()()()()),2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(3),P.\u0275\u0275property("ngClass",P.\u0275\u0275pureFunction1(4,pi,"indicators_bb_1"===Me.currentSection||"about_bb"===Me.currentSection)),P.\u0275\u0275advance(3),P.\u0275\u0275property("ngClass",P.\u0275\u0275pureFunction1(6,pi,"indicators_bb_2"===Me.currentSection)),P.\u0275\u0275advance(3),P.\u0275\u0275property("ngClass",P.\u0275\u0275pureFunction1(8,pi,"indicators_bb_3"===Me.currentSection)),P.\u0275\u0275advance(3),P.\u0275\u0275property("ngClass",P.\u0275\u0275pureFunction1(10,pi,"indicators_bb_4"===Me.currentSection))}}function Co(ve,Se){if(1&ve&&P.\u0275\u0275element(0,"app-metib-status-alert",47),2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275property("title",Me.error.message)("type",Me.error.typeMessage)}}function xo(ve,Se){if(1&ve&&(P.\u0275\u0275elementStart(0,"p",49),P.\u0275\u0275text(1," \u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438: "),P.\u0275\u0275elementStart(2,"b"),P.\u0275\u0275text(3,"\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e"),P.\u0275\u0275elementEnd(),P.\u0275\u0275text(4,". \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 "),P.\u0275\u0275elementStart(5,"a",51),P.\u0275\u0275text(6,"\u0421\u0431\u043e\u0440\u043d\u0438\u043a\u0435 \u0442\u0430\u0440\u0438\u0444\u043e\u0432"),P.\u0275\u0275elementEnd()()),2&ve){const Me=P.\u0275\u0275nextContext(3);P.\u0275\u0275advance(5),P.\u0275\u0275property("href",null==Me.tariff?null:Me.tariff.descriptionUrl,P.\u0275\u0275sanitizeUrl)}}function no(ve,Se){if(1&ve&&(P.\u0275\u0275elementStart(0,"div",48)(1,"p",49),P.\u0275\u0275text(2," \u0421\u0435\u0440\u0432\u0438\u0441 \u041d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0431\u0438\u0437\u043d\u0435\u0441 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 17 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0412\u0430\u0448\u0435\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0411\u0430\u043d\u043a \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u0432\u0430\u0448\u0435\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 - \u043e\u0442 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0441\u043d\u044f\u0442\u0438\u044f \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445, \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432 \u043d\u0430 \u0441\u0447\u0435\u0442\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u0438\u0446 \u0434\u043e \u043e\u0431\u044a\u0435\u043c\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 \u0438\u0437 \u0447\u0435\u0440\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. "),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(3,"p",49),P.\u0275\u0275text(4," \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u0430\u0441\u0442 \u0412\u0430\u043c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043a\u0430\u043a \u0435\u0433\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0432 \u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u0438\u043b\u0438 \u0436\u0435\u043b\u0442\u043e\u0439 \u0437\u043e\u043d\u0435, \u043b\u0438\u0431\u043e \u043a\u0430\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0437\u0435\u043b\u0435\u043d\u043e\u0439 \u0437\u043e\u043d\u0435. "),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(5,xo,7,1,"p",50),P.\u0275\u0275elementEnd()),2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(5),P.\u0275\u0275property("ngIf",Me.price)}}function Qo(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"app-weekly-ranking",56),P.\u0275\u0275listener("closed",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext(3);return P.\u0275\u0275resetView(ut.isOpenRating=!1)}),P.\u0275\u0275elementEnd()}if(2&ve){const Me=P.\u0275\u0275nextContext(3);P.\u0275\u0275property("ranking",Me.rating)}}function Mo(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementContainerStart(0),P.\u0275\u0275elementStart(1,"section",52)(2,"a",53),P.\u0275\u0275listener("click",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext(2);return P.\u0275\u0275resetView(ut.isOpenRating=!ut.isOpenRating)}),P.\u0275\u0275element(3,"app-svg-icon",54),P.\u0275\u0275elementStart(4,"p"),P.\u0275\u0275text(5,"\u0433\u0440\u0430\u0444\u0438\u043a \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0430"),P.\u0275\u0275elementEnd()()(),P.\u0275\u0275template(6,Qo,1,1,"app-weekly-ranking",55),P.\u0275\u0275elementContainerEnd()}if(2&ve){const Me=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(2),P.\u0275\u0275property("ngClass",P.\u0275\u0275pureFunction1(2,pi,Me.isOpenRating)),P.\u0275\u0275advance(4),P.\u0275\u0275property("ngIf",Me.isOpenRating)}}const po=function(){return["DIV"]};function Io(ve,Se){if(1&ve){const Me=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"app-page",4)(1,"app-rb-header",5),P.\u0275\u0275listener("handleCloseClick",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleCloseClick())})("handleEnableClick",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275pipe(3,"async"),P.\u0275\u0275pipe(4,"async"),P.\u0275\u0275pipe(5,"async"),P.\u0275\u0275pipe(6,"async"),P.\u0275\u0275pipe(7,"translate"),P.\u0275\u0275pipe(8,"async"),P.\u0275\u0275pipe(9,"async"),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(10,"div",6),P.\u0275\u0275template(11,Ei,8,6,"nav",7),P.\u0275\u0275pipe(12,"async"),P.\u0275\u0275template(13,ki,14,12,"nav",7),P.\u0275\u0275pipe(14,"async"),P.\u0275\u0275template(15,Co,1,2,"app-metib-status-alert",8),P.\u0275\u0275elementStart(16,"div",9),P.\u0275\u0275listener("sectionChange",function(ut){P.\u0275\u0275restoreView(Me);const ue=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ue.changeSection(ut))}),P.\u0275\u0275template(17,no,6,1,"div",10),P.\u0275\u0275pipe(18,"async"),P.\u0275\u0275template(19,Mo,7,4,"ng-container",11),P.\u0275\u0275pipe(20,"async"),P.\u0275\u0275elementStart(21,"div",12)(22,"app-page-section",13)(23,"div",14)(24,"app-tablet-circle-diagram",15),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(25,"app-tablet-circle-diagram",16),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(26,"app-tablet-circle-diagram",17),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd()()()(),P.\u0275\u0275elementStart(27,"div",18)(28,"app-page-section",19)(29,"div",14)(30,"app-tablet-circle-diagram",20),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(31,"app-tablet-circle-diagram",21),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(32,"app-tablet-circle-diagram",22),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(33,"app-tablet-circle-diagram",23),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd()()()(),P.\u0275\u0275elementStart(34,"div",24)(35,"app-page-section",25)(36,"div",14)(37,"app-tablet-circle-diagram",26),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(38,"app-tablet-circle-diagram",27),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(39,"app-tablet-circle-diagram",28),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd()()()(),P.\u0275\u0275elementStart(40,"div",29)(41,"app-page-section",30)(42,"div",31)(43,"app-wide-tablet",32),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(44,"app-wide-tablet",33),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd()()(),P.\u0275\u0275elementStart(45,"app-page-section",34)(46,"div",14)(47,"app-tablet-circle-diagram",35),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(48,"app-tablet-circle-diagram",36),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(49,"app-tablet-circle-diagram",37),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(50,"app-tablet-circle-diagram",38),P.\u0275\u0275listener("paymentModalAction",function(){P.\u0275\u0275restoreView(Me);const ut=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(ut.handleEnableClick())}),P.\u0275\u0275elementEnd()()()()()()()}if(2&ve){const Me=P.\u0275\u0275nextContext();P.\u0275\u0275property("withTitle",!1),P.\u0275\u0275advance(1),P.\u0275\u0275property("buttonCaption",P.\u0275\u0275pipeBind2(2,46,P.\u0275\u0275pipeBind1(3,49,Me.headerButtonCaption),Me.lang))("buttonDisabled",P.\u0275\u0275pipeBind1(4,51,Me.isHeaderButtonDisabled))("color",P.\u0275\u0275pipeBind1(5,53,Me.isShowFullInfo$)?null==Me.info.common?null:Me.info.common.color:null)("isShowFullInfo",P.\u0275\u0275pipeBind1(6,55,Me.isShowFullInfo$))("titleCaption",P.\u0275\u0275pipeBind2(7,57,P.\u0275\u0275pipeBind1(8,60,Me.titleCaption),Me.lang))("type",P.\u0275\u0275pipeBind1(9,62,Me.isShowFullInfo$)?null:"disabled")("value",Me.info?+Me.info.common.value:0),P.\u0275\u0275advance(10),P.\u0275\u0275property("ngIf",!1===P.\u0275\u0275pipeBind1(12,64,Me.isShowFullInfo$)),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",P.\u0275\u0275pipeBind1(14,66,Me.isShowFullInfo$)),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",Me.error),P.\u0275\u0275advance(1),P.\u0275\u0275property("spiedTags",P.\u0275\u0275pureFunction0(72,po)),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",!1===P.\u0275\u0275pipeBind1(18,68,Me.isShowFullInfo$)),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",P.\u0275\u0275pipeBind1(20,70,Me.isShowFullInfo$)),P.\u0275\u0275advance(5),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q3mTaxAll:null)("isLocked",!Me.info||!Me.info.q3mTaxAll),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q6mTaxAll:null)("isLocked",!Me.info||!Me.info.q6mTaxAll),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.qTaxAll:null)("isLocked",!Me.info||!Me.info.qTaxAll),P.\u0275\u0275advance(4),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q_FL_14d:null)("isLocked",!Me.info||!Me.info.q_FL_14d),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q_FL_30d:null)("isLocked",!Me.info||!Me.info.q_FL_30d),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q_nal_14d:null)("isLocked",!Me.info||!Me.info.q_nal_14d),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q_nal_30d:null)("isLocked",!Me.info||!Me.info.q_nal_30d),P.\u0275\u0275advance(4),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.trans_30d:null)("isLocked",!Me.info||!Me.info.trans_30d),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.trans_90d:null)("isLocked",!Me.info||!Me.info.trans_90d),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.qNDS:null)("isLocked",!Me.info||!Me.info.qNDS),P.\u0275\u0275advance(4),P.\u0275\u0275property("dataTabletDiagram",Me.info?Me.info.client550P:null)("isLocked",!Me.info||!Me.info.client550P),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletDiagram",Me.info?Me.info.clientAMLBL:null)("isLocked",!Me.info||!Me.info.clientAMLBL),P.\u0275\u0275advance(3),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q550Pcredit:null)("isLocked",!Me.info||!Me.info.q550Pcredit),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.q550Pdebet:null)("isLocked",!Me.info||!Me.info.q550Pdebet),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.qAMLBLcredit:null)("isLocked",!Me.info||!Me.info.qAMLBLcredit),P.\u0275\u0275advance(1),P.\u0275\u0275property("dataTabletCircleDiagram",Me.info?Me.info.qAMLBLdebet:null)("isLocked",!Me.info||!Me.info.qAMLBLdebet)}}function en(ve,Se){1&ve&&P.\u0275\u0275element(0,"app-loader")}class Hn{constructor(Se,Me,We,ut,ue,et,At,Ae,bt,Le){this.route=Se,this.reliableBusinessService=Me,this.tariffService=We,this.router=ut,this.toast=ue,this.datePipe=et,this.documentService=At,this.translation=Ae,this.toastCustomService=bt,this.modalService=Le,this.RELIABLE_BUSINESS_STATUS=ne,this.RELIABLE_BUSINESS_BTN_TEXT=G,this.currentSection="about_bb",this.colors=xe.wL,this.isOpenRating=!1,this.MESSAGE_TYPES=Ge,this.loading=!0,this.pathData=[{capture:"Reliable business"}],this.destroyed$=new _.x,this.isShowFullInfo=!1,this.stopUpdatingStatus$=new _.x,this.updatingStatus$=new y.X(null)}get isShowFullInfo$(){let Se=!1;return this.status&&this.status.dateEnd&&(Se=this.status.status===this.RELIABLE_BUSINESS_STATUS.CONNECTED||this.status.status===this.RELIABLE_BUSINESS_STATUS.WAITING_DISCONNECTION||this.isServiceHasAlreadyBeenActivatedThisMonth),(0,$.of)(Se)}get isHeaderButtonDisabled(){return(0,$.of)(!!this.status&&(this.status.status===this.RELIABLE_BUSINESS_STATUS.WAITING_CONNECTION||this.status.status===this.RELIABLE_BUSINESS_STATUS.WAITING_DISCONNECTION||this.isServiceHasAlreadyBeenActivatedThisMonth&&this.status.status===this.RELIABLE_BUSINESS_STATUS.VIRGIN||!this.autoProlongation&&this.status.status===this.RELIABLE_BUSINESS_STATUS.CONNECTED))}get isServiceConnected(){return!(!this.status||!this.status.status)&&this.status.status===this.RELIABLE_BUSINESS_STATUS.CONNECTED}get isServiceHasAlreadyBeenActivatedThisMonth(){return!(!this.status||!this.status.dateEnd)&&this.status.status===this.RELIABLE_BUSINESS_STATUS.VIRGIN&&B()(this.dateEnd,"DD.MM.YYYY").month()===B()(new Date).month()&&B()(this.dateEnd,"DD.MM.YYYY").year()===B()(new Date).year()}get isNotEnoughMoneyForService(){return!(!this.status||!this.status.dateEnd)&&this.status.status===this.RELIABLE_BUSINESS_STATUS.VIRGIN&&this.isMonthInPast(this.dateEnd)}get dateEnd(){return this.status&&this.status.dateEnd?B()(this.status.dateEnd.split(" ")[0],"YYYY-MM-DD").format("DD.MM.YYYY"):""}get dateStart(){return this.status&&this.status.dateStart?B()(this.status.dateStart.split(" ")[0],"YYYY-MM-DD").format("DD.MM.YYYY"):""}get autoProlongation(){return!!this.status.autoProlongation}get isConnectingStatus(){return!!this.status&&(this.status.status===this.RELIABLE_BUSINESS_STATUS.WAITING_DISCONNECTION||this.status.status===this.RELIABLE_BUSINESS_STATUS.WAITING_CONNECTION)}get textWithAutoProlongation(){return this.translation.translate('The service "17 indicators" has been connected {{preposition}}',{preposition:this.translation.translate("since")})+" "+this.dateStart+". "}get textWithoutAutoProlongation(){return this.translation.translate('The service "17 indicators" has been connected {{preposition}}',{preposition:this.translation.translate("until")})+" "+this.dateEnd+". "}get titleCaption(){let Se="";if(this.isShowFullInfo){let Me="";Me=this.isServiceHasAlreadyBeenActivatedThisMonth||!this.autoProlongation&&this.status.status===this.RELIABLE_BUSINESS_STATUS.CONNECTED?this.textWithoutAutoProlongation:this.textWithAutoProlongation,Se=Me+this.translation.translate("Automatic renewal")+" "+this.translation.translate(this.autoProlongation?"active":"disabled")}else Se=this.translation.translate("Independently control possible risks for your business in terms of compliance with 115-FZ");return(0,$.of)(Se)}get headerButtonCaption(){let Se=this.RELIABLE_BUSINESS_BTN_TEXT.CONNECT;if(this.isNeedSecondSign())Se=this.RELIABLE_BUSINESS_BTN_TEXT.SIGN;else if(this.status)switch(this.status.status){case this.RELIABLE_BUSINESS_STATUS.CONNECTED:Se=this.autoProlongation?this.RELIABLE_BUSINESS_BTN_TEXT.DISCONNECT:this.RELIABLE_BUSINESS_BTN_TEXT.CONNECT;break;case this.RELIABLE_BUSINESS_STATUS.VIRGIN:Se=this.RELIABLE_BUSINESS_BTN_TEXT.CONNECT;break;case this.RELIABLE_BUSINESS_STATUS.WAITING_DISCONNECTION:case this.RELIABLE_BUSINESS_STATUS.WAITING_CONNECTION:Se=this.RELIABLE_BUSINESS_BTN_TEXT.SENT}return(0,$.of)(Se)}isMonthInPast(Se){const Me=B()(Se,"DD.MM.YYYY").month(),We=B()(Se,"DD.MM.YYYY").year(),ut=B()(new Date).month();return 12*We+Me<12*B()(new Date).year()+ut}ngOnInit(){this.updateData(),this.updatingStatus(),this.showFullInfoHandle()}updateData(){(0,C.D)([this.reliableBusinessService.getReliableBusinessPrice(),this.tariffService.getCurrentTariff(),this.getStatus(),this.getInfo(),this.getLastDocument()]).pipe((0,j.K)(Se=>(this.toastCustomService.show(Se.errorText,"error"),this.loading=!1,(0,T._)(Se.message))),(0,I.R)(this.destroyed$)).subscribe(([Se,Me,We,ut,ue])=>{this.price=Se?.price,this.tariff=Me,this.status=We,this.isConnectingStatus&&this.startIntervalStatus(),ut&&(this.info=this.getFormattedInfo(ut)),this.lastDocument=ue?.lastDocumentFullWithActions?.document,this.loading=!1},Se=>{Se&&this.toastCustomService.show(Se.errorText,"error"),this.loading=!1}),this.getHistoryRating().pipe((0,I.R)(this.destroyed$)).subscribe(Se=>{this.rating=Se})}getFormattedInfo(Se){return Object.entries(Se).reduce((Me,[We,ut])=>(Me[We]=Object.assign({color:ut.color,isValue:!1,moreInfo:ut.header,moreInfoText:ut.recommendation,recommendedValue:ut.recVal,value:ut.val},function Ze(ve,Se){switch(ve){case"q3mTaxAll":return{type:Se.val<=.999?"error":Se.val<=2.199?"warning":"success",title:"\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430 90 \u0434\u043d\u0435\u0439"};case"q6mTaxAll":return{type:Se.val<=.999?"error":Se.val<=2.199?"warning":"success",title:"\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430 180 \u0434\u043d\u0435\u0439"};case"qTaxAll":return{type:Se.val<=.999?"error":Se.val<=2.199?"warning":"success",title:"\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0440/\u0441"};case"q_FL_14d":return{type:Se.val<=29.999?"gray":"error",title:"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0444\u0438\u0437\u043b\u0438\u0446\u0430\u043c \u0437\u0430 14 \u0434\u043d\u0435\u0439"};case"q_FL_30d":return{type:Se.val<=29.999?"gray":"error",title:"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0444\u0438\u0437\u043b\u0438\u0446\u0430\u043c \u0437\u0430 30 \u0434\u043d\u0435\u0439"};case"q_nal_14d":return{type:Se.val<=29.999?"gray":"error",title:"\u0421\u043d\u044f\u0442\u0438\u0435 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u043a \u043e\u0431\u0449\u0435\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 14 \u0434\u043d\u0435\u0439"};case"q_nal_30d":return{type:Se.val<=29.999?"gray":"error",title:"\u0421\u043d\u044f\u0442\u0438\u0435 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u043a \u043e\u0431\u0449\u0435\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 30 \u0434\u043d\u0435\u0439"};case"trans_30d":return{type:Se.val<=8.999?"error":Se.val<=14.999?"warning":"success",title:"\u041e\u0441\u0442\u0430\u0442\u043a\u0438 \u043d\u0430 \u0441\u0447\u0435\u0442\u0435 \u043a \u0434\u0435\u0431\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 30 \u0434\u043d\u0435\u0439"};case"trans_90d":return{type:Se.val<=8.999?"error":Se.val<=14.999?"warning":"success",title:"\u041e\u0441\u0442\u0430\u0442\u043a\u0438 \u043d\u0430 \u0441\u0447\u0435\u0442\u0435 \u043a \u0434\u0435\u0431\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 90 \u0434\u043d\u0435\u0439"};case"qNDS":return{type:Se.val<=9.999?"success":Se.val<=29.999?"warning":"error",title:"\u0411\u0435\u0437 \u041d\u0414\u0421 / \u0421 \u041d\u0414\u0421"};case"q550Pcredit":return{type:Se.val<=4.999?"success":Se.val<=39.999?"warning":"error",title:"\u041f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439"};case"q550Pdebet":return{type:Se.val<=4.999?"success":Se.val<=39.999?"warning":"error",title:"\u0421\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439"};case"qAMLBLcredit":return{type:Se.val<=4.999?"success":Se.val<=39.999?"warning":"error",title:"\u041f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439"};case"qAMLBLdebet":return{type:Se.val<=4.999?"success":Se.val<=39.999?"warning":"error",title:"\u0421\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439"};case"client550P":return{type:Se.val?"error":"success",title:"\u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0432\u0430\u0448\u0435\u043c \u0431\u0438\u0437\u043d\u0435\u0441\u0435",valueText:Se.val?"\u0418\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f":"\u041d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442",moreInfo:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435"};case"clientAMLBL":return{type:Se.val?"error":"success",title:"\u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0432\u0430\u0448\u0435\u043c \u0431\u0438\u0437\u043d\u0435\u0441\u0435",valueText:Se.val?"\u0418\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f":"\u041d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442",moreInfo:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435"};default:return{type:"primary",title:""}}}(We,ut)),Me),{})}startIntervalStatus(){this.updatingStatus$.next(null),this.interval=setInterval(()=>{this.updatingStatus$.next(null)},5e3)}isNeedSecondSign(){const Se=1==this.lastDocument?.signStatus&&"new"==this.lastDocument?.status;return!this.error&&Se&&(this.error={message:`\u0414\u043b\u044f ${"false"==this.lastDocument?.operationBool?"\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f":"\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f"} \u0443\u0441\u043b\u0443\u0433\u0438 "17 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439" \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0411\u0430\u043d\u043a`,typeMessage:this.MESSAGE_TYPES.INFO}),Se}updatingStatus(){this.updatingStatus$.pipe((0,F.T)(1),(0,z.w)(()=>(0,C.D)([this.getStatus(),this.getLastDocument()])),(0,z.w)(([Se,Me])=>(this.status=Se,this.lastDocument=Me?.lastDocumentFullWithActions?.document,(this.isServiceConnected||this.isServiceHasAlreadyBeenActivatedThisMonth)&&(Se.typeMessage&&Se.typeMessage.toLowerCase()!==this.MESSAGE_TYPES.ERROR||!Se.typeMessage)&&(Se.status===this.RELIABLE_BUSINESS_STATUS.CONNECTED?this.toast.show(this.autoProlongation?this.textWithAutoProlongation:this.textWithoutAutoProlongation,this.MESSAGE_TYPES.SUCCESS):this.toast.show(this.textWithoutAutoProlongation,this.MESSAGE_TYPES.ERROR)),this.isServiceConnected||this.isServiceHasAlreadyBeenActivatedThisMonth||this.isNotEnoughMoneyForService?(clearInterval(this.interval),this.getInfo()):(0,$.of)(null))),(0,I.R)(this.stopUpdatingStatus$)).subscribe(Se=>{Se&&(this.info=this.getFormattedInfo(Se))})}getLastDocument(){return this.documentService.getLastDocuments({docTypes:[{docType:"aml_subscription",docModule:"ibankul"}]},{number_of_entries:1})}getInfo(){return this.reliableBusinessService.getReliableBusinessInfo().pipe((0,X.U)(Se=>this.parseInfo(Se)))}getHistoryRating(){return this.tariffService.getHistoryRating().pipe((0,X.U)(Se=>{if(Se){const Me=new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"2-digit"}),We=[];let ut=0;for(let ue=6;ue>=0;ue--){const et=new Date,At=Me.format(et.setDate(et.getDate()-ue)),Ae=Se.find(bt=>bt.date==At)?.all??null;null!==Ae&&ut++,We.push({date:At,all:Ae})}return 0==ut?null:We}return Se}))}getStatus(){return this.reliableBusinessService.getReliableBusinessStatus().pipe((0,p.b)(Se=>{this.error=Se&&Se.message?{message:Se.message,typeMessage:Se.typeMessage?Se.typeMessage.toLowerCase():this.MESSAGE_TYPES.ERROR}:null}))}handleEnableClick(){if(!this.status)return;const Se={panelClass:"rb-subscribe-modal",height:"auto",data:{lastDocument:this.lastDocument}};this.status.status?this.modalService.open(Ht,{header:"Reliable business sign off",styleMode:"forSign",overflow:"initial",size:"medium-sign",inputs:{config:Se,afterAction:Me=>{Me&&this.actionAfterSign(Me)}}}):this.modalService.open(wt,{header:"Reliable business sign up",styleMode:"forSign",size:"medium-sign",inputs:{config:Se,afterAction:Me=>{Me&&this.actionAfterSign(Me)}}}),this.interval&&clearInterval(this.interval)}actionAfterSign(Se){Se.document&&(this.lastDocument=Se.document),this.startIntervalStatus()}parseInfo(Se){const Me={};return Se&&Se.response.state.data.ag&&Se.response.state.data.ag.forEach(We=>{null!==We.val&&(We.val="common"==We.name?Math.round(Number(We.val)):Math.round(10*Number(We.val))/10),We.color&&"#"!=We.color[0]&&(We.color="#"+We.color),Me[We.name]=We}),Me}changeSection(Se){this.currentSection=Se}handleCloseClick(){this.router.navigate(["desktop"])}ngOnDestroy(){this.stopUpdatingStatus$.next(null),this.stopUpdatingStatus$.complete(),this.destroyed$.next(null),this.destroyed$.complete(),clearInterval(this.interval)}showFullInfoHandle(){this.isShowFullInfo$.pipe((0,I.R)(this.destroyed$)).subscribe(Se=>{this.isShowFullInfo=Se})}static#e=this.\u0275fac=function(Me){return new(Me||Hn)(P.\u0275\u0275directiveInject(x.gz),P.\u0275\u0275directiveInject(ce),P.\u0275\u0275directiveInject(Ut.iY),P.\u0275\u0275directiveInject(x.F0),P.\u0275\u0275directiveInject(Qe.j),P.\u0275\u0275directiveInject(n.uU),P.\u0275\u0275directiveInject(vn.Z),P.\u0275\u0275directiveInject(L.D7),P.\u0275\u0275directiveInject(Qe.j),P.\u0275\u0275directiveInject(Ce.Z))};static#t=this.\u0275cmp=P.\u0275\u0275defineComponent({type:Hn,selectors:[["app-reliable-business"]],decls:5,vars:3,consts:[[3,"pathData"],[1,"reliable-business"],[3,"withTitle",4,"ngIf","ngIfElse"],["loader",""],[3,"withTitle"],[3,"buttonCaption","buttonDisabled","color","isShowFullInfo","titleCaption","type","value","handleCloseClick","handleEnableClick"],[1,"main"],["class","tabs",4,"ngIf"],[3,"title","type",4,"ngIf"],["appScrollSpy","",3,"spiedTags","sectionChange"],["class","anchor","id","about_bb",4,"ngIf"],[4,"ngIf"],["id","indicators_bb_1",1,"anchor"],["subTitle","\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u043e \u043e\u0442\u0440\u0430\u0441\u043b\u0438.\n                    \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0437\u0430 90/180 \u0434\u043d\u0435\u0439.","title","\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430"],[1,"tablets"],["title","\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430 90 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430 180 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0440/\u0441",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["id","indicators_bb_2",1,"anchor"],["subTitle","\u041e\u0431\u044a\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u0438\u0446 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0432\u0430\u0436\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u0438 \u043e\u0446\u0435\u043d\u043a\u0435 \u0431\u0438\u0437\u043d\u0435\u0441\u0430.\n                            \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432 \u043d\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u0438\u0446 \u0432 \u043e\u0431\u0449\u0435\u043c \u043e\u0431\u043e\u0440\u043e\u0442\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.<br><br>\n                            \u0421\u043d\u044f\u0442\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043c\u043e\u0432 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u2013 \u044d\u0442\u043e \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u0435\n                            \u0440\u0430\u0441\u0447\u0435\u0442\u044b \u0432 \u0431\u0435\u0437\u043d\u0430\u043b\u0438\u0447\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e. \u0414\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\n                            \u043d\u0430\u0448\u0443 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0443.","title","\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0444\u0438\u0437\u043b\u0438\u0446\u0430\u043c \u0438 \u0441\u043d\u044f\u0442\u0438\u0435 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445"],["title","\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0444\u0438\u0437\u043b\u0438\u0446\u0430\u043c \u0437\u0430 14 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u044b \u0444\u0438\u0437\u043b\u0438\u0446\u0430\u043c \u0437\u0430 30 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u0421\u043d\u044f\u0442\u0438\u0435 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u043a \u043e\u0431\u0449\u0435\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 14 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u0421\u043d\u044f\u0442\u0438\u0435 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0445 \u043a \u043e\u0431\u0449\u0435\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 30 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["id","indicators_bb_3",1,"anchor"],["subTitle","\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u043d\u0430 \u0441\u0447\u0435\u0442\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438\n                            \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\n                            \u041d\u0414\u0421 \u0432 \u043f\u043b\u0430\u0442\u0435\u0436\u0430\u0445 \u0438 \u0434\u0430\u0435\u0442 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438.","title","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432"],["title","\u041e\u0441\u0442\u0430\u0442\u043a\u0438 \u043d\u0430 \u0441\u0447\u0435\u0442\u0435 \u043a \u0434\u0435\u0431\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 30 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u041e\u0441\u0442\u0430\u0442\u043a\u0438 \u043d\u0430 \u0441\u0447\u0435\u0442\u0435 \u043a \u0434\u0435\u0431\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u043e\u0431\u043e\u0440\u043e\u0442\u0443 \u0437\u0430 90 \u0434\u043d\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u0411\u0435\u0437 \u041d\u0414\u0421 / \u0421 \u041d\u0414\u0421",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["id","indicators_bb_4",1,"anchor"],["subTitle","\u0420\u0438\u0441\u043a\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439, \u043a\u0430\u043a \u0412\u0430\u0448\u0435\u0433\u043e \u0431\u0438\u0437\u043d\u0435\u0441\u0430, \u0442\u0430\u043a \u0438 \u0412\u0430\u0448\u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\n                            \u043f\u043e \u0448\u0435\u0441\u0442\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c. \u041c\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438, \u0438\u043c\u0435\u044e\u0449\u0438\u043c\u0438\n                            \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u0443\u044e/\u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u044e.","title","\u0420\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0440\u0438\u0441\u043a\u0438"],[1,"tablets","gap"],["title","\u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0432\u0430\u0448\u0435\u043c \u0431\u0438\u0437\u043d\u0435\u0441\u0435",3,"dataTabletDiagram","isLocked","paymentModalAction"],["title","\u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0432\u0430\u0448\u0435\u043c \u0431\u0438\u0437\u043d\u0435\u0441\u0435",3,"dataTabletDiagram","isLocked","paymentModalAction"],["subTitle","","title",""],["title","\u041f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u0421\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u041f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],["title","\u0421\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u0435\u0439",1,"tablet",3,"dataTabletCircleDiagram","isLocked","paymentModalAction"],[1,"tabs"],[1,"tabs__list"],[1,"tabs__list-item"],["href","reliable-business#about_bb",1,"tabs__list-link",3,"ngClass"],["href","reliable-business#indicators_bb_1",1,"tabs__list-link",3,"ngClass"],["href","reliable-business#indicators_bb_2",1,"tabs__list-link",3,"ngClass"],["href","reliable-business#indicators_bb_3",1,"tabs__list-link",3,"ngClass"],["href","reliable-business#indicators_bb_4",1,"tabs__list-link",3,"ngClass"],[3,"title","type"],["id","about_bb",1,"anchor"],[1,"page-section__sub-title"],["class","page-section__sub-title",4,"ngIf"],["target","_blank",1,"primary",3,"href"],[1,"wrapper-action"],[1,"action",3,"ngClass","click"],["icon","rating","svgClass","rating-icon"],[3,"ranking","closed",4,"ngIf"],[3,"ranking","closed"]],template:function(Me,We){if(1&Me&&(P.\u0275\u0275element(0,"app-path",0),P.\u0275\u0275elementStart(1,"div",1),P.\u0275\u0275template(2,Io,51,73,"app-page",2),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(3,en,1,0,"ng-template",null,3,P.\u0275\u0275templateRefExtractor)),2&Me){const ut=P.\u0275\u0275reference(4);P.\u0275\u0275property("pathData",We.pathData),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",!We.loading)("ngIfElse",ut)}},dependencies:[xn.b,U.R,n.mk,n.O5,hn,rn,ge,Et,dt.I,rt.l,Rt,wn,Qn,L.X$,n.Ov],styles:['@charset "UTF-8";.tabs[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;position:sticky;top:80px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;background-color:#fff;z-index:1}.tabs-container[_ngcontent-%COMP%]{max-width:1200px;padding:0 50px;margin:0 auto}.tabs__list[_ngcontent-%COMP%]{display:flex;margin:0;padding:0;border-bottom:1px solid #dedede}.tabs__list-item[_ngcontent-%COMP%]{margin-right:64px}.tabs__list-item[_ngcontent-%COMP%]:last-child{margin-right:0}.tabs__list-link[_ngcontent-%COMP%]{display:block;position:relative;padding:32px 0;font-size:18px;margin-bottom:-1px;text-align:center;text-decoration:none;color:#88909b;transition-duration:.15s}.tabs__list-link[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.tabs__list-link[_ngcontent-%COMP%]:before{position:absolute;content:"";display:block;height:3px;width:100%;bottom:-1px}.tabs__list-link.active[_ngcontent-%COMP%]{color:#444}.tabs__list-link.active[_ngcontent-%COMP%]:before{background-image:linear-gradient(251.59deg,#2f54eb 0%,#2f54eb 99.45%)}.reliable-business[_ngcontent-%COMP%]{margin-bottom:370px;margin-left:auto;margin-right:auto;max-width:1200px;position:relative;min-height:400px;background:white}.main[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tablet[_ngcontent-%COMP%]{width:240px;height:340px;margin:10px 20px}.tablets[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center}.tablets.gap[_ngcontent-%COMP%]{width:100%;gap:30px}.page-section__sub-title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:40px}.anchor[_ngcontent-%COMP%]:before{content:"";display:block;height:171px;margin:-171px 0 0}a.primary[_ngcontent-%COMP%]{color:#003ad2}.wrapper-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.wrapper-action[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;padding:10px}.wrapper-action[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]     .rating-icon{width:18px;height:18px;fill:#88909b;margin-right:10px}.wrapper-action[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:600;font-size:16px;line-height:22px;text-transform:uppercase;color:#88909b}.wrapper-action[_ngcontent-%COMP%]   .action.active[_ngcontent-%COMP%]     .rating-icon{fill:#003ad2}.wrapper-action[_ngcontent-%COMP%]   .action.active[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#003ad2}.tabs__list-item[_ngcontent-%COMP%]{margin-right:40px!important}']})}(0,O.gn)([(0,L.SQ)()],Hn.prototype,"lang",void 0);const tt=[{path:"",component:Hn},{path:":tab",component:Hn}];let nt=(()=>{class ve{static#e=this.\u0275fac=function(We){return new(We||ve)};static#t=this.\u0275mod=P.\u0275\u0275defineNgModule({type:ve});static#n=this.\u0275inj=P.\u0275\u0275defineInjector({imports:[x.Bz.forChild(tt),x.Bz]})}return ve})(),De=(()=>{class ve{static#e=this.\u0275fac=function(We){return new(We||ve)};static#t=this.\u0275mod=P.\u0275\u0275defineNgModule({type:ve});static#n=this.\u0275inj=P.\u0275\u0275defineInjector({imports:[m.m,n.ez,a.D,l.N,e.ReactiveFormsModule,e.FormsModule,nt,d.vQ,u.B,d.vQ,i.Is,h.u]})}return ve})()},66319:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>e});var n=t(94650);let e=(()=>{class i{static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:i,selectors:[["app-requisites-warning-modal"]],decls:3,vars:0,consts:[[1,"requisites-warning-container"],[1,"description"]],template:function(u,h){1&u&&(n.\u0275\u0275elementStart(0,"div",0)(1,"span",1),n.\u0275\u0275text(2,"\u041f\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432"),n.\u0275\u0275elementEnd()())},styles:[".requisites-warning-container[_ngcontent-%COMP%]{width:724px;padding:24px 32px}.requisites-warning-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:400;font-size:16px;color:#080708}"],changeDetection:0})}return i})()},16294:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>u});var n=t(94650),e=t(37601),i=t(15644),d=t(98504),a=t(31193);let u=(()=>{class h{constructor(m,x,O,L){this.userDataService=m,this.util=x,this.currencyPipe=O,this.risdaMappingService=L}getGeneralAgreementRisda(m){let x;return this.userDataService.getClientInfoOrganization().subscribe(O=>{x=`${O.lawZIP}, ${O.lawCity}, ${O.lawStreet}, ${O.lawHouse}`}),[{type:"titleWithDesc",data:{title:"Organization",desc:m.fullname}},{type:"titleWithDesc",data:{title:"INN/KIO",desc:m.inn}},{type:"titleWithDesc",data:{title:"Address",desc:x}},{type:"titleWithDesc",data:{title:"Contact",desc:m.fio}},{type:"titleWithDesc",data:{title:"Phone number",desc:m.signerPhone}}]}getConversionDeal(m){const x=this.risdaMappingService.getConversionDeal(m);return[{type:"titleWithDesc",data:{title:"Currency of deal",desc:`${x.sellCurrency}/${x.buyCurrency}`}},{type:"titleWithDesc",data:{title:"Deal date",desc:x.dateDeal}},{type:"titleWithDesc",data:{title:"Payment date",desc:x.datePayment}},{type:"titleWithDesc",data:{title:"Deal rate",desc:x.dealRate}},{type:"titleWithDesc",data:{title:"Amount, currency",desc:`- ${x.sellAmount}`}},{type:"titleWithDesc",data:{title:"Amount, currency",desc:`+  ${x.buyAmount}`}}]}getNettings(m){const x=this.risdaMappingService.getDocNetting(m),O=[...x.dealCurrencies.negativePayList,...x.dealCurrencies.positivePayList].filter(L=>"0"!==L.value.substring(0,1)).map(L=>({type:"titleWithDesc",data:{title:"Amount, currency",desc:L.value}}));return[{type:"titleWithDesc",data:{title:"Date of closing",desc:this.util.formatDateDMY(new Date(m.dealDate),".")}},{type:"titleWithDesc",data:{title:"Payment date",desc:this.util.formatDateDMY(new Date(m.paymentDate),".")}},...O]}getStagingExchangeForward(m){const x=this.currencyPipe.transform(m.amountSideB),O=this.currencyPipe.transform(m.amountSideA);return[{type:"titleWithDesc",data:{title:"Currency of deal",desc:`${m.currCodeSideA}/${m.currCodeSideB}`}},{type:"titleWithDesc",data:{title:"Deal date",desc:this.util.formatDateDMY(new Date(m.dealDate),".")}},{type:"titleWithDesc",data:{title:"Payment date",desc:this.util.formatDateDMY(new Date(m.paymentDate),".")}},{type:"titleWithDesc",data:{title:"Deal rate",desc:m.fwdExchRate.replace(/0*$/,"")}},{type:"titleWithDesc",data:{title:"Amount, currency",desc:"+ "+("1"===m.dealType?`${O} ${m.currCodeSideA}`:`${x} ${m.currCodeSideB}`)}},{type:"titleWithDesc",data:{title:"Amount, currency",desc:"-  "+("1"===m.dealType?`${x} ${m.currCodeSideB}`:`${O} ${m.currCodeSideA}`)}},{type:"titleWithDesc",data:{title:"\u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0440\u0436\u0435\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u0430",desc:"0.00"===m.marginAmount?null:`${this.currencyPipe.transform(m.marginAmount)} ${m.currCodeDeal}`}}]}getPayFloatingMargin(m){return[{type:"titleWithDesc",data:{title:"Deal date",desc:this.util.formatDateDMY(new Date(m.dealDate),".")}},{type:"titleWithDesc",data:{title:"Payment date",desc:this.util.formatDateDMY(new Date(m.paymentDate),".")}},{type:"titleWithDesc",data:{title:"\u0421\u0443\u043c\u043c\u0430/\u0412\u0430\u043b\u044e\u0442\u0430",desc:`- ${m.amount&&this.currencyPipe.transform(m.amount)} ${m.nominalCurrCode&&m.nominalCurrCode}`}}]}getPayInitialMargin(m){return[{type:"titleWithDesc",data:{title:"Deal date",desc:this.util.formatDateDMY(new Date(m.dealDate),".")}},{type:"titleWithDesc",data:{title:"Payment date",desc:this.util.formatDateDMY(new Date(m.paymentDate),".")}},{type:"titleWithDesc",data:{title:"Currency of deal",desc:`${m.currCodeSideA}${m.currCodeSideB}`}}]}getReturnFloatingMargin(m){return[{type:"titleWithDesc",data:{title:"Deal date",desc:this.util.formatDateDMY(new Date(m.dealDate),".")}},{type:"titleWithDesc",data:{title:"Payment date",desc:this.util.formatDateDMY(new Date(m.paymentDate),".")}},{type:"titleWithDesc",data:{title:"Currency of deal",desc:`${m.currCodeSideA}${m.currCodeSideB}`}}]}getSettlementExchangeForward(m){const x=[];return m.paymentDate&&x.push({type:"titleWithDesc",data:{title:"Payment date",desc:this.util.formatDateDMY(new Date(m.paymentDate),".")}}),m.fixRate?(x.push({type:"titleWithDesc",data:{title:"Spot rate",desc:m.fixRate}}),m.fixAmount&&m.fixSide&&x.push({type:"titleWithDesc",data:{title:"Amount, currency",desc:`${"\u0421\u0442\u043e\u0440\u043e\u043d\u0430 \u0411"===m.fixSide?"-":"+"} ${this.currencyPipe.transform(m.fixAmount)} ${m.calcCurrency}`}})):(m.dealDate&&x.push({type:"titleWithDesc",data:{title:"Deal date",desc:this.util.formatDateDMY(new Date(m.dealDate),".")}}),m.calcCurrency&&x.push({type:"titleWithDesc",data:{title:"Settlement currency",desc:m.calcCurrency}}),m.baseAmount&&m.nominalCurrCode&&x.push({type:"titleWithDesc",data:{title:"Nominal amount in base currency",desc:`${this.currencyPipe.transform(m.baseAmount)} ${m.nominalCurrCode}`}}),m.calcCurrency&&x.push({type:"titleWithDesc",data:{title:"Forward rate",desc:m.fwdExchRate}}),m.calcCurrBuyer&&x.push({type:"titleWithDesc",data:{title:"Settlement currency buyer",desc:m.calcCurrBuyer}}),m.calcCurrSeller&&x.push({type:"titleWithDesc",data:{title:"Settlement currency seller",desc:m.calcCurrSeller}}),m.curType&&x.push({type:"titleWithDesc",data:{title:"Method for determining the spot rate",desc:m.curType}}),m.fixDate&&x.push({type:"titleWithDesc",data:{title:"Valuation date",desc:this.util.formatDateDMY(new Date(m.fixDate),".")}}),m.marginAmount&&+m.marginAmount>0&&x.push({type:"titleWithDesc",data:{title:"Initial Margin Amount",desc:this.currencyPipe.transform(m.marginAmount)}})),x}static#e=this.\u0275fac=function(x){return new(x||h)(n.\u0275\u0275inject(e.M),n.\u0275\u0275inject(i.Pj),n.\u0275\u0275inject(d.H),n.\u0275\u0275inject(a.U))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},31193:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>l});var n=t(95698),e=t(95404),i=t(94650),d=t(16611),a=t(15644),u=t(98504),h=t(29198);let l=(()=>{class m{constructor(O,L,w,B){this.translation=O,this.configUtilService=L,this.currencyPipe=w,this.vedService=B,this.isBank=!1,this.vedService.getCurrencies(!1).pipe((0,n.q)(1)).subscribe({next:_=>this.currencies=_})}get actions(){return[{description:this.translation.translate("Sign"),icon:"sign",name:"accept"},{description:"\u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c",icon:"delete_caption",name:"decline"},{description:this.translation.translate("Print"),icon:"printer",name:"print"},{name:"toPay",description:"To pay",icon:"payment-for"}]}getConversionDeal(O){const L=this.currencyPipe.transform(O.amountSideB),w=this.currencyPipe.transform(O.amountSideA);return{dealType:"\u041a\u0421",sideOfDeal:"1"===O.dealType?"Buy":"Sell",sellAmount:`${L} ${O.currCodeSideB||""}`,sellAmountNumber:O.amountSideB,sellCurrency:O.currCodeSideB||"",buyAmount:`${w} ${O.currCodeSideA||""}`,buyAmountNumber:O.amountSideA,buyCurrency:O.currCodeSideA||"",dateDeal:O.dealDate&&this.configUtilService.formatDateDMY(new Date(O.dealDate),"."),dealRate:O.fwdExchRate.replace(/0*$/,""),corrAccount:this.getCorrAccount(O),payerAccount:O.bankSideBStr2?.split(",")[0],contractNumber:O.contractNumber,contractDate:O.contractDate&&this.configUtilService.formatDateDMY(new Date(O.contractDate),"."),paymentDate:O.paymentDate&&this.configUtilService.formatDateDMY(new Date(O.paymentDate),"."),...this.getDocMetaData(O)}}getStagingExchangeForward(O){const L=this.currencyPipe.transform(O.amountSideB),w=this.currencyPipe.transform(O.amountSideA);return{dealType:"\u041f\u0424",sideOfDeal:"1"===O.dealType?"Buy":"Sell",sellAmount:`${L} ${O.currCodeSideB||""}`,sellAmountNumber:O.amountSideB,sellCurrency:O.currCodeSideB||"",buyAmount:`${w} ${O.currCodeSideA||""}`,buyAmountNumber:O.amountSideA,buyCurrency:O.currCodeSideA||"",dateDeal:O.dealDate&&this.configUtilService.formatDateDMY(new Date(O.dealDate),"."),dealRate:O.fwdExchRate.replace(/0*$/,""),corrAccount:this.getCorrAccount(O),payerAccount:O.bankSideBStr2.split(",")[0],contractNumber:O.contractNumber,contractDate:O.contractDate&&this.configUtilService.formatDateDMY(new Date(O.contractDate),"."),paymentDate:O.paymentDate&&this.configUtilService.formatDateDMY(new Date(O.paymentDate),"."),...this.getDocMetaData(O)}}getDocNetting(O){const L={positivePayList:this.getPayList(O.payList_1,"positiveValue"),negativePayList:this.getPayList(O.payList_2,"negativeValue")};return("new"===O.status||"send"===O.status)&&(L.positivePayList=L.positivePayList.map(w=>"neutralValue"===w.class?w:{...w,class:null}),L.negativePayList=L.negativePayList.map(w=>"neutralValue"===w.class?w:{...w,class:null})),{dealType:"\u041d\u0435\u0442\u0442\u0438\u043d\u0433",dealCurrencies:L,bankDetails:this.configUtilService.getArray(O.bankDetails),payList:O.payList_2?.split(","),contractNumber:O.contractNumber,contractDate:this.configUtilService.formatDateDMY(new Date(O.contractDate),"."),paymentDate:this.configUtilService.formatDateDMY(new Date(O.paymentDate),"."),dateDeal:O.dealDate&&this.configUtilService.formatDateDMY(new Date(O.dealDate),"."),...this.getDocMetaData(O)}}getPayInitialMargin(O){return{sellAmount:this.currencyPipe.transform(O.amount),sellAmountNumber:O.amount||"",nominalCurrCode:O.nominalCurrCode||this.getCurCodeFromAccount(O.attractingAccount),paymentDate:O.paymentDate&&this.configUtilService.formatDateDMY(new Date(O.paymentDate),"."),dealType:"\u043f\u0435\u0440\u0432. \u041c\u0421",docDate:O.docDate&&this.configUtilService.formatDateDMY(new Date(O.docDate),"."),returnDate:O.returnDate&&this.configUtilService.formatDateDMY(new Date(O.returnDate),"."),dateDeal:O.dealDate&&this.configUtilService.formatDateDMY(new Date(O.dealDate),"."),dealNumber:O.dealNumber,corrAccount:O.attractingAccount,contractNumber:O.contractNumber,contractDate:O.contractDate,...this.getDocMetaData(O)}}getPayFloatingMargin(O){return{sellAmount:this.currencyPipe.transform(O.amount),sellAmountNumber:O.amount||"",nominalCurrCode:O.nominalCurrCode||this.getCurCodeFromAccount(O.attractingAccount),paymentDate:O.paymentDate&&this.configUtilService.formatDateDMY(new Date(O.paymentDate),"."),dealType:"\u043f\u043b\u0430\u0432. \u041c\u0421",returnDate:O.returnDate&&this.configUtilService.formatDateDMY(new Date(O.returnDate),"."),dateDeal:O.dealDate&&this.configUtilService.formatDateDMY(new Date(O.dealDate),"."),dealNumber:O.dealNumber,corrAccount:O.attractingAccount,contractNumber:O.contractNumber,contractDate:O.contractDate,docDate:O.docDate&&this.configUtilService.formatDateDMY(new Date(O.docDate),"."),...this.getDocMetaData(O)}}getSettlementExchangeForward(O){const L=O.fixRate&&O.fixSide===e.lx.B?{corrAccount:O.bankSideAStr3||O.bankSideAStr2.split(",")[0],sellCurrency:O.payCurrency,buyCurrency:O.payCurrency}:{},w=this.currencyPipe.transform(+O.baseAmount*+O.fwdExchRate),B=this.currencyPipe.transform(O.baseAmount);return{fixSide:O.fixSide,calcCurrency:O.calcCurrency||"",dealType:"\u0420\u0424",sideOfDeal:"1"===O.dealType?"Buy":"Sell",dealRate:O.fwdExchRate.replace(/0*$/,""),sellAmount:"1"===O.dealType?`${w} ${O.calcCurrency||""}`:`${B} ${O.nominalCurrCode||""}`,sellAmountNumber:"1"===O.dealType?`${O.amountSideA}`:`${O.amountSideB}`,buyAmount:"1"===O.dealType?`${B} ${O.nominalCurrCode||""}`:`${w} ${O.calcCurrency||""}`,buyAmountNumber:"1"===O.dealType?`${O.amountSideB}`:`${O.amountSideA}`,fixAmount:O.fixAmount,dateDeal:O.dealDate&&this.configUtilService.formatDateDMY(new Date(O.dealDate),"."),contractNumber:O.contractNumber,contractDate:O.contractDate,...this.getDocMetaData(O),...L}}getReturnFloatingMargin(O){return{dealType:"\u043f\u043b\u0430\u0432. \u041c\u0421",docDate:O.docDate&&this.configUtilService.formatDateDMY(new Date(O.docDate),"."),sellAmount:this.currencyPipe.transform(O.amount),nominalCurrCode:O.nominalCurrCode,status:O.status,returnDate:O.returnDate&&this.configUtilService.formatDateDMY(new Date(O.returnDate),"."),...this.getDocMetaData(O)}}getDocMetaData(O){const L=["new","send"].includes(O.status),w=[];if(L&&!["pay_floating_margin","pay_initial_margin"].includes(O.docType)&&w.push(...this.getActions(["accept","decline"])),L&&"pay_floating_margin"===O.docType){const B=this.getActions(["accept"])[0];B.description=this.translation.translate("To accept"),w.push(B)}return w.push(...this.getActions(["print"])),L&&"pay_initial_margin"===O.docType&&w.push(...this.getActions(["toPay"])),"end"===O.status&&this.isCanCreatePayment(O)&&w.push(...this.getActions(["toPay"])),{docId:O.id,docType:O.docType,dealNumber:O.dealNumber,docModule:O.docModule,datePayment:O.paymentDate&&this.configUtilService.formatDateDMY(new Date(O.paymentDate),"."),status:O.status,signStatus:O.signStatus,actions:w}}getActions(O){return this.actions.filter(L=>O.includes(L.name))}isCanCreatePayment(O){switch(O.docType){case"return_floating_margin":return!1;case"settlement_exchange_forward":return O.fixRate&&O.fixSide===e.lx.B;case"doc_netting":return O.bankDetails&&(O.payList_2||"").split(",").map(L=>this.getParsedPaymentRequisites(L)).some(L=>+L.amount>0);default:return!0}}getPayList(O,L){const w="positiveValue"===L?"+":"-";return O?O.split(",").map(B=>B.trim().match(/^0.00/)?{value:`${B}`,class:"neutralValue"}:{value:`${w} ${B}`,class:L}):[]}getCorrAccount(O){return O.bankSideAStr3||O.bankSideAStr2?.split(",")[0]}getCurCodeFromAccount(O){if(!O)return"";const L=O.substring(5,8);return this.currencies.find(B=>B.code===L)?.isoCode||""}createRisdaDocumentsArray(O,L){return this.isBank=L,this.configUtilService.getArray(O).map(B=>this.mapRisdaDocuments(B.document))}mapRisdaDocuments(O){switch(O.docType){case"confirm_cash_placement":return O;case"conversion_deal":return this.getConversionDeal(O);case"staging_exchange_forward":return this.getStagingExchangeForward(O);case"doc_netting":return this.getDocNetting(O);case"pay_initial_margin":return this.getPayInitialMargin(O);case"pay_floating_margin":return this.getPayFloatingMargin(O);case"settlement_exchange_forward":return this.getSettlementExchangeForward(O);case"return_floating_margin":return this.getReturnFloatingMargin(O);default:return this.getDocMetaData(O)}}getParsedPaymentRequisites(O){const L=O.replace(/\s+/g,""),w=L.match(/\d+.\d+/),B=L.match(/[a-zA-Z]+/);return{amount:w?w[0]:"",currency:B?B[0]:""}}static#e=this.\u0275fac=function(L){return new(L||m)(i.\u0275\u0275inject(d.D7),i.\u0275\u0275inject(a.Pj),i.\u0275\u0275inject(u.H),i.\u0275\u0275inject(h.$))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()},95404:(Ee,Q,t)=>{"use strict";t.d(Q,{J$:()=>B,jp:()=>$,lx:()=>_,tw:()=>L,u6:()=>y});var n=t(61135),e=t(4128),i=t(34782),d=t(54004),a=t(18505),u=t(94650),h=t(3751),l=t(29198),m=t(31193),x=t(15644),O=t(75885);const L={byDealDate:"1",byPaymentDate:"2"},w=-1,B={company:"1",bank:"2",st:"3"},_={A:"\u0421\u0442\u043e\u0440\u043e\u043d\u0430 \u0410",B:"\u0421\u0442\u043e\u0440\u043e\u043d\u0430 \u0411"},y={conversionDealDocument:"conversion_deal",stagingExchangeForwardDocument:"staging_exchange_forward",settlementExchangeForwardDocument:"settlement_exchange_forward",nettingDocument:"doc_netting",payInitialMarginDocument:"pay_initial_margin",payFloatingMarginDocument:"pay_floating_margin",returnFloatingMarginDocument:"return_floating_margin"};let $=(()=>{class C{constructor(j,I,F,z,X){this.apiService=j,this.vedService=I,this.risdaMappingService=F,this.util=z,this.los=X,this.clientType$=new n.X(B.company),this.dealToPay$=new n.X(null),this.counters=[{docType:"conversion_deal",number:w},{docType:"staging_exchange_forward",number:w},{docType:"settlement_exchange_forward",number:w},{docType:"doc_netting",number:w},{docType:"pay_floating_margin",number:w},{docType:"pay_initial_margin",number:w},{docType:"return_floating_margin",number:w}],this.risdaGetDocumentsRestArray=()=>[this.getConversionDeals(),this.getDeliveryDeals(),this.getNonDeliveryDeals(),this.getNettings(),this.getIncomingInitialMargins(),this.getIncomingMargins(),this.getOutgoingMargins()]}getConversionDeals(){const j=this.getFormattedParams("conversion_deal");return this.getListDocuments(j,"conversionDeals")}getDeliveryDeals(){const j=this.getFormattedParams("staging_exchange_forward");return this.getListDocuments(j,"deliveryDeal")}getNonDeliveryDeals(){const j=this.getFormattedParams("settlement_exchange_forward");return this.getListDocuments(j,"nonDeliveryDeal")}getNettings(){const j=this.getFormattedParams("doc_netting");return this.getListDocuments(j,"netting")}getIncomingInitialMargins(){const j=this.getFormattedParams("pay_initial_margin");return this.getListDocuments(j,"incomingInitialMargins")}getIncomingMargins(){const j=this.getFormattedParams("pay_floating_margin");return this.getListDocuments(j,"incomingMargin")}getOutgoingMargins(){const j=this.getFormattedParams("return_floating_margin");return this.getListDocuments(j,"outgoingMargin")}createGeneralAgreement(j){return this.apiService.post("dealing/create_general_agreement",j)}getLastGeneralAgreement(){return this.cacheLastGeneralAgreement||(this.cacheLastGeneralAgreement=this.vedService.requestDocuments(1,"",{docTypes:[{docModule:"ibankul",docType:"doc_general_agreement"}]}).pipe((0,i.d)())),this.cacheLastGeneralAgreement}getRisdaAccess(){return this.apiService.get("dealing/general_agreement/check/status")}getRisdaDocuments(j,I,F,z=!0){return this.resetCounters(),this.isWithDateFilter=z,this.beginDate=I,this.endDate=F,this.dateFilterCode=j.dateFilterCode,this.statuses=j.statuses,this.sizePage=j.sizePage,(0,e.D)(this.risdaGetDocumentsRestArray()).pipe((0,d.U)(X=>X.map(p=>({groupName:p&&p.groupName,docs:p&&this.risdaMappingService.createRisdaDocumentsArray(p.docs,this.clientType$.value===B.bank),numberPage:p&&p.numberPage,totalPages:p&&p.totalPages}))))}getListDocuments(j,I){return this.apiService.post("pageable/document/visual/page",j).pipe((0,a.b)(F=>{F&&this.setCounter(j.docType,F.page.number)}),(0,d.U)(F=>{if(!F||!F.list)return null;const z=this.util.getArray(F.list);return{groupName:I,numberPage:F.page.number,totalPages:F.page.total,docs:z.map(X=>({document:X}))}}))}getFormattedParams(j){const I=this.util.revertFormatDateDMY(this.beginDate,"-"),F=this.util.revertFormatDateDMY(this.endDate,"-"),z=this.dateFilterCode===L.byPaymentDate?"paymentDate":"dealDate",X=this.getFormattedStatuses(this.statuses);return{docModule:"ibankul_curr",docType:j,page:{size:this.sizePage,number:this.getNextPageNumber(j)},filter:{dateFrom:this.util.revertFormatDateDMY(this.los.getDateHundredYearsAgo(this.beginDate)),dateTo:this.util.revertFormatDateDMY(this.los.getDateHundredYearsLater(this.endDate)),additional:this.isWithDateFilter?`${z} >= '${I}' and ${z} <= '${F}' and status in (${X})`:`status in (${X})`}}}getFormattedStatuses(j){const I=[];return j.split(";").forEach(F=>I.push(`'${F}'`)),I.join(",")}setCounter(j,I){this.counters.forEach(F=>{F.docType===j&&(F.number=+I)})}resetCounters(){this.counters.forEach(j=>j.number=w)}getNextPageNumber(j){const I=this.counters.find(F=>F.docType===j);return I?I.number+1:0}static#e=this.\u0275fac=function(I){return new(I||C)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.$),u.\u0275\u0275inject(m.U),u.\u0275\u0275inject(x.Pj),u.\u0275\u0275inject(O.o))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},49167:(Ee,Q,t)=>{"use strict";t.d(Q,{u:()=>n});var n=(()=>{return(e=n||(n={})).STATUS="status",e.STATUS_CAPTION="statusCaption",n;var e})()},32031:(Ee,Q,t)=>{"use strict";t.d(Q,{G7:()=>B,I0:()=>T,Pf:()=>I,Qx:()=>w,SK:()=>z,Tj:()=>O,XG:()=>l,XW:()=>j,YL:()=>$,bS:()=>y,co:()=>C,g5:()=>i,gH:()=>_,gP:()=>e,gv:()=>h,hx:()=>a,jb:()=>m,n:()=>F,qn:()=>x,wz:()=>L,xe:()=>d,zu:()=>u});var n=t(6146);const e=["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/],i=[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],d=[/\d/,/\d/,/\d/,/\d/],a=[{step:1,caption:"\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434",text:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 METIB-Pay \u0438\u043b\u0438 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435"},{step:2,caption:"\u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 QR-\u043a\u043e\u0434 \u043a\u043b\u0438\u0435\u043d\u0442\u0443",text:"\u041d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430"},{step:3,caption:"\u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0441\u043c\u0441 \u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u0435",text:"\u041a\u043b\u0438\u0435\u043d\u0442 \u043e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0434 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0431\u0430\u043d\u043a\u0430 \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442 \u043e\u043f\u043b\u0430\u0442\u0443"}],u=[{step:1,caption:"\u041f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435",text:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u0432 \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438\u043b\u0438 \u043f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0432 WEB-\u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u043b\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438"},{step:2,caption:"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u043f\u043b\u0430\u0442\u0435\u0436\u0430",text:"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u043f\u043b\u0430\u0442\u0435\u0436\u0430, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u041d\u0414\u0421"},{step:3,caption:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0435\u0436",text:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0435\u0436, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0432 \u0435\u0433\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c"}],h=[{caption:"\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u044b",text:"\u0420\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0430\u0439\u0442\u0435. QR-\u043a\u043e\u0434 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u044f\u0434\u043e\u043c \u0441 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u043e\u0439 \u043e\u043f\u043b\u0430\u0442\u044b. \u041f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0440\u0442\u044b - \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434"},{caption:"\u0412\u044b\u0435\u0437\u0434\u043d\u0430\u044f \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044f",text:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 \u043e\u043f\u043b\u0430\u0442\u044b \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 QRManager \u0438 \u043f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 QR-\u043a\u043e\u0434 \u0441 \u044d\u043a\u0440\u0430\u043d\u0430 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u043a\u0430\u0441\u0441\u043e\u0432\u044b\u0439 \u0447\u0435\u043a."},{caption:"\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0442\u043e\u0447\u043a\u0438",text:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 \u043e\u043f\u043b\u0430\u0442\u044b \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 QRManager \u0438 \u043f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 QR-\u043a\u043e\u0434 \u0441 \u044d\u043a\u0440\u0430\u043d\u0430 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u044b\u0431\u0438\u0442\u044c \u0447\u0435\u043a \u0432 \u043a\u0430\u0441\u0441\u0435"}],l=["\u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u043d\u0430 \u0432\u0430\u0448 \u0441\u0447\u0435\u0442","\u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 \u043f\u0440\u0438\u0435\u043c\u0430 \u043e\u043f\u043b\u0430\u0442\u044b \u043f\u043e \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u043c \u043a\u0430\u0440\u0442\u0430\u043c","\u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u043f\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c 0%"],m=["\u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u0430\u044f \u043e\u043f\u043b\u0430\u0442\u0430 \u0437\u0430 \u0442\u043e\u0432\u0430\u0440\u044b \u0438 \u0443\u0441\u043b\u0443\u0433\u0438 \u0441 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u043d\u0430 \u0441\u0447\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430","\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 WEB-\u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438","\u0440\u0430\u0441\u0447\u0435\u0442\u044b \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 \u0434\u043e 1 000 000 \u0440\u0443\u0431."],x=["\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430","\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430, \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0432\u0438\u0434\u0436\u0435\u0442 \u043d\u0430 \u0441\u0430\u0439\u0442","\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u0439\u0442\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0438"],O=["\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u044f\u0432\u043a\u0443 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430","\u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430","\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0441\u0443\u043c\u043c\u043e\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432"];var L=(()=>{return(P=L||(L={})).ALL="all",P.FOR_SIGNATURE="for_signature",L;var P})(),w=(()=>{return(P=w||(w={})).ALL_APPLICATIONS="Applications to connect",P.REFUND="Refund",P.QR_CODES="QR-codes",P.TSP="TSP",w;var P})();const B=[{shortName:"\u0412\u0441\u0435",query:L.ALL,chosen:!0,section:w.ALL_APPLICATIONS},{shortName:"\u041d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c",query:L.FOR_SIGNATURE,chosen:!1,counter:0,section:w.ALL_APPLICATIONS}],_=new Map([["canceled","\u041e\u0442\u043a\u0430\u0437\u0430\u043d"],["decline","\u041e\u0442\u043a\u0430\u0437\u0430\u043d"],["success","\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e"],["end","\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e"],["delete","\u0423\u0434\u0430\u043b\u0435\u043d\u043e"],["pending","\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435"],["send","\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435"],["in_work","\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435"],["changes_in_process","\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435"],["new","\u041d\u043e\u0432\u044b\u0439"],["draft","\u0427\u0435\u0440\u043d\u043e\u0432\u0438\u043a"],["part_sign","\u0427\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d"],["sign","\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d"]]);var y=(()=>{return(P=y||(y={})).TSP="sbp_trade_service_enterprise",P.CASHBOXES="sbp_qr_cash_register",P.DELETE_TSP="sbp_tse_block",P.ALL="all",y;var P})();const $=[{name:"\u0412\u0441\u0435 \u0442\u0438\u043f\u044b \u0437\u0430\u044f\u0432\u043e\u043a",value:y.ALL},{name:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0422\u0421\u041f",value:y.TSP},{name:"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0422\u0421\u041f",value:y.DELETE_TSP}],C=[{docModule:"ibankul",docType:y.TSP},{docModule:"ibankul",docType:y.DELETE_TSP}],T=[{description:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0422\u0421\u041f",name:"tsp_connection",link:"/sbp-qr/tcp-form"},{description:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0441\u0441\u044b",name:"cashbox_connection",link:"/sbp-qr/cashbox-form"}],j={docTypes:[{docModule:"ibankul",docType:"sbp_trade_service_enterprise"},{docModule:"ibankul",docType:"sbp_tse_block"}],lastDocId:"",statuses:"",searchTerm:""};var I=(()=>{return(P=I||(I={})).WITHOUT_SUM="01",P.WITH_SUM="02",I;var P})();const F=[{value:I.WITHOUT_SUM,title:"\u0411\u0435\u0437 \u0441\u0443\u043c\u043c\u044b"},{value:I.WITH_SUM,title:"\u0421 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0441\u0443\u043c\u043c\u044b"}],z=[{value:n.o.SbpQrReg,title:"UL or IP"}]},94955:(Ee,Q,t)=>{"use strict";t.d(Q,{J:()=>h});var n=t(80529),e=t(54004),i=t(6146),d=t(94650),a=t(3751),u=t(15644);let h=(()=>{class l{constructor(x,O,L){this.apiService=x,this.httpClient=O,this.configUtilService=L}postAgreement(x=!1){return this.apiService.post(x?"sbp_qr_pay/agreement":"sbp_qr/agreement",{})}postAgreementAccountQR(){return this.apiService.post("sbp_qr_account/agreement",{})}getAgreementStatus(x=!1){return this.apiService.get(x?"sbp_qr_pay/status":"sbp_qr/status")}getAgreementAccountStatus(){return this.apiService.get("sbp_qr_account/status").pipe((0,e.U)(x=>({docId:x.id,statusAgreement:x.status})))}getSelectsForCashboxForm(){return this.apiService.get("sbp_qr_cash_register/info")}noTspStatement(){return this.apiService.get("request/sbp_tce/exist")}createTspForm(x){return this.apiService.post("request/sbp_tce/create",x)}createCashboxForm(x){return this.apiService.post("sbp_qr_cash_register/create",x)}getApplications(x=20,O){let L=`sbp/last_documents_full?number_of_entries=${x}`;return O.statuses.length&&(L+=`&list_of_statuses=${O.statuses}`),O?.lastDocId?.length&&(L+=`&point_of_reference=${O.lastDocId}`),this.apiService.post(L,{docTypes:O.docTypes,searchTerm:O.searchTerm})}getOperationsForRefund(x){return this.apiService.post("sbp_qr/operations",x)}createRefund(x){return this.apiService.post("sbp_qr/refund/create",x)}getAvailableBalance(x){return this.apiService.get(`sbp_qr/refund/available-balance?opkcTranId=${x}`)}getTspList(){return this.apiService.get("sbp/request_sbp_reg_tsp/list")}getFpsLegalEntityList(){return this.apiService.get("metinv/sbp/getFpsLegalEntityList").pipe((0,e.U)(x=>x.merchantList))}createQRCode(x,O){return this.apiService.post(O===i.o.SbpQrRegTSP?`metinv/sbp/document/create/${O}`:`sbp/document/create/${O}`,x)}getQRCodes(x){return this.apiService.post("pageable/document/visual/page",x)}getProducts(x){return this.apiService.get(x===i.o.SbpQrRegTSP?`metinv/sbp/document/create/${x}/info/products`:`sbp/document/create/${x}/info/products`)}getSignRequirements(x){return this.apiService.get(`sign_requirements/remained_sign_rules?docModule=${x.docModule}&docType=${x.docType}&docId=${x.id}`)}getQRUrl(x,O){return this.apiService.get(O===i.o.SbpQrRegTSP?`metinv/sbp/${O}/${x}/url_qr`:`sbp/${O}/${x}/url_qr`)}getNDS(x){let O="ru_rko_nds_type";return x?.id?.length&&(O+=`&id=${x.id}`),x?.caption?.length&&(O+=`&caption=${x.caption}`),x?.description?.length&&(O+=`&description=${x.description}`),x?.unique_code?.length&&(O+=`&unique_code=${x.unique_code}`),this.apiService.publicGet(O)}getQRCodeData(x){const O=(new n.WM).set("Content-Type","text/plain").set("Accept","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}qr/base64`,x,{withCredentials:!0,headers:O}).pipe((0,e.U)(L=>L))}sendQRPayment(x){return this.apiService.post("sbp/transferbyqrcode/update",x)}getQRProducts(){return this.apiService.get("sbp/transferbyqrcode/products")}getQRRegDocument(x,O){return this.apiService.get(`document/visual/byid?doc_module=ibankul&doc_type=${O}&doc_ids=${x}`).pipe((0,e.U)(L=>O===i.o.SbpQrReg?L.requestSbpRegQrcB2B:L.requestSbpRegQrcTsp))}getQRPaymentDoc(x){return this.apiService.get(`document/visual/byid?doc_module=ibankul&doc_type=${i.o.DocSbpTransferByQrCode}&doc_ids=${x}`).pipe((0,e.U)(O=>O.sbpTransferByQrCodeDocument))}getExistTspBlock(x){return this.apiService.get(`request/sbp_tce/block/exist?id=${x}`)}blockTsp(x){return this.apiService.post("request/sbp_tce/block",x)}canCreateRefund(x){return this.apiService.get(`sbp_qr/refund/can_create?opkcTranId=${x}`)}static#e=this.\u0275fac=function(O){return new(O||l)(d.\u0275\u0275inject(a.s),d.\u0275\u0275inject(n.eN),d.\u0275\u0275inject(u.Pj))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},26359:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>u});var n=t(67795),e=t(61135),i=t(22431),d=t(32031),a=t(94650);let u=(()=>{class h{constructor(){this.SBP_STATUS=i.c,this.phoneMask=d.gP,this.contractDataSbpQrPayment$=new e.X(null),this.contractDataSbpQrAccount$=new e.X(null),this.contractDataSbpQr$=new e.X(null),this.partialSigningSbpQrPaymentAgreementId$=new e.X(null),this.partialSigningSbpQrAccountAgreementId$=new e.X(null),this.partialSigningSbpQrAgreementId$=new e.X(null),this.sbpQrPaymentConnectionStatus$=new e.X(i.c.NEW),this.sbpConnectionStatus$=new e.X(i.c.NEW)}inputPhoneChange(m,x,O,L){const w=O;if(w?.inputType?.startsWith("insert")&&"insertText"!==w?.inputType||"input"===O?.type){const B=m.startsWith("8")||m.startsWith("7")&&11===m.length?m.slice(1):m;L.get(x)?.setValue((0,n.xm)(B,this.phoneMask,{guide:!1}).conformedValue)}return L}static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275prov=a.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},53342:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>$});var n=t(97582),i=(t(66266),t(16611)),d=t(77579),a=t(70262),u=t(39646),h=t(71884),l=t(82722),m=t(6146),x=t(94650),O=t(40929),L=t(82350),w=t(36895),B=t(24201),_=t(18751);function y(C,T){if(1&C&&(x.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"span",3),x.\u0275\u0275text(3),x.\u0275\u0275elementEnd()(),x.\u0275\u0275elementStart(4,"app-menu-select",4),x.\u0275\u0275element(5,"app-dots"),x.\u0275\u0275elementEnd()()),2&C){const j=x.\u0275\u0275nextContext();x.\u0275\u0275advance(3),x.\u0275\u0275textInterpolate(j.contractData.name),x.\u0275\u0275advance(1),x.\u0275\u0275property("buttonActions",j.buttonActions)("icon",!0)}}class ${set data(T){T&&(this.contractData=T,this.getContractInfo())}constructor(T,j,I){this.documentService=T,this.changeDetectorRef=j,this.sbpService=I,this.destroyed$=new d.x,this.contractStatus="",this.agreementLink="",this.buttonActions=[]}getContractInfo(){this.documentService.getDocumentById("ibankul",this.contractData.docType,this.contractData.id).pipe((0,a.K)(()=>(0,u.of)(null)),(0,h.x)((T,j)=>JSON.stringify(T)===JSON.stringify(j)),(0,l.R)(this.destroyed$)).subscribe(T=>{T&&(this.contractData.name=this.setName(Object.values(T)[0]),this.changeDetectorRef.markForCheck())})}setButtonActions(){this.buttonActions=[],this.buttonActions.push({type:"print",data:{docId:this.contractData?.id,docType:this.contractData?.docType},color:"primary"})}setName(T){if(!T.cksDocNumber)return"";switch(T.docType){case m.o.SalarySbpQrAgreement:return`\u0414\u043e\u0433\u043e\u0432\u043e\u0440 ${T.cksDocNumber} \u043e\u0442 ${T.docDate} \u043f\u0440\u0438\u0435\u043c \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 QR`;case m.o.SbpSalaryTransfer:return`\u0414\u043e\u0433\u043e\u0432\u043e\u0440 ${T.cksDocNumber} \u043e\u0442 ${T.docDate} \u0421\u0411\u041f \u0417\u0430\u0440\u043f\u043b\u0430\u0442\u0430`;case m.o.AcquiringAgreementSoftPOS:return`\u0414\u043e\u0433\u043e\u0432\u043e\u0440 ${T.cksDocNumber} \u043e\u0442 ${T.docDate} \u043f\u043e \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u043c\u0443 \u044d\u043a\u0432\u0430\u0439\u0440\u0438\u043d\u0433\u0443 SoftPOS`;case m.o.AcquiringAgreementHardPOS:return`\u0414\u043e\u0433\u043e\u0432\u043e\u0440 ${T.cksDocNumber} \u043e\u0442 ${T.docDate} \u043f\u043e \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u043c\u0443 \u044d\u043a\u0432\u0430\u0439\u0440\u0438\u043d\u0433\u0443`;default:return""}}ngOnInit(){this.setButtonActions()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete(),this.sbpService.contractDataSbp$.next(null)}static#e=this.\u0275fac=function(j){return new(j||$)(x.\u0275\u0275directiveInject(O.Z),x.\u0275\u0275directiveInject(x.ChangeDetectorRef),x.\u0275\u0275directiveInject(L.V))};static#t=this.\u0275cmp=x.\u0275\u0275defineComponent({type:$,selectors:[["app-sbp-contract"]],inputs:{data:"data"},decls:1,vars:1,consts:[["class","contract",4,"ngIf"],[1,"contract"],[1,"contract__main"],[1,"contract__name"],["backgroundClass","operation","data-qa","1665750058776",3,"buttonActions","icon"]],template:function(j,I){1&j&&x.\u0275\u0275template(0,y,6,3,"div",0),2&j&&x.\u0275\u0275property("ngIf",null==I.contractData||null==I.contractData.name?null:I.contractData.name.length)},dependencies:[w.O5,B.r,_.Z],styles:[".contract[_ngcontent-%COMP%]{display:flex;padding:16px;justify-content:space-between;align-items:center;border-radius:4px;margin-bottom:24px;background:#f1f2f2;border-left:#88909B 2px solid}.contract__main[_ngcontent-%COMP%]{display:flex;align-items:center}.contract__icon[_ngcontent-%COMP%]{margin-right:12px;color:#70b6f6;height:16px;width:16px}.contract__name[_ngcontent-%COMP%]{color:#444;font-size:14px;font-style:normal;font-weight:400;line-height:20px;text-decoration:underline;margin-right:12px;text-underline-offset:5px}.contract__termination[_ngcontent-%COMP%]{color:var(--text-red, #e23428);font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:capitalize}"],changeDetection:0})}(0,n.gn)([(0,i.SQ)()],$.prototype,"lang",void 0)},43544:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>F});var n=t(97582),e=t(94650),i=t(16611),d=t(44180),a=t(36895),u=t(79892),h=t(90995);function l(z,X){if(1&z){const p=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",10)(1,"app-metib-close",11),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(p);const E=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(E.toMainPage())}),e.\u0275\u0275elementEnd()()}2&z&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("isWhite",!0))}function m(z,X){if(1&z){const p=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",15),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(p);const E=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(E.handleClick())}),e.\u0275\u0275elementEnd()}if(2&z){const p=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("disabled",p.isConnectionBtnDisabled)("text",p.btnConnectionText)("type",p.btnType?p.btnType:"dark-blue-large")("ngClass",p.serviceName)}}function x(z,X){1&z&&e.\u0275\u0275elementContainer(0)}function O(z,X){if(1&z&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,x,1,0,"ng-container",20),e.\u0275\u0275elementContainerEnd()),2&z){e.\u0275\u0275nextContext();const p=e.\u0275\u0275reference(7);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",p)}}function L(z,X){1&z&&e.\u0275\u0275elementContainer(0)}function w(z,X){if(1&z&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,L,1,0,"ng-container",20),e.\u0275\u0275elementContainerEnd()),2&z){e.\u0275\u0275nextContext();const p=e.\u0275\u0275reference(7);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",p)}}function B(z,X){if(1&z&&(e.\u0275\u0275elementStart(0,"p",21),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"a",22),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()),2&z){const p=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,"By clicking the Connect button you authorize that you are familiar with and occur with the",p.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",p.agreementLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(5,6,"With tariffs",p.lang))}}function _(z,X){if(1&z&&(e.\u0275\u0275elementStart(0,"p",21)(1,"a",22),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&z){const p=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("href",p.agreementLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,2,"More details about the service",p.lang)," ")}}function y(z,X){if(1&z&&(e.\u0275\u0275elementStart(0,"p",21),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"a",22),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()),2&z){const p=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,"By clicking the button, you agree to",p.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",p.agreementLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(5,6,"terms of use of the service",p.lang)," ")}}function $(z,X){if(1&z&&(e.\u0275\u0275elementContainerStart(0)(1,16),e.\u0275\u0275template(2,O,2,1,"ng-container",17),e.\u0275\u0275template(3,w,2,1,"ng-container",17),e.\u0275\u0275template(4,B,6,9,"p",18),e.\u0275\u0275template(5,_,4,5,"p",18),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275template(6,y,6,9,"ng-template",null,19,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementContainerEnd()),2&z){const p=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitch",p.serviceName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","sbp"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","acquiring"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","supportVed"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","aml")}}function C(z,X){if(1&z&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275template(1,m,1,4,"app-button",13),e.\u0275\u0275template(2,$,8,5,"ng-container",14),e.\u0275\u0275elementEnd()),2&z){const p=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",p.isShowButton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",p.isShowAgreement)}}function T(z,X){if(1&z&&(e.\u0275\u0275elementStart(0,"div",23)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&z){const p=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,"The register for the transfer of wages can be sent through the 'Mail' section",p.lang))}}function j(z,X){if(1&z&&e.\u0275\u0275element(0,"img",24),2&z){const p=e.\u0275\u0275nextContext();e.\u0275\u0275property("src",p.svgPath,e.\u0275\u0275sanitizeUrl)}}function I(z,X){if(1&z){const p=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",10)(1,"app-metib-close",11),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(p);const E=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(E.toMainPage())}),e.\u0275\u0275elementEnd()()}2&z&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("isWhite",!0))}class F{constructor(X){this.route=X,this.lang="",this.title="",this.subTitle="",this.agreementLink="",this.svgPath="/assets/images/sbp.svg",this.isRoleRestriction=!1,this.isConnectionBtnDisabled=!1,this.btnConnectionText="",this.isShowAgreement=!1,this.isShowImg=!0,this.btnType="dark-blue-large",this.isShowButton=!0,this.serviceName="sbp",this.clickEvent=new e.EventEmitter}toMainPage(){this.route.navigate(["/"])}handleClick(){this.clickEvent.emit()}static#e=this.\u0275fac=function(p){return new(p||F)(e.\u0275\u0275directiveInject(d.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:F,selectors:[["app-sbp-header-dumb"]],inputs:{title:"title",subTitle:"subTitle",agreementLink:"agreementLink",svgPath:"svgPath",isRoleRestriction:"isRoleRestriction",isConnectionBtnDisabled:"isConnectionBtnDisabled",btnConnectionText:"btnConnectionText",isShowAgreement:"isShowAgreement",isShowImg:"isShowImg",btnType:"btnType",isShowButton:"isShowButton",serviceName:"serviceName"},outputs:{clickEvent:"clickEvent"},decls:15,vars:13,consts:[[1,"sbp-header"],[1,"sbp-header__first-section"],[1,"sbp-header__title"],[1,"sbp-header__title-wrap"],[1,"sbp-header__title-caption"],[1,"sbp-header__sub-text"],["class","sbp-header__close",4,"ngIf"],["class","sbp-header__btn-block",4,"ngIf"],["class","sbp-header__no-role",4,"ngIf"],["alt","sbp","class","sbp-img",3,"src",4,"ngIf"],[1,"sbp-header__close"],[3,"isWhite","clicked"],[1,"sbp-header__btn-block"],["class","sbp-header__btn",3,"disabled","text","type","ngClass","clicked",4,"ngIf"],[4,"ngIf"],[1,"sbp-header__btn",3,"disabled","text","type","ngClass","clicked"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","sbp-header__agreement",4,"ngSwitchCase"],["sbp",""],[4,"ngTemplateOutlet"],[1,"sbp-header__agreement"],["target","_blank",1,"sbp-header__agreement-link",3,"href"],[1,"sbp-header__no-role"],["alt","sbp",1,"sbp-img",3,"src"]],template:function(p,P){1&p&&(e.\u0275\u0275elementStart(0,"article",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"sub",5),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(10,l,2,1,"div",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,C,3,2,"div",7),e.\u0275\u0275template(12,T,4,4,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(13,j,1,1,"img",9),e.\u0275\u0275template(14,I,2,1,"div",6),e.\u0275\u0275elementEnd()),2&p&&(e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,7,P.title,P.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,10,P.subTitle,P.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","konturAlba"===P.serviceName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!P.isRoleRestriction),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",P.isRoleRestriction),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",P.isShowImg),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","konturAlba"!==P.serviceName))},dependencies:[a.mk,a.O5,a.tP,a.RF,a.n9,u.U,h.r,i.X$],styles:[".sbp-header[_ngcontent-%COMP%]{display:flex;background:linear-gradient(93.91deg,#9eb7e5 7.2%,rgba(158,183,229,.66) 94.82%);padding:32px 32px 48px;min-height:294px;justify-content:space-between}@media screen and (min-width: 375px) and (max-width: 768px){.sbp-header[_ngcontent-%COMP%]{padding:16px}}.sbp-header__first-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1}.sbp-header__no-role[_ngcontent-%COMP%]{max-width:320px;font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#202020;margin:0}.sbp-header__title-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-family:Open Sans,sans-serif}.sbp-header__title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.sbp-header__title-caption[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:38px;line-height:52px;color:#fff;margin:0 0 24px}.sbp-header__sub-text[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:18px;line-height:25px;margin:0;color:#fff}.sbp-header__btn-block[_ngcontent-%COMP%]{display:flex}.sbp-header__btn[_ngcontent-%COMP%]{margin-right:40px}.sbp-header__btn.konturAlba[_ngcontent-%COMP%]{margin-right:0}.sbp-header__agreement[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#fff;max-width:277px;padding:0;margin:auto 0}.sbp-header__agreement-link[_ngcontent-%COMP%]{color:#003ad2}.sbp-img[_ngcontent-%COMP%]{margin-right:90px}"],changeDetection:0})}(0,n.gn)([(0,i.SQ)()],F.prototype,"lang",void 0)},14402:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>h});var n=t(97582),e=t(16611),i=t(94650),d=t(36895),a=t(46382);function u(l,m){if(1&l&&i.\u0275\u0275element(0,"app-sbp-step-card",2),2&l){const x=m.$implicit,O=i.\u0275\u0275nextContext();i.\u0275\u0275property("isShift",O.isShift)("step",x)}}class h{constructor(){this.STEPS=[],this.isShift=!1}static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:h,selectors:[["app-sbp-how-is-works-tab"]],inputs:{STEPS:"STEPS",isShift:"isShift"},decls:2,vars:1,consts:[[1,"steps"],[3,"isShift","step",4,"ngFor","ngForOf"],[3,"isShift","step"]],template:function(x,O){1&x&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,u,1,2,"app-sbp-step-card",1),i.\u0275\u0275elementEnd()),2&x&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",O.STEPS))},dependencies:[d.sg,a.u],styles:[".steps[_ngcontent-%COMP%]{display:flex;margin-bottom:60px;justify-content:space-between}"],changeDetection:0})}(0,n.gn)([(0,e.SQ)()],h.prototype,"lang",void 0)},60251:(Ee,Q,t)=>{"use strict";t.d(Q,{F:()=>d});var n=t(97582),e=t(16611),i=t(94650);class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:d,selectors:[["app-sbp-info-card"]],inputs:{card:"card"},decls:5,vars:2,consts:[[1,"sbp-info-card"],[1,"sbp-info-card__title"],[1,"sbp-info-card__text"]],template:function(h,l){1&h&&(i.\u0275\u0275elementStart(0,"article",0)(1,"span",1),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"p",2),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd()()),2&h&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(l.card.caption),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(l.card.text))},styles:[".sbp-info-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:16px;background:#f1f2f2;border-radius:4px;font-family:Open Sans,sans-serif;font-style:normal;max-width:365px}.sbp-info-card__title[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:25px;color:#080708;margin-bottom:12px}.sbp-info-card__text[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:22px;color:#444;margin:0}"]})}(0,n.gn)([(0,e.SQ)()],d.prototype,"lang",void 0)},41524:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>R});var n=t(97582),e=t(94650),i=t(16611),d=t(77579),a=t(39646),u=t(82722),h=t(44180),l=t(62978),m=t(36895),x=t(24201),O=t(97392),L=t(5432),w=t(53342);function B(ne,G){if(1&ne){const ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275listener("click",function(){const Ge=e.\u0275\u0275restoreView(ce).$implicit,ct=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ct.setCurrentTabAndSection(ct.currentTab,Ge))}),e.\u0275\u0275elementStart(1,"span",9),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()}if(2&ne){const ce=G.$implicit,xe=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("list-header__title-button--no-top",xe.noTitle),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("list-header__title--active",(null==ce?null:ce.name)===(null==xe.currentSection?null:xe.currentSection.name)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,5,null==ce?null:ce.name,xe.lang)," ")}}function _(ne,G){if(1&ne){const ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",14),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(ce);const we=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(we.clickSingleButton())}),e.\u0275\u0275elementStart(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()}if(2&ne){const ce=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,ce.buttonTitle,ce.lang))}}function y(ne,G){if(1&ne&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275template(1,_,4,4,"button",13),e.\u0275\u0275elementEnd()),2&ne){const ce=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ce.isButtonsHidden)}}function $(ne,G){if(1&ne&&(e.\u0275\u0275elementStart(0,"div",19),e.\u0275\u0275element(1,"div",20),e.\u0275\u0275elementEnd()),2&ne){const ce=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275classProp("more-button__arrow--open",ce.selectOpened)}}function C(ne,G){if(1&ne&&(e.\u0275\u0275elementStart(0,"button",17)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,$,2,2,"div",18),e.\u0275\u0275elementEnd()),2&ne){const ce=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind2(3,2,ce.buttonTitle,ce.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",ce.ACTIONS.length)}}function T(ne,G){if(1&ne){const ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",15),e.\u0275\u0275listener("changeEvent",function(we){e.\u0275\u0275restoreView(ce);const Ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ge.onClickAction(we))})("openChanged",function(we){e.\u0275\u0275restoreView(ce);const Ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ge.openChanged(we))}),e.\u0275\u0275template(1,C,5,5,"button",16),e.\u0275\u0275elementEnd()}if(2&ne){const ce=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("icon",!1)("items",ce.ACTIONS)("wrapperClass",""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ce.isButtonsHidden)}}function j(ne,G){if(1&ne&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,y,2,1,"div",10),e.\u0275\u0275template(2,T,2,4,"app-menu-select",11),e.\u0275\u0275elementContainerEnd()),2&ne){const ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ce.isButtonsHidden&&ce.isShowSingleButton&&!(null!=ce.ACTIONS&&ce.ACTIONS.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ce.isButtonsHidden&&ce.ACTIONS.length)}}function I(ne,G){1&ne&&e.\u0275\u0275element(0,"app-sbp-contract",22),2&ne&&e.\u0275\u0275property("data",G.ngIf)}function F(ne,G){if(1&ne&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,I,1,1,"app-sbp-contract",21),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementContainerEnd()),2&ne){const ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,ce.contractData$))}}function z(ne,G){1&ne&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",23),e.\u0275\u0275element(2,"mat-icon",24),e.\u0275\u0275elementStart(3,"div",25),e.\u0275\u0275text(4," \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u0441 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 24/7, \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 "),e.\u0275\u0275elementStart(5,"a",26),e.\u0275\u0275text(6,"8 (800) 700-53-24"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(7," \u0438 email "),e.\u0275\u0275elementStart(8,"a",27),e.\u0275\u0275text(9,"psp@inpas.ru"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()),2&ne&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("svgIcon","info_speak_bubble"))}function X(ne,G){if(1&ne){const ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-sbp-row-buttons",30),e.\u0275\u0275listener("tabClick",function(we){e.\u0275\u0275restoreView(ce);const Ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ge.setCurrentTabAndSection(we,Ge.currentSection))}),e.\u0275\u0275elementEnd()}if(2&ne){const ce=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("TABS",ce.currentSection.tabs)}}function p(ne,G){if(1&ne&&(e.\u0275\u0275elementStart(0,"div",28),e.\u0275\u0275template(1,X,1,1,"app-sbp-row-buttons",29),e.\u0275\u0275projection(2),e.\u0275\u0275elementEnd()),2&ne){const ce=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ce.isButtonsHidden&&ce.currentSection&&!ce.isNotification)}}function P(ne,G){if(1&ne){const ce=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-icon",31),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(ce);const we=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(we.closeEvent.emit())}),e.\u0275\u0275text(1,"close"),e.\u0275\u0275elementEnd()}}const E=["*"];class R{constructor(G,ce,xe){this.route=G,this.router=ce,this.acquiringService=xe,this.SECTIONS=[],this.ACTIONS=[],this.buttonTitle="",this.baseUrl="/",this.isButtonsHidden=!1,this.isShowSingleButton=!1,this.isWholeBlock=!1,this.isIconClose=!1,this.isNotification=!1,this.noTitle=!1,this.clickItemAction=new e.EventEmitter,this.clickSingleButtonChange=new e.EventEmitter,this.currentTabChange=new e.EventEmitter,this.currentSectionChange=new e.EventEmitter,this.closeEvent=new e.EventEmitter,this.destroyed$=new d.x,this.selectOpened=!1}onClickAction(G){this.clickItemAction.emit(G)}openChanged(G){this.selectOpened=G}ngOnInit(){this.route.queryParams.subscribe(G=>{this.queryParams=G;let ce=this.SECTIONS[0],xe=ce?.tabs?.length?ce?.tabs[0]:null;ce&&this.queryParams.section&&(ce=this.SECTIONS.find(we=>we.name===this.queryParams.section)||this.SECTIONS[0],xe=this.queryParams.tab?ce.tabs.find(we=>we.query===this.queryParams.tab)||ce.tabs[0]:null),this.setCurrentTabAndSection(xe,ce)}),this.contractData$=this.isAcquiring?this.acquiringService.getAcquiringContractData():(0,a.of)(null),this.acquiringService.getAcquiringContractData().value||this.acquiringService.getAcquiringAgreement(this.acquiringService.isSoftPOS).pipe((0,u.R)(this.closeEvent)).subscribe()}clickSingleButton(){this.clickSingleButtonChange.emit()}get isAcquiring(){return this.router.url.includes(this.acquiringService.softPOSPath)||this.router.url.includes(this.acquiringService.hardPOSPath)}setCurrentTabAndSection(G,ce){G&&G?.shortName===this.currentTab?.shortName&&this.currentSection?.name===ce.name&&G?.section===ce.name||(this.currentSection=ce,this.currentSection?.tabs?.length&&this.currentTab?this.currentSection.tabs=this.currentSection.tabs.map(xe=>{const we=xe.shortName===G?.shortName;return xe.chosen=we,we&&(this.currentTab=G),xe}):this.currentTab=this.currentSection?.tabs?.length&&!this.currentTab?this.currentSection.tabs[0]:null,this.currentTab&&this.currentTabChange.emit(this.currentTab),this.currentSectionChange.emit(this.currentSection),this.router.navigate([this.baseUrl],{queryParams:{section:this.currentSection.name,tab:this.currentTab?.query}}))}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}static#e=this.\u0275fac=function(ce){return new(ce||R)(e.\u0275\u0275directiveInject(h.gz),e.\u0275\u0275directiveInject(h.F0),e.\u0275\u0275directiveInject(l.Y))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:R,selectors:[["app-sbp-list-header"]],inputs:{SECTIONS:"SECTIONS",ACTIONS:"ACTIONS",buttonTitle:"buttonTitle",baseUrl:"baseUrl",isButtonsHidden:"isButtonsHidden",isShowSingleButton:"isShowSingleButton",isWholeBlock:"isWholeBlock",isIconClose:"isIconClose",isNotification:"isNotification",noTitle:"noTitle"},outputs:{clickItemAction:"clickItemAction",clickSingleButtonChange:"clickSingleButtonChange",currentTabChange:"currentTabChange",currentSectionChange:"currentSectionChange",closeEvent:"closeEvent"},ngContentSelectors:E,decls:10,vars:8,consts:[[1,"list-header"],[1,"list-header__top"],[1,"list-header__sections"],["class","list-header__title-button",3,"list-header__title-button--no-top","click",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","list-header__bottom",4,"ngIf"],["closeTmp",""],[1,"list-header__title-button",3,"click"],[1,"list-header__title"],["class","list-header__single-button",4,"ngIf"],["class","list-header__more-btn",3,"icon","items","wrapperClass","changeEvent","openChanged",4,"ngIf"],[1,"list-header__single-button"],["class","more-button",3,"click",4,"ngIf"],[1,"more-button",3,"click"],[1,"list-header__more-btn",3,"icon","items","wrapperClass","changeEvent","openChanged"],["class","more-button","data-qa","1663076377",4,"ngIf"],["data-qa","1663076377",1,"more-button"],["class","more-button__arrow-wrapper",4,"ngIf"],[1,"more-button__arrow-wrapper"],[1,"more-button__arrow"],[3,"data",4,"ngIf"],[3,"data"],[1,"support-info"],[1,"info-bubble",3,"svgIcon"],[1,"info-text"],["href","tel:88007005324",1,"info-link"],["href","mailto:psp@inpas.ru",1,"info-link"],[1,"list-header__bottom"],[3,"TABS","tabClick",4,"ngIf"],[3,"TABS","tabClick"],[1,"list-header__svg",3,"click"]],template:function(ce,xe){if(1&ce&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,B,4,8,"div",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,j,3,2,"ng-container",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,F,3,3,"ng-container",5),e.\u0275\u0275template(6,z,10,1,"ng-container",5),e.\u0275\u0275template(7,p,3,1,"div",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,P,2,0,"ng-template",null,7,e.\u0275\u0275templateRefExtractor)),2&ce){const we=e.\u0275\u0275reference(9);e.\u0275\u0275classProp("list-header--whole",xe.isWholeBlock),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",xe.SECTIONS),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!xe.isIconClose)("ngIfElse",we),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","TSP"===xe.currentSection.name&&xe.isAcquiring),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Help"===xe.currentSection.name&&xe.isAcquiring),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==xe.currentSection||null==xe.currentSection.tabs?null:xe.currentSection.tabs.length)||xe.isNotification)}},dependencies:[m.sg,m.O5,x.r,O.Hw,L.r,w.K,m.Ov,i.X$],styles:['@charset "UTF-8";.more-button[_ngcontent-%COMP%]{background:#2f54eb;font-family:Open Sans,sans-serif;border-radius:4px;box-sizing:border-box;padding:14px 28px;display:flex;justify-content:space-between;cursor:pointer;min-width:118px;color:#fff;border:none;font-size:14px;align-items:center;line-height:19px;font-weight:600}.more-button__arrow-wrapper[_ngcontent-%COMP%]{width:25px}.more-button__arrow[_ngcontent-%COMP%]{width:8px;height:8px;border:2px solid #ffffff;transform:rotate(45deg);border-top:none;border-left:none;margin-left:14px;margin-bottom:2px}.more-button__arrow--open[_ngcontent-%COMP%]{transform:translate(13%,55%) rotate(-135deg)}.more-button[_ngcontent-%COMP%]:active, .more-button[_ngcontent-%COMP%]:hover, .more-button[_ngcontent-%COMP%]:focus{outline:none}.list-header[_ngcontent-%COMP%]{padding:32px;display:flex;flex-direction:column;font-family:Open Sans,sans-serif;font-style:normal;background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:2px;margin-bottom:24px}.list-header__svg[_ngcontent-%COMP%]{cursor:pointer;color:#88909b;font-size:30px}.list-header--whole[_ngcontent-%COMP%]{margin-bottom:0;box-shadow:none;padding-bottom:0}.list-header__top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #dedede;margin-bottom:32px;min-height:68px}.list-header__bottom[_ngcontent-%COMP%]{display:flex;width:100%}.list-header__title-button[_ngcontent-%COMP%]{display:flex;margin:0 20px;cursor:pointer}.list-header__title-button[_ngcontent-%COMP%]:first-of-type{margin-left:0}.list-header__title-button--no-top[_ngcontent-%COMP%]{padding-top:0}.list-header__single-button[_ngcontent-%COMP%]{display:flex;margin-bottom:20px;height:-moz-fit-content;height:fit-content}.list-header__title[_ngcontent-%COMP%]{padding-bottom:33px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:400;font-size:18px;line-height:24px;display:flex;align-items:center;color:#88909b}.list-header__title--active[_ngcontent-%COMP%]{border-bottom:3px solid #2f54eb;padding-bottom:30px;color:#080708}.list-header__title__tooltip[_ngcontent-%COMP%]{margin-left:10px}.list-header__title__tooltip-text[_ngcontent-%COMP%]{display:none;position:absolute;top:100%;right:50%;padding:10px;background:#1A2A40;flex-grow:1;max-width:300px;width:max-content;color:#fff;z-index:100;border-radius:2px}.list-header__title__question[_ngcontent-%COMP%]{font-size:14px;border-radius:50%;color:#b9b5b5;padding:1px 8px;position:relative;border:2px solid #b9b5b5;cursor:pointer}.list-header__title__question[_ngcontent-%COMP%]:hover{color:#2f54eb;border:2px solid #2F54EB}.list-header__title__question[_ngcontent-%COMP%]:hover   .list-header__title__tooltip-text[_ngcontent-%COMP%], .list-header__sections[_ngcontent-%COMP%]{display:flex}.list-header[_ngcontent-%COMP%]   .support-info[_ngcontent-%COMP%]{display:flex;padding:16px 20px;gap:12px;border-radius:12px;border:1px solid #70B6F6;background:#eaf4fe;align-items:center}.list-header[_ngcontent-%COMP%]   .info-bubble[_ngcontent-%COMP%]{color:#70b6f6}.list-header[_ngcontent-%COMP%]   .info-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px}.list-header[_ngcontent-%COMP%]   .info-link[_ngcontent-%COMP%]{color:#2f54eb;text-decoration:none;font-weight:600}.list-header[_ngcontent-%COMP%]   .info-link[_ngcontent-%COMP%]:visited{color:#2f54eb;text-decoration:none}']})}(0,n.gn)([(0,i.SQ)()],R.prototype,"lang",void 0)},81831:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>L});var n=t(97582),e=t(16611),i=t(78506),d=t(94650),a=t(82350),u=t(36895),h=t(98504);function l(w,B){if(1&w&&(d.\u0275\u0275elementStart(0,"p",5),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&w){const _=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(_.tableName)}}function m(w,B){if(1&w&&(d.\u0275\u0275elementStart(0,"th"),d.\u0275\u0275text(1),d.\u0275\u0275pipe(2,"translate"),d.\u0275\u0275elementEnd()),2&w){const _=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(2,1,"Annotation",_.lang))}}function x(w,B){if(1&w&&(d.\u0275\u0275elementStart(0,"td",6),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&w){const _=d.\u0275\u0275nextContext().$implicit,y=d.\u0275\u0275nextContext();d.\u0275\u0275property("ngClass",y.getStatusColor(_.status,_.annotation)),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(_.annotation)}}function O(w,B){if(1&w&&(d.\u0275\u0275elementStart(0,"tr")(1,"td"),d.\u0275\u0275text(2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"td"),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"td"),d.\u0275\u0275text(6),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"td"),d.\u0275\u0275text(8),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(9,"td"),d.\u0275\u0275text(10),d.\u0275\u0275pipe(11,"appCurrency"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"td"),d.\u0275\u0275text(13),d.\u0275\u0275pipe(14,"appCurrency"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"td",6)(16,"span",7),d.\u0275\u0275text(17),d.\u0275\u0275elementEnd()(),d.\u0275\u0275template(18,x,2,2,"td",8),d.\u0275\u0275elementEnd()),2&w){const _=B.$implicit,y=d.\u0275\u0275nextContext();d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(_.number),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(_.fullName),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(_.bik),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(_.phone),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind3(11,9,_.sum,2,".")),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind3(14,13,_.collected,2,".")),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngClass",y.getStatusColor(_.status)),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(_.status),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",y.isAnnotation)}}class L{constructor(B){this.sbpService=B,this.isShowTitle=!0,this.isAnnotation=!0,this.BLUE_STATUS_CRUTCH="\u0424\u041b \u043f\u0440\u043e\u0448\u043b\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 (\u043d\u043e",this.TABLE_STATUSES=i.wu,this.EMPLOYEE_STATUSES=i.LH,this.EMPLOYEE_STATUSES_RU=i.ke,this.TABLE_STATUSES_COLOR=i.Dr,this.tableData=[],this.currency="RUB"}get tableName(){return this.registryDocument?this.sbpService.getTableNameFull(this.registryDocument.number,this.registryDocument.reportMonth,this.registryDocument.amount,this.currency,this.tableData.length):""}getEmployeeStatusText(B){switch(B){case this.EMPLOYEE_STATUSES.SUCCESS:return this.EMPLOYEE_STATUSES_RU.SUCCESS;case this.EMPLOYEE_STATUSES.FAIL:return this.EMPLOYEE_STATUSES_RU.FAIL;default:return this.EMPLOYEE_STATUSES_RU.NEW}}setTableData(){!this.registryDocument||!this.registryDocument.employees||this.registryDocument.employees.forEach((B,_)=>{const y={number:_+1,fullName:`${B.lastName} ${B.firstName} ${B.middleName}`,bik:B.receiverBic,phone:B.phone,sum:+B.amount,status:this.getEmployeeStatusText(B.status),annotation:this.getAnnotation(B),collected:B.collectedAmount||""};this.tableData.push(y)})}getAnnotation(B){return B.nspkCode&&B.nspkCodeDescription?`${B.nspkCode}: ${B.nspkCodeDescription}`:B.nspkCodeDescription?B.nspkCodeDescription:B.payInfo?B.payInfo:""}ngOnInit(){this.registryDocument&&this.setTableData()}getStatusColor(B,_=""){switch(B){case this.TABLE_STATUSES.EXECUTED:case this.EMPLOYEE_STATUSES.SUCCESS:return this.TABLE_STATUSES_COLOR.GREEN;case this.TABLE_STATUSES.REFUSED:case this.EMPLOYEE_STATUSES.FAIL:return _?.startsWith(this.BLUE_STATUS_CRUTCH)?this.TABLE_STATUSES_COLOR.BLUE:this.TABLE_STATUSES_COLOR.RED;default:return this.TABLE_STATUSES_COLOR.DEFAULT}}static#e=this.\u0275fac=function(_){return new(_||L)(d.\u0275\u0275directiveInject(a.V))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:L,selectors:[["app-sbp-registry-table"]],inputs:{registryDocument:"registryDocument",isShowTitle:"isShowTitle",isAnnotation:"isAnnotation"},decls:27,vars:27,consts:[["class","table-title",4,"ngIf"],[1,"table"],[1,"table__summ"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"table-title"],[1,"table-status",3,"ngClass"],[1,"table-status-badge"],["class","table-status",3,"ngClass",4,"ngIf"]],template:function(_,y){1&_&&(d.\u0275\u0275template(0,l,2,1,"p",0),d.\u0275\u0275elementStart(1,"table",1)(2,"thead")(3,"tr")(4,"th"),d.\u0275\u0275text(5,"\u2116"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"th"),d.\u0275\u0275text(7),d.\u0275\u0275pipe(8,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(9,"th"),d.\u0275\u0275text(10),d.\u0275\u0275pipe(11,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"th"),d.\u0275\u0275text(13),d.\u0275\u0275pipe(14,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"th",2),d.\u0275\u0275text(16),d.\u0275\u0275pipe(17,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(18,"th"),d.\u0275\u0275text(19),d.\u0275\u0275pipe(20,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(21,"th"),d.\u0275\u0275text(22),d.\u0275\u0275pipe(23,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(24,m,3,4,"th",3),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(25,"tbody"),d.\u0275\u0275template(26,O,19,17,"tr",4),d.\u0275\u0275elementEnd()()),2&_&&(d.\u0275\u0275property("ngIf",y.tableName&&y.isShowTitle),d.\u0275\u0275advance(7),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(8,9,"Full name of the employee",y.lang)),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(11,12,"Bank's BIC",y.lang)),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(14,15,"Phone",y.lang)),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(17,18,"Summ",y.lang)),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(20,21,"Collected",y.lang)),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(23,24,"Status",y.lang)),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngIf",y.isAnnotation),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngForOf",y.tableData))},dependencies:[u.mk,u.sg,u.O5,e.X$,h.H],styles:[".table[_ngcontent-%COMP%]{border-radius:5px;font-weight:400;border:none;border-collapse:collapse;width:100%;max-width:100%;font-style:normal;font-family:Open Sans,sans-serif}.table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:20px;letter-spacing:.01em;color:#000;padding:14px 16px}.table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background:#dedede;font-weight:600;font-size:12px;line-height:16px;letter-spacing:.01em;text-transform:uppercase;color:#444;width:-moz-fit-content;width:fit-content;text-align:left}.table[_ngcontent-%COMP%]   td.table-status[_ngcontent-%COMP%]{font-weight:600;font-size:12px;line-height:16px;color:#88909b}.table[_ngcontent-%COMP%]   td.red[_ngcontent-%COMP%]{color:#ff2727}.table[_ngcontent-%COMP%]   td.green[_ngcontent-%COMP%]{color:#00a843}.table[_ngcontent-%COMP%]   td.blue[_ngcontent-%COMP%]{color:#003ad2}.table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.table__summ[_ngcontent-%COMP%]{min-width:125px}.table-title[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.01em;color:#000;padding:10px}.table-status-badge[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:5px}"],changeDetection:0})}(0,n.gn)([(0,e.SQ)()],L.prototype,"lang",void 0)},78506:(Ee,Q,t)=>{"use strict";t.d(Q,{Dr:()=>d,LH:()=>e,ke:()=>i,wu:()=>n});var n=(()=>{return(a=n||(n={})).EXECUTED="\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d",a.REFUSED="\u041e\u0442\u043a\u0430\u0437\u0430\u043d",n;var a})(),e=(()=>{return(a=e||(e={})).FAIL="FAIL",a.SUCCESS="SUCCESS",e;var a})(),i=(()=>{return(a=i||(i={})).FAIL="\u041e\u0442\u043a\u0430\u0437\u0430\u043d",a.SUCCESS="\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d",a.NEW="\u041d\u043e\u0432\u044b\u0439",i;var a})(),d=(()=>{return(a=d||(d={})).RED="red",a.GREEN="green",a.BLUE="blue",a.DEFAULT="",d;var a})()},5432:(Ee,Q,t)=>{"use strict";t.d(Q,{r:()=>x});var n=t(97582),e=t(94650),i=t(16611),d=t(36895);function a(O,L){if(1&O&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementContainerEnd()),2&O){const w=e.\u0275\u0275nextContext(2).$implicit,B=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,w.shortName,B.lang)," ")}}function u(O,L){if(1&O&&(e.\u0275\u0275text(0),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementStart(2,"span",7),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()),2&O){const w=e.\u0275\u0275nextContext(2).$implicit,B=e.\u0275\u0275nextContext(2);e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(1,2,w.shortName,B.lang),""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(w.counter)}}function h(O,L){if(1&O){const w=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(w);const _=e.\u0275\u0275nextContext().$implicit,y=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(y.changeTab(_))}),e.\u0275\u0275template(1,a,3,4,"ng-container",5),e.\u0275\u0275template(2,u,4,5,"ng-template",null,6,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()}if(2&O){const w=e.\u0275\u0275reference(3),B=e.\u0275\u0275nextContext(),_=B.$implicit,y=B.index;e.\u0275\u0275classProp("active",_.chosen),e.\u0275\u0275attribute("data-qa","1673282876867"+y),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!_.counter)("ngIfElse",w)}}function l(O,L){if(1&O&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,h,4,5,"div",3),e.\u0275\u0275elementContainerEnd()),2&O){const w=L.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",w.shortName.length)}}function m(O,L){if(1&O&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,l,2,1,"ng-container",2),e.\u0275\u0275elementEnd()),2&O){const w=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",w.TABS)}}class x{constructor(){this.TABS=[],this.tabClick=new e.EventEmitter}changeTab(L){this.tabClick.emit(L)}static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:x,selectors:[["app-sbp-row-buttons"]],inputs:{TABS:"TABS"},outputs:{tabClick:"tabClick"},decls:1,vars:1,consts:[["class","performed-buttons",4,"ngIf"],[1,"performed-buttons"],[4,"ngFor","ngForOf"],["class","button",3,"active","click",4,"ngIf"],[1,"button",3,"click"],[4,"ngIf","ngIfElse"],["hasCounter",""],[1,"button__counter"]],template:function(w,B){1&w&&e.\u0275\u0275template(0,m,2,1,"div",0),2&w&&e.\u0275\u0275property("ngIf",B.TABS.length)},dependencies:[d.sg,d.O5,i.X$],styles:['@charset "UTF-8";.performed-buttons[_ngcontent-%COMP%]{display:flex}.button[_ngcontent-%COMP%]{padding:13px 33px;border:1px solid #88909b;cursor:pointer;color:#88909b;font-size:14px;line-height:19px;display:inline-block;margin:-1px 0 0 -1px}.button[_ngcontent-%COMP%]:not(:last-of-type){border-right:none}.button__counter[_ngcontent-%COMP%]{margin-left:8px;border-radius:16px;background:#E0E6FC;width:25px;display:inline-block;height:20px;align-items:center;text-align:center}.button[_ngcontent-%COMP%]:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.button[_ngcontent-%COMP%]:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.button.active[_ngcontent-%COMP%]{color:#2f54eb;border:1px solid #2f54eb;font-weight:600;z-index:20}']})}(0,n.gn)([(0,i.SQ)()],x.prototype,"lang",void 0)},46382:(Ee,Q,t)=>{"use strict";t.d(Q,{u:()=>a});var n=t(94650),e=t(36895);function i(u,h){if(1&u&&(n.\u0275\u0275elementStart(0,"div",2)(1,"h3",3),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div",4)(4,"span",5),n.\u0275\u0275text(5),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"span",6),n.\u0275\u0275text(7),n.\u0275\u0275elementEnd()()()),2&u){const l=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(l.step.caption),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(l.step.step),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(l.step.text)}}function d(u,h){if(1&u&&(n.\u0275\u0275elementStart(0,"div",7)(1,"span",8),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div",9)(4,"h3",3),n.\u0275\u0275text(5),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"span",6),n.\u0275\u0275text(7),n.\u0275\u0275elementEnd()()()),2&u){const l=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(l.step.step),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(l.step.caption),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(l.step.text)}}let a=(()=>{class u{constructor(){this.isShift=!1}static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:u,selectors:[["app-sbp-step-card"]],inputs:{step:"step",isShift:"isShift"},decls:2,vars:2,consts:[["class","sbp-step",4,"ngIf"],["class","sbp-step sbp-step--shift",4,"ngIf"],[1,"sbp-step"],[1,"sbp-step__header"],[1,"sbp-step__text-block"],[1,"sbp-step__num"],[1,"sbp-step__text"],[1,"sbp-step","sbp-step--shift"],[1,"sbp-step__num","sbp-step__num--shift"],[1,"sbp-step__text-block","sbp-step__text-block--shift"]],template:function(m,x){1&m&&(n.\u0275\u0275template(0,i,8,3,"div",0),n.\u0275\u0275template(1,d,8,3,"div",1)),2&m&&(n.\u0275\u0275property("ngIf",!x.isShift),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",x.isShift))},dependencies:[e.O5],styles:[".sbp-step[_ngcontent-%COMP%]{display:flex;font-family:Open Sans,sans-serif;max-width:340px;flex-grow:1;flex-direction:column}.sbp-step--shift[_ngcontent-%COMP%]{flex-direction:row}.sbp-step__text-block[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.sbp-step__text-block--shift[_ngcontent-%COMP%]{flex-direction:column}.sbp-step__num[_ngcontent-%COMP%]{font-style:normal;font-weight:800;font-size:48px;line-height:40px;color:#dedede;margin-right:12px}.sbp-step__num--shift[_ngcontent-%COMP%]{display:flex;align-items:end}.sbp-step__header[_ngcontent-%COMP%]{font-style:normal;color:#000;margin:0 0 4px;font-weight:700;font-size:18px;line-height:25px}.sbp-step__text[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#080708}"],changeDetection:0})}return u})()},10992:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>d});var n=t(97582),e=t(16611),i=t(94650);class d{constructor(){this.title=""}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:d,selectors:[["app-sbp-title"]],inputs:{title:"title"},decls:3,vars:4,consts:[[1,"sbp-title"]],template:function(h,l){1&h&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&h&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(2,1,l.title,l.lang)))},dependencies:[e.X$],styles:[".sbp-title[_ngcontent-%COMP%]{display:flex;align-items:center;flex-grow:1;font-weight:700;font-size:22px;line-height:30px;color:#000;margin:0;padding:0 0 24px;font-family:Open Sans,sans-serif}"]})}(0,n.gn)([(0,e.SQ)()],d.prototype,"lang",void 0)},52498:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>h});var n=t(97582),e=t(16611),i=t(94650),d=t(36895),a=t(60251);function u(l,m){1&l&&i.\u0275\u0275element(0,"app-sbp-info-card",2),2&l&&i.\u0275\u0275property("card",m.$implicit)}class h{constructor(){this.CARDS=[]}static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:h,selectors:[["app-sbp-who-suitable-tab"]],inputs:{CARDS:"CARDS"},decls:2,vars:1,consts:[[1,"sbp-cards"],["class","sbp-cards__card",3,"card",4,"ngFor","ngForOf"],[1,"sbp-cards__card",3,"card"]],template:function(x,O){1&x&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,u,1,1,"app-sbp-info-card",1),i.\u0275\u0275elementEnd()),2&x&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",O.CARDS))},dependencies:[d.sg,a.F],styles:[".sbp-cards[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.sbp-cards__card[_ngcontent-%COMP%]{display:flex}"]})}(0,n.gn)([(0,e.SQ)()],h.prototype,"lang",void 0)},6582:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>_});var n=t(97582),e=t(94650),i=t(16611),d=t(17489),u=t(57460),h=t(36895),l=t(97392);function m(y,$){if(1&y&&e.\u0275\u0275element(0,"mat-icon",9),2&y){const C=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("svgIcon",C.config.icon)}}function x(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div")(1,"b"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&y){const C=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(C.config.title)}}function O(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&y){const C=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",C.isOpened?e.\u0275\u0275pipeBind2(2,1,"Roll up",C.lang):e.\u0275\u0275pipeBind2(3,4,"Learn more",C.lang)," ")}}function L(y,$){1&y&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275projection(1),e.\u0275\u0275elementContainerEnd())}function w(y,$){if(1&y){const C=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1)(1,"div",2),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(C);const j=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(j.openChange())}),e.\u0275\u0275elementStart(2,"div",3),e.\u0275\u0275template(3,m,1,1,"mat-icon",4),e.\u0275\u0275elementStart(4,"div",5),e.\u0275\u0275template(5,x,3,1,"div",6),e.\u0275\u0275element(6,"span",7),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(7,O,4,7,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,L,2,0,"ng-container",6),e.\u0275\u0275elementEnd()}if(2&y){const C=e.\u0275\u0275nextContext();e.\u0275\u0275classMap("spb-notification "+C.config.cssClass),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("cursor",C.config.isExpandable?"pointer":"default"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",C.config.icon),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",C.config.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",C.text,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",C.config.isExpandable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",C.isOpened)}}const B=["*"];class _{constructor(){this.NOTIFICATION_CONFIG=u._t,this.isOpened=!1,this.sendIsOpened=new e.EventEmitter,this.isQRPayment=!1}set type($){this.config=this.NOTIFICATION_CONFIG.find(C=>C.type===$)}set customConfig($){this.config=$}set valueForCustomConfig($){this.config.value=$}get text(){return this.config?.value?(0,d.isArray)(this.config.value)?this.replaceValue(this.config.text,this.config.value):`${this.config.text} <b>${this.config.value}</b>`:this.isQRPayment&&this.config.type===u.tx.SUCCESS?"\u0421\u0435\u0440\u0432\u0438\u0441 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d.":this.config.text}openChange(){this.config.isExpandable&&(this.isOpened=!this.isOpened,this.sendIsOpened.emit(this.isOpened))}replaceValue($,C){return $.replace(/\{(\d+)}/g,(T,j)=>{const I=parseInt(j,10);return`<b>${C[I]}</b>`})}static#e=this.\u0275fac=function(C){return new(C||_)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:_,selectors:[["app-spb-notification"]],inputs:{isOpened:"isOpened",isQRPayment:"isQRPayment",type:"type",customConfig:"customConfig",valueForCustomConfig:"valueForCustomConfig"},outputs:{sendIsOpened:"sendIsOpened"},ngContentSelectors:B,decls:1,vars:1,consts:[["class","spb-notification__flex",3,"class",4,"ngIf"],[1,"spb-notification__flex"],[1,"spb-notification__wrap",3,"click"],[1,"spb-notification__main"],["class","spb-notification__icon",3,"svgIcon",4,"ngIf"],[1,"spb-notification__content"],[4,"ngIf"],[1,"spb-notification__text",3,"innerHTML"],["class","spb-notification__btn-expand",4,"ngIf"],[1,"spb-notification__icon",3,"svgIcon"],[1,"spb-notification__btn-expand"]],template:function(C,T){1&C&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,w,9,9,"div",0)),2&C&&e.\u0275\u0275property("ngIf",T.config)},dependencies:[h.O5,l.Hw,i.X$],styles:['@charset "UTF-8";.spb-notification[_ngcontent-%COMP%]{border-radius:4px;height:-moz-fit-content;height:fit-content;display:flex;font-family:Open Sans,sans-serif;font-style:normal;font-size:14px;color:#444;font-weight:600;line-height:20px}.spb-notification__wrap[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;align-items:center;padding:16px}@media screen and (max-width: 768px){.spb-notification__wrap[_ngcontent-%COMP%]{padding:16px 12px}}.spb-notification__btn-expand[_ngcontent-%COMP%]{font-weight:600}@media screen and (max-width: 768px){.spb-notification__btn-expand[_ngcontent-%COMP%]{display:none}}.spb-notification__main[_ngcontent-%COMP%]{display:flex;align-items:center}.spb-notification__flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.spb-notification.success[_ngcontent-%COMP%]{color:#00a843;background:rgba(0,168,67,.15)}.spb-notification.info[_ngcontent-%COMP%]{background-color:#f1f2f2;color:#70b6f6}.spb-notification.error[_ngcontent-%COMP%]{background-color:#e2342826;color:#e23428}.spb-notification.bold[_ngcontent-%COMP%]{font-weight:600}.spb-notification.green[_ngcontent-%COMP%]{border:1px solid var(--borders-green, #00a843);background:var(--background-green, #00a843)}.spb-notification__text[_ngcontent-%COMP%]{color:#444}.spb-notification.light-blue[_ngcontent-%COMP%]{border:1px solid #70B6F6;border-radius:4px;background:rgba(112,182,246,.15)}.spb-notification.light-blue.fw400[_ngcontent-%COMP%]{font-weight:400}.spb-notification.success-outlined[_ngcontent-%COMP%]{border:1px solid #00a843;background:rgba(0,168,67,.15)}.spb-notification.success-outlined.fw400[_ngcontent-%COMP%]{font-weight:400}.spb-notification.gray[_ngcontent-%COMP%]{border:1px solid #88909b;border-radius:4px;background:#f1f2f2}.spb-notification.gray.fw400[_ngcontent-%COMP%]{font-weight:400}.spb-notification.registry-loaded[_ngcontent-%COMP%]{border:1px solid #00A843;border-radius:4px;background:#D9F2E3}.spb-notification.registry-loaded.fw400[_ngcontent-%COMP%]{font-weight:400}.spb-notification__icon[_ngcontent-%COMP%]{margin-right:12px;min-width:20px;max-width:20px;height:20px}.spb-notification__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px}'],changeDetection:0})}(0,n.gn)([(0,i.SQ)()],_.prototype,"lang",void 0)},57460:(Ee,Q,t)=>{"use strict";t.d(Q,{Xi:()=>a,_t:()=>d,tx:()=>e,wh:()=>i});var n=t(22431),e=(()=>{return(u=e||(e={})).ERROR="error",u.SUCCESS="success",u.PENDING="pending",u.SIGNING="signing",e;var u})();const i={[n.c.PENDING]:e.PENDING,[n.c.SUCCESS]:e.SUCCESS,[n.c.CANCELED]:e.ERROR,[n.c.PART_SIGN]:e.SIGNING},d=[{type:e.PENDING,icon:"pending",text:"\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0411\u0430\u043d\u043a. \u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438",backgroundColor:"#F1F2F2",cssClass:"info"},{type:e.SUCCESS,icon:"mark",text:"\u0421\u0435\u0440\u0432\u0438\u0441 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d. \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b",backgroundColor:"#00a84326",cssClass:"success bold"},{type:e.ERROR,icon:"error",text:"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443 8 (800) 500-81-97",backgroundColor:"#e2342826",cssClass:"error bold"},{type:e.SIGNING,icon:"pending",text:"\u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0411\u0430\u043d\u043a, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c",backgroundColor:"#F1F2F2",cssClass:"info bold"}],a="https://kontur.ru/elba?p=w27095&SUBID=dbometib"},53886:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>n});var n=(()=>{return(e=n||(n={})).MEMORIAl_ORDER="\u041c\u0435\u043c\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0440\u0434\u0435\u0440",e.BANK_ORDER="\u0411\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0439 \u043e\u0440\u0434\u0435\u0440",e.PAYMENT="\u041f\u043b\u0430\u0442\u0435\u0436",e.REGISTRY="\u0420\u0435\u0435\u0441\u0442\u0440",n;var e})()},22431:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>e,c:()=>n});var n=(()=>{return(i=n||(n={})).CANCELED="canceled",i.SUCCESS="success",i.PENDING="pending",i.NEW="new",i.PART_SIGN="part_sign",n;var i})(),e=(()=>{return(i=e||(e={})).CONNECT="Connect",i.SENT="Sent",i.CONTINUE_SIGNING="Continue signing",i.GO_TO_SERVICE="Go to service",e;var i})()},50807:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>I});var n=t(36895),e=t(97392),i=t(34982),d=t(37413),a=t(74471),u=t(54215),C=(t(53342),t(43544),t(14402),t(60251),t(41524),t(81831),t(5432),t(46382),t(10992),t(52498),t(6582),t(4650)),T=t(94650);let I=(()=>{class F{static#e=this.\u0275fac=function(p){return new(p||F)};static#t=this.\u0275mod=T.\u0275\u0275defineNgModule({type:F});static#n=this.\u0275inj=T.\u0275\u0275defineInjector({imports:[n.ez,u.m,d.D,a.h,e.Ps,i.i,C.x]})}return F})()},67887:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>u});var n=t(61135),e=t(54004),i=t(94650),d=t(3751),a=t(40929);let u=(()=>{class h{constructor(m,x){this.apiService=m,this.documentService=x,this.currentSbpPageIndex$=new n.X(0),this.itemsPerPage$=new n.X(5),this.pendingAgreementId$=new n.X(null)}get itemsPerPage(){return this.itemsPerPage$.getValue()}get currentPageIndex(){return this.currentSbpPageIndex$.getValue()}getRegistriesList(m){const x={pageIndex:this.currentPageIndex,count:this.itemsPerPage};return m&&0!==Object.keys(m).length&&(x.filter=m),this.apiService.post("sbp_salary_transfer/last/document",x)}getRegistryById(m){return this.apiService.post("sbp_salary_transfer/document/get/by/id",{id:m})}postAgreement(){return this.apiService.post("sbp_salary_transfer/create",{})}postSbpPayment(m){return this.apiService.post("document/salary/create",m)}postSbpPaymentUpdate(m){return this.apiService.post("sbp_salary_transfer/document/update/header",m)}postRegistrySbpDelete(m){return this.apiService.post("sbp_salary_transfer/document/delete",{id:m})}getRegistryDocsById(m){return this.apiService.post("sbp_salary_transfer/document/get/pay/info",{id:m})}getXML(m){return this.apiService.post("sbp_salary_transfer/document/1c/xml/file",{id:m},null,"blob").pipe((0,e.U)(x=>new Blob([x],{type:"text/xml"})))}getPaymentBasis(m){return this.apiService.get("dictionary/revenue/type",m?{code:m}:null)}getAgreementStatus(){return this.apiService.get("document/dictionary?doc_module=ibankul&doc_type=salary_sbp_agreement")}uploadRegistry(m){const x=new Headers;return x.set("Content-Type","applications/xls"),this.apiService.post("sbp_salary_transfer/import/document",m,x)}getSigningDoc(m,x,O){return this.documentService.getDocumentById(m,x,O)}static#e=this.\u0275fac=function(x){return new(x||h)(i.\u0275\u0275inject(d.s),i.\u0275\u0275inject(a.Z))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},82350:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>m});var n=t(61135),e=t(22431),i=t(18545),d=t(94650),a=t(98504),u=t(9149),h=t(67887),l=t(16611);let m=(()=>{class x{constructor(L,w,B,_){this.currencyPipe=L,this.toast=w,this.sbpApiService=B,this.translation=_,this.STATUS_TEXT=e.I,this.SBP_STATUS=e.c,this.STATUS_AND_NOTIFICATION=i.wh,this.REGISTRY_STATUSES=i.lG,this.REGISTRY_STATUSES_COLOR=i.H,this.registryDocument$=new n.X(null),this.partialSigningSbpAgreementId$=new n.X(null),this.contractDataSbp$=new n.X(null),this.sbpConnectionStatus$=new n.X(e.c.NEW),this.isDraftCreation$=new n.X(!1)}getTableNameFull(L,w,B,_,y){return this.translation.translate("Registry sum",{sum:this.currencyPipe.transform(B),currency:_,length:y})}getTableNameShort(L,w){return this.translation.translate("Payroll registry {{number}} since {{date}}",{number:L,date:w})}getPayrollInfo(L,w){return this.translation.translate("Transfer according to the salary register No. {{number}} from {{date}}",{number:L,date:w})}getBtnConnectionText(L){switch(L){case this.SBP_STATUS.SUCCESS:return this.STATUS_TEXT.GO_TO_SERVICE;case this.SBP_STATUS.NEW:return this.STATUS_TEXT.CONNECT;case this.SBP_STATUS.PENDING:case this.SBP_STATUS.CANCELED:return this.STATUS_TEXT.SENT;case this.SBP_STATUS.PART_SIGN:return this.STATUS_TEXT.CONTINUE_SIGNING;default:return this.STATUS_TEXT.CONNECT}}getStatusColor(L){switch(L){case this.REGISTRY_STATUSES.IN_PROCESSING:case this.REGISTRY_STATUSES.SIGNED:return this.REGISTRY_STATUSES_COLOR.BLUE;case this.REGISTRY_STATUSES.ENDED:return this.REGISTRY_STATUSES_COLOR.GREEN;case this.REGISTRY_STATUSES.DECLINE:return this.REGISTRY_STATUSES_COLOR.RED;case this.REGISTRY_STATUSES.PARTIALLY_PERFORMED:return this.REGISTRY_STATUSES_COLOR.ORANGE;case this.REGISTRY_STATUSES.DRAFT:case this.REGISTRY_STATUSES.PARTIALLY_SIGNED:case this.REGISTRY_STATUSES.NEW:return this.REGISTRY_STATUSES_COLOR.GRAY;default:return this.REGISTRY_STATUSES_COLOR.BLACK}}setRegistryDocument(L){this.registryDocument$.next(L)}errorHandle(L){L?L.message?this.toast.show(L.message,"error","Error"):L.errorText?this.toast.show(L.errorText,"error","Error"):L.errors&&L.errors.forEach(w=>{this.toast.show(w,"error")}):this.toast.show(this.translation.translate("Loading error"),"error")}getNotification(L){return this.STATUS_AND_NOTIFICATION[L]}downloadXML(L,w){this.sbpApiService.getXML(L).subscribe(B=>{const _=URL.createObjectURL(B),y=document.createElementNS("http://www.w3.org/1999/xhtml","a");y.setAttribute("href",_),y.style.cssText="display: none",y.download=w,document.body.appendChild(y),y.addEventListener("click",()=>{document.body.removeChild(y)}),y.click()})}static#e=this.\u0275fac=function(w){return new(w||x)(d.\u0275\u0275inject(a.H),d.\u0275\u0275inject(u.j),d.\u0275\u0275inject(h.Y),d.\u0275\u0275inject(l.D7))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},18545:(Ee,Q,t)=>{"use strict";t.d(Q,{Gg:()=>i,H:()=>h,OH:()=>w,Ss:()=>a,Vw:()=>O,kX:()=>x,lG:()=>u,nM:()=>d,oj:()=>l,uv:()=>L,wh:()=>m});var n=t(57460),e=t(22431);const i=[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],d=[{caption:"\u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u043d\u043b\u0430\u0439\u043d",text:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u0432\u044b\u043f\u043b\u0430\u0442\u0430 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u044b \u0431\u0435\u0437 \u0432\u0438\u0437\u0438\u0442\u0430 \u0432 \u0411\u0430\u043d\u043a",svg:"computer"},{caption:"\u0418\u043c\u043f\u043e\u0440\u0442 \u0440\u0435\u0435\u0441\u0442\u0440\u0430",text:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u0437\u0430 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a",svg:"registry"},{caption:"\u0411\u044b\u0441\u0442\u0440\u043e\u0435 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435",text:"\u0417\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u044b \u0447\u0435\u0440\u0435\u0437 5 \u043c\u0438\u043d\u0443\u0442 \u0432 \u043b\u044e\u0431\u043e\u0439 \u0431\u0430\u043d\u043a",svg:"timer"}],a=[{step:1,caption:"\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u044f\u0432\u043a\u0443",text:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 1 \u0434\u043d\u044f"},{step:2,caption:"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0440\u0435\u0435\u0441\u0442\u0440",text:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u0440\u0435\u0435\u0441\u0442\u0440\u0430, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a \u043e\u043f\u043b\u0430\u0442\u0435"},{step:3,caption:"\u041f\u043e\u0434\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0435\u0436",text:"\u041f\u043e\u0434\u043f\u0438\u0448\u0438\u0442\u0435 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u0432 \u0431\u0430\u043d\u043a \u0440\u0435\u0435\u0441\u0442\u0440 \u0438 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0435 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432"}];var u=(()=>{return(B=u||(u={})).DECLINE="\u041e\u0442\u043a\u0430\u0437\u0430\u043d",B.IN_PROCESSING="\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435",B.IN_EXEQUTION="\u041d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438",B.ENDED="\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d",B.DRAFT="\u0427\u0435\u0440\u043d\u043e\u0432\u0438\u043a",B.SIGNED="\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d",B.NEW="\u041d\u043e\u0432\u044b\u0439",B.PARTIALLY_SIGNED="\u0427\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d",B.PARTIALLY_PERFORMED="\u0427\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d",B.ERROR="\u041e\u0448\u0438\u0431\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0435\u0435\u0441\u0442\u0440\u0430",u;var B})(),h=(()=>{return(B=h||(h={})).BLACK="black",B.BLUE="blue",B.GREEN="green",B.RED="red",B.ORANGE="orange",B.GRAY="gray",h;var B})();const l=new Map([["\u042f\u043d\u0432\u0430\u0440\u044c","\u041c\u0421.01"],["\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0421.02"],["\u041c\u0430\u0440\u0442","\u041c\u0421.03"],["\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0421.04"],["\u041c\u0430\u0439","\u041c\u0421.05"],["\u0418\u044e\u043d\u044c","\u041c\u0421.06"],["\u0418\u044e\u043b\u044c","\u041c\u0421.07"],["\u0410\u0432\u0433\u0443\u0441\u0442","\u041c\u0421.08"],["\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041c\u0421.09"],["\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041c\u0421.10"],["\u041d\u043e\u044f\u0431\u0440\u044c","\u041c\u0421.11"],["\u0414\u0435\u043a\u0430\u0431\u0440\u044c","\u041c\u0421.12"],["1 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","\u041a\u0412.01"],["2 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","\u041a\u0412.02"],["3 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","\u041a\u0412.03"],["4 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","\u041a\u0412.04"],["1 \u043f\u043e\u043b\u0443\u0433\u043e\u0434\u0438\u0435","\u041f\u041b.01"],["2 \u043f\u043e\u043b\u0443\u0433\u043e\u0434\u0438\u0435","\u041f\u041b.02"],["\u0413\u043e\u0434","\u0413\u0414.00"]]),m={[e.c.PENDING]:n.tx.PENDING,[e.c.SUCCESS]:n.tx.SUCCESS,[e.c.CANCELED]:n.tx.ERROR,[e.c.PART_SIGN]:n.tx.SIGNING},x=[{label:"All statuses",value:"All statuses",chosen:!0,all:!0},{label:"In processing",value:u.IN_PROCESSING,chosen:!0},{label:"Decline",value:u.DECLINE,chosen:!0},{label:"Fulfilled",value:u.ENDED,chosen:!0},{label:"Drafts",value:u.DRAFT,chosen:!0},{label:"Partially signed",value:u.PARTIALLY_SIGNED,chosen:!0},{label:"Partially performed",value:u.PARTIALLY_PERFORMED,chosen:!0}],O="ROLE_SBPZP";var L=(()=>{return(B=L||(L={})).FIRST="1",B.SECOND="2",B.THIRD="3",L;var B})();const w=[{name:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0440\u0435\u0435\u0441\u0442\u0440\u0430",stepNumberStr:L.FIRST},{name:"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u043d\u0430 \u0432\u044b\u043f\u043b\u0430\u0442\u0443",stepNumberStr:L.SECOND},{name:"\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0431\u0430\u043d\u043a",stepNumberStr:L.THIRD}]},70332:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>d});var n=t(61135),e=t(49310),i=t(94650);let d=(()=>{class a{constructor(){this.isButtonClick=new n.X(!1),this.tab=new n.X(""),this.subTab=new n.X(""),this.actionType=new n.X(""),this.operationSign=new n.X(e.j.Plus)}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},92054:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>u});var n=t(39646),e=t(54004),i=t(94650),d=t(81300),a=t(44180);let u=(()=>{class h{constructor(m,x){this.serverSettings=m,this.router=x}canActivate(m,x){const O=m.data.allowedCommonServices;return O&&Array.isArray(O)?this.serverSettings.getBooleanSettings(this.serverSettings.servicesCommon,O).pipe((0,e.U)(L=>{if(null===L)return!0;let w=!1;return O.forEach(B=>{w||(w=L[B])}),w||this.router.navigate(["/"]),w})):(0,n.of)(!0)}static#e=this.\u0275fac=function(x){return new(x||h)(i.\u0275\u0275inject(d.l),i.\u0275\u0275inject(a.F0))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac})}return h})()},39292:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>u});var n=t(39646),e=t(54004),i=t(94650),d=t(81300),a=t(44180);let u=(()=>{class h{constructor(m,x){this.serverSettings=m,this.router=x}canActivate(m,x){const O=m.data.allowedCurrServices;return O&&Array.isArray(O)?this.serverSettings.getBooleanSettings(this.serverSettings.servicesULCurr,O).pipe((0,e.U)(L=>{if(null===L)return!0;let w=!1;return O.forEach(B=>{w||(w=L[B])}),w||this.router.navigate(["/"]),w})):(0,n.of)(!0)}static#e=this.\u0275fac=function(x){return new(x||h)(i.\u0275\u0275inject(d.l),i.\u0275\u0275inject(a.F0))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac})}return h})()},80534:(Ee,Q,t)=>{"use strict";t.d(Q,{w:()=>m});var n=t(39646),e=t(63900),i=t(54244),d=t(54004),a=t(94650),u=t(81300),h=t(44180),l=t(92008);let m=(()=>{class x{constructor(L,w,B){this.serverSettings=L,this.router=w,this.appConfigService=B}canActivate(L,w){let B=L.data.allowedServices;return B&&Array.isArray(B)?(-1!==w.url.indexOf("/sbp-qr/qr-payment")&&B.find(_=>"OTHER/QR_PAYMENTS"===_)&&(B=B.filter(_=>"OTHER/QR_PAYMENTS"!==_)),this.appConfigService.settings$.pipe((0,i.n)(_=>!_.isLoaded),(0,e.w)(()=>this.serverSettings.getBooleanSettings(this.serverSettings.servicesUL,B)),(0,d.U)(_=>{if(null===_)return!0;let y=!1;return B.forEach($=>{y||"SERVICE_SECTIONS/PRODUCTS"===$?"SERVICE_SECTIONS/PRODUCTS"===$&&(y=Object.values(_).every(C=>!0===C)):y=_[$]}),y||this.router.navigate(["/"]),y}))):(0,n.of)(!0)}static#e=this.\u0275fac=function(w){return new(w||x)(a.\u0275\u0275inject(u.l),a.\u0275\u0275inject(h.F0),a.\u0275\u0275inject(l._))};static#t=this.\u0275prov=a.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac})}return x})()},3751:(Ee,Q,t)=>{"use strict";t.d(Q,{s:()=>L,t:()=>O});var n=t(62843),e=t(70262),i=t(54004),d=t(94813),a=t(63900),u=t(18505),h=t(94650),l=t(80529),m=t(15644),x=t(9149);const O=["404","500"];let L=(()=>{class w{constructor(_,y,$){this.httpClient=_,this.configUtilService=y,this.toast=$,this.errorChecking=C=>C.pipe((0,e.K)(T=>(0,n._)(T.error&&(T.error.errorText||T.error.errorCode)?T.error:T)),(0,i.U)(T=>{if(T&&(T.errorCode||T.errorText))throw T;return T}))}publicGet(_){return this.configUtilService.getConfigs().pipe((0,d.j)("pubURL2"),(0,a.w)(y=>this.httpClient.get(`${y}json?service=${_}`,{withCredentials:!0})),this.errorChecking)}getListDocuments(_){return this.post("document/list",_)}publicGetDefault(_,y,$="pubURL"){return this.configUtilService.getConfigs().pipe((0,d.j)($),(0,a.w)(C=>this.httpClient.get(`${C}${_}`,{withCredentials:!0,...y})),this.errorChecking)}get(_,y,$){return this.configUtilService.getConfigs().pipe((0,d.j)("persURL"),(0,a.w)(C=>this.httpClient.get(`${C}${_}`,{params:y,withCredentials:!0,responseType:$})),this.errorChecking)}post(_,y,$=null,C){return this.configUtilService.getConfigs().pipe((0,d.j)("persURL"),(0,a.w)(T=>this.httpClient.post(`${T}${_}`,y,{params:$,withCredentials:!0,responseType:C})),this.errorChecking)}logPost(_,y){return this.configUtilService.getConfigs().pipe((0,d.j)("pubURL"),(0,a.w)($=>this.httpClient.post(`${$}${_}`,y,{withCredentials:!0})),this.errorChecking)}put(_,y){return this.configUtilService.getConfigs().pipe((0,d.j)("persURL"),(0,a.w)($=>this.httpClient.put(`${$}${_}`,y,{withCredentials:!0})),this.errorChecking)}delete(_,y){return this.configUtilService.getConfigs().pipe((0,d.j)("persURL"),(0,a.w)($=>this.httpClient.delete(`${$}${_}`,{withCredentials:!0,...y?{body:y}:{}})),this.errorChecking)}getDocument(_){return this.configUtilService.getConfigs().pipe((0,d.j)("persURL"),(0,a.w)(y=>this.httpClient.get(`${y}${_}`,{withCredentials:!0,responseType:"blob"}).pipe((0,u.b)($=>URL.createObjectURL($)))))}getServerState(){return this.get("work_days/check/day_with_current_time")}getIsWorkingHoursHandler(_){return"boolean"==typeof _&&!1!==_||(this.toast.show("This service is available from 9.00 to 18.00 (Moscow time) on weekdays","error"),!1)}static#e=this.\u0275fac=function(y){return new(y||w)(h.\u0275\u0275inject(l.eN),h.\u0275\u0275inject(m.Pj),h.\u0275\u0275inject(x.j))};static#t=this.\u0275prov=h.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac})}return w})()},92008:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>ct});var n=t(77579),e=t(61135),i=t(4128),d=t(39646),a=t(70262),u=t(39300),h=t(95698),l=t(54004),m=t(6146),x=t(30723),w=t(22431),B=t(94650),_=t(81300),y=t(37601),$=t(95404),C=t(90042),T=t(67887),j=t(3480),I=t(94955),F=t(26359),z=t(76751),X=t(75885),p=t(29198),P=t(21798),E=t(15225),R=t(87834),ne=t(3751),G=t(9149);let ce=(()=>{class pe{constructor(U,H){this.apiService=U,this.toastCustomService=H}getPersonalManagerInfo(){return this.apiService.get("info/personal_manager").pipe((0,a.K)(U=>(this.toastCustomService.errorHandle(U),(0,d.of)({fio:null,phone:null,email:null}))))}static#e=this.\u0275fac=function(H){return new(H||pe)(B.\u0275\u0275inject(ne.s),B.\u0275\u0275inject(G.j))};static#t=this.\u0275prov=B.\u0275\u0275defineInjectable({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})();var xe=t(502),we=t(86094),Ge=t(21898);let ct=(()=>{class pe{constructor(U,H,Z,oe,Pe,Ie,pt,Ht,Wt,Xe,Qe,Be,at,lt,Dt,Yt,Tt,ot){this.serverSettings=U,this.userDataService=H,this.risdaService=Z,this.tariffsNewService=oe,this.sbpApiService=Pe,this.treasuryService=Ie,this.sbpQrApiService=pt,this.sbpQrService=Ht,this.mailService=Wt,this.lastOperationService=Xe,this.vedService=Qe,this.averageBalancesService=Be,this.acquiringSoftPosApiApiService=at,this.acquiringHardPosApiApiService=lt,this.contactBankService=Dt,this.cardIndexService=Yt,this.supportVedApiService=Tt,this.supportVedService=ot,this.getSettings$=new n.x,this.settings$=new e.X({commonSettings:{},currSettings:{},ulSettings:{},hasRisda:!1,depositAgreement:!1,roles:new Set,isDboBlocking:!1,isLoaded:!1,isSbpConnected:!1,hasNoTspStatement:!1,partiallyBlock:null,blockedAccountsInfo:!1,hasAcquiringSoftPOSDoc:!1,hasAcquiringHardPOSDoc:!1,averageBalancesBlocks:null,personalManagerInfo:null}),this.isRoleOnlyEmail$=new e.X(!1),this.getSettings$.subscribe(()=>{this.getSetting()}),this.settings$.subscribe(Gt=>{const wt=Gt.roles.has(x.h1);wt!==this.isRoleOnlyEmail$.getValue()&&this.isRoleOnlyEmail$.next(wt)})}get settings(){return this.settings$.getValue()}setQrAgreementStatus(U){let H=null;this.sbpQrService.partialSigningSbpQrAgreementId$.next(H),this.sbpQrService.contractDataSbpQr$.next(H),U&&U.docId&&(H=U.docId),H&&(U.statusAgreement===w.c.PART_SIGN&&this.sbpQrService.partialSigningSbpQrAgreementId$.next(H),U.statusAgreement===w.c.SUCCESS&&this.sbpQrService.contractDataSbpQr$.next({id:H,docType:m.o.SalarySbpQrAgreement}))}setQrPaymentAgreementStatus(U){let H=null;this.sbpQrService.partialSigningSbpQrPaymentAgreementId$.next(H),this.sbpQrService.contractDataSbpQrPayment$.next(H),U&&U.docId&&(H=U.docId),H&&(U.statusAgreement===w.c.PART_SIGN&&this.sbpQrService.partialSigningSbpQrPaymentAgreementId$.next(H),U.statusAgreement===w.c.SUCCESS&&this.sbpQrService.contractDataSbpQrPayment$.next({id:H,docType:m.o.SbpQrPaymentAgreement}))}setQrAccountAgreementStatus(U){let H=null;this.sbpQrService.partialSigningSbpQrAccountAgreementId$.next(H),this.sbpQrService.contractDataSbpQrAccount$.next(H),U&&U.docId&&(H=U.docId),H&&(U.statusAgreement===w.c.PART_SIGN&&this.sbpQrService.partialSigningSbpQrAccountAgreementId$.next(H),U.statusAgreement===w.c.SUCCESS&&this.sbpQrService.contractDataSbpQrAccount$.next({id:H,docType:m.o.SbpQrAccountAgreement}))}setSupportVedService(U){let H=null;const Z=U?U.status:null,oe=U?.initialStatus||null;this.supportVedService.supportAgreementVed$.next(U),this.supportVedService.supportVedConnectionStatus$.next(Z),this.supportVedService.supportVedInitialStatus$.next(oe),this.supportVedService.partialSigningSupportVedAgreementId$.next(H),this.supportVedService.agreementDataSupportVed$.next(H),U&&U.docId&&(H=U.docId),H&&(U.status===w.c.PART_SIGN&&this.supportVedService.partialSigningSupportVedAgreementId$.next(H),U.status===w.c.SUCCESS&&this.supportVedService.agreementDataSupportVed$.next({id:H,docType:m.o.RequestVedSupport}))}getSetting(){this.userDataService.clearBlockingData(),this.vedService.checkPersonnalSupport(),this.averageBalancesService.initAverageBalances(),this.serverSettings.clearSettingsCache(),this.serverSettings.syncResource().subscribe(),this.cardIndexService.getCardIndexCounters().subscribe(),this.userDataService.getNotification().subscribe(),(0,i.D)({commonSettings:this.serverSettings.getResource(this.serverSettings.servicesCommon,!0).pipe((0,a.K)(()=>(0,d.of)(null))),currSettings:this.serverSettings.getResource("SERVICES/UL_CURR",!0).pipe((0,a.K)(()=>(0,d.of)(null))),ulSettings:this.serverSettings.getResource(this.serverSettings.servicesUL,!0).pipe((0,a.K)(()=>(0,d.of)(null))),roles:this.userDataService.getCurrentRoles().pipe((0,a.K)(()=>(0,d.of)(null))),hasRisda:this.risdaService.getRisdaAccess().pipe((0,a.K)(()=>(0,d.of)(null))),depositAgreement:this.treasuryService.getDepositAgreementAccess().pipe((0,a.K)(()=>(0,d.of)(null))),currentTariff:this.tariffsNewService.getCurrentTariff().pipe((0,a.K)(()=>(0,d.of)(null))),clientRights:this.userDataService.getClientRights(!0).pipe((0,a.K)(()=>(0,d.of)(null))),sbpStatus:this.sbpApiService.getAgreementStatus().pipe((0,a.K)(()=>(0,d.of)(null))),sbpQrStatus:this.sbpQrApiService.getAgreementStatus().pipe((0,a.K)(()=>(0,d.of)(null))),sbpQrPaymentStatus:this.sbpQrApiService.getAgreementStatus(!0).pipe((0,a.K)(()=>(0,d.of)(null))),sbpQrAccountStatus:this.sbpQrApiService.getAgreementAccountStatus().pipe((0,a.K)(()=>(0,d.of)(null))),supportVedStatus:this.supportVedApiService.getStatusSupportVed().pipe((0,a.K)(()=>(0,d.of)(null))),noTspStatement:this.sbpQrApiService.noTspStatement().pipe((0,a.K)(()=>(0,d.of)(null))),partiallyBlock:this.userDataService.partiallyBlockCheck().pipe((0,a.K)(()=>(0,d.of)(null))),hasNoTspStatement:this.sbpQrApiService.noTspStatement().pipe((0,a.K)(()=>(0,d.of)(null))),filterAdditionalStatus:this.lastOperationService.getAllAdditionalStatus().pipe((0,a.K)(()=>(0,d.of)(null))),blockedAccountsInfo:this.userDataService.getBlockedAccountsInfo().pipe((0,a.K)(()=>(0,d.of)(null))),hasAcquiringSoftPOSDoc:this.acquiringSoftPosApiApiService.hasAcquiringDoc().pipe((0,a.K)(()=>(0,d.of)(null))),hasAcquiringHardPOSDoc:this.acquiringHardPosApiApiService.hasAcquiringDoc().pipe((0,a.K)(()=>(0,d.of)(null))),personalManagerInfo:this.contactBankService.getPersonalManagerInfo().pipe((0,a.K)(()=>(0,d.of)(null))),averageBalancesBlocks:this.averageBalancesService.averageBalancesData$.pipe((0,u.h)(U=>null!==U),(0,h.q)(1),(0,l.U)(U=>({ecom:U.ecom.available,firstBlock:U.firstBlock.available,secondBlock:U.secondBlock.available,thirdBlock:U.thirdBlock.available,atLeastOneBlockAvailable:U.atLeastOneBlockAvailable}))),activeCompany:this.userDataService.activeCompany$.pipe((0,u.h)(U=>null!==U),(0,h.q)(1),(0,a.K)(()=>(0,d.of)(null)))}).subscribe(({commonSettings:U,currSettings:H,ulSettings:Z,roles:oe,hasRisda:Pe,depositAgreement:Ie,currentTariff:pt,clientRights:Ht,sbpStatus:Wt,sbpQrStatus:Xe,sbpQrPaymentStatus:Qe,sbpQrAccountStatus:Be,supportVedStatus:at,partiallyBlock:lt,hasNoTspStatement:Dt,blockedAccountsInfo:Yt,hasAcquiringSoftPOSDoc:Tt,hasAcquiringHardPOSDoc:ot,personalManagerInfo:Gt,averageBalancesBlocks:wt})=>{let Ze=!1;Wt&&Wt.statusDictionary&&(Ze=Wt.statusDictionary===w.c.SUCCESS,null!==Wt.docId&&Wt.statusDictionary===w.c.NEW||this.sbpApiService.pendingAgreementId$.next(Wt.docId));this.setQrAgreementStatus(Xe),this.setQrPaymentAgreementStatus(Qe),this.setQrAccountAgreementStatus(Be),this.setSupportVedService(at),this.tariffsNewService.isShowPackage$.next(pt&&pt.isShowPackage),this.settings$.next({commonSettings:U,currSettings:H,ulSettings:Z,roles:new Set(oe),hasRisda:Pe,depositAgreement:Ie,currentTariff:pt,isDboBlocking:!1,isLoaded:!0,clientRights:Ht,isSbpConnected:Ze,hasNoTspStatement:Dt,partiallyBlock:lt,blockedAccountsInfo:"1"===Yt?.retCode,hasAcquiringSoftPOSDoc:Tt,hasAcquiringHardPOSDoc:ot,personalManagerInfo:Gt,averageBalancesBlocks:wt})})}static#e=this.\u0275fac=function(H){return new(H||pe)(B.\u0275\u0275inject(_.l),B.\u0275\u0275inject(y.M),B.\u0275\u0275inject($.jp),B.\u0275\u0275inject(C.iY),B.\u0275\u0275inject(T.Y),B.\u0275\u0275inject(j.N),B.\u0275\u0275inject(I.J),B.\u0275\u0275inject(F.b),B.\u0275\u0275inject(z.Y),B.\u0275\u0275inject(X.o),B.\u0275\u0275inject(p.$),B.\u0275\u0275inject(P.J),B.\u0275\u0275inject(E.E),B.\u0275\u0275inject(R.j),B.\u0275\u0275inject(ce),B.\u0275\u0275inject(xe.$),B.\u0275\u0275inject(we.l),B.\u0275\u0275inject(Ge.R))};static#t=this.\u0275prov=B.\u0275\u0275defineInjectable({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})()},10092:(Ee,Q,t)=>{"use strict";t.d(Q,{F:()=>d});var n=t(61135),e=t(94650),i=t(39486);let d=(()=>{class a{constructor(h){this.productService=h,this._application=new n.X(null)}clear(){this._application.next(null)}fill(h){this._application.next(h)}get$(){return this._application.asObservable()}getValue(){return this._application.getValue()}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275inject(i.su))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac})}return a})()},36290:(Ee,Q,t)=>{"use strict";t.d(Q,{v:()=>a});var n=t(95698),e=t(94650),i=t(10092),d=t(29198);let a=(()=>{class u{constructor(l,m){this.applicationCurrencyExchange=l,this.vedService=m}fill(l){this.vedService.getCurrencyList().pipe((0,n.q)(1)).subscribe(m=>{const x={amountCredit:l.buyAmount,amountDebit:l.sellAmount,clientRequestRate:l.draftRate,docNumber:l.draftNumber&&"0"!==l.draftNumber?l.draftNumber:void 0,creditCurr:m.find(O=>O.code===l.buyCurrency).isoCode,debitCurr:m.find(O=>O.code===l.sellCurrency).isoCode,fixedRateId:l.fixedRateId,useClientCourse:l.useClientCourse,clientCourseIsSent:l.useClientCourse,courseClientApproved:l.useClientCourse,courseSuccessFixed:!l.useClientCourse,dealType:l.dealType};this.applicationCurrencyExchange.fill(x)})}static#e=this.\u0275fac=function(m){return new(m||u)(e.\u0275\u0275inject(i.F),e.\u0275\u0275inject(d.$))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac})}return u})()},46409:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>u});var n=t(66216),e=t(180);class i{static factory(l){return"sale"===l?new e.Y:["buy","factoring"].includes(l)?new n.a:void 0}}var d=t(94650),a=t(10092);let u=(()=>{class h{constructor(m){this.applicationCurrencyExchange=m}fill(m,x){const O=i.factory(x),L={amountCredit:m.creditAmount?m.creditAmount:O&&O.calculateCreditAmount(m.clientRate,m.debitAmount),amountDebit:m.debitAmount?m.debitAmount:O&&O.calculateDebitAmount(m.clientRate,m.creditAmount),creditCurr:m.creditIso,debitCurr:m.debitIso,clientRequestRate:m.clientRate,dealType:"BY_BANK"===m.fixedRateMode?"FromBank":"FromExchange",useClientCourse:!0,clientCourseIsSent:!0};this.applicationCurrencyExchange.fill(L)}static#e=this.\u0275fac=function(x){return new(x||h)(d.\u0275\u0275inject(a.F))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac})}return h})()},59449:(Ee,Q,t)=>{"use strict";t.d(Q,{L:()=>d});var n=t(61135),e=t(94650),i=t(3751);let d=(()=>{class a{constructor(h){this.apiService=h,this._attachmentSetup=new n.X(null),this.attachmentSetup$=this._attachmentSetup.asObservable()}getAttachmentSetup(){return this.apiService.get("metinv/attachment/setup")}setAttachmentSetup(h){this._attachmentSetup.next({fileMaxSize:+h.fileMaxSize,totalFileMaxSize:+h.totalFileMaxSize})}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275inject(i.s))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac})}return a})()},68753:(Ee,Q,t)=>{"use strict";t.d(Q,{e:()=>y});var n=t(80529),e=t(61135),i=t(39646),d=t(62843),a=t(54004),u=t(70262),h=t(63900),l=t(18505),m=t(94650),x=t(44180),O=t(37601),L=t(15644),w=t(38101),B=t(9149),_=t(65938);let y=(()=>{class ${constructor(T,j,I,F,z,X,p){this.httpClient=T,this.router=j,this.userDataService=I,this.configUtilService=F,this.modalService=z,this.toastCustomService=X,this.matDialog=p,this.pingTimeout=6e5,this._isCheckLoginFailed=!1,this.isLoggedIn$=new e.X(!1),this.isLoadingAuthorization$=new e.X(!1),this.loginPassLength=new e.X(!1),this.pingInterval=setInterval(()=>{this.makePing()},this.pingTimeout)}get isCheckLoginFailed(){return this._isCheckLoginFailed}makePing(){this.httpClient.post(`${this.configUtilService.adminConfig.persURL}ping`,{passwordExpiredOption:!0,userIdentityOption:!0,sessionExpirationTimeoutOption:!0,productTimeoutOption:!0},{withCredentials:!0,observe:"response"}).pipe((0,a.U)(j=>j),(0,u.K)(j=>(clearInterval(this.pingInterval),401===j.status&&(this.isLoggedIn$.next(!1),"/auth/places"!==this.router.routerState.snapshot.url&&(this.router.navigate(["/auth"]),this.sessionEnd())),(0,i.of)(j.status)))).subscribe(()=>{},()=>{clearInterval(this.pingInterval)})}checkLogin(){this._isCheckLoginFailed=!0,this.isLoadingAuthorization$.next(!0);const T={passwordExpiredOption:"true",userIdentityOption:"true"};return this.configUtilService.getConfigs().pipe((0,h.w)(()=>this.httpClient.post(`${this.configUtilService.adminConfig.persURL}ping`,T,{withCredentials:!0,observe:"response"}).pipe((0,a.U)(j=>(this.isLoadingAuthorization$.next(!1),this.passwordExpired="true"===j.body.passwordExpired||!0===j.body.passwordExpired,200!==j.status||"false"!==j.body.passwordExpired&&!1!==j.body.passwordExpired?this.isLoggedIn$.next(!1):(this._isCheckLoginFailed=!1,this.isLoggedIn$.next(!0)),j.status)),(0,u.K)(j=>(this.isLoadingAuthorization$.next(!1),this.isLoggedIn$.next(!1),this.router.navigate(["/auth"]),(0,i.of)(j.status))))))}login(T){this.configUtilService.setCookie("screen_resolution",`${screen.width}x${screen.height}`,"/"),this.isLoadingAuthorization$.next(!0);const j=this.configUtilService.utoa(T.login),I=this.configUtilService.utoa(T.password),F=(new n.WM).set("Authorization","Basic "+btoa(`${j}:${I}`)).set("Fingerprint",this.configUtilService.fingerprint||"").set("Content-Type","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}login`,"",{withCredentials:!0,observe:"response",responseType:"text",headers:F}).pipe((0,a.U)(z=>(this.isLoadingAuthorization$.next(!1),z.status)),(0,l.b)(()=>{this.pingInterval=this.pingInterval||setInterval(()=>{this.makePing()},this.pingTimeout)}),(0,u.K)(z=>(this.isLoggedIn$.next(!1),this.isLoadingAuthorization$.next(!1),(0,d._)(z))))}sessionEnd(){return clearInterval(this.pingInterval),this.pingInterval=null,this.userDataService.clearData(),this.modalService.close(),this.toastCustomService.closeAllErrorToasts(),this.matDialog.closeAll(),this.httpClient.get(`${this.configUtilService.adminConfig.persURL}logout`,{withCredentials:!0,observe:"response",responseType:"text"}).pipe((0,a.U)(T=>T.status),(0,u.K)(()=>(0,d._)("AuthService sessionEnd() error")))}static#e=this.\u0275fac=function(j){return new(j||$)(m.\u0275\u0275inject(n.eN),m.\u0275\u0275inject(x.F0),m.\u0275\u0275inject(O.M),m.\u0275\u0275inject(L.Pj),m.\u0275\u0275inject(w.Z),m.\u0275\u0275inject(B.j),m.\u0275\u0275inject(_.uw))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac})}return $})()},21562:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>d});var n=t(54004),e=t(94650),i=t(37601);let d=(()=>{class a{constructor(h){this.userDataService=h}canActivate(h,l){return this.userDataService.dboBlocked$.pipe((0,n.U)(m=>!m))}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275inject(i.M))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac})}return a})()},9959:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>a});var n=t(54004),e=t(94650),i=t(37601),d=t(44180);let a=(()=>{class u{constructor(l,m){this.userDataService=l,this.router=m}canActivate(l,m){return this.userDataService.partiallyBlock$.pipe((0,n.U)(x=>{if(null===x||0===x.length)return!0;const O=x.map(B=>B.blockCode),w=0===l.data.blockTypes.filter(B=>O.includes(B)).length;return w||this.router.navigate(["/"]),w}))}static#e=this.\u0275fac=function(m){return new(m||u)(e.\u0275\u0275inject(i.M),e.\u0275\u0275inject(d.F0))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},36544:(Ee,Q,t)=>{"use strict";t.d(Q,{W:()=>a});var n=t(54004),e=t(94650),i=t(37601),d=t(9149);let a=(()=>{class u{constructor(l,m){this.userDataService=l,this.toastService=m}canActivate(l,m){return this.userDataService.userAccountBlockingMessage$.pipe((0,n.U)(x=>(x&&this.toastService.show(x,"error","",{toastClass:"account-blocked"}),!0)))}static#e=this.\u0275fac=function(m){return new(m||u)(e.\u0275\u0275inject(i.M),e.\u0275\u0275inject(d.j))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac})}return u})()},71060:(Ee,Q,t)=>{"use strict";t.d(Q,{s:()=>y});var n=t(98202),e=t(61135),i=t(62843),d=t(95698),a=t(54004),u=t(70262),h=t(6146),l=t(94650),m=t(3751),x=t(15644),O=t(40929),L=t(9149),w=t(36895),B=t(98504),_=t(44509);let y=(()=>{class ${constructor(T,j,I,F,z,X,p){this.apiService=T,this.configUtilService=j,this.documentService=I,this.toastCustomService=F,this.datePipe=z,this.currencyPipe=X,this.currencySymbolPipe=p,this.totalAmount$=new e.X(0),this.totalBalance$=new e.X(0),this.distributedAmount$=new e.X(0),this.cashRequestList=[],this._cashRequestList=new e.X(null),this.cashRequestList$=this._cashRequestList.asObservable(),this._isLoading=new e.X(!0),this.isLoading$=this._isLoading.asObservable()}static arrayWrap(T){return T?Array.isArray(T)?T:[T]:null}setIsLoading(T){this._isLoading.next(T)}loadCashRequestList(T){this.setIsLoading(!0),this.documentService.getLastDocumentsPageable({visual:!0,page:T,lastDocumentFilter:{docTypes:[{docModule:"ibankul",docType:h.o.RequestReceiveCash}]}}).pipe((0,d.q)(1),(0,a.U)(I=>{let F=[];return I?.documents?.length&&(F=this.prepareCashRequestList(I)),{documents:F,page:I?.page}})).subscribe({next:I=>{T?.showMore?this.cashRequestList=[...this.cashRequestList,...I.documents]:(this.cashRequestList=[],this.cashRequestList=[...I.documents]),this._cashRequestList.next({documents:this.cashRequestList,page:I?.page}),this.setIsLoading(!1)},error:I=>{I?.errorText&&this.toastCustomService.show(I.errorText,"error"),this.setIsLoading(!1)}})}clearCashRequestList(){this.cashRequestList=[],this._cashRequestList.next(null)}getRecipients(){return this.apiService.post("last_documents_full",{docTypes:[{docModule:"ibankul",docType:"other_employee"}]}).pipe((0,u.K)(()=>(0,i._)("Get recipients error")),(0,a.U)(T=>{if(T){const j=$.arrayWrap(Object.entries(T)[0][1]);return Array.isArray(j)?j.map(I=>{const F=I.document,z=($.arrayWrap(F.employeeDocs)||[{}])[0];return{id:F.id,firstName:F.firstName||"",secondName:F.secondName||"",lastName:F.lastName||"",citizenship:"",birthDate:F.birthDate||"",position:F.position||"",phone:F.phone||"",phoneForSms:F.phoneForSms||"",employeeDocs:[{typeDocument:z.docType||"",docSerial:z.docSerial||"",docNumber:z.docNumber||"",docOrg:z.docOrg||"",docOrgCode:z.docOrgCode||"",dateOfIssue:z.dateOfIssue||"",placeOfIssue:z.placeOfIssue||""}]}}):[]}return[]}),(0,a.U)(T=>this.configUtilService.getArray(T)))}recipientRequest(T){return this.apiService.post("other_employee/create",T).pipe((0,u.K)(()=>(0,i._)("Save recipient error")))}createCashOrder(T){return this.apiService.post("receive/cash/create",T).pipe((0,u.K)(j=>(0,i._)(j)))}getCashOrderParams(){return this.apiService.post("receive/cash/create",{}).pipe((0,u.K)(T=>(0,i._)(T)))}getPlaces(){return this.apiService.get("receive/cash/registers")}getCashOrderById(T){return this.documentService.getDocumentById("ibankul",h.o.RequestReceiveCash,T)}getCashOrderNextDocNumber(){return this.documentService.getNextDocumentMetadata("ibankul",h.o.RequestReceiveCash)}prepareCashRequestList(T){return T.documents.map(j=>("decline"===j.status&&(j.isOpenable=!0,j.isOpen=!1),j.actions=this.configUtilService.getArray(j.actions),j.statusCaption="new"===j.status?j.signStatusCaption:j?.statusCaption??j?.signStatusCaption,{dots:{buttonActions:this.configUtilService.makeButtonActions({actions:j.actions,...j},null)},...j,title:`${j.docNumber} \u043e\u0442 ${this.datePipe.transform(j.docDate,"dd.MM.YYYY")}`,description:`\u0414\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f: ${this.datePipe.transform(j.receiveDate,"dd.MM.YYYY")||"-"}, ${j?.cashRegisterName||"-"}, ${j.bankName||"-"}`,amount:`${this.currencyPipe.transform(j.totalAmount)} ${this.currencySymbolPipe.transform(j.currCode,!0)}`,statusCaption:this.configUtilService.capitalizeFirstLetter(j?.statusCaption??j?.signStatusCaption),statusCaptionColor:n.rV.get(j.status)}))}static#e=this.\u0275fac=function(j){return new(j||$)(l.\u0275\u0275inject(m.s),l.\u0275\u0275inject(x.Pj),l.\u0275\u0275inject(O.Z),l.\u0275\u0275inject(L.j),l.\u0275\u0275inject(w.uU),l.\u0275\u0275inject(B.H),l.\u0275\u0275inject(_.G))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})()},48389:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>_});var n=t(62843),e=t(39646),i=t(4128),d=t(63900),a=t(66304),u=t(54004),h=t(70262),l=t(59363),m=t(94650),x=t(3751),O=t(46451),L=t(40929),w=t(88581),B=t(15644);let _=(()=>{class y{constructor(C,T,j,I,F){this.apiService=C,this.rutokenService=T,this.documentService=j,this.documentSignService=I,this.configUtilService=F}getCryptoData(C=!0){return this.apiService.get(`crypto/link?withDeviceNotSupporting=${C}`).pipe(this.getDataArrayFromResponse("cryptoLink"))}getCertificates(C){return this.apiService.get("crypto/certificate"+(C?"?all=true":"")).pipe(this.getDataArrayFromResponse("certificate"))}getCertificateIssueRequests(){return this.documentService.getDocumentsByType("doc","cert_req",null,!0).pipe(this.getDataArrayFromResponse("certificateRequest"))}getCertificateReissueRequests(){return this.documentService.getDocumentsByType("doc","cert_regen_req",null,!0).pipe(this.getDataArrayFromResponse("certificateRegenRequest"))}getPayControlRequests(C){let T;switch(C){case l.f.On:T="payControlOnDocument";break;case l.f.Off:T="payControlOffDocument";break;case l.f.Renew:T="payControlRenewDocument"}return this.apiService.post("document/visual/list",{docModule:"ibankul",docType:C,filter:"status!='delete'"}).pipe(this.getDataArrayFromResponse(T))}getCertificateIssueRequestById(C){return this.documentService.getDocumentById("doc","cert_req",C).pipe(this.getDataFromResponse("certificateRequest"))}getCertificateReissueRequestById(C){return this.documentService.getDocumentById("doc","cert_regen_req",C).pipe(this.getDataFromResponse("certificateRegenRequest"))}getCertificateParams(C){return this.apiService.get(`crypto/certificate/${C}/params`)}getCertData(C,T){return this.apiService.get(`crypto/certificate/${C}?format=${T}`,null,"text")}initRutoken(){return this.rutokenService.init().pipe((0,d.w)(C=>C.length?(0,e.of)(C):(0,n._)({errorText:"Token not found"})))}authRutoken(C,T){return this.rutokenService.auth(C,T).pipe(this.rutokenService.formattingRutokenErrorText)}generateRutokenCertificate(C,T){return this.rutokenService.generateCertificate(C,T).pipe(this.rutokenService.formattingRutokenErrorText)}certificateIssueRequest(C){return this.apiService.post("crypto/certificate_request/create",C)}certificateReissueRequest(C){return this.apiService.post("crypto/certificate_regen_request/create",C)}createCertificateIssueRequest(C,T,j,I,F){return this.generateRutokenCertificate(C,F).pipe((0,d.w)(z=>{const X={cryptoId:T,deviceId:j,subjectType:I,filedata:this.configUtilService.base64toHEX(z)};return this.certificateIssueRequest(X)}))}createCertificateReissueRequest(C,T,j,I){let F;return this.authRutoken(j,I).pipe((0,a.c)(this.getCertificateParams(`${C.id}`)),(0,d.w)(z=>(F=z,this.rutokenService.getCertificateByHexSerial(j,z.hexSerial))),(0,d.w)(z=>{const p=this.configUtilService.translitString(F.subject.subjectName||F.subject.commonName).toLowerCase().replace(/ /g,"_")+`_${Date.now()}`,P={},E=this.serverParamMappingForReissueRequest;return Object.keys(E).forEach(ne=>{const ce=F.subject[E[ne]];ce&&ne&&(P[ne]=ce)}),this.generateRutokenCertificate(j,{containerName:p,values:P})}),this.rutokenService.formattingRutokenErrorText,(0,d.w)(z=>{const X={cryptoId:C.libId,deviceId:T,oldCryptoUuid:C.serial,filedata:this.configUtilService.base64toHEX(z)};return this.certificateReissueRequest(X)}),(0,d.w)(z=>this.documentSignService.cryptoClientSign({certificate:C,inputCode:I,tokenId:j,docModule:"doc",docType:"cert_regen_req",docIds:[+z.id]})))}getSaveCertificateData(C){const T=this.getCertData(C,"pem"),j=this.getCryptoData(!0).pipe((0,u.U)(I=>I.filter(F=>"AKTIV_RUTOKEN"===F.typeCode)));return(0,i.D)(T,j).pipe((0,u.U)(([I,F])=>({certData:this.configUtilService.hexDecode(I),cryptoData:F})))}saveCertificateOnToken(C,T,j){return this.authRutoken(T,j).pipe((0,a.c)(this.rutokenService.importCertificate(T,C)),this.rutokenService.formattingRutokenErrorText)}getDataArrayFromResponse(C){return T=>T.pipe((0,u.U)(j=>j&&j[C]?this.configUtilService.getArray(j[C]):[]),(0,h.K)(()=>(0,e.of)([])))}getDataFromResponse(C){return T=>T.pipe((0,d.w)(j=>j&&j[C]?(0,e.of)(j[C]):(0,n._)({errorText:"Document not found"})))}requestCertificateDocSettings(){return this.apiService.get("request/paycontrol_on/info/setup")}createPayControl(){return this.apiService.post("request/paycontrol_on",{})}requestReissueSettings(){return this.apiService.get("request/paycontrol_renew/info/setup")}reissuePayControl(){return this.apiService.post("request/paycontrol_renew",{})}requestTurnOffSettings(){return this.apiService.get("request/paycontrol_off/info/setup")}turnOffPayControl(){return this.apiService.post("request/paycontrol_off",{})}get serverParamMappingForReissueRequest(){return{COMMON_NAME:"commonName",ORGANIZATION_UNIT:"organizationUnit",ORGANIZATION:"organization",COUNTRY:"country",STATE_OR_PROVINCE:"state",CITY:"city",EMAIL_ADDRESS:"email",INN:"inn",SNILS:"snils",OGRNIP:"ogrnIp",OGRN:"ogrn",TITLE:"title",PASSPORT:"passport",STREET:"street"}}static#e=this.\u0275fac=function(T){return new(T||y)(m.\u0275\u0275inject(x.s),m.\u0275\u0275inject(O.X),m.\u0275\u0275inject(L.Z),m.\u0275\u0275inject(w.V),m.\u0275\u0275inject(B.Pj))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac})}return y})()},65197:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>u});var n=t(61135),e=t(54244),i=t(18505),d=t(94650),a=t(3751);let u=(()=>{class h{constructor(m){this.apiService=m,this._currenContact167ChangeAgreement=new n.X(null),this.currentContact167ChangeAgreement$=this._currenContact167ChangeAgreement.asObservable().pipe((0,e.n)(x=>null===x))}clearContact167ChangeAgreement(){this._currenContact167ChangeAgreement.next(null)}addContactToDocument(m){return this.apiService.post("contact_167/addOrUpdate",m).pipe((0,i.b)(x=>{x?.id&&this._currenContact167ChangeAgreement.next(x)}))}deleteContactFromDocument(m){return this.apiService.post("contact_167/delete",m).pipe((0,i.b)(x=>{x?.id&&this._currenContact167ChangeAgreement.next(x)}))}verifyCode(m){return this.apiService.post("contact_167/verify",m)}getContacts167(){return this.apiService.get("contact_167")}static#e=this.\u0275fac=function(x){return new(x||h)(d.\u0275\u0275inject(a.s))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac})}return h})()},40451:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>C});var n=t(54355),e=t(54968),i=t(39646),d=t(69718),a=t(54004),u=t(63900),h=t(70262),l=t(34782),m=t(91005),x=t(68675),O=t(54244),L=t(18505),w=t(94650),B=t(80529),_=t(15644),y=t(81300);let C=(()=>{class T{constructor(I,F,z){this.httpClient=I,this.configUtilService=F,this.serverSettings=z}addChatScriptToIndexHtml(I){const F=document.getElementById("widget-chat");F&&F.remove();const z=document.createElement("script");return z.type="text/javascript",z.async=!0,z.src=I,z.id="widget-chat",document.body.appendChild(z),(0,n.S)((0,e.R)(z,"load").pipe((0,d.h)(!0)),(0,e.R)(z,"error").pipe((0,a.U)(()=>{throw new Error("Invalid chat script source")})))}chartSystemSettingsRequest$(){return this.serverSettings.getResource(this.serverSettings.servicesChatWidget)}chartSettingsRequest$(){return this.httpClient.get(`${this.configUtilService.adminConfig.persURL}chat/property`,{withCredentials:!0,headers:this.configUtilService.noCacheHeaders})}normalizeHostString(I){if(!I)return"";const F=I.split("").reverse();for(;"/"===F[0]&&F.length;)F.splice(0,1);return F.reverse().join("")}createChatSrc(I){return`${this.normalizeHostString(I)}/widget/widget.min.js`}getSettingsString(I,F){return I&&I[F]||""}getSettingsBoolean(I,F){return[1,"1",!0,"true"].indexOf(I[F])>=0}requestChatSettings(){return this.chartSystemSettingsRequest$().pipe((0,u.w)(I=>{const F={src:this.createChatSrc(this.getSettingsString(I,"IQCHANNELS/URL")),enabled:this.getSettingsBoolean(I,"IQCHANNELS/ENABLED")};return F.enabled?this.chartSettingsRequest$().pipe((0,a.U)(z=>({...F,...z})),(0,u.w)(z=>(z.enabled?this.addChatScriptToIndexHtml(z.src):(0,i.of)(!1)).pipe((0,a.U)(()=>z))),(0,h.K)(()=>(0,i.of)({enabled:!1})),(0,l.d)(1)):(0,i.of)({enabled:!1})}))}getChartSettings(){return this.chatSettingsCache$||(this.chatSettingsCache$=this.requestChatSettings()),this.chatSettingsCache$}createChatInstance(I){return(0,i.of)(new IQChannelsWidget({channel:I.channel,credentials:I.token,width:280,padBody:!1,iconOptions:{show:!0,backgroundColor:"#FFFFFF"}})).pipe((0,m.g)(1))}getChartEl(){return document.getElementById("iqchannels-widget-container")}createChat(){return this.chartCreatedCache$||(this.chartCreatedCache$=this.getChartSettings().pipe((0,u.w)(I=>I.enabled?this.createChatInstance(I).pipe((0,a.U)(F=>({el:this.getChartEl(),chat:F}))):(0,i.of)(null)),(0,l.d)(1))),this.chartCreatedCache$}getChat(){return this.createChat()}unreadEvent$(I){return(0,e.R)(I,"unread")}getUnread(){return this.createChat().pipe((0,u.w)(I=>{if(null===I)return(0,i.of)(null);const{chat:F}=I;return this.unreadEvent$(F).pipe((0,x.O)(0))}))}toggleIconVision(I){const F=document.getElementById("iqchannels-widget-icon");F&&(F.style.display=I)}openChat(){this.createChat().pipe((0,O.n)(I=>null===I),(0,L.b)(I=>{const{chat:F}=I;F.open()}))}static#e=this.\u0275fac=function(F){return new(F||T)(w.\u0275\u0275inject(B.eN),w.\u0275\u0275inject(_.Pj),w.\u0275\u0275inject(y.l))};static#t=this.\u0275prov=w.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})()},71573:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>i});var n=t(94650),e=t(3751);let i=(()=>{class d{constructor(u){this.apiService=u}createDismissal(u,h){return this.apiService.post("compromise/create_dismissal",{employeeId:u,signTypeName:h})}static#e=this.\u0275fac=function(h){return new(h||d)(n.\u0275\u0275inject(e.s))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},15644:(Ee,Q,t)=>{"use strict";t.d(Q,{BM:()=>$,Pj:()=>T});var n=t(36895),e=t(80529),i=t(94650),d=t(17489),u=t(62843),h=t(54004),l=t(70262),m=t(34782),x=t(53065),L=t(6146),w=t(56085),y=(t(66266),t(9149));const $="ADD. ";var C=(()=>{return(j=C||(C={})).KB="KB",j.MB="MB",C;var j})();class T{static#e=this.amountMask=(0,x.createNumberMask)({prefix:"",allowDecimal:!0,thousandsSeparatorSymbol:" "});static#t=this.phoneMask=["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/];constructor(I,F,z){this.document=I,this.httpClient=F,this.toast=z,this.truthy=["1",1,!0,"true"],this.configURLs={admin:"/assets/config/admin.json",version:"/assets/config/version.json"},this.noCacheHeaders=(new e.WM).set("Cache-control","no-cache").set("Cache-control","no-store").set("Expires","0").set("Pragma","no-cache"),this.checkingTimeout=500,this.accountNumberMask=[/\d/,/\d/,/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,".",/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],this.dateMask=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],this.freeNumberMask=(0,x.createNumberMask)({prefix:"",thousandsSeparatorSymbol:"",allowLeadingZeroes:!0}),this.swiftTransliterationMap=new Map([["\u0410","A"],["\u0411","B"],["\u0412","V"],["\u0413","G"],["\u0414","D"],["\u0415","E"],["\u0401","o"],["\u0416","J"],["\u0417","Z"],["\u0418","I"],["\u0419","i"],["\u041a","K"],["\u041b","L"],["\u041c","M"],["\u041d","N"],["\u041e","O"],["\u041f","P"],["\u0420","R"],["\u0421","S"],["\u0422","T"],["\u0423","U"],["\u0424","F"],["\u0425","H"],["\u0426","C"],["\u0427","c"],["\u0428","Q"],["\u0429","q"],["\u042a","x"],["\u042b","Y"],["\u042c","X"],["\u042d","e"],["\u042e","u"],["\u042f","a"],["'","j"],["\u2019","j"],["\u2018","j"],["`","j"],['"',"j"],["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"],["(","("],[")",")"],["?","?"],["+","+"],["\u2116","n"],["#","n"],["%","p"],["&","d"],[",",","],["/","/"],["-","-"],[".","."],[":",":"],[" "," "],["!","b"],["$","s"],[";","v"],["\\","/"],["|","/"],["_","z"],["=","r"],["<","("],[">",")"],["\u201d","m"],["\u201c","m"],["\xab","m"],["\xbb","m"],["*","f"],["@","f"],["^","f"],["~","f"]]),this.capitalize=X=>"string"!=typeof X?"":(X=X.toLowerCase()).charAt(0).toUpperCase()+X.slice(1),this.convertToCamelCase=X=>d.camelCase(X)}static updateFormsValues(I,F){I.forEach(z=>Object.keys(z.controls).forEach(X=>{z.get(X).updateValueAndValidity({emitEvent:F}),z.get(X).markAsTouched()}))}processCheckboxValue(I){let F;return F="boolean"==typeof I?I:I?.target?.checked,F}generateAllValueFromCheckboxList(I){return I.reduce((F,z,X,p)=>F+`${z.value}`+(X!==p.length-1?", ":""),"")}getFilterByFiled(I){let F="caption";return this.checkEngInput(I)&&(F="description"),F}checkEngInput(I){return/^[a-zA-Z\s]*$/.test(I)}setCookie(I,F,z="",X){let p="";if(X){const E=new Date;E.setTime(E.getTime()+24*X*60*60*1e3),p=`expires=${E.toUTCString()}`}document.cookie=`${I}=${F}; ${p}${z?`; path=${z}`:""}`}isTruthy(I){return this.truthy.indexOf(I)>=0}SWIFTMaskCheck(I,F){return F.forbiddenRegs?.find(p=>new RegExp(p).test(I))?(this.toast.show(F.forbiddenMessage,"warning"),!1):(!!F.unwantedRegs?.find(p=>new RegExp(p).test(I))&&this.toast.show(F.unwantedMessage,"warning"),!0)}requestConfigs(){return this.httpClient.get(`${this.configURLs.admin}`,{headers:this.noCacheHeaders}).pipe((0,h.U)(I=>((0,i.isDevMode)()?I.host=this.document.location.origin:this.versionControl().subscribe(F=>{const{build:z}=F;console.log(`%c Build name: %c${z.alias.toUpperCase()} `,"background: #0f69cd; color: #aebfea;","background: #0f69cd; color: #ffffff;"),console.log(`%c Build version: %c${z.version} `,"background: #0f69cd; color: #aebfea;","background: #0f69cd; color: #ffffff;"),console.log(`%c Build date: %c${z.date} `,"background: #0f69cd; color: #aebfea;","background: #0f69cd; color: #ffffff;")}),I.hash&&console.log(`%c Hash: %c${I.hash} `,"background: #0f69cd; color: #aebfea;","background: #0f69cd; color: #ffffff;"),this.adminConfig={data:I},this.adminConfig=Object.assign(this.adminConfig,{persURL:`${this.adminConfig.data.host}/rest/stateful/corp/`,pubURL:`${this.adminConfig.data.host}/rest/public/`,pubURL2:`${this.adminConfig.data.host}/public/`,host:this.adminConfig.data.host,google:this.adminConfig.data.google,apple:this.adminConfig.data.apple,appleItms:this.adminConfig.data.appleItms,ruStore:this.adminConfig.data.ruStore}),this.adminConfig))).pipe((0,l.K)(()=>(0,u._)("ConfigUtilService getConfigs() error")))}getConfigs(I=!1){return I&&(this.configCache=void 0),this.configCache||(this.configCache=this.requestConfigs().pipe((0,m.d)(1))),this.configCache}utoa(I){return unescape(encodeURIComponent(I))}formatDateDMStrng(I){const F=["\u042f\u043d\u0432\u0430\u0440\u044f","\u0424\u0435\u0432\u0440\u0430\u043b\u044f","\u041c\u0430\u0440\u0442\u0430","\u0410\u043f\u0440\u0435\u043b\u044f","\u041c\u0430\u044f","\u0418\u044e\u043d\u044f","\u0418\u044e\u043b\u044f","\u0410\u0432\u0433\u0443\u0441\u0442\u0430","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044f","\u041e\u043a\u0442\u044f\u0431\u0440\u044f","\u041d\u043e\u044f\u0431\u0440\u044f","\u0414\u0435\u043a\u0430\u0431\u0440\u044f"];if("string"==typeof I){I.includes("T")&&(I=I.split("T")[0]);const P=I.split("-");return`${P[2]} ${F[+P[1]-1]} ${P[0]}`}return`${new Date(I).getDate()} ${F[new Date(I).getMonth()]} ${new Date(I).getFullYear()}`}getURLParamsString(I){let F="";for(const z in I)F+=`${z}=${I[z]}`;return F}getNextDayFromRuFormat(I){const F=I.split(".");return new Date(`${F[1]}.${+F[0]+1}.${F[2]}`)}formatDateString(I){const F=I?I.split("T")[0].split("-"):void 0;return F?`${F[2]}.${F[1]}.${F[0]}`:void 0}formatDateStringBySeparator(I,F){const z=I?I.split(F):void 0;return z?`${z[2]}-${z[1]}-${z[0]}`:void 0}formatDateDMY(I,F){const z=F||"";let X=I.getDate();X<10&&(X=`0${X}`);let p=I.getMonth()+1;return p<10&&(p=`0${p}`),`${X}${z}${p}${z}${I.getFullYear()}`}formatDateStringDMYHM(I,F,z){const X=new Date(I);if("Invalid Date"===X.toString())return I;let p=X.getDate();p<10&&(p=`0${p}`);let P=X.getMonth()+1;P<10&&(P=`0${P}`);const E=X.getFullYear();let R=X.getHours();R<10&&(R=`0${R}`);let ne=X.getMinutes();ne<10&&(ne=`0${ne}`);let G=X.getSeconds();return G=1===G.toString().length?`0${G}`:G,F?z?`${p}.${P}.${E}${z} ${R}:${ne}:${G}`:`${p}.${P}.${E} ${R}:${ne}:${G}`:z?`${p}.${P}.${E}${z} ${R}:${ne}`:`${p}.${P}.${E} ${R}:${ne}`}revertFormatDateDMY(I,F){const z=F||"";let X=(I=new Date(I)).getDate();X<10&&(X=`0${X}`);let p=I.getMonth()+1;return p<10&&(p=`0${p}`),`${I.getFullYear()}${z}${p}${z}${X}`}versionControl(){return this.httpClient.get(this.configURLs.version,{headers:this.noCacheHeaders}).pipe((0,h.U)(I=>I)).pipe((0,l.K)(()=>(0,u._)("ConfigUtilService versionControl() error")))}getDecimal(I){return I-Math.floor(I)}getArray(I){if(!I)return[];let F=[];const z=this.getTypeOf(I);switch(z){case"Array":F=I.slice();break;case"Object":F=Object.keys(z).length?[I]:[];break;case"String":case"Number":F=Array.of(I)}return F}getTypeOf(I){return{}.toString.call(I).slice(8,-1)}removeSpaces(I){return(I=I?I.toString():"").replace(/\s+/g,"")}removeSlashes(I){return(I||"").replace(/\//g,"")}removePhoneChars(I){return(I=I||"").replace(/[\s-()+]+/g,"")}parseJson(I){let F;try{F=JSON.parse(I)}catch{}return F}parseXMLresponse(I){return JSON.parse(w(I,"  "))}hex2dec(I){function F(X,p){let P=0;const E=[];for(X=X.split("").map(Number),p=p.split("").map(Number);X.length||p.length;){const R=(X.pop()||0)+(p.pop()||0)+P;E.unshift(R<10?R:R-10),P=R<10?0:1}return P&&E.unshift(P),E.join("")}let z="0";return I.split("").forEach(X=>{const p=parseInt(X,16);for(let P=8;P;P>>=1)z=F(z,z),p&P&&(z=F(z,"1"))}),z}stringToByte(I){const F=I.length,z=new Uint8Array(F),X=[];for(let p=0;p<F;p++)z[p]=I.charCodeAt(p),X[p]=z[p];return X}randomString(I){return Math.random().toString(36).substring(I)}convertJavaByteArr(I){const F=[];for(let z=0;z<I.length;z++)F[z]=I[z]>127?I[z]-256:I[z];return F}translitString(I){let F="";const z={\u0401:"YO",\u0419:"I",\u0426:"TS",\u0423:"U",\u041a:"K",\u0415:"E",\u041d:"N",\u0413:"G",\u0428:"SH",\u0429:"SCH",\u0417:"Z",\u0425:"H",\u042a:"",\u0451:"yo",\u0439:"i",\u0446:"ts",\u0443:"u",\u043a:"k",\u0435:"e",\u043d:"n",\u0433:"g",\u0448:"sh",\u0449:"sch",\u0437:"z",\u0445:"h",\u044a:"",\u0424:"F",\u042b:"I",\u0412:"V",\u0410:"a",\u041f:"P",\u0420:"R",\u041e:"O",\u041b:"L",\u0414:"D",\u0416:"ZH",\u042d:"E",\u0444:"f",\u044b:"i",\u0432:"v",\u0430:"a",\u043f:"p",\u0440:"r",\u043e:"o",\u043b:"l",\u0434:"d",\u0436:"zh",\u044d:"e",\u042f:"Ya",\u0427:"CH",\u0421:"S",\u041c:"M",\u0418:"I",\u0422:"T",\u042c:"",\u0411:"B",\u042e:"YU",\u044f:"ya",\u0447:"ch",\u0441:"s",\u043c:"m",\u0438:"i",\u0442:"t",\u044c:"",\u0431:"b",\u044e:"yu"};return((I+="")||"").split("").forEach(X=>F+=z[X]?z[X]:X),F}swiftTransliteration(I,F=this.swiftTransliterationMap){return I?I.toUpperCase().split("").map(z=>F.get(z)||z).join(""):""}base64toHEX(I){return I.split("").map(F=>{const z=F.charCodeAt(0).toString(16);return 2===z.length?z:`0${z}`}).join("").toUpperCase()}hexDecode(I){let F="";for(let z=0;z<I.length;z+=2)F+=String.fromCharCode(parseInt(I.substr(z,2),16));return F}emailValidator(I){return/^(([^<>()\[\].,;:\s@"]+(\.[^<>()\[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i.test(I)}phoneValidator(I){return/\+7 \(\d\d\d\) \d\d\d \d\d \d\d/.test(I)}linkValidator(I){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/.test(I)?I.includes(this.adminConfig.host)?1:2:0}copyHtmlToClipboard(I){const F=document.createElement("div");F.innerHTML=I,F.style.opacity="0";const z=document.body.appendChild(F);window.getSelection().removeAllRanges();const X=document.createRange();X.setStartBefore(F.firstChild),X.setEndAfter(F.lastChild),window.getSelection().addRange(X),document.execCommand("copy"),z.remove()}isAtLeastOneValid(I,F=null){return F||(F=Object.keys(I.controls)),I&&I.controls&&F.some(z=>I.get(z).valid)}getPatternMatchedString(I,F){return F.split("").filter(z=>z.match(I)).join("")||""}getUniqueArray(I){return I.reduce((F,z)=>F.find(X=>JSON.stringify(X)===JSON.stringify(z))?F:[...F,z],[])}parseSvetoforData(I){return(I=this.getArray(I)).forEach(F=>{if(F.briefReportSummary){if(F.svetoforData=F.briefReportSummary.briefReport.summary,"true"===F.svetoforData.redStatements)return void(F.svetoforData.mode="_err");if("true"===F.svetoforData.yellowStatements&&!F.svetoforData.redStatements)return void(F.svetoforData.mode="_warn");"true"===F.svetoforData.greenStatements&&(F.svetoforData.mode="_suc")}else F.svetoforData={mode:""},F.svetoforData.mode="not_found"}),I}getShieldIcon(I){const F=I.svetoforData,z={icon:"svetofor_err",class:null};return"true"===F.redStatements?(z.class="icon-red",z.icon="svetofor_err"):"true"===F.yellowStatements?(z.class="icon-yellow",z.icon="svetofor"):"true"===F.greenStatements?(z.class="icon-green",z.icon="svetofor_suc"):(z.class="icon-grey",z.icon="svetofor"),z}deepClone(I){if(!I)return I;let z;if([Number,String,Boolean].forEach(X=>{I instanceof X&&(z=X(I))}),typeof z>"u")if("[object Array]"===Object.prototype.toString.call(I))z=[],I.forEach((X,p)=>{z[p]=this.deepClone(X)});else if("object"==typeof I)if(I.nodeType&&"function"==typeof I.cloneNode)z=I.cloneNode(!0);else if(I.prototype)z=I;else if(I instanceof Date)z=new Date(I);else{z={};for(const X in I)I.hasOwnProperty(X)&&(z[X]=this.deepClone(I[X]))}else z=I;return z}setValidatorsAndUpdate(I,F){I.setValidators(F),I.updateValueAndValidity()}clearValidatorsAndUpdate(I,F){I.clearValidators(),void 0!==F&&I.setValue(F),I.updateValueAndValidity()}makeOnlyNumbers(I){let F="";for(let z=0;z<I.length;z++)!isNaN(I[z])&&" "!==I[z]&&(F+=I[z]);return F}objectsParser(I,F){return I.map(z=>{const X={};return Object.keys(F).forEach(P=>{const E=F[P];"string"==typeof E?X[P]=z[E]:"function"==typeof E&&(X[P]=E(z))}),X})}makeButtonActions(I,F,z){const X=[];return I.actions.forEach(p=>{if(F&&!F.includes(p))return;let P,E,R,ne;switch(p){case"print_for_contragent":P="print_for_contragent",E={docId:I.id,inPopup:!1};break;case"print":P="print",E={docId:I.id,inPopup:!0};break;case"print_last":P="print_last",E={docId:I?.mibUpsDocID,docNumber:I.id};break;case"print_BPX":P="print_BPX",E={docId:I.id,inPopup:!0};break;case"cancel":P="cancel",E={docId:I.id,docType:I.docType,docModule:I.docModule};break;case"update":P="edit",E={docId:I.docType===L.o.TspUpdateAddSoftPOS?I.tspId:I.id,docType:I.docType,docModule:I.docModule},I?.docType===L.o.RequestAcceptNoAccept&&(E.acceptType=I?.acceptType);break;case"delete":P="delete",E=1==I.signStatus||2==I.signStatus?void 0:{docId:I.id,inq181:I.inq181,docCurrBuyId:I?.currBuyChildren?.id};break;case"copy":P="createCopy",R=I.id,ne=I?.docModule,(I?.docType===L.o.DocPlatporBp||I?.docType===L.o.TransferRests)&&(R=I?.mibUpsDocID??I.id,ne=I?.docModule??"ibankul"),E={docId:R,docType:I.docType,docModule:ne};break;case"create_template":P="createTemplate",E={docId:I.id};break;case"create_inq_curr":P="create_cti",E={docId:I.id,docType:I.docType};break;case"sign_list":P="showSigns",R=I.id,(I?.docType===L.o.DocPlatporBp||I?.docType===L.o.TransferRests)&&(R=I?.mibUpsDocID??I.id),E={docId:R};break;case"accept":P="accept",E={docId:I.id,docType:I.docType};break;case"refuse":P="refuse",E={docId:I.id,docType:I.docType};break;case"sign_on_client":P="sign",E={docId:I.id,docType:I.docType,docModule:I.docModule,name:I.name||I.tseName,city:I.city,address:I.address,inq181:I?.inq181,startDate:I?.startDate,endDate:I?.endDate,interestRate:I?.interestRate,amount:I?.amount,accNumber:I?.accNumber,...I.currencyOperationsId?{currencyOperationsId:I.currencyOperationsId}:I.inq181?{inq181:I.inq181}:{},disabled:I.isAvailableSupportVed,docCurrBuyId:I?.currBuyChildren?.id};break;case"sendPrintForm":P="sendPrintForm",E={docId:I.id};break;case"withdraw":P="withdraw",E={docId:I.id,docType:I.docType};break;case"withdraw_ved_document":P="withdraw",E={docId:I.id};break;case"request_cancel":P="request_cancel",E={docId:I.id,docType:I.docType,docModule:I.docModule};break;case"revoke":case"decline_request":P="decline_request",E={docId:I.id,docType:I.docType,docModule:I.docModule};break;case"revoke_document":P="revoke_document",E={docId:I.id,docType:I.docType,docModule:I.docModule};break;case"request_swift":P="request_swift",E={docId:I.id,docType:I.docType,docModule:I.docModule};break;case"print_swift":P="print_swift",E={swiftMessage:I.swiftMessage};break;case"print_awiso":P="print_awiso",E={docId:I.id,docType:I.docType,docModule:I.docModule};break;case"download_swift":P="download_swift",E={docId:I.id,docType:I.docType,docModule:I.docModule};break;case"delete_sign":P="delete_sign",E={docId:I.id,...I};break;case"for_cancellation":P="for_cancellation",E={docId:I.id,docType:I.docType,docModule:I.docModule},I?.docType===L.o.RequestAdvanceAccept&&I?.acceptCancellation?.id&&(E.acceptCancellationId=I.acceptCancellation.id);break;case"send_ul_documents":P="send_ul_documents",E={docId:I.id};break;case"phone_change":P="phone_change",E={docId:I.id};break;case"disable_user":P="disable_user",E={docId:I.id,fullName:I.fullName,signType:I.signType};break;case"decline_phone_change":P="decline_phone_change",E={docId:I.id};break;case"view":P="view",I.docType===L.o.SbpQrReg&&"send_sbp"===I.status&&(E={docId:I.id});break;case"confirm":(I.docType===L.o.DocPlatporCurrTg||I.docType===L.o.DocPlatporCurrTgOv)&&(P="confirm_tg_payment",E={docId:I.id,docType:I.docType,docModule:I.docModule})}if(z){const G=z(p);G&&(E={...E,...G})}P&&E&&X.push({type:P,data:E})}),I.hasOwnProperty("attach")&&X.push({type:"downloadAttachments",data:{docId:I.id,attach:this.getArray(I.attach)}}),X}getCommonElementsFromArrays(I){return I.shift().reduce((F,z)=>(-1===F.indexOf(z)&&I.every(X=>-1!==X.indexOf(z))&&F.push(z),F),[])}unescapeUnicode(I){return I.replace(/\\u([a-fA-F0-9]{4})/g,function(F,z){return String.fromCharCode(parseInt(z,16))})}unescapeUtf8(I){return decodeURIComponent(Array.prototype.map.call(I,function(F){return"%"+("00"+F.charCodeAt(0).toString(16)).slice(-2)}).join(""))}capitalizeFirstLetter(I){return I.charAt(0).toUpperCase()+I.slice(1)}setPaymentInCNYFieldPrefix(I,F=""){const z="ADD. ";let X=F;return I?F.startsWith(z)||(X=z+F):X=F.split(z)[1]||F,X}getBoolean(I){if(void 0===I)return!1;const F=["1","true","yes"],z=["0","false","no"];switch(typeof I){case"boolean":return I;case"string":return!!F.includes(I)||!z.includes(I)&&!!I.length;case"number":return Boolean(I);default:return!!I}}getFactorFileSizeByUnitName(I){switch(I){case C.KB:return 1024;case C.MB:return 1048576;default:return 1}}getDocSettingByName(I,F){return I.find(z=>z.name===F)}getInputFilesSettings(I){if(!I)return{isEnabled:!1,maxTotalSize:0,maxSizeFile:0,extensions:[]};const F=this.getDocSettingByName(I,"ATTACH/FILESIZE_UNIT"),z=this.getDocSettingByName(I,"ATTACH/MAX_TOTAL_SIZE"),X=this.getDocSettingByName(I,"ATTACH/MAX_FILESIZE"),p=this.getFactorFileSizeByUnitName(F?.value||C.MB);return{isEnabled:this.getBoolean(this.getDocSettingByName(I,"ATTACH/ENABLED")),extensions:this.getDocSettingByName(I,"ATTACH/FILE_EXTENSIONS")?.value?.split(",")||[],maxTotalSize:+z?.value?+z.value*p:0,maxSizeFile:+X?.value?+X.value*p:0}}removeByName(I,F,z){I.forEach((X,p)=>{(z?X[z]:X)===F&&I.splice(p,1)})}getDateInMilliseconds(I){const F=I?new Date(I):void 0;return F&&F.setHours(0,0,0,0),F?.getTime()}isNumeric(I){const F=Number(I);return d.isNumber(F)&&!isNaN(F)&&""!==I?.trim()&&d.isFinite(F)}strToBoolean(I){return"true"===I}static#n=this.\u0275fac=function(F){return new(F||T)(i.\u0275\u0275inject(n.K0),i.\u0275\u0275inject(e.eN),i.\u0275\u0275inject(y.j))};static#i=this.\u0275prov=i.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac})}},89435:(Ee,Q,t)=>{"use strict";t.d(Q,{X:()=>F});var n=t(31833),e=t(61135),i=t(4128),d=t(39646),a=t(65535),u=t(91005),h=t(39300),l=t(95698),m=t(54004),x=t(34782),O=t(70262),L=t(6146),w=t(8226),B=t(5718),_=t(94650),y=t(3751),$=t(15644),C=t(40929),T=t(98504),j=t(29198);const I=["cancel","decline","delete"];let F=(()=>{class z{constructor(p,P,E,R,ne,G){this.apiService=p,this.util=P,this.configUtilService=E,this.documentService=R,this.currencyPipe=ne,this.vedService=G,this.dpFilter=B.bH,this.unkPipe=new n.n,this.isNoUnk$=new e.X(!1),this.isUnkInOtherBank$=new e.X(!1),this.isNoUnkMustBeEmpty$=new e.X(!1),this.contract$=new e.X(null),this.payDirections$=new e.X([]),this.paymentCurrency$=new e.X(null)}requestDocumentSettings(){return this.apiService.get("curr/inquiry_181/info/setup")}requestAdditionalParameters(p){return(0,i.D)([this.apiService.get("curr/inquiry_181/metinv/info/entries",p),this.vedService.getCurrencies(!1),this.vedService.getContractsList$().pipe((0,a.a)(P=>P.pipe((0,u.g)(1e3))),(0,h.h)(P=>!!P),(0,l.q)(1))]).pipe((0,m.U)(([P,E,R])=>(P.availableAcc=this.util.getArray(P.availableAcc),P.dealEntries.dealPassList=this.util.getArray(P.dealEntries.dealPassList).filter(ne=>!this.dpFilter.includes(ne.status)).map(ne=>{const G=R.find(we=>ne.dpnum===we.dpnum),ce=G?.contrCurrCode?E.find(we=>we.code===G.contrCurrCode):void 0,xe=G?{contrName:G?.nonResidentName,dpNumSeparated:this.unkPipe.transform(G.dpnum),contrCurrency:ce?.code,contrCurrName:ce?.isoCode}:{};return{...ne,...xe}}),P)))}getAllDocumentSettingsInOneObject(){return this.requestDocumentSettings().pipe((0,m.U)(p=>[...p.dealSetup.docSettings,...p.inqCurrSetup.docSettings]))}sendForSign(p){return this.apiService.post("curr/inquiry_181/metinv",p)}sendIdentifiedReceiptTransferCurrBp(p){return this.apiService.post("metinv/incoming_identification",p)}getIncomingIdentification(p){return this.apiService.get("metinv/incoming_identification",{id:p}).pipe((0,m.U)(P=>(P?.inqCurr181Ext?.deal&&(P.inqCurr181Ext.deal=this.configUtilService.getArray(P.inqCurr181Ext.deal)),P?.transferCurrBpUl?.inqCurr181?.deal&&(P.transferCurrBpUl.inqCurr181.deal=this.configUtilService.getArray(P.transferCurrBpUl.inqCurr181.deal)),P)))}isEqualsCurrencies(p){if(!this.contract$?.value||!p)return!0;const P=this.contract$?.value?.contrCurrency,E=w.G1.includes(P)&&w.G1.includes(p)||p===P;return p&&P&&E}getCurrencyOperationsEntries(p=!0,P=null){return p&&(this.currencyOperationsEntriesCache$=void 0),this.currencyOperationsEntriesCache$||(this.currencyOperationsEntriesCache$=(0,i.D)([this.apiService.get("curr/inquiry_181/metinv/info/entries"+(P?`?currency=${P.currency}&direction=${P.direction}`:"")),this.vedService.getCurrencies(!1),this.vedService.getContractsList$(!1)]).pipe((0,m.U)(([R,ne,G])=>(this.configUtilService.getArray(R.dealEntries.dealPassList).map(ce=>{const xe=G?.find(Ge=>ce.dpnum===Ge.dpnum),we=ce?.contrCurrCode?ne.find(Ge=>Ge.code===ce.contrCurrCode):void 0;return ce.contrCurrency=we?.code,ce.contrCurrName=we?.isoCode,ce.dpNumSeparated=ce.dpnum?this.unkPipe.transform(ce.dpnum):"",ce.contrEndDate=xe?.contrEndDate,ce}),R)),(0,m.U)(R=>(R.availableAcc=this.configUtilService.getArray(R.availableAcc),R.availableAccCorrect=this.configUtilService.getArray(R.availableAccCorrect),R.availableAcc.map(ne=>(ne.formattedBalance=ne.balance?this.currencyPipe.transform(ne.balance):"",ne)),R)),(0,x.d)(1),(0,O.K)(()=>(0,d.of)(null)))),this.currencyOperationsEntriesCache$}requestSettings(){return(0,i.D)([this.vedService.getCurrencies(!1),this.getCurrencyOperationsEntries(!0),this.vedService.getCountries(!1)]).pipe((0,m.U)(([p,P,E])=>({currencies:p,dealEntries:P,countries:E})))}requestCurrencyOperationInfoSetup(){return this.apiService.get("curr/inquiry_181/info/setup")}getPayDirectionList(){return this.payDirectionCache$||(this.payDirectionCache$=this.apiService.publicGet("CUR_RKO_PAY_DIRECTION").pipe((0,x.d)(1),(0,m.U)(p=>this.configUtilService.getArray(p)),(0,O.K)(()=>(0,d.of)([])))),this.payDirectionCache$}getById(p){return p?this.documentService.getDocumentById("ibankul_curr",L.o.InqCurr181,p,!1).pipe((0,m.U)(P=>P?.inqCurr181Ext||void 0),(0,m.U)(P=>(P?.deal&&(P.deal=this.util.getArray(P.deal)),P)),(0,O.K)(()=>(0,d.of)(void 0))):(0,d.of)(void 0)}isAllowedCopyDeal(p,P,E){return!E||E&&I.includes(P)||!p.docPlatporCurrId}static#e=this.\u0275fac=function(P){return new(P||z)(_.\u0275\u0275inject(y.s),_.\u0275\u0275inject($.Pj),_.\u0275\u0275inject($.Pj),_.\u0275\u0275inject(C.Z),_.\u0275\u0275inject(T.H),_.\u0275\u0275inject(j.$))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})()},88581:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>we});var n=t(80529),e=t(61135),i=t(39646),d=t(62843),a=t(69751),u=t(4128),h=t(32076),l=t(24351),m=t(64307),x=t(54004),O=t(39300),L=t(94813),w=t(63900),B=t(70262),_=t(95698),y=t(66304),$=t(86349),C=t(6146),T=t(45111),j=t(69109),I=t(59363),F=t(32031),z=t(831),X=t(94650),p=t(3751),P=t(15644),E=t(37601),R=t(46451),ne=t(29198),G=t(67209),ce=t(44180),xe=t(76751);let we=(()=>{class Ge{constructor(pe,Ce,U,H,Z,oe,Pe,Ie,pt){this.apiService=pe,this.configUtilService=Ce,this.userDataService=U,this.rutokenService=H,this.httpClient=Z,this.vedService=oe,this.powerOfAttorneyService=Pe,this.router=Ie,this.mailService=pt,this.cryptoData=[],this.certificates=[],this.SBP_QR_TABS=F.wz,this.risdaDocTypes=["conversion_deal","staging_exchange_forward","settlement_exchange_forward","doc_netting","pay_floating_margin","pay_initial_margin","return_floating_margin"],this.pathData$=new e.X(null),this.actionAfterSign$=new e.X(null),this.supportedTypes=[j.d.InputCode,j.d.Rutoken,j.d.None,j.d.Paycontrol]}getPathData(){const pe=this.pathData$.getValue();return this.pathData$.next(null),pe}setPathData(pe){this.pathData$.next(pe)}getActionAfterSign(){const pe=this.actionAfterSign$.getValue();return this.actionAfterSign$.next(null),pe}setActionAfterSign(pe){this.actionAfterSign$.next(pe)}getCertificates(pe){return this.apiService.get("crypto/certificate"+(pe?"?all=true":"")).pipe((0,x.U)(U=>U.certificate?this.configUtilService.getArray(U.certificate):[]),(0,x.U)(U=>(this.certificates=U,U.filter(H=>(0,$.q9)(this.supportedTypes,H.cryptoTypeCode)))))}getCryptoData(){return this.cryptoData.length>0?(0,i.of)(this.cryptoData):this.apiService.get("crypto/link").pipe((0,x.U)(pe=>pe.cryptoLink?this.configUtilService.getArray(pe.cryptoLink):[]))}getDataForSign(pe,Ce,U){return this.getDocumentInfo(pe,U,Ce).pipe((0,x.U)(H=>Object.entries(H)),(0,x.U)(H=>H[0][1]),(0,x.U)(H=>({certificates:null,operation:H})))}signDocumentRequest(pe,Ce){return this.apiService.post("document/"+(Ce?`signature/delete?sign_id=${Ce}`:"sign/v2"),pe).pipe((0,x.U)(H=>{if(null!==H)return H}),(0,O.h)(H=>!!H))}getDocDataSign(pe){const Ce=new n.WM({Accept:"text/plain"});return this.configUtilService.getConfigs().pipe((0,L.j)("persURL"),(0,w.w)(U=>this.httpClient.get(`${U}document/signature/data`,{withCredentials:!0,params:pe,headers:Ce})),(0,B.K)(U=>(0,i.of)(U.error.text)))}updateDocDateById(pe){return this.apiService.get(`document_action/execute?docId=${pe}&actionName=update_doc_date`)}revokeDocDateById(pe){return this.apiService.get(`document_action/execute?docId=${pe}&actionName=cancel`)}verifySign(pe){return this.apiService.post("document/signature/verifyandwrite",pe)}deleteSign(pe,Ce){return this.apiService.post(`document/signature/delete?sign_id=${Ce}`,pe).pipe((0,w.w)(U=>U?(0,d._)({errorText:"Incorrect code"}):(0,i.of)(!0)))}getDocumentSignList(pe){return this.apiService.get(`document/signature/metinv?doc_id=${pe}`).pipe((0,w.w)(Ce=>Ce&&Ce.signature?(0,i.of)(this.configUtilService.getArray(Ce.signature)):(0,d._)({errorText:"Sign not found"})))}signatureVerificationFromCertificate(pe,Ce,U){return(U||Ce.serial===pe.certSerial)&&Ce.libId===pe.libId}getCertificatesBySignatures(pe,Ce,U){return Ce.map(Z=>pe.find(oe=>this.signatureVerificationFromCertificate(Z,oe,U))).filter(Z=>!!Z)}checkDocumentStatus(pe,Ce,U){const H=`?doc_module=${pe}&doc_type=${Ce}&doc_ids=${Array.isArray(U)?U.join(";"):U}`;return this.apiService.get(`document/visual/byid${H}`).pipe((0,x.U)(Z=>{if("object"==typeof Z&&1===Object.keys(Z).length){const oe=Object.keys(Z)[0];return this.configUtilService.getArray(Z[oe]).map(Ie=>({signStatus:+Ie.signStatus,document:Ie}))}throw Z}))}getDocumentInfo(pe,Ce,U){return this.apiService.get(`document/visual/byid?doc_module=${Ce}&doc_type=${pe}&doc_ids=${U}`)}sendDocument(pe,Ce,U,H){let Z="";H&&(Z="&"+new URLSearchParams(H).toString());const oe=`?doc_module=${pe}&doc_type=${Ce}&doc_ids=${U.join(";")}${Z}`;return this.apiService.put(`document/send${oe}`)}acceptDocument(pe){return this.apiService.get(`dealing/document/accept?doc_ids=${pe}`)}declineDocument(pe){return this.apiService.post(`dealing/document/decline?doc_ids=${pe}`,{reason:""})}checkDocumentsStatusAndSend(pe,Ce,U){const H=[];return pe.forEach(Z=>{H.push(this.checkDocStatusAndSend(Z.docModule,Z.docType,[+Z.docId],Ce,U))}),new a.y(Z=>{(0,u.D)(H).pipe((0,_.q)(1)).subscribe(oe=>{if(oe){const Pe=[];oe.forEach(Ie=>Ie.forEach(pt=>Pe.push(pt))),Z.next(Pe),Z.complete()}})})}checkStatusesAndSendBySummaryId(pe,Ce){let U;return(0,h.D)(pe).pipe((0,l.b)(H=>this.checkDocumentStatus(H.docModule,H.docType,[H.docId])),(0,x.U)(H=>H[0]),(0,m.q)(),(0,w.w)(H=>{U=H;let Z=0,oe=0;switch(H.forEach(Ht=>{Z+=""+Ht.signStatus=="2"?1:0,oe+=""+Ht.signStatus=="1"?1:0}),(Z===H.length?"allSigned":void 0)||(oe===H.length?"isAllSignedPartially":void 0)||"error"){case"allSigned":return this.apiService.get("metinv/incoming_identification/send?id="+Ce);case"isAllSignedPartially":return(0,i.of)(U);default:return(0,d._)(()=>'Package sign document error"')}}),(0,x.U)(()=>U))}checkDocStatusAndSend(pe,Ce,U,H,Z){return this.checkDocumentStatus(pe,Ce,U).pipe((0,w.w)(oe=>{const Pe=(0,i.of)(oe),Ie=[];return oe.forEach(pt=>{2===pt.signStatus&&Ie.push(pt.document.id)}),Ie.length&&Ce!==C.o.RequestVedSupport?(this.userDataService.logData({sendDocument:!0,docModule:pe,docType:Ce,signDocIds:Ie}),this.sendDocument(pe,Ce,Ie,Z).pipe((0,y.c)(Pe))):Pe}),(0,B.K)(oe=>(0,i.of)({...oe,...H,docType:Ce})))}initRutoken(){return this.rutokenService.init().pipe((0,w.w)(pe=>pe.length?(0,i.of)(pe):(0,d._)({errorText:"Token not found"})))}initInputCode({certificate:pe,docModule:Ce,docType:U,docIds:H,documentsForSign:Z},oe){const Pe=oe?{certSerial:pe.serial,libId:pe.libId,docModule:Ce,docType:U,id:H[0]}:{certId:pe.id,docModule:Ce,docType:U,docIds:H};return Pe?.docIds?.length>1&&Z?.length>1&&(delete Pe.docType,delete Pe.docIds,this.setDocInfo(Pe,Z)),this.signDocumentRequest(Pe,+oe)}signDocumentByEmulator({certificate:pe,docModule:Ce,docType:U,docIds:H,documentsForSign:Z},oe){return this.initInputCode({certificate:pe,docModule:Ce,docType:U,docIds:H,documentsForSign:Z},oe).pipe((0,w.w)(Ie=>oe?this.checkDocumentStatus(Ce,U,H):this.checkDocStatusAndSend(Ce,U,H)))}signDocument({certificate:pe,inputCode:Ce,tokenId:U,docModule:H,docType:Z,docIds:oe,signId:Pe,actionId:Ie,action:pt,additionalData:Ht,documentsForSign:Wt,summaryDocumentId:Xe},Qe=!0){let Be;return Be=pe.cryptoTypeCode===j.d.Rutoken?this.cryptoClientSign({certificate:pe,inputCode:Ce,tokenId:U,docModule:H,docType:Z,docIds:oe,signId:Pe,documentsForSign:Wt}):this.serverSignDoc(pe.cryptoTypeCode===j.d.Paycontrol?{certificate:pe,inputCode:Ce,docModule:H,docType:Z,docIds:oe,signId:Pe,documentsForSign:Wt,actionId:Ie}:{certificate:pe,inputCode:Ce,docModule:H,docType:Z,docIds:oe,signId:Pe,documentsForSign:Wt}),Be.pipe((0,w.w)(at=>{if(pt){(0,i.of)(pt);const lt=this.getFormattedIdsForAccept(oe);if("accept"===pt)return Qe?this.acceptDocument(lt).pipe((0,w.w)(()=>this.getDocumentInfo(Z,H,lt)),(0,x.U)(Dt=>[{document:Dt[Z],signStatus:2}])):this.getDocumentInfo(Z,H,lt).pipe((0,w.w)(Dt=>2==+Object.values(Dt)[0].signStatus?this.acceptDocument(lt).pipe((0,x.U)(()=>[{document:Object.values(Dt)[0],signStatus:2}])):[{document:Object.values(Dt)[0],signStatus:+Object.values(Dt)[0].signStatus}]));if("decline"===pt)return Qe?this.declineDocument(lt).pipe((0,w.w)(()=>this.getDocumentInfo(Z,H,lt)),(0,x.U)(Dt=>[{document:Dt[Z],signStatus:2}])):this.getDocumentInfo(Z,H,lt).pipe((0,w.w)(Dt=>2==+Object.values(Dt)[0].signStatus?this.declineDocument(lt).pipe((0,x.U)(()=>[{document:Object.values(Dt)[0],signStatus:2}])):[{document:Object.values(Dt)[0],signStatus:+Object.values(Dt)[0].signStatus}]));if("accept-package-modal"===pt)return this.getDocumentInfo(Z,H,lt).pipe((0,x.U)(Dt=>[{document:Dt[Z],signStatus:2}]));if("power_of_attorney_revoke"===pt)return this.powerOfAttorneyService.saveDataForSign.pipe((0,w.w)(Dt=>this.revokeDocDateById(Dt.id).pipe((0,x.U)(Yt=>[{document:Yt[Z],signStatus:2}]))));if("identify_receipt"===pt)return this.checkStatusesAndSendBySummaryId(Wt,Xe)}return Pe?this.checkDocumentStatus(H,Z,oe):Array.isArray(Wt)&&Wt.length>0?this.checkDocumentsStatusAndSend(Wt,at,Ht):this.checkDocStatusAndSend(H,Z,oe,at,Ht)}))}getFormattedIdsForAccept(pe){return Array.isArray(pe)?pe.join(";"):pe.replaceAll(",",";")}getEndCertificateNavigation(pe){let U={};switch(pe){case I.f.On:U={list:"issue"};break;case I.f.Off:U={list:"payControl"};break;case I.f.Renew:U={list:"reissue"}}return Object.keys(U).length?{href:"../certificates",params:U}:null}getEndVEDNavigation(pe){let U={};switch(pe){case"one-window":U={tab:z.e5.ONE_WINDOW};break;case C.o.DocPlatporCurrBp:case C.o.DocPlatporCurrComplex:U={tab:z.e5.DOCUMENTS,innerTab:z.MR.COMPLEX};break;case"doc_platpor_curr":U={tab:z.e5.DOCUMENTS,innerTab:z.MR.TRANSFER};break;case"inq_conf_181":U={tab:z.e5.DOCUMENTS,innerTab:z.MR.SPD};break;case"inq_curr_181":U={tab:z.e5.DOCUMENTS,innerTab:z.MR.SVO};break;case"inq_statement_181":case"doc_transit_pay_doc":case"dealpass_renew_181":case"dealpass_contr_181":case"dealpass_cred_181":case"dealpass_close_181":case"doc_request_quotes":case"doc_interbnk_currency_transfer":U={tab:z.e5.DOCUMENTS,innerTab:z.MR.OTHER};break;case"dealpass":U={tab:z.e5.CONTRACTS}}return Object.keys(U).length?{href:"../ved",params:U}:null}getMailNavigation(pe){let Ce="";return"post2bank"===pe&&(Ce="mail",this.mailService.mailOpenedTab$.next(1)),Ce.length?{href:Ce}:null}getEndOtherDocsNavigation(pe,Ce){let U="",H={};switch(pe){case"precheck_conversion":U="currency-exchange/precheck/history";break;case"doc_general_agreement":U="risda/request";break;case"interbank_credit_deal":U="interbank-credits";break;case"collection_instruction":U="inkasso";break;case"bank_account_agreement":U="opening-currency-account-history";break;case"close_curr":U="closing-curr";break;case"request_receive_cash":U="zakaz_nalichnyh";break;case"doc_platpor_bp":U="desktop",H={operationsTab:"ForSign"};break;case C.o.DocClientCreation:U="applications";break;case"doc_accession_application":U="treasury/documents",H={section:"doc_accession_application"};break;case"cash_placement":case"irreducible_balance":case"confirm_irreducible_balance":case"confirm_cash_placement":U="deposits",H={tab:Ce??T.N.APPLICATION};break;case"depositsApplication":U="deposits",H={tab:T.N.APPLICATION};break;case"sbp_trade_service_enterprise":case"sbp_qr_cash_register":U="sbp-qr/list",H={tab:this.SBP_QR_TABS.ALL}}return U.length?{href:U,params:H}:null}goBackNavigation(pe){if(pe.cross&&"object"==typeof pe.cross)return this.router.navigate([pe.cross.href],{queryParams:pe.cross.params});const Ce=pe.docType||pe.queryParams.docType;let U="/";if(Ce){const H=this.getEndVEDNavigation(Ce);if(H)return this.router.navigate([H.href],{queryParams:H.params});const Z=this.getEndCertificateNavigation(Ce);if(Z)return this.router.navigate([Z.href],{queryParams:Z.params});const oe=this.getMailNavigation(Ce);if(oe)return this.router.navigate([oe.href],{queryParams:null});const Pe=this.getEndOtherDocsNavigation(Ce,pe?.queryParams?.fromTab);if(Pe)return this.router.navigate([Pe.href],{queryParams:Pe.params});if(this.risdaDocTypes.includes(Ce))return this.router.navigate(["/risda/documents-list"])}return pe?.queryParams?.conversionMode&&(U=`/currency-exchange/${pe.queryParams.conversionMode}/history`),this.router.navigate([U])}cryptoClientSign({certificate:pe,inputCode:Ce,tokenId:U,docModule:H,docType:Z,docIds:oe,signId:Pe,documentsForSign:Ie}){return this.rutokenService.auth(U,Ce).pipe((0,y.c)(this.rutokenService.getCertificateByHexSerial(U,pe.hexSerial)),(0,w.w)(pt=>{let Ht=[];Ie&&Ie.length>0?Ht=Ie:!Array.isArray(oe)&&oe?Ht.push({docId:oe,docModule:H,docType:Z}):Ht=oe.map(Xe=>({docId:Xe,docModule:H,docType:Z}));const Wt=Ht.map(Xe=>this.prepareAndSignDocument({...Xe,certificate:pe,tokenId:U,certId:pt.certId,signId:Pe}));return(0,u.D)(Wt)}),this.rutokenService.formattingRutokenErrorText)}refusePaycontrol(pe){return this.apiService.post("crypto/certificate/paycontrol/decline_transaction",pe)}serverSignDoc({certificate:pe,inputCode:Ce,docModule:U,docType:H,docIds:Z,signId:oe,documentsForSign:Pe,actionId:Ie}){const pt={certId:pe.id,libId:pe.libId,inputCode:Ce,docModule:U,docType:H,docIds:Z,actionId:Ie};if(oe){const Ht=Z.map(Wt=>{const Xe=pe.serial,Qe={...pt,id:Wt,certSerial:Xe};return this.deleteSign(Qe,oe)});return(0,u.D)(Ht)}return pt?.docIds?.length>1&&Pe?.length>1&&(delete pt.docType,delete pt.docIds,this.setDocInfo(pt,Pe)),this.signDocumentRequest(pt)}prepareAndSignDocument({certificate:pe,tokenId:Ce,certId:U,docModule:H,docType:Z,docId:oe,signId:Pe}){const Ie="string"==typeof oe?+oe:oe;let Ht;return this.getDocDataSign({doc_module:H,doc_type:Z,doc_id:Ie,lib_id:pe.libId}).pipe((0,w.w)(Wt=>(Ht=Wt,this.rutokenService.sign(Ce,U,Ht))),(0,w.w)(Wt=>{const Xe={certSerial:this.configUtilService.hex2dec(pe.hexSerial),id:Ie,libId:pe.libId,data:this.configUtilService.stringToByte(atob(Ht.replace(/\s/g,""))),signedData:this.configUtilService.stringToByte(atob(Wt.replace(/\s/g,""))),docModule:H,docType:Z};return Pe?this.deleteSign(Xe,Pe):this.verifySign(Xe)}))}setDocInfo(pe,Ce){pe.docInfo=Ce.reduce((U,H)=>{const Z=U.find(oe=>oe.docModule===H.docModule&&oe.docType===H.docType);return Z?Z.docIds.push(H.docId):U.push({docIds:[H.docId],docType:H.docType,docModule:H.docModule}),U},[])}static#e=this.\u0275fac=function(Ce){return new(Ce||Ge)(X.\u0275\u0275inject(p.s),X.\u0275\u0275inject(P.Pj),X.\u0275\u0275inject(E.M),X.\u0275\u0275inject(R.X),X.\u0275\u0275inject(n.eN),X.\u0275\u0275inject(ne.$),X.\u0275\u0275inject(G.j),X.\u0275\u0275inject(ce.F0),X.\u0275\u0275inject(xe.Y))};static#t=this.\u0275prov=X.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac})}return Ge})()},40929:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>ct});var n=t(6146),e=t(17489),d=t(15439),a=t.n(d),u=t(61135),h=t(39646),l=t(4128),m=t(82805),x=t(54004),O=t(70262),L=t(18505),w=t(63900),B=t(95698),_=t(82722),y=t(3949),$=t(95404),C=t(66439),T=t(831),j=t(94650),I=t(80529),F=t(15644),z=t(3751),X=t(16611),p=t(37601),P=t(36895),E=t(98504),R=t(44509),ne=t(29198),G=t(39486),ce=t(16294),xe=t(9149),we=t(46520);const Ge="dd.MM.yyyy";let ct=(()=>{class pe{constructor(U,H,Z,oe,Pe,Ie,pt,Ht,Wt,Xe,Qe,Be,at,lt){this.httpClient=U,this.configUtilService=H,this.apiService=Z,this.translation=oe,this.userDataService=Pe,this.datePipe=Ie,this.currencyPipe=pt,this.currencySymbolPipe=Ht,this.vedService=Wt,this.productService=Xe,this.util=Qe,this.risdaDocumentDetailService=Be,this.toastService=at,this.svetoforService=lt,this.paymentData$=new u.X(null),this.advancedAccept$=new u.X(null),this.advancedAcceptEdit$=new u.X(null),this.annulmentOrder$=new u.X(null),this.paymentsList$=new u.X(null),this.accountNumberPipe=new C.k}static downloadBlob(U,H){const Z=URL.createObjectURL(U),oe=document.createElementNS("http://www.w3.org/1999/xhtml","a");oe.setAttribute("href",Z),oe.style.cssText="display: none",oe.download=H,document.body.appendChild(oe),oe.addEventListener("click",()=>{document.body.removeChild(oe)}),oe.click()}static checkDocumentByProps(U,H,Z,oe){if((H.docNumber||"").toLowerCase().includes(U.toLowerCase()))return!0;if(oe)for(const Pe of oe){let Ie=H[Pe]||"";if("docDate"===Pe&&Ie&&(Ie=a()(H[Pe]).format("DD.MM.YYYY")),Ie.toLowerCase().includes(U.toLowerCase()))return!0}if(`${H.amount||""}`.toLowerCase().includes(U.toLowerCase()))return!0;if(H.currCode){const Pe=`${H.currCode||""}`;if(Pe.includes(U.toLowerCase()))return!0;const Ie=Z.find(pt=>`${pt.code}`===Pe);if(Ie&&`${Ie.isoCode}`.toLowerCase().includes(U.toLowerCase()))return!0}return!1}static getSuccessCustomMessage(U,H,Z){if("decline"===Z)switch(U){case"conversion_deal":return`\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u041a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0434\u0435\u043b\u043a\u0438 \u2116${H.dealNumber} \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e`;case"staging_exchange_forward":return`\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u041f\u043e\u0441\u0442\u0430\u0432\u043e\u0447\u043d\u044b\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u0432\u0430\u0440\u0434 \u2116${H.dealNumber} \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e`;case"settlement_exchange_forward":return`\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u0432\u0430\u0440\u0434 \u2116${H.dealNumber} \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e`;case"doc_netting":return`\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u041d\u0435\u0442\u0442\u0438\u043d\u0433\u0430 \u2116${H.dealNumber} \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e`;case"return_floating_margin":return`\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u043c\u0430\u0440\u0436\u0435\u0432\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u2116${H.dealNumber} \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e`;case"interbank_credit_deal":return"\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u0411\u0430\u043d\u043a\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d \u0432 \u0441\u0442\u0430\u0442\u0443\u0441 \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d";default:return null}switch(U){case"doc_general_agreement":return"\u0417\u0430\u044f\u0432\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0431\u0430\u043d\u043a. \u0421\u043a\u043e\u0440\u043e \u0441 \u0412\u0430\u043c\u0438 \u0441\u0432\u044f\u0436\u0435\u0442\u0441\u044f \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u0434\u043b\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432.";case"conversion_deal":case"staging_exchange_forward":case"settlement_exchange_forward":case"doc_netting":case"return_floating_margin":case"pay_initial_margin":return'\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0412\u0430\u043c\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d \u0432 \u0440\u0430\u0437\u0434\u0435\u043b "\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432"';case"pay_floating_margin":return'\u0410\u043a\u0446\u0435\u043f\u0442\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0412\u0430\u043c\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d \u0432 \u0440\u0430\u0437\u0434\u0435\u043b "\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432"';default:return null}}static getPlatporCurrPieces(U){return[{type:"titleWithDesc",data:{title:"\u0421\u0443\u043c\u043c\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430",desc:U.amount}},{type:"titleWithDesc",data:{title:"\u0412\u0430\u043b\u044e\u0442\u0430",desc:U.currCode}},{type:"titleWithDesc",data:{title:"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0434\u0430\u0442\u0435\u043b\u044c",desc:U.altIntName}},{type:"titleWithDesc",data:{title:"\u0421\u0447\u0435\u0442 \u0434\u0435\u0431\u0435\u0442\u043e\u0432\u0430\u043d\u0438\u044f",desc:U.accNumber}},{type:"titleWithDesc",data:{title:"\u0411\u0430\u043d\u043a \u0431\u0435\u043d\u0438\u0444\u0438\u0446\u0438\u0430\u0440\u0430",desc:U.corrBankName}},{type:"titleWithDesc",data:{title:"SWIFT \u0411\u0430\u043d\u043a\u0430 \u0431\u0435\u043d\u0438\u0444\u0438\u0446\u0438\u0430\u0440\u0430",desc:U.corrBankSwift}},{type:"titleWithDesc",data:{title:"\u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430 \u0431\u0435\u043d\u0438\u0444\u0438\u0446\u0438\u0430\u0440\u0430",desc:U.corrAccNumber}},{type:"titleWithDesc",data:{title:"\u0411\u0435\u043d\u0438\u0444\u0438\u0446\u0438\u0430\u0440",desc:U.corrFullname}},{type:"titleWithDesc",data:{title:"\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0430",desc:U.description}}]}getNextDocumentMetadata(U,H){return this.apiService.get(`document/number/next?doc_module=${U}&doc_type=${H}`)}getDocumentById(U,H,Z,oe){return this.apiService.get(`document/${oe?"visual/":""}byid?doc_module=${U}&doc_type=${H}&doc_ids=${Z}`)}isAllowedAction(U,H){return this.getDocumentById(U.docModule,U.docType,U.id,!0).pipe((0,x.U)(Z=>{const oe=Z?Object.keys(Z)[0]:null,Pe=Z[oe]?Z[oe]:null;return!!Pe?.actions&&this.configUtilService.getArray(Pe.actions).includes(H)}),(0,O.K)(()=>(0,h.of)(!1)))}getPage(U){return this.apiService.post("pageable/document/visual/page",U)}getDocumentByIdParsed(U,H,Z,oe){return this.getDocumentById(U,H,Z,oe).pipe((0,x.U)(Pe=>(1===Object.keys(Pe).length&&(Pe=Pe[Object.keys(Pe)[0]]),Pe)))}getDocumentsByType(U,H,Z,oe){return this.apiService.get(`document/${oe?"visual/":""}list?doc_module=${U}&doc_type=${H}${Z?`&doc_type=${Z}`:""}`)}sendDocument(U,H,Z){return this.apiService.put(`document/send?doc_module=${U}&doc_type=${H}&doc_ids=${Z}`,{})}isNewSavingTypeExist(U){return this.apiService.get(`metinv/mail2client/save/swift?doc_ids=${U}`).pipe((0,O.K)(H=>(0,h.of)(!!H.errorCode)))}getFile(U,H=!1,Z="file.pdf",oe=!1,Pe){return H?this.apiService.get(U,Pe,"blob").pipe((0,x.U)(Ie=>(pe.downloadBlob(Ie,Z),U))):oe?this.apiService.get(U,Pe,"blob").pipe((0,x.U)(Ie=>(window.open(URL.createObjectURL(Ie)),U))):(window.open(`${this.configUtilService.adminConfig.persURL}${U}`),(0,h.of)(U))}printViewHTML(U){return this.apiService.get(`print/html?&doc_ids=${U}`,null,"arraybuffer").pipe((0,x.U)(H=>{const Z=new Blob([H],{type:"text/html"}),oe=URL.createObjectURL(Z);window.open(oe)}))}putDocumentIntoBank(U,H){return H||(H="doc_platpor"),this.apiService.put(`document/send?doc_module=ibankul&doc_type=${H}&doc_ids=${U}`)}getDocumentSettingsByDocType(U,H,Z=!1){return this.apiService.get("document/settings",{docType:U,docModule:H,needSync:Z}).pipe((0,x.U)(oe=>({docSettings:oe?.docSettings,debitAccounts:this.configUtilService.getArray(oe?.debitAccounts),creditAccounts:this.configUtilService.getArray(oe?.creditAccounts),chargeAccounts:this.configUtilService.getArray(oe?.chargeAccounts)})))}getDocuments(U,H,Z){return this.apiService.get(`document/byid?doc_module=${H||"ibankul"}&doc_type=${Z||"doc_platpor"}&doc_ids=${U.join(";")}`).pipe((0,x.U)(Ie=>{if(Ie)return this.configUtilService.getArray(Ie[Object.keys(Ie)[0]]);throw{errorText:"No documents found"}}))}getDocumentEdit(U,H,Z){return this.apiService.get(`document/byid?doc_module=${Z||"ibankul"}&doc_type=${H||"doc_platpor"}&doc_ids=${U}`).pipe((0,x.U)(Ie=>Ie[Object.keys(Ie)[0]]),(0,L.b)(Ie=>{Ie.corrName=Ie.corrFullname,Ie.commission=Ie.comissionAmount,Ie.payerBankName=Ie.bankName,Ie.payerBik=Ie.bankBik}))}getPaymentRequisitesRequest(U){return this.apiService.get("/client_notification/payment_transfer",{id:U})}createDocumentCopy(U,H,Z){return this.apiService.post(`copy/document/${U}`,{}).pipe((0,w.w)(oe=>this.getDocumentEdit(oe.id,H,Z)))}createDocumentTemplate(U,H){return this.apiService.post(`template/create_by_id?document_id=${U}`,H)}deleteDocument(U){const H=Array.isArray(U)?`delete/document?doc_ids=${U}`:`metinv/delete/document/${U}`;return this.apiService.delete(H)}deleteMultipleDocuments(U){return this.apiService.delete("metinv/delete/document/pack",{docIds:U})}getFavoritesList(U){return this.userDataService.getClientInfoOrganization().pipe((0,w.w)(H=>(0,l.D)([this.configUtilService.getConfigs(),this.svetoforService.isSvetoforAccessSetting()]).pipe((0,w.w)(([Z,oe])=>Z?(U.kontur_focus="paid"===H.konturFocusSubscr&&oe,this.apiService.get("template/list/with_images",U).pipe((0,x.U)(Pe=>Pe.templateWithImage),(0,x.U)(Pe=>this.configUtilService.getArray(Pe)),(0,x.U)(Pe=>Pe.filter(Ie=>"doc_platpor"===Ie.docType||"doc_platpor_curr"===Ie.docType||"doc_payment_request_outgoing"===Ie.docType||"inq_conf_181"===Ie.docType||"inq_curr_181"===Ie.docType)),(0,L.b)(Pe=>{Pe.forEach(Ie=>{if(Ie.imageRef)Ie.image=`${Z.data.host}/${Ie.imageRef}`;else if(Ie.image)Ie.image=`data:image/png;base64,${Ie.image}`;else{let pt;pt="UL"===Ie.corrType?Ie.subCorrTypeUl:"doc_platpor_curr"===Ie.docType?"bf":Ie.corrType,Ie.currentCorrType=pt?pt.toLowerCase():""}Ie.image&&(Ie.image=this.getLinkPicture(Ie.image))})}),(0,x.U)(Pe=>this.configUtilService.parseSvetoforData(Pe)),(0,O.K)(()=>(0,h.of)([])))):(0,h.of)([])))))}requestTemplateById(U){return this.apiService.get(`template/get_by_id?template_id=${U}`)}changeTemplateName(U,H){return this.apiService.post("template/modify",{id:U,name:H})}changeDocumentTemplate(U){return this.requestTemplateById(U).pipe((0,L.b)(H=>{H.corrName=H.corrFullname,H.commission=H.comissionAmount,H.payerBankName=H.bankName,H.payerBik=H.bankBik}))}deleteDocumentTemplate(U){return this.apiService.post(`template/delete?template_id=${U}`,{})}deleteTemplateLogo(U){return this.apiService.get(`template/${U}/delete_image`)}deleteCounterpartLogo(U){return this.apiService.get(`dic/corr/${U}/delete_image`)}changeDocumentTemplateName(U){return this.apiService.post("template/modify",U)}postLogoTemplate(U,H){return this.apiService.post(`template/${U}/image`,H)}postLogoCounterpart(U,H){return this.apiService.post(`dic/corr/${U}/image`,H)}sendRequisites(U,H,Z){const oe={id:U};return H&&(oe.email=H),Z&&(oe.phone=Z),this.apiService.post("send/transfer_detail/product",oe)}declineDocument(U){return this.apiService.post("document/decline",{docId:U})}revokeDocument(U){return this.apiService.post("document_action/execute",{docId:U,actionName:"revoke_document",description:"\u041e\u0442\u043e\u0437\u0432\u0430\u043d \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c"})}executeActionDocument(U,H,Z){return this.apiService.post("document_action/execute",{docId:U,actionName:H,description:Z||"\u041e\u0442\u043e\u0437\u0432\u0430\u043d \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c"})}revokeRequest(U,H,Z){return this.apiService.post("revoke/without_signature",{revokeDocId:U,revokeReason:Z,revokedDocModule:"ibankul_curr",revokedDocType:H})}declineRequest(U){return this.apiService.get("document_action/execute?actionName=decline_request",{docId:U})}getLastDocuments(U,H){return this.apiService.post("last_documents_full",U,H)}getLastDocumentsPageable(U){return this.apiService.post("metinv/pageable/document/multi_types_page_v2",U).pipe((0,x.U)(H=>H?.documents&&!e.isEmpty(H.documents)?{documents:Array.isArray(H.documents)?[...H.documents]:[H.documents],page:H.page}:Object.prototype.hasOwnProperty.call(H,"page")&&!Object.prototype.hasOwnProperty.call(H,"documents")?{documents:[],page:H.page}:null))}getDocDetails(U,H,Z,oe=""){return this.productService.getProducts().pipe((0,L.b)(Pe=>this.products=Pe),(0,w.w)(()=>U().pipe((0,w.w)(Pe=>Pe?.fixedRateId?this.vedService.requestDocumentInfo({docType:"fixed_rate",id:Pe.fixedRateId,docModule:"ibankul_curr"}).pipe((0,x.U)(Ie=>({...Pe,..."BY_MARKET"===Ie.fixedRateMode&&{point:Ie.point}}))):(0,h.of)(Pe)),(0,x.U)(Pe=>(a()(Pe.docDate,"YYYY-MM-DD").isAfter(new Date)&&this.toastService.show("Business day error","warning"),{title:this.getCardTitle(H,Pe,oe),signParams:this.getSignParams(H,Z,Pe),buttonActions:this.getButtonActions(H,Pe,Z),greyBlockPieces:this.getGreyBlockPieces(H,Pe),greyBlockPieces$:this.getGreyBlockPicesAsync(H,Pe),headerInfo:this.getHeaderInfo(H,Pe),successCustomMessage:pe.getSuccessCustomMessage(H,Pe,oe),document:Pe})))))}withdrawVedDocument(U,H){const oe={docDate:a()(new Date).format("YYYY-MM-DD"),cancelDocId:U,cause:H};return this.apiService.post("request/process/ul_request_cancel",oe)}getFavoritesListNew(U){return this.userDataService.getClientInfoOrganization().pipe((0,w.w)(H=>this.configUtilService.getConfigs().pipe((0,w.w)(Z=>Z?this.apiService.post("metinv/template/page/with_images",U).pipe((0,x.U)(oe=>({page:oe.page,documents:oe.templateWithModelList})),(0,O.K)(()=>(0,h.of)([]))):(0,h.of)([])))))}getSignParams(U,H,Z){return H===T.e5.DOCUMENTS||H===T.e5.DOCUMENTS_FOR_SIGN||"depositsConfirm"===H&&"new"!==Z.status||"depositsApplication"===H&&"new"!==Z.status?null:{docId:Z.id,docType:Z.docType,docModule:Z.docModule,noDefaultMessage:!0}}getButtonActions(U,H,Z){let oe;return"documents"===Z&&"doc_transit_pay_doc"!==U?(oe=["print","copy","delete","copy","create_template","sign_list"],["dealpass_contr_181"].includes(U)&&"decline"!==H.status&&(oe=oe.filter(Ie=>"copy"!==Ie))):"cash_placement"===U||"irreducible_balance"===U?(oe=["print","sign_list"],"for_send_abs"===H.status&&oe.push("withdraw"),H.actions=oe):"confirm_cash_placement"===U||"confirm_irreducible_balance"===U?(oe=["print"],H.actions=oe):oe="doc_request_quotes"===U?["print","update","delete","copy","sign_list"]:"bank_account_agreement"===U?["print","update","delete"]:["doc_currbuy","doc_currsell","doc_platpor_conv","doc_curr_agent_factoring","precheck_conversion"].includes(U)?["print"]:"doc_transit_pay_doc"===U?["print","delete"]:"pay_floating_margin"===U||"pay_initial_margin"===U||"return_floating_margin"===U||"conversion_deal"===U||"settlement_exchange_forward"===U||"doc_netting"===U||"doc_general_agreement"===U||"staging_exchange_forward"===U||U===n.o.DocClientCreation||"interbank_credit_deal"===U?["print"]:["print","update","delete","copy","create_template","sign_list"],this.util.makeButtonActions(H,oe,Ie=>"copy"===Ie?{fromTab:Z}:"print"!==Ie||"confirm_cash_placement"!==U&&"confirm_irreducible_balance"!==U&&"cash_placement"!==U&&"irreducible_balance"!==U?void 0:{docId:H.id,inPopup:!1})}getGreyBlockPieces(U,H){const Z=(Object.keys($.u6).includes(U),H);switch(U){case"dealpass_contr_181":return this.getContrPieces(Z);case"dealpass_cred_181":return this.getCredPieces(Z);case"inq_curr_181":return this.getCurrPieces(Z);case"inq_conf_181":return this.getConfPieces(Z);case"dealpass_renew_181":return this.getRenewPieces(Z);case"dealpass_close_181":return this.getClosePieces(Z);case"inq_statement_181":return this.getStatementPieces(Z);case"doc_currsell":case"doc_currbuy":return Z.acceptImmediately!==y.JM?this.getCurrExchangePieces(Z):this.getCurrExchangeAutoPieces(Z);case"doc_curr_agent_factoring":return this.getCurrExchangePieces(Z);case"doc_platpor_conv":return this.getCurrExchangeConversionPieces(Z);case"doc_request_quotes":return this.getQuotationRequestPieces(Z);case"cash_placement":case"irreducible_balance":case"confirm_cash_placement":case"confirm_irreducible_balance":return this.getDeposits(Z,U);case"doc_general_agreement":return this.risdaDocumentDetailService.getGeneralAgreementRisda(Z);case"conversion_deal":return this.risdaDocumentDetailService.getConversionDeal(Z);case"doc_netting":return this.risdaDocumentDetailService.getNettings(Z);case"staging_exchange_forward":return this.risdaDocumentDetailService.getStagingExchangeForward(Z);case"pay_floating_margin":return this.risdaDocumentDetailService.getPayFloatingMargin(Z);case"pay_initial_margin":return this.risdaDocumentDetailService.getPayInitialMargin(Z);case"return_floating_margin":return this.risdaDocumentDetailService.getReturnFloatingMargin(Z);case"settlement_exchange_forward":return this.risdaDocumentDetailService.getSettlementExchangeForward(Z);case"interbank_credit_deal":return this.getInterbankCreditDeal(Z);case"doc_platpor_curr":case n.o.DocPlatporCurrBp:return pe.getPlatporCurrPieces(Z);default:return[]}}getGreyBlockPicesAsync(U,H){switch(U){case"doc_transit_pay_doc":return this.getTransitPayDocPieces(H);case"bank_account_agreement":return this.getBankAccountAgreementInfo(H);case"precheck_conversion":return this.getPrecheckPieces(H);default:return(0,h.of)([])}}getHeaderInfo(U,H){switch(U){case"doc_currsell":case"doc_currbuy":return H.acceptImmediately!==y.JM?this.getCurrExchangeHeaderInfo(H):void 0;case"doc_curr_agent_factoring":return this.getCurrExchangeHeaderInfo(H);case"doc_transit_pay_doc":return this.getTransitPayDocHeaderInfo(H);case"doc_platpor_conv":return this.getCurrExchangeConversionHeaderInfo(H)}}getContrPieces(U){let H=[];return U.nonresidentList=this.util.getArray(U.nonresidentList),U.nonresidentList[0]&&(H.push({type:"titleWithDesc",data:{title:"Contract title",desc:U.nonresidentList[0].nonresidentName}}),H.push({type:"titleWithDesc",data:{title:"Country",desc:U.nonresidentList[0].countryCode}}),H.push({type:"separator"})),H=[...H,{type:"titleWithDesc",data:{title:"Code contract type",desc:U.exportType}},{type:"listInfo",data:{listInfo:[{capture:"Contract number",value:U.conNumber},{capture:"Subscription date",value:this.datePipe.transform(U.conDate,Ge)},{capture:"Commitment date",value:this.datePipe.transform(U.conEndDate,Ge)},{capture:"Amount",value:this.currencyPipe.transform(U.conAmount)||this.translation.translate("Without amount")},{capture:"Currency",value:U.conCurrenceCode}]}}],U.declineInfo&&H.push({type:"titleWithDesc",data:{title:"Decline info",desc:U.declineInfo}}),this.addAttach(U,H),H}addAttach(U,H){(Object.prototype.hasOwnProperty.call(U,"attach")||Object.prototype.hasOwnProperty.call(U,"attachments"))&&("separator"!==H[H.length-1].type&&H.push({type:"separator"}),H.push({type:"attach",data:{attach:U.attach||U.attachments,docId:U.id}}))}getCredPieces(U){let H=[];if(U.nonresidentList=this.util.getArray(U.nonresidentList),U.nonresidentList[0]){const Z=U.nonresidentList[0];H=[{type:"listInfo",data:{listInfo:[{capture:"Name of counterparty",value:Z.nonresidentName},{capture:"Country",value:Z.countryCode},{capture:"Subscription date",value:this.datePipe.transform(U.contrDate,Ge)}]}}]}return H=[...H,{type:"listInfo",data:{listInfo:[{capture:"Contract number",value:U.contrNumber||"\u0411\u041d"},{capture:"Subscription date",value:this.datePipe.transform(U.dpDateBank,Ge)},{capture:"Commitment date",value:this.datePipe.transform(U.contrEndDate,Ge)},{capture:"Amount",value:this.currencyPipe.transform(U.contrAmount)||this.translation.translate("Without amount")},{capture:"Currency",value:U.contrCurrCode}]}}],U.declineInfo&&H.push({type:"titleWithDesc",data:{title:"Decline info",desc:U.declineInfo}}),this.addAttach(U,H),H}getDeposits(U,H){("cash_placement"===H||"confirm_cash_placement"===H)&&(U.startDate=U.placementDate,U.endDate=U.withdrawalDate),U.currCode||(U.currCode=U.contractCurr);const Z=[{type:"titleWithDesc",data:{title:"Amount",desc:U.amount+" "+this.currencySymbolPipe.transform(U.currCode)}},{type:"titleWithDesc",data:{title:"Placement date",desc:this.datePipe.transform(U.startDate,Ge)}},{type:"titleWithDesc",data:{title:"Return date",desc:this.datePipe.transform(U.endDate,Ge)}},{type:"titleWithDesc",data:{title:"Performer",desc:U.employee}}];return("confirm_cash_placement"===H||"confirm_irreducible_balance"===H)&&Z.push({type:"titleWithDesc",data:{title:"Deposit percent",desc:parseFloat(U.interestRate).toFixed(2)}},{type:"titleWithDesc",data:{title:"Conditions of early demand",desc:U.conditions}},{type:"titleWithDesc",data:{title:"Deposit interest payment term",desc:this.datePipe.transform(U.withdrawalPercentDate,Ge)}},{type:"titleWithDesc",data:{title:"Deposit account",desc:U.accNumber}}),U.declineInfo&&Z.push({type:"titleWithDesc",data:{title:"Refuse cause",desc:U.declineInfo}}),Z}getCurrPieces(U){let H=[{type:"titleWithDesc",data:{title:"Resident acc number",desc:U.accNumber}},{type:"titleWithDesc",data:{title:"Performer",desc:U.employee}},{type:"separator"}];if(U.deal=this.util.getArray(U.deal),U.deal[0]){const Z=U.deal[0];H=[...H,{type:"titleWithDesc",data:{title:"Data",desc:this.translation.translate("Base number")+Z.docNumber}},{type:"listInfo",data:{listInfo:[{capture:"Line number",value:Z.numberLine},{capture:"Operation date",value:this.datePipe.transform(Z.transDate,Ge)},{capture:"Operation amount",value:this.currencyPipe.transform(Z.amount)},{capture:"Currency",value:Z.payCurrCode},{capture:"Operations type code",value:Z.operCode},{capture:"Contract number",value:Z.contrNumber},{capture:"Operation amount in contract currency",value:this.currencyPipe.transform(Z.psAmountCurr)},{capture:"Expected repatriation period",value:Z.expectDate},{capture:"Note",value:Z.remark}]}}]}return this.addAttach(U,H),H}getConfPieces(U){const H=[{type:"titleWithDesc",data:{title:"Contract number",desc:this.translation.translate("Contract")+" \u2116 "+U.psnumber}},{type:"titleWithDesc",data:{title:"Performer",desc:U.employee}},{type:"separator"}];return U.confDoc=this.util.getArray(U.confDoc),U.confDoc[0]&&U.confDoc.forEach(Z=>{H.push({type:"titleWithDesc",data:{title:"Reference number",desc:Z.docNumber}},{type:"listInfo",data:{listInfo:[{capture:"pdDate",value:this.datePipe.transform(Z.docDate,Ge)},{capture:"Doc code",value:Z.docCode},{capture:"Delivery tag",value:Z.fdelivery},{capture:"Document currency",value:Z.currCode1},{capture:"Sum in doc currency",value:this.currencyPipe.transform(Z.amountCurrency1)},{capture:"Sum for sign",value:this.currencyPipe.transform(Z.amountCurrency2)}]}})}),this.addAttach(U,H),H}getRenewPieces(U){const H=[];let Z;if(U.dealpassNumber=this.util.getArray(U.dealpassNumber),U.dealpassNumber[0]&&U.dealpassNumber.forEach(oe=>{const Pe=this.translation.translate("VED contract"),Ie=this.translation.translate("By"),pt=this.datePipe.transform(oe.dpDate,Ge);H.push({type:"titleWithDesc",data:{title:"Contract number",desc:`${Pe} \u2116 ${oe.dpNum} ${Ie} ${pt}`}})}),H.push({type:"titleWithDesc",data:{title:"Performer",desc:U.employee}}),H.push({type:"separator"}),Object.prototype.hasOwnProperty.call(U,"dpCredInfoChanges")&&(Z="dpCredInfoChanges"),Object.prototype.hasOwnProperty.call(U,"dpContrInfoChanges")&&(Z="dpContrInfoChanges"),U[Z]&&(U[Z]=this.util.getArray(U[Z])),Z&&U[Z]&&Array.isArray(U[Z])&&U[Z].length){const oe=U[Z][0];H.push({type:"titleWithDesc",data:{title:"Section of the statement",desc:oe.section}}),H.push({type:"listInfo",data:{listInfo:[{capture:"Item of section of the statement",value:oe.sectionItem},{capture:"Current value",value:oe.currentValue},{capture:"New value",value:oe.newValue},{capture:"Reason for change",value:oe.docInfo}]}})}return U.declineInfo&&H.push({type:"titleWithDesc",data:{title:"Decline info",desc:U.declineInfo}}),this.addAttach(U,H),H}getClosePieces(U){const H=[];return U.dealPassList=this.util.getArray(U.dealPassList),U.dealPassList[0]&&U.dealPassList.forEach(Z=>{const oe=this.translation.translate("By"),Pe=this.datePipe.transform(Z.dpDate,Ge);H.push({type:"titleWithDesc",data:{title:"Contract or credit number",desc:`${Z.dpNum} ${oe} ${Pe}`}})}),H.push({type:"titleWithDesc",data:{title:"Performer",desc:U.employeeFio}}),H.push({type:"titleWithDesc",data:{title:"Reason for withdrawal",desc:`${U.groundCode} ${U.groundText}`}}),U.declineInfo&&H.push({type:"titleWithDesc",data:{title:"Decline info",desc:U.declineInfo}}),this.addAttach(U,H),H}getStatementPieces(U){return[{type:"titleWithDesc",data:{title:"Contract or credit statement",desc:U.dpNum}},{type:"separator"},{type:"titleWithDesc",data:{title:"Customer title",desc:U.fullName}},{type:"listInfo",data:{listInfo:[{capture:"INN/KIO",value:U.inn},{capture:"Bank",value:U.bankName},{capture:"Contract or loan agreement",value:U.dpnum}]}}]}getOnlineConversionPieces(U){const H="\u041f\u043e\u043a\u0443\u043f\u043a\u0430 \u0432\u0430\u043b\u044e\u0442\u044b"===U.documentType;return[{type:"titleWithDesc",data:{title:H?"Write-off Account":"Deposit Account",desc:H?this.products.find(oe=>oe.id===U.debitAccId).formattedNumber:this.products.find(oe=>oe.id===U.creditAccId).formattedNumber}},{type:"titleWithDesc",data:{title:"Rate type",desc:U.fixedRate?function(oe){switch(oe){case"BY_BANK":return"\u041f\u043e \u043a\u0443\u0440\u0441\u0443 \u0411\u0430\u043d\u043a\u0430";case"BY_CLIENT":return"\u041f\u043e \u043a\u0443\u0440\u0441\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430";case"BY_MARKET":return"\u041f\u043e \u0440\u044b\u043d\u043e\u0447\u043d\u043e\u043c\u0443 \u043a\u0443\u0440\u0441\u0443"}}(U.fixedRate.fixedRateMode):""}},{type:"titleWithDesc",data:{title:"\u041a\u0443\u0440\u0441 \u0441\u0434\u0435\u043b\u043a\u0438",desc:U.rate}},{type:"titleWithDesc",data:{title:H?"\u0421\u0443\u043c\u043c\u0430 \u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f":"\u0421\u0443\u043c\u043c\u0430 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f",desc:this.getAmount(U,H)}}]}getCurrExchangePieces(U){const H=[],Z="0.00"!==U.amountCredit,oe=this.products.find(at=>at.id===(Z?U.debitAccId:U.creditAccId)),Pe=Z?U.amountDebit:U.amountCredit,Ie="0.00"!==Pe,pt={type:"titleWithDesc",data:{title:Z?"Debit amount":"Credit amount",desc:this.getAmount(Pe,Z?U.debitAccCurr:U.creditAccCurr)}},Ht={type:"titleWithDesc",data:{title:"doc_currsell"===U.docType?"Min currency rate":"Max currency rate",desc:Number(U.clientRequestRate).toFixed(4)}},Wt=!U.draftDealId&&U.clientRequestRate,Xe=U.point?{type:"titleWithDesc",data:{title:"\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f",desc:Number(U.point).toFixed(2)+"%"}}:null;if(oe){const at=Z?{title:"Write-off Account",desc:this.accountNumberPipe.transform(oe.number)}:{title:"Deposit Account",desc:this.accountNumberPipe.transform(oe.number)};H.push({type:"titleWithDesc",data:at})}Ie&&H.push(pt),H.push({type:"titleWithDesc",data:{title:"Rate type",desc:this.translation.translate(U.dealType)}});const Qe={type:"titleWithDesc",data:{title:"Deal rate",desc:U.absConvCurrencyRate}},Be=U.absConvCurrencyRate&&Boolean(U.absConvCurrencyRate)&&U.draftDealId;if(Wt&&H.push(Ht),Be&&H.push(Qe),Xe&&H.push(Xe),typeof U.acceptImmediately<"u"){const at=this.translation.translate("\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435=\u041d\u0435\u0437\u0430\u043c\u0435\u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e"===U.acceptImmediately?"Accept immediately message":"Not accept immediately message");H.push({type:"titleWithDesc",data:{title:"Execution",desc:at}})}return H}getCurrExchangeAutoPieces(U){const H=parseFloat(U.amountCredit)>0?`+${this.currencyPipe.transform(U.amountCredit||"0.00")} ${this.currencySymbolPipe.transform(U.creditAccCurr)}`:"",Z=parseFloat(U.amountDebit)>0?`-${this.currencyPipe.transform(U.amountDebit||"0.00")} ${this.currencySymbolPipe.transform(U.debitAccCurr)}`:"";return[{type:"precheck",data:{doc:{title:this.translation.translate("doc_currbuy"===U.docType?"Buy request":"Sell request"),docNum:` \u2116${U.docNumber||""}`,description:` ${U.dealName}`,greenStr:H,redStr:Z}}},{type:"titleWithDesc",data:{title:"Deposit Account",desc:this.accountNumberPipe.transform(U.creditAccNumber)}},{type:"titleWithDesc",data:{title:"Write-off Account",desc:this.accountNumberPipe.transform(U.debitAccNumber)}}]}getPrecheckPieces(U){return this.productService.getProducts().pipe((0,B.q)(1),(0,x.U)(H=>{const Z=H.find(pt=>pt.id===U.creditAccId),oe=H.find(pt=>pt.id===U.debitAccId),Pe=parseFloat(U.creditAmount)>0?`+${this.currencyPipe.transform(U.creditAmount||"0.00")} ${this.currencySymbolPipe.transform(U.creditCurrCodeIso)}`:"",Ie=parseFloat(U.debitAmount)>0?`-${this.currencyPipe.transform(U.debitAmount||"0.00")} ${this.currencySymbolPipe.transform(U.debitCurrCodeIso)}`:"";return[{type:"precheck",data:{doc:{title:this.translation.translate("RUR"===U.creditCurrCodeIso?"Sell request":"Buy request"),docNum:` \u2116${U.docNumber||""}`,description:`. ${this.translation.translate("BY_BANK"===U.fixedRateMode?"FromBank":"FromMarket")}`,greenStr:Pe,redStr:Ie}}},{type:"titleWithDesc",data:{title:"Deposit Account",desc:this.accountNumberPipe.transform(Z?Z.number:"")}},{type:"titleWithDesc",data:{title:"Write-off Account",desc:this.accountNumberPipe.transform(oe?oe.number:"")}}]}))}getCurrExchangeConversionPieces(U){const H=U.amountCredit&&"0.00"!==U.amountCredit,Z=H?U.debitAccId:U.creditAccId,oe=this.products.find(Ie=>Ie.id===Z);return[{type:"titleWithDesc",data:H?{title:"Write-off Account",desc:this.accountNumberPipe.transform(oe.number)}:{title:"Deposit Account",desc:this.accountNumberPipe.transform(oe.number)}},{type:"titleWithDesc",data:{title:"Rate type",desc:U.dealName}}]}getQuotationRequestPieces(U){return[{type:"titleWithDesc",data:{title:"Deal direction",desc:this.getDealDirection(U.dealDirect)}},{type:"titleWithDesc",data:{title:"Performer",desc:U.employee}},{type:"titleWithDesc",data:{title:"Phone number",desc:U.employeePhone}},{type:"titleWithDesc",data:{title:"Transaction amount",desc:U.amount}},{type:"titleWithDesc",data:{title:"Currency",desc:U.currCode}},{type:"titleWithDesc",data:{title:"Counter currency",desc:U.counterCurrCode}}]}getTransitPayDocHeaderInfo(U){return{sum:`+ ${this.currencyPipe.transform(U.transAmountTotal)} ${this.currencySymbolPipe.transform(U.transCurrCodeIso)}`,accNumber:U.accCredit}}getBankAccountAgreementInfo(U){return this.vedService.getCurrencies().pipe((0,x.U)(H=>{const Z=H.find(Pe=>Pe.code===U.currCode||Pe.isoCode===U.currCode);return[{type:"titleWithDesc",data:{title:"\u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",desc:U.intFullName}},{type:"titleWithDesc",data:{title:"\u0412\u0430\u043b\u044e\u0442\u0430 \u0441\u0447\u0435\u0442\u0430",desc:`${Z?Z.name:""} (${Z?Z.code:""})`}}]}))}getCurrExchangeHeaderInfo(U){const H="0.00"!==U.amountCredit,Z=H?U.amountCredit:U.amountDebit,oe=H?U.creditAccCurr:U.debitAccCurr,Pe=H?U.creditAccId:U.debitAccId,Ie=this.products.find(pt=>pt.id===Pe);return Ie?{sum:`${this.currencyPipe.transform(Z)} ${this.currencySymbolPipe.transform(oe)}`,...H&&{creditAcc:Ie.number},...!H&&{debitAcc:Ie.number}}:{sum:`${this.currencyPipe.transform(Z)} ${this.currencySymbolPipe.transform(oe)}`}}getCurrExchangeConversionHeaderInfo(U){const H=U.amountCredit&&"0.00"!==U.amountCredit,Z=H?U.creditAccCurr:U.debitAccCurr,oe=H?U.amountCredit:U.amountDebit,Pe=H?U.creditAccId:U.debitAccId,Ie=this.products.find(pt=>pt.id===Pe);return{sum:`${this.currencyPipe.transform(oe)} ${this.currencySymbolPipe.transform(Z)}`,...U.amountCredit&&"0.00"!==U.amountCredit&&{creditAcc:Ie.number},...U.amountDebit&&"0.00"!==U.amountDebit&&{debitAcc:Ie.number}}}getTransitPayDocPieces(U){return this.vedService.getCurrOperCodes().pipe((0,x.U)(H=>{const Z=H.find(oe=>oe.code===U.operCode);if(Z){const oe=[{type:"titleWithDesc",data:{title:"Currency operation code",desc:`${Z.code} - ${Z.description}`}},{type:"titleWithDesc",data:{title:"From account",desc:this.accountNumberPipe.transform(U.transAcc)}}];return U.declineInfo&&oe.push({type:"titleWithDesc",data:{title:"Decline info",desc:U.declineInfo}}),oe}return[]}))}getDealDirection(U){switch(U){case"BUY":return this.translation.translate("Buy");case"SELL":return this.translation.translate("Sell");default:return""}}getLinkPicture(U){return`${U}&t=${(new Date).getTime()}`}getCardTitle(U,H,Z){let oe;switch(U){case"doc_platpor_conv":oe="Currency exchange order";break;case"doc_curr_agent_factoring":oe="Application for repayment of agent factoring";break;case"dealpass_contr_181":oe="Application for adding a contract";break;case"dealpass_cred_181":oe="Application for adding a loan agreement";break;case"inq_curr_181":oe="Currency transactions information";break;case"inq_conf_181":oe="SPD full";break;case"dealpass_renew_181":oe="Add changes for contract or credit statement";break;case"dealpass_close_181":oe="VED deregister";break;case"inq_statement_181":oe="\u0417\u0430\u043f\u0440\u043e\u0441 \u0412\u0411\u041a";break;case"doc_request_quotes":oe="Quotation Request";break;case"doc_transit_pay_doc":return"Transit account order";case"cash_placement":oe="Application for placing money in deposit";break;case"irreducible_balance":oe="Application for placing money in minimum balance";break;case"confirm_cash_placement":oe="Confirmation for placing money in deposit";break;case n.o.DocClientCreation:oe="Application for creating a client in the RBS system";break;case"confirm_irreducible_balance":oe="Confirmation for placing money in minimum balance";break;case"doc_general_agreement":oe="Request general agreement RISDA";break;case"conversion_deal":oe="Conversion deal";break;case"pay_floating_margin":oe="Pay floating margin";break;case"pay_initial_margin":oe="Pay initial margin";break;case"return_floating_margin":oe="Return floating margin";break;case"doc_netting":oe="Netting";break;case"settlement_exchange_forward":oe="Settlement exchange forward";break;case"staging_exchange_forward":oe="Staging exchange forward";break;case n.o.DocPlatporCurrBp:case"doc_platpor_curr":oe="Currency transfer";break;case"interbank_credit_deal":oe="1"===H.dealType?"\u0420\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u041c\u0411\u041a":"\u041f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u041c\u0411\u041a";break;case"bank_account_agreement":oe="\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0417\u0430\u044f\u0432\u043a\u0438 \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u0447\u0435\u0442\u0430";break;case"close_curr":oe="Confirmation of the application for closing a currency account";break;case"doc_accession_application":oe="Application for accession to the gen conditions for deposits";break;case"sbp_trade_service_enterprise":oe="Application for connection of TCP";break;case"sbp_qr_cash_register":oe="Checkout connection request"}["doc_currsell","doc_currbuy"].includes(H.docType)&&(oe=H.draftDealId?"doc_currsell"===H.docType?"\u041f\u0440\u043e\u0434\u0430\u0436\u0430 \u0432\u0430\u043b\u044e\u0442\u044b":"\u041f\u043e\u043a\u0443\u043f\u043a\u0430 \u0432\u0430\u043b\u044e\u0442\u044b":"doc_currbuy"===U?"Application for the purchase of currency":"Application for the sale of currency"),"decline"===Z&&(oe="interbank_credit_deal"===U?`\u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c ${oe}`:`Decline ${oe}`);let Pe=H.docNumber,Ie=this.datePipe.transform(H.docDate,Ge);switch(U){case"doc_accession_application":Pe="";break;case"conversion_deal":case"doc_netting":case"settlement_exchange_forward":case"staging_exchange_forward":case"pay_floating_margin":case"interbank_credit_deal":Pe=H.dealNumber,Ie=this.datePipe.transform(H.dealDate,Ge)}const pt=this.translation.translate("By");return`${this.translation.translate(oe)} ${Pe?"\u2116 "+Pe:""} ${pt} ${Ie}`}getAmount(U,H){return`${this.currencyPipe.transform(U)} ${this.currencySymbolPipe.transform(H)}`}getInterbankCreditDeal(U){const H=[];return U.amountSideA&&H.push({type:"titleWithDesc",data:{title:"\u0421\u0443\u043c\u043c\u0430/\u0412\u0430\u043b\u044e\u0442\u0430",desc:this.getAmount(U.amountSideA,U.currCodeSideA)}}),U.paymentDate&&H.push({type:"titleWithDesc",data:{title:"\u0414\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0440\u0435\u0434\u0438\u0442\u0430",desc:this.util.formatDateDMY(new Date(U.paymentDate),".")}}),U.returnDate&&H.push({type:"titleWithDesc",data:{title:"\u0414\u0430\u0442\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043a\u0440\u0435\u0434\u0438\u0442\u0430",desc:this.util.formatDateDMY(new Date(U.returnDate),".")}}),U.interestRate&&H.push({type:"titleWithDesc",data:{title:"\u041f\u0440\u043e\u0446\u0435\u043d\u0442\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430",desc:(+U.interestRate).toFixed(2)}}),U.rollover&&H.push({type:"titleWithDesc",data:{title:"\u041f\u0440\u043e\u043b\u043e\u043d\u0433\u0430\u0446\u0438\u044f",desc:U.rollover}}),U.returnDate&&U.paymentDate&&H.push({type:"titleWithDesc",data:{title:"\u0421\u0440\u043e\u043a, \u0434\u043d",desc:((new Date(U.returnDate).getTime()-new Date(U.paymentDate).getTime())/864e5).toString()}}),U.bankDetails.sideALine_1&&H.push({type:"titleWithDesc",data:{title:"\u041f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0410",desc:`${U.bankDetails.sideALine_1} ${U.bankDetails.sideALine_2}`}}),U.bankDetails.sideBLine_1&&H.push({type:"titleWithDesc",data:{title:"\u041f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0411",desc:`${U.bankDetails.sideBLine_1} ${U.bankDetails.sideBLine_2}`}}),(U.bankRecPB_1||U.bankRecPB_2)&&H.push({type:"titleWithDesc",data:{title:"\u041f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u0434\u043b\u044f \u0443\u043f\u043b\u0430\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0411",desc:`${U.bankRecPB_1} ${U.bankRecPB_2}`}}),H}checkCreatePayment(U){return this.apiService.get(`document/create/metinv/checkCreatePayment?docId=${U}`).pipe((0,x.U)(H=>{if(H)return H;throw new Error("An error has occurred. Please try again later.")}))}getChargers(U){return this.apiService.get(`gis_gmp/getchargers?uin=${U}`).pipe((0,x.U)(H=>this.configUtilService.getArray(H.docs||H)),(0,_.R)((0,m.H)(6e4)))}static#e=this.\u0275fac=function(H){return new(H||pe)(j.\u0275\u0275inject(I.eN),j.\u0275\u0275inject(F.Pj),j.\u0275\u0275inject(z.s),j.\u0275\u0275inject(X.D7),j.\u0275\u0275inject(p.M),j.\u0275\u0275inject(P.uU),j.\u0275\u0275inject(E.H),j.\u0275\u0275inject(R.G),j.\u0275\u0275inject(ne.$),j.\u0275\u0275inject(G.su),j.\u0275\u0275inject(F.Pj),j.\u0275\u0275inject(ce.G),j.\u0275\u0275inject(xe.j),j.\u0275\u0275inject(we.W))};static#t=this.\u0275prov=j.\u0275\u0275defineInjectable({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})()},48802:(Ee,Q,t)=>{"use strict";t.d(Q,{v:()=>e});var n=t(94650);let e=(()=>{class i{constructor(a,u,h){this.componentFactoryResolver=a,this.appRef=u,this.injector=h}appendComponentTo(a,u,h){const l=this.componentFactoryResolver.resolveComponentFactory(u).create(this.injector);this.attachConfig(h,l),this.childComponentRef=l,this.appRef.attachView(l.hostView);const m=l.hostView.rootNodes[0];return document.getElementById(a).appendChild(m),this.childComponentRef.instance}removeComponent(){this.childComponentRef&&this.childComponentRef.hostView&&(this.appRef.detachView(this.childComponentRef.hostView),this.childComponentRef.destroy())}attachConfig(a,u){const h=a.inputs,l=a.outputs;for(const m in h)h.hasOwnProperty(m)&&(u.instance[m]=h[m]);for(const m in l)l.hasOwnProperty(m)&&(u.instance[m]=l[m])}static#e=this.\u0275fac=function(u){return new(u||i)(n.\u0275\u0275inject(n.ComponentFactoryResolver),n.\u0275\u0275inject(n.ApplicationRef),n.\u0275\u0275inject(n.Injector))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac})}return i})()},8058:(Ee,Q,t)=>{"use strict";t.d(Q,{w:()=>a});var n=t(24006),e=t(49066),i=t(94650),d=t(98504);let a=(()=>{class u{constructor(l,m){this.fb=l,this.currencyPipe=m}generateFormGroup(l){const m=this.fb.group({});return l.forEach(x=>{if(x.component.type===e.j.Button)return;x.component.type===e.j.FormArray&&this.generateFormArray(x,m);const O=this.createControl(x.field);m.addControl(x.field.name,O),x.control=O}),m}generateFormArray(l,m){const x=this.fb.group({}),{validators:O}=l.field;l.component.formArrayFields.forEach(w=>{const B=this.createControl(w.field);x.addControl(w.field.name,B)});const L=this.fb.array([x],O);m.addControl(l.field.name,L)}createControl(l){const{disabled:m,validators:x,value:O}=l;return this.fb.control({disabled:m,value:O},x)}generateItemsForSelect(l,m,x,O,L,w){return l.map(B=>{const _={...B};return _.value=B[m]+"",_.caption=B[x],O&&(_.description=B[O]),L&&(_.additionalDescription=B[L]),w&&w.length>0&&(_.filterByValue=w.map(y=>B[y]).join(" ")),_})}generateProductItemsForSelect(l,m){return l.map(x=>{const O={};return O.value=x[m||"id"]+"",O.caption=x.alias||x.info,O.description=x.formattedNumber,O.number=x.number,O.additionalCaption=null===x.balance?"":this.currencyPipe.transform(x.balance)+" "+x.currency,x?.bankingInformation?.bic&&(O.bic=x.bankingInformation.bic),O})}getFieldConfig(l,m){return l.find(x=>x.field.name===m)}setSelectItems(l,m,x){const O=this.getFieldConfig(l,m);O&&(O.select||(O.select={}),O.select.items=x)}cleanSelectItems(l,m){m.forEach(x=>{this.setSelectItems(l,x,[])})}calculateSliderValues(l){const m=[];let x=0;return l.forEach(O=>{for(x=O.interval[0];x<O.interval[1];)m.push(x),x+=O.step}),l[l.length-1]&&l[l.length-1].interval&&m.push(l[l.length-1].interval[1]),m}getConfigField(l,m){return l.find(x=>x.field.name===m)}disableControl(l,m){this.getConfigField(l,m).visual.visualDisabled=!0}enableControl(l,m){this.getConfigField(l,m).visual.visualDisabled=!1}hideControl(l,m){this.getConfigField(l,m).visual.hide=!0}showControl(l,m){this.getConfigField(l,m).visual.hide=!1}clearValue(l,m){this.getFormField(l,m).setValue("")}getFormField(l,m){return l.get(m)}setAppendSymbol(l,m,x){this.getConfigField(l,m).visual.appendSymbol=x}changeComponentTitle(l,m,x){this.getConfigField(l,m).component.title=x}markAsTouched(l,m){this.getFormField(l,m).markAsTouched()}setHint(l,m,x,O){const L=this.getConfigField(l,m);L&&(L.hint={text:x,type:O})}resetHintByFieldName(l,m){const x=this.getConfigField(l,m);x&&this.resetHintByField(x)}resetHintByField(l){l.hint=void 0}addCssClassToField(l,m,x){const O=this.getConfigField(l,m);O&&(O.visual={...O?.visual,cssClass:`${O?.visual?.cssClass??""} ${x}`})}removeCssClassFromField(l,m){if(-1!==l?.visual?.cssClass?.indexOf(m)&&l?.visual?.cssClass){const L=l.visual.cssClass.replace(m,"").split(" ").filter(w=>""!==w).join(" ");l.visual.cssClass=L}}markAllAsTouched(l){Object.values(l.controls).forEach(m=>{m instanceof n.UntypedFormGroup?this.markAllAsTouched(m):m.markAsTouched()})}getTwoLetters(l,m){const x=l.split("");return l.length>=m?`${x[m]}`+`${x[m+1]}`.toUpperCase():""}static#e=this.\u0275fac=function(m){return new(m||u)(i.\u0275\u0275inject(n.UntypedFormBuilder),i.\u0275\u0275inject(d.H))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac})}return u})()},86962:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>z});var n=t(15439),e=t.n(n),i=t(61135),d=t(62843),a=t(39646),u=t(63900),h=t(70262),l=t(86099),m=t(54004),x=t(6146),L=(t(66266),t(30184)),w=t(83e3),B=t(94650),_=t(44180),y=t(3751),$=t(75885),C=t(15644),T=t(39486),j=t(16611),I=t(36895),F=t(40929);let z=(()=>{class X{constructor(P,E,R,ne,G,ce,xe,we){this.route=P,this.apiService=E,this.lastOperationService=R,this.configUtilService=ne,this.productsService=G,this.translation=ce,this.datePipe=xe,this.documentService=we,this.currentOperations$=new i.X([]),this.forSignOperationsCache$=new i.X([]),this._currentSearch="",this._statusFilter=[],this._activeDocType="doc_platpor",this._activeDocModule="ibankul",this._accountCurrency="all",this._allForSignOperations=[],this._forSignFiatActions=["print","sign_on_client","sign_list","delete"],this._cancelSignActions=["print","sign_on_client","sign_list","delete"],this._loadedForSignOperations={certificates:[],certIdsForSign:{},docType:"doc_platpor",docModule:"ibankul",docs:null}}static isInPeriod(P,E){const R=P;if(R&&"string"==typeof R){const ne=e()(R,"YYYY-MM-DD");return ne>=E.dateFromValue&&ne<=E.dateToValue}return!1}requestForSignOperations(P,E,R){let ne=`metinv/sign_requirements?docModule=${E}&docType=${P}`;return R?.length&&(ne+=`&loanAgreementNumbers=${R}`),this.apiService.get(ne)}requestForSignOperationsSBPSalary(P){return this.apiService.post("metinv/sign_requirements",P)}requestForSignOperationsByIds(P){return this.apiService.get(`sign_requirements/doc?ids=${P}`)}requestForSignOperationsMetinvByIds(P){return this.apiService.post("metinv/sign_requirements",P).pipe((0,h.K)(()=>(0,d._)(()=>new Error("An error has occurred. Please try again later."))))}setAccountCurrency(P){this._accountCurrency=P,"RUR"===this._accountCurrency||"all"===this._accountCurrency?(this._activeDocType="doc_platpor",this._activeDocModule="ibankul"):(this._activeDocType="doc_platpor_curr",this._activeDocModule="ibankul_curr")}setSearchText(P){this._currentSearch=P}setStatusFilter(P){this._statusFilter=P}setActiveDocType(P){this._activeDocType=P}getDateField(){return"request_cancel"===this._activeDocType?"createStamp":"docDate"}getForSignOperations(){return new Promise(P=>{this.reloadOperationsForSign(this._activeDocType,this._activeDocModule).subscribe(E=>{this._operationsInPeriod=this.configUtilService.getArray(E.docs),this._allForSignOperations=this.parseFiatOperations();const R=this.filterForSignOperations();return P({count:R.length})})})}getForSignOperationsCount(){return this.reloadOperationsForSign("doc_platpor","ibankul",!1).pipe((0,l.z)(P=>(0,a.of)((this.configUtilService.getArray(P?.docs)||[]).length)))}getForSignOperationsAll(P){return this.requestForSignOperationsSBPSalary(P).pipe((0,m.U)(E=>{if(!E||!E.docs)return this.forSignOperationsCache$.next([]),[];const ne=this.configUtilService.getArray(E.docs).map(G=>this.configUtilService.getArray(G.docs)).flat().map(G=>G.doc);return this.forSignOperationsCache$.next(ne),ne}))}filterForSignOperations(){let P;const E="request_cancel"===this._activeDocType?["counterpartName","description"]:["corrInn","corrFullname","description"];P=this._currentSearch.length>0?this._allForSignOperations.filter(ne=>E.findIndex(G=>new RegExp(this._currentSearch,"i").test(ne[G]||""))>-1):this._allForSignOperations;const R=this._statusFilter.filter(ne=>ne.chosen).map(ne=>ne.value);return R.length>0?P=P.filter(ne=>R.indexOf(`'${ne.valueForCheckboxSearch}'`)>-1):this._statusFilter.length>0&&(P=[]),this._filteredOperationsInPeriod=P,P}getFilteredOperations(){return this._filteredOperationsInPeriod}getCertificatesForSignOperation(P,E){return P&&E?P.filter(R=>E.find(ne=>+ne==+R.id)):[]}generateDataForSign(P,E,R="ibankul"){return this.reloadOperationsForSign(P,R,!1).pipe((0,u.w)(ne=>{const G=this.configUtilService.getArray(ne.docs).find(ce=>ce.id===E);return G?(0,a.of)({certificates:this.getCertificatesForSignOperation(ne.certificates,ne.certIdsForSign[E]),operation:G}):this.documentService.getDocumentById(R,P,E).pipe((0,m.U)(ce=>{const xe=Object.keys(ce)?.length?Object.keys(ce)[0]:null;return{certificates:this.getCertificatesForSignOperation(ne.certificates,ne.certIdsForSign[E]),operation:xe?ce[xe]:void 0}}))}))}canShowMore(P){return this._filteredOperationsInPeriod.length>P&&this._filteredOperationsInPeriod.length>0}parseFiatOperations(){const P=this._operationsInPeriod;if(null==P||0===P.length)return[];switch(this._activeDocType){case"doc_platpor":case"request_cancel":case"doc_payment_request_outgoing":case"doc_sbp_transferbyqrcode_ul":return this.parseFiatPlatpor(P);case"doc_platpor_curr":return this.parseFiatPlatporCurr(P);case"doc_transit_pay_doc":return this.parseFiatPayDoc(P);case"doc_currbuy":case"doc_platpor_conv":return this.parseFiatBuyOrSell(P,"buy");case"doc_currsell":return this.parseFiatBuyOrSell(P,"sell");default:return[]}}parseFiatPlatpor(P){return P.map(E=>{let R,ne;!E.accNumber&&E.accId&&(E.accNumber=this.productsService.getProductNumberById(E.accId));let G=[{type:"createCopy",data:{docId:E.id}},{type:"createTemplate",data:{docId:E.id}},{type:"print",data:{docId:E.id,inPopup:!0}},{type:"edit",data:{docId:E.id,docType:E.docType}},{type:"delete",data:{docId:E.id}},{type:"sign",data:{docId:E.id,docType:E.docType,docModule:E.docModule,accNumber:E.accNumber,inq181:E.inq181,mibUpsDocID:E?.mibUpsDocID}}];return E.docType===x.o.SbpQrTransfer&&(G=G.filter(ce=>"createCopy"!==ce.type&&"createTemplate"!==ce.type)),E.displayedFields&&(ne=E.displayedFields.list),E.cause&&(E.causeText=this.translation.translate("Recall cause")),"request_cancel"===E.docType&&(E.actions=E.actions.filter(ce=>this._cancelSignActions.includes(ce)),G=[],E.actions.forEach(ce=>{switch(ce){case"print":G.push({type:"print",data:{docId:E.id,inPopup:!0}});break;case"delete":G.push({type:"delete",data:{docId:E.id,inq181:E?.inq181}});break;case"sign_on_client":G.push({type:"sign_cancel",data:{docId:E.id,docType:E.docType,docModule:E.docModule,inq181:E?.inq181}});break;case"sign_list":G.push({type:"showSigns",data:{docId:E.id}})}})),(E.docType===x.o.DocPlatporBp||E.docType===x.o.TransferRests)&&(G=this.configUtilService.makeButtonActions({actions:E.actions,...E},null,ce=>"print"===ce?{inPopup:!1}:{})),R={docNumber:E.docNumber,type:E.docType,corrInn:E.corrInn,corrFullname:E.corrFullname?E.corrFullname:E.cancelDocName,description:this.getDetailsInfo(E),details:this.getDetailsInfo(E),id:E.id,extDocId:E.extDocId?E.extDocId:E.id,docIds:E.id,docDate:E.docDate,docModule:E.docModule,createStamp:E.createStamp,counterpartName:E.corrFullname?E.corrFullname:E.cancelDocName,docType:E.docType,ownerAccountNumber:E.accId,charType:"1",accNumber:E.accNumber,amount:E.amount,currency:E.accCurr||E.currCode,loanAgreementNumber:E.loanAgreementNumber,inq181:E.inq181,bankName:E.bankName,valueForCheckboxSearch:"\u043d\u043e\u0432\u044b\u0439"===E.statusCaption?"new":"imported",status:"\u043d\u043e\u0432\u044b\u0439"===E.statusCaption?`${this.translation.translate("A new")}, ${E.signStatusCaption.toLowerCase()}`:"A Imported",actions:E.actions,isOpenable:!0,info:{rows:(0,w.aT)(E,ne),buttons:G,learnMoreButton:{show:!0,link:"/operation-details",queryParams:{id:E.id,docModule:E.docModule,docType:E.docType,docIds:E.id,accId:E.accId,pathBack:`/${this.route.snapshot.url.join("/")}`,tab:"For sign"}}}},R})}parseFiatPlatporCurr(P){return this.configUtilService.objectsParser(P,{...L.v0,status:E=>this.getFiatStatus(E),actions:E=>this.getFiatActions(E.actions),docNumber:"docNumber",counterpartName:"corrFullname",details:"description",ownerAccountNumber:"accId",currency:"currCode",amount:"amount",accNumber:"accNumber"})}parseFiatPayDoc(P){return this.configUtilService.objectsParser(P,{...L.v0,status:E=>this.getFiatStatus(E),subtitle:E=>`\u2116${E.docNumber}, ${this.datePipe.transform(E.debitingDate,"dd.MM.yyyy")}`,counterpartName:()=>this.organizationInfo?.fullName,charType:()=>"0",actions:E=>this.getFiatActions(E.actions),accNumber:"accCredit",amount:"transAmountTotal",ownerAccountNumber:"accCreditId",currency:"transCurrCodeIso"})}parseFiatBuyOrSell(P,E){return this.configUtilService.objectsParser(P,{...L.v0,status:R=>this.getFiatStatus(R),counterpartName:()=>this.organizationInfo?.fullName,subtitle:R=>`\u2116${R.docNumber}, ${R.additionalInfo}`,charType:()=>"buy"===E?"0":"1",actions:R=>this.getFiatActions(R.actions),ownerAccountNumber:"creditAccId",amount:"amountCredit",currency:"creditAccCurr"})}getFiatStatus(P){return P.statusCaption?`${this.configUtilService.capitalize(P.statusCaption)}, ${P.signStatusCaption.toLowerCase()}`:"A Imported"}getFiatActions(P){return this._forSignFiatActions.filter(E=>P.includes(E))}reloadOperationsForSign(P,E,R=!0){this._activeDocType=P,this._activeDocModule=E;const ne="request_cancel"===P?"createStamp":"docDate";return this._operationsInPeriod=[],this._filteredOperationsInPeriod=[],this.requestForSignOperations(P,E).pipe((0,m.U)(G=>{const ce=this.configUtilService.getArray(G?.certificates??[]).map(Z=>({...Z,id:Z.id+""})),xe=this.configUtilService.getArray(G?.docs??[]),we=xe&&xe[0]?xe[0]:{},{docModule:Ge}=we,ct=this.configUtilService.getArray(we.docs),pe=ct.map(Z=>Z.doc),Ce=ct.reduce((Z,oe)=>(Z[oe.doc.id]=this.configUtilService.getArray(oe.signs).map(Ie=>Ie.certId),Z),{});this._loadedForSignOperations={certificates:ce,certIdsForSign:Ce,docType:P,docModule:Ge,docs:pe};const U=this.lastOperationService.getCurrentPeriod(),H=R?pe.filter(Z=>null===U||X.isInPeriod(Z[ne],U)):pe;return{certificates:ce,certIdsForSign:Ce,docType:P,docModule:Ge,docs:H}}))}getDetailsInfo(P){let E="";return E="doc_sbp_transferbyqrcode_ul"!==P.docType?P.description?P.description:`${this.translation.translate("Date")}:\n         ${this.configUtilService.formatDateDMY(new Date(P.docDate),".")},\n          ${this.translation.translate("Number")}: ${P.docNumber},\n           ${this.translation.translate("Recall cause")}: ${P.cause}`:P.sbpComment,E}static#e=this.\u0275fac=function(E){return new(E||X)(B.\u0275\u0275inject(_.gz),B.\u0275\u0275inject(y.s),B.\u0275\u0275inject($.o),B.\u0275\u0275inject(C.Pj),B.\u0275\u0275inject(T.su),B.\u0275\u0275inject(j.D7),B.\u0275\u0275inject(I.uU),B.\u0275\u0275inject(F.Z))};static#t=this.\u0275prov=B.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})()},75885:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>C});var n=t(15439),e=t.n(n),i=t(61135),d=t(4128),a=t(94813),u=t(71884),h=t(54004),l=t(86349),m=t(6146),x=t(94907),L=(t(66266),t(94650)),w=t(3751),B=t(39486),_=t(15644),y=t(37601),$=t(16611);let C=(()=>{class T{constructor(I,F,z,X,p){this.apiService=I,this.productsService=F,this.configUtilService=z,this.userDataService=X,this.translation=p,this.defaultMaxRangeDays=365,this.allProducts=[],this.lastOperationsData=new x.nC,this.lastOperationsData$=new i.X({filtered:[],operations:[]}),this.operationDataForSign$=new i.X(void 0),this.forSignOperations$=new i.X(null),this.plannedOperationsInfo$=new i.X([]),this.mailTab=0,this.currentPerformOperationFilters$=new i.X({search:"",opCodes:"",accountNums:null,fromAmount:"",toAmount:"",currencyType:"RUR"}),this.chosenAccountCurrency$=this.currentPerformOperationFilters$.pipe((0,a.j)("currencyType"),(0,u.x)()),this.currentVedReceiptsFilters$=new i.X({search:"",currencies:[],dateFrom:"",dateTo:""}),this.periods=[{description:this.translation.translate("Today"),momentSubtract:this.getSubtractToBeginDay(e()()),period:"today"},{description:this.translation.translate("Yesterday"),momentSubtract:this.getSubtractToBeginYesterday(e()()),period:"yesterday"},{description:this.translation.translate("Week"),momentSubtract:this.getSubtractToWeekDay(1,e()()),period:"week"},{description:this.translation.translate("Month"),momentSubtract:this.getSubtractToBeginMonth(e()()),period:"month"},{description:this.translation.translate("Quarter"),momentSubtract:this.getSubtractToBeginQuater(e()()),period:"quater"},{description:this.translation.translate("Year"),momentSubtract:this.getSubtractToBeginYear(e()()),period:"year"},{description:this.translation.translate("Period"),period:"period"}],this.chosenPeriod$=new i.X(JSON.parse(sessionStorage.getItem("filter-period"))||new x.Sh(this.periods[2],this.getDateFromSubtract(this.periods[2],e()()))),this.lastOperations$=new i.X({}),this.highlightingProducts$=new i.X([]),this.documentsAdditionalStatusInfo$=new i.X([]),this.currencyOrder=["RUR","USD","EUR","CNY","CHF"]}get plannedOperationsInfo(){return this.plannedOperationsInfo$.value}set plannedOperationsInfo(I){this.plannedOperationsInfo$.next([...this.plannedOperationsInfo,I])}get currentPerformOperationFilters(){return this.currentPerformOperationFilters$.value}set currentPerformOperationFilters(I){this.currentPerformOperationFilters$.next({...this.currentPerformOperationFilters,...I})}get chosenAccountCurrency(){return this.currentPerformOperationFilters$.value.currencyType}get currentVedReceiptsFilters(){return this.currentVedReceiptsFilters$.value}set currentVedReceiptsFilters(I){this.currentVedReceiptsFilters$.next({...this.currentVedReceiptsFilters,...I})}static datePeriodIsValid(I,F){const z=e()(I.endDate),X=e()(I.beginDate),p=z.diff(X,"days");return p<=F&&p>=0}static adjustPeriodDates(I,F,z){const X=JSON.parse(JSON.stringify(F)),p=X.endDate!==I.endDate?"endDate":"beginDate",P=e()();return"beginDate"===p&&(X.endDate=e()(X.beginDate).add(z,"days").toDate(),P.diff(X.endDate)<0&&(X.endDate=P.toDate())),"endDate"===p&&(X.beginDate=e()(X.endDate).subtract(z,"days").toDate()),X}static swapBeginAndEndDates(I){const{endDate:F,beginDate:z}=I;return I.beginDate=F,I.endDate=z,I}getQRNDSValue(I){return I.docType===m.o.IncomingQrPayments?I.taxAmount&&"0.00"!==I.taxAmount?I.taxAmount:"\u041d\u0414\u0421 \u043d\u0435 \u043e\u0431\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f":I.docType===m.o.DocSbpTransferByQrCode?I.ndsAmount&&"0.00"!==I.ndsAmount?I.ndsAmount:"\u041d\u0414\u0421 \u043d\u0435 \u043e\u0431\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f":""}setSessionStorage(I,F){sessionStorage.setItem(I,F)}getSessionStorage(I){return sessionStorage.getItem(I)}removeSessionStorageArray(I){I.forEach(F=>{sessionStorage.removeItem(F)})}getCurrentPeriod(){const I=this.chosenPeriod$.getValue();return{dateFromValue:e()(this.configUtilService.revertFormatDateDMY(I.beginDate,"-"),"YYYY-MM-DD"),dateToValue:e()(this.configUtilService.revertFormatDateDMY(I.endDate,"-"),"YYYY-MM-DD")}}getDateFromSubtract(I,F){return F.subtract(I.momentSubtract[0],I.momentSubtract[1]).toDate()}getSubtract(I,F,z){return[String(I.diff(F,z)),z]}getSubtractToBeginDay(I){return this.getSubtract(I,I.clone().startOf("day"),"milliseconds")}getSubtractToBeginYesterday(I){return this.getSubtract(I,I.clone().add(-1,"day").startOf("day"),"milliseconds")}getSubtractToWeekDay(I,F){let z=F.day()-I;z=z>=0?z:7-z;const X=F.clone().subtract(z,"days");return this.getSubtract(F,X.startOf("day"),"milliseconds")}getSubtractToBeginMonth(I){return this.getSubtract(I,I.clone().startOf("month"),"milliseconds")}getSubtractToBeginQuater(I){const F=[0,3,6,9];let z;for(let p=0;p<F.length;p++){if(I.month()<F[p]){z=F[p-1];break}z=F[p]}const X=I.clone().subtract(I.month()-z,"months").startOf("month");return this.getSubtract(I,X,"milliseconds")}getSubtractToBeginYear(I){return this.getSubtract(I,I.clone().startOf("year"),"milliseconds")}getSumProducts(){return this.productsService.getProducts().pipe((0,h.U)(I=>{this.allProducts=[];const F=new x.TG;return l.S6(F,z=>z.value=0),I&&(this.allProducts=I,l.l7(F,l.Xc(l.vM(this.allProducts,"currency"),z=>{const X=l.u4(z.map(p=>parseFloat(p.balance)),(p,P)=>p+P,0);return{value:X.toFixed(0),remainder:this.configUtilService.getDecimal(X).toFixed(2)}}))),F}))}getLastOperations(I,F,z,X,p,P,E){return this.getLastOperationsData(I,F,z,X,p,P,E).pipe((0,h.U)(R=>(R.transactions=R.transactions?this.configUtilService.getArray(R.transactions):[],R.transactions=this.parseTransactions(R.transactions),R.transactions.forEach(ne=>{ne.actions=["print_last"],ne.docIds=ne.id,ne.chosen=!1,("01"===ne.opCode||"17"===ne.opCode)&&(ne.isOpenable=!0),"01"===ne.opCode&&"0"===ne.charType&&!ne.sbpFpMessageId&&(ne.actions=[...ne.actions,"create_payment"]),"01"===ne.opCode&&"1"===ne.charType&&ne.docType!==m.o.DocPlatporBp&&ne.docType!==m.o.DocPlatporSBPSalary&&ne.docType!==m.o.TransferRests&&!ne.sbpFpMessageId&&(ne.actions=[...ne.actions,"repeat"]),"01"===ne.opCode&&"1"===ne.charType&&(ne.docType===m.o.DocPlatporBp||ne.docType===m.o.TransferRests)&&ne.docType!==m.o.DocPlatporSBPSalary&&(ne.actions=[...ne.actions,"sign_list","copy"]),ne.sbpFpMessageId&&(ne.actions=[...ne.actions,"sendPrintForm"]),ne.status=ne.opCode?"Last Operation Doc Status With opCode - "+ne.opCode:""}),this.lastOperationsData.operations=R.transactions,this.lastOperationsData.filtered=this.getGroupedByDateOperations(R.transactions),this.lastOperationsData.operations||(this.lastOperationsData.operations=[]),this.lastOperations$.next(this.lastOperationsData),{lastOperationsData:this.lastOperationsData,extDocId:R.lastDocId})))}parseTransactions(I){return I.map(F=>{const X=[{type:"print",data:{url:`print/operation/metinv/pdf?abs_id=${F.id}`+(F.mibUpsDocID?`&id=${F.mibUpsDocID}`:"")}}];return"0"===F.charType&&"01"===F.opCode&&!F.sbpFpMessageId&&X.push({type:"createPayment",data:{operation:F}}),"1"===F.charType&&"01"===F.opCode&&!F.sbpFpMessageId&&X.push({type:"repeat",data:{operation:F}}),F.sbpFpMessageId&&X.push({type:"sendPrintForm",data:{operation:F}}),{...F,info:{rows:F.sbpFpMessageId?[]:[{capture:"INN",value:F.counterpartInn},{capture:"KPP",value:F.counterpartKpp},{capture:"Checking account",value:F.counterpartAccountNumber},{capture:"Bank BIK",value:F.counterpartBankBik},{capture:"Bank name",value:F.counterpartBankName},{capture:"Requisites Corr Account",value:F.counterpartBankAccount}],buttons:X,learnMoreButton:{show:!0}}}})}getLastOperationsData(I,F,z,X,p,P,E){const R={accounts:I,beginDate:F,endDate:z,maxNumber:X,direct:p,afterDocId:P};return E&&(E.search&&(R.context=E.search),E.opCodes&&(R.opCodes=E.opCodes),E.accountNums&&0!==E.accountNums.length&&(R.accounts=E.accountNums),E.fromAmount&&(R.fromAmount=E.fromAmount),E.toAmount&&(R.toAmount=E.toAmount),E.receiverInn&&(R.receiverInn=E.receiverInn),E.receiverName&&(R.receiverName=E.receiverName),E.loanAgreementNums&&(R.loanAgreementNumbers=E.loanAgreementNums,0===E.loanAgreementNums?.length&&delete R.loanAgreementNumbers)),this.apiService.post("metall-invest/statement/operation/last",R)}getGroupedByDateOperations(I,F="docDate"){F||(F="docDate");const z=[];I.forEach(P=>{let E=P[F];E&&"string"==typeof E&&E.includes("T")&&(E=E.split("T")[0]),P.dateString=this.configUtilService.formatDateDMStrng(E),z.push({dateString:P.dateString,docDate:E})});const X=l.jj(z,P=>P.dateString),p=[];return X.forEach(P=>{const E={};E.name=P.dateString,E.date=P.docDate,E.transactions=I.filter(R=>R.dateString===P.dateString).sort((R,ne)=>+ne.docNumber-+R.docNumber),p.push(E)}),p.sort((P,E)=>+new Date(E.date)-+new Date(P.date)),p}changePeriod(I,F,z,X=""){let p,P;return!F&&!z&&(p=new Date,P=new Date),I.endTime&&(P=I.endTime),"yesterday"===I.period?I.endTime?(p=I.endTime,P=I.endTime):p=z:"period"!==I.period&&(p=new Date),p||(p=F??new Date),P||(P=z??new Date),{currentPeriod:I,beginDate:P,endDate:p,useUpdateCalendarDates:!1,name:X}}getMyFinanceFullInfo(){return(0,d.D)([this.apiService.get("fin_summary/metinv/full_info"),this.productsService.getProducts()]).pipe((0,h.U)(([I,F])=>((Array.isArray(I.balances)?I.balances:[I.balances]).forEach(X=>{X&&(X.amount||(X.amount="0.00"))}),I)),(0,h.U)(I=>{if(I.balances=this.configUtilService.getArray(I.balances),I.currencies=[],I.balances.length){const P=I.balances.map(E=>({amount:E.amount||null,currDigitalCode:E.currDigitalCode||null,currISOCode:E.currISOCode||null,currInternationalName:E.currInternationalName||null,currName:E.currName||null,currSymbolCode:E.currSymbolCode||null,nationalAmount:E.nationalAmount||null,currTemplateName:"RUR"===E.currISOCode?"\u0440\u0443\u0431\u043b\u0435\u0432\u044b\u0445":E.currISOCode,order:-1===this.currencyOrder.indexOf(E.currISOCode)?this.currencyOrder.length+1:this.currencyOrder.indexOf(E.currISOCode)+1}));I.currencies=P.filter((E,R,ne)=>ne.indexOf(E)===R).sort((E,R)=>E.order-R.order),I.currencies.unshift({amount:"all",currDigitalCode:"all",currISOCode:"all",currInternationalName:"all",currName:"all",currSymbolCode:"all",nationalAmount:"all",currTemplateName:"all",order:0})}const F=I.balances.find(P=>"RUR"===P.currISOCode),z=I.balances.find(P=>"USD"===P.currISOCode),X=I.balances.find(P=>"EUR"===P.currISOCode),p=I.balances.find(P=>"CHF"===P.currISOCode);return I.rurAmount=F?F.amount:void 0,I.usdAmount=z?z.amount:void 0,I.eurAmount=X?X.amount:void 0,I.chfAmount=p?p.amount:void 0,I}))}getPlannedOperations(I){return this.apiService.post("pageable/document/visual/page",I)}requestOperationsByDocId({docModule:I,docType:F,doc_ids:z}){return this.apiService.get(`document/byid?doc_module=${I}&doc_type=${F}&doc_ids=${z}`)}concatTransactions(I,F){return F.forEach(z=>{I.find(X=>X.date===z.date)?I.find(X=>X.date===z.date).transactions=[...I.find(X=>X.date===z.date).transactions,...z.transactions]:I.push(z)}),I.sort((z,X)=>new Date(X.date).getTime()-new Date(z.date).getTime())}getAdditionalStatus(I){return this.apiService.post("documents/additional_status",I)}getAllAdditionalStatus(){return this.apiService.post("documents/additional_status_info",null).pipe((0,h.U)(I=>{const F=[];for(const z in I)I[z].forEach(X=>{-1===F.indexOf(X.clientStatus)&&F.push(X.clientStatus)});return this.documentsAdditionalStatusInfo$.next(F),F}))}getSBPInfo(I){return this.apiService.get(`/metinv/sbp/lastoper/info?docId=${I.docIds}`)}setPeriodInRange(I,F,z=this.defaultMaxRangeDays){let X=F,p=!1;return T.datePeriodIsValid(X,z)||(X=T.adjustPeriodDates(I,X,z),p=!0),T.datePeriodIsValid(X,z)||(X=T.swapBeginAndEndDates(X)),{period:X,hasError:p}}getDateHundredYearsAgo(I){const F=new Date(I);return isNaN(F?.getTime())||F.setFullYear(F.getFullYear()-100),F}getDateHundredYearsLater(I){const F=new Date(I);return isNaN(F?.getTime())||F.setFullYear(F.getFullYear()+100),F}static#e=this.\u0275fac=function(F){return new(F||T)(L.\u0275\u0275inject(w.s),L.\u0275\u0275inject(B.su),L.\u0275\u0275inject(_.Pj),L.\u0275\u0275inject(y.M),L.\u0275\u0275inject($.D7))};static#t=this.\u0275prov=L.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})()},76751:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>I});var n=t(61135),e=t(39646),i=t(54004),d=t(45835),a=t(26871),u=t(36229),h=t(57677),l=t(8886),m=t(5248),x=t(94650),O=t(3751),L=t(15644),w=t(40929),B=t(38101),_=t(16611),y=t(44180),$=t(9149),C=t(75885),T=t(47136),j=t(37601);let I=(()=>{class F{constructor(X,p,P,E,R,ne,G,ce,xe,we){this.apiService=X,this.configUtilService=p,this.documentService=P,this.modalService=E,this.translation=R,this.router=ne,this.toast=G,this.lastOperationService=ce,this.selectedPeriodSerice=xe,this.userDataService=we,this.unreadMailNumber$=new n.X({unread:0,fixedIncoming:0,fixedOutgoing:0,forSign:0,draft:0}),this.allCounters$=new n.X({unread:0,fixedIncoming:0,fixedOutgoing:0,forSign:0,draft:0,unreadAll:0}),this.openedMail$=new n.X(null),this.openedDraft$=new n.X(!1),this.openedOldMail$=new n.X(null),this.completeLoadCounter$=new n.X(!0),this.sighMails$=new n.X([]),this.unreadMailIds$=new n.X(0),this.oldUnreadMailIds$=new n.X([]),this.oldUnreadMailNumber$=new n.X(""),this.openedOldMailTab$=new n.X("archive"),this.openedTypeOldMail$=new n.X(0),this.action$=new n.X(null),this.operationAlert$=new n.X(null),this.deleteMail$=new n.X(null),this.loader$=new n.X(!1),this.mailOpenedTab$=new n.X(0),this.openedMailOption$=new n.X("all"),this.categoriesAndTopics$=new n.X([]),this.incomingConfig=new l.W,this.outcomingConfig=new l.W,this.incomingConfig.docModule=m.nW,this.incomingConfig.docType=m.CI.SenderBank,this.incomingConfig.filter={additional:"status in ('send', 'end', 'decline')",dateFrom:"",dateTo:""},this.incomingConfig.page={number:0,size:5},this.incomingConfig.sorting=[{field:"registerStamp",order:"DESC"}],this.incomingConfig.onlyActions=["print","answer"],this.outcomingConfig=this.configUtilService.deepClone(this.incomingConfig),this.outcomingConfig.filter.additional="status in ('for_send', 'draft', 'new', 'send', 'working', 'end')",this.outcomingConfig.sorting=[{field:"createstamp",order:"DESC"}],this.outcomingConfig.onlyActions=["print","update","send","sign_on_client","delete_sign","delete","sign_list","copy"],this.outcomingConfig.docType="mail2bank"}get isRefundableAmountTitle(){return this.translation.translate("The amount of the order with the specified details is refundable")}get isDuplicationRequisitesTitle(){return this.translation.translate("Confirm that there is no duplication")}getMailUnreadNumber(X){const p={beforeDate:X?this.configUtilService.revertFormatDateDMY(X.endDate,"-")+"T23:59:59":null,afterDate:X?this.configUtilService.revertFormatDateDMY(X.beginDate,"-")+"T00:00:00":null,searchText:"",byCreatedTimeStampDesc:!0,fixedOnly:null};return this.userDataService.clientRoles$.value.find(E=>"ROLE_EDO_IGNORE_COUNTER"===E)?(0,e.of)({unread:0,fixedIncoming:0,fixedOutgoing:0,forSign:0,draft:0,unreadAll:0}):this.apiService.post("edo_post/counter",p)}getOldLetters(X,p,P,E){let R;return R=this.configUtilService.deepClone(this[p]),R.filter.dateFrom=this.configUtilService.revertFormatDateDMY(X.beginDate,"-"),R.filter.dateTo=this.configUtilService.revertFormatDateDMY(X.endDate,"-"),R.filter.additional=""!==P?`${R.filter.additional} and ((caption like '%${P}%') or (description like '%${P}%'))`:R.filter.additional,R.page.number=E||0,this.apiService.post("pageable/document/visual/page",R).pipe((0,i.U)(ne=>(ne.list?(ne.list=this.configUtilService.getArray(ne.list),ne.list.forEach(G=>{G.registerStamp=this.configUtilService.formatDateStringDMYHM(G.registerStamp,void 0,","),G.createstamp=this.configUtilService.formatDateStringDMYHM(G.createstamp,void 0,","),G.attachments=this.configUtilService.getArray(G.attachments),this.hasSaveToFileAction(G)&&G.actions.push("save_to_file"),this.hasSaveToFileAction(G)&&G?.attachments?.length&&G.actions.push("save_all_attachments")})):ne.list=[],ne)))}getTypedMails(X){return this.apiService.post(`edo_post/get/mail/${X}`,{beforeDate:null,afterDate:null,searchText:null,byCreatedTimeStampDesc:!0}).pipe((0,i.U)(P=>{let E=P.incomingMailList?P.incomingMailList:P.outgoingMailList;return E&&(E=Array.isArray(E)?E:[E],E=E.length>0?E.filter(R=>"delete"!==R?.status):E),E}))}sendToBank(X){return this.apiService.put(`document/send?doc_module=ibankul&doc_type=post2bank&doc_ids=${X}`)}getLetters(X,p,P="",E,R,ne){let G={beforeDate:X?this.configUtilService.revertFormatDateDMY(X.endDate,"-")+"T23:59:59":null,afterDate:X?this.configUtilService.revertFormatDateDMY(X.beginDate,"-")+"T00:00:00":null,searchText:P,byChangeTimeStampDesc:!0,paginationAmount:null,paginationId:E,categoryIds:R};return this.apiService.post(`edo_post/get/mail/${p}`,G).pipe((0,i.U)(ce=>{let xe=[];return ne?xe=[...ce.outgoingMailList]:m.W8.forEach(we=>{Object.keys(ce)[0]!==we||(xe=[...Array.isArray(ce[Object.keys(ce)[0]])?ce[Object.keys(ce)[0]]:[ce[Object.keys(ce)[0]]]])}),xe.forEach(we=>{we.attachments&&(we.attachments=Array.isArray(we.attachments)?we.attachments:[we.attachments])}),xe}))}hasSaveToFileAction(X){return"mail2client"===X.docType}readMail(X){return this.apiService.get(`edo_post/read/${X}`)}getAttachment(X,p){return this.apiService.get(`attachment/${X}/${p}`,void 0,"blob")}getAttachmentWithStamp(X,p){return this.apiService.get(`print/attach/with_stamp/${X}/${p}`,void 0,"blob")}returnStatusText(X){if(X.docType!==m.CI.SenderBank){if(X.status===m.Bg.Draft)return"Draft";if("end"===X.status)return"Done";if("send"===X.status)return"Sent";if("processed"===X.status)return"In progress";switch(X.signStatus){case"0":return"Not signed";case"1":return"Partially signed";case"2":return"In processing"}return""}return""}extractAttachment(X,p){const P=URL.createObjectURL(X),E=document.createElementNS("http://www.w3.org/1999/xhtml","a");return E.setAttribute("href",P),E.style.cssText="display: none",E.download=p,document.body.appendChild(E),E.addEventListener("click",()=>{document.body.removeChild(E)}),E.click(),X.type}getMail2BankSetup(){return this.apiService.get("mail2bank/info/setup").pipe((0,i.U)(X=>X.docSettings))}getSettingValue(X,p){return X.find(P=>P.name===p).value}getMailTypes(){return this.apiService.get("edo_post/get/categories_and_topic")}getMailTypesBySection(X){return this.apiService.get("metinv/dic/mail_type/"+X).pipe((0,i.U)(p=>{if(p&&p.mailType)return p.mailType.constructor===Array?p.mailType.map(P=>P.id):p.mailType.id}))}getMailUnits(){return this.apiService.get("dic/bank_section").pipe((0,i.U)(X=>X.bankSectionDicElement))}getCategoriesAndTopics(X){return this.apiService.get("edo_post/get/categories_and_topic"+(X?"/"+X:"")).pipe((0,i.U)(p=>{let P=p?.categories?Array.isArray(p.categories)?p.categories:[p.categories]:[];return P.length>0&&(P=[...new Map(P.map(E=>[E.id,E])).values()],P.forEach(E=>{E.topics=Array.isArray(E.topics)?E.topics:[E.topics],E.topics=[...new Map(E.topics.map(R=>[R.id,R])).values()]})),P}))}getBankPartners(){return this.apiService.get("edo_post/get/partner").pipe((0,i.U)(X=>{let p=Array.isArray(X)?X:[X];return p=[...new Map(p.map(P=>[P.id,P])).values()],X.forEach(P=>{P.id=P.id.toString()}),p}))}getOldMailUnreadNumber(){return this.apiService.get("mail2client/unread/v2")}getLastMailDocuments(X,p,P,E,R){let ne=`last_documents_full?number_of_entries=10&uid=document&module=ibankul&action=btnlist&types_ref=edo_post&type=${p}`;return P&&(ne+=`&point_of_reference=${P}`),E&&(ne+="&list_of_statuses=unread"),this.apiService.post(ne,{docTypes:[{docModule:"ibankul",docType:p}],dateFrom:this.configUtilService.revertFormatDateDMY(X.beginDate,"").toString(),dateTo:this.configUtilService.revertFormatDateDMY(X.endDate,"").toString()},R).pipe((0,i.U)(G=>{if(G){let ce=[];return G.lastDocumentFullWithActions=Array.isArray(G.lastDocumentFullWithActions)?G.lastDocumentFullWithActions:[G.lastDocumentFullWithActions],G.lastDocumentFullWithActions.forEach(xe=>{ce.push(xe.document)}),ce}return[]}))}readOldMail(X){return this.apiService.put(`mail2client/unread/${X}`)}getMailInfo(){return this.apiService.get("document/byid?doc_module=ibankul&doc_type=mail2client&doc_ids=1460842").pipe((0,i.U)(X=>X))}postMail(X){return this.apiService.post("metinv/mail2bank",X)}postMailToBank(X){return this.apiService.post("edo_post/create",X)}pinMail(X,p){return this.apiService.get(`edo_post/fixed/${X}/${p}`)}takeChildrenMails(X,p){return this.apiService.post(`edo_post/get/children/mail/${X}`,p).pipe((0,i.U)(P=>{if(P.childrenMailList){let E=Array.isArray(P.childrenMailList)?P.childrenMailList:[P.childrenMailList];return E.map(R=>{"false"===R.clientRead&&this.readMail(R.id).subscribe()}),E}return[]}))}saveDraft(X){return this.apiService.post("edo_post/create/draft",X)}postAnswer(X){return this.apiService.post("lotus_mail/add_mail",X)}saveDraftMail(X){return this.apiService.post("edo_post/create/draft",X)}deleteFile(X,p){return this.apiService.delete(`attachment/${X}/${p}`)}createCopy(X){return this.apiService.post(`copy/document/${X}`,{})}printMail(X){this.loader$.next(!1),X.docIds=X.id,this.modalService.open(a.O,{header:"Print document",styleMode:"forSign",inputs:{operation:X},...X,bodyInfo:this.translation.translate("Select file type format"),saveToFile:!0})}operationActionChange(X,p){switch(this.loader$.next(!0),p.docIds=p.id,X.name){case"print":this.loader$.next(!1),this.modalService.open(a.O,{header:"Print document",styleMode:"forSign",inputs:{operation:p}});break;case"answer":if(p.caption===m.eC&&p.sectionId===m.JN){this.goToCreditMonitoring();break}this.router.navigate(["/mail-info"]),p.answer=!0,this.loader$.next(!1),this.openedMail$.next(p);break;case"delete":this.loader$.next(!1),this.modalService.open(d.q,{header:"Delete mail",inputs:{operation:p,text:this.translation.translate("Do you really want to delete the mail?"),deletionDone:()=>{this.deleteMail$.next(!0)}}});break;case"delete_sign":this.documentSignDelete(p),this.loader$.next(!1);break;case"update":case"edit":this.router.navigate(["mail-new"],{queryParams:{mailId:p.id}}),this.loader$.next(!1);break;case"copy":case"createCopy":this.createCopy(p.id).subscribe(P=>{this.loader$.next(!1),this.router.navigate(["mail-new"],{queryParams:{mailId:P.id,copy:!0}})});break;case"sign_on_client":this.openedMail$.next(p),this.router.navigate(["mail-sign"]),this.loader$.next(!1);break;case"send":this.documentService.sendDocument("ibankul","mail2bank",p.id).subscribe({next:()=>{this.loader$.next(!1),this.operationAlert$.next({items:[{message:this.translation.translate("The letter is sent to bank")}],errorType:"success",id:p.id}),this.toast.show("The letter is sent to bank","success")},error:P=>{this.loader$.next(!1),this.operationAlert$.next({items:[{message:P.errorText}],errorType:"error",id:p.id}),this.toast.show(P.errorText,"error")}});break;case"sign_list":this.apiService.get(`document/signature/metinv?doc_id=${p.id}`).subscribe(P=>{this.loader$.next(!1),P=this.configUtilService.getArray(P.signature),this.modalService.open(u.M,{header:"Electronic Document Signatures",size:"big",inputs:{sings:P}})});break;case"save_to_file":this.loader$.next(!1),this.modalService.open(a.O,{header:"Save letter",styleMode:"forSign",inputs:{operation:{...p,bodyInfo:this.translation.translate("Select file type format"),saveToFile:!0}}});break;case"save_all_attachments":this.loader$.next(!1),this.getAllAttachmentsZip(p.id).subscribe(P=>this.extractAttachment(P,`all-attachments-${p?.createstamp}.zip`))}}isDisableAnswerAction(X){return"true"===String(X.responseReceived)}documentSignDelete(X){this.modalService.open(h.n,{header:"Delete sign",inputs:{operation:X,deletionDone:()=>{this.deleteMail$.next(!0)}},overflow:"initial"})}getAttachmentWhiteList(){return this.apiService.get("tools/attachmentWhiteList",{doc_type:"post2bank"}).pipe((0,i.U)(X=>this.configUtilService.getArray(X).find(p=>"post2bank"===p.docType)))}getAllAttachmentsZip(X){return this.apiService.get(`metinv/attachment/${X}`,{},"blob")}goToCreditMonitoring(){this.router.navigate(["/credit"],{queryParams:{monitoring:!0}})}static#e=this.\u0275fac=function(p){return new(p||F)(x.\u0275\u0275inject(O.s),x.\u0275\u0275inject(L.Pj),x.\u0275\u0275inject(w.Z),x.\u0275\u0275inject(B.Z),x.\u0275\u0275inject(_.D7),x.\u0275\u0275inject(y.F0),x.\u0275\u0275inject($.j),x.\u0275\u0275inject(C.o),x.\u0275\u0275inject(T.A),x.\u0275\u0275inject(j.M))};static#t=this.\u0275prov=x.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})()},58942:(Ee,Q,t)=>{"use strict";t.d(Q,{f:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){this.actionDone$=new n.EventEmitter}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},47136:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>l});var n=t(15439),e=t.n(n),i=t(61135),d=t(94907),a=t(94650),u=t(15644),h=t(16611);let l=(()=>{class m{constructor(O,L){this.configUtilService=O,this.translation=L,this.defaultMaxRangeDays=365,this.periods=[{description:this.translation.translate("Today"),momentSubtract:this.getSubtractToBeginDay(e()()),period:"today",timeSpan:"day"},{description:this.translation.translate("Yesterday"),momentSubtract:this.getSubtractToBeginYesterday(e()()),period:"yesterday",timeSpan:"day"},{description:this.translation.translate("Week"),momentSubtract:this.getSubtractToWeekDay(1,e()()),period:"week",timeSpan:"week"},{description:this.translation.translate("Month"),momentSubtract:this.getSubtractToBeginMonth(e()()),period:"month",timeSpan:"month"},{description:this.translation.translate("Quarter"),momentSubtract:this.getSubtractToBeginQuater(e()()),period:"quater",timeSpan:"quarter"},{description:this.translation.translate("Year"),momentSubtract:this.getSubtractToBeginYear(e()()),period:"year",timeSpan:"year"},{description:this.translation.translate("Choose period"),period:"period",timeSpan:null},{description:this.translation.translate("No date selected"),period:"no date"}],this.chosenPeriod$=new i.X(null),this.beginDate$=new i.X(null),this.endDate$=new i.X(null),this.activeMonth$=new i.X(0),this.slideLeftCalendar$=new i.X(null),this.slideRightCalendar$=new i.X(null)}setPeriodStorageKey(O,L="",w="week"){const B=this.periods.find(y=>y.period===w),_=JSON.parse(sessionStorage.getItem(O));if(null===_&&B){const y=new d.Sh(B,this.getDateFromSubtract(B,e()()),null,!0,L);this.chosenPeriod$.next(y)}else _&&this.chosenPeriod$.next({..._,name:L})}getShiftedPeriod(O,L="",w){const B=O?.currentPeriod,_="null"===B.timeSpan?null:B.timeSpan,y=e()(O.beginDate).add(w,_).startOf(_),$=y.clone().endOf(_);switch(this.chosenPeriod$.next({currentPeriod:B,beginDate:y.toDate(),endDate:$.toDate(),useUpdateCalendarDates:!1,name:L}),_){case"day":{let C=`${y.format("DD.MM.YYYY")}`;return 0===y.diff(e()(),"day")?C=this.translation.translate("Today"):-1===y.diff(e()(),"day")&&(C=this.translation.translate("Yesterday")),{period:"day",description:"",title:C}}case"week":{let C=`${y.format("DD.MM.YYYY")} - ${$.format("DD.MM.YYYY")}`;return 0===y.diff(e()().startOf("week"),"day")&&(C=this.translation.translate("Current week")),y.diff(e()(),"day")>0?null:{period:"week",description:"",title:C}}case"month":{const C=y.toDate().toLocaleDateString("ru-RU",{year:"numeric",month:"long"});return{period:"month",description:"",title:`${C.charAt(0).toUpperCase()}${C.slice(1)}`}}case"quarter":return{period:"quarter",description:"",title:`${y.quarter()} ${this.translation.translate("Quarter").toLowerCase()} ${y.year()}`};case"year":return{period:"year",description:"",title:`${y.year()} ${this.translation.translate("Year").toLowerCase()}`};default:return null}}updatePeriodDates(O,L=""){if("period"!==O.period){let w=null,B=null;"today"===O.period?(w=e()().startOf("day"),B=e()().startOf("day").add(1,"day").add(-1,"millisecond")):"yesterday"===O.period?(w=e()().startOf("day").add(-1,"day"),B=e()().startOf("day").add(-1,"millisecond")):"week"===O.period?(w=e()().startOf("week"),B=e()().endOf("week")):"month"===O.period?(w=e()().startOf("month"),B=e()().endOf("month")):"quater"===O.period?(w=e()().startOf("quarter"),B=e()().endOf("quarter")):"year"===O.period&&(w=e()().startOf("year"),B=e()()),this.chosenPeriod$.next({currentPeriod:O,beginDate:"no date"!==O.period?w?.toDate():null,endDate:"no date"!==O.period?B?.toDate():null,useUpdateCalendarDates:!1,name:L})}}slideToPreviousMonth(){this.activeMonth$.next(-1)}slideToNextMonth(){this.activeMonth$.next(1)}static datePeriodIsValid(O,L){const w=e()(O.endDate),B=e()(O.beginDate),_=w.diff(B,"days");return _<=L&&_>=0}static adjustPeriodDates(O,L,w){const B=JSON.parse(JSON.stringify(L)),_=B.endDate!==O.endDate?"endDate":"beginDate",y=e()();return"beginDate"===_&&(B.endDate=e()(B.beginDate).add(w,"days").toDate(),y.diff(B.endDate)<0&&(B.endDate=y.toDate())),"endDate"===_&&(B.beginDate=e()(B.endDate).subtract(w,"days").toDate()),B}static swapBeginAndEndDates(O){const{endDate:L,beginDate:w}=O;return O.beginDate=L,O.endDate=w,O}getCurrentPeriod(){const O=this.chosenPeriod$.getValue();return{dateFromValue:e()(this.configUtilService.revertFormatDateDMY(O.beginDate,"-"),"YYYY-MM-DD"),dateToValue:e()(this.configUtilService.revertFormatDateDMY(O.endDate,"-"),"YYYY-MM-DD")}}getDateFromSubtract(O,L){return L.subtract(O.momentSubtract[0],O.momentSubtract[1]).toDate()}getSubtract(O,L,w){return[String(O.diff(L,w)),w]}getSubtractToBeginDay(O){return this.getSubtract(O,O.clone().startOf("day"),"milliseconds")}getSubtractToBeginYesterday(O){return this.getSubtract(O,O.clone().add(-1,"day").startOf("day"),"milliseconds")}getSubtractToWeekDay(O,L){let w=L.day()-O;w=w>=0?w:7-w;const B=L.clone().subtract(w,"days");return this.getSubtract(L,B.startOf("day"),"milliseconds")}getSubtractToBeginMonth(O){return this.getSubtract(O,O.clone().startOf("month"),"milliseconds")}getSubtractToBeginQuater(O){const L=[0,3,6,9];let w;for(let _=0;_<L.length;_++){if(O.month()<L[_]){w=L[_-1];break}w=L[_]}const B=O.clone().subtract(O.month()-w,"months").startOf("month");return this.getSubtract(O,B,"milliseconds")}getSubtractToBeginYear(O){return this.getSubtract(O,O.clone().startOf("year"),"milliseconds")}changePeriod(O,L,w,B=""){let _,y;return!L&&!w&&(_=new Date,y=new Date),O.endTime&&(y=O.endTime),"yesterday"===O.period?_=w:"period"!==O.period&&(_=new Date),{currentPeriod:O,beginDate:y,endDate:_,useUpdateCalendarDates:!1,name:B}}setPeriodInRange(O,L,w=this.defaultMaxRangeDays){let B=L,_=!1;return m.datePeriodIsValid(B,w)||(B=m.adjustPeriodDates(O,B,w),_=!0),m.datePeriodIsValid(B,w)||(B=m.swapBeginAndEndDates(B)),{period:B,hasError:_}}static#e=this.\u0275fac=function(L){return new(L||m)(a.\u0275\u0275inject(u.Pj),a.\u0275\u0275inject(h.D7))};static#t=this.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()},2561:(Ee,Q,t)=>{"use strict";t.d(Q,{t:()=>m});var n=t(61135),e=t(4707),i=t(82805),d=t(95698),a=t(82722),u=t(94650),h=t(3751),l=t(8058);let m=(()=>{class x{constructor(L,w){this.apiService=L,this.dynamicFormService=w,this.newProductSignData$=new n.X(void 0),this.newProductData$=new e.t(1,100),this.rubSliderIntervals=[{interval:[3e4,1e5],step:5e3},{interval:[1e5,3e5],step:1e4},{interval:[3e5,5e5],step:5e4},{interval:[5e5,1e8],step:1e5}]}konturFocusOnRequest(L){return this.apiService.post("kontur_focus/on",L)}konturFocusOffRequest(L){return this.apiService.post("kontur_focus/off",L)}connectKonturFocus(L){return this.konturFocusOnRequest(L)}getConnectKonturFocusSettings(){return this.konturFocusOnRequest({})}disableKonturFocus(L){return this.konturFocusOffRequest({docDate:L})}connectDirect1cRequest(L){return this.apiService.post("direct1c/connect",L)}disconnectDirect1cRequest(L){return this.apiService.post("direct1c/disconnect",L)}connectDirect1c(L){return this.connectDirect1cRequest(L)}getConnectDirect1cSettings(){return this.connectDirect1cRequest({})}disconnectDirect1c(L){return this.disconnectDirect1cRequest(L)}getAmountSliderValues(){if(!this.amountSliderValues){const L=this.dynamicFormService.calculateSliderValues(this.rubSliderIntervals);this.amountSliderValues=[1].concat(L)}return this.amountSliderValues}setNewProductData(L){this.newProductData$.next(L)}getNewProductData(){return this.newProductData$.pipe((0,d.q)(1),(0,a.R)((0,i.H)(100)))}setNewProductSignData(L){this.newProductSignData$.next(L)}getNewProductSignData(){return this.newProductSignData$.pipe((0,d.q)(1))}static#e=this.\u0275fac=function(w){return new(w||x)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.w))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac})}return x})()},54331:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>ne});var n=t(15439),e=t.n(n),i=t(61135),d=t(77579),a=t(63900),u=t(39646),h=t(70262),l=t(54004),m=t(6146),x=t(34122),O=t(94907),L=t(8226),w=t(93887),B=t(41795),_=t(30184),y=t(23785),$=t(66319),C=t(94650),T=t(75885),j=t(15644),I=t(49284),F=t(86962),z=t(65493),X=t(14228),p=t(40929),P=t(39486),E=t(92008),R=t(38101);let ne=(()=>{class G{constructor(xe,we,Ge,ct,pe,Ce,U,H,Z,oe){this.lastOperationService=xe,this.configUtilService=we,this.paymentRequestService=Ge,this.forSignOperationService=ct,this.counterpartService=pe,this.operationService=Ce,this.documentService=U,this.productsService=H,this.appConfigService=Z,this.modalService=oe,this.currentTab$=new i.X(B.d$.Performed),this.performedTab$=new i.X(B.Os.All),this.plannedTab$=new i.X(B.wB.All),this.activeDocType$=new i.X(m.o.DocPlatpor),this.currentFilter$=new i.X(B.Ci),this.currencyType$=new i.X(null),this.showMoreButtonVisible$=new i.X(!1),this.loading$=new i.X(!1),this.updateOperations$=new d.x,this.operationsContainer$=new i.X({tab:B.d$.Performed,type:m.o.DocPlatpor,operations:null}),this.paymentDetailsRequests$=new i.X([]),this.products=[],this.additionalStatuses=[],this.SBP_ACCOUNT_ACC_START=L.fL,this.SBP_ACCOUNT_SUBTYPE=L.hG,this.currencyType$.subscribe(Pe=>{null!==Pe&&this.currentTab$.value===B.d$.Performed&&(this.currentFilter$.next({...this.currentFilter$.value,accountNums:null,search:"",fromAmount:"",toAmount:"",opCodes:null,loanAgreementNums:null}),this.updateOperations$.next(!1))}),this.initOperationsSubscription()}periodChanged(){switch(this.currentTab$.value){case B.d$.Performed:case B.d$.ForSign:case B.d$.Plan:case B.d$.Refused:this.updateOperations$.next(!1)}}clearCachedOperations(){this.operationsContainer$.next({...this.operationsContainer$.value,cache:null})}showNoOperations(){this.operationsContainer$.next({...this.operationsContainer$.value,operations:[]}),this.showMoreButtonVisible$.next(!1)}getCurrentDirect(){if(this.currentTab$.value===B.d$.Performed)return w.r_[this.performedTab$.value]}initOperationsSubscription(){this.updateOperations$.pipe((0,a.w)(xe=>{switch(this.loading$.next(!0),this.showMoreButtonVisible$.next(!1),this.currentTab$.value){case B.d$.Performed:return this.fetchPerformedOperations(xe);case B.d$.ForSign:return this.fetchForSignOperations(xe);case B.d$.Plan:case B.d$.Refused:return this.fetchPlanOrRefusedOperations(xe);case B.d$.PaymentRequests:return this.fetchPaymentRequests();default:return(0,u.of)(null)}})).subscribe(()=>{this.loading$.next(!1)})}fetchPerformedOperations(xe){const we=this.products.filter(Ce=>"all"===this.currencyType$.value||this.currencyType$.value===Ce.currency).filter(Ce=>Ce.subtype!==this.SBP_ACCOUNT_SUBTYPE&&!Ce.number.startsWith(this.SBP_ACCOUNT_ACC_START)).map(Ce=>Ce.number),Ge=this.getCurrentDirect()||void 0,ct=this.lastOperationService.chosenPeriod$.value,pe=this.getPerformedFiltersModified(Ge);if(this.counterpartService.activeCounterpart){const Ce=this.counterpartService.activeCounterpart;Ce.inn&&"0"!==Ce.inn?pe.receiverInn=Ce.inn:pe.receiverName=Ce.fullname}return this.isNoProductSelected(pe)||this.isNoOperationTypeSelected(this.currentFilter$.value)?(this.showNoOperations(),(0,u.of)(null)):this.lastOperationService.getLastOperations(we,ct.beginDate?this.configUtilService.revertFormatDateDMY(ct.beginDate,"-"):void 0,ct.endDate?this.configUtilService.revertFormatDateDMY(ct.endDate,"-"):void 0,""+O.uo,Ge,xe?this.operationsContainer$.value.lastDocId:void 0,pe).pipe((0,h.K)(()=>(this.operationsContainer$.next({tab:B.d$.Performed,type:m.o.DocPlatpor,lastDocId:null,operations:[]}),(0,u.of)(null))),(0,a.w)(Ce=>{if(Ce?.lastOperationsData){const U=Ce.lastOperationsData.filtered||[];this.operationsContainer$.next({tab:B.d$.Performed,type:m.o.DocPlatpor,lastDocId:Ce.extDocId,operations:xe?[...this.operationsContainer$.value.operations??[],...U]:U}),Ce.lastOperationsData.operations?.length===O.uo&&this.showMoreButtonVisible$.next(!0)}return(0,u.of)(null)}))}isNoProductSelected(xe){return xe.accountNums&&0===xe.accountNums.length}isNoOperationTypeSelected(xe){return xe.opCodes&&0===xe.opCodes.length}fetchForSignOperations(xe){const we=(Ce,U)=>{const H=(0,w.mQ)(this.activeDocType$.value),Z="request_cancel"===this.activeDocType$.value?["counterpartName","description"]:["corrInn","corrFullname","description"],oe=this.lastOperationService.getCurrentPeriod(),Pe=Ce.filter(Wt=>{const Xe=Wt[H];if(Xe&&"string"==typeof Xe){const at=e()(Xe,"YYYY-MM-DD");if(at<oe.dateFromValue||at>oe.dateToValue)return!1}const Qe=this.currentFilter$.value.search;if(Qe&&-1===Z.findIndex(at=>new RegExp(Qe,"i").test(Wt[at]||"")))return!1;const Be=this.currentFilter$.value.opCodes;return!Be||Be.includes(`'${Wt.valueForCheckboxSearch}'`)}),pt=U*this.currentFilter$.value.amountToShow;this.showMoreButtonVisible$.next(Pe.length>pt);const Ht=Pe.slice(0,pt);return this.lastOperationService.getGroupedByDateOperations(Ht,H)},Ge=this.activeDocType$.value===m.o.DocPlatpor?this.currentFilter$.value.loanAgreementNums:[],ct=this.operationsContainer$.value;if(this.isCacheExists(this.activeDocType$.value,B.d$.ForSign,Ge)){const Ce=xe?(ct.page??0)+1:1;return this.operationsContainer$.next({...ct,operations:we(ct.cache||[],Ce),page:Ce}),(0,u.of)(null)}const pe=this.activeDocType$.value===m.o.DocPlatpor?{filter:[{docModule:"ibankul",docType:m.o.DocPlatpor,loanAgreementNumbers:Ge},{docModule:"ibankul",docType:m.o.DocPlatporSBP,loanAgreementNumbers:Ge},{docModule:"ibankul",docType:m.o.SbpQrTransfer,loanAgreementNumbers:Ge}]}:{filter:[{docModule:this.getActiveDocModule(),docType:this.activeDocType$.value,loanAgreementNumbers:Ge.length?Ge:null}]};return this.forSignOperationService.getForSignOperationsAll(pe).pipe((0,a.w)(Ce=>{const U=Ce.sort((Z,oe)=>new Date(oe.createStamp)>new Date(Z.createStamp)?1:-1),H=this.parseFiatOperations(U);return this.operationsContainer$.next({tab:B.d$.ForSign,type:this.activeDocType$.value,loanAgreementNumbers:Ge,page:1,operations:we(H,1),cache:H}),(0,u.of)(null)}))}fetchPlanOrRefusedOperations(xe){const we=this.isCacheExists(this.activeDocType$.value,this.currentTab$.value)?this.operationsContainer$.value:null,Ge=xe?(we?.page??0)+1:0;if(this.isNoOperationTypeSelected(this.currentFilter$.value))return this.showNoOperations(),(0,u.of)(null);const ct=this.currentFilter$.value.opCodes,pe=ct?ct.filter(Tt=>this.additionalStatuses.includes(Tt)):[],Ce=ct?ct.filter(Tt=>!this.additionalStatuses.includes(Tt)):this.getDefaultStatuses();let U=!1;pe.length&&(!Ce.length||-1===Ce.indexOf("'for_send', 'send'"))&&(Ce.push("'for_send', 'send'"),U=!0);const H=1===this.appConfigService.settings.ulSettings[y.bX],Z=this.productsService.isPartnerRurAccountExists()&&H,oe=1===this.appConfigService.settings.ulSettings[x.ay],Pe=this.productsService.isPartnerRurAccountExists()&&oe;this.activeDocType$.value===m.o.DocPlatpor&&Z&&this.currentTab$.value===B.d$.Plan&&(Ce.toString().includes("for_send")||Ce.toString().includes("send"))&&Ce.push("'pre_end'");let pt=Ce.join().replace(/'/gi,"").split(",").map(Tt=>Tt.trim()).join(", ");const Ht=this.currentFilter$.value.loanAgreementNums?.map(Tt=>`'${Tt}'`),Wt=Ht?.length>0&&this.activeDocType$.value===m.o.DocPlatpor?` and (LOAN_AGREEMENT_NUMBER in (${Ht}))`:"";let Xe,Qe="",Be="";this.counterpartService.activeCounterpart&&(Qe=this.counterpartService.activeCounterpart.inn?` and (CORR_INN = '${this.counterpartService.activeCounterpart.inn}')`:` and (CORR_FULLNAME like '%${this.counterpartService.activeCounterpart.fullname}%')`);const at=this.currentFilter$.value.search;Xe=this.activeDocType$.value!==m.o.RequestCancel?at?` and ((CORR_FULLNAME like '%${at}%') or (CORR_INN like '%${at}%') or (DESCRIPTION like '%${at}%'))`:"":at?` and ((CAUSE like '%${at}%') or (CANCEL_DOC_NUMBER like '%${at}%'))`:"",this.activeDocType$.value===m.o.RequestCancel&&(Be=` and (CANCEL_DOC_TYPE <> '${m.o.DocPlatporCurr}')`);let lt=[{docModule:this.getActiveDocModule(),docType:this.activeDocType$.value}];this.activeDocType$.value===m.o.DocPlatpor&&(lt.push({docModule:"ibankul",docType:m.o.DocPlatporSBP}),lt.push({docModule:"ibankul",docType:m.o.SbpQrTransfer})),this.activeDocType$.value===m.o.DocPlatpor&&Z&&lt.push({docModule:this.getActiveDocModule(),docType:m.o.DocPlatporBp}),this.activeDocType$.value===m.o.DocPlatpor&&Pe&&lt.push({docModule:this.getActiveDocModule(),docType:m.o.TransferRests});let Dt=`${Wt}${Xe}${Be}${Qe}`||void 0;Dt&&" and "===Dt.slice(0,5)&&(Dt=Dt.slice(5));const Yt=this.lastOperationService.getCurrentPeriod();return this.documentService.getLastDocumentsPageable({visual:!0,page:{number:Ge,size:this.currentFilter$.value.amountToShow},listOfStatuses:pt,lastDocumentFilter:{docTypes:lt,dateFrom:this.configUtilService.revertFormatDateDMY(Yt.dateFromValue.toDate()),dateTo:this.configUtilService.revertFormatDateDMY(Yt.dateToValue.toDate()),onlyThisJsonFields:(0,_.Ku)(this.activeDocType$.value)?.join(", ")},additionalFilter:Dt}).pipe((0,h.K)(()=>(0,u.of)({documents:[],page:{number:"0",size:this.currentFilter$.value.amountToShow.toString(),total:"0"}})),(0,l.U)(Tt=>(Tt.documents=this.configUtilService.getArray(Tt.documents),this.showMoreButtonVisible$.next(parseInt(`${Tt.page.number}`,10)+1<parseInt(`${Tt.page.total}`,10)),this.operationService.parsePlanedOrRefusedOperations(this.activeDocType$.value,this.currentTab$.value,Tt.documents))),(0,a.w)(Tt=>{if(!Tt.length)return(0,u.of)([]);const ot=Tt.map(Gt=>Gt.id);return this.lastOperationService.getAdditionalStatus(ot).pipe((0,a.w)(Gt=>(Tt.forEach(wt=>{Gt.find(Ze=>{if(Ze.docId===wt.id)return wt.status=Ze.status?Ze.status:wt.status,!0})}),pe.length&&(Tt=Tt.filter(wt=>-1!==pe.indexOf(wt.status)||-1===this.additionalStatuses.indexOf(wt.status)&&!("\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435"===wt.status&&U))),(0,u.of)(Tt))))}),(0,a.w)(Tt=>{const ot=(0,w.mQ)(this.activeDocType$.value);let Gt;return Gt=we&&xe?this.lastOperationService.concatTransactions(we.operations||[],this.lastOperationService.getGroupedByDateOperations(Tt,ot)):this.lastOperationService.getGroupedByDateOperations(Tt,ot),Tt.some(wt=>"required_check"===wt?.statusCode||"clarify_check"===wt?.statusCode)&&this.modalService.open($.G,{header:"\u0420\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u0445"}),this.operationsContainer$.next({tab:this.currentTab$.value,type:this.activeDocType$.value,operations:Gt,page:Ge,cache:[]}),(0,u.of)(null)}))}fetchPaymentRequests(){const xe=Ge=>{const ct=this.currentFilter$.value.search.toLowerCase();return ct?Ge.filter(pe=>["corrFullName","docNumber","amount"].some(Ce=>(pe[Ce]||"").toLowerCase().indexOf(ct)>-1)):Ge},we=this.operationsContainer$.value;return this.isCacheExists(m.o.DocPaymentRequest,B.d$.PaymentRequests)?(this.operationsContainer$.next({...we,operations:xe(we.cache||[])}),(0,u.of)(null)):this.paymentRequestService.getList().pipe((0,h.K)(()=>(0,u.of)(null)),(0,a.w)(Ge=>(this.operationsContainer$.next({tab:B.d$.PaymentRequests,type:m.o.DocPaymentRequest,cache:Ge,operations:xe(Ge)}),(0,u.of)(null))))}isCacheExists(xe,we,Ge){const ct=this.operationsContainer$.value,pe=ct?.loanAgreementNumbers?.join(",")===Ge?.join(",");return!(ct.type!==xe||ct.tab!==we||!pe||!ct.cache)}getDefaultStatuses(){switch(this.currentTab$.value){case B.d$.Plan:switch(this.activeDocType$.value){case m.o.RequestCancel:case m.o.DocPaymentRequestOutgoing:return(0,w.Zk)().filter(xe=>!xe.all&&"QR payments"!==xe.label).map(xe=>xe.value);case m.o.DocSbpTransferByQrCode:return(0,w.Zk)().filter(xe=>!xe.all).map(xe=>xe.value);default:return this.plannedTab$.value===B.wB.All?(0,w.cY)().filter(xe=>!xe.all).map(xe=>xe.value):(0,w.hP)().filter(xe=>!xe.all).map(xe=>xe.value)}case B.d$.Refused:return(0,w.ck)().filter(xe=>!xe.all).map(xe=>xe.value);default:return[]}}getPerformedFiltersModified(xe){if("1"===xe&&!this.currentFilter$.value.opCodes)switch(this.performedTab$.value){case B.Os.Out:return{...this.currentFilter$.value,opCodes:(0,w.Y1)().filter(we=>!we.all&&"09"!==we.value&&"17"!==we.value).map(we=>we.value)};case B.Os.Commission:return{...this.currentFilter$.value,opCodes:["09","17"]};default:return this.currentFilter$.value}return this.currentFilter$.value}parseFiatOperations(xe){if(null==xe||0===xe.length)return[];switch(this.activeDocType$.value){case"doc_platpor":case"doc_platpor_bp":case"transfer_rests":case"request_cancel":case"doc_payment_request_outgoing":case"doc_sbp_transferbyqrcode_ul":return this.forSignOperationService.parseFiatPlatpor(xe);case"doc_platpor_curr":case m.o.DocPlatporCurrBp:return this.forSignOperationService.parseFiatPlatporCurr(xe);case"doc_transit_pay_doc":return this.forSignOperationService.parseFiatPayDoc(xe);case"doc_currbuy":return this.forSignOperationService.parseFiatBuyOrSell(xe,"buy");case"doc_currsell":return this.forSignOperationService.parseFiatBuyOrSell(xe,"sell");case"doc_platpor_conv":return this.forSignOperationService.parseFiatBuyOrSell(xe,"buy");default:return[]}}getActiveDocModule(){return"all"===this.currencyType$.value||"RUR"===this.currencyType$.value?"ibankul":"ibankul_curr"}static#e=this.\u0275fac=function(we){return new(we||G)(C.\u0275\u0275inject(T.o),C.\u0275\u0275inject(j.Pj),C.\u0275\u0275inject(I.g),C.\u0275\u0275inject(F.l),C.\u0275\u0275inject(z.j),C.\u0275\u0275inject(X.f),C.\u0275\u0275inject(p.Z),C.\u0275\u0275inject(P.su),C.\u0275\u0275inject(E._),C.\u0275\u0275inject(R.Z))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})()},13162:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>$});var n=t(36738),e=t(15439),i=t.n(e),d=t(95698),a=t(6146),u=t(42761),h=t(94650),l=t(38101),m=t(44180),x=t(9149),O=t(37601),L=t(23962),w=t(44509),B=t(16611),_=t(39486),y=t(98504);let $=(()=>{class C{constructor(j,I,F,z,X,p,P,E,R){this.modalService=j,this.router=I,this.toastCustomService=F,this.userDataService=z,this.pluralLangPipe=X,this.currencySymbolPipe=p,this.translationService=P,this.productsService=E,this.currencyPipe=R}openSignModal(j,I){this.modalService.open(u.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!1,documents:[{docType:j.docType,docModule:j.docModule,docId:j.id}],done:F=>{F.length&&this.toastCustomService.show(F,"success"),this.router.navigate(I.url,I.extras)},closeWithoutSignCompleted:()=>{j?.id&&this.router.navigate(I.url,I.extras)}}})}openSignModalAlt(j,I,F=!1,z=!0,X=[],p="Sign document",P=!1){this.modalService.open(n.D,{inputs:{confirmAction:()=>{F&&this.userDataService.getNotification().pipe((0,d.q)(1)).subscribe();let R="\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d";switch(j.docType){case a.o.Contact167ChangeAgreement:R="\u0417\u0430\u044f\u0432\u043a\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430 \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0411\u0430\u043d\u043a. \u0421\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 24 \u0447\u0430\u0441\u0430";break;case a.o.DocNso:R="\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0411\u0430\u043d\u043a"}this.toastCustomService.show(R,"success"),this.modalService.close(),this.router.navigate(I.url,I.extras)},cancelAction:()=>{z&&this.router.navigate(I.url,I.extras)},document:{docIds:[j.id],docType:j.docType,docModule:j.docModule},paramsWithInfoItems:X,title:p,isShowParams:P},isSign:!0,isSignDesign:!0})}generateSignModalParams(j){if(j.docType===a.o.DocNso){const I=i()(j.startDate).format("DD.MM.YYYY"),F=i()(j.endDate).format("DD.MM.YYYY"),z=i()(j.endDate).diff(i()(j.startDate),"days"),p=this.pluralLangPipe.transform("ru").transform(z,{one:"days.one",few:"days.few",other:"days.other"}),P=this.productsService.getProductByNumber(j.accNumber);return[{title:null,infoItems:[{name:"\u0421\u0440\u043e\u043a",value:`${I} - ${F}, ${this.translationService.translate(p,{days:z})}`},{name:"\u0421\u0442\u0430\u0432\u043a\u0430",value:`${Number.parseFloat(j.interestRate)||"-"} %`},{name:"\u0421\u0443\u043c\u043c\u0430",value:`${this.currencyPipe.transform(j.amount)} ${this.currencySymbolPipe.transform(P?.currencyCode,!0)??""}`},{name:"\u0421\u0447\u0435\u0442",value:P?.alias||P?.info||P?.number}]}]}return[]}static#e=this.\u0275fac=function(I){return new(I||C)(h.\u0275\u0275inject(l.Z),h.\u0275\u0275inject(m.F0),h.\u0275\u0275inject(x.j),h.\u0275\u0275inject(O.M),h.\u0275\u0275inject(L.u),h.\u0275\u0275inject(w.G),h.\u0275\u0275inject(B.D7),h.\u0275\u0275inject(_.su),h.\u0275\u0275inject(y.H))};static#t=this.\u0275prov=h.\u0275\u0275defineInjectable({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},49284:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>B});var n=t(69751),e=t(4128),i=t(39646),d=t(54004),a=t(94813),u=t(70262),h=t(99921),l=t(94650),m=t(3751),x=t(15644),O=t(37601),L=t(39486),w=t(40929);let B=(()=>{class _{constructor($,C,T,j,I){this.apiService=$,this.configUtilService=C,this.userDataService=T,this.productsService=j,this.documentService=I}getList(){return this.apiService.get("payment_req").pipe(this.getDataArrayFromResponse("paymentRequest"))}getOrgData(){return n.y.create($=>{this.userDataService.getClientInfoOrganization().subscribe(C=>{C&&($.next(C),$.complete())})})}getLists(){return(0,e.D)(this.apiService.publicGet("ru_rko_urgent_type"),this.apiService.publicGet("ru_rko_send_type"),this.apiService.publicGet("ru_rko_nds_type"))}getAvailableAcc(){return this.apiService.post("document/create/payment_req_out",{}).pipe((0,d.U)($=>$&&$.accIdProducts.accounts?this.configUtilService.getArray($.accIdProducts.accounts):[]))}createPayReqOut($){return this.apiService.post("document/create/payment_req_out",$)}getDocumentInfoData($,C,T,j){const I=this.productsService.getProduct(j),F=this.documentService.getDocumentById(T,C,$).pipe((0,a.j)("paymentReqOutDocument"));return(0,e.D)(F,I).pipe((0,d.U)(([z,X])=>{const p=(0,h.c)(z);return[p.leftRows,p.rightRows]=[p.rightRows,p.leftRows],[p.fullName,p.corrFullName]=[p.corrFullName,p.fullName],{docNumber:z.docNumber,docDate:z.docDate,amount:z.amount,docType:z.docType,accountName:X.number,accountNum:"",currency:X.currency,buttons:[{type:"print",data:{url:`print/pdf?doc_ids=${$}`}}],...p}}))}getErrorText($){return $.errorText?$.errorText:$.message?$.message:$.error?$.error:"string"==typeof $||"number"==typeof $?String($):"Unknown error"}createAccept($){return this.apiService.post("request/process/metinv/accept_no_accept",$)}createAdvancedAccept($){return this.apiService.post("request/process/metinv/advanced_accept",$)}createAdvancedAcceptEdit($){return this.apiService.post("accept/edit",$)}createAnnulmentOrder($){return this.apiService.post("accept/cancel",$)}nextDocNumber($){return this.apiService.get(`document/number/next?doc_module=ibankul&doc_type=${$}`)}getDataArrayFromResponse($){return C=>C.pipe((0,d.U)(T=>T&&T[$]?this.configUtilService.getArray(T[$]):[]),(0,u.K)(()=>(0,i.of)([])))}static#e=this.\u0275fac=function(C){return new(C||_)(l.\u0275\u0275inject(m.s),l.\u0275\u0275inject(x.Pj),l.\u0275\u0275inject(O.M),l.\u0275\u0275inject(L.su),l.\u0275\u0275inject(w.Z))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac})}return _})()},67209:(Ee,Q,t)=>{"use strict";t.d(Q,{j:()=>B});var n=t(61135),e=t(95698),i=t(54004),d=t(63471),a=t(6146),u=t(98202),h=t(94650),l=t(3751),m=t(40929),x=t(16611),O=t(15644),L=t(36895),w=t(9149);let B=(()=>{class _{constructor($,C,T,j,I,F){this.apiService=$,this.documentService=C,this.translationService=T,this.configUtilService=j,this.datePipe=I,this.toastCustomService=F,this._isLoading=new n.X(!0),this.isLoading$=this._isLoading.asObservable(),this.powerOfAttorneyList=[],this.powerOfAttorneyListSave=[],this.saveDataForEdit=new n.X(null),this.saveDataForSign=new n.X(null),this._powerOfAttorneyList=new n.X(null),this.powerOfAttorneyList$=this._powerOfAttorneyList.asObservable(),this.icons=new d.R(this.translationService).getIcons()}setIsLoading($){this._isLoading.next($)}setDataElem($){this.saveDataForEdit.next($)}sendRequestPowerOfAttorney($){return this.apiService.post("power_of_attorney/create",$||{})}sendRequestRevokePowerOfAttorney($){return this.apiService.post("power_of_attorney_revoke/create",$||{})}deleteFile($,C){return this.apiService.delete(`attachment/${$}/${C}`)}loadPowerOfAttorneyList($){this.setIsLoading(!0),this.documentService.getLastDocumentsPageable({visual:!0,page:$,lastDocumentFilter:{docTypes:[{docModule:"ibankul",docType:a.o.PowerOfAttorney}]}}).pipe((0,e.q)(1),(0,i.U)(T=>{let j=[];return T?.documents?.length&&(this.powerOfAttorneyListSave=T?.documents,j=this.preparePowerOfAttorneyList(T)),{documents:j,page:T?.page}})).subscribe({next:T=>{$?.showMore?this.powerOfAttorneyList=[...this.powerOfAttorneyList,...T.documents]:(this.powerOfAttorneyList=[],this.powerOfAttorneyList=[...T.documents]),this._powerOfAttorneyList.next({documents:this.powerOfAttorneyList,page:T?.page}),this.setIsLoading(!1)},error:T=>{T?.errorText&&this.toastCustomService.show(T.errorText,"error"),this.setIsLoading(!1)}})}setRevokeDocument($,C){C?.length||(C=this.powerOfAttorneyListSave);const T=C.find(j=>j.id===$);this.saveDataForSign.next(T)}preparePowerOfAttorneyList($){return $.documents.map(C=>(("decline"===C.status||"cancelled"===C.status)&&(C.isOpenable=!0,C.isOpen=!1),C.actions=this.configUtilService.getArray(C.actions),C.statusCaption="new"===C.status?C.signStatusCaption:C.statusCaption,{dots:{buttonActions:this.configUtilService.makeButtonActions({actions:C.actions,...C},null)},...C,title:C.docNumber?`\u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u2116${C.docNumber} \u043e\u0442 ${this.datePipe.transform(C.docDate,"dd.MM.YYYY")}`:`\u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0442 ${this.datePipe.transform(C.docDate,"dd.MM.YYYY")}`,description:C.confidantFullName,amount:C.docExpDate?`\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e ${this.datePipe.transform(C.docExpDate,"dd.MM.YYYY")}`:" ",statusCaption:this.configUtilService.capitalizeFirstLetter(C.statusCaption),statusCaptionColor:u.rV.get(C.status)}))}static#e=this.\u0275fac=function(C){return new(C||_)(h.\u0275\u0275inject(l.s),h.\u0275\u0275inject(m.Z),h.\u0275\u0275inject(x.D7),h.\u0275\u0275inject(O.Pj),h.\u0275\u0275inject(L.uU),h.\u0275\u0275inject(w.j))};static#t=this.\u0275prov=h.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},42873:(Ee,Q,t)=>{"use strict";t.d(Q,{F:()=>d});var n=t(69751),e=t(94650),i=t(3751);let d=(()=>{class a{constructor(h){this.apiService=h}getPrefillData(h){return this.apiService.post("document/create/prefill",h||{})}initDocument(){return n.y.create(h=>{this.getPrefillData().subscribe(l=>{h.next(l),h.complete()})})}getNdsText(h){return n.y.create(l=>{this.getPrefillData(h).subscribe(m=>{l.next(m.ndsText),l.complete()})})}getDocData(h){return n.y.create(l=>{this.getPrefillData(h).subscribe(m=>{l.next(m),l.complete()})})}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275inject(i.s))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac})}return a})()},39486:(Ee,Q,t)=>{"use strict";t.d(Q,{Nd:()=>L,OI:()=>w,su:()=>B});var n=t(61135),e=t(39646),i=t(54004),d=t(34782),a=t(70262),u=t(86349),h=t(8226),l=t(94650),m=t(3751),x=t(15644),O=t(68753);const L="2000",w={CNY:"CNY"};let B=(()=>{class _{static#e=this.TRANSIT_ACCOUNTS_MASK=/^(\d{16}1|\d{13}1)/g;constructor($,C,T){this.apiService=$,this.configUtilService=C,this.authService=T,this.RUR_CODES=["RUR","RUB","810","643"],this.productsFromServer$=new n.X(null),this.isSingleAccount$=new n.X(!1),this.currentProducts$=new n.X([]),this.editProductAlias$=new n.X(!1),this.hasPartnerAccount$=new n.X(!1),this.currentProductId$=new n.X(null),this.TYPE_ACCOUNT_TRANSIT_SYMBOLS=["61","91"],this.TYPE_ACCOUNT_TRANSIT_TYPES=["6","71"],this._actualCreditProducts=new n.X([]),this.actualCreditProducts$=this._actualCreditProducts.asObservable(),this._hasPartnerRurAccount=new n.X(null),this.hasPartnerRurAccount$=this._hasPartnerRurAccount.asObservable(),this.authService.isLoggedIn$.subscribe(j=>{!j&&this.productsCache$&&this.clearProducts()})}getProducts($=!1){$&&(this.currentProducts$.next([]),this.productsCache$=void 0);const C=["70","71","72"];return this.productsCache$?this.products&&this.hasPartnerAccount$.next(this.products.some(T=>C.includes(T.type))):this.productsCache$=this.loadProducts().pipe((0,i.U)(T=>{this.products=this.prepareProducts(T),this.hasPartnerAccount$.next(this.products.some(I=>C.includes(I.type))),this._hasPartnerRurAccount.next(this.products.some(I=>("1002"===I.subtype||"2002"===I.subtype)&&"72"===I.type)),Object.keys(T).forEach(I=>{T[I]=this.configUtilService.getArray(T[I])}),delete T.cards;let j={...T};if(T&&T.accounts){const I=[],F=[];Object.values(T.accounts).filter(z=>{z.subtype===h.IA?I.push(z):F.push(z)}),I.length&&(j={...T,accounts:F,closedNovosibirskAccounts:I})}return this._actualCreditProducts.next(j.credits||[]),this.productsFromServer$.next(j),this.currentProducts$.next(this.products),this.products}),(0,d.d)(1)),this.productsCache$}isTransitAccount($){return this.TYPE_ACCOUNT_TRANSIT_SYMBOLS.includes($.slice(15,17))}isRurCurrencyCode($){return this.RUR_CODES.includes(`${$}`)}getProductsCurrency(){return this.products.filter($=>"RUR"!==$.currency&&"RUB"!==$.currency)}getProductsRur(){return this.products.filter($=>"RUR"===$.currency||"RUB"===$.currency)}getProductsByType($){return this.getProducts().pipe((0,i.U)(C=>this.findProductByType(C,$)))}prepareProducts($){const C=[];return Object.keys($).forEach(T=>{this.configUtilService.getArray($[T]).forEach(I=>{if("accounts"===T&&$.cards){const z=this.configUtilService.getArray($.cards).filter(X=>X.number===I.number).map(X=>(X.parent=I,X));z&&z.length>0&&(I.linkedCards=z)}"cards"!==T&&(I.productType=T.substring(0,T.length-1),C.push(I))})}),C}getProductInfo($){return $.alias||$.info}getProductCurrencyById($){const C=this.findProductById(this.products,$);return C?C.currency:""}getProductInfoById($){const C=this.findProductById(this.products,$);return C?this.getProductInfo(C):""}getProductByNumber($){return this.products.find(T=>T.number===$)}getProductNumberById($){const C=this.findProductById(this.products,$.toString());return C?C.number:""}getProductIdByNumber($){return this.getProducts().pipe((0,i.U)(C=>(0,u.sE)(C,T=>T.number===$)))}findProductById($,C){return(0,u.sE)($,T=>T.id===C)}findProductByType($,C){return(0,u.hX)($,T=>T.productType===C)}getProduct($){return this.getProducts().pipe((0,i.U)(C=>this.findProductById(C,$)))}getBankAccountByCode($){return this.apiService.get(`tools/bankBranch?code=${$}`).pipe((0,a.K)(()=>(0,e.of)(null)))}changeProductAlias($,C){return this.apiService.put("product/change_alias",{id:$,alias:C}).pipe((0,i.U)(()=>!0),(0,a.K)(()=>(0,e.of)(!1)))}clearProducts(){this.productsCache$=void 0,this.productsFromServer$.next(void 0),this.currentProducts$.next([])}isPartnerRurAccountExists(){return this._hasPartnerRurAccount.getValue()}loadProducts(){return this.apiService.get("product?sync=true&with_blocked=true&with_stays=true")}static#t=this.\u0275fac=function(C){return new(C||_)(l.\u0275\u0275inject(m.s),l.\u0275\u0275inject(x.Pj),l.\u0275\u0275inject(O.e))};static#n=this.\u0275prov=l.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac})}return _})()},11797:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>w});var n=t(17489),i=t(77579),d=t(61135),a=t(82722),u=t(54004),h=t(63471),l=t(94650),m=t(3751),x=t(40929),O=t(14228),L=t(16611);let w=(()=>{class B{constructor(y,$,C,T){this.apiService=y,this.documentService=$,this.operationService=C,this.translationService=T,this.numberMcd="da39068c-06d6-461a-b098-875b4989e1e8",this.mcdLink="https://m4d.nalog.gov.ru/EMCHD/check-status?guid=da39068c-06d6-461a-b098-875b4989e1e8",this.listReferences=[],this.unsubscribe$=new i.x,this.icons=new h.R(this.translationService).getIcons(),this.listReferences$=new d.X(null),this.docTypesData={docTypes:[{docModule:"ibankul",docType:"accounts_rest_reference"},{docModule:"ibankul",docType:"turnover_reference"},{docModule:"ibankul",docType:"open_accounts_reference"},{docModule:"ibankul",docType:"loan_debt_reference"},{docModule:"ibankul",docType:"card_index_reference"}]}}sendRequestReference(y,$){let C="";switch(y){case"opens":C="reference/open_accounts/create";break;case"remainder":C="reference/accounts_rest/create";break;case"period":C="reference/turnover/create";break;case"debt":C="reference/loan_debt/create";break;case"card":C="reference/card_index/create"}return this.apiService.post(C,$||{})}getListReferences$(){return this.listReferences$}getHistoryReferenceList(y){this.getInitialListReferences(y).pipe((0,a.R)(this.unsubscribe$)).subscribe($=>{let C=[];$?.documents&&(C=$.documents.map(T=>{const j=[];return"true"===T.isBpx&&j.push({color:"#9448bc",title:'\u041f\u0410\u041e \u043a\u043e\u043c\u0431\u0430\u043d\u043a "\u0425\u0438\u043c\u0438\u043a"'}),T.actions.find(I=>"download_signed"===I)&&j.push({backgroundColor:"#f1f2f2",color:"#2F54EB",title:"\u0421 \u042d\u0426\u041f"}),{document:{...T,tags:j},actions:[...this.operationService.getActions(this.icons,T.actions)]}})),y?.showMore?this.listReferences=[...this.listReferences,...C]:(this.listReferences=[],this.listReferences=[...C]),this.listReferences$.next({documents:this.listReferences,page:$?.page})})}getInitialListReferences(y){return this.apiService.post("metinv/pageable/document/multi_types_page",{visual:!0,page:y,lastDocumentFilter:this.docTypesData}).pipe((0,u.U)(T=>T?.documents&&!n.isEmpty(T.documents)?{documents:Array.isArray(T.documents)?[...T.documents]:[T.documents],page:T.page}:null))}removeReference(y){return this.documentService.deleteDocument(y)}static#e=this.\u0275fac=function($){return new($||B)(l.\u0275\u0275inject(m.s),l.\u0275\u0275inject(x.Z),l.\u0275\u0275inject(O.f),l.\u0275\u0275inject(L.D7))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})()},26759:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>i});var n=t(94650);const e="metib_previous_url";let i=(()=>{class d{setPreviousUrl(u){sessionStorage.setItem(e,u)}getPreviousUrl(){return sessionStorage.getItem(e)}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac})}return d})()},46451:(Ee,Q,t)=>{"use strict";t.d(Q,{X:()=>y});var n=t(32076),e=t(39646),i=t(62843),d=t(4128),a=t(49770),u=t(63900),h=t(54004),l=t(46590),m=t(34782),x=t(66304),O=t(70262),L=t(69718),w=t(58440),_=t(94650);let y=(()=>{class ${constructor(){}get errorCodes(){return this.plugin?this.plugin.errorCodes:{}}get plugin(){if(!this.pluginObject)throw new Error("plugin not found");return this.pluginObject}get paramsMapping(){return{commonName:"COMMON_NAME",organizationalUnitName:"ORGANIZATION_UNIT",organizationName:"ORGANIZATION",countryName:"COUNTRY",stateOrProvinceName:"STATE_OR_PROVINCE",localityName:"CITY",emailAddress:"EMAIL_ADDRESS",INN:"INN",SNILS:"SNILS",OGRNIP:"OGRNIP",OGRN:"OGRN","1.2.840.113549.1.9.2":"UNSTRUCTURED_NAME","1.2.840.113549.1.9.8":"UNSTRUCTURED_ADDRESS",title:"TITLE","2.5.4.65":"PASSPORT","2.5.4.9":"STREET",surname:"SURNAME",givenName:"GIVENNAME"}}clear(){}init(){let T;return(0,n.D)(w.ready).pipe((0,u.w)(()=>window.chrome?(0,n.D)(w.isExtensionInstalled()):(0,e.of)(!0)),(0,u.w)(X=>X?(0,n.D)(w.isPluginInstalled()):(T="Extension not found",(0,e.of)(!1))),(0,u.w)(X=>X?(0,n.D)(w.loadPlugin()):(T="Plugin not found",(0,e.of)(!1))),(0,u.w)(X=>X?(this.pluginObject=X,console.log("Rutoken plugin version ",this.pluginObject.version),this.getTokensList(!0)):(0,i._)({errorText:T})))}getTokenInfo(T){const j={label:this.getDeviceLabel(T),serial:this.getDeviceSerial(T),formats:this.getDeviceFormats(T),id:(0,e.of)(T)},I=Object.values(j);return(0,d.D)(I).pipe((0,h.U)(F=>{const z={};return Object.keys(j).forEach((X,p)=>z[X]=F[p]),z}))}getTokensList(T=!1){return T&&(this.tokensListCache=void 0),this.tokensListCache||(this.tokensListCache=this.getDeferObservableWithErrorHandling(()=>this.plugin.enumerateDevices()).pipe((0,u.w)(j=>{const I=j.map(F=>this.getTokenInfo(F));return(0,d.D)(I).pipe((0,l.d)([]))}),(0,m.d)(1))),this.tokensListCache}getTokenById(T){return this.getTokensList().pipe((0,h.U)(j=>j.find(I=>I.id===T)))}auth(T,j,I){return(T?this.getTokenById(T):this.getFirstToken()).pipe((0,u.w)(z=>z?I&&!this.checkSafeTouchSupport(z)?(0,i._)({errorText:"Safetouch is not support"}):this.login(T,j).pipe((0,x.c)(this.getCertificates(T,!0))):(0,i._)({errorText:"Token not found"})))}login(T,j){return this.getDeviceAuthenticationStatus(T).pipe((0,u.w)(I=>I?this.deviceLogout(T):(0,e.of)(!0)),(0,x.c)(this.deviceRemovePin(T)),(0,x.c)(this.deviceLogin(T,j)))}getCertificates(T,j=!1){return j&&(this.certificatesCache=void 0),this.certificatesCache||(this.certificatesCache=this.getDeferObservableWithErrorHandling(()=>this.plugin.enumerateCertificates(T,this.plugin.CERT_CATEGORY_USER)).pipe((0,u.w)(I=>{const F=I.map(z=>this.deviceParseCertificate(T,z));return(0,d.D)(F).pipe((0,l.d)([]))}),(0,h.U)(I=>this.prepareCertificates(I)),(0,m.d)(1))),this.certificatesCache}getCertificateByHexSerial(T,j){const I=j.toUpperCase().replace(/^0+/,"");return this.getCertificates(T).pipe((0,h.U)(F=>F.find(z=>z.parsedSerial===I)),(0,u.w)(F=>F?(0,e.of)(F):(0,i._)({errorText:"Sign cert not found"})))}sign(T,j,I){if(0===I.length)return(0,i._)({errorText:"No data to sign",errorCode:2});const F={addSignTime:!0,useHardwareHash:!0,detached:!1,addUserCertificate:!0};return this.getDeferObservableWithErrorHandling(()=>this.plugin.sign(T,j,I,!0,F))}changePin(T,j,I){return this.deviceChangePin(T,j,I)}importCertificate(T,j){return this.deviceImportCertificate(T,j,this.plugin.CERT_CATEGORY_USER)}generateCertificate(T,j){const I=[],F=j.values;return Object.keys(this.paramsMapping).forEach(z=>{const p=F[this.paramsMapping[z]];p&&z&&I.push({rdn:z,value:p})}),this.getPublicKeyAlgorithm(T).pipe((0,u.w)(z=>{const X=j.containerName,p=this.getExtensions(j),{options:P,hashAlgorithm:E}=this.getOptionsAndHashAlgorithm(z);return this.deviceGenerateKeyPair(T,"A",X,P).pipe((0,u.w)(R=>this.deviceCreatePkcs10(T,R,I,p,{hashAlgorithm:E})),(0,h.U)(R=>R.replace("-----BEGIN CERTIFICATE REQUEST-----\n","").replace("\n-----END CERTIFICATE REQUEST-----","")))}))}formattingRutokenErrorText(T){return T.pipe((0,O.K)(j=>{if(j.errorText&&j.errorText.includes("_")){const I=j.errorText.replace(/_/g," ");j.errorText=I.charAt(0).toUpperCase()+I.slice(1).toLowerCase()}return(0,i._)(j)}))}getDeviceInfo(T,j){return(0,a.P)(()=>this.plugin.getDeviceInfo(T,j)).pipe((0,O.K)(()=>(0,e.of)(void 0)))}getDeviceLabel(T){return this.getDeviceInfo(T,this.plugin.TOKEN_INFO_LABEL).pipe((0,h.U)(j=>(j||"").replace(/<no label>/,`#${T}`)))}getDeviceSerial(T){return this.getDeviceInfo(T,this.plugin.TOKEN_INFO_SERIAL)}getDeviceFormats(T){return this.getDeviceInfo(T,this.plugin.TOKEN_INFO_FORMATS)}getDeviceAuthenticationStatus(T){return this.getDeviceInfo(T,this.plugin.TOKEN_INFO_IS_LOGGED_IN)}getDeviceAlgorithms(T){return this.getDeviceInfo(T,this.plugin.TOKEN_INFO_ALGORITHMS)}getFirstToken(){return this.getTokensList().pipe((0,h.U)(T=>T[0]))}prepareCertificates(T){return T.map(j=>{const I=j.subject.find(xe=>"commonName"===xe.rdn),F=I?I.value:void 0,z=j.subject.find(xe=>"organizationName"===xe.rdn),X=z?z.value:void 0,p=new Date(j.validNotBefore).getTime(),P=new Date(j.validNotAfter).getTime(),E=(new Date).getTime();return{expired:p>E&&E>P,commonName:F,organizationName:X,parsedSerial:j.serialNumber.replace(/:/g,"").toUpperCase(),serial:j.serialNumber,certId:j.certId}})}getExtensions(T){const j={},I=T.SIGN_SUBJECT_TOOL;I&&(j["1.2.643.100.111"]=I);const F=T.ENHANCED_KEY_USAGE_OIDS;if(F){j.extKeyUsage=[];let z="";for(let X=0;X<F.length;X++)z.length>0&&(z+=","),z+=F[X];j.extKeyUsage.push(z)}return j}getOptionsAndHashAlgorithm(T){T||(T=this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2001);const j={publicKeyAlgorithm:T};return T===this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2001?{options:{...j,paramset:"A",signatureSize:512},hashAlgorithm:this.plugin.HASH_TYPE_GOST3411_94}:T===this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2012_256?{options:{...j,paramset:"A",signatureSize:512},hashAlgorithm:this.plugin.HASH_TYPE_GOST3411_12_256}:T===this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2012_512?{options:{...j,paramset:"A",signatureSize:1024},hashAlgorithm:this.plugin.HASH_TYPE_GOST3411_12_512}:(console.error("Unsupported public key algorithm: "+T),{options:j})}getPublicKeyAlgorithm(T){return this.plugin.TOKEN_INFO_ALGORITHMS?this.getDeviceAlgorithms(T).pipe((0,h.U)(j=>j.indexOf(this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2012_256)>-1?this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2012_256:this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2001)):(console.error("getPublicKeyAlgorithm() oldAlgorithmERROR!"),(0,e.of)(this.plugin.PUBLIC_KEY_ALGORITHM_GOST3410_2001))}deviceLogin(T,j){return this.getDeferObservableWithErrorHandling(()=>this.plugin.login(T,j)).pipe((0,L.h)(T))}deviceLogout(T){return this.getDeferObservableWithErrorHandling(()=>this.plugin.logout(T))}deviceRemovePin(T){return this.getDeferObservableWithErrorHandling(()=>this.plugin.removePin(T))}deviceSavePin(T){return this.getDeferObservableWithErrorHandling(()=>this.plugin.savePin(T))}deviceParseCertificate(T,j){return this.getDeferObservableWithErrorHandling(()=>this.plugin.parseCertificate(T,j)).pipe((0,h.U)(F=>(F.certId=j,F)))}deviceGenerateKeyPair(T,j,I,F){return this.getDeferObservableWithErrorHandling(()=>this.plugin.generateKeyPair(T,j,I,F))}deviceCreatePkcs10(T,j,I,F,z){return this.getDeferObservableWithErrorHandling(()=>this.plugin.createPkcs10(T,j,I,F,z))}deviceChangePin(T,j,I,F={}){return this.getDeferObservableWithErrorHandling(()=>this.plugin.changePin(T,j,I,F))}deviceImportCertificate(T,j,I){return this.getDeferObservableWithErrorHandling(()=>this.plugin.importCertificate(T,j,I))}getDeferObservableWithErrorHandling(T){return(0,a.P)(T).pipe((0,O.K)(j=>this.errorHandler(j)))}errorHandler(T){if("string"==typeof T)throw{errorText:T};const j=+T.message,I=Object.entries(this.errorCodes);for(const[F,z]of I)if(z===j)throw{errorText:F,errorCode:z};throw{errorText:"Unknown error",errorCode:j}}checkSafeTouchSupport(T){return!(!T||!T.formats.includes(this.plugin.DEVICE_DATA_FORMAT_SAFETOUCH))}static#e=this.\u0275fac=function(j){return new(j||$)};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac})}return $})()},81300:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>h});var n=t(34782),e=t(54004),i=t(86349),d=t(94650),a=t(3751),u=t(15644);let h=(()=>{class l{constructor(x,O){this.apiService=x,this.configUtilService=O,this._serverSettingsCache={},this._enabled=[1,"1",!0,"true"],this.servicesFL="SERVICES/FL",this.servicesUL="SERVICES/UL",this.servicesULCurr="SERVICES/UL_CURR",this.servicesCommon="SERVICES/COMMON",this.servicesChatWidget="SERVICES/EXTERNAL"}syncResource(){return this.apiService.post("sync_roles",{})}loadResource(x){const O=x?`?resource=${x}`:"";return x===this.servicesChatWidget?this.loadExternalResource():this.apiService.get(`system/property${O}`)}loadExternalResource(){return this.apiService.get(`system/property?resource=${this.servicesChatWidget}`,{withCredentials:!0,headers:this.configUtilService.noCacheHeaders})}getResource(x,O=!1){return O&&(this._serverSettingsCache[x]=void 0),this._serverSettingsCache[x]||(this._serverSettingsCache[x]=this.loadResource(x).pipe((0,n.d)(1))),this._serverSettingsCache[x]}getSettingByName(x,O){return O.find(L=>L.name===x)}getSettingValue(x,O,L=!1){return this.getResource(x,L).pipe((0,e.U)(w=>({[O]:w[O]})))}getSettingsValues(x,O,L=!1){return this.getResource(x,L).pipe((0,e.U)(w=>{const B={};return O.forEach(_=>B[_]=w[_]),B}))}checkIfSettingIsEnabledOrNot(x){return(0,i.q9)(this._enabled,x)}getBooleanSetting(x,O,L=!1){return this.getSettingValue(x,O,L).pipe((0,e.U)(w=>({[O]:this.checkIfSettingIsEnabledOrNot(w[O])})))}getBooleanSettings(x,O,L=!1){return this.getSettingsValues(x,O,L).pipe((0,e.U)(w=>{const B={};return O.forEach(_=>B[_]=this.checkIfSettingIsEnabledOrNot(w[_])),B}))}clearSettingsCache(){this._serverSettingsCache={}}static#e=this.\u0275fac=function(O){return new(O||l)(d.\u0275\u0275inject(a.s),d.\u0275\u0275inject(u.Pj))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac})}return l})()},9626:(Ee,Q,t)=>{"use strict";t.d(Q,{O:()=>u});var n=t(39646),e=t(54004),i=t(94650),d=t(3751),a=t(15644);let u=(()=>{class h{constructor(m,x){this.apiService=m,this.configUtilService=x}getAvailableItems(m="service"){return this.apiService.get(`dic/services_and_products?type=${m}`).pipe((0,e.U)(x=>x.serviceAndProduct?this.configUtilService.getArray(x.serviceAndProduct):[]))}getItems(m=!1){return this.items?(0,n.of)(this.items):this.getAvailableItems()}getItemById(m){return this.getItems().pipe((0,e.U)(x=>x.find(O=>O.id===m)))}sendStatement(m){return this.apiService.post("service_and_product_req",{spId:m})}static#e=this.\u0275fac=function(x){return new(x||h)(i.\u0275\u0275inject(d.s),i.\u0275\u0275inject(a.Pj))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac})}return h})()},59336:(Ee,Q,t)=>{"use strict";t.d(Q,{t:()=>l});var n=t(80529),e=t(62843),i=t(54004),d=t(70262),a=t(94650),u=t(3751),h=t(15644);let l=(()=>{class m{constructor(O,L,w){this.apiService=O,this.httpClient=L,this.configUtilService=w}smsForm(O){const L=(new n.WM).set("Content-Type","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}security/authentication/additional`,O,{withCredentials:!0,headers:L}).pipe((0,i.U)(w=>w),(0,d.K)(w=>(0,e._)(w)))}repeatSms(O){const L=(new n.WM).set("Content-Type","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}security/authentication/additional?restart=${O}`,"",{withCredentials:!0,observe:"response",responseType:"text",headers:L}).pipe((0,i.U)(w=>w.status),(0,d.K)(w=>(0,e._)(w)))}smsPush(O){const L=(new n.WM).set("Content-Type","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}security/authentication/additional/notification?key=${O}`,"",{withCredentials:!0,observe:"response",responseType:"text",headers:L}).pipe((0,i.U)(w=>w.status),(0,d.K)(w=>(0,e._)(w)))}loginPayControl(){return this.apiService.get("security/authentication/additional/paycontrol")}static#e=this.\u0275fac=function(L){return new(L||m)(a.\u0275\u0275inject(u.s),a.\u0275\u0275inject(n.eN),a.\u0275\u0275inject(h.Pj))};static#t=this.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac})}return m})()},46520:(Ee,Q,t)=>{"use strict";t.d(Q,{W:()=>a});var n=t(54004),e=t(94650),i=t(3751),d=t(81300);let a=(()=>{class u{constructor(l,m){this.apiService=l,this.serverSettings=m}isSvetoforAccessSetting(){return this.serverSettings.getResource("SERVICES/EXTERNAL").pipe((0,n.U)(l=>1==+l["KONTUR_FOCUS_4/ENABLED"]))}isSvetoforAvailable(){return this.serverSettings.getResource("SERVICES/UL").pipe((0,n.U)(l=>1==+l["REQUEST/KONTUR_FOCUS_OFF"]||1==+l["REQUEST/KONTUR_FOCUS_ON"]))}static#e=this.\u0275fac=function(m){return new(m||u)(e.\u0275\u0275inject(i.s),e.\u0275\u0275inject(d.l))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},90042:(Ee,Q,t)=>{"use strict";t.d(Q,{Yc:()=>x,iY:()=>L});var n=t(61135),e=t(13099),i=t(39646),d=t(70262),a=t(54004),u=t(94650),h=t(3751),l=t(15644),m=t(9149);const x="IS_UNIFIED_BOOK_TARIFF",O={30000000021:"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439",30000000022:"\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439",30000000023:"\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0412\u042d\u0414",30000000024:"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439",30000000025:"\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439"};let L=(()=>{class w{constructor(_,y,$){this.apiService=_,this.configUtilService=y,this.toast=$,this.isShowPackage$=new n.X(!1)}static isUnifiedTariffBook(_){return _&&_.code in O}isTariffForCashOrder(_){return _&&_.forCash}getNewTariffs(){return this.apiService.get("dic/tariffs_client_ul_metinv/getAvailableTariffs").pipe((0,d.K)(()=>{throw Error("Tariffs empty")}))}getCurrentTariff(){return this.apiService.get("dic/tariffs_client_ul_metinv/getCurrentTariff").pipe((0,e.B)(),(0,d.K)(_=>(this.toast.show(_.message||"Tariffs empty","error"),(0,i.of)(_))))}getHistoryRating(){const _=new Date;let y=_.getDate(),$=_.getMonth()+1;y<10&&(y="0"+y),$<10&&($="0"+$);const T=_.getFullYear()+"-"+y+"-"+$,j=new Date((new Date).getTime()-6048e5);let I=j.getDate(),F=j.getMonth()+1;const z=j.getFullYear();return I<10&&(I="0"+I),F<10&&(F="0"+F),this.apiService.get(`white_business/history?dateStart=${z+"-"+I+"-"+F}&dateFinish=${T}`).pipe((0,a.U)(p=>p?.response?.state?.data?p.response.state.data.map(P=>({...P,date:P.date.split("-").reverse().slice(0,-1).join(".")})):null),(0,e.B)(),(0,d.K)(p=>(this.toast.show(p.message,"error"),p)))}getCurrentLimits(){return this.apiService.get("dic/tariffs_client_ul_metinv/getLimits").pipe((0,d.K)(_=>(this.toast.show(_.message,"error"),_)))}getTariffDocByTariffId(_){return this.apiService.post("document/list",{docModule:"ibankul",docType:"change_tariff_ul_req",filter:`status='end' and tariffId='${_}'`})}getNewTariffPackages(){return this.apiService.get("dic/tariffs_client_ul_metinv/getAvailablePackages").pipe((0,d.K)(()=>{throw Error("Tariffs empty")}))}getRequestsByTariffId(_){return this.apiService.post("document/list",{docModule:"ibankul",docType:"change_tariff_ul_req",filter:`(status='send' or status='for_send') and tariffId='${_}'`})}activatePackage(_,y,$){return this.apiService.post("dic/tariffs_client_ul_metinv/connectPackage",{packageId:_,accountNumber:y,docDate:$})}changeTariff(_,y){return this.apiService.post("change_tariff_ul_req",{tariffId:_,docDate:y})}getVedPackagesByTariff(_){return this.apiService.get(_?`dic/tariffs_client_ul_metinv/getVedPackagesByTariff?id=${_}`:"dic/tariffs_client_ul_metinv/getVedPackagesByTariff").pipe((0,d.K)(()=>{throw Error("Tariffs empty")}))}static#e=this.\u0275fac=function(y){return new(y||w)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.Pj),u.\u0275\u0275inject(m.j))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},81814:(Ee,Q,t)=>{"use strict";t.d(Q,{M:()=>B});var n=t(17489),i=t(15439),d=t.n(i),a=t(61135),u=t(39646),h=t(54004),l=t(70262),m=t(63900),x=t(94650),O=t(3751),L=t(15644),w=t(16611);let B=(()=>{class _{constructor($,C,T){this.apiService=$,this.configUtilService=C,this.translationService=T,this.declineDocsInfo$=new a.X(null),this.declineDocsCount$=new a.X(null)}getTariffs(){return this.apiService.get("dic/tariffs_client_ul").pipe((0,h.U)($=>this.configUtilService.getArray($.tariffUl).map(C=>(C.code=C.code.trim(),C))),(0,l.K)(()=>{throw Error("Tariffs empty")}))}getAvailableTariffs(){return this.apiService.get("dic/tariffs_client_ul_metinv/getAvailableTariffs").pipe((0,h.U)($=>this.configUtilService.getArray($).map(C=>(C.code=C.code.trim(),C))),(0,l.K)(()=>{throw Error("Tariffs empty")}))}getAvailableAccountsForPackages(){return this.apiService.get("dic/tariffs_client_ul_metinv/getAvailablePackageAccounts").pipe((0,h.U)($=>this.configUtilService.getArray($.debitAccounts)),(0,l.K)(()=>{throw Error("Available accounts for packages empty")}))}getAvailablePackages($){return this.apiService.get("dic/tariffs_client_ul_metinv/getAvailablePackages/"+$).pipe((0,h.U)(C=>this.configUtilService.getArray(C).map(T=>(T.code=T.code.trim(),T)).filter(T=>!0!==T.isReadOnly)),(0,l.K)(()=>{throw Error("Packages empty")}))}getCurrentTariffInfo(){return this.apiService.get("current_tariff_ul").pipe((0,l.K)(()=>{throw Error("Current tariff empty")}))}getTariffRequest(){const $=d()(),C=$.clone().startOf("month"),T={docModule:"ibankul",docType:"change_tariff_ul_req",filter:{dateTo:$.format("YYYY-MM-DD"),dateFrom:C.format("YYYY-MM-DD"),additional:"(status in ('for_send', 'for_send_abs', 'send'))"},onlyFields:["id","tariffCode","docNumber","docDate"],onlyActions:["cancel"]};return this.apiService.post("pageable/document/visual/page",T).pipe((0,h.U)(j=>j.list))}changeTariff($){return this.apiService.post("change_tariff_ul_req",{tariffId:$})}deleteAlert($){return this.apiService.post(`metall-invest/change_tariff_ul_req/was_read?doc_id=${$}`,{})}getPreparedTariffs(){return this.getTariffs().pipe((0,m.w)($=>{if($.length)return this.getCurrentTariffInfo().pipe((0,m.w)(C=>{if((0,n.isEmpty)(C.codeOld))throw Error("Current tariff empty");if(!$.find(j=>j.code===C.codeOld))throw Error("Current tariff unknown");return(0,n.isEmpty)(C.codeNew)?(0,u.of)(this.prepareTariffs($,C)):this.getTariffRequest().pipe((0,m.w)(j=>(this.tariffRequest=j&&String(j.tariffCode)===String(C.codeNew)?j:void 0,(0,u.of)(this.prepareTariffs($,C)))))}));throw Error("Tariffs empty")}))}prepareTariffs($,C){const T=[];let I,F,j=[];return $.forEach(z=>{z.writeOfCommissionDate=d()(C.writeOfCommissionDate).format("DD.MM.YYYY"),z.conditions&&(z.conditions=this.configUtilService.getArray(z.conditions).sort((X,p)=>X.order-p.order)),z.code===C.codeOld?(z.status="current",I=z):z.code===C.codeNew?(z.status="new",z.beginDate=d()(z.beginDate).format("DD.MM.YYYY"),F=z):(z.status="other",j.push(z))}),j=j.sort((z,X)=>z.code.localeCompare(X.code)),T.push(I),F&&T.push(F),[...T,...j]}prepareSignInfo($,C){this.connectionInfo={},this.connectionInfo.documentTitle=`${this.translationService.translate("Tariff")} \xab${C.caption}\xbb`,this.connectionInfo.successTitle=`${this.translationService.translate("Success tariff switching connection")} \xab${C.caption}\xbb ${this.translationService.translate("sended")}`,this.connectionInfo.successMessage=this.translationService.translate("Tariff beginning",{date:this.getBeginNextMonth()}),this.connectionInfo.bottomInfoBlockData=[],this.connectionInfo.bottomInfoBlockData.push({caption:"Document",value:`${this.translationService.translate("Tariff switching connection")} \u2116${$.docNumber} ${this.translationService.translate("By")} ${d()($.docDate).format("DD.MM.YYYY")}`}),this.connectionInfo.bottomInfoBlockData.push({caption:"Tariff",value:C.caption}),this.connectionInfo.bottomInfoBlockData.push({caption:"Monthly payment",value:C.descriptionPay}),this.connectionInfo.bottomInfoBlockData.push({caption:"Write-off date",value:C.writeOfCommissionDate}),C.conditions&&C.conditions.length&&C.conditions.forEach(T=>{this.connectionInfo.bottomInfoBlockData.push({caption:T.caption,value:T.description})})}getBeginNextMonth(){return d()().add(1,"M").startOf("month").format("DD.MM.YYYY")}prepareRecallInfo($){this.connectionInfo={},this.connectionInfo.documentTitle=`${this.translationService.translate("Tariff cancel switching connection")}`,this.connectionInfo.successMessage=`${this.translationService.translate("Success cancel switching connection")}`,this.connectionInfo.bottomInfoBlockData=[],this.connectionInfo.bottomInfoBlockData.push({caption:"Recalled document",value:`${this.translationService.translate("Tariff switching connection")} \u2116${this.tariffRequest.docNumber} ${this.translationService.translate("By")} ${d()(this.tariffRequest.docDate).format("DD.MM.YYYY")}`}),this.connectionInfo.bottomInfoBlockData.push({caption:"Tariff",value:$.caption})}getDeclineDocsInfo(){return this.apiService.get("metall-invest/change_tariff_ul_req/decline_docs").pipe((0,l.K)(()=>(0,u.of)({ids:[],count:0})))}static#e=this.\u0275fac=function(C){return new(C||_)(x.\u0275\u0275inject(O.s),x.\u0275\u0275inject(L.Pj),x.\u0275\u0275inject(w.D7))};static#t=this.\u0275prov=x.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac})}return _})()},9149:(Ee,Q,t)=>{"use strict";t.d(Q,{j:()=>u});var n=t(44180),e=t(39300),i=t(94650),d=t(97185),a=t(16611);let u=(()=>{class h{constructor(m,x,O){this.toast=m,this.router=x,this.translation=O,this.router.events.pipe((0,e.h)(L=>L instanceof n.m2&&this.toast.toasts.length>0)).subscribe(()=>{})}show(m,x,O,L){const w=L||{};"error"===x&&void 0===w.disableTimeOut&&(w.disableTimeOut=!0),this.toast[x](this.getMessageStr(m),O,{timeOut:1e4,...w})}getMessageStr(m){if(Array.isArray(m)){let x="";return m.forEach(O=>{x+=`<li>${this.translation.translate(O)}</li>`}),`<ul>${x}</ul>`}return this.translation.translate(m)}closeAllErrorToasts(m={exceptClass:""}){const x=this.toast.toasts.filter(O=>{const L=O.toastRef.componentInstance.toastClasses;return(!m.exceptClass||-1===L.indexOf(m.exceptClass))&&(L.indexOf("error")>-1||L.indexOf("warning")>-1)});x.length&&x.forEach(O=>this.toast.clear(O.toastId))}closeToastsByClass(m){const x=this.toast.toasts.filter(O=>O.toastRef.componentInstance.toastClasses.includes(m.className));x.length&&x.forEach(O=>this.toast.clear(O.toastId))}errorHandle(m,x=""){m?m.error&&"string"==typeof m.error?this.show(m.error,"error","Error",{toastClass:x}):m.message?this.show(m.message,"error","Error",{toastClass:x}):m.errorText?this.show(m.errorText,"error","Error",{toastClass:x}):m.errors?(Array.isArray(m.errors)?m.errors:[m.errors]).forEach(L=>{this.show(L.errorText||L,"error","",{toastClass:x})}):this.show(m,"error","",{toastClass:x}):this.show(this.translation.translate("Loading error"),"error","",{toastClass:x})}static#e=this.\u0275fac=function(x){return new(x||h)(i.\u0275\u0275inject(d._W),i.\u0275\u0275inject(n.F0),i.\u0275\u0275inject(a.D7))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},51024:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>w});var n=t(4128),e=t(69751),i=t(94813),d=t(54004),a=t(99921),u=t(94650),h=t(3751),l=t(15644),m=t(37601),x=t(39486),O=t(40929),L=t(68753);let w=(()=>{class B{constructor(y,$,C,T,j,I){this.apiService=y,this.util=$,this.userDataService=C,this.productsService=T,this.documentService=j,this.authService=I,this.authService.isLoggedIn$.subscribe(F=>{F||(this.docInfoData=null)}),this.userDataService.activeOrganizationChanged$.subscribe(()=>{this.docInfoData=null})}getLists(){return(0,n.D)([this.apiService.publicGet("pay_stat"),this.apiService.publicGet("pay_kbk"),this.apiService.publicGet("pay_ground"),this.apiService.publicGet("pay_taxperiod"),this.apiService.publicGet("ru_rko_urgent_type"),this.apiService.publicGet("ru_rko_send_type"),this.apiService.publicGet("ru_rko_nds_type")])}getReceiverNotifications(){return new e.y(y=>{this.getNotifications().subscribe($=>{const C=T=>$.templates.find(j=>j.code===T);y.next({phone:C("notify_receiver_phone"),email:C("notify_receiver_email")}),y.complete()})})}getDocSettings(){return new e.y(y=>{this.docInfoData&&this.docInfoData.docSettings&&(y.next(this.docInfoData.docSettings),y.complete()),this.getDocInfo().subscribe($=>{this.docInfoData=$,y.next($.docSettings),y.complete()})})}getProducts(){return new e.y(y=>{this.docInfoData&&this.docInfoData.accIdProducts?(y.next(this.convertProducts(this.docInfoData.accIdProducts?this.docInfoData.accIdProducts:{})),y.complete()):this.getDocInfo().subscribe($=>{this.docInfoData=$,y.next(this.convertProducts($.accIdProducts?$.accIdProducts:{})),y.complete()})})}getCorrProducts(){return new e.y(y=>{this.docInfoData&&this.docInfoData.corrAccIdProducts?(y.next(this.convertProducts(this.docInfoData.corrAccIdProducts?this.docInfoData.corrAccIdProducts:{})),y.complete()):this.getDocInfo().subscribe($=>{this.docInfoData=$,y.next(this.convertProducts($.corrAccIdProducts?$.corrAccIdProducts:{})),y.complete()})})}getSelfProducts(){return new e.y(y=>{this.docInfoData&&this.docInfoData.selfAccIdProducts?(y.next(this.convertProducts(this.docInfoData.selfAccIdProducts)),y.complete()):this.getDocInfo().subscribe({next:$=>{this.docInfoData=$,y.next(this.convertProducts($.selfAccIdProducts)),y.complete()},error:()=>{y.next([]),y.complete()}})})}getOrgData(){return new e.y(y=>{this.userDataService.getClientInfoOrganization().subscribe($=>{$&&(y.next($),y.complete())})})}getSvetoforData(y,$){return new e.y(C=>{this.getSvetofor(y,$).subscribe(T=>{C.next(T),C.complete()})})}prepateData(y,$=!1){return new e.y(C=>{let T=y;("Nalog"===T.corrType||"Tamozh"===T.corrType)&&(T=Object.assign(T,T.corrTypeFields)),delete T.corrTypeFields,delete T.commission,this.sendRurPayment(T,$).subscribe(j=>{C.next(j),C.complete()},j=>{C.error(j)})})}getDocumentInfoData(y,$,C,T){const j=this.productsService.getProduct(T),I=this.documentService.getDocumentById(C,$,y).pipe((0,i.j)("platporDocumentMetinv"));return(0,n.D)([I,j]).pipe((0,d.U)(([F,z])=>({docNumber:F.docNumber,docDate:F.docDate,amount:F.amount,accountName:z.alias||z.info,accountNum:z.number,currency:z.currency,buttons:[{type:"print",data:{url:`print/pdf?doc_ids=${y}`}}],...(0,a.c)(F)})))}requestRevenueTypeCoode(){return this.apiService.publicGet("revenue_type_code")}getDocInfo(){return this.apiService.post("document/create/metinv",{})}getSvetofor(y,$){return this.apiService.get(`kontur_focus_4/brief_report?inns=${y}&clientId=${$}&source=1`)}getNotifications(){return this.apiService.get("notifications/documents/all/ibankul/doc_platpor")}sendRurPayment(y,$){return this.apiService.post("document/create/metinv"+($?"?mode=commission":""),y)}convertProducts(y){return delete y.cards,Object.keys(y).reduce(($,C)=>$.concat(this.util.getArray(y[C])),[])}static#e=this.\u0275fac=function($){return new($||B)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.Pj),u.\u0275\u0275inject(m.M),u.\u0275\u0275inject(x.su),u.\u0275\u0275inject(O.Z),u.\u0275\u0275inject(L.e))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac})}return B})()},37601:(Ee,Q,t)=>{"use strict";t.d(Q,{M:()=>y});var n=t(80529),e=t(15439),i=t.n(e),d=t(61135),a=t(39646),u=t(18505),h=t(54004),l=t(34782),m=t(70262),x=t(63900),O=t(94650),L=t(3751),w=t(15644),B=t(16611),_=t(9149);let y=(()=>{class ${constructor(T,j,I,F,z){this.apiService=T,this.httpClient=j,this.configUtilService=I,this.translation=F,this.toastCustomService=z,this.userData={chatWidget:null,appStarted:!1},this.sidebarOpen=!1,this.dboBlocked$=new d.X(null),this.dboPartiallyBlocked$=new d.X(null),this.dboOnlyNalogAllowed$=new d.X(null),this.dboDoubleRedBlock$=new d.X(null),this.loginPassLength$=new d.X({login:0,pass:0}),this.dboAccountsBlocked$=new d.X(null),this.FILTER_PERIOD_STORAGE_NAME_RISDA="filter-period-risda",this.FILTER_ADDITIONAL_STORAGE_NAME_RISDA="filter-period-risda-additional",this.FILTER_PERIOD_STORAGE_NAME_MBK="filter-period-interbank-credits",this.FILTER_ADDITIONAL_STORAGE_NAME_MBK="filter-period-interbank-credits-additional",this.STORAGE_NAME_CURRENCY_EXCHANGE_MODE="currency_exchange_mode",this.STORAGE_NAME_PARAMS_FOR_SIGN="params_for_sign",this.menuItems=[{description:this.translation.translate("Main"),value:"main"},{description:this.translation.translate("Payments"),value:"payments"},{description:this.translation.translate("Analytics"),value:"analytics"},{description:this.translation.translate("Exit"),value:"exit"}],this.allCompanies$=new d.X([]),this.currentProduct$=new d.X(null),this.employeeInfo$=new d.X(null),this.clientRoles$=new d.X([]),this.cardFileInfo$=new d.X(null),this.selectedBik$=new d.X(null),this.activeOrganizationChanged$=new d.X(null),this.partiallyBlock$=new d.X(null),this.userBlockingMessage$=new d.X(null),this.hasAnyBlocking$=new d.X(!1),this.userAccountBlockingMessage$=new d.X(null),this.userAccountBlockingModalMessage$=new d.X(null),this.activeCompany$=new d.X(null),this.notifications$=new d.X(null),this.publicDataCache={},this.userRestDataCache={}}getNotification(){return this.apiService.get("notification").pipe((0,u.b)(T=>{this.notifications$.next(T)}))}getCompanyList(T=!1){return T&&(this.userRestDataCache.companyCache=void 0),this.userRestDataCache.companyCache||(this.userRestDataCache.companyCache=this.apiService.get("metinv/company").pipe((0,u.b)(j=>this.allCompanies$.next(this.configUtilService.getArray(j))),(0,h.U)(j=>({company:this.configUtilService.getArray(j)})),(0,u.b)(j=>{const I=j.company.find(F=>!0===F.active)??null;this.activeCompany$.next(I)}),(0,l.d)(1))),this.userRestDataCache.companyCache}getActiveCompanyType(){return this.getCompanyList().pipe((0,h.U)(T=>T.company.find(j=>!0===j.active).clientTypeBank))}getActiveCompanyId(){return this.getCompanyList().pipe((0,h.U)(T=>T.company.find(j=>!0===j.active).id))}getClientInfoEmployee(){return this.userRestDataCache.employeeCache||(this.userRestDataCache.employeeCache=this.apiService.get("client_info/employee").pipe((0,l.d)(1))),this.userRestDataCache.employeeCache}getCurrencyRates(){return this.apiService.publicGetDefault("currency_rate").pipe((0,h.U)(T=>T))}getCurrencyRatesWithParams(T){return this.apiService.publicGetDefault(`currency_rate?baseCurrencyCode=${T.baseCurrencyCode}&counterCurrencyCode=${T.counterCurrencyCode}`).pipe((0,h.U)(I=>I))}getBankBiks(T){const j=encodeURIComponent(T.trim());return this.apiService.publicGet(`banks_ru&context=${j}`).pipe((0,h.U)(I=>this.configUtilService.getArray(I)))}getSwiftCodes(T){const j=encodeURIComponent(T.trim());return this.apiService.publicGet(`banks_int&swift=${j}`).pipe((0,h.U)(I=>this.configUtilService.getArray(I)))}changeActiveOrganization(T){return this.apiService.put(`company/change_active/${T.id}`)}getReport(T,j){return this.apiService.getDocument(`kontur_focus_4/pdfReport?inn=${T}&clientId=${j}&source=1`)}getClientRights(T=!1){return T&&(this.userRestDataCache.clientRights=void 0),this.userRestDataCache.clientRights||(this.userRestDataCache.clientRights=this.apiService.get("tools/clientRights").pipe((0,l.d)(1))),this.userRestDataCache.clientRights}getClientInfoOrganization(T=!1){return T&&(this.userRestDataCache.organizationCache=void 0),this.userRestDataCache.organizationCache||(this.userRestDataCache.organizationCache=this.apiService.get("metinv/client_info/organization").pipe((0,l.d)(1))),this.userRestDataCache.organizationCache}getAttachment(T,j){return this.apiService.get(`attachment/${T}/${j}`,void 0,"blob")}getAttachmentId(T){return this.apiService.get(`attachment/${T}`)}clearData(){this.userData.chatWidget&&(this.userData.chatWidget.close(),this.userData.chatWidget.logout(),this.userData.chatWidget.destroy()),this.userData={chatWidget:null,appStarted:!0},this.userRestDataCache={}}clearBlockingData(){this.dboBlocked$.next(null),this.dboPartiallyBlocked$.next(null),this.dboOnlyNalogAllowed$.next(null)}getDaDataInfo(T,j="https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/party"){const I=(new n.WM).set("Content-Type","application/json").set("authorization",this.configUtilService.adminConfig.data.daDataApiKey);return this.httpClient.get(j,{headers:I,params:T}).pipe((0,h.U)(F=>this.configUtilService.getArray(F.suggestions)),(0,m.K)(()=>(0,a.of)([])))}getCardFileData(T){return this.apiService.get(`cardIndex/account?accountId=${T}`)}postImportedData(T){return this.apiService.post("metinv/document/import/platpor/1c",T)}getServiceData(T,j=!0){return j||(this.publicDataCache[T]=void 0),this.publicDataCache[T]||(this.publicDataCache[T]=this.apiService.publicGet(`${T}`).pipe((0,h.U)(I=>this.configUtilService.getArray(I)),(0,l.d)(1))),this.publicDataCache[T]}changeLogin(T){const j=(new n.WM).set("Content-Type","application/json");let I=new n.LE;return Object.keys(T).forEach(F=>{I=I.append(F,""+T[F])}),this.httpClient.post(`${this.configUtilService.adminConfig.persURL}userlogindata/login/change/request`,{},{withCredentials:!0,headers:j,params:I})}changeLoginConfirm(T){const j=(new n.WM).set("Content-Type","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}userlogindata/login/change/confirm/v2`,T||{},{withCredentials:!0,headers:j})}changePasswordV2(T){const j=(new n.WM).set("Content-Type","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}userlogindata/passwd/change/request/v2`,T,{withCredentials:!0,headers:j})}changePasswordConfirm(T){const j=(new n.WM).set("Content-Type","application/json");return this.httpClient.post(`${this.configUtilService.adminConfig.persURL}userlogindata/passwd/change/confirm/v2`,T||{},{withCredentials:!0,headers:j})}attachFile(T){return this.apiService.post("attachment",T)}postAttachment(T,j){const I=[];return(j||[]).forEach(F=>{if(!(F instanceof File))return;const z=new FormData;z.append("file",F,F.name),z.append("id",T),I.push(this.attachFile(z).pipe((0,m.K)(X=>(this.toastCustomService.show(this.translation.translate("Attach file error",{fileName:F.name}),"error"),console.error(X),(0,a.of)(X)))))}),0===I.length&&I.push((0,a.of)({})),I}extractAttachment(T,j){const I=URL.createObjectURL(T),F=document.createElementNS("http://www.w3.org/1999/xhtml","a");return F.setAttribute("href",I),F.style.cssText="display: none",F.download=j,document.body.appendChild(F),F.click(),document.body.removeChild(F),T.type}deleteFile(T,j){return this.apiService.delete(`attachment/${T}/${j}`)}getCorrList(T,j,I=0,F=10){const z={docModule:"ibankfl",docType:"client_corr",filter:{dateFrom:"2000-01-01",dateTo:i()(new Date).add(1,"days").format("YYYY-MM-DD")},page:{number:I,size:F},sorting:[{field:"id",order:"DESC"}]};return T&&(z.filter.additional=`((fullname like '%${T}%') or (inn like '%${T}%'))`),j&&(z.filter.additional=`(id = '${j}')`),this.apiService.post("pageable/document/page",z).pipe((0,h.U)(X=>({totalPage:X.page.total,currentPage:X.page.number,list:X.list?this.configUtilService.getArray(X.list):[]})),(0,m.K)(()=>(0,a.of)([])))}getCorrlistByType(T,j,I,F=null,z=0,X=8){const p=[];T&&p.push(`(fullname like '%${T}%' or inn like '%${T}%')`),j&&j.length>0&&I&&I.length>0&&p.push(`corrType ${I} (${j})`),F&&p.push(`(id = '${F}')`);const P={docModule:"ibankfl",docType:"client_corr",filter:{dateFrom:"2000-01-01",dateTo:i()(new Date).add(1,"days").format("YYYY-MM-DD")},page:{number:z,size:X}};return p.length>0&&(P.filter.additional=p.join(" and ")),this.apiService.post("pageable/document/page",P).pipe((0,h.U)(E=>({totalPage:+E.page.total,currentPage:+E.page.number,list:E.list?this.configUtilService.getArray(E.list):[]})),(0,m.K)(()=>(0,a.of)({list:[]})))}getBlockedAccountsInfo(){return this.apiService.get("blocking?checkType=8").pipe((0,u.b)(T=>{this.dboAccountsBlocked$.next({blocked:!1,message:"",toast:""}),T&&(this.userAccountBlockingMessage$.next(T.retShort),this.userAccountBlockingModalMessage$.next(T.retMessage))}),(0,x.w)(()=>(0,a.of)({retCode:"0",retMessage:"",retShort:""})))}partiallyBlockCheck(){return this.apiService.get("blocking/info").pipe((0,m.K)(()=>(0,a.of)([])),(0,h.U)(T=>Array.isArray(T)?T:null===T?[]:[{blockCode:T.blockType,blockName:"",blockPriority:0,blockText:T.blockText}]),(0,h.U)(T=>(0===T.length&&(this.clearBlockInfoData(),this.userBlockingMessage$.next(""),this.hasAnyBlocking$.next(!1)),T.filter(j=>j.blockText).forEach(j=>this.userBlockingMessage$.next(j.blockText)),T.some(j=>j.blockCode)&&this.hasAnyBlocking$.next(!0),this.partiallyBlock$.next([]),this.dboOnlyNalogAllowed$.next(!1),this.dboDoubleRedBlock$.next(!1),[])))}isOnlyNalogAllowed(T){return T.some(j=>10===j.blockCode)}isDoubleRedBlock(T){return T.some(j=>1===j.blockCode)}isOKBOBlock(T){return T.some(j=>9===j.blockCode)}getCurrentRoles(){return this.apiService.get("security/user/roles").pipe((0,h.U)(T=>T.roles)).pipe((0,h.U)(T=>(this.clientRoles$.next(T),T)))}logData(T){this.employeeInfo$.pipe((0,x.w)(j=>this.apiService.logPost("metall-invest/frontend_log",{employeeId:j?.employeeId,logData:T}))).subscribe()}checkTermOffice(){return this.apiService.get("checkTermOffice")}setDicSmsNotifi(){return this.apiService.post("sms_notif/sync",null).pipe((0,m.K)(T=>(console.error(T),(0,a.of)(null))))}getContacts167FZ(){return this.apiService.get("contacts_167").pipe((0,m.K)(()=>(0,a.of)([])),(0,h.U)(T=>T.sort((j,I)=>j.contactType-I.contactType)))}getSvetofor(T,j){return this.apiService.get(`kontur_focus_4/brief_report?inns=${T}&clientId=${j}&source=1`)}clearBlockInfoData(){this.dboPartiallyBlocked$.next(null),this.dboOnlyNalogAllowed$.next(null),this.dboDoubleRedBlock$.next(null)}static#e=this.\u0275fac=function(j){return new(j||$)(O.\u0275\u0275inject(L.s),O.\u0275\u0275inject(n.eN),O.\u0275\u0275inject(w.Pj),O.\u0275\u0275inject(B.D7),O.\u0275\u0275inject(_.j))};static#t=this.\u0275prov=O.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac})}return $})()},29198:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>ct});var n=t(31833),e=t(15439),i=t.n(e),d=t(61135),a=t(18505),u=t(34782),h=t(4128),l=t(54004),m=t(63900),x=t(39646),O=t(70262),L=t(94813),w=t(60515),B=t(86349),_=t(6146),y=t(49167),$=t(32031),C=t(18545);const T={ACCC:"\u041f\u043b\u0430\u0442\u0435\u0436 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044e","ACSP/G000":"\u041f\u043b\u0430\u0442\u0435\u0436 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d","ACSP/G001":"\u041f\u043b\u0430\u0442\u0435\u0436 \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u0431\u0430\u043d\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b SWIFT GPI","ACSP/G002":"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0431\u0430\u043d\u043a, \u043d\u043e \u0435\u0449\u0435 \u043d\u0435 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u044b. \u041e\u0436\u0438\u0434\u0430\u0439\u0442\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438","ACSP/G003":"\u0411\u0430\u043d\u043a\u0443 \u043d\u0443\u0436\u043d\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0430. \u041f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u0441\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u0441 \u0431\u0430\u043d\u043a\u043e\u043c","ACSP/G004":"\u0411\u0430\u043d\u043a \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0430. \u041e\u0436\u0438\u0434\u0430\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430","ACSP/G005":"\u041f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u0431\u0430\u043d\u043a\u0443 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0443 GPI","ACSP/G006":"\u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0431\u0430\u043d\u043a \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u043b\u0430\u0442\u0435\u0436 \u0434\u043e \u0431\u0430\u043d\u043a\u0430 \u0431\u0435\u043d\u0435\u0444\u0438\u0446\u0438\u0430\u0440\u0430 \u043d\u0435 \u0430\u0433\u0435\u043d\u0442\u0443 GPI","RJCT/AC01":"\u041f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c, \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430","RJCT/CUST":"\u041e\u0442\u043a\u0430\u0437\u0430\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u0435\u043c \u043f\u043b\u0430\u0442\u0435\u0436\u0430","RJCT/FOCR":"\u0412 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043e\u0431 \u043e\u0442\u043c\u0435\u043d\u0435","RJCT/RC01":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0431\u0430\u043d\u043a\u0430","RJCT/RC08":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0431\u0430\u043d\u043a\u0430 \u0432 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435","RJCT/RR05":"\u041d\u0435\u0432\u0435\u0440\u043d\u0430\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f","RJCT/G004":"\u041f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c \u0438\u0437-\u0437\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u0434\u0435\u043d\u0435\u0436\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f","RJCT/MS03":"\u041f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u044b","RJCT/AC04":"\u041f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c, \u0441\u0447\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0442","RJCT/AC06":"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430","RJCT/BE01":"\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443 \u0441\u0447\u0435\u0442\u0430"},j={send:"\u0417\u0430\u0447\u0438\u0441\u043b\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044e",process:"\u041f\u043b\u0430\u0442\u0435\u0436 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435",untracked:"\u041d\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",canceled:"\u041f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d"};var I=t(11274),F=t(70997),z=t(54128),X=t(73276),p=t(79468),P=t(94650),E=t(3751),R=t(15644),ne=t(16611),G=t(36895),ce=t(98504),xe=t(44509),we=t(37601),Ge=t(9149);let ct=(()=>{class pe{constructor(U,H,Z,oe,Pe,Ie,pt,Ht){this.apiService=U,this.configUtilService=H,this.translation=Z,this.datePipe=oe,this.currencyPipe=Pe,this.currencySymbolPipe=Ie,this.userDataService=pt,this.toast=Ht,this.TOOLTIP_TEXT=T,this.SHORT_GPI_STATUS=j,this.contractsList=new d.X(null),this.availableServices=new d.X(null),this.hiddenTabs=new d.X(!1),this.deleteContractEmitter=new d.X(""),this.transferCurrencyState$=new d.X(null),this.transferCurrencyDate$=new d.X(null),this.currOperationsTypeCodes$=new d.X([]),this.transferAmountState$=new d.X(null),this.isDifferentCurrency$=new d.X(!1),this.contract$=new d.X(null),this.ctiFormItems$=new d.X([]),this.personalSupportVedContract$=new d.X(null),this.isAllowedDocPlatporCurrBp$=new d.X(!1),this.unkPipe=new n.n}requestContractsList(){this.requestDirectoryCreation("?calcAmount=false").subscribe(U=>{this.contractsList.next(U)})}getCurrPreferences(U){return U&&(this.currPreferencesCache$=void 0),this.currPreferencesCache$||(this.currPreferencesCache$=this.requestCurrPreferences().pipe((0,a.b)(H=>B.S6(H,Z=>this.configUtilService.getArray(Z))),(0,u.d)(1))),this.currPreferencesCache$}getTransferCurrFileName(U,H){if(!U)return H;switch(U){case z.o.NO_ATTACH:return`${H} (${this.translation.translate("Complex payment no attach")})`;case z.o.BASIC:return`${H} (${this.translation.translate("Complex payment")})`;case z.o.RUB_NO_ATTACH:return`${H} (${this.translation.translate("New rur payment")})`;case z.o.TRANS_BORDER:return H;default:return`${H} (${this.translation.translate("Complex payment")})`}}getNotFoundText(U){if(!U)return"Operations not found";switch(U){case X.e5.RECEIPTS:return"Not Found receipts";case X.MR.OTHER:return"Not Found others";case X.MR.TRANSFER:return"Not Found currency transfers";case X.MR.SPD:return"Not Found certificates of supporting documents";case X.MR.SVO:return"Not Found currency transactions information";case X.MR.COMPLEX:return"Not Found complex documents for sign";case X.e5.DOCUMENTS_FOR_SIGN:return"Not Found documents for sign";default:return"Operations not found"}}getDocTypesForTabs(U,H){let Z=[];const oe={docModule:"ibankul_curr"};switch(U){case X.MR.SVO:Z=[{docType:_.o.InqCurr181,...oe}];break;case X.MR.SPD:Z=[{docType:_.o.InqConf181,...oe}];break;case X.MR.COMPLEX:Z=[{docType:_.o.DocPlatporCurrComplex,...oe}],this.isAllowedDocPlatporCurrBp$.getValue()&&Z.push({docType:_.o.DocPlatporCurrBp,...oe});break;case X.MR.TRANSFER:Z=[{docType:_.o.DocPlatporCurr,...oe}];break;default:H&&(Z=I.kU.filter(Pe=>H?.includes(Pe.docType)))}return Z}getOrderingOptions(U){const H=[_.o.DocPlatporCurr,_.o.DocPlatporCurrBp,_.o.DocPlatporCurrComplex];return U.some(Z=>H.includes(Z.docType))?{orderBy:{fieldName:"docDate",order:"desc"}}:{}}getStatusText(U,H){if(U.statusCaption&&H===y.u.STATUS_CAPTION)switch(U.statusCaption.toLowerCase()){case"\u043d\u043e\u0432\u044b\u0439":return U.signStatusCaption?.toLowerCase()||U.statusCaption;case"\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0448\u043b\u044e\u0437":case"\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438":return C.lG.IN_PROCESSING;default:return U.statusCaption}if(U.status&&H===y.u.STATUS){const Z=$.gH.get(U.status)||U.status;return"new"!==Z&&"\u041d\u043e\u0432\u044b\u0439"!==Z||!U.signStatusCaption?Z:U.signStatusCaption.toLowerCase()}return""}getCurrencies(U){return U&&(this.currenciesCache$=void 0),this.currenciesCache$||(this.currenciesCache$=this.apiService.publicGet("currency").pipe((0,u.d)(1))),this.currenciesCache$}getSettingsForFilters(){return(0,h.D)([this.getCurrencies(!1),this.getCurrencyConversionList(),this.userDataService.getCurrentRoles()]).pipe((0,l.U)(([U,H,Z])=>({currenciesItems:this.configUtilService.getArray(H?.data).map(Ie=>{const pt=U.find(Ht=>Ht.isoCode===Ie.code);return{value:pt?pt.code:Ie.code,caption:pt?`${pt.name} (${Ie.code})`:Ie.code,chosen:!0}}),isAllowedCurrBp:this.isAllowedDocPlatporCurrBp$.value,roles:Z})))}requestCurrPreferences(){return this.apiService.get("curr/dealpass_close_181/info/all")}checkPersonnalSupport(U=!1){this.apiService.get("dic/personal_support").subscribe(H=>{if(H){const{dateClose:Z}=H,oe=i()(Z,"YYYY-MM-DD"),Pe=oe.diff(i()(),"day");H={...H,dateDue:oe,diff:Pe,skipWarning:U}}this.personalSupportVedContract$.next(H)})}postDealPass(U){return this.apiService.post("curr/dealpass_close_181",U)}postRenewPass(U){return this.apiService.post("curr/dp_renew_181",U)}getCurrField(U){return this.getCurrPreferences().pipe((0,l.U)(H=>H[U]))}getCurrRenewField(U){return this.getCurrRenewEntries().pipe((0,l.U)(H=>H[U]))}getCurrDealPassCloseGroundListFormatted(){return this.getCurrField("dealPassCloseGroundList").pipe((0,l.U)(U=>{U=this.configUtilService.getArray(U);const H=this.configUtilService.deepClone(U);return H.forEach(Z=>{Z.caption=`${Z.code} ${Z.name}`}),H}))}getCurrDealPassListFormatted(U,H){return H?this.getCurrRenewParsedSettings().pipe((0,m.w)(Z=>this[U]("dealPassList").pipe((0,l.U)(oe=>{oe=this.configUtilService.getArray(oe);const Pe=this.configUtilService.deepClone(oe);return Z.settingsTypeDpContractDealpass.split(","),Pe.forEach(pt=>{pt.date=this.configUtilService.formatDateString(pt.dpdate),pt.caption=`${this.translation.translate("UNK")}\n                   \u2116${this.unkPipe.transform(pt.dpnum)} ${this.translation.translate("By")} ${pt.date}`}),Pe})))):this[U]("dealPassList").pipe((0,l.U)(Z=>{Z=this.configUtilService.getArray(Z);const oe=this.configUtilService.deepClone(Z);return oe.forEach(Pe=>{Pe.date=this.configUtilService.formatDateString(Pe.dpdate),Pe.caption=`\u2116${this.unkPipe.transform(Pe.dpnum)} ${this.translation.translate("By")} ${Pe.date}`}),oe}))}getCurrSetting(U,H){return this[H]("docSettings").pipe((0,l.U)(Z=>this.configUtilService.deepClone(Z).find(Pe=>Pe.name===U)))}getCurrContractSettings(U){return U&&(this.currContractSettingsCache$=void 0),this.currContractSettingsCache$||(this.currContractSettingsCache$=this.requestContractSettings().pipe((0,l.U)(H=>(H&&(H.docSettings=this.configUtilService.getArray(H.docSettings),H.dealPassCloseGroundList=this.configUtilService.getArray(H.dealPassCloseGroundList).map(Z=>({...Z,caption:`${Z.code} ${Z.name}`}))),H)),(0,u.d)(1))),this.currContractSettingsCache$}getCurrCreditSettings(U=!1){return U&&(this.currContractSettingsCache$=void 0),this.currContractSettingsCache$||(this.currContractSettingsCache$=this.requestCreditSettings().pipe((0,l.U)(H=>(H.docSettings=H&&H.docSettings?this.configUtilService.getArray(H.docSettings):[],H&&H.dealPassCloseGroundList?(H.dealPassCloseGroundList=this.configUtilService.getArray(H.dealPassCloseGroundList),H.dealPassCloseGroundList.forEach(Z=>Z.caption=`${Z.code} ${Z.name}`)):H.dealPassCloseGroundList=[],H)),(0,u.d)(1))),this.currContractSettingsCache$}getCurrRenewSetup(U=!1){return U&&(this.currRenewSetupCache$=void 0),this.currRenewSetupCache$||(this.currRenewSetupCache$=this.requestCurrRenewSetup().pipe((0,a.b)(H=>B.S6(H,Z=>this.configUtilService.getArray(Z))),(0,u.d)(1))),this.currRenewSetupCache$}getSetupDocSettingsByDocType(U){let H="",Z="";switch(U){case _.o.DealpassRenew181:H="dp_renew_181",Z="dealpassRenew181";break;case _.o.DealpassClose181:H="dealpass_close_181",Z="dealpassClose181";break;default:return(0,x.of)([])}return this.apiService.get(`curr/${H}/info/setup`).pipe((0,l.U)(oe=>oe&&(oe.docSettings||oe[Z]?.docSettings)||[]),(0,O.K)(()=>(0,x.of)([])))}getCurrRates(){return this.apiService.publicGet("cur_rko_sell_rate_type")}getCurrRenewParsedSettings(){return this.getCurrRenewSetup().pipe((0,l.U)(U=>this.configUtilService.deepClone(U)),(0,l.U)(U=>this.prepareSetting(U.dealpassRenew181.docSettings)),(0,l.U)(U=>B.Xc(B.vM(U,"name"),H=>H[0].value)),(0,l.U)(U=>this.settingsValuesToBoolean(U,["attachEnabled","docGroundReissueVisible"])))}getDealPassDocInfo(U){return this.apiService.get(`curr/conf_181/info/${U}`)}getDocEntriesByDocType(U){let H="";switch(U){case _.o.DealpassClose181:H="curr/dealpass_close_181/info/all";break;case _.o.DealpassRenew181:H="curr/dp_renew_181/info/entries";break;case _.o.InqConf181:H="curr/conf_181/metinv/info/entries"}return(0,h.D)([this.apiService.get(H),this.getCurrencies(!1)]).pipe((0,l.U)(([Z,oe])=>(this.configUtilService.getArray(Z?.dealPassList)?.map(Pe=>{const Ie=Pe?.contrCurrCode?oe.find(pt=>pt.code===Pe.contrCurrCode):void 0;return Pe.contrCurrency=Ie?.code,Pe.contrCurrName=Ie?.isoCode,Pe.dpNumSeparated=Pe.dpnum?this.unkPipe.transform(Pe.dpnum):"",Pe}),Z)))}getCurrRenewEntries(U){return U&&(this.currRenewEntriesCache$=void 0),this.currRenewEntriesCache$||(this.currRenewEntriesCache$=this.getDocEntriesByDocType(_.o.DealpassRenew181).pipe((0,u.d)(1))),this.currRenewEntriesCache$}getUnkSelectOptions(U,H){return U.map(Z=>{const oe=H===_.o.DealpassRenew181||H===_.o.DealpassClose181?Z.id:Z.dpnum,Pe=Z.contrCurrName||Z.contrCurrCode||"",Ie=Z.dpNumSeparated,pt="false"===Z.withContrNumber?this.translation.translate("w/o number"):Z.contrNum||"";let Ht=`${pt?`${pt} `:""}${this.translation.translate("By")} ${Z.dpdate}`;return Ht.length>0&&(Ht=`${this.translation.translate("Agreement")} ${Ht} `),{value:oe,caption:Ie,description:`${Ht} ${Pe} ${Z.nonResidentName||""}`}})}getCurrencyList(){return this.apiService.publicGet("currency")}getCurrencyConversionList(){return this.apiService.publicGetDefault("cust/dictionary/currencyConversion")}getCurrOperCodes(U){const H=U?"&"+this.configUtilService.getURLParamsString(U):"";return this.apiService.publicGet("cur_rko_oper_type"+H)}requestContractSettings(){return this.apiService.get("curr/dp_contr_181/info/setup")}requestCreditSettings(){return this.apiService.get("curr/dp_cred_181/info/setup")}sendContract(U){return this.apiService.post("curr/dp_contr_181_exp",U)}sendCredit(U){return this.apiService.post("curr/dp_cred_181_exp",U)}createDealpassDoc(U){return this.apiService.post("curr/conf_181",U)}createInqStatementList(U){return this.apiService.post("metinv/curr/inq_statement/list",U)}requestBeneficiaries(U){return this.apiService.get(`dic/beneficiary?fullname=${U}`)}requestBeneficiariesByNameOrIban(U){return this.apiService.get(`dic/beneficiary?fullname=${U}&filterType=or&iban=${U}`)}requestCounties(U){let H="name";return this.configUtilService.checkEngInput(U)&&(H="intName"),this.apiService.publicGet(`country&${H}=${U}`)}requestCountiesByCode(U){return this.apiService.publicGet(`country&code=${U}`)}requestCurrencyCatalog(){return this.apiService.publicGet("currency")}requestCredPayPeriod(){return this.apiService.publicGet("cur_rko_credpayperiod")}requestRateCodeLibor(){return this.apiService.publicGet("cur_rko_liborrate")}requestContractType(){return this.apiService.publicGet("cur_rko_contracttype")}getSortedByIsoCodeCurrencyCatalog(){return this.requestCurrencyCatalog().pipe((0,l.U)(U=>U.sort((H,Z)=>{const oe=H.isoCode.toLowerCase(),Pe=Z.isoCode.toLowerCase();return oe<Pe?-1:oe>Pe?1:0})))}getSortedPopularCurrency(){return this.requestCurrencyCatalog().pipe((0,l.U)(U=>{const H=["USD","EUR","RUB","CNY"],Z=[];return U=(U=U.filter(oe=>!H.includes(oe.isoCode)||(Z.push(oe),!1))).sort((oe,Pe)=>{const Ie=oe.isoCode.toLowerCase(),pt=Pe.isoCode.toLowerCase();return Ie<pt?-1:Ie>pt?1:0}),Z.concat(U)}))}requestCurrRenewSetup(){return this.apiService.get("curr/dp_renew_181/info/setup")}requestCurrRenewEntries(){return this.apiService.get("curr/dp_renew_181/info/entries")}prepareSetting(U){return U.forEach(Z=>{Z.name=(Z=>Z.replace(/\/.|_./g,Pe=>Pe.toUpperCase()).replace(/\/|_/g,""))(Z.name.toLowerCase())}),U}settingsValuesToBoolean(U,H){return H.forEach(Z=>U[Z]="true"===U[Z]||"1"===U[Z]),U}requestDirectoryCreation(U="?calcAmount=false",H=!1){return this.apiService.get(`metinv/curr/dp/${"boolean"==typeof U?`?calcAmount=${U}`:U}`).pipe((0,l.U)(oe=>oe&&oe.dealPassDicElement?(oe.dealPassDicElement=this.configUtilService.getArray(oe.dealPassDicElement),H&&oe.dealPassDicElement.forEach(Pe=>{Pe.displayString=this.getDealpassDisplayString(Pe)}),oe.dealPassDicElement):[]),(0,l.U)(oe=>this.configUtilService.getArray(oe)),(0,O.K)(()=>(0,x.of)([])))}getContracts(U,H){return H&&this.clearContractsCache(),this.contractsCache$||(this.contractsCache$=this.requestContractById(U).pipe((0,u.d)(1))),this.contractsCache$}clearContractsCache(){this.contractsCache$=null}requestContractById(U){return this.requestDirectoryCreation(U).pipe((0,l.U)(H=>H[0]))}getContractsList$(U=!1){return U&&(this.contractsListCache$=void 0),this.contractsListCache$||(this.contractsListCache$=this.requestDirectoryCreation().pipe((0,u.d)(1))),this.contractsListCache$}clearContractList(){this.contractsList.next(null),this.contractsListCache$=void 0}sendDirectoryCreation(U){return this.apiService.post("curr/inq_statement",U)}requestCreditingNotifications(){return this.apiService.get("pay/notification_crediting").pipe((0,l.U)(U=>this.configUtilService.getArray(U)),(0,O.K)(()=>(0,x.of)([])))}requestCreditingNotificationsCount(U="new"){const H=new Date,Z=new Date;return H.setFullYear(H.getFullYear()-1),Z.setMonth(Z.getMonth()+1),this.apiService.post("document/count",{docModule:"ibankul_curr",docType:_.o.NotificationCrediting,dateFrom:this.configUtilService.revertFormatDateDMY(H,"-"),dateTo:this.configUtilService.revertFormatDateDMY(Z,"-"),filter:`status = '${U}'`}).pipe((0,O.K)(()=>(0,x.of)({count:"0"})))}sendSaveContract(U){return this.apiService.post("metinv/curr/dp",U)}getWorldBanks(U){return this.apiService.publicGet(`banks_int&swift=${U}`)}postBeneficiaries(U){return this.apiService.post("dic/beneficiary",U)}postBeneficiariesMetinv(U){return this.apiService.post("dic/beneficiary_metinv",U)}requestBeneficiary(){return this.apiService.get("dic/beneficiary")}getBeneficiary(U){return U&&(this.beneficiaryCache$=void 0),this.beneficiaryCache$||(this.beneficiaryCache$=this.requestBeneficiary().pipe((0,l.U)(H=>{const Z=H&&H.beneficiaryDicElement?H.beneficiaryDicElement:[];return Array.isArray(Z)?Z:[Z]}),(0,u.d)(1))),this.beneficiaryCache$}getGpiTrackerHistory(U){return this.apiService.get("tools/gpitrackerhistory/"+U).pipe((0,O.K)(H=>(console.warn(H),(0,x.of)([]))),(0,l.U)(H=>(H.map(Z=>{Z.gpiTimeFormatted=i()(Z.gpiTime).format("DD.MM.YYYY, HH:mm");const oe=this.getStatusColor(Z.gpiStatus);return oe&&(Z.gpiStatusColor=oe),Z}),H)))}getShortStatus(U,H){return H===F.Xo?F.Xo:H===F.xy?F.xy:this.SHORT_GPI_STATUS[U]?this.SHORT_GPI_STATUS[U]:F.xy}getTooltipText(U){return this.TOOLTIP_TEXT[U]?this.TOOLTIP_TEXT[U]:U}getStatusColor(U){if(!U)return"";switch(U.toString().toLowerCase()){case"\u043e\u0442\u043a\u0430\u0437\u0430\u043d":case"\u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d":case"rjct/ms03":case"rjct":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c":case"rjct/g004":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c \u0438\u0437-\u0437\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u0434\u0435\u043d\u0435\u0436\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u044b":case"rjct/ac04":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c, \u0441\u0447\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0442":case"rjct/ac01":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0432 \u0431\u0430\u043d\u043a\u0435":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c, \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430":case"decline":case"rjct/ac06":case"rjct/cust":case"rjct/be01":case"rjct/focr":case"rjct/rc01":case"rjct/rs08":case"rjct/rr05":case"\u043e\u0442\u043a\u0430\u0437\u0430\u043d\u043e \u0431\u0430\u043d\u043a\u043e\u043c \u043f\u0430\u0440\u0442\u043d\u0435\u0440\u043e\u043c":case"expired":return"canceled";case"\u043e\u043f\u043b\u0430\u0447\u0435\u043d":case"accc":case"end":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044e":case"\u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044e":case"\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e":case"\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d":case"\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0431\u0430\u043d\u043a\u043e\u043c \u043f\u0430\u0440\u0442\u043d\u0435\u0440\u043e\u043c":case"changes_in_process":case"\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u043e":return"send";case"acsp/g001":case"\u043d\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043d\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u0431\u0430\u043d\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b swift gpi":return"untracked";case"acsp":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u0431\u0430\u043d\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b swift gpi.":case"acsp/g002":case"\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0431\u0430\u043d\u043a, \u043d\u043e \u0435\u0449\u0435 \u043d\u0435 \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u044b.\n\u043e\u0436\u0438\u0434\u0430\u0439\u0442\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438.":case"acsp/g003":case"acsp/g004":case"\u0431\u0430\u043d\u043a \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0430.\n\u043e\u0436\u0438\u0434\u0430\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430.":case"\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"in_work":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"for_send":case"acsp/g005":case"acsp/g006":case F.Xo.toLowerCase():case F.U0.toLowerCase():case F.Wz.toLowerCase():case"for_send_abs":case"send_to_partner":return"process";default:return"default"}}getCountries(U){return U&&(this.countriesCache$=void 0),this.countriesCache$||(this.countriesCache$=this.apiService.publicGet("country").pipe((0,u.d)(1))),this.countriesCache$}requestDocumentsWithoutDraft(U=5,H,Z){let oe=`last_documents/doc_types?number_of_entries=${U}&list_of_statuses=new;sign_in_bank;for_send;send;decline;end;processed_vk;accept;for_send_abs;cancel_from_renew;cancel;wait_decline`;return H&&(oe+=`&point_of_reference=${H}`),this.apiService.post(oe,Z).pipe((0,l.U)(Pe=>Pe?Object.entries(Pe)[0][1]:[]),(0,l.U)(Pe=>this.configUtilService.getArray(Pe)))}requestDocumentsWithAvailableActions(U=5,H,Z){let oe=`last_documents_full/with_revoke?number_of_entries=${U}&list_of_statuses=new;sign_in_bank;for_send;send;decline;end;processed_vk;accept;draft;for_send_abs;cancel_from_renew;cancel;wait_decline`;return H&&(oe+=`&point_of_reference=${H}`),this.apiService.post(oe,Z).pipe((0,l.U)(Pe=>Pe?Object.entries(Pe)[0][1]:[]),(0,l.U)(Pe=>this.configUtilService.getArray(Pe)))}getTitle(U){switch(U.docType){case"doc_currsell":return"Sale of currency";case"doc_currbuy":return"Purchase of currency";case"doc_platpor_conv":return"Currency conversion";case"doc_platpor_curr":case _.o.DocPlatporCurrBp:case _.o.DocPlatporCurrComplex:return"Currency transfer";case _.o.ServiceTransferTg:return"Connect cross-border title";case _.o.DocPlatporCurrTgOv:return"Cross-border with buy currency title";case _.o.DocPlatporCurrTg:return"Cross-border title";case"doc_transit_pay_doc":return"Withdrawal from transit account";case"dealpass_contr_181":return"Contract registration application";case"dealpass_cred_181":return"Loan agreement registration application";case"inq_curr_181":return"Currency transactions information";case"inq_conf_181":return"SPD full";case"dealpass_renew_181":return"Application for amendments to the contract or credit agreement";case"dealpass_close_181":return"Deregistration of a contract/loan agreement";case"inq_statement_181":return"Request a statement of banking control";case"doc_request_quotes":return"Quotation Request";case"doc_interbnk_currency_transfer":return"\u041c\u0435\u0436\u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0435 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b";default:return"Some title"}}requestDocuments(U=5,H,Z,oe=!1){let Pe=`last_documents/doc_types?number_of_entries=${U}&list_of_statuses=${oe?"":"new;"}sign_in_bank;for_send;send;decline;end;processed_vk;accept;draft;for_send_abs;cancel_from_renew;cancel;wait_decline;decline_bank`;return H&&(Pe+=`&point_of_reference=${H}`),this.apiService.post(Pe,Z).pipe((0,l.U)(Ie=>Ie?Object.entries(Ie)[0][1]:[]),(0,l.U)(Ie=>this.configUtilService.getArray(Ie)))}requestDocumentsMetinv(U=5,H,Z){return this.apiService.post(`last_documents_full/with_revoke?number_of_entries=${U}&list_of_statuses=new;sign_in_bank;for_send;send;decline;end;processed_vk;accept;draft;for_send_abs;cancel_from_renew;cancel;wait_decline${H?`&point_of_reference=${H}`:""}`,Z).pipe((0,L.j)("lastDocumentFullWithActions"),(0,l.U)(pt=>this.configUtilService.getArray(pt)))}requestDocumentsDeposits(U=5,H,Z){let oe=`last_documents/doc_types?number_of_entries=${U}&list_of_statuses=new;for_send;send;decline;end;processed_vk;accept;draft;for_send_abs;wait_decline;cancel`;return H&&(oe+=`&point_of_reference=${H}`),this.apiService.post(oe,Z).pipe((0,l.U)(Pe=>Pe?Object.entries(Pe)[0][1]:[]),(0,l.U)(Pe=>this.configUtilService.getArray(Pe)))}requestDocumentInfo({docModule:U,docType:H,id:Z},oe=!0){return U&&H&&Z?this.apiService.get(`document/visual/byid?doc_module=${U}&doc_type=${H}&doc_ids=${Z}`).pipe((0,l.U)(Pe=>Pe?Object.entries(Pe):[[]]),(0,l.U)(Pe=>Pe[0][1]),(0,m.w)(Pe=>oe?this.userDataService.getAttachmentId(Z).pipe((0,l.U)(Ie=>Ie.attachmentModelList?{...Pe,attach:this.configUtilService.getArray(Ie.attachmentModelList)}:Pe)):(0,x.of)(Pe))):(0,x.of)(null)}requestDocsForSign(U){return this.apiService.get(`sign_requirements?docModule=ibankul_curr&docType=${U}`)}requestDocsForSignMetinv(U){return this.apiService.post("metinv/sign_requirements",{filter:U})}requestDocsForSignMetinvByIds(U){return this.apiService.get(`metinv/sign_requirements/doc?ids=${U}`)}getEmbeddedCTI(U){return U?this.apiService.get(`document/byid?doc_module=ibankul_curr&doc_type=${_.o.InqCurr181}&doc_ids=${U}`).pipe((0,l.U)(H=>H?.inqCurr181Ext?.id||null),(0,O.K)(()=>(0,x.of)(null))):(0,x.of)(null)}getNextDocNumMetinv(U){return this.apiService.get(`document_metinv/number/next?doc_module=ibankul_curr&doc_type=${U}`).pipe((0,O.K)(()=>this.getNextDocNum(U)))}requestDocumentsHasDraftStatus(U=5,H,Z){let oe=`last_documents/doc_types?number_of_entries=${U}&list_of_statuses=draft`;return H&&(oe+=`&point_of_reference=${H}`),this.apiService.post(oe,Z).pipe((0,l.U)(Pe=>Pe?Object.entries(Pe)[0][1]:[]),(0,l.U)(Pe=>this.configUtilService.getArray(Pe)))}getDocForSignById(U,H){return this.requestDocsForSign(H).pipe((0,l.U)(Z=>Z.docs[0].docs.map(oe=>oe.doc)),(0,l.U)(Z=>Z.find(oe=>oe.id===U)))}getVedDocsForSign(){return this.apiService.get("sign_requirements/all_count").pipe((0,l.U)(U=>(U=this.configUtilService.getArray(U.docCountInfo)).filter(H=>I.kU.some(Z=>Z.docType===H.docType))))}getNextDocNum(U,H="ibankul_curr"){return this.apiService.get(`document/number/next?doc_module=${H}&doc_type=${U}`)}getNextDocNumCrossBorder(){return this.apiService.get("trans_border_transfer/next/number",void 0,"text").pipe((0,l.U)(U=>U+""))}getDealpassDisplayString(U){const Z=this.translation.translate("VED contract"),oe=this.translation.translate("By");return U.dpnum?`${Z} \u2116${this.unkPipe.transform(U.dpnum)} ${U.dpdate?`${oe} ${this.datePipe.transform(U.dpdate,"dd.MM.yyyy")}`:""}`:U.contrNum&&U.contrDate?`${Z} \u2116${U.contrNum} ${oe} ${this.datePipe.transform(U.contrDate,"dd.MM.yyyy")}`:U.nonResidentName?`${Z}: ${U.nonResidentName}`:"Not provided"}getDraftDocuments(){return this.apiService.post("curr/draft/list",{})}getGpiCodesDictionary(){return this.apiService.get("tools/gpiCode")}getDepositInfo(U){return`${this.getDateInfo(U)} ${this.getAmountInfo(U)} ${this.getInterestRate(U)}`}getDocumentNumber(U){return this.apiService.get("document/number_metinv/next?field_name=psnumber",{doc_id:U})}transferAddSwift(U){return this.apiService.get(`metinv/curr/transfer/add/swift?docNumber=${U}`)}saveVedFilter(U){const H=JSON.parse(sessionStorage.getItem(F.Fw))||{};sessionStorage.setItem(F.Fw,JSON.stringify({...H,...U}))}getLastDocumentsFullWithActions(U=5,H,Z,oe="new;for_send;send;decline;end;processed_vk;accept;draft;for_send_abs;wait_decline;cancel"){let Pe=`last_documents_full?number_of_entries=${U}&list_of_statuses=${oe}`;return H&&(Pe+=`&point_of_reference=${H}`),this.apiService.post(Pe,Z).pipe((0,l.U)(Ie=>Ie?(Ie=Array.isArray(Ie.lastDocumentFullWithActions)?Ie.lastDocumentFullWithActions:[Ie.lastDocumentFullWithActions]).map(({document:pt,actions:Ht})=>({...pt,actions:Ht})):[]))}getDateInfo(U){return`${U.docDate}-${this.datePipe.transform(this.getEndDateByDoc(U),"dd.MM.yyyy")} (${this.getTerm(U)} \u0434)`}getAmountInfo(U){return`${this.currencyPipe.transform(U.amount)} ${U.currency??this.currencySymbolPipe.transform(U.currCode??U.contractCurr)}`}getInterestRate(U){return U.interestRate?`\u0441\u0442\u0430\u0432\u043a\u0430 ${Number.parseFloat(U.interestRate)}%`:""}getEndDateByDoc(U){return["irreducible_balance","confirm_irreducible_balance"].includes(U.docType)?U.endDate:U.withdrawalDate}getTerm(U){const H=U.docDate.split("."),Z=i()(`${H[2]}-${H[1]}-${H[0]}`);return i()(this.getEndDateByDoc(U)).diff(i()(Z),"days")}getStatusSwiftMessage(U){let H;return"true"===U?.swift&&(H=U.swiftMessage?"received":"waiting"),H||"undefined"}getAddressInSwiftFormat(){return(0,h.D)([this.userDataService.getClientInfoOrganization(!1),this.getCountries(!1)]).pipe((0,l.U)(([U,H])=>{if(!U.lawAddress)return"";const Z=H.find(at=>at.code===U.lawCountryCode)?.mnemo2||"",oe=U.lawAddress.split(","),Pe=oe.map((at,lt)=>lt>2?at:"").filter(at=>!!at).join(","),Ie=this.configUtilService.swiftTransliteration(Pe),pt=Ie.length>66?Ie.substring(0,66):Ie,Wt=(pt.length>33?[pt.substring(0,33),pt.substring(33,pt.length)]:[pt]).map(at=>`2/${at}`).join("\r\n"),Xe=U.lawRegion||oe[3];return Wt+"\r\n"+`3/${Z}/${Xe.includes("\u041c\u043e\u0441\u043a\u0432\u0430")?"MOSCOW":this.configUtilService.swiftTransliteration(Xe)}/${U.INN}`}))}connectTgPaymentService(){return this.apiService.post("trans_border_transfer/create/statement",{})}checkConnectTgServiceAllowed(){return this.apiService.get("trans_border_transfer/check/not_exists/statement").pipe((0,l.U)(U=>1===U))}addCodeToAdditionalInfo(U,H){let Z=U?.includes(p.Hf)?U.replace(p.Hf,""):U;if(Z=Z?.replace(/\s+/g," ")?.trim()||"",!Z)return p.Hf;Z=Z.length>H-p.Hi?Z.substring(0,H-p.Hi):Z;const oe=Z.length<p.Hi?Z.length:Z.length%35;return Z+(oe?p.RO.repeat(p.Hi-oe):"")+p.Hf}getAffiliateIndicatorValue(U){return("boolean"==typeof U?U:[p.n4.True,p.oZ.Yes].includes(U))?p.n4.True:p.n4.False}confirmTgReceiptOfFunds(U){return this.apiService.post(`trans_border_transfer/confirm?docId=${U}`,{}).pipe((0,O.K)(H=>(this.toast.show(H.errorText??H.message,"error"),w.E)))}static#e=this.\u0275fac=function(H){return new(H||pe)(P.\u0275\u0275inject(E.s),P.\u0275\u0275inject(R.Pj),P.\u0275\u0275inject(ne.D7),P.\u0275\u0275inject(G.uU),P.\u0275\u0275inject(ce.H),P.\u0275\u0275inject(xe.G),P.\u0275\u0275inject(we.M),P.\u0275\u0275inject(Ge.j))};static#t=this.\u0275prov=P.\u0275\u0275defineInjectable({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})()},17916:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>m});var n=t(15439),e=t.n(n),i=t(70262),d=t(39646),a=t(8226),u=t(94650),h=t(3751),l=t(9149);let m=(()=>{class x{constructor(L,w){this.apiService=L,this.toastCustomService=w}workdayCheckByCurrency(L,w){const B={currCode:L};return w.length&&(B.date=e()(w,"DD.MM.YYYY").format("YYYY.MM.DD")),this.apiService.get("curr_calendar/workday",B)}workdayCheckByDay(L){const w=e()(L,"DD.MM.YYYY").format("YYYY-MM-DD");return this.apiService.get(`work_days/check/day?work_day=${w}`)}checkWorkday(L,w=!0){return(w?this.workdayCheckByCurrency(a.$3,L):this.workdayCheckByDay(L)).pipe((0,i.K)(_=>(this.toastCustomService.errorHandle(_),(0,d.of)(!1))))}static#e=this.\u0275fac=function(w){return new(w||x)(u.\u0275\u0275inject(h.s),u.\u0275\u0275inject(l.j))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},77017:(Ee,Q,t)=>{"use strict";t.d(Q,{$3:()=>e,$t:()=>h,Gz:()=>i,MP:()=>O,Nn:()=>l,Ox:()=>x,eS:()=>w,fr:()=>L,gP:()=>n,kS:()=>_,lb:()=>a,nd:()=>u,qR:()=>d,th:()=>B,xY:()=>m});const n=["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/],e=[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],i=6,d=10,a=120,u=60,h="ROLE_CLIENTUL_HEAD_EMPLOYEE",l="\u0414\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0443\u0436\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u043a\u043e\u0434\u043e\u043c \u0438\u0437 \u0441\u043c\u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u0437\u0430\u0442\u0435\u043c \u043d\u043e\u0432\u044b\u0439, \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0443 \u0432 \u0411\u0430\u043d\u043a. \u0421\u043c\u0435\u043d\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u0438\u043d \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0434\u0435\u043d\u044c",m="\u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435",x="\u041a\u043e\u0434 \u0432\u0432\u0435\u0434\u0435\u043d \u043d\u0435\u0432\u0435\u0440\u043d\u043e",O="\u041a\u043e\u0434 \u0443\u0441\u0442\u0430\u0440\u0435\u043b",L="\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043d\u043e\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u0430\u0448\u0435\u043c\u0443 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044e. \u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f/\u043e\u0442\u043a\u0430\u0437\u0430";var w=(()=>{return(y=w||(w={})).FIRST="1",y.SECOND="2",y.THIRD="3",w;var y})();const B=[{name:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u043e\u043c\u0435\u0440\u043e\u0432",stepNumberStr:w.FIRST},{name:"\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0411\u0430\u043d\u043a",stepNumberStr:w.SECOND},{name:"\u0421\u043c\u0441 \u043e \u0441\u043c\u0435\u043d\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 ",stepNumberStr:w.THIRD}];var _=(()=>{return(y=_||(_={})).PHONE_ERROR="phoneError",y.CODE_ERROR="codeError",y.TIMEOUT_ERROR="timeoutError",y.CODE_TRY_OUT_ERROR="codeTryOutError",y.PHONE_TRY_OUT_ERROR="phoneTryOutError",y.REQUEST_TIME_STRICT_ERROR="requestTimeStrictError",_;var y})()},95832:(Ee,Q,t)=>{"use strict";t.d(Q,{Md:()=>a,hk:()=>e,lx:()=>d,oT:()=>i});var n=(()=>{return(u=n||(n={})).Active="active",u.Expired="expired",u.View="view",n;var u})(),e=(()=>{return(u=e||(e={})).Single="single",u.Joint="joint",u.View="view",e;var u})();const i={[e.Single]:"\u0415\u0434\u0438\u043d\u043e\u043b\u0438\u0447\u043d\u0430\u044f",[e.Joint]:"\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u0430\u044f",[e.View]:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440"},d={[n.Active]:"\u0410\u043a\u0442\u0438\u0432\u043d\u043e",[n.Expired]:"\u041f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e",[n.View]:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440"};var a=(()=>((a||(a={})).DISMISSAL="dismissal",a))()},30578:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>m});var n=t(7206),i=t(77579),d=t(54004),a=t(94650),u=t(3751),h=t(37601),l=t(15644);let m=(()=>{class x{constructor(L,w,B){this.apiService=L,this.userDataService=w,this.configUtilService=B,this.isLoading$=new i.x,this.changePasswordInputs=[{type:"password",title:"Settings Old Password",placeholder:"Enter old password",inputClass:"settings__input",rightIcon:"eyeoff",setValueFor:"oldPassword",errorType:"old",touched:!0},{type:"password",title:"Settings New Password",placeholder:"Enter new password",inputClass:"settings__input",rightIcon:"eyeoff",setValueFor:"password",errorType:"new",touched:!0},{type:"password",title:"Settings New Password Confirm",placeholder:"Enter new password repeat",inputClass:"settings__input",rightIcon:"eyeoff",setValueFor:"password2",errorType:"confirmation",touched:!1}]}randomStringStrong(L,w){let B="";w.indexOf("a")>-1&&(B+="abcdefghijklmnopqrstuvwxyz"),w.indexOf("A")>-1&&(B+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),w.indexOf("#")>-1&&(B+="0123456789"),w.indexOf("!")>-1&&(B+="~`!@#$%^&*()_+-=[]:;<>?,./|");let _="";for(let y=L;y>0;--y)_+=B[Math.floor(Math.random()*B.length)];return _}hashPassword(L,w,B){let _=`${L}{${B=B||this.randomStringStrong(32,"!#aA")}}`;return _="md5"===w?n.MD5(_):n.SHA256(_),_=n.enc.Hex.stringify(_),{hash:_,salt:B}}isOldPassword(L,w){let B=!1;return w.passwdHistoryData&&w.passwdHistoryData.forEach(_=>{const y=this.hashPassword(L,_.hashAlg,_.salt).hash;B=B||_.hashedPassword===y}),B}getRmsUsers(){return this.apiService.get("signer/info").pipe((0,d.U)(L=>L.map(w=>(w.actions=this.configUtilService.getArray(w?.actions),{...w,dots:{buttonActions:this.configUtilService.makeButtonActions({actions:w?.actions,...w},null)}}))))}static#e=this.\u0275fac=function(w){return new(w||x)(a.\u0275\u0275inject(u.s),a.\u0275\u0275inject(h.M),a.\u0275\u0275inject(l.Pj))};static#t=this.\u0275prov=a.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac})}return x})()},16221:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{SettingsModule:()=>$i});var n=t(36895),e=t(24006),i=t(97392),d=t(10266),a=t(44180),u=t(51329),h=t(64303),l=t(78895),m=t(88044),x=t(36561),O=t(9525),L=t(74471),w=t(71702),B=t(99762),_=t(54215),y=t(80534),$=t(97582),C=t(16611),T=t(77579),j=t(95698),I=t(82722),F=t(6146),z=(()=>{return(qt=z||(z={})).FIRST="1",qt.SECOND="2",z;var qt})();const X=[{name:"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432",stepNumberStr:z.FIRST},{name:"\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0411\u0430\u043d\u043a",stepNumberStr:z.SECOND}];var p=t(94650),P=t(9149),E=t(13162),R=t(65197);const ne=["*"];let G=(()=>{class qt{constructor(){this.background="gray"}static#e=this.\u0275fac=function(_e){return new(_e||qt)};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:qt,selectors:[["app-simple-card"]],inputs:{background:"background"},ngContentSelectors:ne,decls:2,vars:1,consts:[[1,"simple-card",3,"ngClass"]],template:function(_e,mt){1&_e&&(p.\u0275\u0275projectionDef(),p.\u0275\u0275elementStart(0,"div",0),p.\u0275\u0275projection(1),p.\u0275\u0275elementEnd()),2&_e&&p.\u0275\u0275property("ngClass",mt.background)},dependencies:[n.mk],styles:['@charset "UTF-8";.simple-card[_ngcontent-%COMP%]{padding:16px;border:1px solid #dedede;border-radius:4px}.simple-card.white[_ngcontent-%COMP%]{background:white}.simple-card.gray[_ngcontent-%COMP%]{background:#f1f2f2}']})}return qt})();var ce=t(90995),xe=t(15725),we=t(30815),Ge=t(91676),ct=t(65266),pe=t(68675),Ce=t(39841),U=t(78372);function H(qt){if(!qt?.value?.length)return null;const it=/^(?=.{1,120}$)[\u0430-\u044f\u0451\u0410-\u042f\u0401]+(?:[- ][\u0430-\u044f\u0451\u0410-\u042f\u0401]+)*$/.test(qt?.value?.trim()),ae=(qt.value||"").replace(/\s+/g," ").trim().split(" ");return ae.length<2||ae.length>6||!it?{invalidName:!0}:null}function Z(qt){return qt?.value?.length?/^(?=.{1,50}$)[\u0430-\u044f\u0451\u0410-\u042f\u0401]+(?:[- ][\u0430-\u044f\u0451\u0410-\u042f\u0401]+)*$/.test(qt?.value?.trim())?null:{invalidPosition:!0}:null}var oe=t(77017),Pe=t(38101),Ie=t(68753),pt=t(37601);let Ht=(()=>{class qt{constructor(ae,_e,mt,Vt){this.modalService=ae,this.authService=_e,this.router=mt,this.userDataService=Vt,this.USER_BLOCKED_MESSAGE_DEFAULT=oe.fr}logout(){this.authService.sessionEnd().pipe((0,j.q)(1)).subscribe(()=>{this.userDataService.employeeInfo$.next(null),this.modalService.close(),this.router.navigate(["/auth"])})}static#e=this.\u0275fac=function(_e){return new(_e||qt)(p.\u0275\u0275directiveInject(Pe.Z),p.\u0275\u0275directiveInject(Ie.e),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(pt.M))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:qt,selectors:[["app-settings-rbs-blocked-modal"]],inputs:{errorMessage:"errorMessage"},decls:5,vars:1,consts:[[1,"rbs-blocked-modal-modal"],[1,"rbs-blocked-modal-modal__text"],[1,"rbs-blocked-modal-modal__button"],["type","empty-bordered","text","Logout from RBS",3,"clicked"]],template:function(_e,mt){1&_e&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",2)(4,"app-button",3),p.\u0275\u0275listener("clicked",function(){return mt.logout()}),p.\u0275\u0275elementEnd()()()),2&_e&&(p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(mt.errorMessage?mt.errorMessage:mt.USER_BLOCKED_MESSAGE_DEFAULT))},dependencies:[ce.r],styles:['@charset "UTF-8";.rbs-blocked-modal-modal[_ngcontent-%COMP%]{padding:24px 32px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:#444}.rbs-blocked-modal-modal__text[_ngcontent-%COMP%]{max-width:560px;color:#444;text-align:center}.rbs-blocked-modal-modal__button[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:60px}']})}return qt})();const Wt=["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/],Xe=[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/];var Ze=(()=>{return(qt=Ze||(Ze={})).USER_ERROR="userError",qt.CODE_ERROR="codeError",qt.TIMEOUT_ERROR="timeoutError",qt.BLOCK_ERROR="blockError",Ze;var qt})(),Ut=t(16304),vn=t(13380);function xn(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.newFio)}}function bn(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.newPosition)}}function hn(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275pipe(2,"phone_format"),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(2,1,ae.newPhone,"+7"))}}function pn(qt,it){1&qt&&(p.\u0275\u0275elementStart(0,"span",19),p.\u0275\u0275text(1,"\u0424\u0430\u043c\u0438\u043b\u0438\u044f \u0418\u043c\u044f \u041e\u0442\u0447\u0435\u0441\u0442\u0432\u043e"),p.\u0275\u0275elementEnd())}function In(qt,it){1&qt&&(p.\u0275\u0275elementStart(0,"span",19),p.\u0275\u0275text(1,"\u0414\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c"),p.\u0275\u0275elementEnd())}function Dn(qt,it){1&qt&&(p.\u0275\u0275elementStart(0,"span",19),p.\u0275\u0275text(1,"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438"),p.\u0275\u0275elementEnd())}function Tn(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",4)(1,"app-simple-card",5)(2,"div",6)(3,"div",7)(4,"div",8),p.\u0275\u0275element(5,"mat-icon",9),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(6,"div",10)(7,"div",11)(8,"div",12),p.\u0275\u0275template(9,xn,2,1,"ng-container",13),p.\u0275\u0275text(10,", "),p.\u0275\u0275template(11,bn,2,1,"ng-container",13),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"div",12),p.\u0275\u0275template(13,hn,3,4,"ng-container",13),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(14,"div",14),p.\u0275\u0275element(15,"mat-icon",15),p.\u0275\u0275elementEnd()()()(),p.\u0275\u0275template(16,pn,2,0,"ng-template",null,16,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275template(18,In,2,0,"ng-template",null,17,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275template(20,Dn,2,0,"ng-template",null,18,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275reference(17),_e=p.\u0275\u0275reference(19),mt=p.\u0275\u0275reference(21),Vt=p.\u0275\u0275nextContext();p.\u0275\u0275advance(5),p.\u0275\u0275property("svgIcon","check"),p.\u0275\u0275advance(4),p.\u0275\u0275property("ngIf",Vt.newFio)("ngIfElse",ae),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",Vt.newPosition)("ngIfElse",_e),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",Vt.newPhone)("ngIfElse",mt)}}function mn(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",22),p.\u0275\u0275element(1,"app-metib-input",32),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275property("title","Code from SMS")("maxLength",ae.SMS_CODE_LENGTH)("mask",ae.codeMask)("hint",ae.getCodeHint("verifyCode"))}}function Yn(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",33)(1,"span"),p.\u0275\u0275text(2),p.\u0275\u0275pipe(3,"translate"),p.\u0275\u0275elementEnd()()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate2("",p.\u0275\u0275pipeBind2(3,2,"Request code again before",ae.lang)," ",ae.countdownTimeFormatted,"")}}function cn(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275elementStart(1,"app-button",34),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.submitCode())}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(2,"app-button",35),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.sendSmsCode())}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"app-button",36),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.changeContact())}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementContainerEnd()}if(2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275property("disabled",ae.contact167FzFormGroup.get("verifyCode").invalid),p.\u0275\u0275advance(1),p.\u0275\u0275property("disabled",ae.isResendSmsCodeButtonDisabled)}}function Nn(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-button",37),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.sendSmsCode())}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(1,"app-button",38),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.cancelContactInsert())}),p.\u0275\u0275elementEnd()}}function Bt(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",20)(1,"div",21)(2,"div",22),p.\u0275\u0275element(3,"app-metib-input",23),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div",24),p.\u0275\u0275element(5,"app-metib-input",25)(6,"app-metib-input",26),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(7,mn,2,4,"div",27),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(8,"div",28),p.\u0275\u0275template(9,Yn,4,5,"div",29),p.\u0275\u0275elementStart(10,"div",30),p.\u0275\u0275template(11,cn,4,2,"ng-container",13),p.\u0275\u0275template(12,Nn,2,0,"ng-template",null,31,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd()()()),2&qt){const ae=p.\u0275\u0275reference(13),_e=p.\u0275\u0275nextContext();p.\u0275\u0275property("formGroup",_e.contact167FzFormGroup),p.\u0275\u0275advance(3),p.\u0275\u0275property("title","Last name first name middle name of contact person")("maxLength",_e.FIO_LENGTH)("hint",_e.getFullnameHint("fio")),p.\u0275\u0275advance(2),p.\u0275\u0275property("title","Position")("maxLength",_e.POSITION_LENGTH)("hint",_e.getPositionHint("position")),p.\u0275\u0275advance(1),p.\u0275\u0275property("title","Mobile phone for communication")("mask",_e.phoneNumberMask)("hint",_e.getPhoneHint("phoneNumber")),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.smsCodeSent),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",_e.countdownTimeFormatted),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",_e.smsCodeSent)("ngIfElse",ae)}}function En(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",39)(1,"app-button",40),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(mt.onNewContactButtonClick())}),p.\u0275\u0275elementEnd()()}if(2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275property("disabled",ae.isNewContactButtonDisabled)}}let Wn=(()=>{class qt{constructor(ae,_e,mt,Vt,On){this.toastCustomService=ae,this.changeContacts167FzService=_e,this.fb=mt,this.cdr=Vt,this.modalService=On,this.isNewContactButtonDisabled=!1,this.verifySettings=[],this.isEditing=new p.EventEmitter(!1),this.isLoading=new p.EventEmitter(!1),this.contactSubmitted=new p.EventEmitter(null),this.PHONE_NUMBER_LENGTH=10,this.SMS_CODE_LENGTH=6,this.POSITION_LENGTH=50,this.FIO_LENGTH=120,this.phoneNumberMask={TextMask:Wt,stripMask:!0},this.codeMask={TextMask:Xe,stripMask:!0},this.contact167ChangeAgreement=null,this.contact167FzId=null,this.isFormEditing=!1,this.smsCodeSent=!1,this.isResendSmsCodeButtonDisabled=!1,this.secondsToResend=60,this.newFio="",this.newPosition="",this.newPhone="",this.contact167FzFormGroup=this.fb.group({fio:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(120),H]),position:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(50),Z]),phoneNumber:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(10),e.Validators.minLength(10)]),verifyCode:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(6),e.Validators.minLength(6)])}),this.REQUIRED_TEXT="\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c",this.SECONDS_TO_RESEND_DEFAULT=60,this.destroyed$=new T.x}ngOnInit(){this.initVerifySettings(),this.getCurrentContact167ChangeAgreement(),this.updatePreviewBlockWatcher()}updatePreviewBlockWatcher(){const ae=this.contact167FzFormGroup.get("fio").valueChanges.pipe((0,pe.O)(null)),_e=this.contact167FzFormGroup.get("position").valueChanges.pipe((0,pe.O)(null)),mt=this.contact167FzFormGroup.get("phoneNumber").valueChanges.pipe((0,pe.O)(null));(0,Ce.a)([ae,_e,mt]).pipe((0,I.R)(this.destroyed$),(0,U.b)(500)).subscribe(([Vt,On,Rn])=>{this.newFio=Vt,this.newPosition=On,this.newPhone=Rn,this.cdr.markForCheck()})}onNewContactButtonClick(){this.isFormEditing=!0,this.isEditing.emit(!0)}cancelContactInsert(){this.contact167FzId?(this.isLoading.emit(!0),this.cdr.markForCheck(),this.changeContacts167FzService.deleteContactFromDocument({id:this.contact167ChangeAgreement?.id,contactIdToDelete:this.contact167FzId}).pipe((0,j.q)(1),(0,I.R)(this.destroyed$)).subscribe({next:()=>{this.contact167FzId=null,this.isLoading.emit(!1),this.cancelEdit(),this.cdr.markForCheck()},error:_e=>{this.toastCustomService.errorHandle(_e),this.isLoading.emit(!1),this.cdr.markForCheck()}})):this.cancelEdit()}changeContact(){this.smsCodeSent=!1,this.contact167FzFormGroup.get("verifyCode").reset(),this.contact167FzFormGroup.enable(),this.clearTimer()}sendSmsCode(){if(this.contact167FzFormGroup.get("fio").invalid||this.contact167FzFormGroup.get("position").invalid||this.contact167FzFormGroup.get("phoneNumber").invalid)return this.contact167FzFormGroup.get("fio").markAsTouched(),this.contact167FzFormGroup.get("position").markAsTouched(),void this.contact167FzFormGroup.get("phoneNumber").markAsTouched();this.isLoading.emit(!0);const _e={id:this.contact167ChangeAgreement?.id||null,contactToAdd:{id:this.contact167FzId,fio:this.contact167FzFormGroup.get("fio").value?.trim(),position:this.contact167FzFormGroup.get("position").value?.trim(),phoneNumber:"+7"+this.contact167FzFormGroup.get("phoneNumber").value}};this.changeContacts167FzService.addContactToDocument(_e).subscribe({next:mt=>{mt?.id&&(this.contact167FzFormGroup.get("fio").disable(),this.contact167FzFormGroup.get("position").disable(),this.contact167FzFormGroup.get("phoneNumber").disable(),this.contact167FzId=mt.contactListToAdd.find(Vt=>!Vt.verified).id,this.initCountdownTimer(),this.smsCodeSent=!0),this.isLoading.emit(!1),this.cdr.markForCheck()},error:mt=>{mt.errorCode||mt.errorText?this.runPhoneErrorHandler(mt):this.runDefaultErrorHandler(mt)}})}submitCode(){this.isLoading.emit(!0);const ae={id:this.contact167ChangeAgreement?.id,code:this.contact167FzFormGroup.get("verifyCode").value,phone:"+7"+this.contact167FzFormGroup.get("phoneNumber").value};this.changeContacts167FzService.verifyCode(ae).subscribe({next:_e=>{if(400===_e?.status&&this.runCodeErrorHandler(_e),200===_e?.status){this.contact167FzFormGroup.get("verifyCode").setErrors(null),this.toastCustomService.show("\u041d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d","success"),this.clearTimer(),this.smsCodeSent=!1,this.isFormEditing=!1,this.isEditing.emit(!1);const mt={...this.contact167FzFormGroup.getRawValue(),phoneNumber:`+7${this.contact167FzFormGroup.get("phoneNumber").value}`,id:this.contact167FzId,isNew:!0,verified:!0};this.contactSubmitted.emit(mt),this.contact167FzFormGroup.reset(),this.contact167FzFormGroup.enable(),this.contact167FzId=null}this.isLoading.emit(!1),this.cdr.markForCheck()},error:_e=>this.runDefaultErrorHandler(_e)})}getPhoneHint(ae){const _e=this.contact167FzFormGroup.get(ae);return _e.invalid&&_e.touched&&_e.hasError("required")?{text:this.REQUIRED_TEXT,type:"error"}:_e.invalid&&_e.touched&&_e.hasError("minlength")?{text:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",type:"error"}:_e.hasError("phoneExists")?{text:_e.getError("phoneExists"),type:"error"}:null}getCodeHint(ae){const _e=this.contact167FzFormGroup.get(ae);return _e.invalid&&_e.touched&&(_e.hasError("required")||_e.hasError("minlength"))?{text:this.REQUIRED_TEXT,type:"error"}:_e.hasError("ivalidCode")?{text:_e.getError("ivalidCode"),type:"error"}:_e.hasError("expiredCode")?{text:_e.getError("expiredCode"),type:"error"}:null}getFullnameHint(ae){const _e=this.contact167FzFormGroup.get(ae);return _e.invalid&&_e.touched&&_e.hasError("required")?{text:this.REQUIRED_TEXT,type:"error"}:_e.hasError("invalidName")?{text:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e",type:"error"}:null}getPositionHint(ae){const _e=this.contact167FzFormGroup.get(ae);return _e.invalid&&_e.touched&&_e.hasError("required")?{text:this.REQUIRED_TEXT,type:"error"}:_e.invalid&&_e.touched&&_e.hasError("invalidPosition")?{text:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e",type:"error"}:null}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}runCodeErrorHandler(ae){switch(ae.errorType){case Ze.CODE_ERROR:this.contact167FzFormGroup.get("verifyCode").setErrors({ivalidCode:ae.errorMessage??"\u0412\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435\u0432\u0435\u0440\u0435\u043d"});break;case Ze.TIMEOUT_ERROR:this.contact167FzFormGroup.get("verifyCode").setErrors({expiredCode:ae.errorMessage??"\u041a\u043e\u0434 \u0443\u0441\u0442\u0430\u0440\u0435\u043b"});break;case Ze.BLOCK_ERROR:this.openRbsBlockedModal(ae.errorMessage);break;default:ae?.errorMessage&&this.toastCustomService.show(ae.errorMessage,"error")}}runPhoneErrorHandler(ae){ae?.errorText&&this.toastCustomService.show(ae.errorText,"error"),this.isLoading.emit(!1)}runDefaultErrorHandler(ae){this.toastCustomService.errorHandle(ae),this.isLoading.emit(!1)}initCountdownTimer(){clearInterval(this.countdownSetIntervalTimer),this.isResendSmsCodeButtonDisabled=!0,this.secondsToResend=this.SECONDS_TO_RESEND_DEFAULT,this.countdownTimeFormatted=this.getFormattedCountdownTimer(),this.cdr.markForCheck(),this.countdownSetIntervalTimer=setInterval(()=>{this.secondsToResend-=1,this.countdownTimeFormatted=this.getFormattedCountdownTimer(),0===this.secondsToResend&&(this.isResendSmsCodeButtonDisabled=!1,clearInterval(this.countdownSetIntervalTimer)),this.cdr.markForCheck()},1e3)}getFormattedCountdownTimer(){let ae=Math.floor(this.secondsToResend/60),_e=Math.floor(this.secondsToResend%60);return ae=ae<10?`0${ae}`:ae,_e=_e<10?`0${_e}`:_e,`${ae}:${_e}`}clearTimer(){this.isResendSmsCodeButtonDisabled=!1,this.countdownTimeFormatted=null,clearInterval(this.countdownSetIntervalTimer),this.cdr.markForCheck()}getCurrentContact167ChangeAgreement(){this.changeContacts167FzService.currentContact167ChangeAgreement$.pipe((0,I.R)(this.destroyed$)).subscribe(ae=>{this.contact167ChangeAgreement=ae})}cancelEdit(){this.isFormEditing=!1,this.isEditing.emit(!1),this.contact167FzFormGroup.reset(),this.cdr.markForCheck()}openRbsBlockedModal(ae){this.modalService.open(Ht,{inputs:{errorMessage:ae},header:"RBS blocked",styleMode:"forSign",overflow:"initial",size:"auto-width",withCloseButton:!1})}initVerifySettings(){const ae=this.verifySettings.find(_e=>"VERIFY/SEND_TIMEOUT"===_e.name)?.value;ae&&(this.SECONDS_TO_RESEND_DEFAULT=Number(ae))}static#e=this.\u0275fac=function(_e){return new(_e||qt)(p.\u0275\u0275directiveInject(P.j),p.\u0275\u0275directiveInject(R.x),p.\u0275\u0275directiveInject(e.FormBuilder),p.\u0275\u0275directiveInject(p.ChangeDetectorRef),p.\u0275\u0275directiveInject(Pe.Z))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:qt,selectors:[["app-contact-167fz-form"]],inputs:{isNewContactButtonDisabled:"isNewContactButtonDisabled",verifySettings:"verifySettings"},outputs:{isEditing:"isEditing",isLoading:"isLoading",contactSubmitted:"contactSubmitted"},decls:4,vars:3,consts:[[1,"contact-167fz"],["class","contact-167fz-card",4,"ngIf"],["class","contact-167fz-form",3,"formGroup",4,"ngIf"],["class","contact-167fz-form__new-contact-button",4,"ngIf"],[1,"contact-167fz-card"],["background","white","data-qa","1715167231"],[1,"contact-card"],[1,"contact-card-left"],[1,"contact-card-left__icon"],[3,"svgIcon"],[1,"contact-card-right"],[1,"contact-card-right-content"],[1,"contact-card-right-content__text"],[4,"ngIf","ngIfElse"],[1,"contact-card-right-icon"],["data-qa","1715167222","svgIcon","edit-custom"],["fioTpl",""],["positionTpl",""],["phoneNumberTpl",""],[1,"contact-card-right-content__text--gray"],[1,"contact-167fz-form",3,"formGroup"],[1,"contact-167fz-form-wrapper"],[1,"contact-167fz-form__column"],["appearance","dcb","formControlName","fio","data-qa","1657868190552",1,"form-field",3,"title","maxLength","hint"],[1,"contact-167fz-form__row"],["appearance","dcb","formControlName","position","data-qa","1657868190552",1,"form-field",3,"title","maxLength","hint"],["appearance","dcb","formControlName","phoneNumber","data-qa","1700470394",1,"form-field",3,"title","mask","hint"],["class","contact-167fz-form__column",4,"ngIf"],[1,"contact-167fz-form__sms-code-controls"],["class","sms-code__timer","data-qa","1681285647",4,"ngIf"],[1,"sms-code__buttons"],["getCodeTpl",""],["appearance","dcb","formControlName","verifyCode","data-qa","1700470388",1,"form-field",3,"title","maxLength","mask","hint"],["data-qa","1681285647",1,"sms-code__timer"],["type","empty-bordered","text","Confirm",3,"disabled","clicked"],["type","empty-bordered","text","Request code",3,"disabled","clicked"],["type","empty-bordered","text","Change",3,"clicked"],["type","empty-bordered","text","Submit phone number",3,"clicked"],["type","empty-bordered","text","Cancel",3,"clicked"],[1,"contact-167fz-form__new-contact-button"],["type","empty-bordered","text","New contact",3,"disabled","clicked"]],template:function(_e,mt){1&_e&&(p.\u0275\u0275elementStart(0,"div",0),p.\u0275\u0275template(1,Tn,22,7,"div",1),p.\u0275\u0275template(2,Bt,14,14,"div",2),p.\u0275\u0275template(3,En,2,1,"div",3),p.\u0275\u0275elementEnd()),2&_e&&(p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",mt.isFormEditing),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",mt.isFormEditing),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!mt.isFormEditing))},dependencies:[n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,Ut.w,G,ce.r,i.Hw,C.X$,vn.V],styles:['@charset "UTF-8";.contact-167fz-card[_ngcontent-%COMP%]{margin-bottom:20px}.contact-167fz-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:32px}.contact-167fz-form-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px}.contact-167fz-form__row[_ngcontent-%COMP%]{display:flex;column-gap:20px;row-gap:20px}@media screen and (max-width: 768px){.contact-167fz-form__row[_ngcontent-%COMP%]{flex-wrap:wrap}}.contact-167fz-form__row[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{flex-grow:1}@media screen and (max-width: 768px){.contact-167fz-form__row[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{width:100%}}.contact-167fz-form__sms-code-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:32px}.contact-167fz-form__sms-code-controls[_ngcontent-%COMP%]   .sms-code__timer[_ngcontent-%COMP%]{color:#444;font-size:14px;font-style:normal;font-weight:600}.contact-167fz-form__sms-code-controls[_ngcontent-%COMP%]   .sms-code__buttons[_ngcontent-%COMP%]{display:flex;gap:16px;flex-wrap:wrap}.contact-167fz-form__new-contact-button[_ngcontent-%COMP%]{margin-top:32px;width:-moz-fit-content;width:fit-content}.contact-167fz[_ngcontent-%COMP%]   .contact-card[_ngcontent-%COMP%]{display:flex;column-gap:12px;font-size:14px}.contact-167fz[_ngcontent-%COMP%]   .contact-card-left[_ngcontent-%COMP%]{display:flex;column-gap:12px}.contact-167fz[_ngcontent-%COMP%]   .contact-card-left__icon[_ngcontent-%COMP%]{display:flex;align-items:center}.contact-167fz[_ngcontent-%COMP%]   .contact-card-left__icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#88909b;width:20px;height:20px}.contact-167fz[_ngcontent-%COMP%]   .contact-card-right[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;column-gap:8px}.contact-167fz[_ngcontent-%COMP%]   .contact-card-right-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px;line-height:20px;font-weight:400;color:#444}.contact-167fz[_ngcontent-%COMP%]   .contact-card-right-content__text[_ngcontent-%COMP%]{word-break:break-all}.contact-167fz[_ngcontent-%COMP%]   .contact-card-right-content__text--gray[_ngcontent-%COMP%]{color:#88909b}.contact-167fz[_ngcontent-%COMP%]   .contact-card-right-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.contact-167fz[_ngcontent-%COMP%]   .contact-card-right-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px;font-size:20px;color:#88909b}.contact-167fz[_ngcontent-%COMP%]   app-metib-input[_ngcontent-%COMP%], .contact-167fz[_ngcontent-%COMP%]   app-metib-select[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%]     .contact-167fz app-metib-input, [_nghost-%COMP%]     .contact-167fz app-metib-select{margin:0}'],changeDetection:0})}return qt})();function rn(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275elementStart(1,"div",26),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",26),p.\u0275\u0275text(4),p.\u0275\u0275pipe(5,"phone_format"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate2("",ae.fio,", ",ae.position,""),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind1(5,3,ae.phoneNumber))}}function Sn(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",26),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(2,"div",26),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"phone_format"),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.fio),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind1(4,2,ae.phoneNumber))}}const ke=function(qt){return{"new-contact":qt}};function ge(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-simple-card",15)(1,"div",16)(2,"div",17)(3,"div",18),p.\u0275\u0275element(4,"mat-icon",19),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(5,"div",20)(6,"div",21),p.\u0275\u0275template(7,rn,6,5,"ng-container",22),p.\u0275\u0275template(8,Sn,5,4,"ng-template",null,23,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(10,"div",24)(11,"mat-icon",25),p.\u0275\u0275listener("click",function(){const Vt=p.\u0275\u0275restoreView(ae).$implicit,On=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(On.deleteContact(Vt))}),p.\u0275\u0275elementEnd()()()()()}if(2&qt){const ae=it.$implicit,_e=it.index,mt=p.\u0275\u0275reference(9);p.\u0275\u0275attribute("data-qa","1713857669"+_e),p.\u0275\u0275advance(4),p.\u0275\u0275property("ngClass",p.\u0275\u0275pureFunction1(6,ke,null==ae?null:ae.isNew))("svgIcon","check"),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngIf",null==ae?null:ae.position)("ngIfElse",mt),p.\u0275\u0275advance(4),p.\u0275\u0275attribute("data-qa","1657867873368"+_e)}}class q{constructor(it,ae,_e,mt,Vt){this.toastCustomService=it,this.router=ae,this.cdr=_e,this.packageSignModalService=mt,this.changeContacts167FzService=Vt,this.isLoading=!0,this.isEditingMode=!1,this.contact167ChangeAgreement=null,this.contacts167Fz=[],this.verifySettings=[],this.currentStepNumber=z.FIRST,this.pathData=[{capture:"Settings page title",bold:!0,href:"/settings",params:{tab:"company-card"}}],this.CHANGE_167FZ_CONTACTS_FORM_STEPS=X,this.CHANGE_167FZ_CONTACTS_STEPS=z,this.navigateUrl={url:["settings"],extras:{queryParams:{tab:"company-card"}}},this.destroyed$=new T.x}get isDocumentChanged(){return!!this.contact167ChangeAgreement.contactListToDelete.length||!!this.contact167ChangeAgreement.contactListToAdd.length}get isContactExistInDocument(){return!!this.contact167ChangeAgreement.currentContactList.length||!!this.contact167ChangeAgreement.contactListToAdd.length}ngOnInit(){this.initContacts167Fz(),this.updateCurrentContact167Agreement()}onContactFormLoading(it){this.isLoading=it,this.cdr.markForCheck()}onContactFormEditing(it){this.isEditingMode=it,this.cdr.markForCheck()}onContactSubmitted(it){this.contacts167Fz.push(it)}deleteContact(it){this.isLoading=!0,this.cdr.markForCheck(),this.changeContacts167FzService.deleteContactFromDocument({id:this.contact167ChangeAgreement?.id||null,contactIdToDelete:it.id}).pipe((0,j.q)(1),(0,I.R)(this.destroyed$)).subscribe({next:()=>{this.isLoading=!1,this.cdr.markForCheck()},error:_e=>{this.toastCustomService.errorHandle(_e),this.isLoading=!1,this.cdr.markForCheck()}})}navigateToCompanyCard(){this.router.navigate(this.navigateUrl.url,this.navigateUrl.extras)}sendForm(){this.isEditingMode?this.toastCustomService.show("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438","error"):this.isDocumentChanged?this.isContactExistInDocument?this.packageSignModalService.openSignModalAlt({docModule:"ibankul",docType:F.o.Contact167ChangeAgreement,id:this.contact167ChangeAgreement.id},this.navigateUrl,!0,!1):this.toastCustomService.show("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b 1 \u043a\u043e\u043d\u0442\u0430\u043a\u0442","error"):this.toastCustomService.show("\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c. \u041d\u0430 \u0444\u043e\u0440\u043c\u0435 \u043d\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.","error")}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete(),this.changeContacts167FzService.clearContact167ChangeAgreement()}initContacts167Fz(){this.changeContacts167FzService.getContacts167().pipe((0,j.q)(1),(0,I.R)(this.destroyed$)).subscribe({next:it=>{it?.agreement?.id&&(this.toastCustomService.show("\u0423 \u0412\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0430 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0435\u0451 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f","error"),this.navigateToCompanyCard()),this.contact167ChangeAgreement=it?.agreement,this.verifySettings=it?.verifySettings,this.contacts167Fz=it?.agreement?.currentContactList,this.isLoading=!1,this.cdr.markForCheck()},error:it=>{this.toastCustomService.errorHandle(it),this.isLoading=!1,this.cdr.markForCheck()}})}updateCurrentContact167Agreement(){this.changeContacts167FzService.currentContact167ChangeAgreement$.pipe((0,I.R)(this.destroyed$)).subscribe(it=>{this.contact167ChangeAgreement=it;const ae=it?.currentContactList,_e=it?.contactListToAdd.filter(mt=>mt.verified).map(mt=>({...mt,isNew:!0}));this.contacts167Fz=[...ae,..._e],this.cdr.markForCheck()})}static#e=this.\u0275fac=function(ae){return new(ae||q)(p.\u0275\u0275directiveInject(P.j),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(p.ChangeDetectorRef),p.\u0275\u0275directiveInject(E.i),p.\u0275\u0275directiveInject(R.x))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:q,selectors:[["app-settings-change-contacts-167fz"]],decls:22,vars:14,consts:[["data-qa","1657868134992",3,"pathData"],["data-qa","1657968399965",3,"title","withCloseButton","fullTitleInMobileView","loading","close"],[1,"change-contacts-167fz"],[1,"change-contacts-167fz__left"],[1,"change-contacts-167fz-info"],[1,"change-contacts-167fz-form"],[1,"change-contacts-167fz-form-block"],[1,"change-contacts-167fz-form-block__header"],[1,"change-contacts-167fz-form-block__cards"],["background","white",4,"ngFor","ngForOf"],[3,"verifySettings","isNewContactButtonDisabled","isEditing","isLoading","contactSubmitted"],[1,"change-contacts-167fz-form-block__submit-button"],["type","small header","text","Send for signature",3,"clicked"],[1,"change-contacts-167fz__right"],[3,"stepNumber","stepsConfig"],["background","white"],[1,"contact-card"],[1,"contact-card-left"],[1,"contact-card-left__icon"],[3,"ngClass","svgIcon"],[1,"contact-card-right"],[1,"contact-card-right-content"],[4,"ngIf","ngIfElse"],["existingContactTpl",""],[1,"contact-card-right-icon"],["svgIcon","delete-custom",3,"click"],[1,"contact-card-right-content__text"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275element(0,"app-path",0),p.\u0275\u0275elementStart(1,"app-page",1),p.\u0275\u0275listener("close",function(){return _e.navigateToCompanyCard()}),p.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"div",4)(5,"app-collapse-text-block")(6,"div"),p.\u0275\u0275text(7," \u041c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435. \u0412 \u0437\u0430\u044f\u0432\u043a\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c 1, \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 3 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430. \u041a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u043a\u043e\u0434\u043e\u043c \u0438\u0437 \u0441\u043c\u0441. "),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(8,"div"),p.\u0275\u0275text(9,"\u0421\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 24 \u0447\u0430\u0441\u0430"),p.\u0275\u0275elementEnd()()(),p.\u0275\u0275elementStart(10,"div",5)(11,"div",6)(12,"div",7),p.\u0275\u0275text(13),p.\u0275\u0275pipe(14,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(15,"div",8),p.\u0275\u0275template(16,ge,12,8,"app-simple-card",9),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(17,"app-contact-167fz-form",10),p.\u0275\u0275listener("isEditing",function(Vt){return _e.onContactFormEditing(Vt)})("isLoading",function(Vt){return _e.onContactFormLoading(Vt)})("contactSubmitted",function(Vt){return _e.onContactSubmitted(Vt)}),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(18,"div",11)(19,"app-button",12),p.\u0275\u0275listener("clicked",function(){return _e.sendForm()}),p.\u0275\u0275elementEnd()()()(),p.\u0275\u0275elementStart(20,"div",13),p.\u0275\u0275element(21,"app-steps-track",14),p.\u0275\u0275elementEnd()()()),2&ae&&(p.\u0275\u0275property("pathData",_e.pathData),p.\u0275\u0275advance(1),p.\u0275\u0275property("title","Changing 167-FZ Contacts")("withCloseButton",!0)("fullTitleInMobileView",!0)("loading",_e.isLoading),p.\u0275\u0275advance(12),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(14,11,"167-FZ Contacts",_e.lang)),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngForOf",_e.contacts167Fz),p.\u0275\u0275advance(1),p.\u0275\u0275property("verifySettings",_e.verifySettings)("isNewContactButtonDisabled",(null==_e.contacts167Fz?null:_e.contacts167Fz.length)>2),p.\u0275\u0275advance(4),p.\u0275\u0275property("stepNumber",_e.currentStepNumber)("stepsConfig",_e.CHANGE_167FZ_CONTACTS_FORM_STEPS))},dependencies:[n.mk,n.sg,n.O5,G,ce.r,xe.I,we.l,i.Hw,Ge.R,ct.C,Wn,C.X$,vn.V],styles:['@charset "UTF-8";.change-contacts-167fz[_ngcontent-%COMP%]{display:flex;margin-top:32px;column-gap:104px;font-size:16px;font-family:Open Sans,Source Sans Pro,sans-serif;flex-wrap:wrap-reverse;row-gap:24px}.change-contacts-167fz__left[_ngcontent-%COMP%]{max-width:660px;width:100%}.change-contacts-167fz-form-block[_ngcontent-%COMP%]{margin-top:24px}.change-contacts-167fz-form-block--mr40[_ngcontent-%COMP%]{margin-top:40px}.change-contacts-167fz-form-block__header[_ngcontent-%COMP%]{color:#080708;font-size:18px;font-style:normal;font-weight:700;margin-bottom:12px}.change-contacts-167fz-form-block__column[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px}.change-contacts-167fz-form-block__cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px;margin-bottom:16px}.change-contacts-167fz-form-block__submit-button[_ngcontent-%COMP%]{margin-top:48px;display:flex}.change-contacts-167fz[_ngcontent-%COMP%]   app-metib-input[_ngcontent-%COMP%], .change-contacts-167fz[_ngcontent-%COMP%]   app-metib-select[_ngcontent-%COMP%]{display:block;width:100%}.contact-card[_ngcontent-%COMP%]{display:flex;column-gap:12px;font-size:14px}.contact-card-left[_ngcontent-%COMP%]{display:flex;column-gap:12px}.contact-card-left__icon[_ngcontent-%COMP%]{display:flex;align-items:center}.contact-card-left__icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#00a843;width:20px;height:20px}.contact-card-left__icon[_ngcontent-%COMP%]   mat-icon.new-contact[_ngcontent-%COMP%]{color:#2f54eb}.contact-card-right[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;column-gap:8px}.contact-card-right-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px;line-height:20px;font-weight:400;color:#444}.contact-card-right-content__text-bold[_ngcontent-%COMP%]{font-weight:600}.contact-card-right-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.contact-card-right-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px;font-size:20px;cursor:pointer;color:#88909b}'],changeDetection:0})}(0,$.gn)([(0,C.SQ)()],q.prototype,"lang",void 0);var J=t(54004);let Oe=(()=>{class qt{constructor(ae,_e){this.router=ae,this.modalService=_e,this.contentText="",this.isUserConfirmed=!1}confirm(){this.isUserConfirmed=!0,this.modalService.close()}ngOnDestroy(){this.isUserConfirmed||this.router.navigate(["settings"],{queryParams:{tab:"skb-users"}})}static#e=this.\u0275fac=function(_e){return new(_e||qt)(p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(Pe.Z))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:qt,selectors:[["app-settings-bp-change-phone-agree-modal"]],inputs:{contentText:"contentText"},decls:5,vars:1,consts:[[1,"bp-change-phone-agree-modal"],[1,"bp-change-phone-agree-modal__text"],[1,"bp-change-phone-agree-modal__button"],["type","small header","text","Confirm",3,"clicked"]],template:function(_e,mt){1&_e&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",2)(4,"app-button",3),p.\u0275\u0275listener("clicked",function(){return mt.confirm()}),p.\u0275\u0275elementEnd()()()),2&_e&&(p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",mt.contentText," "))},dependencies:[ce.r],styles:['@charset "UTF-8";.bp-change-phone-agree-modal[_ngcontent-%COMP%]{padding:24px 32px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:#444}.bp-change-phone-agree-modal__text[_ngcontent-%COMP%]{max-width:560px;color:#444}.bp-change-phone-agree-modal__button[_ngcontent-%COMP%]{display:flex;margin-top:60px}']})}return qt})(),je=(()=>{class qt{constructor(ae,_e){this.router=ae,this.modalService=_e}goToRequests(){this.router.navigate(["settings"],{queryParams:{tab:"requests"}}),this.modalService.close()}static#e=this.\u0275fac=function(_e){return new(_e||qt)(p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(Pe.Z))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:qt,selectors:[["app-settings-not-allowed-to-sign-modal"]],decls:5,vars:0,consts:[[1,"not-allowed-to-sign-modal"],[1,"not-allowed-to-sign-modal__text"],[1,"not-allowed-to-sign-modal__button"],["type","empty-bordered","text","Go to requests",3,"clicked"]],template:function(_e,mt){1&_e&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1),p.\u0275\u0275text(2," \u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043d\u043e\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u0430\u0448\u0435\u043c\u0443 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044e. \u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f/\u043e\u0442\u043a\u0430\u0437\u0430 "),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",2)(4,"app-button",3),p.\u0275\u0275listener("clicked",function(){return mt.goToRequests()}),p.\u0275\u0275elementEnd()()())},dependencies:[ce.r],styles:['@charset "UTF-8";.not-allowed-to-sign-modal[_ngcontent-%COMP%]{padding:24px 32px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:#444}.not-allowed-to-sign-modal__text[_ngcontent-%COMP%]{max-width:560px;color:#444;text-align:center}.not-allowed-to-sign-modal__button[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:60px}']})}return qt})();var Et=t(98202),dt=t(17489),rt=t(61135),qe=t(39646),ze=t(70262),zt=t(95832),vt=t(15644),Rt=t(3751),gt=t(92008);let sn=(()=>{class qt{constructor(ae,_e,mt,Vt,On){this.toastCustomService=ae,this.configUtilService=_e,this.datePipe=mt,this.apiService=Vt,this.appConfigService=On,this.requestList=[],this._requestList=new rt.X(null),this.requestList$=this._requestList.asObservable(),this._isLoading=new rt.X(!0),this.isLoading$=this._isLoading.asObservable()}loadRequestList(ae,_e){this.setIsLoading(!0);const mt=_e||null,Vt=[],On=this.appConfigService.settings.commonSettings;On.PHONE_CHANGE_STATEMENT&&Vt.push({docModule:"ibankul",docType:F.o.PhoneChange}),On.CONTACT_167&&Vt.push({docModule:"ibankul",docType:F.o.Contact167ChangeAgreement}),On.VIEW_DISMISSAL_REQUEST&&Vt.push({docModule:"ibankul",docType:F.o.Compromise}),this.getPhoneChangeDocuments({visual:!0,page:ae,lastDocumentFilter:{docTypes:Vt},additionalFilter:mt}).pipe((0,j.q)(1),(0,ze.K)(ni=>(this.toastCustomService.errorHandle(ni),(0,qe.of)({page:{number:ae.number.toString(),size:ae.size.toString(),total:"0"},documents:[]}))),(0,J.U)(ni=>{let Ii=[];return ni?.documents?.length&&(Ii=this.prepareRequestList(ni)),{documents:Ii,page:ni?.page}})).subscribe({next:ni=>{this.requestList=ae?.showMore?[...this.requestList,...ni.documents]:[...ni.documents],this._requestList.next({documents:this.requestList,page:ni?.page}),this.setIsLoading(!1)},error:ni=>{this.toastCustomService.errorHandle(ni),this.setIsLoading(!1)}})}setIsLoading(ae){this._isLoading.next(ae)}clearRequestList(){this.requestList=[],this._requestList.next(null)}getSignerInfoById(ae){return this.apiService.get(`phone_change/info/${ae}`)}createPhoneChangeDocument(ae){return this.apiService.post("phone_change/create",ae)}confirmPhoneChange(ae){return this.apiService.post("phone_change/confirm",ae)}applyCodePhoneChange(ae){return this.apiService.post("phone_change/confirm/apply_code",ae)}getPhoneChangeDocuments(ae){return this.apiService.post("phone_change/docs",ae).pipe((0,J.U)(_e=>_e?.documents&&!dt.isEmpty(_e.documents)?{documents:Array.isArray(_e.documents)?[..._e.documents]:[_e.documents],page:_e.page}:Object.prototype.hasOwnProperty.call(_e,"page")&&!Object.prototype.hasOwnProperty.call(_e,"documents")?{documents:[],page:_e.page}:null))}prepareRequestList(ae){return ae.documents.map(_e=>{("decline"===_e.status||"cancel"===_e.status)&&(_e.isOpenable=!0,_e.isOpen=!1),_e.actions=this.configUtilService.getArray(_e?.actions).filter(On=>"view"!==On);let mt="-",Vt="-";switch(_e.docType){case F.o.Compromise:_e.compromiseType===zt.Md.DISMISSAL&&(mt="\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f",Vt=`${_e?.employeeFullName||"-"}`);break;case F.o.PhoneChange:_e.userCurrentPhone=_e.userCurrentPhone?`+${_e.userCurrentPhone}`:null,_e.userNewPhone=_e.userNewPhone?`+${_e.userNewPhone}`:null,mt="\u0421\u043c\u0435\u043d\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438",Vt=`${_e.userFullName}, \u0422\u0435\u043a\u0443\u0449\u0438\u0439: ${_e?.userCurrentPhone||"-"}, \u041d\u043e\u0432\u044b\u0439: ${_e?.userNewPhone||"-"}`;break;case F.o.Contact167ChangeAgreement:_e.addContacts=this.configUtilService.getArray(_e?.addContacts),_e.currentContacts=this.configUtilService.getArray(_e?.currentContacts).filter(On=>"delete"!==On?.status),_e.deleteContacts=this.configUtilService.getArray(_e?.deleteContacts),mt="\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 161-\u0424\u0417",Vt="",_e.currentContacts.forEach(On=>{Vt+=`${On.contactFio}, ${On.contactPosition?`${On.contactPosition}, `:""}${On.phone}; `}),_e.addContacts.forEach(On=>{Vt+=`${On.contactFio}, ${On.contactPosition?`${On.contactPosition}, `:""}${On.phone}; `})}return _e.statusCaption="new"===_e.status?_e.signStatusCaption:_e?.statusCaption??_e?.signStatusCaption,{dots:{buttonActions:this.configUtilService.makeButtonActions({actions:_e.actions,..._e},null,On=>"print"===On?{inPopup:!1}:{})},..._e,title:mt,description:Vt,statusCaption:this.configUtilService.capitalizeFirstLetter(_e?.statusCaption??_e?.signStatusCaption),statusCaptionColor:Et.rV.get(_e.status),date:this.datePipe.transform(_e.docDate,"dd.MM.YYYY")}})}static#e=this.\u0275fac=function(_e){return new(_e||qt)(p.\u0275\u0275inject(P.j),p.\u0275\u0275inject(vt.Pj),p.\u0275\u0275inject(n.uU),p.\u0275\u0275inject(Rt.s),p.\u0275\u0275inject(gt._))};static#t=this.\u0275prov=p.\u0275\u0275defineInjectable({token:qt,factory:qt.\u0275fac})}return qt})();var wn=t(40929);function Qn(qt,it){if(1&qt&&p.\u0275\u0275element(0,"app-metib-input",20),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275property("title","Code from SMS to current phone number")("maxLength",ae.SMS_CODE_LENGTH)("mask",ae.codeMask)("hint",ae.getCodeHint("currentPhoneVerifyCode"))}}function pi(qt,it){if(1&qt&&p.\u0275\u0275element(0,"app-metib-input",21),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275property("title","New phone number")("mask",ae.phoneMask)("hint",ae.getPhoneHint("userNewPhone"))("showConfirmedIcon",ae.isNewPhoneVerified)}}function Ei(qt,it){if(1&qt&&p.\u0275\u0275element(0,"app-metib-input",22),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275property("title","Code from SMS to new phone number")("maxLength",ae.SMS_CODE_LENGTH)("mask",ae.codeMask)("hint",ae.getCodeHint("newPhoneVerifyCode"))}}function ki(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",28)(1,"span"),p.\u0275\u0275text(2),p.\u0275\u0275pipe(3,"translate"),p.\u0275\u0275elementEnd()()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate2("",p.\u0275\u0275pipeBind2(3,2,"Request code again before",ae.lang)," ",ae.countdownTimeFormatted,"")}}function Co(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275elementStart(1,"app-button",29),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.submitCode())}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(2,"app-button",30),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.sendSmsCode())}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementContainerEnd()}if(2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275property("disabled",ae.isSubmitCodeButtonDisabled),p.\u0275\u0275advance(1),p.\u0275\u0275property("disabled",ae.isResendSmsCodeButtonDisabled)}}function xo(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-button",31),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(mt.sendSmsCode())}),p.\u0275\u0275elementEnd()}}function no(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",23),p.\u0275\u0275template(1,ki,4,5,"div",24),p.\u0275\u0275elementStart(2,"div",25),p.\u0275\u0275template(3,Co,3,2,"ng-container",26),p.\u0275\u0275template(4,xo,1,0,"ng-template",null,27,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd()()),2&qt){const ae=p.\u0275\u0275reference(5),_e=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.countdownTimeFormatted),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",_e.smsCodeSent)("ngIfElse",ae)}}function Qo(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",32)(1,"app-button",33),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(mt.sendForm())}),p.\u0275\u0275elementEnd()()}}const Mo=function(){return{name:"string"}};class po{constructor(it,ae,_e,mt,Vt,On,Rn,ni,Ii,so,io,$a){this.translation=it,this.toastCustomService=ae,this.router=_e,this.requestsService=mt,this.fb=Vt,this.cdr=On,this.activatedRoute=Rn,this.modalService=ni,this.documentService=Ii,this.packageSignModalService=so,this.userDataService=io,this.configUtilService=$a,this.pathData=[{capture:"Settings page title",bold:!0,href:"/settings",params:{tab:"requests"}}],this.CHANGE_PHONE_NUMBER_FORM_STEPS=oe.th,this.CHANGE_PHONE_NUMBER_STEPS=oe.eS,this.PHONE_NUMBER_LENGTH=oe.qR,this.SMS_CODE_LENGTH=oe.Gz,this.CHANGE_PHONE_NUMBER_INFO_TEXT=oe.Nn,this.navigateUrl={url:["settings"],extras:{queryParams:{tab:"requests"}}},this.phoneMask={TextMask:oe.gP,stripMask:!0},this.codeMask={TextMask:oe.$3,stripMask:!0},this.isLoading=!0,this.isCurrentPhoneVerified=!1,this.isNewPhoneVerified=!1,this.smsCodeSent=!1,this.phoneChangeDocument={},this.isResendSmsCodeButtonDisabled=!1,this.currentStepNumber=oe.eS.FIRST,this.secondsToResend=oe.lb,this.SECONDS_TO_RESEND_FOR_CURRENT_PHONE=oe.lb,this.SECONDS_TO_RESEND_FOR_NEW_PHONE=oe.nd,this.PHONE_ERROR_MESSAGE=oe.xY,this.CODE_ERROR_MESSAGE=oe.Ox,this.EXPIRED_CODE_ERROR_MESSAGE_DEFAULT=oe.MP,this.changePhoneNumberForm=this.fb.group({userFullName:new e.FormControl(null,e.Validators.required),userCurrentPhone:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(oe.qR),e.Validators.minLength(oe.qR)]),userNewPhone:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(oe.qR),e.Validators.minLength(oe.qR)]),currentPhoneVerifyCode:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(oe.Gz),e.Validators.minLength(oe.Gz)]),newPhoneVerifyCode:new e.FormControl(null,[e.Validators.required,e.Validators.maxLength(oe.Gz),e.Validators.minLength(oe.Gz)])}),this.destroyed$=new T.x}get isSubmitCodeButtonDisabled(){return this.changePhoneNumberForm.get("currentPhoneVerifyCode").invalid&&this.currentStepNumber===oe.eS.FIRST||this.changePhoneNumberForm.get("newPhoneVerifyCode").invalid&&this.currentStepNumber===oe.eS.SECOND}ngOnInit(){const it=this.activatedRoute.snapshot.queryParamMap.get("id"),ae=this.activatedRoute.snapshot.queryParamMap.get("signerId");it||ae?this.documentService.getDocumentSettingsByDocType(F.o.PhoneChange,"ibankul").pipe((0,I.R)(this.destroyed$)).subscribe(_e=>{const mt=_e?.docSettings?.find(On=>"PHONE_CHANGE_CONF/CURRENT_NUMBER_CODE_REQUEST_TIMEOUT"===On?.name)?.value,Vt=_e?.docSettings?.find(On=>"PHONE_CHANGE_CONF/NEW_NUMBER_CODE_REQUEST_TIMEOUT"===On?.name)?.value;this.SECONDS_TO_RESEND_FOR_CURRENT_PHONE=mt?Number(mt):oe.lb,this.SECONDS_TO_RESEND_FOR_NEW_PHONE=Vt?Number(Vt):oe.nd,this.cdr.detectChanges(),this.initForm(it,ae)}):this.navigateToUsers()}onClosePage(){this.navigateToRequests()}submitCode(){this.isCurrentPhoneVerified?this.phoneChangeDocument.newPhoneVerifyCode=this.changePhoneNumberForm.get("newPhoneVerifyCode").value:this.phoneChangeDocument.currentPhoneVerifyCode=this.changePhoneNumberForm.get("currentPhoneVerifyCode").value,this.isLoading=!0,this.cdr.detectChanges();const it={docId:this.phoneChangeDocument?.id?.toString(),userId:this.phoneChangeDocument.userId,verifyCode:this.isCurrentPhoneVerified?this.phoneChangeDocument.newPhoneVerifyCode:this.phoneChangeDocument.currentPhoneVerifyCode,current:!this.isCurrentPhoneVerified};this.requestsService.applyCodePhoneChange(it).pipe((0,j.q)(1),(0,I.R)(this.destroyed$)).subscribe({next:ae=>{ae?.errorType&&this.runCodeErrorHandler(ae),null===ae&&(this.changePhoneNumberForm.get("currentPhoneVerifyCode").setErrors(null),this.changePhoneNumberForm.get("newPhoneVerifyCode").setErrors(null),this.isCurrentPhoneVerified?(this.changePhoneNumberForm.get("userNewPhone").disable(),this.isNewPhoneVerified=!0,this.currentStepNumber=oe.eS.THIRD,this.toastCustomService.show("\u041d\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d","success")):(this.changePhoneNumberForm.get("userCurrentPhone").disable(),this.isCurrentPhoneVerified=!0,this.currentStepNumber=oe.eS.SECOND,this.toastCustomService.show("\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d","success")),this.clearTimer(),this.smsCodeSent=!1),this.isLoading=!1,this.cdr.detectChanges()},error:ae=>this.runDefaultErrorHandler(ae)})}sendSmsCode(){if(this.changePhoneNumberForm.get("userCurrentPhone").invalid&&this.currentStepNumber===oe.eS.FIRST||this.changePhoneNumberForm.get("userNewPhone").invalid&&this.currentStepNumber===oe.eS.SECOND){switch(this.currentStepNumber){case oe.eS.FIRST:this.changePhoneNumberForm.get("userCurrentPhone").markAsTouched();break;case oe.eS.SECOND:this.changePhoneNumberForm.get("userNewPhone").markAsTouched()}return}this.isCurrentPhoneVerified?this.phoneChangeDocument.userNewPhone=this.changePhoneNumberForm.get("userNewPhone").value:this.phoneChangeDocument.userCurrentPhone=this.changePhoneNumberForm.get("userCurrentPhone").value,this.isLoading=!0,this.cdr.detectChanges();const ae={docId:this.phoneChangeDocument?.id?.toString()||null,userId:this.phoneChangeDocument.userId,phone:this.isCurrentPhoneVerified?this.phoneChangeDocument.userNewPhone:this.phoneChangeDocument.userCurrentPhone,current:!this.isCurrentPhoneVerified};this.requestsService.confirmPhoneChange(ae).pipe((0,j.q)(1),(0,I.R)(this.destroyed$)).subscribe({next:_e=>{_e?.errorType&&this.runPhoneErrorHandler(_e),_e?.id&&(this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{id:_e?.id},queryParamsHandling:"merge"}),this.phoneChangeDocument.id=_e?.id),(_e?.id||null===_e)&&(this.initCountdownTimer(),this.smsCodeSent=!0,this.isCurrentPhoneVerified?this.changePhoneNumberForm.get("userNewPhone").disable():this.changePhoneNumberForm.get("userCurrentPhone").disable()),_e?.warningText&&this.toastCustomService.show(_e?.warningText,"warning"),this.isLoading=!1,this.cdr.detectChanges()},error:_e=>{this.runDefaultErrorHandler(_e)}})}sendForm(){if(this.hasHeadEmployeeRole){const it={docModule:"ibankul",docType:F.o.PhoneChange,id:this.phoneChangeDocument.id.toString()};this.packageSignModalService.openSignModalAlt(it,this.navigateUrl,!0)}else this.modalService.open(je,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"auto-width",withCloseButton:!1})}getPhoneHint(it){const ae=this.changePhoneNumberForm.get(it);return ae.invalid&&ae.touched&&ae.hasError("required")?{text:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",type:"error"}:ae.invalid&&ae.touched&&ae.hasError("minlength")?{text:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",type:"error"}:ae.hasError("currentPhoneIsNotMatch")?{text:this.PHONE_ERROR_MESSAGE,type:"error"}:null}getCodeHint(it){const ae=this.changePhoneNumberForm.get(it);return ae.hasError("ivalidCode")?{text:this.CODE_ERROR_MESSAGE,type:"error"}:ae.hasError("expiredCode")?{text:this.EXPIRED_CODE_ERROR_MESSAGE_DEFAULT,type:"error"}:null}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}runCodeErrorHandler(it){switch(it.errorType){case oe.kS.CODE_ERROR:this.CODE_ERROR_MESSAGE=it?.errorMessage?it.errorMessage:oe.Ox,this.currentStepNumber===oe.eS.FIRST&&this.changePhoneNumberForm.get("currentPhoneVerifyCode").setErrors({ivalidCode:!0}),this.currentStepNumber===oe.eS.SECOND&&this.changePhoneNumberForm.get("newPhoneVerifyCode").setErrors({ivalidCode:!0});break;case oe.kS.TIMEOUT_ERROR:this.EXPIRED_CODE_ERROR_MESSAGE_DEFAULT=it?.errorMessage?it.errorMessage:oe.MP,this.currentStepNumber===oe.eS.FIRST&&this.changePhoneNumberForm.get("currentPhoneVerifyCode").setErrors({expiredCode:!0}),this.currentStepNumber===oe.eS.SECOND&&this.changePhoneNumberForm.get("newPhoneVerifyCode").setErrors({expiredCode:!0});break;case oe.kS.CODE_TRY_OUT_ERROR:this.openRbsBlockedModal(it?.errorMessage);break;default:it?.errorMessage&&this.toastCustomService.show(it.errorMessage,"error")}}runPhoneErrorHandler(it){switch(it?.errorType){case oe.kS.PHONE_ERROR:this.PHONE_ERROR_MESSAGE=it?.errorMessage?it.errorMessage:oe.xY,this.changePhoneNumberForm.get("userCurrentPhone").setErrors({currentPhoneIsNotMatch:!0});break;case oe.kS.PHONE_TRY_OUT_ERROR:this.openRbsBlockedModal(it?.errorMessage);break;default:it?.errorMessage&&this.toastCustomService.show(it.errorMessage,"error")}}runDefaultErrorHandler(it){this.toastCustomService.errorHandle(it),this.isLoading=!1,this.cdr.detectChanges()}get hasHeadEmployeeRole(){return this.userDataService.clientRoles$.getValue().includes(oe.$t)}initForm(it,ae){(it?this.documentService.getDocumentById("ibankul",F.o.PhoneChange,it).pipe((0,J.U)(mt=>mt.phoneChange)):this.requestsService.getSignerInfoById(ae)).pipe((0,j.q)(1),(0,I.R)(this.destroyed$)).subscribe({next:mt=>{const Vt=mt?.userFullName;if(!mt?.id&&!Vt)return ae&&this.toastCustomService.show(this.translation.translate("RBS user not found"),"error"),it&&this.toastCustomService.show(this.translation.translate("Document not found"),"error"),void this.navigateToRequests();if(ae&&mt?.bpx&&this.openBpChangePhoneAgreeModal(mt?.message),this.phoneChangeDocument={userId:ae,userFullName:Vt},this.changePhoneNumberForm.get("userFullName").setValue(Vt),this.changePhoneNumberForm.get("userFullName").disable(),it){const On=mt;this.phoneChangeDocument.id=On.id,this.phoneChangeDocument.userId=On.userId,this.isCurrentPhoneVerified=this.configUtilService.strToBoolean(On.isCurrentPhoneVerified),this.isNewPhoneVerified=this.configUtilService.strToBoolean(On.isNewPhoneVerified);const Rn=On?.userCurrentPhone?.substring(1);this.changePhoneNumberForm.get("userCurrentPhone").setValue(Rn||null,{emitEvent:!1}),Rn&&this.changePhoneNumberForm.get("userCurrentPhone").disable({emitEvent:!1}),this.isCurrentPhoneVerified&&(this.changePhoneNumberForm.get("userCurrentPhone").disable(),this.currentStepNumber=oe.eS.SECOND,this.phoneChangeDocument.userCurrentPhone=On.userCurrentPhone,this.phoneChangeDocument.currentPhoneVerifyCode=On.currentPhoneVerifyCode);const ni=On?.userNewPhone?.substring(1);this.changePhoneNumberForm.get("userNewPhone").setValue(ni||null,{emitEvent:!1}),this.isNewPhoneVerified&&(this.changePhoneNumberForm.get("userNewPhone").disable(),this.currentStepNumber=oe.eS.THIRD,this.phoneChangeDocument.userCurrentPhone=On.userNewPhone,this.phoneChangeDocument.newPhoneVerifyCode=On.newPhoneVerifyCode)}this.isLoading=!1,this.cdr.detectChanges()},error:mt=>{this.toastCustomService.errorHandle(mt),this.isLoading=!1,this.cdr.detectChanges(),this.navigateToRequests()}})}initCountdownTimer(){switch(clearInterval(this.countdownSetIntervalTimer),this.isResendSmsCodeButtonDisabled=!0,this.currentStepNumber){case oe.eS.FIRST:this.secondsToResend=this.SECONDS_TO_RESEND_FOR_CURRENT_PHONE;break;case oe.eS.SECOND:this.secondsToResend=this.SECONDS_TO_RESEND_FOR_NEW_PHONE}this.countdownTimeFormatted=this.getFormattedCountdownTimer(),this.cdr.detectChanges(),this.countdownSetIntervalTimer=setInterval(()=>{this.secondsToResend-=1,this.countdownTimeFormatted=this.getFormattedCountdownTimer(),0===this.secondsToResend&&(this.isResendSmsCodeButtonDisabled=!1,clearInterval(this.countdownSetIntervalTimer)),this.cdr.detectChanges()},1e3)}getFormattedCountdownTimer(){let it=Math.floor(this.secondsToResend/60),ae=Math.floor(this.secondsToResend%60);return it=it<10?`0${it}`:it,ae=ae<10?`0${ae}`:ae,`${it}:${ae}`}clearTimer(){this.isResendSmsCodeButtonDisabled=!1,this.countdownTimeFormatted=null,clearInterval(this.countdownSetIntervalTimer),this.cdr.detectChanges()}navigateToRequests(){this.router.navigate(["settings"],{queryParams:{tab:"requests"}})}navigateToUsers(){this.router.navigate(["settings"],{queryParams:{tab:"skb-users"}})}openRbsBlockedModal(it){this.modalService.open(Ht,{inputs:{errorMessage:it},header:"RBS blocked",styleMode:"forSign",overflow:"initial",size:"auto-width",withCloseButton:!1})}openBpChangePhoneAgreeModal(it){this.modalService.open(Oe,{inputs:{contentText:it},header:"Changing the phone number for signature",styleMode:"forSign",overflow:"initial",size:"auto-width",withCloseButton:!0})}static#e=this.\u0275fac=function(ae){return new(ae||po)(p.\u0275\u0275directiveInject(C.D7),p.\u0275\u0275directiveInject(P.j),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(sn),p.\u0275\u0275directiveInject(e.FormBuilder),p.\u0275\u0275directiveInject(p.ChangeDetectorRef),p.\u0275\u0275directiveInject(a.gz),p.\u0275\u0275directiveInject(Pe.Z),p.\u0275\u0275directiveInject(wn.Z),p.\u0275\u0275directiveInject(E.i),p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(vt.Pj))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:po,selectors:[["app-settings-change-phone-number"]],decls:25,vars:29,consts:[["data-qa","1657868134992",3,"pathData"],["data-qa","1657968399965",3,"title","withCloseButton","fullTitleInMobileView","loading","close"],[1,"change-phone-number"],[1,"change-phone-number__left"],[1,"change-phone-number-info"],[3,"text"],[1,"change-phone-number-form",3,"formGroup"],[1,"change-phone-number-form-block"],[1,"change-phone-number-form-block__header"],["appearance","dcb","formControlName","userFullName","data-qa","1657868190552",1,"form-field",3,"field","title"],[1,"change-phone-number-form-block--mr40"],[1,"change-phone-number-form-block__column"],["appearance","dcb","formControlName","userCurrentPhone","data-qa","1700470379",1,"form-field",3,"title","mask","showConfirmedIcon","hint"],["appearance","dcb","formControlName","currentPhoneVerifyCode","data-qa","1700470388","class","form-field",3,"title","maxLength","mask","hint",4,"ngIf"],["appearance","dcb","formControlName","userNewPhone","data-qa","1700470394","class","form-field",3,"title","mask","hint","showConfirmedIcon",4,"ngIf"],["appearance","dcb","formControlName","newPhoneVerifyCode","data-qa","1700470399","class","form-field",3,"title","maxLength","mask","hint",4,"ngIf"],["class","change-phone-number-form-block__sms-code-controls",4,"ngIf"],["class","change-phone-number-form-block__submit-button",4,"ngIf"],[1,"change-phone-number__right"],[3,"stepNumber","stepsConfig"],["appearance","dcb","formControlName","currentPhoneVerifyCode","data-qa","1700470388",1,"form-field",3,"title","maxLength","mask","hint"],["appearance","dcb","formControlName","userNewPhone","data-qa","1700470394",1,"form-field",3,"title","mask","hint","showConfirmedIcon"],["appearance","dcb","formControlName","newPhoneVerifyCode","data-qa","1700470399",1,"form-field",3,"title","maxLength","mask","hint"],[1,"change-phone-number-form-block__sms-code-controls"],["class","sms-code__timer","data-qa","1681285647",4,"ngIf"],[1,"sms-code__buttons"],[4,"ngIf","ngIfElse"],["getCodeTpl",""],["data-qa","1681285647",1,"sms-code__timer"],["type","empty-bordered","text","Confirm",3,"disabled","clicked"],["type","empty-bordered","text","Request code",3,"disabled","clicked"],["type","empty-bordered","text","Get code",3,"clicked"],[1,"change-phone-number-form-block__submit-button"],["type","small header","text","Send for signature",3,"clicked"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275element(0,"app-path",0),p.\u0275\u0275elementStart(1,"app-page",1),p.\u0275\u0275listener("close",function(){return _e.onClosePage()}),p.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"div",4),p.\u0275\u0275element(5,"app-collapse-text-block",5),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"div",6)(7,"div",7)(8,"div",8),p.\u0275\u0275text(9),p.\u0275\u0275pipe(10,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275element(11,"app-metib-input",9),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"div",10)(13,"div",8),p.\u0275\u0275text(14),p.\u0275\u0275pipe(15,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(16,"div",11),p.\u0275\u0275element(17,"app-metib-input",12),p.\u0275\u0275template(18,Qn,1,4,"app-metib-input",13),p.\u0275\u0275template(19,pi,1,4,"app-metib-input",14),p.\u0275\u0275template(20,Ei,1,4,"app-metib-input",15),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(21,no,6,3,"div",16),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(22,Qo,2,0,"div",17),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(23,"div",18),p.\u0275\u0275element(24,"app-steps-track",19),p.\u0275\u0275elementEnd()()()),2&ae&&(p.\u0275\u0275property("pathData",_e.pathData),p.\u0275\u0275advance(1),p.\u0275\u0275property("title","Changing the phone number for signature")("withCloseButton",!0)("fullTitleInMobileView",!0)("loading",_e.isLoading),p.\u0275\u0275advance(4),p.\u0275\u0275property("text",_e.CHANGE_PHONE_NUMBER_INFO_TEXT),p.\u0275\u0275advance(1),p.\u0275\u0275property("formGroup",_e.changePhoneNumberForm),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(10,22,"User",_e.lang)),p.\u0275\u0275advance(2),p.\u0275\u0275property("field",p.\u0275\u0275pureFunction0(28,Mo))("title","FIO"),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(15,25,"Phone number confirmation",_e.lang)),p.\u0275\u0275advance(3),p.\u0275\u0275property("title","Current phone number")("mask",_e.phoneMask)("showConfirmedIcon",_e.isCurrentPhoneVerified)("hint",_e.getPhoneHint("userCurrentPhone")),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!_e.isCurrentPhoneVerified&&_e.smsCodeSent),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.isCurrentPhoneVerified),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.isCurrentPhoneVerified&&_e.currentStepNumber===_e.CHANGE_PHONE_NUMBER_STEPS.SECOND&&_e.smsCodeSent),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.currentStepNumber!==_e.CHANGE_PHONE_NUMBER_STEPS.THIRD),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.isCurrentPhoneVerified&&_e.isNewPhoneVerified&&_e.currentStepNumber===_e.CHANGE_PHONE_NUMBER_STEPS.THIRD),p.\u0275\u0275advance(2),p.\u0275\u0275property("stepNumber",_e.currentStepNumber===_e.CHANGE_PHONE_NUMBER_STEPS.THIRD?_e.CHANGE_PHONE_NUMBER_STEPS.SECOND:_e.CHANGE_PHONE_NUMBER_STEPS.FIRST)("stepsConfig",_e.CHANGE_PHONE_NUMBER_FORM_STEPS))},dependencies:[n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,Ut.w,ce.r,xe.I,we.l,Ge.R,ct.C,C.X$],styles:['@charset "UTF-8";.change-phone-number[_ngcontent-%COMP%]{display:flex;margin-top:32px;column-gap:104px;font-size:16px;font-family:Open Sans,Source Sans Pro,sans-serif;flex-wrap:wrap-reverse;row-gap:24px}.change-phone-number__left[_ngcontent-%COMP%]{max-width:660px}.change-phone-number-form-block[_ngcontent-%COMP%]{margin-top:24px}.change-phone-number-form-block--mr40[_ngcontent-%COMP%]{margin-top:40px}.change-phone-number-form-block__header[_ngcontent-%COMP%]{color:#080708;font-size:18px;font-style:normal;font-weight:700;margin-bottom:12px}.change-phone-number-form-block__column[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px}.change-phone-number-form-block__submit-button[_ngcontent-%COMP%]{margin-top:48px;display:flex}.change-phone-number-form-block__sms-code-controls[_ngcontent-%COMP%]{margin-top:32px;display:flex;flex-direction:column;row-gap:32px}.change-phone-number-form-block__sms-code-controls[_ngcontent-%COMP%]   .sms-code__timer[_ngcontent-%COMP%]{color:#444;font-size:14px;font-style:normal;font-weight:600}.change-phone-number-form-block__sms-code-controls[_ngcontent-%COMP%]   .sms-code__buttons[_ngcontent-%COMP%]{display:flex;column-gap:16px;width:-moz-fit-content;width:fit-content}.change-phone-number[_ngcontent-%COMP%]   app-metib-input[_ngcontent-%COMP%], .change-phone-number[_ngcontent-%COMP%]   app-metib-select[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%]     .change-phone-number app-metib-input, [_nghost-%COMP%]     .change-phone-number app-metib-select{margin:0}'],changeDetection:0})}(0,$.gn)([(0,C.SQ)()],po.prototype,"lang",void 0);var Io=t(62557),en=t(39300),Hn=t(54244),tt=t(30723),nt=t(82007),De=t(75568),ve=t(65218),Se=t(15557),Me=t(5248),We=t(30578),ut=t(73040);function ue(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",9),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.errorText)}}function et(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",10),p.\u0275\u0275text(1),p.\u0275\u0275pipe(2,"translate"),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate3(" ",p.\u0275\u0275pipeBind2(2,3,"Request code again before",ae.lang)," 00:",ae.secondsToRepeat<10?"0":"","",ae.secondsToRepeat," ")}}class At{constructor(it){this.translation=it,this.signFormTitle="",this.signFormErrorMessages=[],this.action=new p.EventEmitter,this.disabledRepeatSms=!0,this.secondsToRepeat=59}ngOnInit(){this.timerRepeat()}timerRepeat(){this.disabledRepeatSms=!0,this.secondsToRepeat=59,this.timer=setInterval(()=>{this.secondsToRepeat<1&&(this.disabledRepeatSms=!1,clearTimeout(this.timer)),this.secondsToRepeat=this.secondsToRepeat-1},1e3)}valueChanged(it){this.confirmationCode=it}onSpecKey(it){"enter"===it.value&&this.action.emit({type:"confirm",value:this.confirmationCode}),"esc"===it.value&&this.action.emit({type:"cancel"})}repeatSms(){this.timerRepeat(),this.action.emit({type:"resend"})}ngOnDestroy(){clearTimeout(this.timer)}static#e=this.\u0275fac=function(ae){return new(ae||At)(p.\u0275\u0275directiveInject(C.D7))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:At,selectors:[["app-settings-confirmation"]],inputs:{signFormTitle:"signFormTitle",signFormErrorMessages:"signFormErrorMessages",errorText:"errorText"},outputs:{action:"action"},decls:14,vars:25,consts:[["data-qa","1657970737855",1,"settings__form"],[1,"settings__form-content"],[1,"settings__notification-title"],["data-qa","1657970745614","inputClass","settings__input","placeholderClass","settings__placeholder",3,"error","typeClass","title","type","speckeyPress","valueChange"],["class","settings__error",4,"ngIf"],["class","settings__timer",4,"ngIf"],[1,"settings__form-buttons"],["data-qa","1657970749376","type","large",3,"type","text","click"],["type","medium-for-sign-mail","data-qa","1657970755146",3,"disabled","text","click"],[1,"settings__error"],[1,"settings__timer"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"form",0)(1,"div",1)(2,"div",2),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(5,"app-input",3),p.\u0275\u0275listener("speckeyPress",function(Vt){return _e.onSpecKey(Vt)})("valueChange",function(Vt){return _e.valueChanged(Vt)}),p.\u0275\u0275pipe(6,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(7,ue,2,1,"div",4),p.\u0275\u0275template(8,et,3,6,"div",5),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(9,"div",6)(10,"app-button",7),p.\u0275\u0275listener("click",function(){return _e.action.emit({type:"confirm",value:_e.confirmationCode})}),p.\u0275\u0275pipe(11,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"app-button",8),p.\u0275\u0275listener("click",function(){return _e.repeatSms()}),p.\u0275\u0275pipe(13,"translate"),p.\u0275\u0275elementEnd()()()),2&ae&&(p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(4,13,_e.signFormTitle,_e.lang)),p.\u0275\u0275advance(2),p.\u0275\u0275property("error",!!_e.errorText)("typeClass","login")("title",p.\u0275\u0275pipeBind2(6,16,"Enter SMS",_e.lang))("type","text"),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",_e.errorText),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.disabledRepeatSms),p.\u0275\u0275advance(2),p.\u0275\u0275classProp("disabled",!_e.confirmationCode),p.\u0275\u0275propertyInterpolate("text",p.\u0275\u0275pipeBind2(11,19,"Sign",_e.lang)),p.\u0275\u0275property("type","small header"),p.\u0275\u0275advance(2),p.\u0275\u0275propertyInterpolate("text",p.\u0275\u0275pipeBind2(13,22,"Request code",_e.lang)),p.\u0275\u0275property("disabled",_e.disabledRepeatSms))},dependencies:[e.\u0275NgNoValidate,e.NgControlStatusGroup,e.NgForm,ut.a,n.O5,ce.r,C.X$],styles:['@charset "UTF-8";.settings[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings__timer[_ngcontent-%COMP%]{margin-top:32px;font-size:14px;font-weight:600;color:#444}.settings__content[_ngcontent-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__content[_ngcontent-%COMP%]{padding:0 16px 20px}}.settings__tabs[_ngcontent-%COMP%]{margin-bottom:5px;border-bottom:1px solid #dedede}@media screen and (max-width: 768px){.settings__tabs[_ngcontent-%COMP%]   app-tabs[_ngcontent-%COMP%]{display:block;overflow:scroll hidden}.settings__tabs[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}}.settings__user[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:32px 0}.settings[_ngcontent-%COMP%]     .page-title{border:none;height:auto;padding:32px 0;border-bottom:1px solid #dedede}.settings[_ngcontent-%COMP%]     .panel-form__button{display:inline-block;vertical-align:top;line-height:22px}.settings[_ngcontent-%COMP%]     .panel-form__button.bordered{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.settings__action-container[_ngcontent-%COMP%]{padding:16px 20px;margin-bottom:20px;background-color:#f1f2f2;border-radius:4px;display:flex;justify-content:space-between}@media screen and (min-width: 375px) and (max-width: 768px){.settings__action-container[_ngcontent-%COMP%]{padding:16px}}.settings__action-container[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin:auto 0;flex:0 1}.settings__action-container-title[_ngcontent-%COMP%]{font-size:18px;color:#444;font-weight:700;margin-right:32px;flex:0 1}.settings__action-container-title_new[_ngcontent-%COMP%]{padding:4px 8px;color:#00a843;border-radius:4px;font-size:10px;text-transform:uppercase;background-color:#00a84326;margin-left:12px}.settings__action-container-title_info[_ngcontent-%COMP%]{margin-bottom:16px}.settings__action-container-pass[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:4px}.settings__action-container-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:4px}.settings__requierments[_ngcontent-%COMP%]{font-size:16px;color:#88909b;line-height:20px;margin-bottom:40px}.settings__requierments-title[_ngcontent-%COMP%]{margin:0;padding:0}.settings__table-container[_ngcontent-%COMP%]{padding:35px 0 40px}.settings__title-table[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:25px;margin-bottom:24px;color:#080708}.settings__title-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__description-table[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;font-size:16px;line-height:22px;color:#444}.settings__description-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__requierments-list[_ngcontent-%COMP%]{padding-left:20px}.settings__requierments-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:list-item;list-style-type:disc}.settings__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.settings__form_length[_ngcontent-%COMP%]{font-size:16px}.settings__form-buttons[_ngcontent-%COMP%]{display:flex;margin-top:36px}.settings__form-buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}.settings__alert-block[_ngcontent-%COMP%]{padding-top:30px;max-width:64%;margin-bottom:30px}.settings__notification-title[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21px;color:#444;margin-bottom:20px}.settings__form-input-wrapper[_ngcontent-%COMP%]{position:relative}.settings__input-error-message[_ngcontent-%COMP%]{position:absolute;font-size:12px;line-height:15px;color:#d9291e;left:12px;top:calc(100% + 5px)}[_nghost-%COMP%]     .settings__input--error input.ng-dirty{border-color:#d9291e}[_nghost-%COMP%]     .settings__placeholder{font-size:16px}[_nghost-%COMP%]     .settings__input{width:100%;border-radius:0;border-left:none;border-right:none;border-top:none}[_nghost-%COMP%]     .settings__input-error{border-bottom:1px solid #e23428}.settings   [_nghost-%COMP%]     .disabled .panel-form__input{background:#f1f2f2}.settings   [_nghost-%COMP%]     .panel-form__input-svg-hamburger{cursor:pointer;top:calc(50% - 11px);width:24px;height:24px;right:18px}.settings__error[_ngcontent-%COMP%]{color:#e23428;font-size:14px;margin-top:4px}.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:624px;border-radius:8px;background:#ffffff}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]{width:auto}}.modal-sign[_ngcontent-%COMP%]   .panel-form__input.login[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0;border-left:none;border-right:none;border-top:none}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__header[_ngcontent-%COMP%]{padding:24px 16px}}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content[_ngcontent-%COMP%]{padding-bottom:87px}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 32px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 16px}}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#88909b;font-size:14px;margin:8px 32px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.modal-sign.modal-design.settings[_ngcontent-%COMP%]{max-width:624px!important}']})}function Ae(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",11),p.\u0275\u0275text(1),p.\u0275\u0275pipe(2,"translate"),p.\u0275\u0275elementEnd()),2&qt){const ae=it.$implicit,_e=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(2,1,ae.title,_e.lang))}}function bt(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",15),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit,_e=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(" ",_e.passwordErrors[ae.errorType]," ")}}function Le(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",12)(1,"app-input",13),p.\u0275\u0275listener("speckeyPress",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(Vt.onSpecKeyPress(mt))})("valueChange",function(mt){const On=p.\u0275\u0275restoreView(ae).$implicit,Rn=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(Rn.passwordChanged(mt,On.setValueFor))}),p.\u0275\u0275pipe(2,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(3,bt,2,1,"div",14),p.\u0275\u0275elementEnd()}if(2&qt){const ae=it.$implicit,_e=it.index,mt=p.\u0275\u0275nextContext(2);p.\u0275\u0275attribute("data-qa","1657970838775"+_e),p.\u0275\u0275advance(1),p.\u0275\u0275propertyInterpolate("typeClass",mt.passwordErrors[ae.errorType]?"settings__input--error":""),p.\u0275\u0275property("tabIndex","password2"===ae.setValueFor&&mt.repeatPasswordDisabled?"-1":"0")("title",p.\u0275\u0275pipeBind2(2,8,ae.title,mt.lang))("type",ae.type)("typeClass","login"),p.\u0275\u0275attribute("data-qa","1657970853719"+_e),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",mt.passwordErrors[ae.errorType])}}function Pt(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"form",6),p.\u0275\u0275template(1,Ae,3,4,"div",7),p.\u0275\u0275template(2,Le,4,11,"div",8),p.\u0275\u0275elementStart(3,"div",9)(4,"app-button",10),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(mt.changePassword())}),p.\u0275\u0275pipe(5,"translate"),p.\u0275\u0275elementEnd()()()}if(2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275property("ngForOf",ae.requierments),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngForOf",ae.settingsService.changePasswordInputs),p.\u0275\u0275advance(2),p.\u0275\u0275propertyInterpolate("text",p.\u0275\u0275pipeBind2(5,5,"Then",ae.lang)),p.\u0275\u0275property("disabled",ae.isDisabled)("type","small header")}}function dn(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div")(1,"app-settings-confirmation",16),p.\u0275\u0275listener("action",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(Vt.signFormAction(mt))}),p.\u0275\u0275elementEnd()()}if(2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275property("errorText",ae.passwordChangeError)("signFormTitle",ae.signFormTitle)}}(0,$.gn)([(0,C.SQ)()],At.prototype,"lang",void 0);class St{constructor(it,ae,_e,mt,Vt,On,Rn,ni){this.userDataService=it,this.translation=ae,this.modalService=_e,this.configUtilService=mt,this.settingsService=Vt,this.authService=On,this.router=Rn,this.toast=ni,this.pass="",this.confirmAction=()=>{},this.cancelAction=()=>{},this.showChangeableForm=!0,this.showConfirmation=!1,this.passwordErrors={new:void 0,old:null,confirmation:null},this.oldPassword="",this.password="",this.password2="",this.confirm={},this.isDisabled=!0,this.repeatPasswordDisabled=!0,this.signFormTitle="SMS Was Sent",this.requierments=[],this.regExps={lower:new RegExp("s*[a-z\u0430-\u044f\u0451]+s*"),upper:new RegExp("s*[A-Z\u0410-\u042f\u0401]+s*"),rus:new RegExp("s*[\u0410-\u042f\u0430-\u044f\u0401\u0451]+s*"),lat:new RegExp("s*[a-zA-Z]+s*"),digits:new RegExp("s*[0-9]+s*"),chars:new RegExp("s*[a-zA-Z\u0410-\u042f\u0430-\u044f\u0401\u0451]+s*"),specs:new RegExp("s*(?![\u0430-\u044f\u0410-\u042f\u0451\u0401a-zA-Z0-9]+).s*")}}get isSubmitButtonDisabled(){return!(!this.passwordErrors.new&&!this.passwordErrors.old&&!this.passwordErrors.confirmation&&Object.keys(this.passwordErrors).length)}ngOnInit(){this.showChangePasswordForm()}cancelChangePassword(){this.showChangeableForm=!1,this.passwordRules={},this.requierments=[]}showChangePasswordForm(){this.settingsService.isLoading$.next(!0),this.passwordErrors={},this.passwordRules={},this.userDataService.changePasswordV2({}).subscribe(it=>{this.signFormTitle="SMS Was Sent",it.passwdHistoryData&&(it.passwdHistoryData=this.configUtilService.getArray(it.passwdHistoryData)),it.passwordAllowedSymbols&&it.passwordAllowedSymbols.length>0&&(this.regExps.notAllowed=new RegExp(`[^${it.passwordAllowedSymbols.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}]`)),this.passwordRules=it,this.showChangeableForm=!0,this.setPasswordRequirements(),this.settingsService.isLoading$.next(!1)},it=>{it.error&&(this.passwordChangeError=it.error.errorText?it.error.errorText:"Server error"),this.settingsService.isLoading$.next(!1)})}close(){this.modalService.close(),this.cancelAction()}setPasswordRequirements(){this.requierments=[],+this.passwordRules.passwordMinLength&&this.requierments.push({title:this.translation.translate("Requierments Password Min Length")+this.passwordRules.passwordMinLength}),"true"===this.passwordRules.usePasswordDigits&&this.requierments.push({title:"Requierments Password Has Numbers"}),"true"===this.passwordRules.usePasswordSpecChar&&this.requierments.push({title:"Requierments Password Special Chars"}),"true"===this.passwordRules.usePasswordDifferentRegister&&this.requierments.push({title:"Requierments Password Has Lower And Upper case"})}onSpecKeyPress(it){"esc"===it.value&&this.cancelChangePassword(),"enter"===it.value&&(this.isSomePasswordIsEmpty(),this.isSubmitButtonDisabled||this.changePassword())}passwordChanged(it,ae){switch(this[ae]=it&&it.target&&it.target.value?it.target.value:it,ae){case"password":this.password&&this.password.length?(this.passwordErrors.new=null,this.passwordCheck(),this.compareNewAndRepeatPass()):this.passwordErrors.new=this.translation.translate("No new password"),this.repeatPasswordDisabled=!!this.passwordErrors.new;break;case"oldPassword":this.passwordErrors.old=this.oldPassword&&this.oldPassword.length?null:this.translation.translate("No old password");break;case"password2":this.settingsService.changePasswordInputs.find(mt=>"password2"===mt.setValueFor).touched=!0,this.compareNewAndRepeatPass()}}passwordCheck(){this.passwordErrors={};const it=this.password.trim();this.isDisabled=!0,+this.passwordRules.passwordMinLength&&it.length>0&&it.length<+this.passwordRules.passwordMinLength?this.passwordErrors.new=this.translation.translate("New Password Min Length")+this.passwordRules.passwordMinLength:"true"!==this.passwordRules.usePasswordDifferentRegister||this.regExps.lower.test(it)&&this.regExps.upper.test(it)?"true"!==this.passwordRules.usePasswordDigits||this.regExps.digits.test(it)&&this.regExps.chars.test(it)?"true"!==this.passwordRules.usePasswordSpecChar||this.regExps.specs.test(it)?"true"!==this.passwordRules.usePasswordDifferentLanguage||this.regExps.rus.test(it)&&this.regExps.lat.test(it)?this.passwordRules.passwdHistoryData&&this.settingsService.isOldPassword(it,this.passwordRules)?this.passwordErrors.new=this.translation.translate("Password already used"):this.passwordRules.passwordAllowedSymbols&&this.regExps.notAllowed&&this.regExps.notAllowed.test(it)&&(this.passwordErrors.new=`${this.translation.translate("Password must contain characters")} "${this.passwordRules.passwordAllowedSymbols}"`):this.passwordErrors.new=this.translation.translate("Password to simple"):this.passwordErrors.new=this.translation.translate("New Password Must Have Spec Chars"):this.passwordErrors.new=this.translation.translate("New Password Must Have Numbers"):this.passwordErrors.new=this.translation.translate("New Password Must Have Different Register"),this.isDisabled=!!this.passwordErrors.new}changePassword(){if(!this.isSomePasswordIsEmpty()&&!this.passwordErrors.new&&this.oldPassword.trim().length>0&&this.password&&this.password.trim()===this.password2.trim()){const it=this.createRequestPasswordBody();this.settingsService.isLoading$.next(!0),this.userDataService.changePasswordV2(it).subscribe(ae=>{if(this.passwordErrors={},ae&&ae.confirmData)switch(ae.confirmData.type){case"NONE":this.toast.show("Password changed","success"),this.modalService.close();break;case"NOTIFY":this.showChangeableForm=!1,this.showConfirmation=!0,this.confirm.Password={...ae},this.notificationType=ae.confirmData.type}ae&&ae.errorCode&&("1018"===ae.errorCode||1018===ae.errorCode?this.passwordErrors.old=this.translation.translate("Wrong current password"):this.toast.show(ae.errorText?ae.errorText:"Server error","error")),this.settingsService.isLoading$.next(!1)},ae=>{this.settingsService.isLoading$.next(!1),ae.error&&this.toast.show(ae.error.errorText?ae.error.errorText:"Server error","error")})}}signFormAction(it){switch(this.signFormTitle="SMS Was Sent",this.settingsService.isLoading$.next(!0),it.type){case"confirm":this.userDataService.changePasswordConfirm({type:this.notificationType,docId:this.confirm.Password.docId,result:it.value}).subscribe(mt=>{mt&&"true"===mt.changeResult&&(this.showConfirmation=!1,this.showChangeableForm=!1,this.toast.show("Password changed","success"),this.modalService.close()),mt&&"false"===mt.changeResult&&(this.passwordChangeError=mt.confirmResult.message),this.settingsService.isLoading$.next(!1)},mt=>{401===mt.status?this.authService.sessionEnd().subscribe(Vt=>{this.router.navigate(["/auth"]),this.settingsService.isLoading$.next(!1)}):(this.settingsService.isLoading$.next(!1),this.toast.show("Server error","error"))});break;case"resend":this.signFormTitle="SMS was resend";const _e=Object.assign(this.createRequestPasswordBody(),{docId:this.confirm.Password.docId,restart:"true"});this.userDataService.changePasswordV2(_e).subscribe(mt=>{this.confirm.Password={...mt},this.notificationType=mt.confirmData.type,this.settingsService.isLoading$.next(!1)},()=>{this.settingsService.isLoading$.next(!1),this.toast.show("Server error","error")});break;case"cancel":this.showChangeableForm=!0,this.showConfirmation=!1,this.settingsService.isLoading$.next(!1);break;default:alert("\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f")}}compareNewAndRepeatPass(){this.isDisabled=this.password!==this.password2||!!this.passwordErrors.new,this.passwordErrors.confirmation=this.password===this.password2?null:this.translation.translate("Password mismatch")}isSomePasswordIsEmpty(){return(!this.oldPassword||0===this.oldPassword.length)&&(this.passwordErrors.old=this.translation.translate("Print current password")),this.password||(this.passwordErrors.new=this.translation.translate("No new password")),this.password2||(this.passwordErrors.confirmation=this.translation.translate("Print repeat password")),this.passwordErrors.old||this.passwordErrors.new||this.passwordErrors.confirmation}createRequestPasswordBody(){const it=this.settingsService.hashPassword(this.oldPassword,this.passwordRules.hashPasswordAlg,this.passwordRules.saltPassword),ae=this.settingsService.hashPassword(this.password,this.passwordRules.hashPasswordAlg);return{oldHashAlg:this.passwordRules.hashPasswordAlg,oldHashedPassword:it.hash,oldSalt:it.salt,newHashAlg:this.passwordRules.hashPasswordAlg,newHashedPassword:ae.hash,newSalt:ae.salt}}static#e=this.\u0275fac=function(ae){return new(ae||St)(p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(C.D7),p.\u0275\u0275directiveInject(Pe.Z),p.\u0275\u0275directiveInject(vt.Pj),p.\u0275\u0275directiveInject(We.g),p.\u0275\u0275directiveInject(Ie.e),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(P.j))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:St,selectors:[["app-modal-settings-password"]],inputs:{pass:"pass",confirmAction:"confirmAction",cancelAction:"cancelAction"},decls:9,vars:6,consts:[[1,"modal-sign","modal-design","settings"],[1,"modal-sign__header"],[1,"modal-sign__header_close",3,"click"],[1,"modal-sign__content_sign"],["class","settings__form","data-qa","1657970821571",4,"ngIf"],[4,"ngIf"],["data-qa","1657970821571",1,"settings__form"],["class","settings__form_length",4,"ngFor","ngForOf"],["class","settings__form-input-wrapper",4,"ngFor","ngForOf"],[1,"settings__form-buttons"],["data-qa","1657970888780",3,"disabled","type","text","click"],[1,"settings__form_length"],[1,"settings__form-input-wrapper"],["inputClass","settings__input","placeholderClass","settings__placeholder","rightIcon","eyeoff",3,"tabIndex","title","type","typeClass","speckeyPress","valueChange"],["class","settings__input-error-message",4,"ngIf"],[1,"settings__input-error-message"],["data-qa","1657970895940",3,"errorText","signFormTitle","action"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div"),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(5,"div",2),p.\u0275\u0275listener("click",function(){return _e.close()}),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(6,"div",3),p.\u0275\u0275template(7,Pt,6,8,"form",4),p.\u0275\u0275template(8,dn,2,2,"div",5),p.\u0275\u0275elementEnd()()),2&ae&&(p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(4,3,_e.showChangeableForm?"Changing password":"Confirm change password",_e.lang)),p.\u0275\u0275advance(4),p.\u0275\u0275property("ngIf",_e.showChangeableForm&&!_e.showConfirmation),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!_e.showChangeableForm&&_e.showConfirmation))},dependencies:[e.\u0275NgNoValidate,e.NgControlStatusGroup,e.NgForm,ut.a,n.sg,n.O5,ce.r,At,C.X$],styles:['@charset "UTF-8";.settings[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings__timer[_ngcontent-%COMP%]{margin-top:32px;font-size:14px;font-weight:600;color:#444}.settings__content[_ngcontent-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__content[_ngcontent-%COMP%]{padding:0 16px 20px}}.settings__tabs[_ngcontent-%COMP%]{margin-bottom:5px;border-bottom:1px solid #dedede}@media screen and (max-width: 768px){.settings__tabs[_ngcontent-%COMP%]   app-tabs[_ngcontent-%COMP%]{display:block;overflow:scroll hidden}.settings__tabs[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}}.settings__user[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:32px 0}.settings[_ngcontent-%COMP%]     .page-title{border:none;height:auto;padding:32px 0;border-bottom:1px solid #dedede}.settings[_ngcontent-%COMP%]     .panel-form__button{display:inline-block;vertical-align:top;line-height:22px}.settings[_ngcontent-%COMP%]     .panel-form__button.bordered{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.settings__action-container[_ngcontent-%COMP%]{padding:16px 20px;margin-bottom:20px;background-color:#f1f2f2;border-radius:4px;display:flex;justify-content:space-between}@media screen and (min-width: 375px) and (max-width: 768px){.settings__action-container[_ngcontent-%COMP%]{padding:16px}}.settings__action-container[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin:auto 0;flex:0 1}.settings__action-container-title[_ngcontent-%COMP%]{font-size:18px;color:#444;font-weight:700;margin-right:32px;flex:0 1}.settings__action-container-title_new[_ngcontent-%COMP%]{padding:4px 8px;color:#00a843;border-radius:4px;font-size:10px;text-transform:uppercase;background-color:#00a84326;margin-left:12px}.settings__action-container-title_info[_ngcontent-%COMP%]{margin-bottom:16px}.settings__action-container-pass[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:4px}.settings__action-container-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:4px}.settings__requierments[_ngcontent-%COMP%]{font-size:16px;color:#88909b;line-height:20px;margin-bottom:40px}.settings__requierments-title[_ngcontent-%COMP%]{margin:0;padding:0}.settings__table-container[_ngcontent-%COMP%]{padding:35px 0 40px}.settings__title-table[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:25px;margin-bottom:24px;color:#080708}.settings__title-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__description-table[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;font-size:16px;line-height:22px;color:#444}.settings__description-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__requierments-list[_ngcontent-%COMP%]{padding-left:20px}.settings__requierments-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:list-item;list-style-type:disc}.settings__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.settings__form_length[_ngcontent-%COMP%]{font-size:16px}.settings__form-buttons[_ngcontent-%COMP%]{display:flex;margin-top:36px}.settings__form-buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}.settings__alert-block[_ngcontent-%COMP%]{padding-top:30px;max-width:64%;margin-bottom:30px}.settings__notification-title[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21px;color:#444;margin-bottom:20px}.settings__form-input-wrapper[_ngcontent-%COMP%]{position:relative}.settings__input-error-message[_ngcontent-%COMP%]{position:absolute;font-size:12px;line-height:15px;color:#d9291e;left:12px;top:calc(100% + 5px)}[_nghost-%COMP%]     .settings__input--error input.ng-dirty{border-color:#d9291e}[_nghost-%COMP%]     .settings__placeholder{font-size:16px}[_nghost-%COMP%]     .settings__input{width:100%;border-radius:0;border-left:none;border-right:none;border-top:none}[_nghost-%COMP%]     .settings__input-error{border-bottom:1px solid #e23428}.settings   [_nghost-%COMP%]     .disabled .panel-form__input{background:#f1f2f2}.settings   [_nghost-%COMP%]     .panel-form__input-svg-hamburger{cursor:pointer;top:calc(50% - 11px);width:24px;height:24px;right:18px}.settings__error[_ngcontent-%COMP%]{color:#e23428;font-size:14px;margin-top:4px}.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:624px;border-radius:8px;background:#ffffff}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]{width:auto}}.modal-sign[_ngcontent-%COMP%]   .panel-form__input.login[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0;border-left:none;border-right:none;border-top:none}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__header[_ngcontent-%COMP%]{padding:24px 16px}}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content[_ngcontent-%COMP%]{padding-bottom:87px}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 32px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 16px}}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#88909b;font-size:14px;margin:8px 32px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.modal-sign.modal-design.settings[_ngcontent-%COMP%]{max-width:624px!important}']})}(0,$.gn)([(0,C.SQ)()],St.prototype,"lang",void 0);class jt{constructor(it,ae,_e,mt,Vt,On,Rn){this.userDataService=it,this.translation=ae,this.configUtilService=_e,this.modalService=mt,this.settingsService=Vt,this.authService=On,this.router=Rn,this.pass="",this.signFormTitle="SMS Was Sent"}ngOnInit(){}openSettings(){this.modalService.open(St,{inputs:{confirmAction:()=>{this.router.navigate(["mail"])},cancelAction:()=>{},document:{docIds:[],docType:Me.CI.SenderClient,docModule:Me.nW},isMail:!0},isSign:!0,isMail:!0,isSignDesign:!0})}static#e=this.\u0275fac=function(ae){return new(ae||jt)(p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(C.D7),p.\u0275\u0275directiveInject(vt.Pj),p.\u0275\u0275directiveInject(Pe.Z),p.\u0275\u0275directiveInject(We.g),p.\u0275\u0275directiveInject(Ie.e),p.\u0275\u0275directiveInject(a.F0))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:jt,selectors:[["app-settings-password"]],inputs:{pass:"pass"},decls:9,vars:10,consts:[["data-qa","1657970815095",1,"settings__action-container"],[1,"settings__action-container-title"],[1,"settings__action-container-pass"],["type","medium-for-sign-gray","data-qa","1657970899999",1,"create-buttons__item",3,"disabled","text","click"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div"),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(5,"div",2),p.\u0275\u0275text(6),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(7,"app-button",3),p.\u0275\u0275listener("click",function(){return _e.openSettings()}),p.\u0275\u0275pipe(8,"translate"),p.\u0275\u0275elementEnd()()),2&ae&&(p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(4,4,"Password",_e.lang)),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(_e.pass),p.\u0275\u0275advance(1),p.\u0275\u0275propertyInterpolate("text",p.\u0275\u0275pipeBind2(8,7,"Change",_e.lang)),p.\u0275\u0275property("disabled",!1))},dependencies:[ce.r,C.X$],styles:['@charset "UTF-8";.settings[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings__timer[_ngcontent-%COMP%]{margin-top:32px;font-size:14px;font-weight:600;color:#444}.settings__content[_ngcontent-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__content[_ngcontent-%COMP%]{padding:0 16px 20px}}.settings__tabs[_ngcontent-%COMP%]{margin-bottom:5px;border-bottom:1px solid #dedede}@media screen and (max-width: 768px){.settings__tabs[_ngcontent-%COMP%]   app-tabs[_ngcontent-%COMP%]{display:block;overflow:scroll hidden}.settings__tabs[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}}.settings__user[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:32px 0}.settings[_ngcontent-%COMP%]     .page-title{border:none;height:auto;padding:32px 0;border-bottom:1px solid #dedede}.settings[_ngcontent-%COMP%]     .panel-form__button{display:inline-block;vertical-align:top;line-height:22px}.settings[_ngcontent-%COMP%]     .panel-form__button.bordered{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.settings__action-container[_ngcontent-%COMP%]{padding:16px 20px;margin-bottom:20px;background-color:#f1f2f2;border-radius:4px;display:flex;justify-content:space-between}@media screen and (min-width: 375px) and (max-width: 768px){.settings__action-container[_ngcontent-%COMP%]{padding:16px}}.settings__action-container[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin:auto 0;flex:0 1}.settings__action-container-title[_ngcontent-%COMP%]{font-size:18px;color:#444;font-weight:700;margin-right:32px;flex:0 1}.settings__action-container-title_new[_ngcontent-%COMP%]{padding:4px 8px;color:#00a843;border-radius:4px;font-size:10px;text-transform:uppercase;background-color:#00a84326;margin-left:12px}.settings__action-container-title_info[_ngcontent-%COMP%]{margin-bottom:16px}.settings__action-container-pass[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:4px}.settings__action-container-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:4px}.settings__requierments[_ngcontent-%COMP%]{font-size:16px;color:#88909b;line-height:20px;margin-bottom:40px}.settings__requierments-title[_ngcontent-%COMP%]{margin:0;padding:0}.settings__table-container[_ngcontent-%COMP%]{padding:35px 0 40px}.settings__title-table[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:25px;margin-bottom:24px;color:#080708}.settings__title-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__description-table[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;font-size:16px;line-height:22px;color:#444}.settings__description-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__requierments-list[_ngcontent-%COMP%]{padding-left:20px}.settings__requierments-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:list-item;list-style-type:disc}.settings__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.settings__form_length[_ngcontent-%COMP%]{font-size:16px}.settings__form-buttons[_ngcontent-%COMP%]{display:flex;margin-top:36px}.settings__form-buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}.settings__alert-block[_ngcontent-%COMP%]{padding-top:30px;max-width:64%;margin-bottom:30px}.settings__notification-title[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21px;color:#444;margin-bottom:20px}.settings__form-input-wrapper[_ngcontent-%COMP%]{position:relative}.settings__input-error-message[_ngcontent-%COMP%]{position:absolute;font-size:12px;line-height:15px;color:#d9291e;left:12px;top:calc(100% + 5px)}[_nghost-%COMP%]     .settings__input--error input.ng-dirty{border-color:#d9291e}[_nghost-%COMP%]     .settings__placeholder{font-size:16px}[_nghost-%COMP%]     .settings__input{width:100%;border-radius:0;border-left:none;border-right:none;border-top:none}[_nghost-%COMP%]     .settings__input-error{border-bottom:1px solid #e23428}.settings   [_nghost-%COMP%]     .disabled .panel-form__input{background:#f1f2f2}.settings   [_nghost-%COMP%]     .panel-form__input-svg-hamburger{cursor:pointer;top:calc(50% - 11px);width:24px;height:24px;right:18px}.settings__error[_ngcontent-%COMP%]{color:#e23428;font-size:14px;margin-top:4px}.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:624px;border-radius:8px;background:#ffffff}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]{width:auto}}.modal-sign[_ngcontent-%COMP%]   .panel-form__input.login[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0;border-left:none;border-right:none;border-top:none}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__header[_ngcontent-%COMP%]{padding:24px 16px}}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content[_ngcontent-%COMP%]{padding-bottom:87px}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 32px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 16px}}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#88909b;font-size:14px;margin:8px 32px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.modal-sign.modal-design.settings[_ngcontent-%COMP%]{max-width:624px!important}']})}function ht(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",12),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.loginErrorMessage)}}function on(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"form",6)(1,"div",7)(2,"app-input",8),p.\u0275\u0275listener("speckeyPress",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(Vt.onSpecKey(mt))})("valueChange",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(Vt.handleChange(mt))}),p.\u0275\u0275pipe(3,"translate"),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(5,ht,2,1,"div",9),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"div",10)(7,"app-button",11),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(mt.saveNewLogin())}),p.\u0275\u0275pipe(8,"translate"),p.\u0275\u0275elementEnd()()()}if(2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(2),p.\u0275\u0275property("placeholder",p.\u0275\u0275pipeBind2(3,7,"Enter login",ae.lang))("title",p.\u0275\u0275pipeBind2(4,10,"Settings New Login",ae.lang))("type","text")("typeClass","login"),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngIf",ae.loginErrorMessage),p.\u0275\u0275advance(2),p.\u0275\u0275propertyInterpolate("text",p.\u0275\u0275pipeBind2(8,13,"Then",ae.lang)),p.\u0275\u0275property("type","small header")}}function Nt(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div")(1,"app-settings-confirmation",13),p.\u0275\u0275listener("action",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(Vt.signFormAction(mt))}),p.\u0275\u0275elementEnd()()}if(2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275property("signFormTitle",ae.signFormTitle)("errorText",ae.loginErrorMessage)}}(0,$.gn)([(0,C.SQ)()],jt.prototype,"lang",void 0);class It{constructor(it,ae,_e,mt,Vt,On,Rn){this.userDataService=it,this.translation=ae,this.settingsService=_e,this.authService=mt,this.router=Vt,this.toast=On,this.modalService=Rn,this.login="",this.confirmAction=()=>{},this.cancelAction=()=>{},this.showChangeableForm=!0,this.showConfirmation=!1,this.confirm={},this.notificationType="",this.loginErrorMessage="",this.signFormTitle="SMS Was Sent"}onSpecKey(it){"enter"!==it.value?"esc"!==it.value||this.cancelChangeLogin():this.saveNewLogin()}handleChange(it){this.loginErrorMessage="",this.newLogin=it||""}cancelChangeLogin(){this.newLogin="",this.loginErrorMessage="",this.showChangeableForm=!1}close(){this.modalService.close(),this.cancelAction()}saveNewLogin(){this.loginErrorMessage="",this.confirm={},this.settingsService.isLoading$.next(!0),this.userDataService.changeLogin({new_username:this.newLogin?this.newLogin:""}).subscribe(it=>{if(it&&it.confirmData)switch(it.confirmData.type){case"NONE":this.toast.show("Login changed","success"),this.newLogin="",this.modalService.close(),this.showChangeableForm=!1;break;case"NOTIFY":this.showChangeableForm=!1,this.showConfirmation=!0,this.confirm.Login={...it},this.notificationType=it.confirmData.type,this.resetNewLoginValue();break;default:this.toast.show(this.translation.translate("Not supported type",{type:it.confirmData.type}),"success")}else it.errorCode&&(this.loginErrorMessage=it.errorText);this.settingsService.isLoading$.next(!1)},it=>{this.resetNewLoginValue(),this.settingsService.isLoading$.next(!1),it&&it.error&&it.error.errorText&&(this.loginErrorMessage=it.error.errorText)})}resetNewLoginValue(){this.newLogin=""}doChange(){this.showChangeableForm=!0}signFormAction(it){switch(this.signFormTitle="SMS Was Sent",this.settingsService.isLoading$.next(!0),it.type){case"confirm":this.userDataService.changeLoginConfirm({type:this.notificationType,docId:this.confirm.Login.docId,result:it.value}).subscribe(mt=>{mt&&"true"===mt.changeResult&&(this.modalService.close(),this.showConfirmation=!1,this.showChangeableForm=!1,this.toast.show("Login changed","success")),mt&&"false"===mt.changeResult&&(this.loginErrorMessage=mt.confirmResult.message),this.settingsService.isLoading$.next(!1),this.resetNewLoginValue()},mt=>{this.resetNewLoginValue(),401===mt.status?this.authService.sessionEnd().subscribe(Vt=>{this.router.navigate(["/auth"]),this.settingsService.isLoading$.next(!1)}):(this.settingsService.isLoading$.next(!1),this.toast.show("Server error","error"))});break;case"resend":this.userDataService.changeLogin({new_username:this.newLogin,restart:!0,docId:this.confirm.Login.docId}).subscribe(mt=>{this.signFormTitle="SMS was resend",this.confirm.Login={...mt},this.notificationType=mt.confirmData.type,this.settingsService.isLoading$.next(!1)},mt=>{this.settingsService.isLoading$.next(!1),this.toast.show("Server error","error")});break;case"cancel":this.signFormTitle="SMS Was Sent",this.showChangeableForm=!0,this.showConfirmation=!1,this.settingsService.isLoading$.next(!1),this.resetNewLoginValue();break;default:alert("\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f")}}static#e=this.\u0275fac=function(ae){return new(ae||It)(p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(C.D7),p.\u0275\u0275directiveInject(We.g),p.\u0275\u0275directiveInject(Ie.e),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(P.j),p.\u0275\u0275directiveInject(Pe.Z))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:It,selectors:[["app-modal-settings-login"]],inputs:{login:"login",confirmAction:"confirmAction",cancelAction:"cancelAction"},decls:9,vars:6,consts:[[1,"modal-sign","modal-design","settings"],[1,"modal-sign__header"],[1,"modal-sign__header_close",3,"click"],[1,"modal-sign__content_sign"],["class","settings__form","data-qa","1657970778847",4,"ngIf"],[4,"ngIf"],["data-qa","1657970778847",1,"settings__form"],[1,"settings__form-input-wrapper"],["data-qa","1657970782161","inputClass","settings__input","placeholderClass","settings__placeholder",3,"placeholder","title","type","typeClass","speckeyPress","valueChange"],["class","settings__input-error-message",4,"ngIf"],[1,"modal-sign__content_button"],["data-qa","1657795266995",1,"modal-sign__content_button-style",3,"type","text","click"],[1,"settings__input-error-message"],["data-qa","1657970793685",3,"signFormTitle","errorText","action"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div"),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(5,"div",2),p.\u0275\u0275listener("click",function(){return _e.close()}),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(6,"div",3),p.\u0275\u0275template(7,on,9,16,"form",4),p.\u0275\u0275template(8,Nt,2,2,"div",5),p.\u0275\u0275elementEnd()()),2&ae&&(p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(4,3,_e.showChangeableForm?"Confirm change login":"Changing login",_e.lang)),p.\u0275\u0275advance(4),p.\u0275\u0275property("ngIf",_e.showChangeableForm&&!_e.showConfirmation),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!_e.showChangeableForm&&_e.showConfirmation))},dependencies:[e.\u0275NgNoValidate,e.NgControlStatusGroup,e.NgForm,ut.a,n.O5,ce.r,At,C.X$],styles:['@charset "UTF-8";.settings[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings__timer[_ngcontent-%COMP%]{margin-top:32px;font-size:14px;font-weight:600;color:#444}.settings__content[_ngcontent-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__content[_ngcontent-%COMP%]{padding:0 16px 20px}}.settings__tabs[_ngcontent-%COMP%]{margin-bottom:5px;border-bottom:1px solid #dedede}@media screen and (max-width: 768px){.settings__tabs[_ngcontent-%COMP%]   app-tabs[_ngcontent-%COMP%]{display:block;overflow:scroll hidden}.settings__tabs[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}}.settings__user[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:32px 0}.settings[_ngcontent-%COMP%]     .page-title{border:none;height:auto;padding:32px 0;border-bottom:1px solid #dedede}.settings[_ngcontent-%COMP%]     .panel-form__button{display:inline-block;vertical-align:top;line-height:22px}.settings[_ngcontent-%COMP%]     .panel-form__button.bordered{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.settings__action-container[_ngcontent-%COMP%]{padding:16px 20px;margin-bottom:20px;background-color:#f1f2f2;border-radius:4px;display:flex;justify-content:space-between}@media screen and (min-width: 375px) and (max-width: 768px){.settings__action-container[_ngcontent-%COMP%]{padding:16px}}.settings__action-container[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin:auto 0;flex:0 1}.settings__action-container-title[_ngcontent-%COMP%]{font-size:18px;color:#444;font-weight:700;margin-right:32px;flex:0 1}.settings__action-container-title_new[_ngcontent-%COMP%]{padding:4px 8px;color:#00a843;border-radius:4px;font-size:10px;text-transform:uppercase;background-color:#00a84326;margin-left:12px}.settings__action-container-title_info[_ngcontent-%COMP%]{margin-bottom:16px}.settings__action-container-pass[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:4px}.settings__action-container-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:4px}.settings__requierments[_ngcontent-%COMP%]{font-size:16px;color:#88909b;line-height:20px;margin-bottom:40px}.settings__requierments-title[_ngcontent-%COMP%]{margin:0;padding:0}.settings__table-container[_ngcontent-%COMP%]{padding:35px 0 40px}.settings__title-table[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:25px;margin-bottom:24px;color:#080708}.settings__title-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__description-table[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;font-size:16px;line-height:22px;color:#444}.settings__description-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__requierments-list[_ngcontent-%COMP%]{padding-left:20px}.settings__requierments-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:list-item;list-style-type:disc}.settings__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.settings__form_length[_ngcontent-%COMP%]{font-size:16px}.settings__form-buttons[_ngcontent-%COMP%]{display:flex;margin-top:36px}.settings__form-buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}.settings__alert-block[_ngcontent-%COMP%]{padding-top:30px;max-width:64%;margin-bottom:30px}.settings__notification-title[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21px;color:#444;margin-bottom:20px}.settings__form-input-wrapper[_ngcontent-%COMP%]{position:relative}.settings__input-error-message[_ngcontent-%COMP%]{position:absolute;font-size:12px;line-height:15px;color:#d9291e;left:12px;top:calc(100% + 5px)}[_nghost-%COMP%]     .settings__input--error input.ng-dirty{border-color:#d9291e}[_nghost-%COMP%]     .settings__placeholder{font-size:16px}[_nghost-%COMP%]     .settings__input{width:100%;border-radius:0;border-left:none;border-right:none;border-top:none}[_nghost-%COMP%]     .settings__input-error{border-bottom:1px solid #e23428}.settings   [_nghost-%COMP%]     .disabled .panel-form__input{background:#f1f2f2}.settings   [_nghost-%COMP%]     .panel-form__input-svg-hamburger{cursor:pointer;top:calc(50% - 11px);width:24px;height:24px;right:18px}.settings__error[_ngcontent-%COMP%]{color:#e23428;font-size:14px;margin-top:4px}.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:624px;border-radius:8px;background:#ffffff}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]{width:auto}}.modal-sign[_ngcontent-%COMP%]   .panel-form__input.login[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0;border-left:none;border-right:none;border-top:none}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__header[_ngcontent-%COMP%]{padding:24px 16px}}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content[_ngcontent-%COMP%]{padding-bottom:87px}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 32px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 16px}}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#88909b;font-size:14px;margin:8px 32px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.modal-sign.modal-design.settings[_ngcontent-%COMP%]{max-width:624px!important}']})}(0,$.gn)([(0,C.SQ)()],It.prototype,"lang",void 0);class Ot{constructor(it,ae,_e){this.userDataService=it,this.translation=ae,this.modalService=_e,this.login="",this.confirm={},this.notificationType="",this.loginErrorMessage="",this.signFormTitle="SMS Was Sent"}ngOnInit(){}openSettings(){this.modalService.open(It,{inputs:{confirmAction:()=>{},cancelAction:()=>{},isMail:!0},isSign:!0,isMail:!0,isSignDesign:!0})}static#e=this.\u0275fac=function(ae){return new(ae||Ot)(p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(C.D7),p.\u0275\u0275directiveInject(Pe.Z))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:Ot,selectors:[["app-settings-login"]],inputs:{login:"login"},decls:9,vars:10,consts:[["data-qa","1657970773533",1,"settings__action-container"],[1,"settings__action-container-title"],[1,"settings__action-container-pass"],["data-qa","1657970797179","type","medium-for-sign-gray",3,"disabled","text","click"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div"),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(5,"div",2),p.\u0275\u0275text(6),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(7,"app-button",3),p.\u0275\u0275listener("click",function(){return _e.openSettings()}),p.\u0275\u0275pipe(8,"translate"),p.\u0275\u0275elementEnd()()),2&ae&&(p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(4,4,"Login",_e.lang)),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(_e.login),p.\u0275\u0275advance(1),p.\u0275\u0275propertyInterpolate("text",p.\u0275\u0275pipeBind2(8,7,"Change",_e.lang)),p.\u0275\u0275property("disabled",!1))},dependencies:[ce.r,C.X$],styles:['@charset "UTF-8";.settings[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings__timer[_ngcontent-%COMP%]{margin-top:32px;font-size:14px;font-weight:600;color:#444}.settings__content[_ngcontent-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__content[_ngcontent-%COMP%]{padding:0 16px 20px}}.settings__tabs[_ngcontent-%COMP%]{margin-bottom:5px;border-bottom:1px solid #dedede}@media screen and (max-width: 768px){.settings__tabs[_ngcontent-%COMP%]   app-tabs[_ngcontent-%COMP%]{display:block;overflow:scroll hidden}.settings__tabs[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}}.settings__user[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:32px 0}.settings[_ngcontent-%COMP%]     .page-title{border:none;height:auto;padding:32px 0;border-bottom:1px solid #dedede}.settings[_ngcontent-%COMP%]     .panel-form__button{display:inline-block;vertical-align:top;line-height:22px}.settings[_ngcontent-%COMP%]     .panel-form__button.bordered{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.settings__action-container[_ngcontent-%COMP%]{padding:16px 20px;margin-bottom:20px;background-color:#f1f2f2;border-radius:4px;display:flex;justify-content:space-between}@media screen and (min-width: 375px) and (max-width: 768px){.settings__action-container[_ngcontent-%COMP%]{padding:16px}}.settings__action-container[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin:auto 0;flex:0 1}.settings__action-container-title[_ngcontent-%COMP%]{font-size:18px;color:#444;font-weight:700;margin-right:32px;flex:0 1}.settings__action-container-title_new[_ngcontent-%COMP%]{padding:4px 8px;color:#00a843;border-radius:4px;font-size:10px;text-transform:uppercase;background-color:#00a84326;margin-left:12px}.settings__action-container-title_info[_ngcontent-%COMP%]{margin-bottom:16px}.settings__action-container-pass[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:4px}.settings__action-container-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:4px}.settings__requierments[_ngcontent-%COMP%]{font-size:16px;color:#88909b;line-height:20px;margin-bottom:40px}.settings__requierments-title[_ngcontent-%COMP%]{margin:0;padding:0}.settings__table-container[_ngcontent-%COMP%]{padding:35px 0 40px}.settings__title-table[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:25px;margin-bottom:24px;color:#080708}.settings__title-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__description-table[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;font-size:16px;line-height:22px;color:#444}.settings__description-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__requierments-list[_ngcontent-%COMP%]{padding-left:20px}.settings__requierments-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:list-item;list-style-type:disc}.settings__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.settings__form_length[_ngcontent-%COMP%]{font-size:16px}.settings__form-buttons[_ngcontent-%COMP%]{display:flex;margin-top:36px}.settings__form-buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}.settings__alert-block[_ngcontent-%COMP%]{padding-top:30px;max-width:64%;margin-bottom:30px}.settings__notification-title[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21px;color:#444;margin-bottom:20px}.settings__form-input-wrapper[_ngcontent-%COMP%]{position:relative}.settings__input-error-message[_ngcontent-%COMP%]{position:absolute;font-size:12px;line-height:15px;color:#d9291e;left:12px;top:calc(100% + 5px)}[_nghost-%COMP%]     .settings__input--error input.ng-dirty{border-color:#d9291e}[_nghost-%COMP%]     .settings__placeholder{font-size:16px}[_nghost-%COMP%]     .settings__input{width:100%;border-radius:0;border-left:none;border-right:none;border-top:none}[_nghost-%COMP%]     .settings__input-error{border-bottom:1px solid #e23428}.settings   [_nghost-%COMP%]     .disabled .panel-form__input{background:#f1f2f2}.settings   [_nghost-%COMP%]     .panel-form__input-svg-hamburger{cursor:pointer;top:calc(50% - 11px);width:24px;height:24px;right:18px}.settings__error[_ngcontent-%COMP%]{color:#e23428;font-size:14px;margin-top:4px}.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:624px;border-radius:8px;background:#ffffff}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]{width:auto}}.modal-sign[_ngcontent-%COMP%]   .panel-form__input.login[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0;border-left:none;border-right:none;border-top:none}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__header[_ngcontent-%COMP%]{padding:24px 16px}}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content[_ngcontent-%COMP%]{padding-bottom:87px}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 32px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 16px}}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#88909b;font-size:14px;margin:8px 32px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.modal-sign.modal-design.settings[_ngcontent-%COMP%]{max-width:624px!important}']})}(0,$.gn)([(0,C.SQ)()],Ot.prototype,"lang",void 0);var fn=t(15439),Xn=t.n(fn),_i=t(18505),ci=t(63900),Ui=t(81814),li=t(88279);function vi(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-alerts",4),p.\u0275\u0275listener("onDelete",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(Vt.onDelete(mt))}),p.\u0275\u0275elementEnd()}if(2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275property("items",ae.alerts)}}function Zn(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",17)(1,"div",18),p.\u0275\u0275text(2),p.\u0275\u0275pipe(3,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div",19),p.\u0275\u0275text(5),p.\u0275\u0275elementEnd()()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit,_e=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(3,2,"Write-off date",_e.lang)),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(ae.writeOfCommissionDate)}}function gn(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",17)(1,"div",18),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",19),p.\u0275\u0275text(4),p.\u0275\u0275elementEnd()()),2&qt){const ae=it.$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(ae.caption),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(ae.description)}}function Mt(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275template(1,gn,5,2,"div",20),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275property("ngForOf",ae.conditions)}}const $t=function(qt){return{date:qt}};function kn(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",21)(1,"div",22),p.\u0275\u0275text(2),p.\u0275\u0275pipe(3,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div",23),p.\u0275\u0275text(5),p.\u0275\u0275pipe(6,"translate"),p.\u0275\u0275elementEnd()()),2&qt){const ae=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",p.\u0275\u0275pipeBind2(3,2,"Success tariff sending",ae.lang)," "),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate1(" ",p.\u0275\u0275pipeBind3(6,5,"Tariff beginning",ae.lang,p.\u0275\u0275pureFunction1(9,$t,ae.tariffsService.getBeginNextMonth()))," ")}}function ai(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"a",24),p.\u0275\u0275text(1),p.\u0275\u0275pipe(2,"translate"),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext(),_e=ae.$implicit,mt=ae.index,Vt=p.\u0275\u0275nextContext(2);p.\u0275\u0275property("href",_e.descriptionUrl,p.\u0275\u0275sanitizeUrl),p.\u0275\u0275attribute("data-qa","1657970967276"+mt),p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(" ",p.\u0275\u0275pipeBind2(2,3,"Tariff description",Vt.lang)," ")}}function qi(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",7)(1,"div",8)(2,"div",9),p.\u0275\u0275text(3),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div",10),p.\u0275\u0275text(5),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(6,Zn,6,5,"div",11),p.\u0275\u0275template(7,Mt,2,1,"ng-container",12),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(8,"div",13),p.\u0275\u0275template(9,kn,7,11,"div",14),p.\u0275\u0275template(10,ai,3,6,"a",15),p.\u0275\u0275elementStart(11,"app-button",16),p.\u0275\u0275listener("click",function(){const Vt=p.\u0275\u0275restoreView(ae).$implicit,On=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(On.onButtonClick(Vt))}),p.\u0275\u0275elementEnd()()()}if(2&qt){const ae=it.$implicit,_e=it.index;p.\u0275\u0275attribute("data-qa","1657970933358"+_e),p.\u0275\u0275advance(2),p.\u0275\u0275classProp("current","current"===ae.status),p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(" ",ae.caption," "),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",ae.descriptionPay," "),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","01"===ae.code),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",ae.conditions&&ae.conditions.length),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf","new"===ae.status),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",ae.descriptionUrl),p.\u0275\u0275advance(1),p.\u0275\u0275classProp("current","current"===ae.status),p.\u0275\u0275property("disabled",ae.isButtonDisabled)("text",ae.buttonText),p.\u0275\u0275attribute("data-qa","1657970979812"+_e)}}function eo(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",5),p.\u0275\u0275template(1,qi,12,14,"div",6),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(1),p.\u0275\u0275property("ngForOf",ae.tariffs)}}class Oo extends nt.H{constructor(it,ae,_e,mt,Vt){super(),this.tariffsService=it,this.documentService=ae,this.toast=_e,this.router=mt,this.translationService=Vt,this.alerts=[]}set declineDocsIds(it){it&&it.length&&this.showDeclineInfo(it)}ngOnInit(){this.enableLoader(!0),this.tariffsService.getPreparedTariffs().pipe((0,I.R)(this.$unsubscribe)).subscribe(it=>{this.tariffs=it,this.prepareTariffs(),this.enableLoader(!1)},it=>{this.toast.show(it.message,"error"),this.enableLoader(!1)})}showDeclineInfo(it){this.documentService.getDocuments(it,"ibankul","change_tariff_ul_req").pipe((0,I.R)(this.$unsubscribe)).subscribe(ae=>{const _e=this.getLastDocumentByDocDate(ae);if(_e){let mt=this.translationService.translate("Tariff decline doc",{number:_e.docNumber,date:Xn()(_e.docDate).format("DD.MM.YYYY")});_e.declineInfo&&(mt=mt+": "+_e.declineInfo),this.alerts.push({type:"error",text:mt,id:_e.id,tariffId:_e.tariffId})}})}getLastDocumentByDocDate(it){return it.sort((ae,_e)=>Number(ae.docDate)-Number(_e.docDate))[0]}isReserveTariff(it){return"30000000003"===it.code||"\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439"===it.caption}isRestrictTariff(it){return"30000000020"===it.code||"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439"===it.caption}prepareTariffs(){const it=this.tariffs.find(mt=>"current"===mt.status),ae=it&&this.isRestrictTariff(it),_e=it&&this.isReserveTariff(it);this.tariffs=this.tariffs.filter(ae?mt=>this.isRestrictTariff(mt):_e?mt=>this.isReserveTariff(mt):mt=>!this.isRestrictTariff(mt)&&!this.isReserveTariff(mt)),this.tariffs.forEach(mt=>{ae?(mt.isButtonDisabled=!0,mt.buttonText=this.isRestrictTariff(mt)?"Connected":"Connect"):_e?(mt.isButtonDisabled=!0,mt.buttonText=this.isReserveTariff(mt)?"Connected":"Connect"):"current"===mt.status?(mt.buttonText="Connected",mt.isButtonDisabled=!0):this.isRestrictTariff(mt)||this.isReserveTariff(mt)?(mt.isButtonDisabled=!0,mt.buttonText="Connect"):"new"===mt.status?(mt.buttonText="Cancel connection",mt.isButtonDisabled=!Boolean(this.tariffsService.tariffRequest)):(mt.buttonText="Connect",mt.isButtonDisabled=!1)})}onButtonClick(it){"new"===it.status&&(it.isButtonDisabled?this.toast.show("Connection canceling doc empty","error"):(this.tariffsService.prepareRecallInfo(it),this.router.navigate(["/recall-order"],{queryParams:{docId:this.tariffsService.tariffRequest.id,docType:this.tariffsService.tariffRequest.docType}}))),"other"===it.status&&!it.isButtonDisabled&&this.changeTariff(it)}changeTariff(it){let ae;this.enableLoader(!0),this.tariffsService.changeTariff(it.id).pipe((0,_i.b)(_e=>!!_e||this.enableLoader(!1)),(0,en.h)(_e=>!!_e),(0,ci.w)(_e=>(ae=_e,this.documentService.getDocumentById(ae.docModule,ae.docType,ae.id))),(0,j.q)(1)).subscribe(({changeTariffUlReqDocument:_e})=>{ae.docNumber=_e.docNumber,ae.docDate=_e.docDate,this.tariffsService.prepareSignInfo(ae,it),this.router.navigate(["sign"],{queryParams:{docId:ae.id,docType:ae.docType,docModule:ae.docModule,crossHref:"/settings",operationsTab:"Tariffs"}})},_e=>{this.enableLoader(!1),this.toast.show(_e.error?_e.error.errorText:_e.errorText,"error")})}onDelete(it){this.tariffsService.deleteAlert(it.id).pipe((0,ci.w)(ae=>this.tariffsService.getDeclineDocsInfo())).subscribe(ae=>{this.tariffsService.declineDocsInfo$.next(ae),this.tariffsService.declineDocsCount$.next(ae&&ae.count?ae.count:null)},ae=>{this.enableLoader(!1),this.toast.show(ae.error?ae.error.errorText:ae.errorText,"error")})}static#e=this.\u0275fac=function(ae){return new(ae||Oo)(p.\u0275\u0275directiveInject(Ui.M),p.\u0275\u0275directiveInject(wn.Z),p.\u0275\u0275directiveInject(P.j),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(C.D7))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:Oo,selectors:[["app-settings-tariffs"]],inputs:{declineDocsIds:"declineDocsIds"},features:[p.\u0275\u0275InheritDefinitionFeature],decls:4,vars:3,consts:[["data-qa","1657970910083",1,"settings-tariffs"],["class","settings-tariffs__alerts","data-qa","1657970915649",3,"items","onDelete",4,"ngIf"],["class","settings-tariffs__list","data-qa","1657970921569",4,"ngIf"],[3,"hidden"],["data-qa","1657970915649",1,"settings-tariffs__alerts",3,"items","onDelete"],["data-qa","1657970921569",1,"settings-tariffs__list"],["class","settings-tariffs__item",4,"ngFor","ngForOf"],[1,"settings-tariffs__item"],[1,"settings-tariffs__item-top"],[1,"settings-tariffs__item-title"],[1,"settings-tariffs__item-main-info"],["class","settings-tariffs__item-row",4,"ngIf"],[4,"ngIf"],[1,"settings-tariffs__item-bottom"],["class","settings-tariffs__item-extra",4,"ngIf"],["class","settings-tariffs__item-description","target","_blank",3,"href",4,"ngIf"],[1,"settings-tariffs__item-button",3,"disabled","text","click"],[1,"settings-tariffs__item-row"],[1,"settings-tariffs__item-row-caption"],[1,"settings-tariffs__item-row-value"],["class","settings-tariffs__item-row",4,"ngFor","ngForOf"],[1,"settings-tariffs__item-extra"],[1,"settings-tariffs__item-extra-title"],[1,"settings-tariffs__item-extra-value"],["target","_blank",1,"settings-tariffs__item-description",3,"href"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0),p.\u0275\u0275template(1,vi,1,1,"app-alerts",1),p.\u0275\u0275template(2,eo,2,1,"div",2),p.\u0275\u0275element(3,"app-loader",3),p.\u0275\u0275elementEnd()),2&ae&&(p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.alerts.length),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.tariffs&&_e.tariffs.length),p.\u0275\u0275advance(1),p.\u0275\u0275property("hidden",!_e.loadingFlag))},dependencies:[n.sg,n.O5,De.R,li.I,ce.r,C.X$],styles:['@charset "UTF-8";.settings-tariffs{position:relative;min-height:30vh}.settings-tariffs__alerts{display:block;padding-top:32px}.settings-tariffs__list{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:flex-start;align-items:stretch;margin:0 -15px;padding-top:30px}.settings-tariffs__item{flex-shrink:0;display:flex;align-items:center;flex-direction:column;width:30%;min-width:280px;max-width:360px;margin:0 15px 30px;padding:40px 0;background-color:#fff;box-shadow:0 0 40px #00000021;border-radius:5px}.settings-tariffs__item-top{width:100%;margin-bottom:18px}.settings-tariffs__item-bottom{display:flex;align-items:center;flex-direction:column;width:100%;margin-top:auto}.settings-tariffs__item-title{display:flex;justify-content:center;align-items:center;width:100%;min-height:60px;margin-bottom:24px;padding:10px;font-weight:600;font-size:26px;line-height:26px;text-align:center;color:#fff;background-image:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%)}.settings-tariffs__item-title.current{background-image:none;background-color:#9d9d9d}.settings-tariffs__item-main-info{margin-bottom:18px;padding:0 16px;font-weight:600;font-size:30px;line-height:44px;text-align:center}.settings-tariffs__item-row{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:6px 16px;font-size:16px;line-height:20px}.settings-tariffs__item-row-value{color:#9d9d9d;text-align:right}.settings-tariffs__item-extra{width:100%;margin-bottom:24px;padding:0 16px;text-align:center;font-size:16px;line-height:20px}.settings-tariffs__item-extra-title{font-weight:600;margin-bottom:12px}.settings-tariffs__item-description{width:100%;margin-bottom:24px;padding:0 16px;text-align:center;font-weight:600;font-size:16px;line-height:20px;text-decoration:underline;color:#284681}.settings-tariffs__item-button{height:48px}.settings-tariffs__item-button.current .panel-form__button{background-image:none;background-color:#9d9d9d}.settings-tariffs__item-button .panel-form__button{display:flex!important}\n'],encapsulation:2})}(0,$.gn)([(0,C.SQ)()],Oo.prototype,"lang",void 0);var Zi=t(24201);function Wo(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",6)(1,"div",7)(2,"mat-icon",8),p.\u0275\u0275text(3,"info"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div",9),p.\u0275\u0275text(5),p.\u0275\u0275elementEnd()(),p.\u0275\u0275element(6,"app-collapse-text-block",10),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(5),p.\u0275\u0275textInterpolate1(" ",ae.SETTINGS_USERS_INFO_TEXT," "),p.\u0275\u0275advance(1),p.\u0275\u0275property("text",ae.SETTINGS_USERS_INFO_TEXT)}}function na(qt,it){1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1," \u0411\u0435\u0441\u0441\u0440\u043e\u0447\u043d\u043e "),p.\u0275\u0275elementContainerEnd())}function qa(qt,it){if(1&qt&&p.\u0275\u0275text(0),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275textInterpolate1(" ","1900-01-01"===ae.rightsExpirationDate||"01.01.1900"===ae.rightsExpirationDate?"-":"\u0414\u043e "+ae.rightsExpirationDate," ")}}function rr(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div"),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2).$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.smsPhone1)}}function dr(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div"),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2).$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.smsPhone2)}}function sr(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275template(1,rr,2,1,"div",21),p.\u0275\u0275template(2,dr,2,1,"div",21),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",ae.smsPhone1),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",ae.smsPhone2)}}function Ks(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",23)(1,"div",24),p.\u0275\u0275text(2,"\u0420\u0443\u0442\u043e\u043a\u0435\u043d"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",25),p.\u0275\u0275text(4),p.\u0275\u0275pipe(5,"date"),p.\u0275\u0275elementEnd()()),2&qt){const ae=it.$implicit,_e=p.\u0275\u0275nextContext(2).$implicit;p.\u0275\u0275advance(3),p.\u0275\u0275property("ngClass",_e.signerRight),p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(" \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e ",p.\u0275\u0275pipeBind2(5,2,ae.endDate,"dd.MM.yyyy")," ")}}function _r(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275template(1,Ks,6,5,"div",22),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275property("ngForOf",ae.ruTokens)}}function _o(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-menu-select",27),p.\u0275\u0275listener("actionDone",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext(4);return p.\u0275\u0275resetView(Vt.onActionDone(mt))}),p.\u0275\u0275elementStart(1,"button",28),p.\u0275\u0275element(2,"span",29),p.\u0275\u0275elementEnd()()}if(2&qt){const ae=it.ngIf,_e=p.\u0275\u0275nextContext(2).$implicit;p.\u0275\u0275property("icon",!0)("buttonActions",ae.buttonActions)("items",null==_e?null:_e.actions)("showDivider",!0)}}function to(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275template(1,_o,3,4,"app-menu-select",26),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",ae.dots)}}function gr(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"tr")(1,"td"),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"td"),p.\u0275\u0275text(4),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(5,"td",13)(6,"div",14),p.\u0275\u0275template(7,na,2,0,"ng-container",15),p.\u0275\u0275template(8,qa,1,1,"ng-template",null,16,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(10,"div",17),p.\u0275\u0275text(11),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(12,"td"),p.\u0275\u0275text(13),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(14,"td",18),p.\u0275\u0275template(15,sr,3,2,"ng-container",15),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(16,"td",19),p.\u0275\u0275template(17,_r,2,1,"ng-container",15),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(18,"td",20),p.\u0275\u0275template(19,to,2,1,"ng-container",21),p.\u0275\u0275elementEnd()()),2&qt){const ae=it.$implicit,_e=it.index,mt=p.\u0275\u0275reference(9),Vt=p.\u0275\u0275nextContext(2),On=p.\u0275\u0275reference(6);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(_e+1),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(ae.fullName),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngClass","expired"===ae.signerRight?ae.signerRight:"")("title","expired"===ae.signerRight?"\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u043b\u0435\u043d\u0438\u044f \u0441\u0440\u043e\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439":""),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",null===ae.rightsExpirationDate)("ngIfElse",mt),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngClass",ae.signerRight),p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(Vt.SIGNER_RIGHTS_CAPTIONS[ae.signerRight]||"-"),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(Vt.SIGN_TYPES_CAPTIONS[ae.signType]||ae.signType||"-"),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",ae.smsPhone1||ae.smsPhone2)("ngIfElse",On),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",null==ae.ruTokens?null:ae.ruTokens.length)("ngIfElse",On),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",null==ae||null==ae.dots||null==ae.dots.buttonActions?null:ae.dots.buttonActions.length)}}function za(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"table",11)(1,"thead")(2,"tr")(3,"td"),p.\u0275\u0275text(4,"\u2116"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(5,"td"),p.\u0275\u0275text(6,"\u0444\u0438\u043e"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(7,"td"),p.\u0275\u0275text(8,"\u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u044f/\u0441\u0442\u0430\u0442\u0443\u0441"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(9,"td"),p.\u0275\u0275text(10,"\u0442\u0438\u043f \u043f\u043e\u0434\u043f\u0438\u0441\u0438"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(11,"td"),p.\u0275\u0275text(12,"\u043d\u043e\u043c\u0435\u0440 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(13,"td"),p.\u0275\u0275text(14,"\u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0440\u0443\u0442\u043e\u043a\u0435\u043d\u0430"),p.\u0275\u0275elementEnd(),p.\u0275\u0275element(15,"td"),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(16,"tbody"),p.\u0275\u0275template(17,gr,20,14,"tr",12),p.\u0275\u0275elementEnd()()),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(17),p.\u0275\u0275property("ngForOf",ae.rmsUserList)}}function Sa(qt,it){1&qt&&p.\u0275\u0275element(0,"app-loader",30)}function zr(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",31)(1,"div",32),p.\u0275\u0275text(2),p.\u0275\u0275pipe(3,"translate"),p.\u0275\u0275elementEnd()()),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(3,1,"No users",ae.lang))}}function cr(qt,it){1&qt&&(p.\u0275\u0275elementStart(0,"div"),p.\u0275\u0275text(1,"-"),p.\u0275\u0275elementEnd())}class vr{constructor(it,ae,_e,mt,Vt){this.userDataService=it,this.translation=ae,this.settingsService=_e,this.toastCustomService=mt,this.router=Vt,this.rmsUserList=[],this.isLoading=!0,this.SIGNER_RIGHTS_CAPTIONS=zt.lx,this.SIGN_TYPES_CAPTIONS=zt.oT,this.SETTINGS_USERS_INFO_TEXT="\u0421\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442 \u0421\u041a\u0411 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u043b\u0435\u043d\u0438\u044f \u0441\u0440\u043e\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u043f\u0440\u0430\u0432\u0430 \u0432 \u0431\u043e\u043a\u043e\u0432\u043e\u043c \u043c\u0435\u043d\u044e (\u0442\u0440\u0438 \u0442\u043e\u0447\u043a\u0438)",this.destroyed$=new T.x}ngOnInit(){this.getRmsUsers()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}onActionDone(it){"sign"===it&&this.router.navigate(["/settings"],{queryParams:{tab:"requests"}})}getRmsUsers(){this.settingsService.getRmsUsers().pipe((0,I.R)(this.destroyed$)).subscribe({next:it=>{this.rmsUserList=it,this.isLoading=!1},error:it=>{this.rmsUserList=[],this.toastCustomService.errorHandle(it),this.isLoading=!1}})}static#e=this.\u0275fac=function(ae){return new(ae||vr)(p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(C.D7),p.\u0275\u0275directiveInject(We.g),p.\u0275\u0275directiveInject(P.j),p.\u0275\u0275directiveInject(a.F0))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:vr,selectors:[["app-settings-users-table"]],decls:7,vars:4,consts:[[1,"settings__table-container"],["class","settings__table-info",4,"ngIf"],["class","users-table",4,"ngIf"],["class","loader",4,"ngIf"],["class","empty-state-users",4,"ngIf"],["emptyValueTpl",""],[1,"settings__table-info"],[1,"settings__table-info-wrapper"],["fontSet","material-icons-outlined",1,"settings__table-info__icon"],[1,"settings__table-info__text"],[1,"settings__table-info-wrapper--mobile",3,"text"],[1,"users-table"],[4,"ngFor","ngForOf"],[1,"rights-info"],[1,"expiration-date",3,"ngClass","title"],[4,"ngIf","ngIfElse"],["rightsExpirationDateTpl",""],[3,"ngClass"],[1,"phone-numbers"],[1,"certificates"],[1,"action-buttons"],[4,"ngIf"],["class","certificate",4,"ngFor","ngForOf"],[1,"certificate"],[1,"certificate__type"],[1,"certificate__expiration",3,"ngClass"],["data-qa","1711094397",3,"icon","buttonActions","items","showDivider","actionDone",4,"ngIf"],["data-qa","1711094397",3,"icon","buttonActions","items","showDivider","actionDone"],[1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"],[1,"loader"],[1,"empty-state-users"],[1,"text-empty-state-users"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0),p.\u0275\u0275template(1,Wo,7,2,"div",1),p.\u0275\u0275template(2,za,18,1,"table",2),p.\u0275\u0275template(3,Sa,1,0,"app-loader",3),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(4,zr,4,4,"div",4),p.\u0275\u0275template(5,cr,2,0,"ng-template",null,5,p.\u0275\u0275templateRefExtractor)),2&ae&&(p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!_e.isLoading&&(null==_e.rmsUserList?null:_e.rmsUserList.length)),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!_e.isLoading&&_e.rmsUserList.length),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.isLoading),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!_e.rmsUserList.length&&!_e.isLoading))},dependencies:[n.mk,n.sg,n.O5,De.R,Zi.r,i.Hw,ct.C,n.uU,C.X$],styles:['@charset "UTF-8";.settings__table-container[_ngcontent-%COMP%]{position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__table-container[_ngcontent-%COMP%]{overflow:scroll;max-height:60vh}.settings__table-container[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:1200px}}.settings__table-container[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{display:block;min-height:100px}.settings__table-info[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px;border-radius:4px;background:#f1f2f2}.settings__table-info-wrapper[_ngcontent-%COMP%]{padding:16px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;color:#444;display:flex;align-items:center;column-gap:10px}@media screen and (max-width: 768px){.settings__table-info-wrapper[_ngcontent-%COMP%]{display:none}}.settings__table-info-wrapper--mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 768px){.settings__table-info-wrapper--mobile[_ngcontent-%COMP%]{display:block}}.settings__table-info__icon[_ngcontent-%COMP%]{display:block;color:#70b6f6;width:18px;height:17px;font-size:18px;min-width:18px;min-height:17px}.users-table[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:100%;border-spacing:0;border-collapse:collapse}.users-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{background:#f1f2f2}.users-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:12px 16px;font-weight:600;font-size:12px;text-transform:uppercase;color:#444;letter-spacing:.12px}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:16px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#080708;vertical-align:top}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.expiration-date.active[_ngcontent-%COMP%]{color:#080708}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.rights-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.phone-numbers[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.certificates[_ngcontent-%COMP%]   .certificate[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:8px}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.certificates[_ngcontent-%COMP%]   .certificate[_ngcontent-%COMP%]:last-child{margin-bottom:0}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.certificates[_ngcontent-%COMP%]   .certificate__type[_ngcontent-%COMP%]{margin-bottom:4px}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.certificates[_ngcontent-%COMP%]   .certificate__expiration[_ngcontent-%COMP%]{color:#88909b;font-size:12px}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.certificates[_ngcontent-%COMP%]   .certificate__expiration.active[_ngcontent-%COMP%]{color:#88909b}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.certificates[_ngcontent-%COMP%]   .certificate__expiration.expired[_ngcontent-%COMP%]{color:#e23428}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.action-buttons[_ngcontent-%COMP%]{padding:6px 4px 0 0;vertical-align:middle}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{color:#00a843}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .expired[_ngcontent-%COMP%]{color:#e23428}.users-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .view[_ngcontent-%COMP%]{color:#444}.empty-state-users[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;padding:15px;margin-top:97px;margin-bottom:100px}.empty-state-users[_ngcontent-%COMP%]   .text-empty-state-users[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:100%;max-width:630px;font-weight:400;font-size:20px;line-height:27px;text-align:center;color:#444}']})}(0,$.gn)([(0,C.SQ)()],vr.prototype,"lang",void 0);const Pr={size:20,number:0,total:0},Cs=[10,20,100];var ia=t(23439);const Er=function(qt){return{"extra-margin":qt}};class yo{constructor(it,ae,_e,mt){this.router=it,this.requestsService=ae,this.cdr=_e,this.userDataService=mt,this.requestList=[],this.isLoading=!0,this.searchValue="",this.currentPage=Pr,this.sizeList=Cs,this.isRequestListLoading$=this.requestsService.isLoading$,this.UPDATE_LIST_ACTIONS=["delete","delete_sign","sign","cancel","decline_phone_change"],this.searchTerm$=new T.x,this.destroyed$=new T.x}ngOnInit(){this.initRequestList(),this.initSearch(),this.updateNotifications()}ngOnDestroy(){this.requestsService.clearRequestList(),this.destroyed$.next(null),this.destroyed$.complete()}onSearchValueChange(it){this.searchValue=it,this.cdr.detectChanges(),this.searchTerm$.next(it)}getRequestList(it){this.router.navigate(["/settings"],{queryParams:{tab:"requests",page:it?.number?+it.number+1:1,size:it?.size?it.size:10}}),this.requestsService.loadRequestList(it,this.searchValue)}onActionDone(it){this.UPDATE_LIST_ACTIONS.includes(it)&&(this.getRequestList(this.currentPage),this.updateNotifications())}initRequestList(){this.requestsService.requestList$.pipe((0,I.R)(this.destroyed$),(0,en.h)(it=>null!==it)).subscribe(it=>{this.requestList=it?.documents,this.currentPage=it?.page,this.currentPage||(this.currentPage=Pr,this.getRequestList(this.currentPage)),this.cdr.detectChanges()}),this.getRequestList(this.currentPage)}initSearch(){this.searchTerm$.pipe((0,en.h)(it=>null!==it),(0,U.b)(300),(0,I.R)(this.destroyed$)).subscribe(()=>{this.currentPage=Pr,this.cdr.detectChanges(),this.getRequestList(this.currentPage)})}updateNotifications(){this.userDataService.getNotification().subscribe()}static#e=this.\u0275fac=function(ae){return new(ae||yo)(p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(sn),p.\u0275\u0275directiveInject(p.ChangeDetectorRef),p.\u0275\u0275directiveInject(pt.M))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:yo,selectors:[["app-settings-requests-table"]],decls:6,vars:15,consts:[[1,"settings-requests-table"],[1,"settings-requests-table-search"],["data-qa","1711109691","inputClass","no-description w100","typeClass","flex-input-filter",3,"matIcon","value","placeholder","valueChange"],["data-qa","1657968472224",1,"requests-list",3,"documentList","currentPage","sizeList","isLoading","ngClass","changePaginationEmit","actionDone"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"app-input",2),p.\u0275\u0275listener("valueChange",function(Vt){return _e.onSearchValueChange(Vt)}),p.\u0275\u0275pipe(3,"translate"),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(4,"app-alt-document-list",3),p.\u0275\u0275listener("changePaginationEmit",function(Vt){return _e.getRequestList(Vt)})("actionDone",function(Vt){return _e.onActionDone(Vt)}),p.\u0275\u0275pipe(5,"async"),p.\u0275\u0275elementEnd()()),2&ae&&(p.\u0275\u0275advance(2),p.\u0275\u0275propertyInterpolate("placeholder",p.\u0275\u0275pipeBind2(3,8,"Search by user fullname",_e.lang)),p.\u0275\u0275property("matIcon",_e.searchValue?"close":"search")("value",_e.searchValue),p.\u0275\u0275advance(2),p.\u0275\u0275property("documentList",_e.requestList)("currentPage",_e.currentPage)("sizeList",_e.sizeList)("isLoading",p.\u0275\u0275pipeBind1(5,11,_e.isRequestListLoading$))("ngClass",p.\u0275\u0275pureFunction1(13,Er,null==_e.requestList?null:_e.requestList.length)))},dependencies:[n.mk,ia.c,ut.a,n.Ov,C.X$],styles:['@charset "UTF-8";.settings-requests-table-search[_ngcontent-%COMP%]{margin-top:24px;padding-bottom:24px;border-bottom:1px solid #dedede}.settings-requests-table[_ngcontent-%COMP%]   .requests-list[_ngcontent-%COMP%]{display:block}.settings-requests-table[_ngcontent-%COMP%]   .requests-list.extra-margin[_ngcontent-%COMP%]{margin-top:24px}'],changeDetection:0})}function Ya(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().ngIf;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(null==ae?null:ae.lawCountry)}}function ma(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().ngIf;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(", ",null==ae?null:ae.lawZIP,"")}}function ur(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().ngIf;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(", ",null==ae?null:ae.lawRegion,"")}}function Or(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().ngIf;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(", ",null==ae?null:ae.lawCity,"")}}function es(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().ngIf;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(", ",null==ae?null:ae.lawStreet,"")}}function ts(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().ngIf;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(", ",null==ae?null:ae.lawHouse,"")}}function er(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().ngIf;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(", ",null==ae?null:ae.lawFlat,"")}}function pr(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",14)(1,"div",3)(2,"div",4),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(5,"div",15)(6,"app-simple-card")(7,"div",16)(8,"div",17)(9,"div",18),p.\u0275\u0275element(10,"mat-icon",19),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(11,"div",20)(12,"div",21)(13,"div",22),p.\u0275\u0275text(14),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(15,"div",23),p.\u0275\u0275text(16),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(17,"div",23),p.\u0275\u0275template(18,Ya,2,1,"ng-container",24),p.\u0275\u0275template(19,ma,2,1,"ng-container",24),p.\u0275\u0275template(20,ur,2,1,"ng-container",24),p.\u0275\u0275template(21,Or,2,1,"ng-container",24),p.\u0275\u0275template(22,es,2,1,"ng-container",24),p.\u0275\u0275template(23,ts,2,1,"ng-container",24),p.\u0275\u0275template(24,er,2,1,"ng-container",24),p.\u0275\u0275elementEnd()()()()()()()),2&qt){const ae=it.ngIf,_e=p.\u0275\u0275nextContext();p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(4,12,"Organization/Company",_e.lang)),p.\u0275\u0275advance(7),p.\u0275\u0275property("svgIcon","check"),p.\u0275\u0275advance(4),p.\u0275\u0275textInterpolate2(" ",null==ae?null:ae.ipType," ",(null==ae?null:ae.shortName)||(null==ae?null:ae.fullName)," "),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(ae.INN),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",null==ae?null:ae.lawCountry),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",null==ae?null:ae.lawZIP),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",null==ae?null:ae.lawRegion),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",null==ae?null:ae.lawCity),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",null==ae?null:ae.lawStreet),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",null==ae?null:ae.lawHouse),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",null==ae?null:ae.lawFlat)}}function Ua(qt,it){1&qt&&(p.\u0275\u0275elementStart(0,"div",25),p.\u0275\u0275text(1," \u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 \u043f\u0440\u0438\u043d\u044f\u0442\u0430 \u0411\u0430\u043d\u043a\u043e\u043c. \u0414\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 "),p.\u0275\u0275elementEnd())}function Ca(qt,it){1&qt&&p.\u0275\u0275element(0,"mat-icon",19),2&qt&&p.\u0275\u0275property("svgIcon","check")}function Va(qt,it){1&qt&&p.\u0275\u0275element(0,"mat-icon",34),2&qt&&p.\u0275\u0275property("svgIcon","check")}function Rr(qt,it){1&qt&&p.\u0275\u0275element(0,"mat-icon",35),2&qt&&p.\u0275\u0275property("svgIcon","exclamation-point")}function ha(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275elementStart(1,"div",36),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",36),p.\u0275\u0275text(4),p.\u0275\u0275pipe(5,"phone_format"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate2("",ae.fio,", ",ae.position,""),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind1(5,3,ae.phoneNumber))}}function mr(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",36),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(2,"div",36),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"phone_format"),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.fio),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind1(4,2,ae.phoneNumber))}}function Fr(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",37),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275property("ngClass",null==ae?null:ae.status),p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(" ",ae.statusCaption," ")}}function da(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"app-simple-card")(1,"div",16)(2,"div",17)(3,"div",18),p.\u0275\u0275elementContainerStart(4,26),p.\u0275\u0275template(5,Ca,1,1,"mat-icon",27),p.\u0275\u0275template(6,Va,1,1,"mat-icon",28),p.\u0275\u0275template(7,Rr,1,1,"mat-icon",29),p.\u0275\u0275elementContainerEnd(),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(8,"div",20)(9,"div",30),p.\u0275\u0275template(10,ha,6,5,"ng-container",31),p.\u0275\u0275template(11,mr,5,4,"ng-template",null,32,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(13,Fr,2,2,"div",33),p.\u0275\u0275elementEnd()()()),2&qt){const ae=it.$implicit,_e=it.index,mt=p.\u0275\u0275reference(12);p.\u0275\u0275attribute("data-qa","1713857669"+_e),p.\u0275\u0275advance(4),p.\u0275\u0275property("ngSwitch",null==ae?null:ae.status),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","current"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","add"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngSwitchCase","delete"),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngIf",null==ae?null:ae.position)("ngIfElse",mt),p.\u0275\u0275advance(3),p.\u0275\u0275property("ngIf",null==ae?null:ae.statusCaption)}}function Ro(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-button",38),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(mt.change167FzContacts())}),p.\u0275\u0275elementEnd()}}function ya(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-button",39),p.\u0275\u0275listener("clicked",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(mt.cancel167FzContacts())}),p.\u0275\u0275elementEnd()}}function oa(qt,it){1&qt&&p.\u0275\u0275element(0,"app-loader",40)}(0,$.gn)([(0,C.SQ)()],yo.prototype,"lang",void 0);class hr{constructor(it,ae,_e,mt,Vt,On,Rn){this.userDataService=it,this.router=ae,this.change167FzContactsService=_e,this.cdr=mt,this.documentService=Vt,this.toastCustomService=On,this.appConfigService=Rn,this.isLoading=!0,this.contact167DTOWithSettings=null,this.contacts167Fz=[],this.isCancelContactsAvailable=!1,this.isCreateContactsAvailable=!1,this.organization$=this.userDataService.getClientInfoOrganization(),this.CONTACTS_167_FZ_HINT="\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 161-\u0424\u0417 (\u0432 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0445\u0438\u0449\u0435\u043d\u0438\u044e \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432)",this.destroyed$=new T.x,this._isCreateAvailable=!1}ngOnInit(){this.appConfigService.settings$.pipe((0,Hn.n)(it=>!1===it.isLoaded),(0,I.R)(this.destroyed$)).subscribe(it=>{this._isCreateAvailable=!!it.ulSettings["REQUEST/CONTACT_167_CHANGE_AGREEMENT"],this.getContacts167Info()}),this.updateNotifications()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}change167FzContacts(){this.router.navigate(["settings/change-contacts-167fz"])}cancel167FzContacts(){this.isLoading=!0,this.cdr.markForCheck(),this.documentService.executeActionDocument(this.contact167DTOWithSettings.agreement.id,"cancel").pipe((0,ci.w)(()=>(this.getContacts167Info(),this.userDataService.getNotification())),(0,ze.K)(it=>(this.toastCustomService.errorHandle(it),(0,qe.of)(null)))).subscribe(()=>{this.isLoading=!1,this.cdr.markForCheck()})}getContacts167Info(){this.change167FzContactsService.getContacts167().pipe((0,j.q)(1),(0,I.R)(this.destroyed$)).subscribe({next:it=>{const ae=it?.agreement?.currentContactList.map(Vt=>({...Vt,status:"current"})),_e=it?.agreement?.contactListToDelete.map(Vt=>({...Vt,status:"delete"})),mt=it?.agreement?.contactListToAdd.map(Vt=>({...Vt,status:"add"}));this.contact167DTOWithSettings=it,this.isCancelContactsAvailable=it?.agreement?.actions?.includes("cancel"),this.contacts167Fz=[...ae,..._e,...mt],this.isCreateContactsAvailable=this._isCreateAvailable&&this.contacts167Fz.length>0,this.isLoading=!1,this.cdr.markForCheck()},error:it=>{this.toastCustomService.errorHandle(it),this.isLoading=!1,this.cdr.markForCheck()}})}updateNotifications(){this.userDataService.getNotification().subscribe()}static#e=this.\u0275fac=function(ae){return new(ae||hr)(p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(R.x),p.\u0275\u0275directiveInject(p.ChangeDetectorRef),p.\u0275\u0275directiveInject(wn.Z),p.\u0275\u0275directiveInject(P.j),p.\u0275\u0275directiveInject(gt._))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:hr,selectors:[["app-settings-company-card"]],decls:17,vars:15,consts:[["data-qa","1713857584",1,"settings-company-card"],["class","settings-company-card-block",4,"ngIf"],["data-qa","1713857644",1,"settings-company-card-block"],[1,"settings-company-card-block__header"],[1,"settings-company-card-block__header-text"],[1,"settings-company-card-block__header-hint"],["matTooltipClass","metib-tooltip small-fixed","data-qa","1658988194023",3,"matTooltip","matTooltipHideDelay","svgIcon"],["class","settings-company-card-block__info",4,"ngIf"],[1,"settings-company-card-block__cards"],[4,"ngFor","ngForOf"],[1,"settings-company-card-block__buttons"],["type","empty-bordered","text","Change",3,"clicked",4,"ngIf"],["type","empty-bordered","text","Request cancel",3,"clicked",4,"ngIf"],["class","loader",4,"ngIf"],[1,"settings-company-card-block"],["data-qa","1713857609",1,"settings-company-card-block__organization"],[1,"company-card"],[1,"company-card-left"],[1,"company-card-left__icon"],[1,"company-card-left__icon--green",3,"svgIcon"],[1,"company-card-right"],["data-qa","1713857634",1,"company-card-right-content"],[1,"company-card-right-content__text-bold"],[1,"company-card-right-content__text"],[4,"ngIf"],[1,"settings-company-card-block__info"],[3,"ngSwitch"],["class","company-card-left__icon--green",3,"svgIcon",4,"ngSwitchCase"],["class","company-card-left__icon--blue",3,"svgIcon",4,"ngSwitchCase"],["class","company-card-left__icon--red",3,"svgIcon",4,"ngSwitchCase"],[1,"company-card-right-content"],[4,"ngIf","ngIfElse"],["existingContactTpl",""],["class","company-card-right-status",3,"ngClass",4,"ngIf"],[1,"company-card-left__icon--blue",3,"svgIcon"],[1,"company-card-left__icon--red",3,"svgIcon"],[1,"contact-card-right-content__text"],[1,"company-card-right-status",3,"ngClass"],["type","empty-bordered","text","Change",3,"clicked"],["type","empty-bordered","text","Request cancel",3,"clicked"],[1,"loader"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0),p.\u0275\u0275template(1,pr,25,15,"div",1),p.\u0275\u0275pipe(2,"async"),p.\u0275\u0275elementStart(3,"div",2)(4,"div",3)(5,"div",4),p.\u0275\u0275text(6),p.\u0275\u0275pipe(7,"translate"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(8,"div",5),p.\u0275\u0275element(9,"mat-icon",6),p.\u0275\u0275elementEnd()(),p.\u0275\u0275template(10,Ua,2,0,"div",7),p.\u0275\u0275elementStart(11,"div",8),p.\u0275\u0275template(12,da,14,8,"app-simple-card",9),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(13,"div",10),p.\u0275\u0275template(14,Ro,1,0,"app-button",11),p.\u0275\u0275template(15,ya,1,0,"app-button",12),p.\u0275\u0275elementEnd()()(),p.\u0275\u0275template(16,oa,1,0,"app-loader",13)),2&ae&&(p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",p.\u0275\u0275pipeBind1(2,10,_e.organization$)),p.\u0275\u0275advance(5),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(7,12,"167-FZ Contacts",_e.lang)),p.\u0275\u0275advance(3),p.\u0275\u0275property("matTooltip",_e.CONTACTS_167_FZ_HINT)("matTooltipHideDelay",2e3)("svgIcon","question"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","for_send"===(null==_e.contact167DTOWithSettings||null==_e.contact167DTOWithSettings.agreement?null:_e.contact167DTOWithSettings.agreement.status)),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngForOf",_e.contacts167Fz),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",!(null!=_e.contact167DTOWithSettings&&null!=_e.contact167DTOWithSettings.agreement&&_e.contact167DTOWithSettings.agreement.id)&&_e.isCreateContactsAvailable),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.isCancelContactsAvailable),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",_e.isLoading))},dependencies:[n.mk,n.sg,n.O5,n.RF,n.n9,De.R,G,ce.r,i.Hw,d.gM,n.Ov,C.X$,vn.V],styles:['@charset "UTF-8";.settings-company-card[_ngcontent-%COMP%]{margin-top:32px;max-width:660px;display:flex;flex-direction:column;row-gap:40px}.settings-company-card-block[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings-company-card-block__header[_ngcontent-%COMP%]{margin-bottom:12px;display:flex;column-gap:12px}.settings-company-card-block__header-text[_ngcontent-%COMP%]{color:#080708;font-size:18px;font-style:normal;font-weight:700}.settings-company-card-block__header-hint[_ngcontent-%COMP%]{color:#88909b;display:flex;align-items:center}.settings-company-card-block__header-hint[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px;font-size:20px}.settings-company-card-block__header-hint[_ngcontent-%COMP%]:hover{color:#2f54eb}.settings-company-card-block__cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px}.settings-company-card-block__info[_ngcontent-%COMP%]{margin-bottom:12px;font-size:16px;line-height:22px;color:#444}.settings-company-card-block__buttons[_ngcontent-%COMP%]{margin-top:20px}.settings-company-card[_ngcontent-%COMP%]   .company-card[_ngcontent-%COMP%]{display:flex;column-gap:12px;font-size:14px}.settings-company-card[_ngcontent-%COMP%]   .company-card-left[_ngcontent-%COMP%]{display:flex;column-gap:12px}.settings-company-card[_ngcontent-%COMP%]   .company-card-left__icon[_ngcontent-%COMP%]{display:flex;align-items:center}.settings-company-card[_ngcontent-%COMP%]   .company-card-left__icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px}.settings-company-card[_ngcontent-%COMP%]   .company-card-left__icon--green[_ngcontent-%COMP%]{color:#00a843}.settings-company-card[_ngcontent-%COMP%]   .company-card-left__icon--blue[_ngcontent-%COMP%]{color:#2f54eb}.settings-company-card[_ngcontent-%COMP%]   .company-card-left__icon--red[_ngcontent-%COMP%]{color:#e23428}.settings-company-card[_ngcontent-%COMP%]   .company-card-right[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;column-gap:4px}.settings-company-card[_ngcontent-%COMP%]   .company-card-right-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px;line-height:20px;font-weight:400;color:#444}.settings-company-card[_ngcontent-%COMP%]   .company-card-right-content__text-bold[_ngcontent-%COMP%]{font-weight:600}.settings-company-card[_ngcontent-%COMP%]   .company-card-right-status[_ngcontent-%COMP%]{font-size:12px;font-weight:600;line-height:16px;background-color:#ebebeb;border-radius:4px;padding:4px 8px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;white-space:nowrap}.settings-company-card[_ngcontent-%COMP%]   .company-card-right-status.current[_ngcontent-%COMP%]{color:#00a843}.settings-company-card[_ngcontent-%COMP%]   .company-card-right-status.add[_ngcontent-%COMP%]{color:#2f54eb}.settings-company-card[_ngcontent-%COMP%]   .company-card-right-status.delete[_ngcontent-%COMP%]{color:#e23428}@media screen and (max-width: 768px){.settings-company-card[_ngcontent-%COMP%]   .company-card-right[_ngcontent-%COMP%]{flex-direction:column-reverse;row-gap:4px}}'],changeDetection:0})}function fr(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-tab",12),p.\u0275\u0275pipe(2,"translate"),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=it.$implicit,_e=it.index,mt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(1),p.\u0275\u0275propertyInterpolate("label",p.\u0275\u0275pipeBind2(2,4,ae.capture,mt.lang)),p.\u0275\u0275property("hidden",ae.hidden)("number",ae.number),p.\u0275\u0275attribute("data-qa","1657970698744"+_e)}}function br(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"app-tabs",10),p.\u0275\u0275listener("selectTab",function(mt){p.\u0275\u0275restoreView(ae);const Vt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(Vt.onSelectTab(mt))}),p.\u0275\u0275template(1,fr,3,7,"ng-container",11),p.\u0275\u0275elementEnd()}if(2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275property("initialIndex",ae.initialIndex)("currentIndex",ae.currentIndex)("numberDigitsLimit","no-limit"),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngForOf",ae.tabs)}}function Ia(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",13),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(ae.user)}}function wa(qt,it){if(1&qt&&p.\u0275\u0275element(0,"app-settings-login",17),2&qt){const ae=p.\u0275\u0275nextContext(3);p.\u0275\u0275property("login",ae.hiddenLogin)}}function Za(qt,it){if(1&qt){const ae=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",18)(1,"div",19)(2,"div",20),p.\u0275\u0275text(3),p.\u0275\u0275pipe(4,"translate"),p.\u0275\u0275elementStart(5,"span",21),p.\u0275\u0275text(6),p.\u0275\u0275pipe(7,"translate"),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(8,"div",22),p.\u0275\u0275text(9),p.\u0275\u0275pipe(10,"translate"),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(11,"app-button",23),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(ae);const mt=p.\u0275\u0275nextContext(3);return p.\u0275\u0275resetView(mt.twoStepAuth())}),p.\u0275\u0275pipe(12,"translate"),p.\u0275\u0275elementEnd()()}if(2&qt){const ae=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate1(" ",p.\u0275\u0275pipeBind2(4,5,"Two step auth on DBO",ae.lang),""),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(7,8,"New!",ae.lang)),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate(p.\u0275\u0275pipeBind2(10,11,"Connect two step auth",ae.lang)),p.\u0275\u0275advance(2),p.\u0275\u0275propertyInterpolate("text",p.\u0275\u0275pipeBind2(12,14,"Turn On",ae.lang)),p.\u0275\u0275property("disabled",!1)}}function ns(qt,it){if(1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275template(1,wa,1,1,"app-settings-login",14),p.\u0275\u0275element(2,"app-settings-password",15),p.\u0275\u0275template(3,Za,13,17,"div",16),p.\u0275\u0275elementContainerEnd()),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",ae.showSettingsLogin),p.\u0275\u0275advance(1),p.\u0275\u0275property("pass",ae.hiddenPass),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!1)}}function Pa(qt,it){1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-settings-sms-table"),p.\u0275\u0275elementContainerEnd())}function ar(qt,it){1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-settings-users-table"),p.\u0275\u0275elementContainerEnd())}function Sr(qt,it){1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-settings-company-card"),p.\u0275\u0275elementContainerEnd())}function ao(qt,it){1&qt&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275element(1,"app-settings-requests-table"),p.\u0275\u0275elementContainerEnd())}function Aa(qt,it){if(1&qt&&p.\u0275\u0275element(0,"app-settings-tariffs",24),2&qt){const ae=p.\u0275\u0275nextContext(2);p.\u0275\u0275property("declineDocsIds",ae.declineTariffsIds)}}function Je(qt,it){if(1&qt&&(p.\u0275\u0275elementStart(0,"div",3)(1,"div",4),p.\u0275\u0275template(2,br,2,4,"app-tabs",5),p.\u0275\u0275elementEnd(),p.\u0275\u0275template(3,Ia,2,1,"div",6),p.\u0275\u0275template(4,ns,4,3,"ng-container",7),p.\u0275\u0275template(5,Pa,2,0,"ng-container",7),p.\u0275\u0275template(6,ar,2,0,"ng-container",7),p.\u0275\u0275template(7,Sr,2,0,"ng-container",7),p.\u0275\u0275template(8,ao,2,0,"ng-container",7),p.\u0275\u0275template(9,Aa,1,1,"app-settings-tariffs",8),p.\u0275\u0275element(10,"app-loader",9),p.\u0275\u0275elementEnd()),2&qt){const ae=p.\u0275\u0275nextContext();p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",!ae.isLoading),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","security"===ae.activeTab),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","security"===ae.activeTab),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","sms-information"===ae.activeTab),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","skb-users"===ae.activeTab),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","company-card"===ae.activeTab),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","requests"===ae.activeTab),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf","tariffs"===ae.activeTab),p.\u0275\u0275advance(1),p.\u0275\u0275property("hidden",!ae.isLoading)}}(0,$.gn)([(0,C.SQ)()],hr.prototype,"lang",void 0);class Ke extends nt.H{constructor(it,ae,_e,mt){super(),this.userDataService=it,this.router=ae,this.activatedRoute=_e,this.appConfigService=mt,this.tabs=[{capture:"Security",value:"security"},{capture:"SKB users",value:"skb-users"},{capture:"Company card",value:"company-card"},{capture:"Applications",value:"requests"}],this.activeTab="security",this.initialIndex=0,this.isLoading=!0,this.user="",this.hiddenLogin="",this.hiddenPass="",this.showSettingsLogin=!1,this.currentPath=[{capture:"Settings page title",bold:!0}],this.userDataService.employeeInfo$.pipe((0,en.h)(Vt=>!!Vt)).subscribe(Vt=>{this.user=`${Vt.surname} ${Vt.name}`})}ngOnInit(){this.initSettings()}onSelectTab(it=0,ae=""){this.activeTab=this.tabs[it]?.value,this.currentIndex=it,this.router.navigate(["settings"],{queryParams:{tab:this.activeTab??""},queryParamsHandling:ae})}onClose(){this.isLoading=!1,this.router.navigate(["/"]).then()}twoStepAuth(){console.log(123)}returnHiddenText(it){let ae="";for(let _e=0;_e<it;_e++)ae+="*";return it>0?ae:"********"}initDefaultTab(){this.activatedRoute.queryParams.pipe((0,I.R)(this.$unsubscribe)).subscribe(it=>{const ae=it?.tab||this.tabs[0].value,_e=this.tabs?.findIndex(On=>On.value===ae);this.onSelectTab(ae&&-1!==_e?_e:0,it?.page||it?.size?"merge":"")})}initSettings(){const it=this.appConfigService.settings$.pipe((0,Hn.n)(_e=>!1===_e.isLoaded));(0,Io.$)([it,this.userDataService.loginPassLength$]).pipe((0,j.q)(1)).subscribe({next:([_e,mt])=>{this.showSettingsLogin=!_e.roles.has(tt.WL),this.hiddenLogin=this.returnHiddenText(mt.login),this.hiddenPass=this.returnHiddenText(mt.pass),_e.commonSettings.SECURITY_SETTINGS||(this.tabs=this.tabs.filter(Vt=>"Security"!==Vt.capture)),_e.commonSettings.SIGNER_INFORMATION||(this.tabs=this.tabs.filter(Vt=>"SKB users"!==Vt.capture)),_e.commonSettings.CONTACT_167||(this.tabs=this.tabs.filter(Vt=>"Company card"!==Vt.capture)),!_e.commonSettings.PHONE_CHANGE_STATEMENT&&!_e.commonSettings.CONTACT_167&&!_e.commonSettings.VIEW_DISMISSAL_REQUEST&&(this.tabs=this.tabs.filter(Vt=>"Applications"!==Vt.capture)),this.initDefaultTab(),this.isLoading=!1},error:()=>{this.tabs=[],this.isLoading=!1}})}static#e=this.\u0275fac=function(ae){return new(ae||Ke)(p.\u0275\u0275directiveInject(pt.M),p.\u0275\u0275directiveInject(a.F0),p.\u0275\u0275directiveInject(a.gz),p.\u0275\u0275directiveInject(gt._))};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:Ke,selectors:[["app-settings-main"]],features:[p.\u0275\u0275InheritDefinitionFeature],decls:3,vars:2,consts:[["data-qa","1657970671718",1,"settings"],["data-qa","1657970674587",3,"pathData"],["class","settings__content","data-qa","1657970677726",4,"ngIf"],["data-qa","1657970677726",1,"settings__content"],[1,"settings__tabs"],["data-qa","1657970681768",3,"initialIndex","currentIndex","numberDigitsLimit","selectTab",4,"ngIf"],["class","settings__user",4,"ngIf"],[4,"ngIf"],["data-qa","1657970725167",3,"declineDocsIds",4,"ngIf"],[3,"hidden"],["data-qa","1657970681768",3,"initialIndex","currentIndex","numberDigitsLimit","selectTab"],[4,"ngFor","ngForOf"],[3,"hidden","number","label"],[1,"settings__user"],["data-qa","1657970722190",3,"login",4,"ngIf"],["data-qa","1657970718996",3,"pass"],["class","settings__action-container","data-qa","1657970773533",4,"ngIf"],["data-qa","1657970722190",3,"login"],["data-qa","1657970773533",1,"settings__action-container"],[1,"settings__action-container-title"],[1,"settings__action-container-title_info"],[1,"settings__action-container-title_new"],[1,"settings__action-container-text"],["data-qa","1657970797179","type","medium-for-sign-gray",3,"disabled","text","click"],["data-qa","1657970725167",3,"declineDocsIds"]],template:function(ae,_e){1&ae&&(p.\u0275\u0275elementStart(0,"div",0),p.\u0275\u0275element(1,"app-path",1),p.\u0275\u0275template(2,Je,11,9,"div",2),p.\u0275\u0275elementEnd()),2&ae&&(p.\u0275\u0275advance(1),p.\u0275\u0275property("pathData",_e.currentPath),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",!_e.isLoading))},dependencies:[n.sg,n.O5,De.R,ve.n,Se.i,ce.r,we.l,jt,Ot,Oo,vr,yo,hr,C.X$],styles:['@charset "UTF-8";.settings[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings__timer[_ngcontent-%COMP%]{margin-top:32px;font-size:14px;font-weight:600;color:#444}.settings__content[_ngcontent-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__content[_ngcontent-%COMP%]{padding:0 16px 20px}}.settings__tabs[_ngcontent-%COMP%]{margin-bottom:5px;border-bottom:1px solid #dedede}@media screen and (max-width: 768px){.settings__tabs[_ngcontent-%COMP%]   app-tabs[_ngcontent-%COMP%]{display:block;overflow:scroll hidden}.settings__tabs[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}}.settings__user[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:32px 0}.settings[_ngcontent-%COMP%]     .page-title{border:none;height:auto;padding:32px 0;border-bottom:1px solid #dedede}.settings[_ngcontent-%COMP%]     .panel-form__button{display:inline-block;vertical-align:top;line-height:22px}.settings[_ngcontent-%COMP%]     .panel-form__button.bordered{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.settings__action-container[_ngcontent-%COMP%]{padding:16px 20px;margin-bottom:20px;background-color:#f1f2f2;border-radius:4px;display:flex;justify-content:space-between}@media screen and (min-width: 375px) and (max-width: 768px){.settings__action-container[_ngcontent-%COMP%]{padding:16px}}.settings__action-container[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin:auto 0;flex:0 1}.settings__action-container-title[_ngcontent-%COMP%]{font-size:18px;color:#444;font-weight:700;margin-right:32px;flex:0 1}.settings__action-container-title_new[_ngcontent-%COMP%]{padding:4px 8px;color:#00a843;border-radius:4px;font-size:10px;text-transform:uppercase;background-color:#00a84326;margin-left:12px}.settings__action-container-title_info[_ngcontent-%COMP%]{margin-bottom:16px}.settings__action-container-pass[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:4px}.settings__action-container-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:4px}.settings__requierments[_ngcontent-%COMP%]{font-size:16px;color:#88909b;line-height:20px;margin-bottom:40px}.settings__requierments-title[_ngcontent-%COMP%]{margin:0;padding:0}.settings__table-container[_ngcontent-%COMP%]{padding:35px 0 40px}.settings__title-table[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:25px;margin-bottom:24px;color:#080708}.settings__title-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__description-table[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;font-size:16px;line-height:22px;color:#444}.settings__description-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__requierments-list[_ngcontent-%COMP%]{padding-left:20px}.settings__requierments-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:list-item;list-style-type:disc}.settings__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.settings__form_length[_ngcontent-%COMP%]{font-size:16px}.settings__form-buttons[_ngcontent-%COMP%]{display:flex;margin-top:36px}.settings__form-buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}.settings__alert-block[_ngcontent-%COMP%]{padding-top:30px;max-width:64%;margin-bottom:30px}.settings__notification-title[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21px;color:#444;margin-bottom:20px}.settings__form-input-wrapper[_ngcontent-%COMP%]{position:relative}.settings__input-error-message[_ngcontent-%COMP%]{position:absolute;font-size:12px;line-height:15px;color:#d9291e;left:12px;top:calc(100% + 5px)}[_nghost-%COMP%]     .settings__input--error input.ng-dirty{border-color:#d9291e}[_nghost-%COMP%]     .settings__placeholder{font-size:16px}[_nghost-%COMP%]     .settings__input{width:100%;border-radius:0;border-left:none;border-right:none;border-top:none}[_nghost-%COMP%]     .settings__input-error{border-bottom:1px solid #e23428}.settings   [_nghost-%COMP%]     .disabled .panel-form__input{background:#f1f2f2}.settings   [_nghost-%COMP%]     .panel-form__input-svg-hamburger{cursor:pointer;top:calc(50% - 11px);width:24px;height:24px;right:18px}.settings__error[_ngcontent-%COMP%]{color:#e23428;font-size:14px;margin-top:4px}.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;width:624px;border-radius:8px;background:#ffffff}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]{width:auto}}.modal-sign[_ngcontent-%COMP%]   .panel-form__input.login[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0;border-left:none;border-right:none;border-top:none}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__header[_ngcontent-%COMP%]{padding:24px 16px}}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content[_ngcontent-%COMP%]{padding-bottom:87px}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 32px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 16px}}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#88909b;font-size:14px;margin:8px 32px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.modal-sign.modal-design.settings[_ngcontent-%COMP%]{max-width:624px!important}']})}(0,$.gn)([(0,C.SQ)()],Ke.prototype,"lang",void 0);const Qt=[{path:"",component:(()=>{class qt{static#e=this.\u0275fac=function(_e){return new(_e||qt)};static#t=this.\u0275cmp=p.\u0275\u0275defineComponent({type:qt,selectors:[["app-settings"]],decls:1,vars:0,template:function(_e,mt){1&_e&&p.\u0275\u0275element(0,"router-outlet")},dependencies:[a.lC],styles:['@charset "UTF-8";.settings[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.settings__timer[_ngcontent-%COMP%]{margin-top:30px;font-size:14px;font-weight:600;color:#444}.settings__content[_ngcontent-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}@media screen and (min-width: 375px) and (max-width: 768px){.settings__content[_ngcontent-%COMP%]{padding:0 16px 20px}}.settings__tabs[_ngcontent-%COMP%]{margin-bottom:5px;border-bottom:1px solid #dedede}.settings__user[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:32px 0}.settings[_ngcontent-%COMP%]     .page-title{border:none;height:auto;padding:32px 0;border-bottom:1px solid #dedede}.settings[_ngcontent-%COMP%]     .panel-form__button{display:inline-block;vertical-align:top}.settings[_ngcontent-%COMP%]     .panel-form__button.bordered{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.settings__action-container[_ngcontent-%COMP%]{padding:16px 20px;margin-bottom:20px;background-color:#f1f2f2;border-radius:4px;display:flex;justify-content:space-between}.settings__action-container[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin:auto 0}.settings__action-container-title[_ngcontent-%COMP%]{font-size:18px;color:#444;font-weight:700;margin-right:32px}.settings__action-container-title_new[_ngcontent-%COMP%]{padding:4px 8px;color:#00a843;border-radius:4px;font-size:10px;text-transform:uppercase;background-color:#00a84326;margin-left:12px}.settings__action-container-title_info[_ngcontent-%COMP%]{margin-bottom:16px}.settings__action-container-pass[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:4px}.settings__action-container-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-top:4px}.settings__requierments[_ngcontent-%COMP%]{font-size:16px;color:#88909b;line-height:20px;margin-bottom:40px}.settings__requierments-title[_ngcontent-%COMP%]{margin:0;padding:0}.settings__table-container[_ngcontent-%COMP%]{padding:35px 0 40px}.settings__title-table[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:25px;margin-bottom:24px;color:#080708}.settings__title-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__description-table[_ngcontent-%COMP%]{margin-top:20px;font-weight:400;font-size:16px;line-height:22px;color:#444}.settings__description-table.sms[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif}.settings__requierments-list[_ngcontent-%COMP%]{padding-left:20px}.settings__requierments-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:list-item;list-style-type:disc}.settings__form_length[_ngcontent-%COMP%]{font-size:16px;margin-bottom:24px}.settings__form-buttons[_ngcontent-%COMP%]{display:flex;margin-top:60px}.settings__form-buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}.settings__alert-block[_ngcontent-%COMP%]{padding-top:30px;max-width:64%;margin-bottom:30px}.settings__notification-title[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:21px;color:#444;margin-bottom:24px}.settings__form-input-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:24px}.settings__input-error-message[_ngcontent-%COMP%]{position:absolute;font-size:12px;line-height:15px;color:#d9291e;left:12px;top:calc(100% + 5px)}[_nghost-%COMP%]     .settings__input--error input.ng-dirty{border-color:#d9291e}[_nghost-%COMP%]     .settings__placeholder{font-size:16px}[_nghost-%COMP%]     .settings__input{width:100%;border-radius:0;border-left:none;border-right:none;border-top:none}[_nghost-%COMP%]     .settings__input-error{border-bottom:1px solid #e23428}.settings   [_nghost-%COMP%]     .disabled .panel-form__input{background:#f1f2f2}.settings   [_nghost-%COMP%]     .panel-form__input-svg-hamburger{cursor:pointer;top:calc(50% - 11px);width:24px;height:24px;right:18px}.settings__error[_ngcontent-%COMP%]{color:#e23428;font-size:14px;margin-top:4px}.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;min-height:294px;width:624px;border-radius:8px;background:#ffffff}.modal-sign[_ngcontent-%COMP%]   .panel-form__input.login[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0;border-left:none;border-right:none;border-top:none}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content[_ngcontent-%COMP%]{padding-bottom:87px}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:24px 32px}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#88909b;font-size:14px;margin:8px 32px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px;position:absolute;bottom:0;margin-bottom:24px;display:flex}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}']})}return qt})(),children:[{path:"",component:Ke},{path:"change-phone-number",component:po,canActivate:[y.w],data:{allowedServices:["REQUEST/PHONE_CHANGE"]}},{path:"change-contacts-167fz",component:q,canActivate:[y.w],data:{allowedServices:["REQUEST/CONTACT_167_CHANGE_AGREEMENT"]}},{path:"**",redirectTo:""}]}];let ti=(()=>{class qt{static#e=this.\u0275fac=function(_e){return new(_e||qt)};static#t=this.\u0275mod=p.\u0275\u0275defineNgModule({type:qt});static#n=this.\u0275inj=p.\u0275\u0275defineInjector({imports:[a.Bz.forChild(Qt),a.Bz]})}return qt})(),$i=(()=>{class qt{static#e=this.\u0275fac=function(_e){return new(_e||qt)};static#t=this.\u0275mod=p.\u0275\u0275defineNgModule({type:qt});static#n=this.\u0275inj=p.\u0275\u0275defineInjector({providers:[We.g,sn],imports:[n.ez,e.FormsModule,e.ReactiveFormsModule,B.N,a.Bz,_.m,L.h,w.B,m.u,x.D,l.q,i.Ps,ti,m.u,O.A,h.Q,d.AV,u.E]})}return qt})()},73224:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>m});var n=t(97582),e=t(36895),i=t(65938),d=t(80627),a=t(45897),u=t(16611),h=t(58138),l=t(94650);class m{constructor(O,L){this.data=O,this.dialogRef=L}onClose(){this.dialogRef.close(h.J.Cancel)}onClickButtonPrimary(){this.dialogRef.close(h.J.ButtonPrimary)}onClickButtonSecondary(){this.dialogRef.close(h.J.ButtonSecondary)}static#e=this.\u0275fac=function(L){return new(L||m)(l.\u0275\u0275directiveInject(i.WI),l.\u0275\u0275directiveInject(i.so))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:m,selectors:[["app-metib-dialog-simple"]],standalone:!0,features:[l.\u0275\u0275StandaloneFeature],decls:8,vars:16,consts:[[3,"title","closeEvent"],[1,"modal-content"],[3,"action1Text","action2Text","action1Event","action2Event"]],template:function(L,w){1&L&&(l.\u0275\u0275elementStart(0,"app-metib-modal-header",0),l.\u0275\u0275listener("closeEvent",function(){return w.onClose()}),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(2,"div",1),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"app-metib-modal-footer",2),l.\u0275\u0275listener("action1Event",function(){return w.onClickButtonPrimary()})("action2Event",function(){return w.onClickButtonSecondary()}),l.\u0275\u0275pipe(6,"translate"),l.\u0275\u0275pipe(7,"translate"),l.\u0275\u0275elementEnd()),2&L&&(l.\u0275\u0275property("title",l.\u0275\u0275pipeBind2(1,4,w.data.modalTitle,w.lang)),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind2(4,7,w.data.modalText,w.lang)),l.\u0275\u0275advance(2),l.\u0275\u0275property("action1Text",l.\u0275\u0275pipeBind2(6,10,w.data.buttonTextPrimary,w.lang))("action2Text",l.\u0275\u0275pipeBind2(7,13,w.data.buttonTextSecondary,w.lang)))},dependencies:[e.ez,d.K,a.X,u.qw,u.X$,i.Is],changeDetection:0})}(0,n.gn)([(0,u.SQ)()],m.prototype,"lang",void 0)},58138:(Ee,Q,t)=>{"use strict";t.d(Q,{J:()=>n,_:()=>e});var n=(()=>{return(i=n||(n={}))[i.Cancel=0]="Cancel",i[i.ButtonPrimary=1]="ButtonPrimary",i[i.ButtonSecondary=2]="ButtonSecondary",n;var i})();const e={panelClass:"metib-modal",backdropClass:"metib-modal",width:"35rem"}},20691:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>i});var n=t(98739),e=t(94650);let i=(()=>{class d extends n.ye{constructor(){super(...arguments),this.itemsPerPageLabel="\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435",this.nextPageLabel="\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f",this.previousPageLabel="\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f",this.firstPageLabel="\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",this.lastPageLabel="\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",this.getRangeLabel=this.getRangeLabelNew}getRangeLabelNew(u,h,l){if(0===l||0===h)return"0";const m=u*h;return`${m+1} - ${(m<(l=Math.max(l,0))?Math.min(m+h,l):m+h)-1} \u0438\u0437 ${l-1}`}static#e=this.\u0275fac=function(){let u;return function(l){return(u||(u=e.\u0275\u0275getInheritedFactory(d)))(l||d)}}();static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac})}return d})()},98202:(Ee,Q,t)=>{"use strict";t.d(Q,{I5:()=>x,N6:()=>e,Nw:()=>d,PJ:()=>l,Vs:()=>i,qH:()=>u,rV:()=>h,u:()=>m,wL:()=>n});var n=(()=>{return(O=n||(n={})).STATIC_BLACK="linear-gradient(#000, #000)",O.GRADIENT_BLUE="linear-gradient(270deg, #003AD2 0%, #0097EC 100%)",O.GRADIENT_GREEN="linear-gradient(270.23deg, #00A843 0%, #1FD071 100%)",O.GRADIENT_ORANGE="linear-gradient(90deg, #F39034 0%, #FF2727 100%)",O.STATIC_BLUE="linear-gradient(270deg, #003AD2 0%, #003AD2 100%)",O.STATIC_GRAY="linear-gradient(270deg, #88909B 0%, #88909B 100%)",n;var O})(),e=(()=>{return(O=e||(e={})).GRAY="var(--text-gray)",O.RED="var(--text-red-main)",O.BLUE="var(--text-blue)",O.GREEN="var(--text-green)",O.BLACK="var(--text-black)",e;var O})(),i=(()=>{return(O=i||(i={})).GRAY="gray",O.RED="red",O.BLUE="blue",O.GREEN="green",O.BLACK="black",i;var O})(),d=(()=>{return(O=d||(d={})).OPTIONS="OPTIONS",O.PACKAGES="PACKAGES",O.REQUESTS="REQUESTS",d;var O})();const u=new Map([["new",e.GRAY],["draft",e.GRAY],["cancel",e.RED],["disable",e.RED],["cancelled",e.RED],["decline",e.RED],["error",e.RED],["send",e.BLUE],["in_work",e.GREEN],["end",e.BLACK],["for_send",e.BLUE],["in_progress",e.BLUE],["for_send_abs",e.BLUE],["for_check_abs",e.BLUE],["for_confirm_checking",e.BLUE],["error_send_abs",e.BLUE],["cancelling",e.BLUE],["end_minio_send",e.GREEN],["end_minio_error",e.GREEN],["decline_cks_send",e.RED],["decline_cks_error",e.RED],["end_cks_send",e.GREEN],["end_cks_error",e.GREEN],["decline_minio_send",e.RED],["decline_minio_error",e.RED],["decline_bank_cks_send",e.RED],["decline_bank",e.RED],["check",e.BLUE],["revoke",e.RED],["accepted_cks_send",e.GREEN],["accepted_cks_error",e.GREEN],["accepted_minio_send",e.GREEN],["accepted_minio_error",e.GREEN],["accepted",e.GREEN],["accepted_check",e.GREEN],["wait_cancel",e.BLUE]]),h=new Map([["new",i.GRAY],["draft",i.GRAY],["cancel",i.RED],["disable",i.RED],["cancelled",i.RED],["decline",i.RED],["error",i.RED],["send",i.BLUE],["in_work",i.GREEN],["end",i.GREEN],["in_progress",i.BLUE],["for_send_abs",i.BLUE],["for_send",i.BLUE],["cancelling",i.BLUE],["end_minio_send",i.GREEN],["end_minio_error",i.GREEN],["decline_cks_send",i.RED],["decline_cks_error",i.RED],["end_cks_send",i.GREEN],["end_cks_error",i.GREEN],["decline_minio_send",i.RED],["decline_minio_error",i.RED],["decline_bank_cks_send",i.RED],["decline_bank_cks_error",i.RED],["decline_bank",i.RED],["check",i.BLUE],["revoke",i.RED],["accepted_cks_send",i.GREEN],["accepted_cks_error",i.GREEN],["accepted_minio_send",i.GREEN],["accepted_minio_error",i.GREEN],["accepted",i.GREEN]]);var l=(()=>{return(O=l||(l={})).ERROR="./assets/icons/msa_error.svg",O.WARNING="./assets/icons/msa_warning.svg",O.INFO="./assets/icons/msa_info.svg",l;var O})(),m=(()=>{return(O=m||(m={})).ERROR="error",O.WARNING="warning",O.INFO="info",m;var O})(),x=(()=>{return(O=x||(x={})).ERROR="rgba(255, 39, 39, .2)",O.WARNING="rgba(241, 200, 74, .2)",O.INFO="rgba(158, 183, 229, .2)",x;var O})()},37413:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>I});var n=t(36895),e=t(24006),i=t(65938),d=t(90782),a=t(97392),u=t(98739),h=t(10266),l=t(52523),m=t(51329),x=t(67795),O=t(17869),L=t(74471),w=t(99762),B=t(54215),_=t(84005),y=t(53305),$=t(77579),C=t(94650),T=t(16611);let j=(()=>{class F{constructor(X){this.translation=X,this.changes=new $.x,this.firstPageLabel="",this.itemsPerPageLabel=this.translation.translate("Items on page"),this.lastPageLabel="",this.nextPageLabel="",this.previousPageLabel=""}getRangeLabel(X,p,P){if(0===P)return"";const R=(X+1)*p;return this.translation.translate("Items in range",{from:X*p+1,to:R<P?R:P,count:P})}static#e=this.\u0275fac=function(p){return new(p||F)(C.\u0275\u0275inject(T.D7))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac})}return F})(),I=(()=>{class F{static#e=this.\u0275fac=function(p){return new(p||F)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:F});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({providers:[{provide:u.ye,useClass:j}],imports:[n.ez,B.m,O._,w.N,e.FormsModule,a.Ps,_.n,d.N6,u.TU,h.AV,e.ReactiveFormsModule,L.h,i.Is,y.P,l.g,m.E,x.QA]})}return F})()},66518:(Ee,Q,t)=>{"use strict";t.d(Q,{B:()=>O});var n=t(97582),e=t(94650),i=t(16611),d=t(13571),a=t(36895),u=t(75568),h=t(57823);function l(L,w){if(1&L){const B=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-metib-button",4),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(B);const y=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(y.sign())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&L){const B=e.\u0275\u0275nextContext();e.\u0275\u0275styleProp("justify-content",B.buttonHorizontalPositionFlex),e.\u0275\u0275property("isDisabled",B.useLoader&&B.spinner)("type",B.buttonType),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,5,"Sign",B.lang)," ")}}function m(L,w){1&L&&e.\u0275\u0275element(0,"app-loader",5)}const x=function(L){return{"modal-style":L}};class O{constructor(){this.inputClass="",this.showFieldError=!1,this.buttonHorizontalPositionFlex="center",this.useLoader=!1,this.useModalStyle=!1,this.isNewDesign=!1,this.buttonType="primary",this.documentsForSign=[],this.loader=new e.EventEmitter,this.resultEvent=new e.EventEmitter,this.resultWithDocument=new e.EventEmitter,this.buttonIsVisible=!0,this.buttonIsDisabled=!0,this.spinner=!1}getResult(w){let B;B=(w.errorText||w.error)&&w.signed?3:1===w.length?Math.abs(w[0].signStatus):2,this.resultEvent.emit(B),this.resultWithDocument.emit({resultStatus:B,document:w})}getMessage(w){w&&w.indexOf("Enter ")>-1&&(this.buttonIsVisible=!0,this.buttonIsDisabled=!1)}setLoader(w){this.spinner=w,this.loader.emit(w)}sign(){this.signComponent.signDocument(null,!1,this.additionalData)}static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:O,selectors:[["app-confirmation-block"]],viewQuery:function(B,_){if(1&B&&e.\u0275\u0275viewQuery(d.A,7),2&B){let y;e.\u0275\u0275queryRefresh(y=e.\u0275\u0275loadQuery())&&(_.signComponent=y.first)}},inputs:{inputClass:"inputClass",showFieldError:"showFieldError",buttonHorizontalPositionFlex:"buttonHorizontalPositionFlex",docModule:"docModule",docType:"docType",docId:"docId",errorWidth:"errorWidth",additionalData:"additionalData",useLoader:"useLoader",useModalStyle:"useModalStyle",isNewDesign:"isNewDesign",buttonType:"buttonType",documentsForSign:"documentsForSign"},outputs:{loader:"loader",resultEvent:"resultEvent",resultWithDocument:"resultWithDocument"},decls:4,vars:15,consts:[["data-qa","1657784699189",1,"document-sign__wrapper",3,"ngClass"],["data-qa","1657784709744",3,"showFieldError","errorWidth","inputClass","customLoader","docIds","docModule","docType","isModalDesign","showFieldsDescription","documentsForSign","loader","messageEvent","resultEvent"],["data-qa","1657784704893",3,"justify-content","isDisabled","type","clicked",4,"ngIf"],["class","loader",4,"ngIf"],["data-qa","1657784704893",3,"isDisabled","type","clicked"],[1,"loader"]],template:function(B,_){1&B&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-document-sign",1),e.\u0275\u0275listener("loader",function($){return _.setLoader($)})("messageEvent",function($){return _.getMessage($)})("resultEvent",function($){return _.getResult($)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(2,l,3,8,"app-metib-button",2),e.\u0275\u0275template(3,m,1,0,"app-loader",3),e.\u0275\u0275elementEnd()),2&B&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(13,x,_.useModalStyle)),e.\u0275\u0275advance(1),e.\u0275\u0275property("showFieldError",_.showFieldError)("errorWidth",_.errorWidth)("inputClass",_.inputClass)("customLoader",!0)("docIds",_.docId)("docModule",_.docModule)("docType",_.docType)("isModalDesign",_.useModalStyle)("showFieldsDescription",!0)("documentsForSign",_.documentsForSign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",_.buttonIsVisible),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",_.useLoader&&_.spinner))},dependencies:[a.mk,a.O5,u.R,d.A,h.n,i.X$],styles:['@charset "UTF-8";.document-sign__wrapper[_ngcontent-%COMP%]{position:relative}.document-sign__wrapper[_ngcontent-%COMP%]     app-dynamic-form-select .dynamic-select__fake{border-width:0 0 1px 0!important;box-shadow:none!important;border-style:solid;border-color:#000;border-radius:0}.document-sign__wrapper[_ngcontent-%COMP%]     app-dynamic-form-select .dynamic-select.active .dynamic-select__fake{box-shadow:none!important}.document-sign__wrapper[_ngcontent-%COMP%]     app-dynamic-form-input .dynamic-input__overlay{display:flex;justify-content:center}.document-sign__wrapper[_ngcontent-%COMP%]     app-dynamic-form-input .dynamic-input__placeholder{display:flex;justify-content:center}.document-sign__wrapper[_ngcontent-%COMP%]     app-dynamic-form-input .dynamic-input__input{width:240px;border-width:0 0 1px 0!important;box-shadow:none!important;border-style:solid;border-color:#003ad2;border-radius:0;margin-bottom:5px;text-align:center;font-weight:400;font-size:20px;line-height:33px}.document-sign__wrapper[_ngcontent-%COMP%]     app-dynamic-form-input .dynamic-input input{font-family:inherit}.document-sign__wrapper[_ngcontent-%COMP%]     app-dynamic-form-input .left-position{width:100%;text-align:left}.document-sign__wrapper[_ngcontent-%COMP%]   app-metib-button[_ngcontent-%COMP%]{display:flex;padding-top:15px}.document-sign__wrapper.modal-style[_ngcontent-%COMP%]{padding-top:14px}.document-sign__wrapper.modal-style[_ngcontent-%COMP%]     app-dynamic-form-select .dynamic-select__fake{border-width:0 0 1px 0!important;box-shadow:none!important;border-style:solid;border-color:#88909b;border-radius:0;color:#080708}.document-sign__wrapper.modal-style[_ngcontent-%COMP%]     app-dynamic-form-input .dynamic-input__overlay{display:flex;justify-content:center}.document-sign__wrapper.modal-style[_ngcontent-%COMP%]     app-dynamic-form-input .dynamic-input__input{width:100%;border-width:0 0 2px 0!important;box-shadow:none!important;border-style:solid;border-color:#88909b;border-radius:0;margin-bottom:8px;text-align:left;font-weight:400;font-size:16px;line-height:22px;height:56px;color:#080708}.document-sign__wrapper.modal-style[_ngcontent-%COMP%]   app-metib-button[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;padding-top:50px}.lds-dual-ring[_ngcontent-%COMP%]:after{content:" ";display:block;width:26px;height:26px;margin:8px;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:_ngcontent-%COMP%_lds-dual-ring 1.2s linear infinite}@keyframes _ngcontent-%COMP%_lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}']})}(0,n.gn)([(0,i.SQ)()],O.prototype,"lang",void 0)},98900:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>u});var n=t(97582),e=t(16611),i=t(94650),d=t(36895);function a(h,l){if(1&h&&(i.\u0275\u0275elementStart(0,"div")(1,"p"),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd()()),2&h){const m=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(m.stubCssClass),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(3,3,m.message,m.lang))}}class u{constructor(){this.text="The list is empty",this.display=!1,this.stubCssClass="empty-stub"}get message(){return this.text}static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:u,selectors:[["app-empty-stub"]],inputs:{text:"text",display:"display",stubCssClass:"stubCssClass"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"]],template:function(m,x){1&m&&i.\u0275\u0275template(0,a,4,6,"div",0),2&m&&i.\u0275\u0275property("ngIf",x.display)},dependencies:[d.O5,e.X$],styles:['@charset "UTF-8";.empty-stub[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:100px;margin-bottom:100px;justify-content:center}.empty-stub[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:27px;text-align:center}.empty-stub-dcb[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:100px;margin-bottom:68px;justify-content:center}.empty-stub-dcb[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:block;font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:18px;color:#88909b;text-align:center;margin:0}']})}(0,n.gn)([(0,e.SQ)()],u.prototype,"lang",void 0)},57823:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>d});var n=t(94650),e=t(36895);const i=["*"];let d=(()=>{class a{constructor(){this.isDisabled=!1,this.clicked=new n.EventEmitter}handleClick(h){this.clicked.emit(h)}ngOnInit(){}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["app-metib-button"]],inputs:{isDisabled:"isDisabled",type:"type"},outputs:{clicked:"clicked"},ngContentSelectors:i,decls:4,vars:2,consts:[["data-qa","1663074395452",3,"disabled","ngClass","click"]],template:function(l,m){1&l&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"button",0),n.\u0275\u0275listener("click",function(O){return m.handleClick(O)}),n.\u0275\u0275elementStart(1,"span")(2,"i"),n.\u0275\u0275projection(3),n.\u0275\u0275elementEnd()()()),2&l&&n.\u0275\u0275property("disabled",m.isDisabled)("ngClass",m.type)},dependencies:[e.mk],styles:['@charset "UTF-8";button[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:140px;min-height:42px;padding:0;color:#fff;line-height:42px;border:none;border-radius:4px;font-weight:600;font-size:14px;cursor:pointer;text-overflow:clip;background-color:transparent;outline:none}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button[_ngcontent-%COMP%]:disabled   span[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:disabled   i[_ngcontent-%COMP%]{cursor:not-allowed}span[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer}i[_ngcontent-%COMP%]{font-style:normal}.primary[_ngcontent-%COMP%]{background-color:#003ad2}.primary-new[_ngcontent-%COMP%]{background-color:#2f54eb;font-size:16px;padding:14px 28px;border-radius:4px;line-height:unset;min-width:unset;min-height:unset}.primary-new[_ngcontent-%COMP%]:disabled{opacity:.7}.primary-new[_ngcontent-%COMP%]:disabled   span[_ngcontent-%COMP%]{cursor:default}.white-new[_ngcontent-%COMP%]{background-color:#fff;color:#2f54eb;border:1px solid #2f54eb;border-radius:4px;padding:3px 28px;font-size:16px}.primary-lg[_ngcontent-%COMP%]{background-color:#003ad2;width:260px;height:56px;font-size:16px;line-height:unset;min-width:unset;min-height:unset;padding:13px 28px}.primary[_ngcontent-%COMP%]:disabled{background-color:#0097ec}.secondary[_ngcontent-%COMP%]{background-color:#0097ec}.cancel[_ngcontent-%COMP%]{background-color:#fff;color:#2f54eb;border:1px solid #2f54eb;border-radius:4px;padding:0 28px}.warning[_ngcontent-%COMP%]{background-color:#f3ac24}.success[_ngcontent-%COMP%]{background-color:#00a843}.disabled[_ngcontent-%COMP%]{background-color:#dedede;opacity:1}.disabled-lg[_ngcontent-%COMP%]{background-color:#003ad2;opacity:.5;width:260px;height:56px;font-size:16px}.gr-orange[_ngcontent-%COMP%]{background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.gr-primary[_ngcontent-%COMP%]{background:linear-gradient(270deg,#003ad2 0%,#0097ec 100%)}.link[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background-color:transparent}.link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:relative;background-color:transparent;font-weight:600;font-size:16px;line-height:22px;background-image:linear-gradient(270deg,#003ad2 0%,#003ad2 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";left:0;right:0;bottom:2px;height:1px}.link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover:before{background-image:linear-gradient(270deg,#003ad2 0%,#003ad2 100%)}.link-orange[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background-color:transparent}.link-orange[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:relative;background-color:transparent;font-weight:600;font-size:16px;line-height:22px;background-image:linear-gradient(90deg,#f39034 0%,#ff2727 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.link-orange[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";left:0;right:0;bottom:2px;height:1px}.link-orange[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover:before{background-image:linear-gradient(90deg,#f39034 0%,#ff2727 100%)}.link-blue[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background-color:transparent}.link-blue[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:relative;background-color:transparent;font-weight:600;font-size:16px;line-height:22px;background-image:linear-gradient(270deg,#003ad2 0%,#0097ec 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.link-blue[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";left:0;right:0;bottom:2px;height:1px}.link-blue[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover:before{background-image:linear-gradient(270deg,#003ad2 0%,#0097ec 100%)}.link-white[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background-color:transparent}.link-white[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:relative;background-color:transparent;font-weight:600;font-size:16px;line-height:22px;background-image:linear-gradient(#fff,#fff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.link-white[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";left:0;right:0;bottom:2px;height:1px}.link-white[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover:before{background-image:linear-gradient(#fff,#fff)}.link-black[_ngcontent-%COMP%]{color:#000;min-width:unset;margin-left:30px;margin-right:30px}.link-black[_ngcontent-%COMP%]:hover{text-decoration:underline}.dotted-blue[_ngcontent-%COMP%]{height:50px;width:270px;color:transparent}.dotted-blue[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border-radius:4px;border:2px dotted #ffffff;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(270deg,#003ad2 0%,#0097ec 100%) border-box}.dotted-blue[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:linear-gradient(270deg,#003ad2 0%,#0097ec 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.dotted-orange[_ngcontent-%COMP%]{height:50px;width:270px;color:transparent}.dotted-orange[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border-radius:4px;border:2px dotted #ffffff;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#f39034 0%,#ff2727 100%) border-box}.dotted-orange[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,#f39034 0%,#ff2727 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.dark-blue[_ngcontent-%COMP%]{background:#003ad2;border-radius:4px}']})}return a})()},79892:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){this.clicked=new n.EventEmitter,this.isWhite=!1}handleClick(a){this.clicked.emit(a)}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:i,selectors:[["app-metib-close"]],inputs:{isWhite:"isWhite"},outputs:{clicked:"clicked"},decls:2,vars:2,consts:[["data-qa","1663074402878",1,"metib-close",3,"click"],[1,"metib-close-cross"]],template:function(u,h){1&u&&(n.\u0275\u0275elementStart(0,"button",0),n.\u0275\u0275listener("click",function(m){return h.handleClick(m)}),n.\u0275\u0275element(1,"div",1),n.\u0275\u0275elementEnd()),2&u&&(n.\u0275\u0275advance(1),n.\u0275\u0275classProp("metib-close-cross--white",h.isWhite))},styles:['@charset "UTF-8";.metib-close[_ngcontent-%COMP%]{margin:0;padding:5px;border:none;background:none;cursor:pointer}.metib-close-cross[_ngcontent-%COMP%]{width:25px;height:25px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;outline:none}.metib-close-cross[_ngcontent-%COMP%]:before, .metib-close-cross[_ngcontent-%COMP%]:after{content:"";position:absolute;background-image:linear-gradient(90deg,#f39034 0%,#ff2727 100%);border-radius:2px}.metib-close-cross[_ngcontent-%COMP%]:before{height:3px;width:100%}.metib-close-cross[_ngcontent-%COMP%]:after{width:3px;height:100%}.metib-close-cross--white[_ngcontent-%COMP%]{width:23px;height:23px}.metib-close-cross--white[_ngcontent-%COMP%]:before, .metib-close-cross--white[_ngcontent-%COMP%]:after{background:white}.metib-close-cross--white[_ngcontent-%COMP%]:before{height:2px}.metib-close-cross--white[_ngcontent-%COMP%]:after{width:2px}']})}return i})()},62256:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>C});var n=t(94650),e=t(24006),i=t(8277),d=t(3238),a=t(15439),u=t.n(a),h=t(99602),l=t(18455),m=t(29203),x=t(36895),O=t(97392),L=t(10266);function w(T,j){if(1&T&&(n.\u0275\u0275elementStart(0,"span",7),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&T){const I=n.\u0275\u0275nextContext();n.\u0275\u0275classProp("title-item--not-empty",I.dateControl.value),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(I.title)}}function B(T,j){if(1&T&&(n.\u0275\u0275elementStart(0,"mat-icon",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&T){const I=n.\u0275\u0275nextContext();n.\u0275\u0275property("matTooltip",I.tooltipText)("matTooltipHideDelay",1500),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(I.tooltipIcon)}}const _=function(T){return{focus:T}},y=["*"],$={parse:{dateInput:"DD.MM.YYYY"},display:{dateInput:"DD.MM.YYYY",monthYearLabel:"DD.MM.YYYY",dateAllLabel:"LL",monthAllLabel:"DD.MM.YYYY"}};let C=(()=>{class T{constructor(){this.minDate=null,this.maxDate=null,this.appearance="legacy",this.title="\u0414\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f",this.hideTitle=!1,this.startView="month",this.placeholder="\u0414\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f",this.readOnly=!1,this.disabled=!1,this.filter="none",this.tooltipIcon="info",this.isInvalidDate=new n.EventEmitter,this.resetValidate=new n.EventEmitter,this.dateControl=new e.FormControl(null,[e.Validators.required]),this.isFocused=!1,this.startDate=u()().set({hour:12,minute:30,second:0}).subtract(1,"days").toDate(),this.propagateChange=I=>{},this.datepickerFilter=I=>{if("number"==typeof this.filter)return this.filter>0?u()(I).toDate()<=u()(this.startDate).add(this.filter+1,"days").toDate():u()(I).subtract(this.filter+1,"days").toDate()<=this.startDate;switch(this.filter){case"future":const F=u()(I).weekday();return u()(I).toDate()>=this.startDate&&5!==F&&6!==F;case"past":return u()(I).toDate()<=this.startDate;default:return!0}}}set dateValue(I){this._dateValue=u()(I).format("YYYY-MM-DD"),this.propagateChange(this._dateValue)}set customValue(I){I&&(this.dateValue=u()(I,"YYYY-MM-DD"))}set isRequired(I){I?this.dateControl.setValidators([e.Validators.required]):this.dateControl.clearValidators(),this.dateControl.updateValueAndValidity(),this.isInvalidDate.emit(this.dateControl.invalid)}validate(){if(this._dateValue&&this._dateValue.length){const I=this._dateValue.split(".").reverse().join("-");return u()(new Date).isAfter(u()(new Date(I),"DD.MM.YYYY").toDate())}return!1}ngOnInit(){$.display="multi-year"===this.startView?{dateInput:"YYYY",monthYearLabel:"YYYY",dateAllLabel:"LL",monthAllLabel:"YYYY"}:{dateInput:"DD.MM.YYYY",monthYearLabel:"DD.MM.YYYY",dateAllLabel:"LL",monthAllLabel:"DD.MM.YYYY"}}writeValue(I){if(""===I)return this._dateValue=null,this.dateControl.patchValue(this._dateValue),void(this.hideTitle=!0);if(void 0!==I){let F=I;Array.isArray(I)&&-1!==I.indexOf("-")&&(F=F.split("-").reverse().join(".")),this._dateValue=u()(F,"DD/MM/YYYY"),this.dateControl.patchValue(this._dateValue),this.hideTitle=!1}else this.hideTitle=!0}chosenYearHandle(I,F){"multi-year"===this.startView&&(this._dateValue=u()(I),this.dateControl.patchValue(this._dateValue),this.datePickersChangedMultiYear(this._dateValue),F.close())}closePicker(){this.isFocused=!1,this.dateControl.markAsUntouched(),this.dateControl.setErrors(null),this.resetValidate.emit()}openPicker(I){this.disabled||(this.resetValidate.emit(),this.isFocused=!0,this.readOnly&&I.open())}registerOnChange(I){this.propagateChange=I}registerOnTouched(I){this.onTouched=I}datePickersChanged(I){I&&(this.dateValue=u()(I.value,"DD/MM/YYYY"),this.isInvalidDate.emit(this.dateControl.invalid),this.hideTitle=!1)}datePickersChangedMultiYear(I){I&&(this.dateValue=u()(I,"DD.MM.YYYY"),this.isInvalidDate.emit(this.dateControl.invalid),this.hideTitle=!1)}onTouched(){}static#e=this.\u0275fac=function(F){return new(F||T)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:T,selectors:[["app-metib-datepicker"]],inputs:{autosize:"autosize",minDate:"minDate",maxDate:"maxDate",appearance:"appearance",title:"title",hideTitle:"hideTitle",startView:"startView",placeholder:"placeholder",readOnly:"readOnly",disabled:"disabled",filter:"filter",tooltipIcon:"tooltipIcon",tooltipText:"tooltipText",customValue:"customValue",isRequired:"isRequired"},outputs:{isInvalidDate:"isInvalidDate",resetValidate:"resetValidate"},features:[n.\u0275\u0275ProvidersFeature([{provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>T),multi:!0},{provide:e.NG_VALIDATORS,useExisting:T,multi:!0},{provide:d._A,useClass:i.t7,deps:[d.Ad,i.o8]},{provide:d.sG,useValue:$}])],ngContentSelectors:y,decls:8,vars:20,consts:[["appearance","fill",3,"ngClass","click"],["class","title-item",3,"title-item--not-empty",4,"ngIf"],["autocomplete","off","matInput","",3,"formControl","min","max","matDatepickerFilter","matDatepicker","placeholder","readonly","dateInput"],["matTooltipClass","metib-tooltip small-fixed","fontSet","material-symbols-rounded","class","metib-datepicker-tooltip-icon","data-qa","1658988194023",3,"matTooltip","matTooltipHideDelay",4,"ngIf"],["matSuffix","",3,"disabled","for","click"],["data-qa","1657868217753",3,"startView","panelClass","closed","yearSelected"],["picker",""],[1,"title-item"],["matTooltipClass","metib-tooltip small-fixed","fontSet","material-symbols-rounded","data-qa","1658988194023",1,"metib-datepicker-tooltip-icon",3,"matTooltip","matTooltipHideDelay"]],template:function(F,z){if(1&F){const X=n.\u0275\u0275getCurrentView();n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"mat-form-field",0),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(X);const P=n.\u0275\u0275reference(6);return n.\u0275\u0275resetView(z.openPicker(P))}),n.\u0275\u0275template(1,w,2,3,"span",1),n.\u0275\u0275elementStart(2,"input",2),n.\u0275\u0275listener("dateInput",function(P){return z.datePickersChanged(P)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(3,B,2,3,"mat-icon",3),n.\u0275\u0275elementStart(4,"mat-datepicker-toggle",4),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(X);const P=n.\u0275\u0275reference(6);return n.\u0275\u0275resetView(z.openPicker(P))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"mat-datepicker",5,6),n.\u0275\u0275listener("closed",function(){return z.closePicker()})("yearSelected",function(P){n.\u0275\u0275restoreView(X);const E=n.\u0275\u0275reference(6);return n.\u0275\u0275resetView(z.chosenYearHandle(P,E))}),n.\u0275\u0275elementEnd()(),n.\u0275\u0275projection(7)}if(2&F){const X=n.\u0275\u0275reference(6);n.\u0275\u0275classProp("disabled-datepicker",z.disabled)("autosize",z.autosize),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(18,_,z.isFocused)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!z.hideTitle),n.\u0275\u0275advance(1),n.\u0275\u0275property("formControl",z.dateControl)("min",z.minDate)("max",z.maxDate)("matDatepickerFilter",z.datepickerFilter)("matDatepicker",X)("placeholder",z.placeholder)("readonly",z.readOnly),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",z.tooltipText&&z.tooltipIcon),n.\u0275\u0275advance(1),n.\u0275\u0275property("disabled",z.disabled)("for",X),n.\u0275\u0275advance(1),n.\u0275\u0275propertyInterpolate1("panelClass","",z.appearance,"-datepicker"),n.\u0275\u0275property("startView",z.startView)}},dependencies:[e.DefaultValueAccessor,e.NgControlStatus,h.Mq,h.hl,h.nW,l.v_,l.nX,m.k0,e.FormControlDirective,x.mk,x.O5,O.Hw,L.gM],styles:['@charset "UTF-8";[_nghost-%COMP%]     .mat-form-field{margin:10px 0 5px;width:320px;position:relative}@media (max-width: 768px){[_nghost-%COMP%]     .mat-form-field{width:100%}}[_nghost-%COMP%]     .mat-form-field.disabled-datepicker{pointer-events:none;background-color:#f1f2f2}[_nghost-%COMP%]     .mat-form-field.disabled-datepicker .mat-form-field-underline:before{border-bottom:1px solid #dedede!important}[_nghost-%COMP%]     .mat-form-field.focus .mat-form-field-underline:before{background-color:#2f54eb!important}[_nghost-%COMP%]     .mat-form-field.focus .mat-form-field-ripple{opacity:0!important}[_nghost-%COMP%]     .mat-form-field.focus .mat-datepicker-toggle-default-icon{fill:#2f54eb!important}[_nghost-%COMP%]     .mat-form-field.ng-invalid.ng-touched .mat-form-field-underline:before{background-color:#e23428!important;height:1px!important}[_nghost-%COMP%]     .mat-form-field.ng-invalid.ng-touched .mat-datepicker-toggle-default-icon{fill:#e23428!important}[_nghost-%COMP%]     .mat-form-field.autosize{width:100%;margin-right:0}[_nghost-%COMP%]     .mat-form-field.autosize.my-period-dates-calendar, [_nghost-%COMP%]     .mat-form-field.autosize .mat-form-field-flex{height:100%;width:100%;overflow:hidden}[_nghost-%COMP%]     .mat-form-field.autosize.my-period-dates-calendar .mat-form-field-wrapper{height:100%;width:100%}[_nghost-%COMP%]     .mat-form-field mat-datepicker-toggle svg{display:block}[_nghost-%COMP%]     .mat-form-field .mat-datepicker-toggle.mat-datepicker-toggle-active{color:#2f54eb}[_nghost-%COMP%]     .ng-touched .ng-invalid .mat-form-field-label{color:#e23428}[_nghost-%COMP%]     .ng-touched .ng-invalid .mat-focused{display:none}[_nghost-%COMP%]     .ng-touched .ng-invalid .mat-form-field-underline:before{background-color:#e23428}[_nghost-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-flex{min-height:61px;padding:10px 0 0!important;background-color:transparent;width:100%;overflow:hidden}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-infix{padding:19px 34px 8px 12px;border-top:0;margin-top:4px;font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-infix .title-item{position:absolute;color:#88909b;font-size:12px;box-sizing:border-box;width:100%;padding:1px 34px 0 12px;left:0;top:-8px;display:none}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-infix .title-item.title-item--not-empty{display:block}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-infix .mat-input-element::placeholder{color:#88909b;font-size:16px;line-height:22px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:400}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-suffix{top:6px;padding-right:4px}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-underline{position:initial}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-underline:before{height:1px;background-color:#88909b}[_nghost-%COMP%]     .mat-form-field-underline{position:initial}[_nghost-%COMP%]     .mat-form-field-underline:before{background-color:#88909b}[_nghost-%COMP%]     .mat-form-field-subscript-wrapper{position:initial;padding-left:0}[_nghost-%COMP%]     .dcb-datepicker{height:auto!important;width:288px!important}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-controls{margin:6px 0 8px}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-previous-button{order:1}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-period-button{order:2;color:#222;padding:0 16px 0 0;font-size:14px;line-height:19px;font-weight:600;text-transform:lowercase}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-period-button:first-letter{text-transform:uppercase}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-next-button{order:3}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-spacer{order:4}[_nghost-%COMP%]     .dcb-datepicker .mat-icon-button{color:#222}[_nghost-%COMP%]     .dcb-datepicker .mat-icon-button:after{margin:14.5px}[_nghost-%COMP%]     .dcb-datepicker .mat-icon-button[disabled]{color:#88909b}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-arrow{border-top-color:#8b9caa;margin-left:8px}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-content{padding:0 18px 18px}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-table-header th{color:#88909b;font-size:12px;text-transform:uppercase;padding:0 0 10px}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-table-header-divider{display:none}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-body-label{visibility:hidden}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-body-label[colspan="7"]{display:none}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-body-cell-content{color:#222;font-size:14px;line-height:19px;width:100%;height:100%}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-body-selected{color:#fff;background-color:#003ad2}[_nghost-%COMP%]     .dcb-datepicker .mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:#88909b}  app-metib-datepicker{position:relative}  app-metib-datepicker mat-error{margin:0;padding-left:12px}  app-metib-datepicker.ng-touched.ng-invalid .mat-datepicker-toggle-default-icon{fill:#e23428!important}  app-metib-datepicker.ng-touched.ng-invalid .mat-form-field-underline:before{background-color:#e23428!important;bottom:0;height:1px}  app-metib-datepicker.ng-touched.ng-invalid .mat-form-field-underline .mat-form-field-ripple{background-color:#e23428!important;bottom:0;height:1px}  app-metib-datepicker .mat-form-field-invalid .mat-datepicker-toggle-default-icon{fill:#e23428!important}  app-metib-datepicker .mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{background-color:#e23428!important;bottom:0;height:1px}  app-metib-datepicker.error .mat-datepicker-toggle-default-icon{fill:#e23428!important}  app-metib-datepicker.error .mat-form-field-underline:before{background-color:#e23428!important}  app-metib-datepicker.error .mat-form-field-underline .mat-form-field-ripple{background-color:#e23428!important;bottom:0;height:1px}  app-metib-datepicker .mat-form-field-underline:before{background-color:#88909b!important;height:1px}.metib-datepicker-tooltip-icon[_ngcontent-%COMP%]{position:absolute;top:14px;right:3px;color:#88909b}.metib-datepicker-tooltip-icon[_ngcontent-%COMP%]:hover{color:#2f54eb}']})}return T})()},59848:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>l});var n=t(36895),e=t(24006),i=t(99602),d=t(97392),a=t(29203),u=t(10266),h=t(94650);let l=(()=>{class m{static#e=this.\u0275fac=function(L){return new(L||m)};static#t=this.\u0275mod=h.\u0275\u0275defineNgModule({type:m});static#n=this.\u0275inj=h.\u0275\u0275defineInjector({imports:[e.FormsModule,i.FA,a.x4,e.ReactiveFormsModule,n.ez,d.Ps,u.AV]})}return m})()},84005:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>B});var n=t(36895),e=t(24006),i=t(97392),d=t(84385),a=t(10266),u=t(16611),h=t(78895),l=t(76264),m=t(99762),x=t(36561),O=t(48038),L=t(59848),w=t(94650);let B=(()=>{class _{static#e=this.\u0275fac=function(C){return new(C||_)};static#t=this.\u0275mod=w.\u0275\u0275defineNgModule({type:_});static#n=this.\u0275inj=w.\u0275\u0275defineInjector({imports:[n.ez,u.qw,l.o,e.FormsModule,O.Y,m.N,h.q,L.R,e.ReactiveFormsModule,x.D,d.LD,i.Ps,a.AV]})}return _})()},16304:(Ee,Q,t)=>{"use strict";t.d(Q,{w:()=>X});var n=t(97582),e=t(94650),i=t(24006),d=t(67795),a=t(16611),u=t(31889),h=t(36895),l=t(69245),m=t(11260),x=t(59549),O=t(97392);const L=["input"];function w(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",14)(1,"b"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(E.appendSymbol)}}function B(p,P){1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",15),e.\u0275\u0275text(1,"task_alt"),e.\u0275\u0275elementEnd())}function _(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"input",10,11),e.\u0275\u0275listener("blur",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!1))})("focus",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!0))})("keydown",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleKeyDown(ne))})("keypress",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleEnterKey(ne))})("ngModelChange",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.change())})("paste",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handlePasteEvent(ne))})("ngModelChange",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.value=ne)}),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,w,3,1,"div",12),e.\u0275\u0275template(5,B,2,0,"mat-icon",13),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("append-group",E.withAppend),e.\u0275\u0275property("appTextMask",E.mask.TextMask),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("dynamic-input__input--with-icon",E.hasCloseIcon),e.\u0275\u0275propertyInterpolate("title",E.value),e.\u0275\u0275property("ngModel",E.value)("disabled",E.disabled)("tabindex",E.tabIndex),e.\u0275\u0275attribute("data-qa",null==E.field?null:E.field.dataQa)("maxlength",E.maxlengthWithMask)("minlength",E.minLength)("placeholder",e.\u0275\u0275pipeBind2(3,17,E.placeholder||(E.component?E.component.placeholder:""),E.lang))("type",E.type)("autocomplete",E.autocomplete),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",E.withAppend),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.showConfirmedIcon)}}function y(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",14)(1,"b"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(E.appendSymbol)}}function $(p,P){1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",15),e.\u0275\u0275text(1,"task_alt"),e.\u0275\u0275elementEnd())}function C(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",16)(1,"input",17,11),e.\u0275\u0275listener("blur",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!1))})("focus",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!0))})("keydown",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleKeyDown(ne))})("keypress",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleEnterKey(ne))})("ngModelChange",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.change())})("paste",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handlePasteEvent(ne))})("ngModelChange",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.value=ne)}),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,y,3,1,"div",12),e.\u0275\u0275template(5,$,2,0,"mat-icon",13),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("append-group",E.withAppend),e.\u0275\u0275advance(1),e.\u0275\u0275classMap(E.inputClass),e.\u0275\u0275classProp("dynamic-input__input--with-icon",E.hasCloseIcon),e.\u0275\u0275propertyInterpolate("title",E.value),e.\u0275\u0275property("ngModel",E.value)("disabled",E.disabled)("tabindex",E.tabIndex),e.\u0275\u0275attribute("data-qa",null==E.field?null:E.field.dataQa)("maxlength",E.maxLength)("minlength",E.minLength)("placeholder",e.\u0275\u0275pipeBind2(3,18,E.placeholder||(E.component?E.component.placeholder:""),E.lang))("type",E.type)("autocomplete",E.autocomplete),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",E.withAppend),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.showConfirmedIcon)}}function T(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",18),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",E.hint&&E.hint.type?E.hint.type:null),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(E.hint.text)}}function j(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"mat-hint",19),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",E.symbolCounter,"/",E.maxLength,"")}}function I(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.resetInput())}),e.\u0275\u0275text(1,"\u2716"),e.\u0275\u0275elementEnd()}}function F(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",21),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.input.nativeElement.focus())}),e.\u0275\u0275element(1,"app-svg-icon",22),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("icon",E.icon)}}const z={provide:i.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>X),multi:!0};class X extends u.C{constructor(P){super(),this.cdr=P,this.titlePrefix="",this.title="",this.placeholder="",this.hide=!1,this.withAppend=!1,this.appendSymbol="",this.hideTitle=!1,this.hasCloseIcon=!1,this.type="text",this.appearance="legacy",this.showConfirmedIcon=!1,this.keyDownEvent=new e.EventEmitter,this.focusChange=new e.EventEmitter,this.valueWithoutMask="",this.focused=!1,this.specKeys=["Backspace","Delete","Del","ArrowLeft","Left","ArrowRight","Right"]}get disabled(){return this.isDisabled}get tabIndex(){return this.disabled||this.hide?-1:0}get maskExist(){return this.mask&&this.mask.TextMask}get isFilterExist(){return this.filter&&Boolean(this.filter.textFilter)}get symbolCounter(){return this.value?!this.valueWithoutMask&&this.maskExist&&this.mask.stripMask?this.stripMask(this.value).length:this.maskExist&&this.mask.stripMask?this.valueWithoutMask.length:this.value.length:0}get maxlengthWithMask(){return this.maskExist&&!this.value?null:this.maxLength+(this.maskExist&&this.mask.stripMask&&this.value?this.value.length-this.valueWithoutMask.length:0)}ngOnInit(){this.inputClass=`dynamic-input__input ${this.cssClass?this.cssClass:""}`,this.placeholder||(this.placeholder=this.title)}onInput(){this.field&&this.emitEvent.emit({fieldName:this.field.name,eventType:"input"})}registerOnTouched(P){this.onTouched=P}registerOnChange(P){this.onModelChange=P}writeValue(P){if(this.mask&&this.mask.TextMask&&!this.mask.disableConformToMask&&P)try{P=(0,d.xm)(P+"",this.mask.TextMask,{guide:!1}).conformedValue}catch{}this.value=P}setDisabledState(P){this.isDisabled=P}change(){setTimeout(P=>{let E=this.input.nativeElement.value+"";E&&this.maskExist&&this.mask.stripMask&&(E=this.stripMask(E),this.valueWithoutMask=E,this.cdr.detectChanges()),this.onTouched(),this.onModelChange(E)})}filterValue(P){return(P.match(this.filter.textFilter)||[]).join("")}stripMask(P){let E="function"==typeof this.mask.TextMask?this.mask.TextMask(P):this.mask.TextMask;const R=this.mask.decimalSymbol?this.mask.decimalSymbol:"amount"===this.mask.type?".":null;return R&&(E=E.filter(ne=>"[]"!==ne)),P.split("").reduce((ne,G,ce)=>"string"!=typeof E[ce]||R&&E[ce]===R?ne+G:ne,"")}resetInput(){this.value="",this.onTouched(),this.onModelChange(this.value)}setFocus(P,E){if(this.focused=E,this.focusChange.emit(E),this.focused&&(this.onTouched(),this.mask&&this.mask.TextMask&&!this.value)){let R={};try{R=(0,d.xm)(R+"",this.mask.TextMask,{guide:!1})}catch{}"undefined"!==R.conformedValue&&(this.value=R.conformedValue)}}handleEnterKey(P){"Enter"===P.key&&this.input.nativeElement.blur()}handlePasteEvent(P){let E=(P.clipboardData||P.originalEvent.clipboardData).getData("text");if(this.mask&&"amount"===this.mask.type){if(P.preventDefault(),"string"==typeof E&&(E=E.trim().replace(/['"]/g,""),/^\d+[,.]?\d+/.test(E))){E=E.replace(",",".");const R=E.split("."),ne=R[0].split("").reverse();let G="";for(let ce=0;ce<ne.length;ce++)G+=ne[ce]+((ce+1)%3==0?" ":"");G=G.split("").reverse().join("").trim(),this.input.nativeElement.value=G+(R[1]?`.${R[1]}`:""),this.change()}}else if("string"==typeof E){if(E=E.trim(),P.preventDefault(),this.mask&&Array.isArray(this.mask.TextMask))this.writeValue(E);else{const R=this.input.nativeElement,ne=R.selectionStart,G=R.selectionEnd,ce=R.value,xe=ne+E.length;E=ce.substring(0,ne)+E+ce.substring(G,ce.length),(this.component?.maxlength||this.maxLength)&&(E=E.substring(0,this.component?.maxlength??this.maxLength)),R.value=E,R.setSelectionRange(xe,xe),this.value=E}this.change()}}handleKeyDown(P){if(this.keyDownEvent.emit(P),("comma"===P.code.toLowerCase()||"period"===P.code.toLowerCase()||188===P.keyCode||","===P.key||227===P.which)&&this.mask&&"amount"===this.mask.type&&(P.target.value=P.target.value.substr(0,P.target.value.length)+"."),this.isFilterExist){if(this.specKeys.indexOf(P.key)>=0)return;this.filterValue(P.key).length||(P.preventDefault(),P.stopPropagation())}}onTouched(){}onModelChange(P){}static#e=this.\u0275fac=function(E){return new(E||X)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:X,selectors:[["app-metib-input"]],viewQuery:function(E,R){if(1&E&&e.\u0275\u0275viewQuery(L,5),2&E){let ne;e.\u0275\u0275queryRefresh(ne=e.\u0275\u0275loadQuery())&&(R.input=ne.first)}},hostBindings:function(E,R){1&E&&e.\u0275\u0275listener("blur",function(){return R.onTouched()})("input",function(){return R.onInput()})},inputs:{config:"config",component:"component",select:"select",filter:"filter",visual:"visual",field:"field",titlePrefix:"titlePrefix",title:"title",placeholder:"placeholder",mask:"mask",hint:"hint",minLength:"minLength",maxLength:"maxLength",cssClass:"cssClass",hide:"hide",withAppend:"withAppend",appendSymbol:"appendSymbol",hideTitle:"hideTitle",hasCloseIcon:"hasCloseIcon",type:"type",icon:"icon",autocomplete:"autocomplete",readonly:"readonly",appearance:"appearance",showConfirmedIcon:"showConfirmedIcon"},outputs:{keyDownEvent:"keyDownEvent",focusChange:"focusChange"},features:[e.\u0275\u0275ProvidersFeature([z]),e.\u0275\u0275InheritDefinitionFeature],decls:12,vars:22,consts:[[1,"dynamic-input",3,"ngClass"],[1,"dynamic-input__title",3,"hidden"],["class","dynamic-input__overlay",3,"appTextMask","append-group",4,"ngIf"],["class","dynamic-input__overlay",3,"append-group",4,"ngIf"],[1,"dynamic-input__bottom-info"],["class","dynamic-input__hint",3,"ngClass",4,"ngIf"],["align","end","class","dynamic-input__mat-hint",4,"ngIf"],["class","dynamic-input__close","data-qa","1663074545230",3,"click",4,"ngIf"],["class","dynamic-input__icon-wrap","data-qa","1663074548978",3,"click",4,"ngIf"],[1,"dynamic-input__overlay",3,"appTextMask"],[1,"dynamic-input__input",3,"ngModel","disabled","tabindex","title","blur","focus","keydown","keypress","ngModelChange","paste"],["input",""],["class","append-icon",4,"ngIf"],["class","confirmed-icon",4,"ngIf"],[1,"append-icon"],[1,"confirmed-icon"],[1,"dynamic-input__overlay"],[3,"ngModel","disabled","tabindex","title","blur","focus","keydown","keypress","ngModelChange","paste"],[1,"dynamic-input__hint",3,"ngClass"],["align","end",1,"dynamic-input__mat-hint"],["data-qa","1663074545230",1,"dynamic-input__close",3,"click"],["data-qa","1663074548978",1,"dynamic-input__icon-wrap",3,"click"],["svgClass","dynamic-input__icon",3,"icon"]],template:function(E,R){1&E&&(e.\u0275\u0275elementStart(0,"label",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,_,6,20,"div",2),e.\u0275\u0275template(6,C,6,21,"div",3),e.\u0275\u0275elementStart(7,"div",4),e.\u0275\u0275template(8,T,2,2,"div",5),e.\u0275\u0275template(9,j,2,2,"mat-hint",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,I,2,0,"div",7),e.\u0275\u0275template(11,F,2,1,"div",8),e.\u0275\u0275elementEnd()),2&E&&(e.\u0275\u0275classProp("dynamic-input--active",R.focused)("dynamic-input--disabled",R.disabled)("dynamic-input--not-empty",!!R.value),e.\u0275\u0275property("ngClass",R.appearance),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",R.hideTitle),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind2(3,16,R.titlePrefix,R.lang),"",e.\u0275\u0275pipeBind2(4,19,R.title,R.lang),""),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",R.maskExist),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!R.maskExist),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",R.hint),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.maxLength||0===R.maxLength),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.hasCloseIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.icon))},dependencies:[h.mk,h.O5,l.h,i.DefaultValueAccessor,i.NgControlStatus,i.MinLengthValidator,i.MaxLengthValidator,i.NgModel,m.b,x.bx,O.Hw,a.X$],styles:['@charset "UTF-8";.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:7px;width:10px;fill:#88909b;cursor:pointer}[_nghost-%COMP%]{margin:10px 10px 10px 0;display:inline-block}[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]{display:block;position:relative}[_nghost-%COMP%]   .dynamic-input__bottom-info[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .dynamic-input__mat-hint[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:.8em;color:#88909b;flex-grow:1;text-align:right;display:block;margin-top:3px}[_nghost-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{transition:color .1s ease;position:absolute;box-sizing:border-box;width:100%;padding:12px 13px 0 0;left:0;top:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .dynamic-input__overlay.append-group[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .dynamic-input__overlay.append-group[_ngcontent-%COMP%]   .append-icon[_ngcontent-%COMP%]{padding:16px 26px;background:transparent;border:none;border-bottom:1px solid #444444;font-size:22px;margin-left:-5px;display:flex;align-items:center;color:#004785}[_nghost-%COMP%]   .dynamic-input__overlay[_ngcontent-%COMP%]   .confirmed-icon[_ngcontent-%COMP%]{position:absolute;font-size:21px;width:21px;height:21px;top:47%;right:11px;color:#00a843}[_nghost-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{transition:border .1s ease,box-shadow .1s ease,background .1s ease;width:100%;border:none;border-bottom:1px solid #444444;outline:none;padding:37px 0 12px;min-height:50px;background-color:#fff;font-size:16px;box-sizing:border-box}[_nghost-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]::placeholder{color:#88909b}[_nghost-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]::-moz-placeholder{font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]:-moz-placeholder{font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]:-ms-input-placeholder{font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]   .dynamic-input__input--with-icon[_ngcontent-%COMP%]{padding-right:36px}[_nghost-%COMP%]   .dynamic-input__input.text-elipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}[_nghost-%COMP%]   .dynamic-input__counter[_ngcontent-%COMP%]{position:absolute;right:5px;bottom:5px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:.8em;color:#88909b}[_nghost-%COMP%]   .dynamic-input__close[_ngcontent-%COMP%]{position:absolute;font-size:14px;top:calc(50% - 7px);right:15px;cursor:pointer;color:#88909b}[_nghost-%COMP%]   .dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{border-color:#2f54eb;box-shadow:inset 0 -1px #2f54eb}[_nghost-%COMP%]   .dynamic-input--active[_ngcontent-%COMP%]   .append-icon[_ngcontent-%COMP%]{border-color:#2f54eb;box-shadow:inset 0 -1px #2f54eb}[_nghost-%COMP%]   .dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{color:#2f54eb}[_nghost-%COMP%]   .dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__hint.error[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .dynamic-input--disabled[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:16px;background:#f1f2f2;border-bottom:1px solid #dedede!important;border-radius:2px 2px 0 0;padding:27px 12px 6px!important;color:#444;text-overflow:ellipsis}[_nghost-%COMP%]   .dynamic-input__hint[_ngcontent-%COMP%]{margin-top:5px;color:#88909b;font-weight:400;font-size:14px;padding-left:12px}[_nghost-%COMP%]   .dynamic-input__hint.error[_ngcontent-%COMP%]{color:#e23428}[_nghost-%COMP%]   .dynamic-input.dynamic-input--not-empty[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{display:block}.no-description[_nghost-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:10px}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]:not(:focus){border-bottom:1px solid #d9291e!important;border-color:#d9291e}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-input--active[_ngcontent-%COMP%]{border-color:#e23428!important}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]   .append-icon[_ngcontent-%COMP%]{border-color:#e23428;box-shadow:inset 0 -1px #e23428}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-input__hint[_ngcontent-%COMP%]{padding-left:12px;color:#e23428}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{color:#e23428}.half-inline[_nghost-%COMP%]:last-child{margin-right:0;margin-left:auto}[_nghost-%COMP%]   .legacy[_ngcontent-%COMP%]   .dynamic-input__placeholder[_ngcontent-%COMP%]{font-size:12px;padding:12px 36px 0 13px}[_nghost-%COMP%]   .legacy[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{border:1px solid #dedede;border-radius:5px;padding:30px 34px 12px 12px}[_nghost-%COMP%]   .legacy[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{padding:12px 13px 0 12px}[_nghost-%COMP%]   .legacy[_ngcontent-%COMP%]   .select-icon-position[_ngcontent-%COMP%]{top:calc(50% - 2px);height:5px}[_nghost-%COMP%]   label.dcb.dynamic-input[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;color:#88909b}[_nghost-%COMP%]   label.dcb.dynamic-input[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{display:none;padding-left:12px;padding-top:2px}[_nghost-%COMP%]   label.dcb.dynamic-input__placeholder[_ngcontent-%COMP%]{padding:12px 36px 0 0}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{box-shadow:none;border-bottom:2px solid #2f54eb}[_nghost-%COMP%]   label.dcb.dynamic-input[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{border-bottom:1px solid #88909b;padding:29px 0 8px 12px}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{display:block;color:#88909b}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]::placeholder{opacity:0;font-size:16px;font-weight:400}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]::-webkit-input-placeholder{opacity:0;font-size:16px;font-weight:400}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]::-moz-placeholder{opacity:0;font-size:16px;font-weight:400}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]:-moz-placeholder{opacity:0;font-size:16px;font-weight:400}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]:-ms-input-placeholder{opacity:0;font-size:16px;font-weight:400}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--not-empty[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{display:block;color:#88909b}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--not-empty[_ngcontent-%COMP%]   .dynamic-input__input.ng-touched.ng-dirty[_ngcontent-%COMP%]:not(:focus){border-bottom:1px solid #88909b}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--not-empty[_ngcontent-%COMP%]   .dynamic-input__input.ng-pristine.ng-untouched.ng-valid[_ngcontent-%COMP%]:not(:focus){border-bottom:1px solid #88909b}[_nghost-%COMP%]   label.dcb.dynamic-input.dynamic-input--not-empty[_ngcontent-%COMP%]   .dynamic-input__input.ng-pristine.ng-touched.ng-valid[_ngcontent-%COMP%]:not(:focus){border-bottom:1px solid #88909b}[_nghost-%COMP%]   label.dcb[_ngcontent-%COMP%]   .select-icon-position[_ngcontent-%COMP%]{bottom:14px;height:7px}.dcb[_nghost-%COMP%]{margin:0}.dcb.ng-invalid[_nghost-%COMP%]   label.dcb.dynamic-input--not-empty[_ngcontent-%COMP%]   .dynamic-input__input.ng-pristine.ng-untouched.ng-valid[_ngcontent-%COMP%]:not(:focus){border-bottom:2px solid #e23428}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{color:#080708}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]:not(:focus){border-color:#e23428;box-shadow:none}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input.dynamic-input--not-empty[_ngcontent-%COMP%]   .dynamic-input__input.ng-touched.ng-dirty[_ngcontent-%COMP%]:not(:focus){border-color:#e23428;border-width:2px}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{color:#88909b}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{color:#88909b}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input--active[_ngcontent-%COMP%]{border-color:#e23428!important}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input[_ngcontent-%COMP%]   .append-icon[_ngcontent-%COMP%]{border-color:#e23428;box-shadow:inset 0 -1px #e23428}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input__hint[_ngcontent-%COMP%]{color:#e23428;padding-left:12px}.dcb.ng-invalid[_nghost-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{color:#e23428}[_nghost-%COMP%]   .dcb-calendar.dynamic-input--active[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{border-bottom:1px solid #2f54eb}[_nghost-%COMP%]   .dcb-calendar[_ngcontent-%COMP%]   .dynamic-input[_ngcontent-%COMP%]{color:#88909b;display:none}[_nghost-%COMP%]   .dcb-calendar[_ngcontent-%COMP%]   .dynamic-input__title[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .dcb-calendar[_ngcontent-%COMP%]   .dynamic-input__placeholder[_ngcontent-%COMP%]{padding:12px 36px 0 0}[_nghost-%COMP%]   .dcb-calendar[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]{border-bottom:1px solid #88909b;padding:1px 0 2px 4px;min-height:auto;line-height:22px;font-size:16px;font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]   .dcb-calendar[_ngcontent-%COMP%]   .select-icon-position[_ngcontent-%COMP%]{bottom:14px;height:7px}.ng-touched.ng-invalid[_nghost-%COMP%]   .dcb-calendar.dynamic-input[_ngcontent-%COMP%]   .dynamic-input__input[_ngcontent-%COMP%]:not(:focus){color:#e23428}.dynamic-input__icon-wrap[_ngcontent-%COMP%]{position:absolute;right:4px;top:50%;transform:translate(-50%,-50%)}.dynamic-input__icon[_ngcontent-%COMP%]{width:20px;height:20px;color:#88909b;font-size:20px;display:flex;justify-content:center;align-items:center}','@charset "UTF-8";.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:7px;width:10px;fill:#88909b;cursor:pointer}']})}(0,n.gn)([(0,a.SQ)()],X.prototype,"lang",void 0)},88155:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>C});var n=t(97582),e=t(94650),i=t(24006),d=t(16611),a=t(52068),u=t(36895),h=t(97392),l=t(95495);function m(T,j){if(1&T&&e.\u0275\u0275element(0,"span",15),2&T){const I=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("innerHTML",I.selected.additionalCaption,e.\u0275\u0275sanitizeHtml)}}function x(T,j){if(1&T&&e.\u0275\u0275element(0,"span",15),2&T){const I=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("innerHTML",null==I.selected?null:I.selected.description,e.\u0275\u0275sanitizeHtml)}}function O(T,j){if(1&T&&(e.\u0275\u0275elementStart(0,"span",16),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"currency_name"),e.\u0275\u0275elementEnd()),2&T){const I=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,e.\u0275\u0275pipeBind2(3,3,null==I.selected?null:I.selected.contrCurrCode,!0)))}}function L(T,j){if(1&T&&(e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275template(1,m,1,1,"span",12),e.\u0275\u0275template(2,x,1,1,"ng-template",null,13,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(4,O,4,6,"span",14),e.\u0275\u0275elementEnd()),2&T){const I=e.\u0275\u0275reference(3),F=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==F.selected?null:F.selected.additionalCaption)("ngIfElse",I),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null==F.selected?null:F.selected.contrCurrCode)}}function w(T,j){if(1&T&&(e.\u0275\u0275elementStart(0,"mat-icon",17),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&T){const I=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("active",I.show),e.\u0275\u0275property("ngClass",I.cssIconClass),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(I.customIcon)}}function B(T,j){if(1&T&&(e.\u0275\u0275elementStart(0,"mat-icon",18),e.\u0275\u0275text(1,"task_alt"),e.\u0275\u0275elementEnd()),2&T){const I=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("active",I.show)}}function _(T,j){if(1&T&&(e.\u0275\u0275elementStart(0,"div",19),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&T){const I=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",I.hint&&I.hint.type?I.hint.type:null),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(I.hint.text)}}const y=function(T){return{"empty-caption":T}},$={provide:i.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>C),multi:!0};class C{set title(j){this.customTitle=j}constructor(j,I,F){this.elementRef=j,this.changeDetectorRef=I,this.translationService=F,this.isAccounts=!1,this.customIcon="arrow_drop_down",this.appearance="legacy",this.showDescriptionAfterSelect=!0,this.showConfirmedIcon=!1,this.selectedContrCurrCode=new e.EventEmitter,this.selectionChange=new e.EventEmitter,this.value="",this.showFlag=!1,this._active=!1,this.onTouch=()=>{},this.onModelChange=()=>{this.selectionChange.emit(this.selected)}}get active(){return this._active}set active(j){this._active=j,this.show=!1,this.onTouch()}get selectItems(){return this.items&&this.items.length?this.items:[{value:"",disabled:!0,caption:this.translationService.translate(this.customEmptyCaption??"No data for select")}]}get show(){return this.showFlag}set show(j){this.showFlag=j,j&&(this.selected?this.selectionOptionsComponent.highlightOption(this.selected):this.selectionOptionsComponent.activeItemIndex=void 0)}onClick(j){this.disabled||(this.show=!!this.elementRef.nativeElement.contains(j)&&!this.show,this.show&&this.onTouch())}isEmptyStringCaption(j){return""===j?.trim()}setDisabledState(j){this.disabled=j}optionSelect(j){this.writeValue(j.value),this.onChange(),j.contrCurrCode&&this.selectedContrCurrCode.emit(j.contrCurrCode),setTimeout(I=>{this.show=!1,this.changeDetectorRef.detectChanges()})}writeValue(j){j?(this.value=j,this.selected=this.selectItems.find(I=>I.value===j)):(this.selected=void 0,this.value=void 0)}registerOnTouched(j){this.onTouch=j}registerOnChange(j){this.onModelChange=j}onChange(){this.onTouch(),this.onModelChange(this.value)}handleKeydown(j){if(this.show){if("Escape"===j.key||"Esc"===j.key)return void(this.show=!1);this.selectionOptionsComponent.handleKeydown(j)}else("Enter"===j.key||"Spacebar"===j.key||" "===j.key)&&(j.preventDefault(),this.show=!0)}static#e=this.\u0275fac=function(I){return new(I||C)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(d.D7))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:C,selectors:[["app-metib-select"]],viewQuery:function(I,F){if(1&I&&e.\u0275\u0275viewQuery(a.d,7),2&I){let z;e.\u0275\u0275queryRefresh(z=e.\u0275\u0275loadQuery())&&(F.selectionOptionsComponent=z.first)}},hostBindings:function(I,F){1&I&&e.\u0275\u0275listener("click",function(X){return F.onClick(X.target)},!1,e.\u0275\u0275resolveDocument)},inputs:{isAccounts:"isAccounts",placeholder:"placeholder",customTitle:"customTitle",customIcon:"customIcon",titlePrefix:"titlePrefix",note:"note",hint:"hint",hideTitle:"hideTitle",disabled:"disabled",items:"items",cssClass:"cssClass",isReceiver:"isReceiver",appearance:"appearance",customEmptyCaption:"customEmptyCaption",selected:"selected",cssIconClass:"cssIconClass",showDescriptionAfterSelect:"showDescriptionAfterSelect",showConfirmedIcon:"showConfirmedIcon",title:"title"},outputs:{selectedContrCurrCode:"selectedContrCurrCode",selectionChange:"selectionChange"},features:[e.\u0275\u0275ProvidersFeature([$])],decls:18,vars:33,consts:[["data-qa","1663074717555","tabindex","0",1,"dynamic-select",3,"ngClass","blur","focus","keydown"],[1,"dynamic-select__title",3,"hidden"],[1,"dynamic-select__note"],[1,"dynamic-select__fake","dynamic-select__fake--account"],[1,"dynamic-select__ellipsis",3,"ngClass"],["class","dynamic-select__ellipsis",4,"ngIf"],["class","select-icon-position dynamic-select__icon",3,"active","ngClass",4,"ngIf","ngIfElse"],["confirmedIconTpl",""],[3,"isReceiver","open","options","select"],[1,"dynamic-select-bottom-info"],["class","dynamic-select-bottom-info__hint",3,"ngClass",4,"ngIf"],[1,"dynamic-select__ellipsis"],["class","dynamic-select__currCode",3,"innerHTML",4,"ngIf","ngIfElse"],["description",""],["class","dynamic-select__currCode",4,"ngIf"],[1,"dynamic-select__currCode",3,"innerHTML"],[1,"dynamic-select__currCode"],[1,"select-icon-position","dynamic-select__icon",3,"ngClass"],[1,"select-icon-position","dynamic-select__icon","confirmed"],[1,"dynamic-select-bottom-info__hint",3,"ngClass"]],template:function(I,F){if(1&I&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("blur",function(){return F.active=!1})("focus",function(){return F.active=!0})("keydown",function(X){return F.handleKeydown(X)}),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",2),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",3)(8,"span",4),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,L,5,3,"div",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,w,2,4,"mat-icon",6),e.\u0275\u0275template(13,B,2,2,"ng-template",null,7,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementStart(15,"app-form-selection-options",8),e.\u0275\u0275listener("select",function(X){return F.optionSelect(X)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"div",9),e.\u0275\u0275template(17,_,2,2,"div",10),e.\u0275\u0275elementEnd()),2&I){const z=e.\u0275\u0275reference(14);e.\u0275\u0275classProp("active",F.active)("dynamic-select--not-empty",!!F.value)("select-disabled",F.disabled),e.\u0275\u0275property("ngClass",F.appearance),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",F.hideTitle),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind2(3,22,F.titlePrefix,F.lang),"",e.\u0275\u0275pipeBind2(4,25,F.customTitle,F.lang),""),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(F.note),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("placeholder",!F.selected),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(31,y,F.isEmptyStringCaption(null==F.selected?null:F.selected.caption))),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(10,28,(null==F.selected?null:F.selected.caption)||F.placeholder||"Enter data",F.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",((null==F.selected?null:F.selected.description)||(null==F.selected?null:F.selected.additionalCaption))&&F.showDescriptionAfterSelect),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!F.showConfirmedIcon)("ngIfElse",z),e.\u0275\u0275advance(3),e.\u0275\u0275property("isReceiver",F.isReceiver)("open",F.show&&!F.disabled)("options",F.selectItems),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",F.hint)}},dependencies:[u.mk,u.O5,a.d,h.Hw,u.Ov,d.X$,l.l],styles:['@charset "UTF-8";.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:7px;width:10px;fill:#88909b;cursor:pointer}[_nghost-%COMP%]{display:inline-block;margin:10px 10px 10px 0}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]   .dynamic-select[_ngcontent-%COMP%]{background-color:#fff;position:relative;outline:none!important;transition:background .1s ease;width:100%}[_nghost-%COMP%]   .dynamic-select.select-disabled[_ngcontent-%COMP%]{background:#f1f2f2}[_nghost-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{transition:color .1s ease;position:absolute;box-sizing:border-box;width:100%;left:0;top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .dynamic-select.dynamic-select--not-empty[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]   .dynamic-select__main-data[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .dynamic-select__currCode[_ngcontent-%COMP%]{margin-left:6px;font-family:Source Sans Pro}@media screen and (max-width: 768px){[_nghost-%COMP%]   .dynamic-select__currCode[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .dynamic-select__ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .dynamic-select__ellipsis.empty-caption[_ngcontent-%COMP%]{padding-block:inherit;padding:11px}[_nghost-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{transition:border-color .1s ease,box-shadow .1s ease;box-sizing:border-box;width:100%;font-size:16px;z-index:90;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .dynamic-select__fake.placeholder[_ngcontent-%COMP%]{color:#88909b}[_nghost-%COMP%]   .dynamic-select__fake--account[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%]   .dynamic-select__note[_ngcontent-%COMP%]{transition:color .1s ease;position:absolute;box-sizing:border-box;width:100%;left:0;bottom:-24px;padding-left:13px;font-size:14px;color:#88909b}[_nghost-%COMP%]   .dynamic-select[_ngcontent-%COMP%]   .select-icon-position[_ngcontent-%COMP%]{position:absolute;top:50%;right:10px;transition:transform .1s ease;color:#88909b;display:block;height:initial;width:initial}[_nghost-%COMP%]   .dynamic-select[_ngcontent-%COMP%]   .select-icon-position.active[_ngcontent-%COMP%]{color:#003ad2}[_nghost-%COMP%]   .dynamic-select.disabled[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{background:#f1f2f2;cursor:auto}[_nghost-%COMP%]   .dynamic-select.active[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{border-color:#2f54eb}[_nghost-%COMP%]   .dynamic-select.active[_ngcontent-%COMP%]   .dynamic-select__placeholder[_ngcontent-%COMP%]{color:#2f54eb}[_nghost-%COMP%]   .dynamic-select.active[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{color:#2f54eb}[_nghost-%COMP%]   .dynamic-select.active[_ngcontent-%COMP%]   .color[_ngcontent-%COMP%]{fill:#2f54eb;color:#2f54eb}[_nghost-%COMP%]   .dynamic-select-bottom-info[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .dynamic-select-bottom-info__hint[_ngcontent-%COMP%]{margin-top:5px;color:#88909b;font-weight:400;font-size:14px;padding-left:12px}[_nghost-%COMP%]   .dynamic-select-bottom-info__hint.error[_ngcontent-%COMP%]{color:#e23428}.half-inline[_nghost-%COMP%]:last-child{margin-right:0;margin-left:auto}.no-description[_nghost-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-select[_ngcontent-%COMP%]:not(.active)   .dynamic-select__fake[_ngcontent-%COMP%]{border-color:#d9291e!important;box-shadow:none!important}.ng-touched.ng-invalid[_nghost-%COMP%]   .dynamic-select[_ngcontent-%COMP%]:not(.active)   .dynamic-select__icon[_ngcontent-%COMP%]{color:#d9291e;fill:#d9291e}.ng-dirty[_nghost-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{color:#000}.ng-dirty[_nghost-%COMP%]   .dynamic-select__icon[_ngcontent-%COMP%]{color:#000;fill:#000}[_nghost-%COMP%]   .legacy[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{font-size:12px;padding:12px 36px 0 13px}[_nghost-%COMP%]   .legacy[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{border:1px solid #dedede;border-radius:5px;padding:30px 34px 12px 12px}[_nghost-%COMP%]   .legacy[_ngcontent-%COMP%]   .select-icon-position[_ngcontent-%COMP%]{top:50%;height:7px}[_nghost-%COMP%]   .dcb.dynamic-select--not-empty[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%], [_nghost-%COMP%]   .new-dcb.dynamic-select--not-empty[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%]   .dcb[_ngcontent-%COMP%]   .dynamic-select[_ngcontent-%COMP%], [_nghost-%COMP%]   .new-dcb[_ngcontent-%COMP%]   .dynamic-select[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;color:#88909b}[_nghost-%COMP%]   .dcb[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%], [_nghost-%COMP%]   .new-dcb[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{padding:12px 36px 0 16px;display:none;font-weight:400;font-size:13px;line-height:17px}[_nghost-%COMP%]   .dcb[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%], [_nghost-%COMP%]   .new-dcb[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{border-bottom:1px solid #444444;padding:33px 50px 12px 0;font-size:16px;line-height:22px;font-family:Open Sans,sans-serif;font-style:normal;font-weight:400}[_nghost-%COMP%]   .new-dcb[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{padding:6px 36px 0 16px}[_nghost-%COMP%]   .new-dcb[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{padding:33px 50px 5px 16px}[_nghost-%COMP%]   .dcb-alt[_ngcontent-%COMP%]   .dynamic-select[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;color:#88909b}[_nghost-%COMP%]   .dcb-alt[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{padding:4px 36px 0 12px;display:none;font-weight:400;font-size:12px;line-height:16px}[_nghost-%COMP%]   .dcb-alt[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{border-bottom:1px solid #88909b;padding:26px 50px 7px 12px;font-size:16px;line-height:22px;font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400}[_nghost-%COMP%]   .dcb-alt[_ngcontent-%COMP%]   .dynamic-select__currCode[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]   .dcb-alt.dynamic-select--not-empty[_ngcontent-%COMP%]   .dynamic-select__title[_ngcontent-%COMP%]{color:#88909b}[_nghost-%COMP%]   .dcb-alt.dynamic-select--not-empty[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{border-bottom:1px solid #88909b}[_nghost-%COMP%]   .dcb-alt[_ngcontent-%COMP%]   .select-icon-position[_ngcontent-%COMP%]{top:47%;right:11px}[_nghost-%COMP%]   .dcb-alt.select-disabled[_ngcontent-%COMP%]{pointer-events:none;background-color:#f1f2f2}[_nghost-%COMP%]   .dcb-alt.select-disabled[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}[_nghost-%COMP%]   .dcb-alt.select-disabled.dynamic-select--not-empty[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{color:#444}[_nghost-%COMP%]   .dcb-alt.select-disabled[_ngcontent-%COMP%]   .select-icon-position[_ngcontent-%COMP%]{color:#dedede}[_nghost-%COMP%]   .dcb-alt.select-disabled[_ngcontent-%COMP%]   .select-icon-position.confirmed[_ngcontent-%COMP%]{color:#88909b;font-size:21px;width:21px;height:21px}.select-disabled[_ngcontent-%COMP%]{pointer-events:none;background-color:#f1f2f2}.select-disabled[_ngcontent-%COMP%]   .dynamic-select__fake[_ngcontent-%COMP%]{color:#88909b}.legacy-dropdown-icon[_ngcontent-%COMP%]{top:35%!important;height:auto!important}','@charset "UTF-8";.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:7px;width:10px;fill:#88909b;cursor:pointer}']})}(0,n.gn)([(0,d.SQ)()],C.prototype,"lang",void 0)},12181:(Ee,Q,t)=>{"use strict";t.d(Q,{T:()=>w});var n=t(97582),e=t(94650),i=t(24006),d=t(16611),a=t(36895),u=t(39349),h=t(69245);const l=["textarea"],m=function(B){return{background:B}};function x(B,_){if(1&B&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&B){const y=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(9,m,y.disabled?"#fafafa":"")),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,3,y.titlePrefix,y.lang),"",e.\u0275\u0275pipeBind2(3,6,y.title,y.lang)," ")}}function O(B,_){if(1&B&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&B){const y=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",y.symbolCounter,"/",y.maxLength,"")}}function L(B,_){if(1&B&&(e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&B){const y=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",y.hint&&y.hint.type?y.hint.type:null),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(y.hint.text)}}class w{constructor(){this.disabled=!1,this.rows=3,this.maxRows=7,this.autoSize=!0,this.focusChange=new e.EventEmitter,this.valueChange=new e.EventEmitter,this.focused=!1,this.onTouch=()=>{},this.onModelChange=()=>{}}get symbolCounter(){return this.value?this.value.length:0}registerOnTouched(_){this.onTouch=_}registerOnChange(_){this.onModelChange=_}writeValue(_){this.value=_}change(_){this.onTouch(),this.onModelChange(_.target.value),this.writeValue(_.target.value),this.valueChange.emit(_.target.value)}setFocus(_,y){this.focused=y,this.focused&&this.onTouch(),this.focusChange.emit(this.focused)}static#e=this.\u0275fac=function(y){return new(y||w)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:w,selectors:[["app-metib-textarea-alt"]],viewQuery:function(y,$){if(1&y&&e.\u0275\u0275viewQuery(l,5),2&y){let C;e.\u0275\u0275queryRefresh(C=e.\u0275\u0275loadQuery())&&($.textArea=C.first)}},inputs:{mask:"mask",hint:"hint",disabled:"disabled",titlePrefix:"titlePrefix",title:"title",dataQa:"dataQa",maxLength:"maxLength",rows:"rows",maxRows:"maxRows",autoSize:"autoSize",placeholder:"placeholder",isDcbAppearance:"isDcbAppearance"},outputs:{focusChange:"focusChange",valueChange:"valueChange"},features:[e.\u0275\u0275ProvidersFeature([{provide:i.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>w),multi:!0}])],decls:6,vars:18,consts:[[1,"textarea-alt"],["class","textarea-alt__placeholder",3,"ngStyle",4,"ngIf"],[1,"textarea-alt__overlay",3,"appTextMask"],[3,"cdkAutosizeMaxRows","cdkTextareaAutosize","ngModel","disabled","blur","focus","input","ngModelChange"],["class","textarea-alt__counter",4,"ngIf"],["class","textarea-alt__hint",3,"ngClass",4,"ngIf"],[1,"textarea-alt__placeholder",3,"ngStyle"],[1,"textarea-alt__counter"],[1,"textarea-alt__hint",3,"ngClass"]],template:function(y,$){1&y&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,x,4,11,"div",1),e.\u0275\u0275elementStart(2,"div",2)(3,"textarea",3),e.\u0275\u0275listener("blur",function(T){return $.setFocus(T,!1)})("focus",function(T){return $.setFocus(T,!0)})("input",function(T){return $.change(T)})("ngModelChange",function(T){return $.value=T}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,O,2,2,"div",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,L,2,2,"div",5)),2&y&&(e.\u0275\u0275classProp("active",$.focused)("dcb-design",$.isDcbAppearance),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",$.title||$.titlePrefix),e.\u0275\u0275advance(1),e.\u0275\u0275property("appTextMask",null==$.mask?null:$.mask.TextMask),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("without-title",!$.title),e.\u0275\u0275property("cdkAutosizeMaxRows",$.maxRows)("cdkTextareaAutosize",$.autoSize)("ngModel",$.value)("disabled",$.disabled),e.\u0275\u0275attribute("data-qa",$.dataQa)("maxlength",$.maxLength)("rows",$.rows)("placeholder",$.placeholder),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",$.maxLength),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",$.hint&&$.hint.text))},dependencies:[a.mk,a.O5,a.PC,i.DefaultValueAccessor,i.NgControlStatus,i.MaxLengthValidator,i.NgModel,u.IC,h.h,d.X$],styles:['@charset "UTF-8";.textarea-alt[_ngcontent-%COMP%]{display:block;position:relative}.textarea-alt__placeholder[_ngcontent-%COMP%]{position:absolute;box-sizing:border-box;width:calc(100% - 18px);border-radius:5px 5px 0 0;padding:10px 13px 0;left:2px;top:2px;font-size:12px;line-height:16px;background:white;z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .1s ease}.textarea-alt[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{padding:37px 12px 12px;resize:none;font-size:15px;line-height:21px;height:98px;border-radius:5px;border:1px solid #dedede;transition:border .1s ease,box-shadow .1s ease,transform .2s ease-in-out;outline:none;width:100%;font-family:Arial}.textarea-alt[_ngcontent-%COMP%]   textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{box-sizing:content-box}.textarea-alt[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.textarea-alt.active[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border:1px solid #dedede;transition:border .1s ease,box-shadow .1s ease,transform .2s ease-in-out}.textarea-alt__overlay[_ngcontent-%COMP%]{display:flex}.textarea-alt__counter[_ngcontent-%COMP%]{position:absolute;right:5px;bottom:5px;font-family:Source Sans Pro;font-size:.8em;color:#88909b}.textarea-alt__hint[_ngcontent-%COMP%]{margin-top:4px;color:#88909b;padding-left:12px;padding-right:12px;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.textarea-alt.dcb-design[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif}.textarea-alt.dcb-design[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{padding:37px 12px 22px;border:1px solid #88909b;border-radius:12px}.textarea-alt.dcb-design[_ngcontent-%COMP%]   textarea.without-title[_ngcontent-%COMP%]{padding:12px 12px 22px}.textarea-alt.dcb-design[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::placeholder{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:#88909b}@media screen and (max-width: 768px){.textarea-alt.dcb-design[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{padding-top:50px}}.textarea-alt.dcb-design[_ngcontent-%COMP%]   .textarea-alt__placeholder[_ngcontent-%COMP%]{padding:0;left:12px;top:13px;color:#88909b;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:normal}@media screen and (max-width: 768px){.textarea-alt.dcb-design[_ngcontent-%COMP%]   .textarea-alt__placeholder[_ngcontent-%COMP%]{white-space:normal;text-overflow:initial}}.textarea-alt.dcb-design[_ngcontent-%COMP%]   .textarea-alt__counter[_ngcontent-%COMP%]{right:12px;bottom:10px;font-family:Open Sans,Source Sans Pro,sans-serif}.textarea-alt.dcb-design.active[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border:1px solid #2f54eb}.ng-touched.ng-invalid[_nghost-%COMP%]   textarea[_ngcontent-%COMP%]{border-color:#e23428}']})}(0,n.gn)([(0,d.SQ)()],w.prototype,"lang",void 0)},7277:(Ee,Q,t)=>{"use strict";t.d(Q,{M:()=>m});var n=t(36895),e=t(24006),i=t(97392),d=t(284),a=t(84385),u=t(76264),h=t(16611),l=t(94650);let m=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:x});static#n=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.ez,h.qw,e.FormsModule,e.ReactiveFormsModule,a.LD,i.Ps,d.c,u.o]})}return x})()},21676:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>w});var n=t(94650),e=t(84385),i=t(36895),d=t(97392),a=t(54680);function u(B,_){if(1&B){const y=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(y);const C=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(C.showMore())}),n.\u0275\u0275text(1,"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0435"),n.\u0275\u0275elementEnd()}}const h=function(B){return{active:B}};function l(B,_){if(1&B){const y=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",19),n.\u0275\u0275listener("click",function(){const T=n.\u0275\u0275restoreView(y).$implicit,j=n.\u0275\u0275nextContext(4);return n.\u0275\u0275resetView(j.changeSize(T))}),n.\u0275\u0275element(1,"div",20),n.\u0275\u0275elementStart(2,"div",21),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd()()}if(2&B){const y=_.$implicit,$=n.\u0275\u0275nextContext(4);n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(2,h,+$.initPagination.size===y)),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1(" ",y," ")}}function m(B,_){if(1&B&&(n.\u0275\u0275elementStart(0,"div",17),n.\u0275\u0275template(1,l,4,4,"div",18),n.\u0275\u0275elementEnd()),2&B){const y=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",y.sizeList)}}function x(B,_){if(1&B){const y=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"div",11),n.\u0275\u0275text(3,"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"div",12)(5,"div",13),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(y);const C=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(C.isOpenSelect=!C.isOpenSelect)})("clickOutside",function(){n.\u0275\u0275restoreView(y);const C=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(C.isOpenSelect=!1)}),n.\u0275\u0275elementStart(6,"div",14),n.\u0275\u0275text(7),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(8,"mat-icon",15),n.\u0275\u0275text(9,"arrow_forward_ios"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(10,m,2,1,"div",16),n.\u0275\u0275elementEnd()()}if(2&B){const y=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(7),n.\u0275\u0275textInterpolate(y.initPagination.size),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",y.isOpenSelect)}}const O=function(B){return{disabled:B}};function L(B,_){if(1&B){const y=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",1),n.\u0275\u0275template(1,u,2,0,"div",2),n.\u0275\u0275template(2,x,11,2,"div",3),n.\u0275\u0275elementStart(3,"div",4)(4,"mat-icon",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(y);const C=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(C.changePage("previous"))}),n.\u0275\u0275text(5,"arrow_forward_ios"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"div",6),n.\u0275\u0275text(7),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(8,"mat-icon",7),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(y);const C=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(C.changePage("next"))}),n.\u0275\u0275text(9,"arrow_forward_ios"),n.\u0275\u0275elementEnd()()()}if(2&B){const y=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",y.showMoreVisible&&+y.currentPage+1!=+y.currentTotal),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",y.showSize),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(6,O,y.currentPage+1<=1)),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate2("\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 ",+y.currentPage+1," \u0438\u0437 ",y.currentTotal,""),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(8,O,+y.currentPage+1>=y.currentTotal))}}let w=(()=>{class B{constructor(){this.sizeList=[],this.currentPage=1,this.currentSize=10,this.currentTotal=0,this.showMoreVisible=!1,this.showSize=!1,this.scrollAfterNavigate=!0,this.initPagination={size:10,number:0,total:0},this.changePaginationEmit=new n.EventEmitter,this.showMorePage=new n.EventEmitter,this.isOpenSelect=!1}ngOnChanges(y){y.currentPage&&(this.initPagination.number=this.currentPage),y.currentSize&&(this.initPagination.size=this.currentSize),y.currentTotal&&(this.initPagination.total=this.currentTotal)}changePage(y){const $={size:this.initPagination.size,number:this.initPagination.number,total:this.initPagination.total};"previous"===y&&($.number=+$.number-1),"next"===y&&($.number=+$.number+1),this.scrollAfterNavigate&&window.scroll({top:100,left:0,behavior:"smooth"}),this.changePaginationEmit.emit($)}changeSize(y){this.changePaginationEmit.emit({size:y,number:0,total:this.initPagination.total})}close(){}showMore(){this.changePaginationEmit.emit({size:this.initPagination.size,number:+this.initPagination.number+1,total:this.initPagination.total,showMore:!0})}static#e=this.\u0275fac=function($){return new($||B)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:B,selectors:[["app-metib-paginator-custom"]],inputs:{sizeList:"sizeList",currentPage:"currentPage",currentSize:"currentSize",currentTotal:"currentTotal",showMoreVisible:"showMoreVisible",showSize:"showSize",scrollAfterNavigate:"scrollAfterNavigate"},outputs:{changePaginationEmit:"changePaginationEmit",showMorePage:"showMorePage"},features:[n.\u0275\u0275ProvidersFeature([{provide:e.PG,useValue:{overlayPanelClass:"pagination"}}]),n.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[["class","wrapper-pagination",4,"ngIf"],[1,"wrapper-pagination"],["class","show-more",3,"click",4,"ngIf"],["class","show-list-wrapper",4,"ngIf"],[1,"pagination"],[1,"arrow","arrow-pagination","left",3,"ngClass","click"],[1,"current-page"],[1,"arrow","arrow-pagination",3,"ngClass","click"],[1,"show-more",3,"click"],[1,"show-list-wrapper"],[1,"title-show-list"],[1,"title-select-size"],[1,"select-wrapper"],[1,"wrapper-select-input",3,"click","clickOutside"],[1,"select-value"],[1,"arrow-down-paginator"],["class","dropdown-wrapper",4,"ngIf"],[1,"dropdown-wrapper"],["class","item-dropdown",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"item-dropdown",3,"ngClass","click"],[1,"dot-active"],[1,"text-item"]],template:function($,C){1&$&&n.\u0275\u0275template(0,L,10,10,"div",0),2&$&&n.\u0275\u0275property("ngIf",(null==C.initPagination?null:C.initPagination.total)>0)},dependencies:[i.mk,i.sg,i.O5,d.Hw,a._],styles:['@charset "UTF-8";.wrapper-pagination[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;flex-wrap:wrap}.wrapper-pagination[_ngcontent-%COMP%]   .show-more[_ngcontent-%COMP%]{cursor:pointer;text-align:center;width:100%;font-family:Open Sans;font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#88909b;padding:12px;background:#f1f2f2;margin-bottom:24px}.wrapper-pagination[_ngcontent-%COMP%]   .show-list-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:12px}.wrapper-pagination[_ngcontent-%COMP%]   .show-list-wrapper[_ngcontent-%COMP%]   .title-select-size[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#444;margin-right:8px}@media (max-width: 768px){.wrapper-pagination[_ngcontent-%COMP%]   .show-list-wrapper[_ngcontent-%COMP%]   .title-select-size[_ngcontent-%COMP%]{display:none}}.wrapper-pagination[_ngcontent-%COMP%]   .show-list-wrapper[_ngcontent-%COMP%]   .select-size[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#444;border:1px solid #88909b;border-radius:4px;padding:5px 11px;min-width:67px;width:max-content}.wrapper-pagination[_ngcontent-%COMP%]   .show-list-wrapper[_ngcontent-%COMP%]   .trigger-title[_ngcontent-%COMP%]{padding:4px 8px}.wrapper-pagination[_ngcontent-%COMP%]   .pagination[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-pagination[_ngcontent-%COMP%]   .pagination[_ngcontent-%COMP%]   .current-page[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#444;padding:0 8px}.wrapper-pagination[_ngcontent-%COMP%]   .pagination[_ngcontent-%COMP%]   .arrow-pagination[_ngcontent-%COMP%]{cursor:pointer;color:#444;font-size:10px;height:unset;width:unset;padding:13px;border-radius:4px}.wrapper-pagination[_ngcontent-%COMP%]   .pagination[_ngcontent-%COMP%]   .arrow-pagination.left[_ngcontent-%COMP%]{transform:rotate(180deg)}.wrapper-pagination[_ngcontent-%COMP%]   .pagination[_ngcontent-%COMP%]   .arrow-pagination[_ngcontent-%COMP%]:hover{transition:.3s;background:#f1f2f2}.wrapper-pagination[_ngcontent-%COMP%]   .pagination[_ngcontent-%COMP%]   .arrow-pagination.disabled[_ngcontent-%COMP%]{opacity:.5}.select-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center}.select-wrapper[_ngcontent-%COMP%]   .wrapper-select-input[_ngcontent-%COMP%]{border:1px solid #88909b;border-radius:4px;display:flex;align-items:center;justify-content:center;padding:5px 20px 5px 16px;cursor:pointer;transition:.3s}.select-wrapper[_ngcontent-%COMP%]   .wrapper-select-input[_ngcontent-%COMP%]   .select-value[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#444}.select-wrapper[_ngcontent-%COMP%]   .wrapper-select-input[_ngcontent-%COMP%]   .arrow-down-paginator[_ngcontent-%COMP%]{margin-left:4px;transform:rotate(90deg);font-size:10px;width:9px}.select-wrapper[_ngcontent-%COMP%]   .wrapper-select-input[_ngcontent-%COMP%]:hover{border:1px solid #444444}.select-wrapper[_ngcontent-%COMP%]   .wrapper-select-input.disabled[_ngcontent-%COMP%]{opacity:.5}.select-wrapper[_ngcontent-%COMP%]   .dropdown-wrapper[_ngcontent-%COMP%]{width:64px;position:absolute;top:41px;display:flex;flex-direction:column;background:#ffffff;box-shadow:0 5px 20px #0000001a;border-radius:2px;z-index:1}.select-wrapper[_ngcontent-%COMP%]   .dropdown-wrapper[_ngcontent-%COMP%]   .item-dropdown[_ngcontent-%COMP%]{position:relative;width:100%;height:36px;display:flex;justify-content:center;align-items:center;padding:8px 12px 8px 8px;border-bottom:1px solid #dedede;transition:.3s;cursor:pointer;background:#ffffff}.select-wrapper[_ngcontent-%COMP%]   .dropdown-wrapper[_ngcontent-%COMP%]   .item-dropdown[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.select-wrapper[_ngcontent-%COMP%]   .dropdown-wrapper[_ngcontent-%COMP%]   .item-dropdown[_ngcontent-%COMP%]   .dot-active[_ngcontent-%COMP%]{opacity:0;position:absolute;left:8px;width:4px;height:4px;border-radius:50%;background:#444444}.select-wrapper[_ngcontent-%COMP%]   .dropdown-wrapper[_ngcontent-%COMP%]   .item-dropdown[_ngcontent-%COMP%]   .text-item[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#444;min-width:25px}.select-wrapper[_ngcontent-%COMP%]   .dropdown-wrapper[_ngcontent-%COMP%]   .item-dropdown[_ngcontent-%COMP%]:hover{background:#f1f2f2}.select-wrapper[_ngcontent-%COMP%]   .dropdown-wrapper[_ngcontent-%COMP%]   .item-dropdown.active[_ngcontent-%COMP%]   .dot-active[_ngcontent-%COMP%]{opacity:1}']})}return B})()},53305:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>O});var n=t(36895),e=t(24006),i=t(97392),d=t(84385),a=t(16611),u=t(38360),h=t(78895),l=t(76264),m=t(48038),x=t(94650);let O=(()=>{class L{static#e=this.\u0275fac=function(_){return new(_||L)};static#t=this.\u0275mod=x.\u0275\u0275defineNgModule({type:L});static#n=this.\u0275inj=x.\u0275\u0275defineInjector({imports:[n.ez,a.qw,u.I,h.q,m.Y,i.Ps,d.LD,e.FormsModule,l.o]})}return L})()},6561:(Ee,Q,t)=>{"use strict";t.d(Q,{k:()=>E});var n=t(24006),e=t(99602),i=t(15439),d=t.n(i),a=t(39300),u=t(94907),h=t(77579),l=t(82722),m=t(94650),x=t(3238),O=t(47136);let L=(()=>{class R{constructor(G,ce,xe,we){this._calendar=G,this._dateAdapter=ce,this.cdr=xe,this.selectedPeriodService=we,this._destroyed$=new h.x,G.stateChanges.pipe((0,l.R)(this._destroyed$)).subscribe(()=>xe.markForCheck())}ngOnInit(){this.selectedPeriodService.activeMonth$.pipe((0,l.R)(this._destroyed$)).subscribe(G=>{0===G||(this._calendar.activeDate=this._dateAdapter.addCalendarMonths(this._calendar.activeDate,G))}),this.selectedPeriodService.slideRightCalendar$.pipe((0,a.h)(G=>null!==G),(0,l.R)(this._destroyed$)).subscribe(G=>{this._calendar.activeDate=G})}ngOnDestroy(){this._destroyed$.next(),this._destroyed$.complete()}get periodMonthLabel(){return this._dateAdapter.format(this._calendar.activeDate,"MMMM")}get periodYearLabel(){return this._dateAdapter.format(this._calendar.activeDate,"YYYY")}previousClicked(){this.selectedPeriodService.slideToPreviousMonth()}nextClicked(){this.selectedPeriodService.slideToNextMonth()}switchView(){this._calendar.currentView="multi-year"}static#e=this.\u0275fac=function(ce){return new(ce||R)(m.\u0275\u0275directiveInject(e._H),m.\u0275\u0275directiveInject(x._A),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(O.A))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:R,selectors:[["app-metib-calendar-header"]],decls:8,vars:2,consts:[[1,"metib-calendar-header"],[1,"metib-calendar-header__button",3,"click"],[1,"metib-calendar-header__label"],[1,"metib-calendar-header__label-month"],[1,"metib-calendar-header__label-year",3,"click"]],template:function(ce,xe){1&ce&&(m.\u0275\u0275elementStart(0,"div",0)(1,"button",1),m.\u0275\u0275listener("click",function(){return xe.previousClicked()}),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(2,"div",2)(3,"span",3),m.\u0275\u0275text(4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(5,"span",4),m.\u0275\u0275listener("click",function(){return xe.switchView()}),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(7,"button",1),m.\u0275\u0275listener("click",function(){return xe.nextClicked()}),m.\u0275\u0275elementEnd()()),2&ce&&(m.\u0275\u0275advance(4),m.\u0275\u0275textInterpolate1("",xe.periodMonthLabel," "),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate1(" ",xe.periodYearLabel,""))},styles:['@charset "UTF-8";.metib-calendar-input[_ngcontent-%COMP%]{display:flex;padding-bottom:2px;border-bottom:1px solid #88909b}.metib-calendar-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1 0 auto;border:1px solid transparent;padding-left:12px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;color:#080708;font-weight:400;height:22px}.metib-calendar-header[_ngcontent-%COMP%]{display:flex;padding:20px 0;justify-content:space-between;align-items:center}.metib-calendar-header__button[_ngcontent-%COMP%]{text-align:center;height:24px;width:24px;border:none;background-color:transparent;background-image:url(/assets/icons/chevron_active.svg);background-size:24px;cursor:pointer}.metib-calendar-header__button[_ngcontent-%COMP%]:last-of-type{transform:scaleX(-1)}.metib-calendar-header__label[_ngcontent-%COMP%]{height:24px;font-weight:400;font-size:14px;font-family:Open Sans,Source Sans Pro,sans-serif;text-transform:capitalize;line-height:24px}.metib-calendar-header__label-year[_ngcontent-%COMP%]{color:#7180b9;cursor:pointer}']})}return R})(),w=(()=>{class R{constructor(G,ce,xe,we){this._calendar=G,this._dateAdapter=ce,this.cdr=xe,this.selectedPeriodService=we,this._destroyed$=new h.x,G.stateChanges.pipe((0,l.R)(this._destroyed$)).subscribe(()=>xe.markForCheck())}ngOnInit(){this.selectedPeriodService.activeMonth$.pipe((0,l.R)(this._destroyed$)).subscribe(G=>{0===G||(this._calendar.activeDate=this._dateAdapter.addCalendarMonths(this._calendar.activeDate,G))}),this.selectedPeriodService.slideRightCalendar$.pipe((0,a.h)(G=>null!==G),(0,l.R)(this._destroyed$)).subscribe(G=>{const ce=G.clone().startOf("month").add(-1,"day");this._calendar.activeDate=ce})}ngOnDestroy(){this._destroyed$.next(),this._destroyed$.complete()}get periodMonthLabel(){return this._dateAdapter.format(this._calendar.activeDate,"MMMM")}get periodYearLabel(){return this._dateAdapter.format(this._calendar.activeDate,"YYYY")}previousClicked(){this.selectedPeriodService.slideToPreviousMonth()}nextClicked(){this.selectedPeriodService.slideToNextMonth()}switchView(){this._calendar.currentView="multi-year"}static#e=this.\u0275fac=function(ce){return new(ce||R)(m.\u0275\u0275directiveInject(e._H),m.\u0275\u0275directiveInject(x._A),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(O.A))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:R,selectors:[["app-metib-calendar-header"]],decls:8,vars:2,consts:[[1,"metib-calendar-header"],[1,"metib-calendar-header__button",3,"click"],[1,"metib-calendar-header__label"],[1,"metib-calendar-header__label-month"],[1,"metib-calendar-header__label-year",3,"click"]],template:function(ce,xe){1&ce&&(m.\u0275\u0275elementStart(0,"div",0)(1,"button",1),m.\u0275\u0275listener("click",function(){return xe.previousClicked()}),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(2,"div",2)(3,"span",3),m.\u0275\u0275text(4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(5,"span",4),m.\u0275\u0275listener("click",function(){return xe.switchView()}),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(7,"button",1),m.\u0275\u0275listener("click",function(){return xe.nextClicked()}),m.\u0275\u0275elementEnd()()),2&ce&&(m.\u0275\u0275advance(4),m.\u0275\u0275textInterpolate1("",xe.periodMonthLabel," "),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate1(" ",xe.periodYearLabel,""))},styles:['@charset "UTF-8";.metib-calendar-input[_ngcontent-%COMP%]{display:flex;padding-bottom:2px;border-bottom:1px solid #88909b}.metib-calendar-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1 0 auto;border:1px solid transparent;padding-left:12px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;color:#080708;font-weight:400;height:22px}.metib-calendar-header[_ngcontent-%COMP%]{display:flex;padding:20px 0;justify-content:space-between;align-items:center}.metib-calendar-header__button[_ngcontent-%COMP%]{text-align:center;height:24px;width:24px;border:none;background-color:transparent;background-image:url(/assets/icons/chevron_active.svg);background-size:24px;cursor:pointer}.metib-calendar-header__button[_ngcontent-%COMP%]:last-of-type{transform:scaleX(-1)}.metib-calendar-header__label[_ngcontent-%COMP%]{height:24px;font-weight:400;font-size:14px;font-family:Open Sans,Source Sans Pro,sans-serif;text-transform:capitalize;line-height:24px}.metib-calendar-header__label-year[_ngcontent-%COMP%]{color:#7180b9;cursor:pointer}']})}return R})();var B=t(16611),_=t(36895),y=t(16304);const $=["wrapper"],C=["btn"],T=["popup"],j=["popupCalendar"];function I(R,ne){if(1&R){const G=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",22),m.\u0275\u0275listener("click",function(){const we=m.\u0275\u0275restoreView(G).$implicit,Ge=m.\u0275\u0275nextContext();return m.\u0275\u0275resetView(Ge.switchPeriod(we))}),m.\u0275\u0275text(1),m.\u0275\u0275elementEnd()}if(2&R){const G=ne.$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",G.description," ")}}const F=function(R){return{"disabled-button":R}},z=function(R){return{"disabled-arrow":R}},X=function(R,ne){return{"period-picker__overlay--open":R,backgroundClass:ne}},p=function(R){return{"period-picker__calendar--open":R}},P=function(R,ne){return{"no-next":R,"no-prev":ne}};let E=(()=>{class R{get isHideNextMonthArrow(){return!(!this.calendarOpened||this.futureDates)&&this.calendars.last.activeDate.isSame(d()(this.maxAllowedDate),"month")}constructor(G,ce,xe){this.translation=G,this.selectedPeriodService=ce,this.fb=xe,this._dontClose=!1,this._prevDisabled=!1,this._nextDisabled=!1,this._periodDates=null,this._calendarSelectedDatesCount=0,this.dateValidator=n.Validators.compose([we=>/[0-9]{2}\.[0-9]{2}\.[0-9]{4}/.test(we.value)&&d()(we.value,"DD.MM.YYYY").isValid()?d()(this.minDate,"YYYY-MM-DD").isAfter(d()(we.value,"DD.MM.YYYY"))||d()(this.maxAllowedDate).isBefore(d()(we.value,"DD.MM.YYYY"))?[{invalidDate:!0}]:[]:[{invalidDate:!0}]]),this.beginDateValidator=n.Validators.compose([we=>this.selectedEndDate&&d()(this.selectedEndDate).isBefore(d()(we.value,"DD.MM.YYYY"))?[{invalidDate:!0}]:[]]),this.endDateValidator=n.Validators.compose([we=>this.selectedBeginDate&&d()(this.selectedBeginDate).isAfter(d()(we.value,"DD.MM.YYYY"))?[{invalidDate:!0}]:[]]),this.restorePeriod=!1,this.currentPeriod={title:"",description:""},this.opened=!1,this.calendarOpened=!1,this.hideCalendarNext=!1,this.hideCalendarPrev=!1,this.selectedBeginDate=null,this.selectedEndDate=null,this.prevMonth=this.getPreviousMonth(),this.minDate=null,this.leftCalendarMaxDate=null,this.metibCalendarHeader=w,this.metibCalendarRightHeader=L,this.dateMask={TextMask:[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/]},this.dateForm=this.fb.group({beginDate:new n.UntypedFormControl("",[n.Validators.required]),endDate:new n.UntypedFormControl("",[n.Validators.required])}),this.dateClass=(we,Ge)=>{let ct="";return"month"===Ge&&(ct="period-picker__date",this.calendarSelectedStart&&this.calendarSelectedEnd&&this.calendarSelectedStart.isBefore(we)&&this.calendarSelectedEnd.isAfter(we)&&(ct+=" period-picker__date-in-period"),(this.calendarSelectedStart&&d()(we).isSame(this.calendarSelectedStart,"day")||this.calendarSelectedEnd&&d()(we).isSame(this.calendarSelectedEnd,"day"))&&(ct+=" period-picker__date-selected")),ct}}ngOnInit(){d().locale("ru"),this.predefinedPeriods=this.selectedPeriodService.periods,this.setDefaultPeriod(),this.updateMinDate(),this.leftCalendarMaxDate=d()().add(-1,"month").endOf("month").format("YYYY-MM-DD"),this.maxAllowedDate=this.maxAllowedDate||d()().format("YYYY-MM-DD"),this.selectedPeriodService.chosenPeriod$.pipe((0,a.h)(G=>G?.name===this.name)).subscribe(G=>{if(!this._periodDates||this._periodDates.beginDate!==G.beginDate||this._periodDates.endDate!==G.endDate||this._periodDates.currentPeriod.timeSpan!==G.currentPeriod.timeSpan)if(this._periodDates=G,null!==G){this.currentPeriod=G.currentPeriod,this.currentPeriod.title=this.getPeriodTitle(this.currentPeriod),this.updateDatesOnCalendars(d()(G.beginDate),d()(G.endDate));const ce=d()(G.endDate).diff(G.beginDate,"day"),xe=d()(G.endDate).add(ce,"day"),we=d()(G.beginDate).add(-ce,"day");this._nextDisabled=xe.isAfter(d()(this.maxAllowedDate))&&d()(G.endDate).isAfter(d()(this.maxAllowedDate)),this._prevDisabled=ce<=91&&we.isBefore(d()(this.minDate))&&d()(G.beginDate).isAfter(d()(this.minDate))||ce>91&&we.isBefore(d()(this.minDate))&&d()(G.beginDate).isBefore(d()(this.minDate)),G.useUpdateCalendarDates&&(this.selectedPeriodService.beginDate$.next({date:d()(G.beginDate),name:this.name}),this.selectedPeriodService.endDate$.next({date:d()(G.endDate),name:this.name})),this.selectedDateRange=new e.C0(d()(G.beginDate),d()(G.endDate)),this.selectedBeginDate=G.beginDate,this.selectedEndDate=G.endDate}else this.currentPeriod.title=this.placeholder,this._nextDisabled=!0,this._prevDisabled=!0,this.selectedPeriodService.beginDate$.next({date:null,name:this.name}),this.selectedPeriodService.endDate$.next({date:null,name:this.name}),this.selectedDateRange=null}),this.selectedPeriodService.beginDate$.pipe((0,a.h)(G=>G&&G.name===this.name)).subscribe(G=>{const ce=G.date?G.date.format("DD.MM.YYYY"):"";this.dateForm.get("beginDate").setValue(ce,{emitEvent:!1,emitModelToViewChange:!0})}),this.selectedPeriodService.endDate$.pipe((0,a.h)(G=>G&&G.name===this.name)).subscribe(G=>{const ce=G.date?G.date.format("DD.MM.YYYY"):"";this.dateForm.get("endDate").setValue(ce,{emitEvent:!1,emitModelToViewChange:!0})})}ngAfterViewInit(){this.dateForm=this.fb.group({beginDate:new n.UntypedFormControl("",[n.Validators.required,this.dateValidator,this.beginDateValidator]),endDate:new n.UntypedFormControl("",[n.Validators.required,this.dateValidator,this.endDateValidator])})}setDefaultPeriod(){if(this.restorePeriod&&this.selectedPeriodService.chosenPeriod$.getValue())return;const ce=this.selectedPeriodService.periods.find(xe=>xe.period===this.defaultPeriod);if(this.defaultPeriod&&ce){const xe=new u.Sh(ce,this.selectedPeriodService.getDateFromSubtract(ce,d()()),null,!0,this.name);this.selectedPeriodService.chosenPeriod$.next(xe)}}inputBeginDateEvent(G){if(this.dateForm.get("beginDate").invalid)return;const ce=this.minDate;null!==ce&&(this.minDate=null),this.selectedBeginDate=d()(G,"DD.MM.YYYY").toDate(),this.calendarSelectedStart=d()(G,"DD.MM.YYYY"),this.calendars.first.activeDate=d()(G,"DD.MM.YYYY"),this.calendars.first.updateTodaysDate();const xe=d()(G,"DD.MM.YYYY").add(1,"month");xe.startOf("month").isBefore(d()(this.maxAllowedDate))&&(this.calendars.last.activeDate=xe,this.calendars.last.updateTodaysDate()),this.calendarSelectedStart&&this.calendarSelectedEnd&&this.selectedPeriodService.chosenPeriod$.next({currentPeriod:this.currentPeriod,beginDate:this.calendarSelectedStart,endDate:this.calendarSelectedEnd,useUpdateCalendarDates:!1,name:this.name}),null!==ce&&setTimeout(()=>{this.minDate=ce,this._dontClose=!1},0)}inputEndDateEvent(G){if(this.dateForm.get("endDate").invalid)return;const ce=this.minDate;null!==ce&&(this.minDate=null),this.selectedEndDate=d()(G,"DD.MM.YYYY").toDate(),this.calendarSelectedEnd=d()(G,"DD.MM.YYYY"),this.calendarSelectedStart&&this.calendarSelectedEnd&&this.selectedPeriodService.chosenPeriod$.next({currentPeriod:this.currentPeriod,beginDate:this.calendarSelectedStart,endDate:this.calendarSelectedEnd,useUpdateCalendarDates:!1,name:this.name}),null!==ce&&setTimeout(()=>{this.minDate=ce,this._dontClose=!1},0)}updateDatesOnCalendars(G,ce){const xe=this.minDate;null!==xe&&(this.minDate=null),this.calendarSelectedStart=G,this.calendarSelectedEnd=ce,this.selectedPeriodService.slideRightCalendar$.next(ce.clone()),null!==xe&&setTimeout(()=>{this.minDate=xe},0)}getPreviousMonth(){const G=new Date;return new Date(G.getFullYear(),G.getMonth()-1,1)}getCurrentMonth(){const G=new Date;return new Date(G.getFullYear(),G.getMonth(),1)}getPeriodTitle(G){if("today"===G.period){const ce=0===d()(this._periodDates?.beginDate).diff(d()().startOf("day"),"day");return this._periodDates&&!ce?`${d()(this._periodDates.beginDate).format("DD.MM.YYYY")}`:G?.description}if("yesterday"===G.period){const ce=-1===d()(this._periodDates?.beginDate).diff(d()().startOf("day"),"day");return this._periodDates&&!ce?`${d()(this._periodDates.beginDate).format("DD.MM.YYYY")}`:G?.description}if("week"===G.period){const ce=0===d()(this._periodDates?.beginDate).diff(d()().startOf("week"),"day");return this._periodDates&&!ce?`${d()(this._periodDates.beginDate).format("DD.MM.YYYY")} - ${d()(this._periodDates.endDate).format("DD.MM.YYYY")}`:this.translation.translate("Current week")}if("month"===G.period){const ce=(this.restorePeriod&&this._periodDates?this._periodDates.beginDate:new Date).toLocaleDateString("ru-RU",{year:"numeric",month:"long"});return`${ce.charAt(0).toUpperCase()}${ce.slice(1)}`}if("year"===G.period)return`${(this.restorePeriod&&this._periodDates?this._periodDates.beginDate:new Date).getFullYear()} ${this.translation.translate("Year").toLowerCase()}`;if("quater"===G.period){const ce=0===d()(this._periodDates?.beginDate).diff(d()().startOf("quarter"),"day");if(this._periodDates&&!ce){const xe=d()(this._periodDates?.beginDate).quarter(),we=d()(this._periodDates?.beginDate).year();return`${xe}  ${this.translation.translate("Quarter").toLowerCase()} ${we}`}return`${d()().quarter()}  ${this.translation.translate("Quarter").toLowerCase()} ${(new Date).getFullYear()}`}return"period"===G.period?this.formatTitle(G.title):"no date"===G.period?`${this.translation.translate("No date selected")}`:G?.description}get predefinedPeriods(){if(this.allowedPeriods&&this.allowedPeriods.length>0){const G=this._predefinedPeriods.filter(ce=>this.allowedPeriods.includes(ce.period));return["week","month","quater","year"].includes(G[0].period)&&(G[0].description=this.translation.translate(`Current ${G[0].period}`)),G}return this._predefinedPeriods}set predefinedPeriods(G){this._predefinedPeriods=G}updateMinDate(){const G="1993-01-01",ce=d()(this.minAllowedDate);this.minDate=this.minAllowedDate&&d()(G).isBefore(ce)?ce.format("YYYY-MM-DD"):G}open(){this.opened=!this.opened,this.calendarOpened=!1}close(){this.calendarOpened=!1,this.opened=!1,this._calendarSelectedDatesCount=0}goNext(){const G=this.selectedPeriodService.getShiftedPeriod(this._periodDates,this.name,1);null!==G&&(this.currentPeriod=G)}goPrev(){const G=this.selectedPeriodService.getShiftedPeriod(this._periodDates,this.name,-1);null!==G&&(this.currentPeriod=G)}switchPeriod(G){if("period"===G.period){if(this._periodDates?.beginDate&&this._periodDates.endDate)this.updateDatesOnCalendars(d()(this._periodDates.beginDate),d()(this._periodDates.endDate));else{const ce=d()().startOf("week"),xe=d()().endOf("week");this.updateDatesOnCalendars(ce,xe)}this._calendarSelectedDatesCount=0,this.opened=!1,this.calendarOpened=!0,this.currentPeriod={...G,title:this.currentPeriod.title},this.calendarSelectedStart&&this.calendarSelectedEnd&&this.selectedPeriodService.chosenPeriod$.next({currentPeriod:this.currentPeriod,beginDate:this.calendarSelectedStart,endDate:this.calendarSelectedEnd,useUpdateCalendarDates:!0,name:this.name})}else this.currentPeriod=G,this.currentPeriod.title=this.getPeriodTitle(G),this.opened=!1,this.selectedPeriodService.updatePeriodDates(this.currentPeriod,this.name)}calendarViewChanged(){this._dontClose=!0}get isButtonPrevDisabledClass(){return"period"===this.currentPeriod?.period||"no date"===this.currentPeriod?.period||this._prevDisabled}get isButtonNextDisabledClass(){return"today"===this.currentPeriod?.period||"period"===this.currentPeriod?.period||"no date"===this.currentPeriod?.period||this._nextDisabled}dateFilter(G){return G<d()(this.maxAllowedDate)&&G>=d()(this.minDate)}onSelectDateRange(G){const ce=this.minDate;null!==ce&&(this.minDate=null),this._dontClose=!0,this._calendarSelectedDatesCount++,1===this._calendarSelectedDatesCount?(this.calendarSelectedStart=G,this.calendarSelectedEnd=null,this.selectedPeriodService.beginDate$.next({date:G,name:this.name}),this.selectedDateRange=new e.C0(G,null)):2===this._calendarSelectedDatesCount&&(this.calendarSelectedStart.isBefore(G)||this.calendarSelectedStart.isSame(G))?(this.calendarSelectedEnd=G,this.selectedPeriodService.endDate$.next({date:G,name:this.name})):2===this._calendarSelectedDatesCount&&!this.calendarSelectedStart.isBefore(G)&&(this.calendarSelectedEnd=this.calendarSelectedStart,this.calendarSelectedStart=G,this.selectedPeriodService.beginDate$.next({date:this.calendarSelectedStart,name:this.name}),this.selectedPeriodService.endDate$.next({date:this.calendarSelectedEnd,name:this.name})),this.calendarSelectedStart&&this.calendarSelectedEnd&&this.selectedPeriodService.chosenPeriod$.next({currentPeriod:this.currentPeriod,beginDate:this.calendarSelectedStart,endDate:this.calendarSelectedEnd,useUpdateCalendarDates:!1,name:this.name}),2===this._calendarSelectedDatesCount&&this.close(),null!==ce&&setTimeout(()=>{this.minDate=ce,this._dontClose=!1},0)}formatTitle(G){let ce=G;return this.calendarSelectedStart&&this.calendarSelectedEnd?ce=this.calendarSelectedStart!==this.calendarSelectedEnd?`${this.calendarSelectedStart.format("DD.MM.YYYY")} - ${this.calendarSelectedEnd.format("DD.MM.YYYY")}`:`${this.calendarSelectedStart.format("DD.MM.YYYY")}`:this.calendarSelectedStart?ce=`${this.calendarSelectedStart.format("DD.MM.YYYY")} - `:this.calendarSelectedEnd&&(ce=` - ${this.calendarSelectedEnd.format("DD.MM.YYYY")}`),ce}onClick(G){!this.wrapperRef.nativeElement.contains(G.target)&&!this._dontClose&&this.close()}static#e=this.\u0275fac=function(ce){return new(ce||R)(m.\u0275\u0275directiveInject(B.D7),m.\u0275\u0275directiveInject(O.A),m.\u0275\u0275directiveInject(n.UntypedFormBuilder))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:R,selectors:[["app-metib-periodpicker"]],viewQuery:function(ce,xe){if(1&ce&&(m.\u0275\u0275viewQuery($,7),m.\u0275\u0275viewQuery(C,7),m.\u0275\u0275viewQuery(T,7),m.\u0275\u0275viewQuery(j,7),m.\u0275\u0275viewQuery(e._H,5)),2&ce){let we;m.\u0275\u0275queryRefresh(we=m.\u0275\u0275loadQuery())&&(xe.wrapperRef=we.first),m.\u0275\u0275queryRefresh(we=m.\u0275\u0275loadQuery())&&(xe.btnRef=we.first),m.\u0275\u0275queryRefresh(we=m.\u0275\u0275loadQuery())&&(xe.popupRef=we.first),m.\u0275\u0275queryRefresh(we=m.\u0275\u0275loadQuery())&&(xe.popupCalendarRef=we.first),m.\u0275\u0275queryRefresh(we=m.\u0275\u0275loadQuery())&&(xe.calendars=we)}},hostBindings:function(ce,xe){1&ce&&m.\u0275\u0275listener("click",function(Ge){return xe.onClick(Ge)},!1,m.\u0275\u0275resolveDocument)},inputs:{placeholder:"placeholder",backgroundClass:"backgroundClass",maxAllowedDate:"maxAllowedDate",minAllowedDate:"minAllowedDate",allowedPeriods:"allowedPeriods",defaultPeriod:"defaultPeriod",name:"name",futureDates:"futureDates",restorePeriod:"restorePeriod"},features:[m.\u0275\u0275ProvidersFeature([{provide:e.q_,useClass:e.LK}])],decls:26,vars:40,consts:[["wrapper",""],[1,"period-picker__buttons-wrap"],["btn",""],[1,"period-picker__button","period-picker__button-left",3,"ngClass","click"],[1,"period-picker__button-left-arrow",3,"ngClass"],[1,"period-picker__button","period-picker__button-period",3,"click"],[1,"period-picker__button","period-picker__button-right",3,"ngClass","click"],[1,"period-picker__button-right-arrow",3,"ngClass"],[1,"period-picker__overlay",3,"ngClass"],["popup",""],[1,"period-picker__content"],["class","period-picker__content-period-item",3,"click",4,"ngFor","ngForOf"],[1,"period-picker__calendar",3,"ngClass"],["popupCalendar",""],[1,"period-picker__calendar-inputs",3,"formGroup"],[1,"metib-calendar-input"],["formControlName","beginDate","appearance","dcb-calendar",1,"period-picker__date-input",3,"mask","ngModelChange"],["formControlName","endDate","appearance","dcb-calendar",1,"period-picker__date-input",3,"mask","ngModelChange"],[1,"period-picker__calendar-content",3,"ngClass"],[1,"period-picker__calendar-item"],[3,"dateClass","startAt","dateFilter","headerComponent","selected","minDate","maxDate","selectedChange","viewChanged"],[3,"dateClass","dateFilter","headerComponent","selected","minDate","selectedChange","viewChanged"],[1,"period-picker__content-period-item",3,"click"]],template:function(ce,xe){1&ce&&(m.\u0275\u0275elementStart(0,"div",null,0)(2,"div",1,2)(4,"button",3),m.\u0275\u0275listener("click",function(){return xe.goPrev()}),m.\u0275\u0275element(5,"div",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(6,"button",5),m.\u0275\u0275listener("click",function(){return xe.open()}),m.\u0275\u0275text(7),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(8,"button",6),m.\u0275\u0275listener("click",function(){return xe.goNext()}),m.\u0275\u0275element(9,"div",7),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(10,"div",8,9)(12,"div",10),m.\u0275\u0275template(13,I,2,1,"div",11),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(14,"div",12,13)(16,"div",14)(17,"div",15)(18,"app-metib-input",16),m.\u0275\u0275listener("ngModelChange",function(Ge){return xe.inputBeginDateEvent(Ge)}),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(19,"div",15)(20,"app-metib-input",17),m.\u0275\u0275listener("ngModelChange",function(Ge){return xe.inputEndDateEvent(Ge)}),m.\u0275\u0275elementEnd()()(),m.\u0275\u0275elementStart(21,"div",18)(22,"div",19)(23,"mat-calendar",20),m.\u0275\u0275listener("selectedChange",function(Ge){return xe.onSelectDateRange(Ge)})("viewChanged",function(){return xe.calendarViewChanged()}),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(24,"div",19)(25,"mat-calendar",21),m.\u0275\u0275listener("selectedChange",function(Ge){return xe.onSelectDateRange(Ge)})("viewChanged",function(){return xe.calendarViewChanged()}),m.\u0275\u0275elementEnd()()()()()),2&ce&&(m.\u0275\u0275advance(4),m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction1(24,F,xe.isButtonPrevDisabledClass)),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction1(26,z,xe.isButtonPrevDisabledClass)),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(xe.currentPeriod.title),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction1(28,F,xe.isButtonNextDisabledClass)),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction1(30,z,xe.isButtonNextDisabledClass)),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction2(32,X,xe.opened,xe.backgroundClass)),m.\u0275\u0275advance(3),m.\u0275\u0275property("ngForOf",xe.predefinedPeriods),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction1(35,p,xe.calendarOpened)),m.\u0275\u0275advance(2),m.\u0275\u0275property("formGroup",xe.dateForm),m.\u0275\u0275advance(2),m.\u0275\u0275property("mask",xe.dateMask),m.\u0275\u0275advance(2),m.\u0275\u0275property("mask",xe.dateMask),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction2(37,P,xe.isHideNextMonthArrow,xe.hideCalendarPrev)),m.\u0275\u0275advance(2),m.\u0275\u0275property("dateClass",xe.dateClass)("startAt",xe.prevMonth)("dateFilter",xe.dateFilter)("headerComponent",xe.metibCalendarHeader)("selected",xe.selectedDateRange)("minDate",xe.minDate)("maxDate",xe.leftCalendarMaxDate),m.\u0275\u0275advance(2),m.\u0275\u0275property("dateClass",xe.dateClass)("dateFilter",xe.dateFilter)("headerComponent",xe.metibCalendarRightHeader)("selected",xe.selectedDateRange)("minDate",xe.minDate))},dependencies:[_.mk,_.sg,e._H,y.w,n.NgControlStatus,n.NgControlStatusGroup,n.FormGroupDirective,n.FormControlName],styles:['@charset "UTF-8";.period-picker__buttons-wrap[_ngcontent-%COMP%]{display:flex}.period-picker__button[_ngcontent-%COMP%]{padding:0;margin:0;border:1px solid #88909b;cursor:pointer;background-color:transparent}.period-picker__button-left[_ngcontent-%COMP%]{border-radius:4px 0 0 4px}.period-picker__button-left-arrow[_ngcontent-%COMP%]{width:47px;height:47px;background-repeat:no-repeat;background-position:center;background-image:url(/assets/icons/chevron_active.svg);background-size:19px}.period-picker__button-left-arrow.disabled-arrow[_ngcontent-%COMP%]{background-image:url(/assets/icons/chevron_disabled.svg);transform:scaleX(-1)}.period-picker__button-left.disabled-button[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.period-picker__button-right[_ngcontent-%COMP%]{border-radius:0 4px 4px 0}.period-picker__button-right-arrow[_ngcontent-%COMP%]{width:47px;height:47px;background-repeat:no-repeat;background-position:center;background-image:url(/assets/icons/chevron_active.svg);background-size:19px;transform:scaleX(-1)}.period-picker__button-right-arrow.disabled-arrow[_ngcontent-%COMP%]{background-image:url(/assets/icons/chevron_disabled.svg);transform:scaleX(1)}.period-picker__button-right.disabled-button[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.period-picker__button-period[_ngcontent-%COMP%]{width:180px;border-left:0px;border-right:0px;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:400;font-size:14px;line-height:19px}.period-picker__overlay[_ngcontent-%COMP%]{display:none;position:absolute;width:278px;background:#ffffff;box-shadow:0 4px 20px #0000002e;z-index:80;transition:opacity,transform,visibility;transition-duration:70ms,.25s,.25s;transition-timing-function:linear,cubic-bezier(.23,1,.32,1);transition-delay:25ms,50ms,0ms;max-height:500px;overflow:auto}.period-picker__overlay--open[_ngcontent-%COMP%]{display:block}.period-picker__content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.period-picker__content-period-item[_ngcontent-%COMP%]{height:48px;display:flex;align-items:center;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:400;font-size:14px;line-height:19px;color:#88909b;padding-left:16px;cursor:pointer;border-bottom:solid 1px #dedede}.period-picker__content-period-item[_ngcontent-%COMP%]:hover{background-color:#f1f2f2;color:#080708}.period-picker__content-period-item[_ngcontent-%COMP%]:last-child{border-bottom:solid 1px transparent}.period-picker__content-period-item[_ngcontent-%COMP%]:first-child{border-radius:2px 2px 0 0}.period-picker__calendar[_ngcontent-%COMP%]{display:none;position:absolute;width:508px;padding:20px;background:#ffffff;box-shadow:0 4px 20px #0000002e;z-index:80;transition:opacity,transform,visibility;transition-duration:70ms,.25s,.25s;transition-timing-function:linear,cubic-bezier(.23,1,.32,1);transition-delay:25ms,50ms,0ms;overflow:hidden}.period-picker__calendar--open[_ngcontent-%COMP%]{display:block}.period-picker__calendar-inputs[_ngcontent-%COMP%]{display:flex;flex-direction:row;line-height:22px;gap:24px}.period-picker__calendar-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:24px}.period-picker__calendar-item[_ngcontent-%COMP%]{width:224px}[_nghost-%COMP%]     .period-picker__calendar-content.no-prev .metib-calendar-header__button:first-child{visibility:hidden}[_nghost-%COMP%]     .period-picker__calendar-content.no-next .metib-calendar-header__button:last-child{visibility:hidden}[_nghost-%COMP%]     .period-picker__calendar-item mat-calendar.mat-calendar{font-family:Open Sans,Source Sans Pro,sans-serif}[_nghost-%COMP%]     .period-picker__calendar-item .mat-calendar-content{padding:0}[_nghost-%COMP%]     .period-picker__calendar-item .mat-calendar-table-header th{color:#88909b;font-size:12px;text-transform:uppercase}[_nghost-%COMP%]     .period-picker__calendar-item .mat-calendar-body-label{visibility:hidden}[_nghost-%COMP%]     .period-picker__calendar-item .mat-calendar-body-label[colspan="7"]{display:none}[_nghost-%COMP%]     .period-picker__calendar-item .mat-calendar-table-header-divider{display:none}[_nghost-%COMP%]     .period-picker__calendar-item input:focus{outline:none}[_nghost-%COMP%]     .period-picker__calendar-item .mat-calendar-body-in-range:before{background:none}[_nghost-%COMP%]     .period-picker__calendar-item .mat-calendar-body-in-preview{color:transparent}[_nghost-%COMP%]     .period-picker__calendar-item:first-of-type .metib-calendar-header__button:last-child{visibility:hidden}[_nghost-%COMP%]     .period-picker__calendar-item:last-of-type .metib-calendar-header__button:first-child{visibility:hidden}[_nghost-%COMP%]     .period-picker__date .mat-calendar-body-cell-content{color:#080708;font-size:12px;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:400;border-radius:8px}[_nghost-%COMP%]     .period-picker__date .mat-calendar-body-selected{background-color:#7180b9;color:#fff}[_nghost-%COMP%]     .period-picker__date-input{margin:0;width:222px}[_nghost-%COMP%]     .period-picker__date-in-period .mat-calendar-body-cell-content{color:#080708;background-color:#f1f2f1}[_nghost-%COMP%]     .period-picker__date-selected .mat-calendar-body-cell-content{color:#fff;background-color:#7180b9}']})}return R})()},34891:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>x});var n=t(98184),e=t(84080),i=t(37340),d=t(94650),a=t(36895);function u(O,L){if(1&O&&(d.\u0275\u0275elementStart(0,"h6"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&O){const w=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(w.text.title)}}function h(O,L){if(1&O&&(d.\u0275\u0275elementStart(0,"p"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&O){const w=L.$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(w)}}function l(O,L){if(1&O&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,h,2,1,"p",1),d.\u0275\u0275elementEnd()),2&O){const w=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",w.text.messages)}}let m=(()=>{class O{constructor(){this.text={title:"",messages:[]}}ngOnInit(){}static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:O,selectors:[["app-metib-popup"]],inputs:{text:"text"},decls:3,vars:3,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(B,_){1&B&&(d.\u0275\u0275elementStart(0,"article"),d.\u0275\u0275template(1,u,2,1,"h6",0),d.\u0275\u0275template(2,l,2,1,"div",0),d.\u0275\u0275elementEnd()),2&B&&(d.\u0275\u0275property("@popup",void 0),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",_.text.title),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",_.text.messages&&_.text.messages.length))},dependencies:[a.sg,a.O5],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}article[_ngcontent-%COMP%]{width:300px;background-color:#1a2a40;color:#fff;padding:.5rem 1rem;border-radius:4px}h6[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:600;font-size:14px;line-height:19px;color:#fff;margin:20px 15px 15px;padding:0;text-transform:capitalize;word-wrap:break-word}p[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:19px;margin:15px;padding:0;color:#fff;white-space:pre-line;word-wrap:break-word}p[_ngcontent-%COMP%]:first-letter{text-transform:capitalize}'],data:{animation:[(0,i.X$)("popup",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0}),(0,i.jt)(150,(0,i.oB)({opacity:1}))]),(0,i.eR)(":leave",[(0,i.jt)(150,(0,i.oB)({opacity:0}))])])]}})}return O})(),x=(()=>{class O{constructor(w,B){this.overlay=w,this.elementRef=B,this.textData={title:"",messages:[]}}show(w){if(this.textData?.messages.some(B=>B?.length)||this.textData?.title.length){this.overlayRef.updatePositionStrategy(this.getPositionStrategy(w));const B=new e.C5(m);this.overlayRef.attach(B).instance.text=this.textData}}hide(){this.overlayRef.detach()}ngOnInit(){this.createOverlay()}createOverlay(){const w=this.overlay.scrollStrategies.reposition(),B=this.getPositionStrategy(null);this.overlayRef=this.overlay.create({positionStrategy:B,scrollStrategy:w,hasBackdrop:!1})}getPositionStrategy(w){let B=new n.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"},null,14,"bottom-panel");return w&&document.body.clientHeight/2<w.clientY&&(B=new n.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"},null,-10,"top-panel")),this.overlay.position().flexibleConnectedTo(this.elementRef).withPositions([B]).withPush(!0)}static#e=this.\u0275fac=function(B){return new(B||O)(d.\u0275\u0275directiveInject(n.aV),d.\u0275\u0275directiveInject(d.ElementRef))};static#t=this.\u0275dir=d.\u0275\u0275defineDirective({type:O,selectors:[["","appMetibPopup",""]],hostBindings:function(B,_){1&B&&d.\u0275\u0275listener("mouseenter",function($){return _.show($)})("mouseout",function(){return _.hide()})("click",function(){return _.hide()})},inputs:{textData:["appMetibPopup","textData"]}})}return O})()},73390:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>n,N:()=>e});const n=new Date(1993,7,23),e=[{caption:'\u041f\u0410\u041e \u0410\u041a\u0411 "\u041c\u0415\u0422\u0410\u041b\u041b\u0418\u041d\u0412\u0415\u0421\u0422\u0411\u0410\u041d\u041a"',value:"metib"},{caption:'\u041f\u0410\u041e \u041a\u043e\u043c\u0431\u0430\u043d\u043a "\u0425\u0438\u043c\u0438\u043a"',value:"bpx"}]},74565:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>Hn});var n=t(97582),e=t(16611),i=t(15439),d=t.n(i),a=t(77579),u=t(39841),h=t(92718),l=t(71884),m=t(54244),x=t(82722),O=t(39300),L=t(6146),w=t(30723),B=t(93887),_=t(41795),y=t(94650),$=t(14228),C=t(54331),T=t(92008),j=t(54004),I=t(86349),z=(t(66266),t(83e3)),X=t(75885),p=t(44180),P=t(36895),E=t(15644);let R=(()=>{class tt{constructor(De,ve,Se,Me,We,ut){this.lastOperationService=De,this.operationService=ve,this.translationService=Se,this.activatedRoute=Me,this.datePipe=We,this.configUtilsService=ut}getPerformedOperationInfo(De,ve,Se){!De.extDocId||De?.docType===L.o.DocPlatporBp||De?.docType===L.o.TransferRests||!(Se===_.Os.Out||Se===_.Os.All&&(De.amount||"").toString().startsWith("-"))||("RUR"===De.currency||"all"===De.currency?(De.docType="doc_platpor",De.docModule="ibankul"):(De.docType="doc_platpor_curr",De.docModule="ibankul_curr"),this.lastOperationService.requestOperationsByDocId({docModule:De.docModule,docType:De.docType,doc_ids:De.extDocId}).subscribe(We=>{if(We){const ut=I.VO(We)[0];let ue;ut.accNumber&&(De.accNumber=ut.accNumber),this.operationService.detectChanges$.next(!0),ut.displayedFields&&(ue=ut.displayedFields.list),ut.cause&&(ut.causeText=this.translationService.translate("Recall cause"),ut.causeDisplay=!1),De.info={buttons:this.getButtons(De,ut),rows:[...(0,z.aT)(ut,ue)],learnMoreButton:{show:!0,link:"/operation-details",queryParams:{id:ut.id,docModule:De.docModule,docType:De.docType,docIds:De.id,accId:ut.accId,pathBack:`/${this.activatedRoute.snapshot.url.join("/")}`,tab:ve}}},this.operationService.detectChanges$.next(!0)}}))}getFiatOperationInfo(De,ve){De.info||this.lastOperationService.requestOperationsByDocId({docModule:De.docModule,docType:De.docType,doc_ids:De.id}).pipe((0,j.U)(Se=>{switch(De.docType){case"doc_platpor_curr":case L.o.DocPlatporCurrBp:return Se.transferCurrUl;case"doc_transit_pay_doc":return Se.transitPayUl;case"doc_currbuy":return Se.currBuy;case"doc_currsell":return Se.currSell;case"doc_platpor_conv":return Se.currConv;case"doc_payment_request_outgoing":return Se.paymentReqOutDocument;case"request_advance_accept":return Se.requestAdvanceAcceptDocument;case"accept_edit":return Se.acceptEdit;case"accept_cancellation":return Se.acceptCancellation}})).subscribe(Se=>{De.info=this.generateFiatOperationInfo(Se,De,ve),this.operationService.detectChanges$.next(!0)})}getPlannedOrRefusedOperationInfo(De,ve){this.lastOperationService.requestOperationsByDocId({docModule:De.docModule,docType:De.docType,doc_ids:De.id}).subscribe(Se=>{const Me=I.VO(Se)[0];let We;this.lastOperationService.plannedOperationsInfo=Me,Me.displayedFields&&(We=Me.displayedFields.list),Me.cause&&(ve===_.d$.Refused?(Me.causeText=this.translationService.translate("Refuse cause"),Me.causeDisplay=!0):(Me.causeText=this.translationService.translate("Recall cause"),Me.causeDisplay=!1)),De.accNumber=Me.accNumber,De.info={buttons:this.getButtons(De,Me),rows:[...(0,z.aT)(Me,We)],learnMoreButton:{show:!0,link:"/operation-details",queryParams:{id:Me.id,docModule:De.docModule,docType:De.docType,docIds:De.id,accId:Me.accId,pathBack:`/${this.activatedRoute.snapshot.url.join("/")}`,tab:ve}}},this.operationService.detectChanges$.next(!0)})}getOperationInfo({clickedOperation:De,operationsTab:ve,performedTab:Se,activeDocType:Me}){switch(ve){case _.d$.Plan:case _.d$.Refused:B.RH.includes(Me)?this.getPlannedOrRefusedOperationInfo(De,ve):this.getFiatOperationInfo(De,ve);break;case _.d$.ForSign:this.getFiatOperationInfo(De,ve);break;case _.d$.Performed:this.getPerformedOperationInfo(De,ve,Se)}}generateFiatOperationInfo(De,ve,Se){let Me=[];const We=[];switch((ve.actions||[]).forEach(ut=>{switch(ut){case"print":We.push({type:"print",data:{inPopup:!0,docId:De.id}});break;case"print_BPX":We.push({type:"print_BPX",data:{inPopup:!0,docId:De.id}});break;case"sign_on_client":We.push({type:"sign",data:{docId:De.id,docType:De.docType,accNumber:De.accNumber||De.accCredit||De.creditAccNumber,docModule:De.docModule,inq181:ve?.inq181}});break;case"sign_list":We.push({type:"showSigns",data:{docId:De.id}});break;case"delete":We.push({type:"delete",data:{docId:De.id}});break;case"update":We.push({type:"edit",data:{docId:De.id,docType:De.docType,docModule:De.docModule}});break;case"copy":We.push({type:"createCopy",data:{docId:De.id,docType:De.docType,docModule:De.docModule}});break;case"create_template":We.push({type:"createTemplate",data:{docId:De.id}});break;case"send":We.push({type:"send"});break;case"delete_sign":We.push({type:"send",data:{docId:ve.id,docType:ve.docType,docModule:ve.docModule}});break;case"request_cancel":We.push({type:"send",data:{docId:De.id}})}}),De.docType){case"doc_platpor_curr":Me=[{capture:"Checking account",value:De.corrAccNumber},{capture:"Bank SWIFT",value:De.corrBankSwift},{capture:"Bank name",value:De.corrBankName},{capture:"Performer",value:De.employeeFio}];break;case"doc_transit_pay_doc":Me=[{capture:"\u2116 notification",value:De.noticeNumber},{capture:"Notification data",value:this.datePipe.transform(De.noticeDate,"dd.MM.yyyy")},{capture:"Transit Account",value:De.transAcc},{capture:"Performer",value:De.employee}];break;case"doc_currbuy":case"doc_currsell":case"doc_platpor_conv":Me=[{capture:"Write-off Account",value:De.debitAccNumber||De.creditAccNumber},{capture:"Rate type",value:this.getForSignRateType(De.requestRateType)},{capture:"Deal type",value:De.dealName}]}return Se===_.d$.Refused&&Me.push({capture:"Refuse cause",value:De.declineInfo}),{rows:Me,buttons:We,learnMoreButton:{show:!1}}}getForSignRateType(De){switch(De){case"0":return this.translationService.translate("Bank rate");case"1":return this.translationService.translate("Checking rate");case"3":return this.translationService.translate("Quotation")}}getButtons(De,ve){const Se=[];return(De.actions||[]).forEach(Me=>{switch(Me){case"create_template":Se.push({type:"createTemplate",data:{docId:De.docIds}});break;case"copy":Se.push({type:"createCopy",data:{docId:De.docIds}});break;case"print":Se.push({type:"print",data:{docId:ve.id,inPopup:!0}});break;case"update":let We;"doc_payment_request_outgoing"===De.docType&&(We="/payment-req-out"),Se.push({type:"edit",data:{docId:De.docIds,docType:De.docType,url:We}});break;case"delete":Se.push({type:"delete",data:{docId:De.docIds,inq181:De?.inq181}});break;case"sign_list":Se.push({type:"showSigns",data:{docId:De.docIds}});break;case"delete_sign":Se.push({type:"delete_sign",data:{docId:De.id,docType:De.docType,docModule:De.docModule,inq181:De?.inq181}});break;case"send":Se.push({type:"send",data:{docId:De.docIds}});break;case"sign_on_client":Se.push({type:"sign",data:{docId:De.id,docType:De.docType,docModule:De.docModule,accNumber:ve.accNumber,inq181:De?.inq181}});break;case"cancel":Se.push({type:"cancel",data:{docId:De.id,docType:De.docType,docModule:De.docModule,docNumber:ve.docNumber,inq181:De?.inq181}})}}),Se}getSBPOperationInfo(De){this.lastOperationService.getSBPInfo(De).subscribe(ve=>{const Se="0"===De.charType;De.info.rows=[{capture:Se?"Deposit Account":"Write-off Account",value:De.ownerAccountNumber},{capture:"Recipient name",value:Se?ve.tradeName:De.counterpartName},{capture:Se?"Name of the sender":"Recipient name",value:Se?De.counterpartName:ve.tradeName},{capture:Se?"Sender bank":"Corr bank name",value:De.counterpartBankName},{capture:Se?"Sender INN":"corrInn",value:De.counterpartInn},{capture:"Amount of payment with symbol",value:ve?.qty?.toString()},{capture:"Amount of NDS",value:ve?.qtyNds?ve?.qtyNds.toString():"\u041d\u0414\u0421 \u043d\u0435 \u043e\u0431\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f"},{capture:"Amount of commission",value:ve?.qtyComis?ve.qtyComis.toString():"0.00"},{capture:"Total with NDS",value:ve?.qty?ve?.qty?.toString():"0.00"},{capture:"Description",value:ve?.purpose},{capture:"Date and time of operation",value:this.configUtilsService.formatDateStringDMYHM(ve.dateSbp)},{capture:"ID operation",value:ve.opkc},{capture:"Status",value:"\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d"}],this.operationService.detectChanges$.next(!0)})}static#e=this.\u0275fac=function(ve){return new(ve||tt)(y.\u0275\u0275inject(X.o),y.\u0275\u0275inject($.f),y.\u0275\u0275inject(e.D7),y.\u0275\u0275inject(p.gz),y.\u0275\u0275inject(P.uU),y.\u0275\u0275inject(E.Pj))};static#t=this.\u0275prov=y.\u0275\u0275defineInjectable({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();var ne=t(86962),G=t(64426),ce=t(38101),xe=t(37601),we=t(25781),Ge=t(75568),ct=t(55324),pe=t(20988),Ce=t(93379),U=t(3751),H=t(40929),Z=t(9149),oe=t(65938),Pe=t(15725),Ie=t(17263);const pt=["fileInput"];class Ht{constructor(nt,De,ve,Se,Me,We,ut,ue,et,At){this.translation=nt,this.userDataService=De,this.importService=ve,this.apiService=Se,this.configUtilService=Me,this.documentService=We,this.router=ut,this.modalService=ue,this.toast=et,this.matDialogRef=At,this.alertType="success",this.load=!1,this.isCountLoaded=!1,this.importedDocs=[],this.items=[{caption:"\u041f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0435 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u0435",id:1,code:{docType:"doc_platpor",docModule:"ibankul"}},{caption:"\u0412\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434",id:1,code:{docType:"doc_platpor_curr",docModule:"ibankul_curr"}},{caption:"\u041f\u043e\u043a\u0443\u043f\u043a\u0430 \u0432\u0430\u043b\u044e\u0442\u044b",id:1,code:{docType:"doc_currbuy",docModule:"ibankul_curr"}},{caption:"\u041f\u0440\u043e\u0434\u0430\u0436\u0430 \u0432\u0430\u043b\u044e\u0442\u044b",id:1,code:{docType:"doc_currsell",docModule:"ibankul_curr"}},{caption:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0449\u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445",id:1,code:{docType:"inq_conf_181",docModule:"ibankul_curr"}},{caption:"\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445",id:1,code:{docType:"inq_curr_181",docModule:"ibankul_curr"}},{caption:"\u041c\u0435\u0436\u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0435 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b",id:1,code:{docType:"doc_interbnk_currency_transfer",docModule:"ibankul_curr"}}]}ngOnInit(){this.matDialogRef.addPanelClass("import-modal")}onFileInput(nt){if(!this.selectedDocType)return;this.isCountLoaded=!1;const De=Object.values(nt.target.files);De.length&&De.forEach(ve=>{this.loadFile(ve)})}loadFile(nt){let De;if(/[.]/.exec(nt.name)&&(De=/[.]/.exec(nt.name)?/[^.]+$/.exec(nt.name):void 0),"txt"!==De[0])return this.alertType="error",void this.toast.show("Unsupported file type!","error");const ve=new FormData;ve.append("file",nt,nt.name),this.load=!0,this.importedMessageList&&this.importedMessageList.items&&(this.importedMessageList.items=void 0),this.apiService.post(`one_window/import/${this.selectedDocType.docModule}/${this.selectedDocType.docType}`,ve).subscribe(Se=>{this.matDialogRef.close(),this.toast.show(`\u0418\u043c\u043f\u043e\u0440\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e. \u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e ${Se} \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432`,"success")},Se=>{Se.errorCode&&this.toast.show(Se.errorText,"error")})}reset(){this.fileInput.nativeElement.value=""}selectDocType(nt){this.selectedDocType=nt.code}close(){this.matDialogRef.close()}static#e=this.\u0275fac=function(De){return new(De||Ht)(y.\u0275\u0275directiveInject(e.D7),y.\u0275\u0275directiveInject(xe.M),y.\u0275\u0275directiveInject(G.a),y.\u0275\u0275directiveInject(U.s),y.\u0275\u0275directiveInject(E.Pj),y.\u0275\u0275directiveInject(H.Z),y.\u0275\u0275directiveInject(p.F0),y.\u0275\u0275directiveInject(ce.Z),y.\u0275\u0275directiveInject(Z.j),y.\u0275\u0275directiveInject(oe.so))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:Ht,selectors:[["app-import-from1c-modal"]],viewQuery:function(De,ve){if(1&De&&y.\u0275\u0275viewQuery(pt,5),2&De){let Se;y.\u0275\u0275queryRefresh(Se=y.\u0275\u0275loadQuery())&&(ve.fileInput=Se.first)}},decls:9,vars:6,consts:[["data-qa","1663167559022","title","\u0418\u043c\u043f\u043e\u0440\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 1\u0421",3,"withCloseButton","close"],["data-qa","1663167553835","label","caption","title","\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0438\u043f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430",3,"items","selectionChange"],[1,"import__button","load"],["data-qa","1663167561755",1,"import__button-label",3,"click"],["data-qa","1663167564085","multiple","multiple","type","file",1,"import__button-label__input",3,"input"],["fileInput",""]],template:function(De,ve){1&De&&(y.\u0275\u0275elementStart(0,"app-page",0),y.\u0275\u0275listener("close",function(){return ve.close()}),y.\u0275\u0275elementStart(1,"app-select",1),y.\u0275\u0275listener("selectionChange",function(Me){return ve.selectDocType(Me)}),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(2,"div",2)(3,"label",3),y.\u0275\u0275listener("click",function(){return ve.reset()}),y.\u0275\u0275elementStart(4,"span"),y.\u0275\u0275text(5),y.\u0275\u0275pipe(6,"translate"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(7,"input",4,5),y.\u0275\u0275listener("input",function(Me){return ve.onFileInput(Me)}),y.\u0275\u0275elementEnd()()()()),2&De&&(y.\u0275\u0275property("withCloseButton",!0),y.\u0275\u0275advance(1),y.\u0275\u0275property("items",ve.items),y.\u0275\u0275advance(4),y.\u0275\u0275textInterpolate(y.\u0275\u0275pipeBind2(6,3,"Load",ve.lang)))},dependencies:[Pe.I,Ie.H,e.X$],styles:['@charset "UTF-8";.import.load[_ngcontent-%COMP%]{opacity:.4}.import__title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;font-weight:700;color:#080708;border-bottom:1px solid #dedede;padding-bottom:35px}.import__header-value[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}.import__alert[_ngcontent-%COMP%]{margin-top:12px;padding:12px;border-radius:4px;color:#fff;white-space:break-spaces;word-break:break-word;max-width:550px}.import__alert.success[_ngcontent-%COMP%]{background-color:#28b26d}.import__alert.warning[_ngcontent-%COMP%]{background-color:#f3ac24}.import__alert.error[_ngcontent-%COMP%]{background-color:#d9291e}.import__button[_ngcontent-%COMP%]{padding-top:20px}.import__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.import__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.import__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.import__button-label__input[_ngcontent-%COMP%]{display:none}.import__button.view[_ngcontent-%COMP%]{margin-right:20px}.import__button.load[_ngcontent-%COMP%]{width:170px}.import__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}(0,n.gn)([(0,e.SQ)()],Ht.prototype,"lang",void 0);var Wt=t(54),Xe=t(71912),Qe=t(90995);function Be(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"app-button",3),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.openImportModal())}),y.\u0275\u0275pipe(1,"translate"),y.\u0275\u0275elementEnd()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275propertyInterpolate("text",y.\u0275\u0275pipeBind2(1,1,"Import",De.lang))}}function at(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"app-button",4),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.openImportTxtModal())}),y.\u0275\u0275pipe(1,"translate"),y.\u0275\u0275elementEnd()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275propertyInterpolate("text",y.\u0275\u0275pipeBind2(1,1,"Import TXT",De.lang))}}function lt(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"app-button",5),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.openExtractModal())}),y.\u0275\u0275pipe(1,"translate"),y.\u0275\u0275elementEnd()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275propertyInterpolate("text",y.\u0275\u0275pipeBind2(1,1,"Extract",De.lang))}}class Dt{constructor(nt,De,ve,Se,Me){this.modalService=nt,this.importService=De,this.matDialog=ve,this.appConfigService=Se,this.cdr=Me,this.destroyed$=new a.x,this.productIdForStatement="",this.chosenTab=_.d$.Performed,this.isImportAvailable=!1,this.isImportModalAvailable=!1,this.isExtractsAvailable=!1}get isExtractsExists(){return this.chosenTab===_.d$.Performed}openImportModal(){this.importService.imported$.next(!1),this.modalService.open(Xe.Z)}openImportTxtModal(){this.matDialog.open(Ht)}openExtractModal(){this.modalService.open(Wt.H,{inputs:{selectedProductId:this.productIdForStatement},overflow:"initial"})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}ngOnInit(){this.appConfigService.settings$.pipe((0,m.n)(nt=>!1===nt.isLoaded),(0,x.R)(this.destroyed$)).subscribe(nt=>{this.isExtractsAvailable=1===nt.ulSettings["STAT/ONLINE_STATEMENT"],this.isImportModalAvailable=nt.ulSettings["IMPORT/UL_PLATPOR_1C"],this.isImportAvailable=(nt.roles.has(w.NZ)||nt.roles.has(w.NM))&&1===nt.ulSettings["IMPORT/UL_PLATPOR_1C"]&&1==nt.ulSettings["SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"],this.cdr.detectChanges()})}static#e=this.\u0275fac=function(De){return new(De||Dt)(y.\u0275\u0275directiveInject(ce.Z),y.\u0275\u0275directiveInject(G.a),y.\u0275\u0275directiveInject(oe.uw),y.\u0275\u0275directiveInject(T._),y.\u0275\u0275directiveInject(y.ChangeDetectorRef))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:Dt,selectors:[["app-operations-controls"]],inputs:{productIdForStatement:"productIdForStatement",chosenTab:"chosenTab"},decls:3,vars:3,consts:[["class","controls-item","data-qa","1657789420327","type","small-bordered",3,"text","click",4,"ngIf"],["class","controls-item","data-qa","1658838280077","type","small-bordered",3,"text","click",4,"ngIf"],["class","controls-item","data-qa","1657789429135","type","small",3,"text","click",4,"ngIf"],["data-qa","1657789420327","type","small-bordered",1,"controls-item",3,"text","click"],["data-qa","1658838280077","type","small-bordered",1,"controls-item",3,"text","click"],["data-qa","1657789429135","type","small",1,"controls-item",3,"text","click"]],template:function(De,ve){1&De&&(y.\u0275\u0275template(0,Be,2,4,"app-button",0),y.\u0275\u0275template(1,at,2,4,"app-button",1),y.\u0275\u0275template(2,lt,2,4,"app-button",2)),2&De&&(y.\u0275\u0275property("ngIf",ve.isImportModalAvailable),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.isImportAvailable),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.isExtractsExists&&ve.isExtractsAvailable))},dependencies:[P.O5,Qe.r,e.X$],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;border-bottom:1px solid #f1f2f2}.controls-item[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:30px}.controls-item[_ngcontent-%COMP%] + .controls-item[_ngcontent-%COMP%]{margin-left:30px}'],changeDetection:0})}function Yt(tt,nt){if(1&tt&&(y.\u0275\u0275elementStart(0,"span",3),y.\u0275\u0275text(1),y.\u0275\u0275elementEnd()),2&tt){const De=y.\u0275\u0275nextContext().$implicit;y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate(De.count<100?De.count:"99+")}}function Tt(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",1),y.\u0275\u0275listener("click",function(){const Me=y.\u0275\u0275restoreView(De).$implicit,We=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(We.setActive(Me))}),y.\u0275\u0275text(1),y.\u0275\u0275pipe(2,"translate"),y.\u0275\u0275template(3,Yt,2,1,"span",2),y.\u0275\u0275elementEnd()}if(2&tt){const De=nt.$implicit,ve=nt.index,Se=y.\u0275\u0275nextContext();y.\u0275\u0275classProp("active",De.title===Se.currentTab),y.\u0275\u0275attribute("data-qa","1657786925923"+ve),y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate1(" ",y.\u0275\u0275pipeBind2(2,5,De.title,Se.lang)," "),y.\u0275\u0275advance(2),y.\u0275\u0275property("ngIf",De.count)}}(0,n.gn)([(0,e.SQ)()],Dt.prototype,"lang",void 0);class ot{constructor(){this.lang="",this.tabs=[],this.currentTab="",this.changeEvent=new y.EventEmitter}setActive(nt){this.changeEvent.emit(nt.title)}static#e=this.\u0275fac=function(De){return new(De||ot)};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:ot,selectors:[["app-metib-tabs"]],inputs:{tabs:"tabs",currentTab:"currentTab"},outputs:{changeEvent:"changeEvent"},decls:1,vars:1,consts:[["class","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"tab",3,"click"],["class","tab-number",4,"ngIf"],[1,"tab-number"]],template:function(De,ve){1&De&&y.\u0275\u0275template(0,Tt,4,8,"div",0),2&De&&y.\u0275\u0275property("ngForOf",ve.tabs)},dependencies:[P.sg,P.O5,e.X$],styles:['@charset "UTF-8";[_nghost-%COMP%]{height:90px;display:flex;font-family:Open Sans,Source Sans Pro,sans-serif;border-bottom:1px solid #dedede}.tab[_ngcontent-%COMP%]{position:relative;color:#88909b;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center;border-bottom:3px solid transparent;transition:border-color .2s ease,color .2s ease;margin-bottom:-2px}.tab[_ngcontent-%COMP%] + .tab[_ngcontent-%COMP%]{margin-left:40px}.tab[_ngcontent-%COMP%]:hover{color:#444}.active[_ngcontent-%COMP%]{border-bottom:3px solid #2f54eb;color:#444}']})}(0,n.gn)([(0,e.SQ)()],ot.prototype,"lang",void 0);var Gt=t(24006),wt=t(34385),Ze=t(61135),Ut=t(78372),vn=t(8226),xn=t(43270),bn=t(30184),hn=t(39486),pn=t(95395),In=t(73040),Dn=t(97392),Tn=t(10266);function mn(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",11),y.\u0275\u0275listener("click",function(){const Me=y.\u0275\u0275restoreView(De).$implicit,We=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(We.changeAdditional(Me.key))}),y.\u0275\u0275text(1),y.\u0275\u0275pipe(2,"translate"),y.\u0275\u0275elementEnd()}if(2&tt){const De=nt.$implicit,ve=nt.index,Se=y.\u0275\u0275nextContext(2);y.\u0275\u0275classProp("active",Se.chosenAdditionalTab===De.key),y.\u0275\u0275attribute("data-qa","1657789808032"+ve),y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate1(" ",y.\u0275\u0275pipeBind2(2,4,De.title,Se.lang)," ")}}function Yn(tt,nt){if(1&tt&&(y.\u0275\u0275elementStart(0,"div",9),y.\u0275\u0275template(1,mn,3,7,"div",10),y.\u0275\u0275elementEnd()),2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275property("ngForOf",De.additionalTabs)}}function cn(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",12),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.onMoreFiltersClick())}),y.\u0275\u0275elementStart(1,"div",13),y.\u0275\u0275text(2),y.\u0275\u0275pipe(3,"translate"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(4,"mat-icon",14),y.\u0275\u0275text(5,"filter_alt"),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275classProp("active",De.moreFiltersOpen||De.isFiltersAppliedForCurrentTab),y.\u0275\u0275property("matTooltip",De.getFilterAppliedTitle)("matTooltipPosition","above"),y.\u0275\u0275advance(2),y.\u0275\u0275textInterpolate(y.\u0275\u0275pipeBind2(3,5,"Filters",De.lang))}}function Nn(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",23)(1,"app-multi-select",24),y.\u0275\u0275listener("multiSelectChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(Me.changeOperationCode(Se))}),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext(2);y.\u0275\u0275property("ngClass",De.getFilterClass)("matTooltip",De.getStatusesListTitle)("matTooltipPosition","above"),y.\u0275\u0275advance(1),y.\u0275\u0275property("checkboxList",De.checkBoxListOpCodes)}}function Bt(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",16)(1,"app-multi-select",25),y.\u0275\u0275listener("multiSelectChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(Me.onLoanAgreementNumberSelect(Se))}),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext(2);y.\u0275\u0275property("ngClass",De.getPerformedFilterClass)("matTooltip",De.getLoanAgreementsListTitle)("matTooltipPosition","above"),y.\u0275\u0275advance(1),y.\u0275\u0275property("checkboxList",De.checkboxListLoanAgreements)("labelWhenNothingChosen","Choose loan agreement")}}function En(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"app-multi-select",17),y.\u0275\u0275listener("multiSelectChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.onProductSelect(Se))}),y.\u0275\u0275elementEnd()(),y.\u0275\u0275template(3,Nn,2,4,"div",18),y.\u0275\u0275template(4,Bt,2,5,"div",19),y.\u0275\u0275elementStart(5,"div",20)(6,"app-input",21),y.\u0275\u0275listener("valueChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.onAmountFrom(Se))}),y.\u0275\u0275pipe(7,"translate"),y.\u0275\u0275elementEnd()(),y.\u0275\u0275elementStart(8,"div",20)(9,"app-input",22),y.\u0275\u0275listener("valueChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.onAmountTo(Se))}),y.\u0275\u0275pipe(10,"translate"),y.\u0275\u0275elementEnd()()()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275property("formGroup",De.filterFormGroup),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngClass",De.getPerformedFilterClass)("matTooltip",De.getProductsListTitle)("matTooltipPosition","above"),y.\u0275\u0275advance(1),y.\u0275\u0275property("checkboxList",De.checkboxListProducts),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",De.checkBoxListOpCodes.length>0),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",De.checkboxListLoanAgreements.length>0),y.\u0275\u0275advance(1),y.\u0275\u0275property("matTooltip",De.getAmountFromError)("matTooltipPosition","above"),y.\u0275\u0275advance(1),y.\u0275\u0275propertyInterpolate("placeholder",y.\u0275\u0275pipeBind2(7,15,"Amount from",De.lang)),y.\u0275\u0275property("value",null==De.filterValue?null:De.filterValue.fromAmount),y.\u0275\u0275advance(2),y.\u0275\u0275property("matTooltip",De.getAmountToError)("matTooltipPosition","above"),y.\u0275\u0275advance(1),y.\u0275\u0275propertyInterpolate("placeholder",y.\u0275\u0275pipeBind2(10,18,"Amount to",De.lang)),y.\u0275\u0275property("value",null==De.filterValue?null:De.filterValue.toAmount)}}function Wn(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",31)(1,"app-multi-select",32),y.\u0275\u0275listener("multiSelectChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(Me.changeActiveDocType(Se))}),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext(2);y.\u0275\u0275property("ngClass",De.getFilterClass),y.\u0275\u0275advance(1),y.\u0275\u0275property("checkboxList",De.radioOperationTypes)("disabled",De.isCounterpart&&(De.isPlanTab||De.isRefusedTab))("radioType",!0)}}function rn(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",23)(1,"app-multi-select",24),y.\u0275\u0275listener("multiSelectChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(Me.changeOperationCode(Se))}),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext(2);y.\u0275\u0275property("ngClass",De.getFilterClass)("matTooltip",De.getStatusesListTitle)("matTooltipPosition","above"),y.\u0275\u0275advance(1),y.\u0275\u0275property("checkboxList",De.checkBoxListOpCodes)}}function Sn(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",33)(1,"app-multi-select",34),y.\u0275\u0275listener("multiSelectChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(Me.onLoanAgreementNumberSelect(Se))}),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext(2);y.\u0275\u0275property("matTooltip",De.getLoanAgreementsListTitle)("matTooltipPosition","above"),y.\u0275\u0275advance(1),y.\u0275\u0275property("checkboxList",De.checkboxListLoanAgreements)("labelWhenNothingChosen","Choose loan agreement")}}function ke(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",26),y.\u0275\u0275template(1,Wn,2,4,"div",27),y.\u0275\u0275template(2,rn,2,4,"div",18),y.\u0275\u0275template(3,Sn,2,4,"div",28),y.\u0275\u0275elementStart(4,"div",29)(5,"app-multi-select",30),y.\u0275\u0275listener("multiSelectChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.changeShowAmount(Se))}),y.\u0275\u0275elementEnd()()()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!De.isPaymentRequestTab),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!De.isPaymentRequestTab&&!De.isCommissionTab&&De.checkBoxListOpCodes.length>0),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!De.isPaymentRequestTab&&De.checkboxListLoanAgreements.length>0&&"doc_platpor"===De.selectedDocType),y.\u0275\u0275advance(1),y.\u0275\u0275classProp("hidden-filter",De.isPerformedTab||De.isPaymentRequestTab),y.\u0275\u0275property("ngClass",De.getFilterClass),y.\u0275\u0275advance(1),y.\u0275\u0275property("checkboxList",De.radioAmountToShow)("name","docsShow")("radioType",!0)}}function ge(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",35),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.onResetFilters())}),y.\u0275\u0275text(1,"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b"),y.\u0275\u0275elementEnd()}}function q(tt,nt){if(1&tt&&(y.\u0275\u0275elementStart(0,"div",36),y.\u0275\u0275text(1),y.\u0275\u0275pipe(2,"translate"),y.\u0275\u0275elementEnd()),2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate1(" ",y.\u0275\u0275pipeBind2(2,1,"Loan agreement message",De.lang),"\n")}}class J{constructor(nt,De,ve,Se,Me,We,ut){this.lastOperationService=nt,this.productsService=De,this.operationsService=ve,this.configUtilService=Se,this.appConfigService=Me,this.translationService=We,this.fb=ut,this._destroyed$=new a.x,this._products=new Ze.X([]),this._debouncedFilterChange$=new a.x,this._filtersAppliedList={products:!1,opCodes:!1,loanAgreements:!1,docTypes:!1,amountPerPage:!1,amountTo:!1,amountFrom:!1},this.PREFORMED_TABS=_.Os,this.OPERATIONS_TABS=_.d$,this.lang="",this.chosenOperationsTab=_.d$.Performed,this.chosenAdditionalTab=_.Os.All,this.filterValue=null,this.isCounterpart=!1,this.productIdForStatement="",this.currencyType="RUR",this.activeDocType=L.o.DocPlatpor,this.changeAdditionalTab=new y.EventEmitter,this.changeFilter=new y.EventEmitter,this.changeDocType=new y.EventEmitter,this.radioOperationTypes=[],this.checkBoxListOpCodes=[],this.additionalStatuses=[],this.checkboxListProducts=[],this.checkboxListLoanAgreements=[],this.radioAmountToShow=bn.hS,this.moreFiltersOpen=!1,this.actualCreditProducts$=this.productsService.actualCreditProducts$,this.selectedDocType=L.o.DocPlatpor,this.sumValidator=Gt.Validators.compose([ue=>""===ue.value||/^[0-9]+[0-9\.]{0,3}$/.test(ue.value)?[]:{invalidSum:!0}]),this.sumFromValidator=Gt.Validators.compose([ue=>{const et=parseFloat(this.filterValue?.toAmount||"0"),At=null===this.filterValue||""===this.filterValue?.toAmount;return ue.value&&et>0&&parseFloat(ue.value)>et?{invalidFromSum:!0}:""===ue.value||0!==parseFloat(ue.value||"0")||0!==et||At?[]:(this.filterFormGroup.controls.toAmountField.setErrors({invalidToSum:!0},{emitEvent:!0}),{invalidFromSum:!0})}]),this.sumToValidator=Gt.Validators.compose([ue=>{const et=parseFloat(this.filterValue?.fromAmount||"0"),At=null===this.filterValue||""===this.filterValue?.fromAmount;return ue.value&&et>0&&parseFloat(ue.value)<et?{invalidToSum:!0}:""===ue.value||0!==parseFloat(ue.value)||0!==et||At?[]:(this.filterFormGroup.controls.fromAmountField.setErrors({invalidFromSum:!0},{emitEvent:!0}),{invalidToSum:!0})}]),this.filterFormGroup=this.fb.group({fromAmountField:new Gt.UntypedFormControl("",[this.sumValidator,this.sumFromValidator]),toAmountField:new Gt.UntypedFormControl("",[this.sumValidator,this.sumToValidator])})}get additionalTabs(){return Object.entries(this.chosenOperationsTab===_.d$.Performed?_.Os:_.wB).map(([De,ve])=>({key:De,title:ve}))}setCheckboxListLoanAgreements(){this.actualCreditProducts$.pipe((0,x.R)(this._destroyed$)).subscribe(nt=>{this.checkboxListLoanAgreements=nt.map(De=>({label:De.creditInformation.contractNum,chosen:!1,value:De.creditInformation.contractNum})),this.checkboxListLoanAgreements.length&&this.checkboxListLoanAgreements.unshift({label:"All loan agreements",chosen:!1,all:!0,value:this.configUtilService.generateAllValueFromCheckboxList(this.checkboxListLoanAgreements)})})}getProductLabel(nt){const De=nt.alias?nt.alias:nt.info;return De.indexOf("**")>-1?De:`${De} **${nt.number.slice(-4)}`}updateFilterStatus(){const nt=this.checkboxListProducts.some(Me=>Me.all&&Me.chosen),De=this.checkBoxListOpCodes.some(Me=>Me.all&&Me.chosen),ve=this.radioOperationTypes.length>0&&!this.radioOperationTypes[0].chosen,Se=this.radioAmountToShow.length>0&&!this.radioAmountToShow[0].chosen;this._filtersAppliedList.products=!nt&&this.filterValue?.accountNums&&this.filterValue?.accountNums?.length>0,this._filtersAppliedList.opCodes=!De&&this.filterValue?.opCodes&&this.filterValue?.opCodes?.length>0,this._filtersAppliedList.loanAgreements=this.filterValue?.loanAgreementNums&&this.filterValue?.loanAgreementNums?.length>0,this._filtersAppliedList.docTypes=ve,this._filtersAppliedList.amountPerPage=Se,this._filtersAppliedList.amountFrom=!!this.filterValue?.fromAmount,this._filtersAppliedList.amountTo=!!this.filterValue?.toAmount}onMoreFiltersClick(){this.moreFiltersOpen=!this.moreFiltersOpen}get hasAdditionalTab(){return this.chosenOperationsTab===_.d$.Performed||this.chosenOperationsTab===_.d$.Plan&&this.selectedDocType===L.o.DocPlatpor}get isPerformedTab(){return this.chosenOperationsTab===_.d$.Performed}get isPaymentRequestTab(){return this.chosenOperationsTab===_.d$.PaymentRequests}get isPlanTab(){return this.chosenOperationsTab===_.d$.Plan}get isRefusedTab(){return this.chosenOperationsTab===_.d$.Refused}get isForSignTab(){return this.chosenOperationsTab===_.d$.ForSign}get isCommissionTab(){return this.chosenAdditionalTab===_.Os.Commission&&this.isPerformedTab}get isFiltersAppliedForCurrentTab(){switch(this.chosenOperationsTab){case _.d$.Performed:return this._filtersAppliedList.products||this._filtersAppliedList.opCodes||this._filtersAppliedList.loanAgreements||this._filtersAppliedList.amountFrom||this._filtersAppliedList.amountTo;case _.d$.ForSign:case _.d$.Plan:case _.d$.Refused:return this._filtersAppliedList.docTypes||this._filtersAppliedList.opCodes||this._filtersAppliedList.loanAgreements||this._filtersAppliedList.amountPerPage;default:return!1}}get getProductsListTitle(){return this.checkboxListProducts.filter(nt=>!nt.all&&nt.chosen).map(nt=>this.translationService.translate(nt.label)).join(", ")}get getStatusesListTitle(){return this.checkBoxListOpCodes.filter(nt=>!nt.all&&nt.chosen).map(nt=>this.translationService.translate(nt.label)).join(", ")}get getFilterAppliedTitle(){return this.isFiltersAppliedForCurrentTab?this.translationService.translate("Filters applied"):""}get getLoanAgreementsListTitle(){return this.checkboxListLoanAgreements.filter(nt=>!nt.all&&nt.chosen).map(nt=>this.translationService.translate(nt.label)).join(", ")}get getAmountFromError(){return this.filterFormGroup.controls.fromAmountField.hasError("invalidFromSum")?"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435":""}get getAmountToError(){return this.filterFormGroup.controls.toAmountField.hasError("invalidToSum")?"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435":""}get getFilterClass(){return this.checkboxListLoanAgreements.length>0&&this.selectedDocType===L.o.DocPlatpor?"select-filter-four":"select-filter-three"}get getPerformedFilterClass(){return this.checkboxListLoanAgreements.length>0?"select-filter-performed-five":"select-filter-performed-four"}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}ngOnInit(){this.setRadioDocumentTypes(),this.getAllAdditionalStatuses(),this.setCheckboxListLoanAgreements(),this.setProductsForPerformedOperations(),this.checkBoxListOpCodes=this.getStatusCheckBox(),this._filtersAppliedList.opCodes=!1,this._products.pipe((0,x.R)(this._destroyed$)).subscribe(()=>{this.setCheckboxListProducts(),this.checkBoxListOpCodes=this.getStatusCheckBox(),this._filtersAppliedList.opCodes=!1,this._filtersAppliedList.amountFrom=!1,this._filtersAppliedList.amountTo=!1,this._filtersAppliedList.loanAgreements=!1}),this._debouncedFilterChange$.pipe((0,x.R)(this._destroyed$),(0,Ut.b)(B.we)).subscribe(()=>{this.filterValue&&this.changeFilter.emit(this.filterValue),this.updateFilterStatus()})}setProductsForPerformedOperations(){this.productsService.currentProducts$.pipe((0,x.R)(this._destroyed$)).subscribe(nt=>{const De=nt.filter(ve=>ve.subtype!==vn.hG&&ve?.number&&!ve.number.startsWith(vn.fL));this._products.next(De)})}setCheckboxListProducts(){const nt=this._products.value.filter(Se=>"true"===Se.visible).filter(Se=>!!Se.info).filter(Se=>"all"===this.currencyType||Se.currency===this.currencyType),De=!!this.productIdForStatement;De||(this.filterValue.accountNums=nt.map(Se=>Se.number),this._filtersAppliedList.products=!1);const ve=nt.map(Se=>({label:this.getProductLabel(Se),chosen:De&&Se.id===this.productIdForStatement||!De,value:Se.number}));ve.unshift({label:"All products",chosen:!ve.some(Se=>!Se.chosen),all:!0,value:null}),this.checkboxListProducts=ve}getAllAdditionalStatuses(){this.lastOperationService.documentsAdditionalStatusInfo$.pipe((0,x.R)(this._destroyed$)).subscribe({next:nt=>{const De=[];this.operationsService.additionalStatuses=nt,nt.forEach(ve=>{De.push({label:ve,chosen:!0,value:ve,custom:!0})}),this.additionalStatuses=De},error:()=>{this.additionalStatuses=[]}})}setRadioDocumentTypes(){switch(this._filtersAppliedList.docTypes=!1,this.chosenOperationsTab){case _.d$.ForSign:case _.d$.Plan:case _.d$.Refused:const De=this.currencyType;"RUR"===De||"all"===De?(this.radioOperationTypes=(0,B.fb)(),wt.c.isTransferRestsAvailableForCreation(this.appConfigService.settings.ulSettings)&&this.chosenOperationsTab===_.d$.ForSign&&this.productsService.isPartnerRurAccountExists()&&this.radioOperationTypes.splice(1,0,{label:"Transfer of balances",chosen:!1,value:L.o.TransferRests}),xn._.isDocPlatporBpAvailableForCreation(this.appConfigService.settings.ulSettings)&&this.chosenOperationsTab===_.d$.ForSign&&this.productsService.isPartnerRurAccountExists()&&this.radioOperationTypes.splice(1,0,{label:"RUR payment with CTI",chosen:!1,value:L.o.DocPlatporBp}),1!==this.appConfigService.settings.ulSettings["REQUEST/REQUEST_CANCEL"]&&(this.radioOperationTypes=this.radioOperationTypes.filter(ve=>"Recall statements"!==ve.label))):this.radioOperationTypes=(0,B.Jx)();break;default:this.radioOperationTypes=(0,B.fb)()}const nt=this.radioOperationTypes.find(De=>De.chosen);nt&&nt.value!==this.activeDocType&&(this.selectedDocType=nt.value,this.changeDocType.emit(nt.value))}getStatusCheckBox(){switch(this.chosenOperationsTab){case _.d$.Plan:switch(this.activeDocType){case L.o.RequestCancel:case L.o.DocPaymentRequestOutgoing:return(0,B.Zk)();default:return this.operationsService.plannedTab$.value===_.wB.All?(0,B.cY)().concat(this.additionalStatuses):(0,B.hP)()}case _.d$.Refused:return(0,B.ck)();case _.d$.ForSign:return(0,B.AW)();case _.d$.Performed:return(0,B.Y1)().filter(nt=>!(this.chosenAdditionalTab===_.Os.Out&&("09"===nt.value||"17"===nt.value)));default:return[]}}changeAdditional(nt){this.changeAdditionalTab.emit(nt)}onSearchChange(nt){this.filterValue&&(this.filterValue.search=nt,this._debouncedFilterChange$.next(null))}changeActiveDocType(nt){const De=nt.find(ve=>ve.chosen);De&&(this.selectedDocType=De.value,this.changeDocType.emit(De.value),this._filtersAppliedList.docTypes=!nt[0].chosen)}changeOperationCode(nt){const De=nt.filter(ve=>ve.chosen&&!ve.all).map(ve=>ve.value);this.filterValue&&this.changeFilter.emit({...this.filterValue,opCodes:De}),this._filtersAppliedList.opCodes=De.length>0&&!nt.some(ve=>ve.all&&ve.chosen)}changeShowAmount(nt){const De=nt.find(ve=>ve.chosen);this.filterValue&&De&&(this.changeFilter.emit({...this.filterValue,amountToShow:De.value}),this._filtersAppliedList.amountPerPage=!nt[0].chosen)}onProductSelect(nt){const De=nt.filter(ve=>ve.chosen&&!ve.all).map(ve=>ve.value);this.filterValue&&this.changeFilter.emit({...this.filterValue,accountNums:De}),this._filtersAppliedList.products=De.length>0&&!nt.some(ve=>ve.all&&ve.chosen)}onLoanAgreementNumberSelect(nt){const De=nt.filter(ve=>ve.chosen&&!ve.all).map(ve=>ve.value);this.filterValue&&this.changeFilter.emit({...this.filterValue,loanAgreementNums:De})}onAmountFrom(nt){if(this.filterFormGroup.controls.fromAmountField.updateValueAndValidity(),nt!==this.filterValue?.fromAmount||this.filterFormGroup.controls.fromAmountField.dirty){if(this.filterValue&&!this.filterFormGroup.controls.fromAmountField.invalid&&!this.filterFormGroup.controls.toAmountField.invalid)return this.filterValue.isValid=!0,this.filterValue.fromAmount=nt,void this._debouncedFilterChange$.next(null);this.filterValue.isValid=!1,this.filterValue.fromAmount=nt,this._debouncedFilterChange$.next(null)}}onAmountTo(nt){if(this.filterFormGroup.controls.toAmountField.updateValueAndValidity(),nt!==this.filterValue?.toAmount||this.filterFormGroup.controls.toAmountField.dirty){if(this.filterValue&&!this.filterFormGroup.controls.fromAmountField.invalid&&!this.filterFormGroup.controls.toAmountField.invalid)return this.filterValue.isValid=!0,this.filterValue.toAmount=nt,void this._debouncedFilterChange$.next(null);this.filterValue.toAmount=nt,this.filterValue.isValid=!1,this._debouncedFilterChange$.next(null)}}onResetFilters(){this.checkboxListProducts.forEach(nt=>nt.chosen=!0),this._filtersAppliedList.products=!1,this.filterFormGroup.controls.toAmountField.patchValue(""),this.filterFormGroup.controls.fromAmountField.patchValue(""),this.changeFilter.emit(_.Ci),this.radioOperationTypes.length>0&&(this.selectedDocType=this.radioOperationTypes[0].value,this.changeDocType.emit(this.radioOperationTypes[0].value),this.radioOperationTypes.forEach((nt,De)=>nt.chosen=0===De)),this.checkBoxListOpCodes.length>0&&(this.checkBoxListOpCodes=this.getStatusCheckBox(),this._filtersAppliedList.opCodes=!1),this.checkboxListLoanAgreements.length>0&&this.checkboxListLoanAgreements.forEach(nt=>nt.chosen=!1),this.radioAmountToShow.length>0&&(this.radioAmountToShow.forEach((nt,De)=>nt.chosen=0===De),this._filtersAppliedList.amountPerPage=!1),this._filtersAppliedList.amountFrom=!1,this._filtersAppliedList.amountTo=!1,this._filtersAppliedList.docTypes=!1,this._filtersAppliedList.loanAgreements=!1}ngOnChanges(nt){("chosenOperationsTab"in nt||"chosenAdditionalTab"in nt)&&(this.checkBoxListOpCodes=this.getStatusCheckBox(),this._filtersAppliedList.opCodes=!1),"activeDocType"in nt&&this.chosenOperationsTab===_.d$.Plan&&(this.checkBoxListOpCodes=this.getStatusCheckBox(),this._filtersAppliedList.opCodes=!1),"currencyType"in nt&&this.setCheckboxListProducts(),("chosenOperationsTab"in nt||"currencyType"in nt)&&this.setRadioDocumentTypes()}static#e=this.\u0275fac=function(De){return new(De||J)(y.\u0275\u0275directiveInject(X.o),y.\u0275\u0275directiveInject(hn.su),y.\u0275\u0275directiveInject(C.$),y.\u0275\u0275directiveInject(E.Pj),y.\u0275\u0275directiveInject(T._),y.\u0275\u0275directiveInject(e.D7),y.\u0275\u0275directiveInject(Gt.UntypedFormBuilder))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:J,selectors:[["app-operations-filters"]],inputs:{chosenOperationsTab:"chosenOperationsTab",chosenAdditionalTab:"chosenAdditionalTab",filterValue:"filterValue",isCounterpart:"isCounterpart",productIdForStatement:"productIdForStatement",currencyType:"currencyType",activeDocType:"activeDocType"},outputs:{changeAdditionalTab:"changeAdditionalTab",changeFilter:"changeFilter",changeDocType:"changeDocType"},features:[y.\u0275\u0275NgOnChangesFeature],decls:11,vars:14,consts:[["class","performed-buttons",4,"ngIf"],[1,"filter-row"],[1,"search-filter"],["data-qa","1657789495619","inputClass","no-description w100","typeClass","flex-input-filter",3,"rightIcon","value","placeholder","valueChange"],["matTooltipClass","operations-filter-tooltip","class","more-wrap",3,"active","matTooltip","matTooltipPosition","click",4,"ngIf"],["class","more-filters","data-qa","1657789533184",3,"formGroup",4,"ngIf"],["class","more-filters plan-more-filter",4,"ngIf"],["class","more-filters reset-filters",3,"click",4,"ngIf"],["class","loan-agreement-message",4,"ngIf"],[1,"performed-buttons"],["class","button",3,"active","click",4,"ngFor","ngForOf"],[1,"button",3,"click"],["matTooltipClass","operations-filter-tooltip",1,"more-wrap",3,"matTooltip","matTooltipPosition","click"],[1,"more-filters__title"],[1,"pyramid-icon"],["data-qa","1657789533184",1,"more-filters",3,"formGroup"],["matTooltipClass","operations-filter-tooltip",1,"select-wrap",3,"ngClass","matTooltip","matTooltipPosition"],["data-qa","1657789537296",1,"more-filters__select",3,"checkboxList","multiSelectChange"],["matTooltipClass","operations-filter-tooltip","data-qa","1657789511579",3,"ngClass","matTooltip","matTooltipPosition",4,"ngIf"],["class","select-wrap","matTooltipClass","operations-filter-tooltip",3,"ngClass","matTooltip","matTooltipPosition",4,"ngIf"],["matTooltipClass","operations-filter-tooltip",1,"input-wrap",3,"matTooltip","matTooltipPosition"],["data-qa","1657789543312","typeMask","amount","inputClass","no-description more-filters__input","formControlName","fromAmountField",3,"value","placeholder","valueChange"],["data-qa","1657789547209","typeMask","amount","inputClass","no-description more-filters__input","formControlName","toAmountField",3,"value","placeholder","valueChange"],["matTooltipClass","operations-filter-tooltip","data-qa","1657789511579",3,"ngClass","matTooltip","matTooltipPosition"],["data-qa","1657789514806",1,"select-filter__multi",3,"checkboxList","multiSelectChange"],["data-qa","1673421981",1,"more-filters__select",3,"checkboxList","labelWhenNothingChosen","multiSelectChange"],[1,"more-filters","plan-more-filter"],["data-qa","1657789505172",3,"ngClass",4,"ngIf"],["class","select-wrap more-plan","matTooltipClass","operations-filter-tooltip","data-qa","1672138508",3,"matTooltip","matTooltipPosition",4,"ngIf"],["data-test-id","1666684387607",3,"ngClass"],[1,"select-filter__multi",3,"checkboxList","name","radioType","multiSelectChange"],["data-qa","1657789505172",3,"ngClass"],["data-qa","1657789507640",1,"select-filter__multi",3,"checkboxList","disabled","radioType","multiSelectChange"],["matTooltipClass","operations-filter-tooltip","data-qa","1672138508",1,"select-wrap","more-plan",3,"matTooltip","matTooltipPosition"],["data-qa","1672138554",1,"medium-width",3,"checkboxList","labelWhenNothingChosen","multiSelectChange"],[1,"more-filters","reset-filters",3,"click"],[1,"loan-agreement-message"]],template:function(De,ve){1&De&&(y.\u0275\u0275template(0,Yn,2,1,"div",0),y.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"app-input",3),y.\u0275\u0275listener("valueChange",function(Me){return ve.onSearchChange(Me)}),y.\u0275\u0275pipe(4,"translate"),y.\u0275\u0275elementEnd()(),y.\u0275\u0275template(5,cn,6,8,"div",4),y.\u0275\u0275elementEnd(),y.\u0275\u0275template(6,En,11,21,"div",5),y.\u0275\u0275template(7,ke,6,9,"div",6),y.\u0275\u0275template(8,ge,2,0,"div",7),y.\u0275\u0275template(9,q,3,4,"div",8),y.\u0275\u0275pipe(10,"async")),2&De&&(y.\u0275\u0275property("ngIf",ve.hasAdditionalTab),y.\u0275\u0275advance(3),y.\u0275\u0275propertyInterpolate("placeholder",y.\u0275\u0275pipeBind2(4,9,"Search",ve.lang)),y.\u0275\u0275property("rightIcon",null!=ve.filterValue&&ve.filterValue.search?"cross":"search")("value",null==ve.filterValue?null:ve.filterValue.search),y.\u0275\u0275advance(2),y.\u0275\u0275property("ngIf",!ve.isPaymentRequestTab),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.isPerformedTab&&ve.moreFiltersOpen),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!ve.isPerformedTab&&ve.moreFiltersOpen),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.moreFiltersOpen&&!ve.isPaymentRequestTab),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.isPlanTab&&y.\u0275\u0275pipeBind1(10,12,ve.actualCreditProducts$).length))},dependencies:[P.mk,P.sg,P.O5,pn.O,In.a,Gt.NgControlStatus,Gt.NgControlStatusGroup,Dn.Hw,Tn.gM,Gt.FormGroupDirective,Gt.FormControlName,P.Ov,e.X$],styles:['@charset "UTF-8";[_nghost-%COMP%]{padding:10px 0;display:block}.performed-buttons[_ngcontent-%COMP%]{display:flex}.button[_ngcontent-%COMP%]{padding:14px 33px;border:1px solid #2f54eb;cursor:pointer;color:#2f54eb}.button[_ngcontent-%COMP%]:not(:first-child){border-left:none}.button[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.button[_ngcontent-%COMP%]:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.button.active[_ngcontent-%COMP%]{background:#2f54eb;color:#fff}.filter-row[_ngcontent-%COMP%]{padding-top:20px;display:flex;padding-bottom:10px}.filter-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative}.filter-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-left:20px}.loan-agreement-message[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;color:#080708;font-style:normal;font-weight:400;font-size:14px;line-height:normal;margin-top:24px;margin-bottom:24px;background:#F1F2F2;padding:12px 16px;border-radius:4px}.more-filters[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;margin-bottom:24px;margin-top:20px;justify-content:space-between;gap:16px}.more-filters.plan-more-filter[_ngcontent-%COMP%]{margin-top:10px;justify-content:flex-start}.more-filters__title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding-right:12px}@media screen and (max-width: 520px){.more-filters__title[_ngcontent-%COMP%]{display:none}}.more-filters.reset-filters[_ngcontent-%COMP%]{color:#2f54eb;font-weight:600;font-size:14px;cursor:pointer;width:-moz-fit-content;width:fit-content}.select-wrap[_ngcontent-%COMP%]{display:flex;position:relative;width:49%;flex:1 1 100%}.select-wrap.more-plan[_ngcontent-%COMP%], .select-wrap.auto-width[_ngcontent-%COMP%]{width:auto;flex:initial}.select-wrap[_ngcontent-%COMP%]   app-multi-select[_ngcontent-%COMP%]{width:100%}.select-wrap[_ngcontent-%COMP%]   app-multi-select.medium-width[_ngcontent-%COMP%]{width:240px}.select-wrap[_ngcontent-%COMP%]   app-multi-select.medium-width[_ngcontent-%COMP%]:nth-child(1){width:246px}.input-wrap[_ngcontent-%COMP%]{width:24%}.input-wrap[_ngcontent-%COMP%]     .more-filters__input{width:100%}.search-filter[_ngcontent-%COMP%]{flex:1 0;min-width:300px}@media screen and (max-width: 435px){.search-filter[_ngcontent-%COMP%]{min-width:auto}}.hidden-filter[_ngcontent-%COMP%]{display:none}.select-filter[_ngcontent-%COMP%]{width:230px}.select-filter-three[_ngcontent-%COMP%]{flex:368px 1 0;max-width:368px}.select-filter-four[_ngcontent-%COMP%]{flex:272px 1 0;max-width:272px}.select-filter-performed-four[_ngcontent-%COMP%]{flex:370px 1 0;max-width:370px}.select-filter-performed-five[_ngcontent-%COMP%]{flex:268px 1 0;max-width:268px}@media screen and (max-width: 865px){.select-filter-performed-five[_ngcontent-%COMP%]{flex-grow:1;max-width:none}}  mat-tooltip-component{background:none}  .operations-filter-tooltip{filter:drop-shadow(0px 5px 20px rgba(9,7,8,.1));pointer-events:none}  .operations-filter-tooltip .mdc-tooltip__surface{color:#000;background-color:#fff!important;font-family:Open Sans,Source Sans Pro,sans-serif!important;font-size:12px;font-weight:400;max-width:400px}.more-wrap[_ngcontent-%COMP%]{border:1px solid #dedede;border-radius:5px;min-width:93px;display:flex;height:50px;align-items:center;justify-content:space-between;padding:0 12px;cursor:pointer}.more-wrap[_ngcontent-%COMP%]   .pyramid-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:20px;color:#88909b;display:flex;justify-content:center;align-items:center}.more-wrap.active[_ngcontent-%COMP%]{border:1px solid #2f54eb}.more-wrap.active[_ngcontent-%COMP%]   .pyramid-icon[_ngcontent-%COMP%], .more-wrap.active[_ngcontent-%COMP%]   .more-filters__title[_ngcontent-%COMP%]{color:#2f54eb}@media screen and (min-width: 1024px){.more-wrap[_ngcontent-%COMP%]{margin-left:20px}}@media screen and (max-width: 520px){.more-wrap[_ngcontent-%COMP%]{min-width:auto}}'],changeDetection:0})}(0,n.gn)([(0,e.SQ)()],J.prototype,"lang",void 0);var Oe=t(95698),je=t(45835),Et=t(64481),dt=t(98504);function rt(tt,nt){if(1&tt&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275text(1),y.\u0275\u0275pipe(2,"translate"),y.\u0275\u0275pipe(3,"appCurrency"),y.\u0275\u0275elementContainerEnd()),2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate2(" , ",y.\u0275\u0275pipeBind2(2,2,"for the amount of",De.lang)," ",y.\u0275\u0275pipeBind1(3,5,De.operationsAmount),"")}}function qe(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"app-button",7),y.\u0275\u0275listener("clicked",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.massDelete())}),y.\u0275\u0275elementEnd()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275property("disabled",De.operationService.selectedOperationsNumber$.value>100||De.isMassDeleteButtonDisabled)("text","Delete")("type","small-bordered")}}function ze(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"app-button",7),y.\u0275\u0275listener("clicked",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.setLoanAgreement())}),y.\u0275\u0275elementEnd()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275property("disabled",De.isAddLoanAgreementButtonDisabled)("text","Add loan agreement")("type","small-bordered")}}class zt{constructor(nt,De,ve,Se,Me,We){this.operationService=nt,this.translation=De,this.modalService=ve,this.operationsService=Se,this.productsService=Me,this.toastService=We,this.lang="",this.currentTab=_.d$.Performed,this.operationsTabs=_.d$,this.isAddLoanAgreementButtonDisabled=!0,this.isMassDeleteButtonDisabled=!1,this.selectedOperations=[],this.actualCreditProducts$=this.productsService.actualCreditProducts$,this.isMassDeleteEnable=!1,this.destroyed$=new a.x}get operationsAmount(){return this.operationService.getTransactionsForPrint().reduce((nt,De)=>nt+De.amount,0)}get isPrintAction(){return this.currentTab!==_.d$.ForSign}printOperations(){this.currentTab===_.d$.Plan?this.operationService.printPlannedOperations():this.operationService.printOperations(this.operationService.getTransactionsForPrint()).subscribe()}signOperations(){this.operationService.signOperations()}massDelete(){const nt=this.operationService.getSelectedOperations();this.modalService.open(je.q,{header:"Deletion of an orders",inputs:{text:this.translation.translate("Are you sure you want to delete the documents?",{count:nt.length}),operation:nt,deletionDone:()=>{this.operationsService.updateOperations$.next(!1)}}})}selectAll(nt){this.operationService.selectAll(nt)}setLoanAgreement(){this.modalService.open(Et.q,{inputs:{selectedOperations:this.selectedOperations},size:"medium"})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}ngOnInit(){this.operationService.selectedOperationsNumber$.pipe((0,x.R)(this.destroyed$)).subscribe(()=>{if(this.currentTab!==_.d$.Plan)return void(this.isMassDeleteEnable=!1);const nt=["imported","new"],De=this.operationService.getSelectedOperations();this.isMassDeleteButtonDisabled=!!De.find(ve=>"1"===ve.signStatus||"2"===ve.signStatus),this.isMassDeleteEnable=De.every(ve=>nt.includes(ve.statusCode)&&ve.docType===L.o.DocPlatpor)}),this.actualCreditProducts$.pipe((0,O.h)(nt=>!!nt.length),(0,Oe.q)(1),(0,x.R)(this.destroyed$)).subscribe(nt=>this.initAddLoanAgreementFunctionality(nt))}initAddLoanAgreementFunctionality(nt){this.operationService.detectChanges$.pipe((0,Ut.b)(300),(0,x.R)(this.destroyed$)).subscribe(()=>{this.selectedOperations=this.operationService.getSelectedOperations();const De=this.selectedOperations[0].accNumber,ve=this.selectedOperations.length===this.selectedOperations.filter(We=>De===We.accNumber).length,Se=nt.filter(We=>We.creditInformation.repaymentAccount===De),Me=!!this.selectedOperations.find(We=>"new"!==We.statusCode&&"draft"!==We.statusCode&&"imported"!==We.statusCode||"0"!==We.signStatus);this.isAddLoanAgreementButtonDisabled=Me||!ve||!Se.length})}static#e=this.\u0275fac=function(De){return new(De||zt)(y.\u0275\u0275directiveInject($.f),y.\u0275\u0275directiveInject(e.D7),y.\u0275\u0275directiveInject(ce.Z),y.\u0275\u0275directiveInject(C.$),y.\u0275\u0275directiveInject(hn.su),y.\u0275\u0275directiveInject(Z.j))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:zt,selectors:[["app-operations-content-select"]],inputs:{currentTab:"currentTab"},decls:12,vars:14,consts:[[1,"content-select"],[1,"content-select__value"],[3,"chosen","checkboxChange"],[1,"content-select__value-text"],[4,"ngIf"],[1,"content-select__buttons"],[3,"disabled","text","type","clicked",4,"ngIf"],[3,"disabled","text","type","clicked"]],template:function(De,ve){1&De&&(y.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"app-checkbox",2),y.\u0275\u0275listener("checkboxChange",function(Me){return ve.selectAll(Me)}),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(3,"div",3),y.\u0275\u0275text(4),y.\u0275\u0275pipe(5,"translate"),y.\u0275\u0275template(6,rt,4,7,"ng-container",4),y.\u0275\u0275elementEnd()(),y.\u0275\u0275elementStart(7,"div",5),y.\u0275\u0275template(8,qe,1,3,"app-button",6),y.\u0275\u0275template(9,ze,1,3,"app-button",6),y.\u0275\u0275pipe(10,"async"),y.\u0275\u0275elementStart(11,"app-button",7),y.\u0275\u0275listener("clicked",function(){return ve.isPrintAction?ve.printOperations():ve.signOperations()}),y.\u0275\u0275elementEnd()()()),2&De&&(y.\u0275\u0275advance(2),y.\u0275\u0275property("chosen",ve.operationService.getAllSelected()),y.\u0275\u0275advance(2),y.\u0275\u0275textInterpolate2(" ",y.\u0275\u0275pipeBind2(5,9,"Highlighted operations",ve.lang),": ",ve.operationService.selectedOperationsNumber$.value," "),y.\u0275\u0275advance(2),y.\u0275\u0275property("ngIf",ve.operationsAmount),y.\u0275\u0275advance(2),y.\u0275\u0275property("ngIf",ve.isMassDeleteEnable),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.currentTab===ve.operationsTabs.Plan&&y.\u0275\u0275pipeBind1(10,12,ve.actualCreditProducts$).length),y.\u0275\u0275advance(2),y.\u0275\u0275property("disabled",ve.isPrintAction&&ve.operationService.selectedOperationsNumber$.value>100)("text",ve.isPrintAction?"Print":"Sign")("type","small-bordered"))},dependencies:[P.O5,we.b,Qe.r,P.Ov,e.X$,dt.H],styles:['@charset "UTF-8";.content-select[_ngcontent-%COMP%]{background:#f1f2f2;display:flex;justify-content:space-between;height:67px;padding:10px 20px;margin-bottom:14px;border-radius:4px}.content-select__value[_ngcontent-%COMP%]{display:flex;flex:1;align-items:center}.content-select__value-text[_ngcontent-%COMP%]{font-family:Source Sans Pro;font-weight:400;font-size:18px;margin-left:15px;color:#444}.content-select__buttons[_ngcontent-%COMP%]{display:flex;font-family:Open Sans,Source Sans Pro,sans-serif;justify-content:space-between;align-items:center;column-gap:16px}.content-select__buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:136px;font-weight:600;font-size:14px;height:43px}']})}function vt(tt,nt){if(1&tt&&(y.\u0275\u0275element(0,"app-operations-controls",8),y.\u0275\u0275pipe(1,"async")),2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275property("chosenTab",y.\u0275\u0275pipeBind1(1,2,De.operationsService.currentTab$))("productIdForStatement",null==De.product?null:De.product.id)}}function Rt(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",9)(1,"app-metib-tabs",10),y.\u0275\u0275listener("changeEvent",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.setTab(Se))}),y.\u0275\u0275pipe(2,"async"),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275property("currentTab",y.\u0275\u0275pipeBind1(2,2,De.operationsService.currentTab$))("tabs",De.tabs)}}function gt(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"app-operations-filters",11),y.\u0275\u0275listener("changeDocType",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.setActiveDocType(Se))})("changeFilter",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.filterChanged(Se))})("changeAdditionalTab",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Me.setAdditionalTab(Se))}),y.\u0275\u0275pipe(1,"async"),y.\u0275\u0275pipe(2,"async"),y.\u0275\u0275pipe(3,"async"),y.\u0275\u0275pipe(4,"async"),y.\u0275\u0275pipe(5,"async"),y.\u0275\u0275pipe(6,"async"),y.\u0275\u0275pipe(7,"async"),y.\u0275\u0275elementEnd()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275property("activeDocType",y.\u0275\u0275pipeBind1(1,7,De.operationsService.activeDocType$))("chosenOperationsTab",y.\u0275\u0275pipeBind1(2,9,De.operationsService.currentTab$))("chosenAdditionalTab","Performed"===y.\u0275\u0275pipeBind1(3,11,De.operationsService.currentTab$)?y.\u0275\u0275pipeBind1(4,13,De.operationsService.performedTab$):y.\u0275\u0275pipeBind1(5,15,De.operationsService.plannedTab$))("currencyType",y.\u0275\u0275pipeBind1(6,17,De.operationsService.currencyType$))("filterValue",y.\u0275\u0275pipeBind1(7,19,De.operationsService.currentFilter$))("isCounterpart",De.isCounterpart)("productIdForStatement",null==De.product?null:De.product.id)}}function sn(tt,nt){if(1&tt&&(y.\u0275\u0275element(0,"app-operations-content-select",12),y.\u0275\u0275pipe(1,"async")),2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275property("currentTab",y.\u0275\u0275pipeBind1(1,1,De.operationsService.currentTab$))}}function wn(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",21)(1,"app-checkbox",22),y.\u0275\u0275listener("checkboxChange",function(Se){y.\u0275\u0275restoreView(De);const Me=y.\u0275\u0275nextContext().$implicit,We=y.\u0275\u0275nextContext(3);return y.\u0275\u0275resetView(We.selectOperationGroup(Se,Me))}),y.\u0275\u0275elementEnd()()}if(2&tt){const De=y.\u0275\u0275nextContext().$implicit;y.\u0275\u0275advance(1),y.\u0275\u0275property("chosen",De.chosen)}}(0,n.gn)([(0,e.SQ)()],zt.prototype,"lang",void 0);const Qn=function(tt){return{hideCheckbox:tt}};function pi(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",23)(1,"app-operation",24),y.\u0275\u0275listener("infoToggled",function(){const Me=y.\u0275\u0275restoreView(De).$implicit,We=y.\u0275\u0275nextContext(4);return y.\u0275\u0275resetView(We.operationClick(Me))})("menuSelectOpened",function(){const Me=y.\u0275\u0275restoreView(De).$implicit,We=y.\u0275\u0275nextContext(4);return y.\u0275\u0275resetView(We.operationMenuSelectOpened(Me))})("operationDeleted",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext(4);return y.\u0275\u0275resetView(Se.updateCurrentOperations())}),y.\u0275\u0275elementEnd()()}if(2&tt){const De=nt.$implicit,ve=nt.index,Se=y.\u0275\u0275nextContext().index,Me=y.\u0275\u0275nextContext(3);y.\u0275\u0275attribute("data-qa","1657789668894"+Se+ve),y.\u0275\u0275advance(1),y.\u0275\u0275property("config",y.\u0275\u0275pureFunction1(3,Qn,Me.massSignDisabled))("operation",De)}}function Ei(tt,nt){if(1&tt&&(y.\u0275\u0275elementStart(0,"div",16)(1,"div",17),y.\u0275\u0275template(2,wn,2,1,"div",18),y.\u0275\u0275elementStart(3,"div",19),y.\u0275\u0275text(4),y.\u0275\u0275elementEnd()(),y.\u0275\u0275template(5,pi,2,5,"div",20),y.\u0275\u0275elementEnd()),2&tt){const De=nt.$implicit,ve=nt.index,Se=y.\u0275\u0275nextContext(3);y.\u0275\u0275attribute("data-qa","1657789584594"+ve),y.\u0275\u0275advance(2),y.\u0275\u0275property("ngIf",!Se.massSignDisabled),y.\u0275\u0275advance(2),y.\u0275\u0275textInterpolate(De.name),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngForOf",De.transactions)}}function ki(tt,nt){if(1&tt&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275template(1,Ei,6,4,"div",15),y.\u0275\u0275elementContainerEnd()),2&tt){const De=y.\u0275\u0275nextContext(2);y.\u0275\u0275advance(1),y.\u0275\u0275property("ngForOf",De.currentOperations)}}function Co(tt,nt){if(1&tt&&(y.\u0275\u0275elementStart(0,"div",23),y.\u0275\u0275element(1,"app-payment-request",25),y.\u0275\u0275elementEnd()),2&tt){const De=nt.$implicit;y.\u0275\u0275attribute("data-qa","1657789584594"+nt.index),y.\u0275\u0275advance(1),y.\u0275\u0275property("paymentReq",De)}}function xo(tt,nt){if(1&tt&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275template(1,Co,2,2,"div",20),y.\u0275\u0275elementContainerEnd()),2&tt){const De=y.\u0275\u0275nextContext(2);y.\u0275\u0275advance(1),y.\u0275\u0275property("ngForOf",De.currentOperations)}}function no(tt,nt){1&tt&&y.\u0275\u0275element(0,"app-loader")}const Qo=function(tt){return{"content-loading":tt}},Mo=function(tt){return{marginTop:tt}};function po(tt,nt){if(1&tt&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275elementStart(1,"div",13),y.\u0275\u0275pipe(2,"async"),y.\u0275\u0275pipe(3,"async"),y.\u0275\u0275template(4,ki,2,1,"ng-container",14),y.\u0275\u0275template(5,xo,2,1,"ng-container",14),y.\u0275\u0275template(6,no,1,0,"app-loader",14),y.\u0275\u0275pipe(7,"async"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementContainerEnd()),2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275property("ngClass",y.\u0275\u0275pureFunction1(11,Qo,y.\u0275\u0275pipeBind1(2,5,De.operationsService.loading$)))("ngStyle",y.\u0275\u0275pureFunction1(13,Mo,"InboxQR"===y.\u0275\u0275pipeBind1(3,7,De.operationsService.performedTab$)?"10px":"0")),y.\u0275\u0275advance(3),y.\u0275\u0275property("ngIf",!De.isTypeOfPaymentRequest),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",De.isTypeOfPaymentRequest&&De.showTable),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",y.\u0275\u0275pipeBind1(7,9,De.operationsService.loading$))}}function Io(tt,nt){if(1&tt&&(y.\u0275\u0275elementStart(0,"div",26),y.\u0275\u0275text(1),y.\u0275\u0275pipe(2,"translate"),y.\u0275\u0275elementEnd()),2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate1(" ",y.\u0275\u0275pipeBind2(2,1,"Operations not found",De.lang),"\n")}}function en(tt,nt){if(1&tt){const De=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",27),y.\u0275\u0275listener("click",function(){y.\u0275\u0275restoreView(De);const Se=y.\u0275\u0275nextContext();return y.\u0275\u0275resetView(Se.showNext())}),y.\u0275\u0275text(1),y.\u0275\u0275pipe(2,"translate"),y.\u0275\u0275elementEnd()}if(2&tt){const De=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275textInterpolate1(" ",y.\u0275\u0275pipeBind2(2,1,"Show more",De.lang),"\n")}}class Hn{constructor(nt,De,ve,Se,Me,We,ut,ue,et,At,Ae,bt){this.operationService=nt,this.operationsService=De,this.appConfigService=ve,this.operationInfoService=Se,this.forSignOperationService=Me,this.router=We,this.importModalService=ut,this.modalService=ue,this.lastOperationService=et,this.userDataService=At,this.route=Ae,this.location=bt,this._destroyed$=new a.x,this.lang="",this.isCounterpart=!1,this.showOperationsControlsBlock=!0,this.isDboBlocked=!0,this.showScrollUpIcon=!1,this.currentOperations=null,this.isTypeOfPaymentRequest=!0,this.massSignDisabled=!1,this.tabs=[],this.showTable=!0}getOperationInfo(nt){this.operationInfoService.getOperationInfo({clickedOperation:nt,operationsTab:this.operationsService.currentTab$.value,performedTab:this.operationsService.performedTab$.value,activeDocType:this.operationsService.activeDocType$.value})}setTabCount(nt,De){this.tabs.forEach(ve=>{ve.title===De&&(ve.count=nt)})}operationsUpdate(nt=!1){this.operationsService.updateOperations$.next(nt)}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}ngOnInit(){this.operationsService.currentFilter$.next(this.product?{...this.operationsService.currentFilter$.value,accountNums:[this.product.number]}:{...this.operationsService.currentFilter$.value,accountNums:null}),(0,u.a)([this.appConfigService.settings$,this.userDataService.partiallyBlock$]).pipe((0,m.n)(([nt,De])=>null===De&&!nt.isLoaded),(0,x.R)(this._destroyed$)).subscribe(([nt,De])=>{this.isDboBlocked=!this.userDataService.isOnlyNalogAllowed(De)&&nt.isDboBlocking;const ve=Object.values(_.d$).map(Se=>({title:Se}));this.tabs=ve.filter(Se=>"Payment requests"!==Se.title&&0===nt.ulSettings["PAY/PAYMENT_REQUEST"]||1===nt.ulSettings["PAY/PAYMENT_REQUEST"]).filter(Se=>"Collection orders"!==Se.title&&0===nt.ulSettings["OTHER/COLLECTION_ORDER"]||1===nt.ulSettings["OTHER/COLLECTION_ORDER"])}),this.importModalService.imported$.pipe((0,x.R)(this._destroyed$),(0,O.h)(Boolean)).subscribe(()=>{this.modalService.close(),this.setTab(_.d$.Plan)}),this.operationsService.currentTab$.next(_.d$.Performed),this.operationsService.performedTab$.next(_.Os.All),this.operationsService.paymentDetailsRequests$.pipe((0,x.R)(this._destroyed$)).subscribe(nt=>{this.setTabCount(nt?nt.length:0,_.d$.Performed)}),this.forSignOperationService.forSignOperationsCache$.pipe((0,h.V)(this.lastOperationService.chosenPeriod$),(0,x.R)(this._destroyed$)).subscribe(([nt])=>{const De=this.lastOperationService.getCurrentPeriod(),ve=nt.filter(Se=>{const We=Se[(0,B.mQ)(Se.docType)];if(We&&"string"==typeof We){const ut=d()(We,"YYYY-MM-DD");if(ut<De.dateFromValue||ut>De.dateToValue)return!1}return!0}).length;this.setTabCount(ve,_.d$.ForSign)}),this.operationsService.operationsContainer$.pipe((0,x.R)(this._destroyed$)).subscribe(nt=>{this.isTypeOfPaymentRequest=nt.type===L.o.DocPaymentRequest,this.currentOperations=nt.operations,this.operationService.clearSelectedNumber(),this.operationService.operations=this.currentOperations}),this.appConfigService.settings$.pipe((0,h.V)(this.operationsService.currentTab$),(0,l.x)(),(0,x.R)(this._destroyed$)).subscribe(([nt,De])=>{this.massSignDisabled=De===_.d$.ForSign&&nt.roles.has(w.QB)}),this.operationsService.currencyType$.pipe((0,x.R)(this._destroyed$)).subscribe(nt=>{this.setShowTable(nt);const De=this.route.snapshot.queryParams?.operationsTab;De in _.d$&&setTimeout(()=>{const ve=_.d$[De];ve&&(this.setTab(ve),this.location.replaceState(_.Ys))})})}setTab(nt){if(nt===_.d$.PaymentRequests&&"RUR"!==this.operationsService.currencyType$?.value&&"all"!==this.operationsService.currencyType$?.value)return this.currentOperations=[],this.operationsService.currentTab$.next(nt),void this.setShowTable(this.operationsService.currencyType$.value);if(nt!==_.d$.CollectionOrders){switch(this.operationsService.currentTab$.next(nt),this.setShowTable(this.operationsService.currencyType$.value),this.operationsService.currentFilter$.next({...this.operationsService.currentFilter$.value,opCodes:null}),nt){case _.d$.ForSign:case _.d$.Plan:case _.d$.Refused:const De=this.operationsService.currencyType$.value,ve="RUR"===De||"all"===De?L.o.DocPlatpor:L.o.DocTransitPayDoc;ve!==this.operationsService.activeDocType$.value&&this.operationsService.activeDocType$.next(ve)}this.operationsUpdate()}else this.router.navigate(["/collection-order-list"])}setAdditionalTab(nt){this.operationsService.currentFilter$.value.opCodes=null,this.operationsService.currentTab$.value===_.d$.Performed?this.operationsService.performedTab$.next(nt):this.operationsService.currentTab$.value===_.d$.Plan&&this.operationsService.plannedTab$.next(nt),this.operationsUpdate()}setActiveDocType(nt){this.operationsService.activeDocType$.next(nt),this.operationsUpdate()}filterChanged(nt){this.operationsService.currentFilter$.next(nt),this.operationsUpdate()}showNext(){this.operationsUpdate(!0)}scrollUp(){window.scrollTo(0,0)}selectOperationGroup(nt,De){this.operationService.selectOperationGroup(nt,De)}operationClick(nt){this.operationService.getAllCurrentOperation().forEach(De=>{De!==nt&&De.isOpen&&(De.isOpen=!1)}),this.operationService.detectChanges$.next(!0),nt.info||nt.sbpFpMessageId?nt.sbpFpMessageId&&this.operationInfoService.getSBPOperationInfo(nt):this.getOperationInfo(nt)}operationMenuSelectOpened(nt){this.getOperationInfo(nt)}updateCurrentOperations(){this.operationsService.clearCachedOperations(),this.operationsUpdate()}showHideScrollUpIcon(){this.showScrollUpIcon=window.scrollY>100}setShowTable(nt){this.showTable="Payment requests"!==this.operationsService.currentTab$.value||"RUR"===nt||"all"===nt}static#e=this.\u0275fac=function(De){return new(De||Hn)(y.\u0275\u0275directiveInject($.f),y.\u0275\u0275directiveInject(C.$),y.\u0275\u0275directiveInject(T._),y.\u0275\u0275directiveInject(R),y.\u0275\u0275directiveInject(ne.l),y.\u0275\u0275directiveInject(p.F0),y.\u0275\u0275directiveInject(G.a),y.\u0275\u0275directiveInject(ce.Z),y.\u0275\u0275directiveInject(X.o),y.\u0275\u0275directiveInject(xe.M),y.\u0275\u0275directiveInject(p.gz),y.\u0275\u0275directiveInject(P.Ye))};static#t=this.\u0275cmp=y.\u0275\u0275defineComponent({type:Hn,selectors:[["app-operations"]],hostBindings:function(De,ve){1&De&&y.\u0275\u0275listener("scroll",function(Me){return ve.showHideScrollUpIcon(Me)},!1,y.\u0275\u0275resolveWindow)},inputs:{product:"product",isCounterpart:"isCounterpart",showOperationsControlsBlock:"showOperationsControlsBlock"},decls:11,vars:19,consts:[[3,"chosenTab","productIdForStatement",4,"ngIf"],["class","tabs","data-qa","1657789436891",4,"ngIf"],[3,"activeDocType","chosenOperationsTab","chosenAdditionalTab","currencyType","filterValue","isCounterpart","productIdForStatement","changeDocType","changeFilter","changeAdditionalTab",4,"ngIf"],["data-qa","1657789554322",3,"currentTab",4,"ngIf"],[4,"appSkeleton","appSkeletonWidth","appSkeletonHeight","appSkeletonRepeat","appSkeletonMargin"],["class","no-operations","data-qa","1658839333492",4,"ngIf"],["class","last-operation show-more","data-qa","1657789700048",3,"click",4,"ngIf"],[1,"arrow-up-icon",3,"click"],[3,"chosenTab","productIdForStatement"],["data-qa","1657789436891",1,"tabs"],["data-qa","1657789442360",3,"currentTab","tabs","changeEvent"],[3,"activeDocType","chosenOperationsTab","chosenAdditionalTab","currencyType","filterValue","isCounterpart","productIdForStatement","changeDocType","changeFilter","changeAdditionalTab"],["data-qa","1657789554322",3,"currentTab"],["data-qa","1657789561748",1,"operations-content",3,"ngClass","ngStyle"],[4,"ngIf"],["class","operation-item",4,"ngFor","ngForOf"],[1,"operation-item"],[1,"operation-title"],["class","operation-checkbox",4,"ngIf"],[1,"operation-title-value"],["class","last-operation",4,"ngFor","ngForOf"],[1,"operation-checkbox"],["data-qa","1657789648410",3,"chosen","checkboxChange"],[1,"last-operation"],["data-qa","1657789683899",3,"config","operation","infoToggled","menuSelectOpened","operationDeleted"],[3,"paymentReq"],["data-qa","1658839333492",1,"no-operations"],["data-qa","1657789700048",1,"last-operation","show-more",3,"click"]],template:function(De,ve){1&De&&(y.\u0275\u0275template(0,vt,2,4,"app-operations-controls",0),y.\u0275\u0275template(1,Rt,3,4,"div",1),y.\u0275\u0275template(2,gt,8,21,"app-operations-filters",2),y.\u0275\u0275template(3,sn,2,3,"app-operations-content-select",3),y.\u0275\u0275template(4,po,8,15,"ng-container",4),y.\u0275\u0275template(5,Io,3,4,"div",5),y.\u0275\u0275pipe(6,"async"),y.\u0275\u0275template(7,en,3,4,"div",6),y.\u0275\u0275pipe(8,"async"),y.\u0275\u0275pipe(9,"async"),y.\u0275\u0275elementStart(10,"div",7),y.\u0275\u0275listener("click",function(){return ve.scrollUp()}),y.\u0275\u0275elementEnd()),2&De&&(y.\u0275\u0275property("ngIf",ve.showOperationsControlsBlock),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!ve.isDboBlocked),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!ve.isDboBlocked),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.operationService.selectedOperationsNumber$.value>0&&!ve.isDboBlocked),y.\u0275\u0275advance(1),y.\u0275\u0275property("appSkeleton",!ve.currentOperations)("appSkeletonWidth","100%")("appSkeletonHeight","85px")("appSkeletonRepeat",5)("appSkeletonMargin","10px 0"),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",ve.currentOperations&&0===ve.currentOperations.length&&!1===y.\u0275\u0275pipeBind1(6,13,ve.operationsService.loading$)||!ve.showTable),y.\u0275\u0275advance(2),y.\u0275\u0275property("ngIf",y.\u0275\u0275pipeBind1(8,15,!1===y.\u0275\u0275pipeBind1(9,17,ve.operationsService.loading$)&&ve.operationsService.showMoreButtonVisible$)),y.\u0275\u0275advance(3),y.\u0275\u0275classProp("icon-hidden",!ve.showScrollUpIcon))},dependencies:[P.mk,P.sg,P.O5,P.PC,we.b,Ge.R,ct.i,pe.$,Ce.e,Dt,ot,J,zt,P.Ov,e.X$],styles:['@charset "UTF-8";[_nghost-%COMP%]{margin-top:20px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;display:flex;flex-direction:column}.arrow-up-icon[_ngcontent-%COMP%]{margin-right:36px;align-self:flex-end;width:56px;height:56px;cursor:pointer;background-image:url(/assets/icons/arrow_up.png);background-repeat:round;transition:opacity .4s ease-out}@media screen and (min-width: 1367px){.arrow-up-icon[_ngcontent-%COMP%]{margin-right:-5px}}.arrow-up-icon.icon-hidden[_ngcontent-%COMP%]{opacity:0}.tabs[_ngcontent-%COMP%]{padding-bottom:10px}.operations-content[_ngcontent-%COMP%]{position:relative}.operations-content.content-loading[_ngcontent-%COMP%]{min-height:50px}.operation-title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;height:46px;line-height:46px;background:#f1f2f2;display:flex;flex-direction:row;align-items:center;border-radius:4px}.operation-title-value[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;line-height:22px;color:#444;margin-left:15px}.operation-checkbox[_ngcontent-%COMP%]{margin-left:20px}']})}(0,n.gn)([(0,e.SQ)()],Hn.prototype,"lang",void 0)},93887:(Ee,Q,t)=>{"use strict";t.d(Q,{AW:()=>m,Jx:()=>a,RH:()=>l,Y1:()=>u,Zk:()=>L,cY:()=>x,ck:()=>w,fb:()=>d,hP:()=>O,mQ:()=>y,mx:()=>B,r_:()=>h,tJ:()=>_,we:()=>i});var n=t(6146),e=t(41795);const i=700,d=()=>[{label:"Rur payments",chosen:!0,value:n.o.DocPlatpor},{label:"Recall statements",chosen:!1,value:n.o.RequestCancel},{label:"New payment request",chosen:!1,value:n.o.DocPaymentRequestOutgoing}],a=()=>[{label:"Currency transfers",chosen:!0,value:n.o.DocPlatporCurr},{label:"Withdrawal from transit account",chosen:!1,value:n.o.DocTransitPayDoc},{label:"Purchase of currency",chosen:!1,value:n.o.DocCurrBuy},{label:"Sale of currency",chosen:!1,value:n.o.DocCurrSell},{label:"Currency conversion",chosen:!1,value:n.o.DocPlatporConv},{label:"New payment request",chosen:!1,value:n.o.DocPaymentRequestOutgoing}],u=()=>[{label:"All types of operations",all:!0,chosen:!0,value:"all"},{label:"Rur payment",chosen:!0,value:"01"},{label:"Last Operation Doc Status With opCode - 02",chosen:!0,value:"02"},{label:"Last Operation Doc Status With opCode - 03",chosen:!0,value:"03"},{label:"Last Operation Doc Status With opCode - 04",chosen:!0,value:"04"},{label:"Last Operation Doc Status With opCode - 05",chosen:!0,value:"05"},{label:"Last Operation Doc Status With opCode - 06",chosen:!0,value:"06"},{label:"Last Operation Doc Status With opCode - 07",chosen:!0,value:"07"},{label:"Last Operation Doc Status With opCode - 08",chosen:!0,value:"08"},{label:"Last Operation Doc Status With opCode - 09",chosen:!0,value:"09"},{label:"Last Operation Doc Status With opCode - 12",chosen:!0,value:"12"},{label:"Last Operation Doc Status With opCode - 13",chosen:!0,value:"13"},{label:"Last Operation Doc Status With opCode - 16",chosen:!0,value:"16"},{label:"Last Operation Doc Status With opCode - 17",chosen:!0,value:"17"}],h={[e.Os.All]:void 0,[e.Os.Out]:"1",[e.Os.Inbox]:"0",[e.Os.Commission]:"1"},l=[n.o.DocPlatpor,n.o.DocPaymentRequestOutgoing,n.o.RequestCancel,n.o.DocPlatporBp,n.o.TransferRests,n.o.DocSbpTransferByQrCode,n.o.IncomingQrPayments],m=()=>[{label:"All statuses",all:!0,chosen:!0,value:"'new', 'imported'"},{label:"New",chosen:!0,value:"'new'"},{label:"Imported",chosen:!0,value:"'imported'"}],x=()=>[{label:"All statuses",all:!0,chosen:!0,value:"'new', 'draft', 'imported', 'for_send', 'send', 'deffered', 'for_check', 'required_check', 'clarify_check', 'post_for_send', 'send_to_aml'"},{label:"In processing",chosen:!0,value:"'for_send', 'send'"},{label:"Drafts",chosen:!0,value:"'draft'"},{label:"Imported",chosen:!0,value:"'imported'"},{label:"New",chosen:!0,value:"'new'"},{label:"Deffered",chosen:!0,value:"'deffered'"},{label:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432",chosen:!0,value:"'for_check'"},{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432",chosen:!0,value:"'required_check'"},{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432",chosen:!0,value:"'clarify_check'"},{label:"\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438",chosen:!0,value:"'post_for_send'"},{label:"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f",chosen:!0,value:"'send_to_aml'"}],O=()=>[{label:"All statuses",all:!0,chosen:!0,value:"'new', 'draft', 'imported', 'for_send', 'send', 'deffered', 'for_check', 'required_check', 'clarify_check', 'post_for_send', 'send_to_aml'"},{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432",chosen:!0,value:"'required_check'"},{label:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432",chosen:!0,value:"'clarify_check'"}],L=()=>[{label:"All statuses",all:!0,chosen:!0,value:"'new', 'for_send', 'send'"},{label:"In processing",chosen:!0,value:"'for_send', 'send'"},{label:"New",chosen:!0,value:"'new'"}],w=()=>[{label:"All statuses",all:!0,chosen:!0,value:"'cancel', 'decline'"},{label:"Canceled",chosen:!0,value:"'cancel'"},{label:"Decline",chosen:!0,value:"'decline'"}],B=["print","delete","send","delete_sign","sign_list","sign_on_client"],_=["print","sign_list"],y=$=>$===n.o.RequestCancel?"createStamp":"docDate"},41795:(Ee,Q,t)=>{"use strict";t.d(Q,{Ci:()=>u,Os:()=>d,Ys:()=>e,d$:()=>i,wB:()=>a});var n=t(30184);const e="/desktop";var i=(()=>{return(h=i||(i={})).Performed="Performed",h.ForSign="For sign",h.Plan="Plan",h.Refused="Refused",h.PaymentRequests="Payment requests",h.CollectionOrders="Collection orders",i;var h})(),d=(()=>{return(h=d||(d={})).All="All",h.Out="Out",h.Inbox="Inbox",h.Commission="Commission",d;var h})(),a=(()=>{return(h=a||(a={})).All="All",h.RequestRequisitesCheck="Request requisites check",a;var h})();const u={search:"",fromAmount:"",toAmount:"",opCodes:null,accountNums:null,loanAgreementNums:null,amountToShow:n.L8,isValid:!0}},43805:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>d});var n=t(36895),e=t(27382),i=t(94650);let d=(()=>{class a{constructor(h,l){this.viewContainerRef=h,this.templateRef=l,this.context=new n.EL,this._isLoading=!1}get isLoading(){return this._isLoading}set isLoading(h){if(this.context.$implicit=this.context.ngIf=h,this._isLoading=!!h,this.viewContainerRef.clear(),h)this.viewContainerRef.createEmbeddedView(this.templateRef,{$implicit:h,appSkeletonCardList:h});else for(let m=window.innerHeight-600;m>98;m-=98)this.viewContainerRef.createComponent(e.p)}static#e=this.\u0275fac=function(l){return new(l||a)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))};static#t=this.\u0275dir=i.\u0275\u0275defineDirective({type:a,selectors:[["","appSkeletonCardList",""]],inputs:{isLoading:["appSkeletonCardList","isLoading"]}})}return a})()},27382:(Ee,Q,t)=>{"use strict";t.d(Q,{p:()=>h});var n=t(94650),e=t(93379);function i(l,m){}function d(l,m){}function a(l,m){}function u(l,m){}let h=(()=>{class l{constructor(){}static#e=this.\u0275fac=function(O){return new(O||l)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:l,selectors:[["app-skeleton-document-card"]],decls:7,vars:0,consts:[[1,"doc-item"],[1,"doc-item__left"],["appSkeleton","true","appSkeletonHeight","20px","appSkeletonMargin","0 0 9px 0","appSkeletonWidth","75%"],["appSkeleton","true","appSkeletonHeight","20px","appSkeletonWidth","55%"],[1,"doc-item__right"],["appSkeleton","true","appSkeletonHeight","20px","appSkeletonMargin","0 0 9px 0","appSkeletonWidth","95%"],["appSkeleton","true","appSkeletonHeight","20px","appSkeletonWidth","65%"]],template:function(O,L){1&O&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275template(2,i,0,0,"ng-template",2),n.\u0275\u0275template(3,d,0,0,"ng-template",3),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",4),n.\u0275\u0275template(5,a,0,0,"ng-template",5),n.\u0275\u0275template(6,u,0,0,"ng-template",6),n.\u0275\u0275elementEnd()())},dependencies:[e.e],styles:['@charset "UTF-8";.doc-item[_ngcontent-%COMP%]{padding:23px 20px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede}.doc-item__left[_ngcontent-%COMP%]{display:flex;flex-grow:6;flex-direction:column}.doc-item__right[_ngcontent-%COMP%]{display:flex;flex-grow:1;align-items:flex-end;flex-direction:column}.doc-item[_ngcontent-%COMP%]   app-skeleton[_ngcontent-%COMP%]{margin-bottom:9px}']})}return l})()},95682:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>e});var n=t(94650);let e=(()=>{class i{constructor(a){this.host=a}get class(){return"pulse"}ngOnInit(){const a=this.host.nativeElement;this.className&&a.classList.add(this.className),a.style.setProperty("--skeleton-block-width",this.width?this.width:"100%"),a.style.setProperty("--skeleton-block-height",this.height?this.height:"20px"),a.style.setProperty("--skeleton-block-radius",this.radius?this.radius:"4px"),a.style.setProperty("--skeleton-block-margin",this.margin?this.margin:"0 0 0 0")}static#e=this.\u0275fac=function(u){return new(u||i)(n.\u0275\u0275directiveInject(n.ElementRef))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:i,selectors:[["app-skeleton"]],hostVars:2,hostBindings:function(u,h){2&u&&n.\u0275\u0275classMap(h.class)},decls:0,vars:0,template:function(u,h){},styles:["[_nghost-%COMP%]{display:block;width:var(--skeleton-block-width);height:var(--skeleton-block-height);border-radius:var(--skeleton-block-radius);margin:var(--skeleton-block-margin);background:rgb(229,231,236) no-repeat}"]})}return i})()},93379:(Ee,Q,t)=>{"use strict";t.d(Q,{e:()=>a});var n=t(17489),i=t(95682),d=t(94650);let a=(()=>{class u{constructor(l,m){this.templateRef=l,this.viewContainerRef=m,this.repeat=1,this.width="rand",this.margin="0 0 0 0",this.radius="4px",this._isLoading=!1}get isLoading(){return this._isLoading}set isLoading(l){this._isLoading=!!l}ngOnChanges(l){l.isLoading&&(this.viewContainerRef.clear(),l.isLoading.currentValue?Array.from({length:this.repeat}).forEach(()=>{const m=this.viewContainerRef.createComponent(i._);Object.assign(m.instance,{width:"rand"===this.width?`${(0,n.random)(65,95)}%`:this.width,height:this.height,className:this.className,radius:this.radius,margin:this.margin})}):this.viewContainerRef.createEmbeddedView(this.templateRef))}static#e=this.\u0275fac=function(m){return new(m||u)(d.\u0275\u0275directiveInject(d.TemplateRef),d.\u0275\u0275directiveInject(d.ViewContainerRef))};static#t=this.\u0275dir=d.\u0275\u0275defineDirective({type:u,selectors:[["","appSkeleton",""]],inputs:{repeat:["appSkeletonRepeat","repeat"],width:["appSkeletonWidth","width"],height:["appSkeletonHeight","height"],margin:["appSkeletonMargin","margin"],radius:["appSkeletonRadius","radius"],className:["appSkeletonClassName","className"],isLoading:["appSkeleton","isLoading"]},features:[d.\u0275\u0275NgOnChangesFeature]})}return u})()},12593:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>O});var n=t(97582),e=t(94650),i=t(16611),d=t(70234),a=t(36895),u=t(43557);function h(L,w){if(1&L&&(e.\u0275\u0275elementStart(0,"span",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&L){const B=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",B.titleAdditionalBlock," ")}}function l(L,w){if(1&L&&(e.\u0275\u0275elementStart(0,"span",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&L){const B=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",B.titleAdditionalBlock2," ")}}function m(L,w){if(1&L&&e.\u0275\u0275element(0,"app-arrow-toggle",9),2&L){const B=e.\u0275\u0275nextContext();e.\u0275\u0275styleMap(B.arrowStyle),e.\u0275\u0275classMap(B.arrowClass),e.\u0275\u0275property("hide",B.hide)}}const x=["*"];class O{constructor(){this.hideArrow=!1,this.toggleAccordtion=new e.EventEmitter}accordionToggle(){this.hide=!this.hide,this.toggleAccordtion.emit(this.hide)}static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:O,selectors:[["app-accordion-page"]],inputs:{title:"title",hide:"hide",hideArrow:"hideArrow",arrowStyle:"arrowStyle",arrowClass:"arrowClass",headerCssClass:"headerCssClass",titleCssClass:"titleCssClass",titleAdditionalBlock:"titleAdditionalBlock",titleAdditionalBlock2:"titleAdditionalBlock2"},outputs:{toggleAccordtion:"toggleAccordtion"},ngContentSelectors:x,decls:10,vars:10,consts:[["data-qa","1657803428746",1,"accordion-page"],["data-qa","1657803432416",1,"accordion-page__header",3,"ngClass","click"],[1,"accordion-page__title",3,"ngClass"],["class","accordion-page__additional-block",4,"ngIf"],["class","accordion-page__additional-block warning-text",4,"ngIf"],[3,"hide","style","class",4,"ngIf"],["data-qa","1657803441278",1,"accordion-page__content"],[1,"accordion-page__additional-block"],[1,"accordion-page__additional-block","warning-text"],[3,"hide"]],template:function(B,_){1&B&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return _.accordionToggle()}),e.\u0275\u0275elementStart(2,"span",2),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275template(5,h,2,1,"span",3),e.\u0275\u0275template(6,l,2,1,"span",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,m,1,5,"app-arrow-toggle",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275projection(9),e.\u0275\u0275elementEnd()()),2&B&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",_.headerCssClass),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",_.titleCssClass),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,7,_.title,_.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",_.titleAdditionalBlock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",_.titleAdditionalBlock2),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!_.hideArrow),e.\u0275\u0275advance(1),e.\u0275\u0275property("@accordion",_.hide?"hide":"show"))},dependencies:[a.mk,a.O5,u.V,i.X$],styles:['@charset "UTF-8";.accordion-page__content--hidden[_ngcontent-%COMP%]{display:none}.accordion-page__title[_ngcontent-%COMP%]{color:#284681;font-weight:600;font-family:Source Sans Pro;font-size:22px}.accordion-page__title.menu-accordion-title[_ngcontent-%COMP%]{color:inherit;font-weight:700;font-family:inherit;font-size:inherit;text-transform:uppercase}@media screen and (max-width: 999px){.accordion-page__title.menu-accordion-title[_ngcontent-%COMP%]{padding:12px 0 0}}@media screen and (max-width: 320px){.accordion-page__title.menu-accordion-title[_ngcontent-%COMP%]{max-width:280px}}@media screen and (max-width: 480px){.accordion-page__title.menu-accordion-title[_ngcontent-%COMP%]{padding:11px 12px}}.accordion-page__title.wide-title[_ngcontent-%COMP%]{color:#080708;font-size:20px;font-weight:600;font-family:Open Sans,Source Sans Pro,sans-serif;line-height:26px;display:flex;align-items:center}.accordion-page__title.dcb[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:700;font-size:18px;line-height:24px;color:#080708}.accordion-page__additional-block[_ngcontent-%COMP%]{margin-left:12px;color:#2f54eb;padding:4px 8px;font-size:12px;font-weight:700;background-color:#f1f2f2;height:24px;display:inline-block;border-radius:4px;line-height:16px}.accordion-page__additional-block.warning-text[_ngcontent-%COMP%]{color:#e23428}.accordion-page__header[_ngcontent-%COMP%]{font-size:18px;padding:10px 0;cursor:pointer;display:inline-flex}.accordion-page__header.menu-accordion-header[_ngcontent-%COMP%]{padding:0 0 12px 12px;font-size:14px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-radius:4px;border:1px solid transparent;background-color:transparent;pointer-events:none}@media screen and (max-width: 720px){.accordion-page__header.menu-accordion-header[_ngcontent-%COMP%]{border:1px solid #f1f2f2;background-color:#f1f2f2;pointer-events:all}}@media screen and (max-width: 480px){.accordion-page__header.menu-accordion-header[_ngcontent-%COMP%]{padding:0}}@media screen and (max-width: 320px){.accordion-page__header.menu-accordion-header[_ngcontent-%COMP%]{max-width:280px}}.accordion-page__header.menu-accordion-header[_ngcontent-%COMP%]   app-arrow-toggle[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 720px){.accordion-page__header.menu-accordion-header[_ngcontent-%COMP%]   app-arrow-toggle[_ngcontent-%COMP%]{margin-top:0;margin-right:11px;margin-bottom:5px;display:block}}.accordion-page__header.wide-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:25px 0;font-size:20px}.accordion-page__header.dcb-header[_ngcontent-%COMP%]{padding:0 0 12px}.accordion-page__header.no-arrow[_ngcontent-%COMP%]{cursor:default;pointer-events:none}.accordion-page__header[_ngcontent-%COMP%]   app-arrow-toggle[_ngcontent-%COMP%]{margin-top:11px;margin-left:13px}.accordion-page__header[_ngcontent-%COMP%]   .dcb-arrow[_ngcontent-%COMP%]{align-items:center;display:flex;margin:0 0 0 8px}'],data:{animation:[d.U]}})}(0,n.gn)([(0,i.SQ)()],O.prototype,"lang",void 0)},48872:(Ee,Q,t)=>{"use strict";t.d(Q,{C:()=>a});var n=t(36895),e=t(16611),i=t(27719),d=t(94650);let a=(()=>{class u{static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:u});static#n=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[n.ez,e.qw,i.n]})}return u})()},42887:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>h});var n=t(36895),e=t(97392),i=t(94650);function d(l,m){1&l&&(i.\u0275\u0275elementStart(0,"mat-icon",7),i.\u0275\u0275text(1,"keyboard_arrow_down"),i.\u0275\u0275elementEnd())}function a(l,m){1&l&&(i.\u0275\u0275elementStart(0,"mat-icon",7),i.\u0275\u0275text(1,"keyboard_arrow_up"),i.\u0275\u0275elementEnd())}const u=["*"];let h=(()=>{class l{constructor(){this.show=!0,this.hideArrow=!1}accordionToggle(){this.show=!this.show}static#e=this.\u0275fac=function(O){return new(O||l)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:l,selectors:[["app-accordion"]],inputs:{title:"title",show:"show",color:"color",hideArrow:"hideArrow",cssClassTitle:"cssClassTitle",cssClassHeader:"cssClassHeader"},standalone:!0,features:[i.\u0275\u0275StandaloneFeature],ngContentSelectors:u,decls:10,vars:12,consts:[[1,"accordion",3,"ngClass"],["data-qa","1658987882542",1,"accordion__header",3,"ngClass","click"],[1,"accordion__title","open-sans",3,"ngClass"],[1,"my-toggle-arrow-container"],[1,"my-toggle-arrows"],["class","my-toggle-arrow",4,"ngIf"],[1,"accordion__content"],[1,"my-toggle-arrow"]],template:function(O,L){1&O&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275listener("click",function(){return L.accordionToggle()}),i.\u0275\u0275elementStart(2,"span",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3)(5,"div",4),i.\u0275\u0275template(6,d,2,0,"mat-icon",5),i.\u0275\u0275template(7,a,2,0,"mat-icon",5),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(8,"div",6),i.\u0275\u0275projection(9),i.\u0275\u0275elementEnd()()),2&O&&(i.\u0275\u0275property("ngClass",L.color),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",L.cssClassHeader),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",L.cssClassTitle),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(L.title),i.\u0275\u0275advance(1),i.\u0275\u0275classProp("no-arrow",L.hideArrow)("open",L.show),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",!L.show),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",L.show),i.\u0275\u0275advance(1),i.\u0275\u0275classProp("accordion__content--hidden",!L.show))},dependencies:[n.ez,n.mk,n.O5,e.Ps,e.Hw],styles:['@charset "UTF-8";.accordion__content[_ngcontent-%COMP%]{margin-top:-1px;height:auto}.accordion__content--hidden[_ngcontent-%COMP%]{display:none}.accordion__title[_ngcontent-%COMP%]{color:#88909b}.accordion__title.open-sans[_ngcontent-%COMP%]{font-family:Open Sans,serif;font-size:16px;font-weight:400}.accordion__title.darker[_ngcontent-%COMP%]{color:#444}.accordion__header[_ngcontent-%COMP%]{background-color:#f1f2f2;font-size:18px;padding:12px 24px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0}.accordion__header.partners[_ngcontent-%COMP%]{background:#dae0f2}.my-toggle-arrows[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.my-toggle-arrow[_ngcontent-%COMP%]{color:#88909b}']})}return l})()},82741:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>u});var n=t(97582),e=t(16611),i=t(94650),d=t(36895);function a(h,l){1&h&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1,"+"),i.\u0275\u0275elementEnd())}class u{constructor(){this.showPlusSymbol=!0}ngOnInit(){}static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:u,selectors:[["app-add-string"]],inputs:{text:"text",disabled:"disabled",showPlusSymbol:"showPlusSymbol"},decls:4,vars:7,consts:[[1,"add-string"],[4,"ngIf"]],template:function(m,x){1&m&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275template(3,a,2,0,"span",1),i.\u0275\u0275elementEnd()),2&m&&(i.\u0275\u0275classProp("disabled",x.disabled),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",i.\u0275\u0275pipeBind2(2,4,x.text,x.lang)," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",x.showPlusSymbol))},dependencies:[d.O5,e.X$],styles:['@charset "UTF-8";.add-string[_ngcontent-%COMP%]{font-size:19px;font-weight:600;cursor:pointer;color:#2f54eb;display:inline-flex;align-items:center}.add-string[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:13px;font-size:32px;font-weight:400}']})}(0,n.gn)([(0,e.SQ)()],u.prototype,"lang",void 0)},15654:(Ee,Q,t)=>{"use strict";t.d(Q,{w:()=>a});var n=t(97582),e=t(94650),i=t(16611),d=t(11260);class a{constructor(){this.closed=new e.EventEmitter}ngOnInit(){this.getIcon()}getIcon(){"error"===this.type&&(this.icon="circle-exclamation")}close(){this.closed.emit()}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-alert"]],inputs:{type:"type",text:"text"},outputs:{closed:"closed"},decls:6,vars:6,consts:[[1,"alert"],[1,"alert__icon",3,"icon","svgClass"],[1,"alert__text",3,"innerHTML"],["data-qa","1658987909185",1,"alert__close",3,"click"]],template:function(l,m){1&l&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"app-svg-icon",1)(2,"div",2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275listener("click",function(){return m.close()}),e.\u0275\u0275text(5,"\xd7"),e.\u0275\u0275elementEnd()()),2&l&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("icon",m.icon)("svgClass","alert-icon "+m.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(3,3,m.text,m.lang),e.\u0275\u0275sanitizeHtml))},dependencies:[d.b,i.X$],styles:['@charset "UTF-8";.alert[_ngcontent-%COMP%]{position:relative;padding:13px 70px;background-color:#f1f2f2e6;border-radius:5px;font-size:16px;color:#000;white-space:pre-wrap}.alert__icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:24px;transform:translateY(-50%)}.alert__icon[_ngcontent-%COMP%]  .alert-icon{width:32px;height:32px}.alert__icon[_ngcontent-%COMP%]  .alert-icon.error{fill:#d9291e}.alert__icon[_ngcontent-%COMP%]  .alert-icon.warning{fill:#f3ac24}.alert__icon[_ngcontent-%COMP%]  .alert-icon.success{fill:#28b26d}.alert__close[_ngcontent-%COMP%]{position:absolute;cursor:pointer;top:16px;right:16px;font-size:24px;line-height:12px}']})}(0,n.gn)([(0,i.SQ)()],a.prototype,"lang",void 0)},88279:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>a});var n=t(94650),e=t(36895),i=t(15654);function d(u,h){if(1&u){const l=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-alert",2),n.\u0275\u0275listener("closed",function(){const x=n.\u0275\u0275restoreView(l),O=x.index,L=x.$implicit,w=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(w.closeItem(O,L))}),n.\u0275\u0275elementEnd()}if(2&u){const l=h.$implicit,m=h.index;n.\u0275\u0275property("text",l.text)("type",l.type),n.\u0275\u0275attribute("data-qa","1658987954204"+m)}}let a=(()=>{class u{constructor(){this.onDelete=new n.EventEmitter}closeItem(l,m){this.items.splice(l,1),this.onDelete.emit(m)}static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:u,selectors:[["app-alerts"]],inputs:{items:"items"},outputs:{onDelete:"onDelete"},decls:2,vars:1,consts:[[1,"alerts"],["class","alerts__item",3,"text","type","closed",4,"ngFor","ngForOf"],[1,"alerts__item",3,"text","type","closed"]],template:function(m,x){1&m&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,d,1,3,"app-alert",1),n.\u0275\u0275elementEnd()),2&m&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",x.items))},dependencies:[e.sg,i.w],styles:[".alerts__item[_ngcontent-%COMP%]{display:block;margin-bottom:15px}.alerts__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]})}return u})()},23439:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>Wn});var n=t(97582),e=t(94650),i=t(16611),d=t(36895),a=t(21676),u=t(75568),h=t(97392),l=t(24201),m=t(91762);function x(rn,Sn){1&rn&&(e.\u0275\u0275elementStart(0,"mat-icon"),e.\u0275\u0275text(1,"close"),e.\u0275\u0275elementEnd())}function O(rn,Sn){if(1&rn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"mat-icon",23),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("svgIcon",ke.customDocumentListItemIcon),e.\u0275\u0275property("fontSet","material-icons-outlined"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(ke.customDocumentListItemIcon)}}function L(rn,Sn){1&rn&&e.\u0275\u0275element(0,"mat-icon",25)}function w(rn,Sn){if(1&rn&&e.\u0275\u0275template(0,L,1,0,"mat-icon",24),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",!(null!=ke.documentListItem&&ke.documentListItem.isOpenable))}}function B(rn,Sn){1&rn&&(e.\u0275\u0275elementStart(0,"div",26),e.\u0275\u0275text(1,'\u041f\u0410\u041e \u043a\u043e\u043c\u0431\u0430\u043d\u043a "\u0425\u0438\u043c\u0438\u043a"'),e.\u0275\u0275elementEnd())}function _(rn,Sn){if(1&rn&&e.\u0275\u0275element(0,"app-metib-badge-tag",29),2&rn){const ke=Sn.$implicit;e.\u0275\u0275property("backgroundColor",null==ke?null:ke.backgroundColor)("size",null==ke?null:ke.size)("color",null==ke?null:ke.color)("type",null==ke?null:ke.class)("title",null==ke?null:ke.label)}}function y(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275template(1,_,1,5,"app-metib-badge-tag",28),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",ke.documentListItem.tags)}}function $(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",30),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==ke.documentListItem?null:ke.documentListItem.amount)}}function C(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",31),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==ke.documentListItem?null:ke.documentListItem.date)}}function T(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",32),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",null==ke.documentListItem?null:ke.documentListItem.statusCaptionColor),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==ke.documentListItem?null:ke.documentListItem.statusCaption," ")}}function j(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",33),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionDone(q))})("returnData",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionData(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementStart(1,"button",34),e.\u0275\u0275element(2,"span",35),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=Sn.ngIf,ge=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",!0)("buttonActions",ke.buttonActions)("items",null==ge.documentListItem?null:ge.documentListItem.actions)("showDivider",!0)}}function I(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",36),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionDone(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementStart(1,"button",34),e.\u0275\u0275element(2,"span",35),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",!0)("items",null==ke.documentListItem?null:ke.documentListItem.actions)("showDivider",!0)}}function F(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",33),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionDone(q))})("returnData",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionData(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementStart(1,"button",34),e.\u0275\u0275element(2,"span",35),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=Sn.ngIf,ge=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",!0)("buttonActions",ke.buttonActions)("items",null==ge.documentListItem?null:ge.documentListItem.actions)("showDivider",!0)}}function z(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",36),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionDone(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementStart(1,"button",34),e.\u0275\u0275element(2,"span",35),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",!0)("items",null==ke.documentListItem?null:ke.documentListItem.actions)("showDivider",!0)}}function X(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",37),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reason",ke.lang),": ",null==ke.documentListItem?null:ke.documentListItem.declineInfo," ")}}function p(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",33),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onActionDone(q))})("returnData",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onActionData(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementStart(1,"button",34),e.\u0275\u0275element(2,"span",35),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("icon",!0)("buttonActions",null==ke.documentListItem||null==ke.documentListItem.linkedDocument||null==ke.documentListItem.linkedDocument.dots?null:ke.documentListItem.linkedDocument.dots.buttonActions)("items",null==ke.documentListItem||null==ke.documentListItem.linkedDocument?null:ke.documentListItem.linkedDocument.actions)("showDivider",!0)}}function P(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",36),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onActionDone(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementStart(1,"button",34),e.\u0275\u0275element(2,"span",35),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("icon",!0)("items",null==ke.documentListItem||null==ke.documentListItem.linkedDocument?null:ke.documentListItem.linkedDocument.actions)("showDivider",!0)}}const E=function(rn){return{hide:rn}};function R(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",38)(1,"div",39)(2,"div",40)(3,"span",41),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",42),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",43)(8,"div",17),e.\u0275\u0275template(9,p,3,4,"app-menu-select",18),e.\u0275\u0275template(10,P,3,3,"app-menu-select",19),e.\u0275\u0275elementEnd()()()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(null==ke.documentListItem||null==ke.documentListItem.linkedDocument?null:ke.documentListItem.linkedDocument.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",null==ke.documentListItem||null==ke.documentListItem.linkedDocument?null:ke.documentListItem.linkedDocument.statusCaptionColor),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==ke.documentListItem||null==ke.documentListItem.linkedDocument?null:ke.documentListItem.linkedDocument.statusCaption," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,E,ke.actionsHide)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==ke.documentListItem||null==ke.documentListItem.linkedDocument?null:ke.documentListItem.linkedDocument.dots)&&(null==ke.documentListItem||null==ke.documentListItem.linkedDocument||null==ke.documentListItem.linkedDocument.dots||null==ke.documentListItem.linkedDocument.dots.buttonActions?null:ke.documentListItem.linkedDocument.dots.buttonActions.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==ke.documentListItem||null==ke.documentListItem.linkedDocument||null==ke.documentListItem.linkedDocument.actions?null:ke.documentListItem.linkedDocument.actions.length)&&!(null!=ke.documentListItem&&null!=ke.documentListItem.linkedDocument&&ke.documentListItem.linkedDocument.dots))}}const ne=function(rn){return{last:rn}},G=function(rn,Sn){return{clickable:rn,"with-linked":Sn}},ce=function(rn,Sn){return{"ellipsis-cut":rn,"full-description":Sn}},xe=function(rn,Sn){return{hide:rn,"with-linked":Sn}};class we{constructor(){this.rightBlockVerticalPositionFlex="space-between",this.oneLineDescriptionWithEllipsis=!1,this.actionDone=new e.EventEmitter,this.returnData=new e.EventEmitter,this.changeEvent=new e.EventEmitter,this.openDescription=!1}openDeclineReason(Sn){this.openDescription=!this.openDescription,(Sn?.isOpenable||Sn?.smsInfoList)&&(Sn.isOpen=!Sn.isOpen)}get actionsHide(){return!this.documentListItem?.actions||0===this.documentListItem?.actions?.length||1===this.documentListItem?.actions?.length&&"view"===this.documentListItem?.actions[0]}onActionDone(Sn){this.actionDone.emit(Sn)}onActionData(Sn){this.returnData.emit(Sn)}onChangeEvent(Sn){this.changeEvent.emit({...Sn,document:this.documentListItem})}static#e=this.\u0275fac=function(ke){return new(ke||we)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:we,selectors:[["app-alt-document-list-item"]],inputs:{documentListItem:"documentListItem",isLastItem:"isLastItem",customDocumentListItemIcon:"customDocumentListItemIcon",rightBlockVerticalPositionFlex:"rightBlockVerticalPositionFlex",oneLineDescriptionWithEllipsis:"oneLineDescriptionWithEllipsis"},outputs:{actionDone:"actionDone",returnData:"returnData",changeEvent:"changeEvent"},decls:28,vars:37,consts:[["data-qa","1680266916",1,"alt-document-list-item",3,"ngClass"],["data-qa","1680266927",1,"alt-document-list-item-main",3,"ngClass","click"],["data-qa","1680266930",1,"list-item-main__left"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["defaultIconTemplate",""],[1,"list-item-main__center"],[1,"text-title"],[1,"text-title-main"],["class","text-title-tag",4,"ngIf"],["class","text-title-tags",4,"ngIf"],[1,"text-description",3,"title","ngClass"],["data-qa","1680266939",1,"list-item-main__right"],[1,"doc-info"],["class","doc-info-amount",4,"ngIf"],["class","doc-info-date",4,"ngIf"],["class","doc-info-status",3,"ngClass",4,"ngIf"],[1,"doc-menu",3,"ngClass"],["data-qa","1680266945",3,"icon","buttonActions","items","showDivider","actionDone","returnData","changeEvent",4,"ngIf"],["data-qa","1680266945",3,"icon","items","showDivider","actionDone","changeEvent",4,"ngIf"],[1,"doc-menu-media",3,"ngClass"],["class","alt-document-list-item-additional","data-qa","1680266951",4,"ngIf"],["class","alt-document-list-item-linked","data-qa","1680266951",4,"ngIf"],[3,"fontSet","svgIcon"],["svgIcon","file-new",4,"ngIf"],["svgIcon","file-new"],[1,"text-title-tag"],[1,"text-title-tags"],[3,"backgroundColor","size","color","type","title",4,"ngFor","ngForOf"],[3,"backgroundColor","size","color","type","title"],[1,"doc-info-amount"],[1,"doc-info-date"],[1,"doc-info-status",3,"ngClass"],["data-qa","1680266945",3,"icon","buttonActions","items","showDivider","actionDone","returnData","changeEvent"],[1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"],["data-qa","1680266945",3,"icon","items","showDivider","actionDone","changeEvent"],["data-qa","1680266951",1,"alt-document-list-item-additional"],["data-qa","1680266951",1,"alt-document-list-item-linked"],[1,"alt-document-list-item-linked-left"],[1,"alt-document-list-item-linked-left__title"],[1,"alt-document-list-item-linked-left__title--underline"],[1,"alt-document-list-item-linked-left__status","doc-info-status",3,"ngClass"],[1,"alt-document-list-item-linked-right"]],template:function(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return ge.openDeclineReason(ge.documentListItem)}),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275template(3,x,2,0,"mat-icon",3),e.\u0275\u0275template(4,O,3,3,"ng-container",4),e.\u0275\u0275template(5,w,1,1,"ng-template",null,5,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",6)(8,"div",7)(9,"div",8),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,B,2,0,"div",9),e.\u0275\u0275template(12,y,2,1,"div",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",11),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",12)(16,"div",13),e.\u0275\u0275template(17,$,2,1,"div",14),e.\u0275\u0275template(18,C,2,1,"div",15),e.\u0275\u0275template(19,T,2,2,"div",16),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"div",17),e.\u0275\u0275template(21,j,3,4,"app-menu-select",18),e.\u0275\u0275template(22,I,3,3,"app-menu-select",19),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(23,"div",20),e.\u0275\u0275template(24,F,3,4,"app-menu-select",18),e.\u0275\u0275template(25,z,3,3,"app-menu-select",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(26,X,3,5,"div",21),e.\u0275\u0275template(27,R,11,8,"div",22),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275reference(6);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(24,ne,ge.isLastItem)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(26,G,(null==ge.documentListItem?null:ge.documentListItem.isOpenable)&&(null==ge.documentListItem?null:ge.documentListItem.declineInfo)||(null==ge.documentListItem?null:ge.documentListItem.smsInfoList),null==ge.documentListItem?null:ge.documentListItem.linkedDocument)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",null==ge.documentListItem?null:ge.documentListItem.isOpenable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.customDocumentListItemIcon)("ngIfElse",q),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(null==ge.documentListItem?null:ge.documentListItem.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"===(null==ge.documentListItem?null:ge.documentListItem.isBpx)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentListItem||null==ge.documentListItem.tags?null:ge.documentListItem.tags.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("title",ge.oneLineDescriptionWithEllipsis?null==ge.documentListItem?null:ge.documentListItem.description:"")("ngClass",e.\u0275\u0275pureFunction2(29,ce,ge.oneLineDescriptionWithEllipsis,ge.openDescription)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==ge.documentListItem?null:ge.documentListItem.description," "),e.\u0275\u0275advance(2),e.\u0275\u0275styleProp("justify-content",ge.rightBlockVerticalPositionFlex),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentListItem?null:ge.documentListItem.amount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentListItem?null:ge.documentListItem.date),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentListItem?null:ge.documentListItem.statusCaption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(32,E,ge.actionsHide)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.documentListItem.dots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==ge.documentListItem||null==ge.documentListItem.actions?null:ge.documentListItem.actions.length)&&!(null!=ge.documentListItem&&ge.documentListItem.dots)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(34,xe,ge.actionsHide,null==ge.documentListItem?null:ge.documentListItem.linkedDocument)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.documentListItem.dots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==ge.documentListItem||null==ge.documentListItem.actions?null:ge.documentListItem.actions.length)&&!(null!=ge.documentListItem&&ge.documentListItem.dots)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==ge.documentListItem?null:ge.documentListItem.declineInfo)&&(null==ge.documentListItem?null:ge.documentListItem.isOpenable)&&(null==ge.documentListItem?null:ge.documentListItem.isOpen)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentListItem?null:ge.documentListItem.linkedDocument)}},dependencies:[d.mk,d.sg,d.O5,h.Hw,l.r,m.y,i.X$],styles:['@charset "UTF-8";.alt-document-list-item[_ngcontent-%COMP%]{display:flex;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;flex-direction:column;border-top:1px solid #dedede}@media screen and (min-width: 375px) and (max-width: 768px){.alt-document-list-item[_ngcontent-%COMP%]{max-width:100%;display:flex;flex-direction:initial;justify-content:space-between;flex-wrap:wrap;position:relative}.alt-document-list-item-main[_ngcontent-%COMP%]{flex-direction:column-reverse;max-width:86%}}.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu-media[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu-media[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column}.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu-media.with-linked[_ngcontent-%COMP%]{position:absolute;top:38px;right:0}}.alt-document-list-item.last[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.alt-document-list-item-main[_ngcontent-%COMP%]{display:flex;padding:20px 10px 20px 20px}.alt-document-list-item-main.clickable[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]{padding:16px 0}}.alt-document-list-item-main.with-linked[_ngcontent-%COMP%]{padding-bottom:12px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]{display:flex;align-items:center;max-height:52px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:calc(77% - 68px);margin-left:16px;row-gap:8px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-title[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap-reverse}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-title-main[_ngcontent-%COMP%]{color:#080708;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-title-tags[_ngcontent-%COMP%]{display:flex;gap:12px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-title-tag[_ngcontent-%COMP%]{display:inline-block;height:22px;vertical-align:bottom;background-color:#f1f2f2;border-radius:4px;padding:4px 8px;color:#9448bc;font-size:10px;font-weight:700;line-height:14px;text-transform:uppercase}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-description[_ngcontent-%COMP%]{color:#88909b;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-description.full-description[_ngcontent-%COMP%]{text-overflow:unset;white-space:unset;overflow:unset}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-description.ellipsis-cut[_ngcontent-%COMP%]{max-width:786px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]{display:flex;min-width:25%;justify-content:flex-end;max-height:52px}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]{display:none!important}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]{display:block}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info[_ngcontent-%COMP%]{flex-direction:initial;justify-content:flex-start!important}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-menu[_ngcontent-%COMP%]{display:none;min-width:25px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status[_ngcontent-%COMP%]{font-size:14px;padding-left:12px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]{width:auto;margin-left:0;margin-top:12px}}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;padding-right:10px}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-status[_ngcontent-%COMP%]{color:#88909b;text-align:end}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-status.gray[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-status.blue[_ngcontent-%COMP%]{color:#2f54eb}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-status.red[_ngcontent-%COMP%]{color:#e23428}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-status.green[_ngcontent-%COMP%]{color:#00a843}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-status.black[_ngcontent-%COMP%]{color:#080708}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-date[_ngcontent-%COMP%]{font-size:14px;color:#444;text-align:right;white-space:nowrap;overflow-x:hidden}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-amount[_ngcontent-%COMP%]{font-size:16px;color:#444;text-align:right;white-space:nowrap;overflow-x:hidden}@media (max-width: 768px){.alt-document-list-item[_ngcontent-%COMP%]   .doc-info[_ngcontent-%COMP%]{padding:0}.alt-document-list-item[_ngcontent-%COMP%]   .doc-info-amount[_ngcontent-%COMP%], .alt-document-list-item[_ngcontent-%COMP%]   .doc-info-status[_ngcontent-%COMP%]{font-size:14px;text-align:left;white-space:nowrap}}.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu[_ngcontent-%COMP%]{font-size:14px;min-width:40px;display:flex;align-items:center;padding-top:5px}.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu.hide[_ngcontent-%COMP%]   .my-reference-menu-btn[_ngcontent-%COMP%]{display:none}.alt-document-list-item-additional[_ngcontent-%COMP%]{font-size:14px;color:#e23428;padding:4px 20px 12px 60px;word-break:normal;overflow-wrap:anywhere}@media (max-width: 768px){.alt-document-list-item-additional[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alt-document-list-item-linked[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:8px 62px 28px 60px;padding-left:12px;padding-top:1px;padding-bottom:1px;background:#f1f2f2;border-left:2px solid #88909b;border-radius:4px}.alt-document-list-item-linked-left[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0}.alt-document-list-item-linked-left__title[_ngcontent-%COMP%]{font-size:14px;font-style:normal;font-weight:400;line-height:20px}.alt-document-list-item-linked-left__title--underline[_ngcontent-%COMP%]{border-bottom:1px solid #444444}@media screen and (max-width: 768px){.alt-document-list-item-linked[_ngcontent-%COMP%]{margin-left:0;margin-right:0;width:100%}}']})}(0,n.gn)([(0,i.SQ)()],we.prototype,"lang",void 0);var Ge=t(15439),ct=t.n(Ge),pe=t(46923);function Ce(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",7),e.\u0275\u0275listener("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementStart(1,"button",8),e.\u0275\u0275element(2,"span",9),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",!0)("buttonActions",ke.documentButtonActions)("showDivider",!0)("showDivider",!0)}}class U{constructor(){this.actionDone=new e.EventEmitter,this.returnData=new e.EventEmitter,this.changeEvent=new e.EventEmitter}get titleText(){let Sn="";if("request_accept_no_accept"===this.document.docType){const ke=ct()(this.document.docDate,"YYYY-MM-DD").format("DD.MM.YYYY");Sn=`${new Map([["ACCEPT","\u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431 \u0430\u043a\u0446\u0435\u043f\u0442\u0435"],["DECLINE","\u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0442\u043a\u0430\u0437\u0435 \u043e\u0442 \u0430\u043a\u0446\u0435\u043f\u0442\u0430"],["PARTLY_ACCEPT","\u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u043c \u0430\u043a\u0446\u0435\u043f\u0442\u0435"]]).get(this.document.acceptType)} \u043e\u0442 ${ke}`}else Sn="\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442";return Sn}get documentButtonActions(){return this.document.actions||[]}get getStatusColor(){return new Map([["\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435","blue"],["\u041d\u0435 \u0430\u0446\u0435\u043f\u0442\u043e\u0432\u0430\u043d\u043e","gray"],["\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e","green"],["\u041e\u0442\u043a\u0430\u0437\u0430\u043d\u043e","red"]]).get(this.document.statusCaption)||"gray"}get statusCaption(){return"request_accept_no_accept"===this.document.docType&&"1"===this.document.signStatus?this.document.signStatusCaption:this.document.statusCaption}onActionDone(Sn){this.actionDone.emit(Sn)}onActionData(Sn){this.returnData.emit(Sn)}onChangeEvent(Sn){this.changeEvent.emit({...Sn,document:[]})}static#e=this.\u0275fac=function(ke){return new(ke||U)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:U,selectors:[["app-sub-document"]],inputs:{document:"document"},outputs:{actionDone:"actionDone",returnData:"returnData",changeEvent:"changeEvent"},decls:9,vars:4,consts:[[1,"wrapper-sub-document"],[1,"info-sub-document"],[1,"text-sub-document"],[1,"text-sub-document","status",3,"ngClass"],[1,"menu-sub-document"],[1,"doc-menu"],[3,"icon","buttonActions","showDivider","changeEvent",4,"ngIf"],[3,"icon","buttonActions","showDivider","changeEvent"],[1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"]],template:function(ke,ge){1&ke&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",4)(7,"div",5),e.\u0275\u0275template(8,Ce,3,4,"app-menu-select",6),e.\u0275\u0275elementEnd()()()),2&ke&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(ge.titleText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",ge.getStatusColor),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(ge.statusCaption),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",ge.documentButtonActions.length))},dependencies:[d.mk,d.O5,l.r],styles:['@charset "UTF-8";.wrapper-sub-document[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:24px;display:flex;justify-content:space-between;background:#F1F2F2;padding:4px 12px;min-height:48px;border-left:2px solid #88909B;border-radius:4px}.wrapper-sub-document[_ngcontent-%COMP%]   .info-sub-document[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-sub-document[_ngcontent-%COMP%]   .info-sub-document[_ngcontent-%COMP%]   .text-sub-document[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;text-align:left;color:#444;border-bottom:1px solid;cursor:pointer}.wrapper-sub-document[_ngcontent-%COMP%]   .info-sub-document[_ngcontent-%COMP%]   .text-sub-document.status[_ngcontent-%COMP%]{margin-left:12px;text-decoration:unset;color:#2f54eb;border-bottom:unset;cursor:unset}.wrapper-sub-document[_ngcontent-%COMP%]   .info-sub-document[_ngcontent-%COMP%]   .text-sub-document.status.gray[_ngcontent-%COMP%]{color:#88909b}.wrapper-sub-document[_ngcontent-%COMP%]   .info-sub-document[_ngcontent-%COMP%]   .text-sub-document.status.blue[_ngcontent-%COMP%]{color:#2f54eb}.wrapper-sub-document[_ngcontent-%COMP%]   .info-sub-document[_ngcontent-%COMP%]   .text-sub-document.status.red[_ngcontent-%COMP%]{color:#e23428}.wrapper-sub-document[_ngcontent-%COMP%]   .info-sub-document[_ngcontent-%COMP%]   .text-sub-document.status.green[_ngcontent-%COMP%]{color:#00a843}.wrapper-sub-document[_ngcontent-%COMP%]   .menu-sub-document[_ngcontent-%COMP%]{margin-top:2px}']})}function H(rn,Sn){1&rn&&(e.\u0275\u0275elementStart(0,"mat-icon"),e.\u0275\u0275text(1,"close"),e.\u0275\u0275elementEnd())}function Z(rn,Sn){if(1&rn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"mat-icon",23),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("svgIcon",ke.customDocumentListItemIcon),e.\u0275\u0275property("fontSet","material-icons-outlined"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(ke.customDocumentListItemIcon)}}function oe(rn,Sn){1&rn&&e.\u0275\u0275element(0,"mat-icon",25)}function Pe(rn,Sn){if(1&rn&&e.\u0275\u0275template(0,oe,1,0,"mat-icon",24),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",!(null!=ke.documentListItem&&ke.documentListItem.isOpenable))}}function Ie(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",10)(1,"div",26),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("\u0441\u0440\u043e\u043a \u0434\u043e: ",ke.documentListItem.acceptDoc.cardExecuteDate,"")}}function pt(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",27)(1,"span",28),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",ke.getStatusColor),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(ke.documentListItem.acptStatus)}}function Ht(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",16)(1,"span",29),e.\u0275\u0275text(2,"\u041a \u043e\u043f\u043b\u0430\u0442\u0435:"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",ke.documentListItem.cardQty," RUB")}}function Wt(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",30),e.\u0275\u0275listener("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangeEvent(q))})("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionDone(q))}),e.\u0275\u0275elementStart(1,"button",31),e.\u0275\u0275element(2,"span",32),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",!0)("buttonActions",ke.documentListItem.buttonActions)("showDivider",!0)}}function Xe(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",30),e.\u0275\u0275listener("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangeEvent(q))})("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onActionDone(q))}),e.\u0275\u0275elementStart(1,"button",31),e.\u0275\u0275element(2,"span",32),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",!0)("buttonActions",ke.documentListItem.buttonActions)("showDivider",!0)}}function Qe(rn,Sn){if(1&rn&&e.\u0275\u0275element(0,"app-sub-document",39),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("document",ke.documentListItem.acceptDoc)}}function Be(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",40)(1,"div",41),e.\u0275\u0275text(2,"\u0418\u041d\u041d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",42),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(ke.documentListItem.receiverInn)}}function at(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",40)(1,"div",41),e.\u0275\u0275text(2,"\u041a\u041f\u041f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",42),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(ke.documentListItem.receiverKPP)}}function lt(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",40)(1,"div",41),e.\u0275\u0275text(2,"\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",42),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(ke.documentListItem.receiverAccount)}}function Dt(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",40)(1,"div",41),e.\u0275\u0275text(2,"\u0411\u0418\u041a \u0431\u0430\u043d\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",42),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(ke.documentListItem.receiverBankBic)}}function Yt(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",40)(1,"div",41),e.\u0275\u0275text(2,"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u043d\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",42),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(ke.documentListItem.receiverBankName)}}function Tt(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",33)(1,"div",34),e.\u0275\u0275element(2,"app-button-actions",35),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Qe,1,1,"app-sub-document",36),e.\u0275\u0275elementStart(4,"div",37),e.\u0275\u0275template(5,Be,5,1,"div",38),e.\u0275\u0275template(6,at,5,1,"div",38),e.\u0275\u0275template(7,lt,5,1,"div",38),e.\u0275\u0275template(8,Dt,5,1,"div",38),e.\u0275\u0275template(9,Yt,5,1,"div",38),e.\u0275\u0275elementEnd()()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("docName","request_accept_no_accept")("buttons",ke.documentListItem.buttonActions)("inSelectMenu",!0)("isButtonsRow",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ke.documentListItem.acceptDoc?null:ke.documentListItem.acceptDoc.id),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",ke.documentListItem.receiverInn),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ke.documentListItem.receiverKPP),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ke.documentListItem.receiverAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ke.documentListItem.receiverBankBic),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ke.documentListItem.receiverBankName)}}(0,n.gn)([(0,i.SQ)()],U.prototype,"lang",void 0);const ot=function(rn,Sn){return{last:rn,open:Sn}},Gt=function(){return{clickable:!0}},wt=function(rn){return{hide:rn}},Ze=function(rn){return{"ellipsis-cut":rn}};class Ut{constructor(){this.rightBlockVerticalPositionFlex="space-between",this.oneLineDescriptionWithEllipsis=!1,this.actionDone=new e.EventEmitter,this.returnData=new e.EventEmitter,this.changeEvent=new e.EventEmitter}openDeclineReason(Sn){Sn.isOpen=!Sn.isOpen}get actionsHide(){return 1===this.documentListItem?.actions?.length&&"view"===this.documentListItem?.actions[0]}get getStatusColor(){return new Map([["\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435","blue"],["\u041d\u0435 \u0430\u0446\u0435\u043f\u0442\u043e\u0432\u0430\u043d\u043e","gray"],["\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e","green"],["\u041e\u0442\u043a\u0430\u0437\u0430\u043d\u043e","red"]]).get(this.documentListItem?.acptStatus)||"gray"}isShowStatus(Sn){return Sn&&Sn.acptStatus&&"02"===Sn.opCode&&"1S"===Sn.cardType}onActionDone(Sn){this.actionDone.emit(Sn)}onActionData(Sn){this.returnData.emit(Sn)}onChangeEvent(Sn){this.changeEvent.emit({...Sn,document:this.documentListItem})}static#e=this.\u0275fac=function(ke){return new(ke||Ut)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ut,selectors:[["app-alt-document-list-group-item"]],inputs:{documentListItem:"documentListItem",isLastItem:"isLastItem",customDocumentListItemIcon:"customDocumentListItemIcon",rightBlockVerticalPositionFlex:"rightBlockVerticalPositionFlex",oneLineDescriptionWithEllipsis:"oneLineDescriptionWithEllipsis",listType:"listType"},outputs:{actionDone:"actionDone",returnData:"returnData",changeEvent:"changeEvent"},decls:34,vars:35,consts:[["data-qa","1680266916",1,"alt-document-list-item",3,"ngClass"],["data-qa","1680266927",1,"alt-document-list-item-main",3,"ngClass","click"],["data-qa","1680266930",1,"list-item-main__left"],[1,"dot",3,"ngClass"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["defaultIconTemplate",""],["data-qa","1680266934",1,"list-item-main__center"],[1,"wrapper-info","document-tags"],["class","info-block",4,"ngIf"],[1,"info-block"],[1,"text-info-block"],[1,"text-title"],[1,"text-description",3,"ngClass"],["data-qa","1680266939",1,"list-item-main__right"],[1,"doc-info"],[1,"doc-info-amount"],["class","doc-info-status",4,"ngIf","ngIfElse"],["cardQty",""],[1,"doc-menu",3,"ngClass"],["data-qa","1680266945",3,"icon","buttonActions","showDivider","changeEvent","actionDone",4,"ngIf"],[1,"doc-menu-media",3,"ngClass"],["class","alt-document-list-item-group-open-content",4,"ngIf"],[3,"fontSet","svgIcon"],["svgIcon","file-new",4,"ngIf"],["svgIcon","file-new"],[1,"text-info-block","urgent"],[1,"doc-info-status"],[1,"doc-info-amount",3,"ngClass"],[1,"doc-info-amount","gray"],["data-qa","1680266945",3,"icon","buttonActions","showDivider","changeEvent","actionDone"],[1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"],[1,"alt-document-list-item-group-open-content"],[1,"action-wrapper"],[3,"docName","buttons","inSelectMenu","isButtonsRow"],[3,"document",4,"ngIf"],[1,"wrapper-item-group-open-content"],["class","wrapper-value-group-open-content",4,"ngIf"],[3,"document"],[1,"wrapper-value-group-open-content"],[1,"text-list-group-open-content","mr12","w160"],[1,"text-list-group-open-content"]],template:function(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return ge.openDeclineReason(ge.documentListItem)}),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275template(4,H,2,0,"mat-icon",4),e.\u0275\u0275template(5,Z,3,3,"ng-container",5),e.\u0275\u0275template(6,Pe,1,1,"ng-template",null,6,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",7)(9,"div",8),e.\u0275\u0275template(10,Ie,3,1,"div",9),e.\u0275\u0275elementStart(11,"div",10)(12,"div",11),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",10)(15,"div",11),e.\u0275\u0275text(16),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(17,"div",12),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",13),e.\u0275\u0275text(20),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"div",14)(22,"div",15)(23,"div",16),e.\u0275\u0275text(24),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(25,pt,3,2,"div",17),e.\u0275\u0275template(26,Ht,4,1,"ng-template",null,18,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(28,"div",19),e.\u0275\u0275template(29,Wt,3,3,"app-menu-select",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(30,"div"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(31,"div",21),e.\u0275\u0275template(32,Xe,3,3,"app-menu-select",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(33,Tt,10,10,"div",22),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275reference(7),J=e.\u0275\u0275reference(27);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(23,ot,ge.isLastItem,ge.documentListItem.isOpen)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction0(26,Gt)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(27,wt,"0"===ge.documentListItem.unread)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentListItem?null:ge.documentListItem.isOpenable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.customDocumentListItemIcon)("ngIfElse",q),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",ge.documentListItem.acceptDoc),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c: ",ge.documentListItem.paymentPriority,""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(null==ge.documentListItem.acc?null:ge.documentListItem.acc.accName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(ge.documentListItem.receiverName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(29,Ze,!(null!=ge.documentListItem&&ge.documentListItem.isOpen))),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" \u2116 ",ge.documentListItem.docNumber," ",ge.documentListItem.paymentPurpose," "),e.\u0275\u0275advance(2),e.\u0275\u0275styleProp("justify-content",ge.rightBlockVerticalPositionFlex),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",ge.documentListItem.debetAmount," RUB"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.isShowStatus(ge.documentListItem))("ngIfElse",J),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(31,wt,ge.actionsHide)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.documentListItem.actions.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(33,wt,ge.actionsHide)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.documentListItem.actions.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentListItem?null:ge.documentListItem.isOpen)}},dependencies:[pe.n,d.mk,d.O5,h.Hw,l.r,U],styles:['@charset "UTF-8";.date-row[_ngcontent-%COMP%]{padding:12px 20px;display:flex;align-items:center;background:#f1f2f2}.date-row[_ngcontent-%COMP%]   .text-row[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#88909b;font-family:Open Sans}.alt-document-list-item[_ngcontent-%COMP%]{display:flex;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;flex-direction:column;border-top:unset}@media screen and (min-width: 375px) and (max-width: 768px){.alt-document-list-item[_ngcontent-%COMP%]{max-width:100%;display:flex;flex-direction:initial;justify-content:space-between;flex-wrap:wrap;position:relative}.alt-document-list-item-main[_ngcontent-%COMP%]{flex-direction:column-reverse;max-width:90%;row-gap:16px}}.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu-media[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu-media[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column}.alt-document-list-item[_ngcontent-%COMP%]   .doc-menu-media.with-linked[_ngcontent-%COMP%]{position:absolute;top:38px;right:0}}.alt-document-list-item.last[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.alt-document-list-item-main[_ngcontent-%COMP%]{display:flex;padding:20px}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]{padding:16px 0}}.alt-document-list-item-main.clickable[_ngcontent-%COMP%]{cursor:pointer}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;flex-direction:column;row-gap:16px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#88909b}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]{display:none}}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{background:#2f54eb;width:6px;height:6px;border-radius:50%;margin:8px 8px 16px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]   .dot.hide[_ngcontent-%COMP%]{background:transparent}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:calc(80% - 94px);margin-left:16px;row-gap:16px;justify-content:center}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]{margin-left:0;width:100%}}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-title[_ngcontent-%COMP%]{color:#080708}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-description[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-description.ellipsis-cut[_ngcontent-%COMP%]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]{display:flex;min-width:25%;justify-content:flex-end;align-items:center;margin-left:auto}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]{justify-content:flex-start;margin-left:0}}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-right:10px;row-gap:8px;justify-content:center}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info[_ngcontent-%COMP%]{flex-direction:row;column-gap:8px;row-gap:0}}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status[_ngcontent-%COMP%]{color:#88909b;text-align:end}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.gray[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.blue[_ngcontent-%COMP%]{color:#2f54eb}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.red[_ngcontent-%COMP%]{color:#e23428}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.green[_ngcontent-%COMP%]{color:#00a843}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-date[_ngcontent-%COMP%], .alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-amount[_ngcontent-%COMP%]{font-size:14px;color:#444;text-align:right}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-amount.gray[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-amount.blue[_ngcontent-%COMP%]{color:#2f54eb}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-amount.red[_ngcontent-%COMP%]{color:#e23428}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-amount.green[_ngcontent-%COMP%]{color:#00a843}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-menu[_ngcontent-%COMP%]{font-size:14px;min-width:40px;display:flex;align-items:center;padding-top:5px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-menu.hide[_ngcontent-%COMP%]   .my-reference-menu-btn[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-menu[_ngcontent-%COMP%]{display:none;min-width:25px}}.alt-document-list-item-additional[_ngcontent-%COMP%]{font-size:14px;color:#e23428;padding:4px 20px 12px 60px;word-break:normal;overflow-wrap:anywhere}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]{padding:0 60px 20px}@media screen and (max-width: 768px){.alt-document-list-item-group-open-content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]{margin-left:-15px}@media screen and (max-width: 768px){.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]{display:none}}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]{padding:17px 5px;cursor:pointer;display:flex;align-items:center;margin-right:40px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:20px;color:#88909b;font-size:18px;margin-right:10px;display:flex;justify-content:center;align-items:center}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]   .description-action[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#88909b}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%], .alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]:hover   .description-action[_ngcontent-%COMP%]{color:#2f54eb}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]{margin-top:12px;display:flex;flex-direction:column}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]{display:flex;margin-bottom:12px}@media screen and (max-width: 430px){.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]{display:inline}}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]   .text-list-group-open-content[_ngcontent-%COMP%]{font-family:Open Sans;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;text-align:left;color:#444;min-width:160px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]   .text-list-group-open-content.mr12[_ngcontent-%COMP%]{margin-right:12px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]   .text-list-group-open-content.w160[_ngcontent-%COMP%]{width:160px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .text-group-open-content[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#444}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]:first-of-type{margin-top:0}.wrapper-info[_ngcontent-%COMP%]{padding:0;display:flex;align-items:center}.wrapper-info.document-tags[_ngcontent-%COMP%]{white-space:nowrap;overflow-x:hidden}.wrapper-info[_ngcontent-%COMP%]   .info-block[_ngcontent-%COMP%]{margin-right:8px;padding:4px 8px;border-radius:4px;height:22px;display:flex;align-items:center;justify-content:center;background:#f1f2f2}.wrapper-info[_ngcontent-%COMP%]   .info-block[_ngcontent-%COMP%]   .text-info-block[_ngcontent-%COMP%]{text-transform:uppercase;font-size:10px;font-weight:700;line-height:14px;color:#2f54eb}.wrapper-info[_ngcontent-%COMP%]   .info-block[_ngcontent-%COMP%]   .text-info-block.urgent[_ngcontent-%COMP%]{color:#e23428}']})}function vn(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-alt-document-list-group-item",6),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onActionDone(q))})("returnData",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onActionData(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementEnd()}if(2&rn){const ke=Sn.$implicit,ge=Sn.last,q=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("documentListItem",ke)("isLastItem",ge&&+(null==q.currentPage?null:q.currentPage.number)+1==+(null==q.currentPage?null:q.currentPage.total))("customDocumentListItemIcon",q.customDocumentListItemIcon)("rightBlockVerticalPositionFlex",q.rightBlockVerticalPositionFlex)("oneLineDescriptionWithEllipsis",q.oneLineDescriptionWithEllipsis)}}function xn(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"div",4),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"date"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,vn,1,5,"app-alt-document-list-group-item",5),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",ke.checkIsToday(null==ke.documentListItem?null:ke.documentListItem.date)?"\u0421\u0435\u0433\u043e\u0434\u043d\u044f":e.\u0275\u0275pipeBind2(4,2,null==ke.documentListItem?null:ke.documentListItem.date,"dd.MM.yyyy")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",ke.documentListItem.docs)}}function bn(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-alt-document-list-group-item",9),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onActionDone(q))})("returnData",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onActionData(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementEnd()}if(2&rn){const ke=Sn.$implicit,ge=Sn.last,q=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("documentListItem",ke)("listType",q.listType)("isLastItem",ge&&+(null==q.currentPage?null:q.currentPage.number)+1==+(null==q.currentPage?null:q.currentPage.total))("customDocumentListItemIcon",q.customDocumentListItemIcon)("rightBlockVerticalPositionFlex",q.rightBlockVerticalPositionFlex)("oneLineDescriptionWithEllipsis",q.oneLineDescriptionWithEllipsis)("listType",q.listType)}}function hn(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",7)(1,"div",3)(2,"div",4),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"date"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,bn,1,7,"app-alt-document-list-group-item",8),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",ke.listType),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",ke.checkIsToday(null==ke.documentListItem?null:ke.documentListItem.docDate)?"\u0421\u0435\u0433\u043e\u0434\u043d\u044f":e.\u0275\u0275pipeBind2(4,3,null==ke.documentListItem?null:ke.documentListItem.docDate,"dd.MM.yyyy")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",ke.documentListItem.dateDocs)}}(0,n.gn)([(0,i.SQ)()],Ut.prototype,"lang",void 0);class pn{constructor(){this.rightBlockVerticalPositionFlex="space-between",this.oneLineDescriptionWithEllipsis=!1,this.showMoreVisible=!0,this.showTopSize=!0,this.showBottomSize=!1,this.scrollAfterNavigate=!1,this.isLoading=!1,this.noDocumentsTitle="Empty orders",this.isGroupDocuments=!1,this.actionDone=new e.EventEmitter,this.returnData=new e.EventEmitter,this.changeEvent=new e.EventEmitter,this.changePaginationEmit=new e.EventEmitter,this.testBtnActions=["view","print","copy"]}openDeclineReason(Sn){Sn.isOpen=!Sn.isOpen}get actionsHide(){return 1===this.documentListItem?.actions?.length&&"view"===this.documentListItem?.actions[0]}get isCardIndex(){return["card-index-all","card-index-commission","card-index-acceptance"].includes(this.listType)}onActionDone(Sn){this.actionDone.emit(Sn)}onActionData(Sn){this.returnData.emit(Sn)}mockActions(){return[{name:"download_signed",matIcon:"save_alt",description:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0441 \u042d\u0426\u041f"},{name:"download",matIcon:"save_alt",description:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0431\u0435\u0437 \u042d\u0426\u041f"},{name:"print",matIcon:"local_printshop",matStyleOutlined:!0,description:"\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c"},{name:"repeat",matIcon:"replay",description:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e"},{name:"delete",matIcon:"delete_forever",matStyleOutlined:!0,description:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c"}]}checkIsToday(Sn){return ct()(new Date).format("DD.MM.yyyy")===ct()(Sn).format("DD.MM.yyyy")}onChangeEvent(Sn){this.changeEvent.emit({...Sn,document:this.documentListItem})}static#e=this.\u0275fac=function(ke){return new(ke||pn)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:pn,selectors:[["app-alt-document-list-group"]],inputs:{documentListItem:"documentListItem",isLastItem:"isLastItem",customDocumentListItemIcon:"customDocumentListItemIcon",rightBlockVerticalPositionFlex:"rightBlockVerticalPositionFlex",oneLineDescriptionWithEllipsis:"oneLineDescriptionWithEllipsis",documentList:"documentList",showMoreVisible:"showMoreVisible",showTopSize:"showTopSize",showBottomSize:"showBottomSize",scrollAfterNavigate:"scrollAfterNavigate",isLoading:"isLoading",sizeList:"sizeList",currentPage:"currentPage",noDocumentsTitle:"noDocumentsTitle",isGroupDocuments:"isGroupDocuments",listType:"listType"},outputs:{actionDone:"actionDone",returnData:"returnData",changeEvent:"changeEvent",changePaginationEmit:"changePaginationEmit"},decls:2,vars:2,consts:[["class","alt-document-list-item-group",4,"ngIf"],["class","alt-document-list-item-group",3,"ngClass",4,"ngIf"],[1,"alt-document-list-item-group"],[1,"date-row"],[1,"text-row"],[3,"documentListItem","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","actionDone","returnData","changeEvent",4,"ngFor","ngForOf"],[3,"documentListItem","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","actionDone","returnData","changeEvent"],[1,"alt-document-list-item-group",3,"ngClass"],[3,"documentListItem","listType","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","actionDone","returnData","changeEvent",4,"ngFor","ngForOf"],[3,"documentListItem","listType","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","actionDone","returnData","changeEvent"]],template:function(ke,ge){1&ke&&(e.\u0275\u0275template(0,xn,6,5,"div",0),e.\u0275\u0275template(1,hn,6,6,"div",1)),2&ke&&(e.\u0275\u0275property("ngIf",!ge.isCardIndex&&(null==ge.documentListItem||null==ge.documentListItem.docs?null:ge.documentListItem.docs.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ge.isCardIndex&&(null==ge.documentListItem?null:ge.documentListItem.dateDocs.length)))},dependencies:[d.mk,d.sg,d.O5,Ut,d.uU],styles:['@charset "UTF-8";.date-row[_ngcontent-%COMP%]{padding:12px 20px;display:flex;align-items:center;background:#F1F2F2}.date-row[_ngcontent-%COMP%]   .text-row[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#88909b;font-family:Open Sans}.alt-document-list-item[_ngcontent-%COMP%]{display:flex;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;flex-direction:column;border-top:1px solid #dedede}.alt-document-list-item.last[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.alt-document-list-item-main[_ngcontent-%COMP%]{display:flex;padding:20px 10px 20px 20px}.alt-document-list-item-main.clickable[_ngcontent-%COMP%]{cursor:pointer}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]{display:flex;align-items:center}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__left[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:calc(80% - 68px);margin-left:16px;row-gap:8px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-title[_ngcontent-%COMP%]{color:#080708}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-description[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__center[_ngcontent-%COMP%]   .text-description.ellipsis-cut[_ngcontent-%COMP%]{max-width:786px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]{display:flex;min-width:25%;justify-content:flex-end;align-items:end}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;padding-right:10px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status[_ngcontent-%COMP%]{color:#88909b;text-align:end}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.gray[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.blue[_ngcontent-%COMP%]{color:#2f54eb}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.red[_ngcontent-%COMP%]{color:#e23428}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-status.green[_ngcontent-%COMP%]{color:#00a843}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-date[_ngcontent-%COMP%]{font-size:14px;color:#444;text-align:right}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-amount[_ngcontent-%COMP%]{margin-bottom:8px;font-size:16px;color:#444;text-align:right}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-info-amount.gray[_ngcontent-%COMP%]{color:#88909b}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-menu[_ngcontent-%COMP%]{font-size:14px;min-width:40px;display:flex;align-items:center;padding-top:5px}.alt-document-list-item-main[_ngcontent-%COMP%]   .list-item-main__right[_ngcontent-%COMP%]   .doc-menu.hide[_ngcontent-%COMP%]   .my-reference-menu-btn[_ngcontent-%COMP%]{display:none}.alt-document-list-item-additional[_ngcontent-%COMP%]{font-size:14px;color:#e23428;padding:4px 20px 12px 60px;word-break:normal;overflow-wrap:anywhere}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]{padding:20px 60px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]{padding:17px 5px;cursor:pointer;display:flex;align-items:center;margin-right:40px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:20px;color:#88909b;font-size:18px;margin-right:10px;display:flex;justify-content:center;align-items:center}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]   .description-action[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#88909b}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%], .alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-menu-item-group-open-content[_ngcontent-%COMP%]   .item-action-wrapper[_ngcontent-%COMP%]:hover   .description-action[_ngcontent-%COMP%]{color:#2f54eb}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]{margin-top:12px;display:flex;flex-direction:column}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]{display:flex;margin-bottom:12px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]   .text-list-group-open-content[_ngcontent-%COMP%]{font-family:Open Sans;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;text-align:left;color:#444;min-width:160px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .wrapper-value-group-open-content[_ngcontent-%COMP%]   .text-list-group-open-content.mr12[_ngcontent-%COMP%]{margin-right:12px}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]   .text-group-open-content[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#444}.alt-document-list-item-group-open-content[_ngcontent-%COMP%]   .wrapper-item-group-open-content[_ngcontent-%COMP%]:first-of-type{margin-top:0}.wrapper-info[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-info[_ngcontent-%COMP%]   .info-block[_ngcontent-%COMP%]{margin-right:8px;padding:4px 8px;border-radius:4px;height:22px;display:flex;align-items:center;justify-content:center;background:#F1F2F2}.wrapper-info[_ngcontent-%COMP%]   .info-block[_ngcontent-%COMP%]   .text-info-block[_ngcontent-%COMP%]{text-transform:uppercase;font-size:10px;font-weight:700;line-height:14px;color:#2f54eb}[_nghost-%COMP%]  app-alt-document-list-group-item .alt-document-list-item{border-bottom:1px solid #dedede}[_nghost-%COMP%]  app-alt-document-list-group-item:last-of-type .alt-document-list-item{border-bottom:unset}']})}function In(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",8)(1,"app-metib-paginator-custom",9),e.\u0275\u0275listener("changePaginationEmit",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(J.onChangePaginationEmit(q))}),e.\u0275\u0275elementEnd()()}if(2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("currentPage",null==ke.currentPage?null:ke.currentPage.number)("currentSize",null==ke.currentPage?null:ke.currentPage.size)("currentTotal",null==ke.currentPage?null:ke.currentPage.total)("showSize",ke.showTopSize)("sizeList",ke.sizeList)("scrollAfterNavigate",ke.scrollAfterNavigate)}}function Dn(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-alt-document-list-item",12),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(J.onActionDone(q))})("returnData",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(J.onActionData(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementEnd()}if(2&rn){const ke=Sn.$implicit,ge=Sn.last,q=Sn.index,J=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("documentListItem",ke)("isLastItem",ge&&+(null==J.currentPage?null:J.currentPage.number)+1==+(null==J.currentPage?null:J.currentPage.total))("customDocumentListItemIcon",J.customDocumentListItemIcon)("rightBlockVerticalPositionFlex",J.rightBlockVerticalPositionFlex)("oneLineDescriptionWithEllipsis",J.oneLineDescriptionWithEllipsis),e.\u0275\u0275attribute("data-qa","1680266875"+q)}}function Tn(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275template(1,Dn,1,6,"app-alt-document-list-item",11),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",ke.documentList)}}function mn(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-alt-document-list-group",14),e.\u0275\u0275listener("actionDone",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(J.onActionDone(q))})("returnData",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(J.onActionData(q))})("changeEvent",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(J.onChangeEvent(q))}),e.\u0275\u0275elementEnd()}if(2&rn){const ke=Sn.$implicit,ge=Sn.last,q=Sn.index,J=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("documentListItem",ke)("isLastItem",ge&&+(null==J.currentPage?null:J.currentPage.number)+1==+(null==J.currentPage?null:J.currentPage.total))("customDocumentListItemIcon",J.customDocumentListItemIcon)("rightBlockVerticalPositionFlex",J.rightBlockVerticalPositionFlex)("oneLineDescriptionWithEllipsis",J.oneLineDescriptionWithEllipsis)("listType",J.listType),e.\u0275\u0275attribute("data-qa","1680266875"+q)}}function Yn(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275template(1,mn,1,7,"app-alt-document-list-group",13),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",ke.documentList)}}(0,n.gn)([(0,i.SQ)()],pn.prototype,"lang",void 0);const cn=function(rn){return{"extra-margin":rn}};function Nn(rn,Sn){if(1&rn){const ke=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,In,2,6,"div",4),e.\u0275\u0275template(2,Tn,2,1,"div",5),e.\u0275\u0275template(3,Yn,2,1,"div",5),e.\u0275\u0275elementStart(4,"div",6)(5,"app-metib-paginator-custom",7),e.\u0275\u0275listener("changePaginationEmit",function(q){e.\u0275\u0275restoreView(ke);const J=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(J.onChangePaginationEmit(q))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ke.showTopSize),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ke.isGroupDocuments),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ke.isGroupDocuments),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,cn,+(null==ke.currentPage?null:ke.currentPage.number)+1==+(null==ke.currentPage?null:ke.currentPage.total))),e.\u0275\u0275advance(1),e.\u0275\u0275property("currentPage",null==ke.currentPage?null:ke.currentPage.number)("currentSize",null==ke.currentPage?null:ke.currentPage.size)("currentTotal",null==ke.currentPage?null:ke.currentPage.total)("sizeList",ke.sizeList)("showSize",ke.showBottomSize)("showMoreVisible",ke.showMoreVisible)("scrollAfterNavigate",ke.scrollAfterNavigate)}}function Bt(rn,Sn){if(1&rn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementContainerEnd()),2&rn){const ke=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,ke.noDocumentsTitle,ke.lang))}}function En(rn,Sn){if(1&rn&&(e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275template(1,Bt,3,4,"ng-container",16),e.\u0275\u0275elementEnd()),2&rn){const ke=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ke.isLoading)}}class Wn{constructor(){this.documentList=[],this.showMoreVisible=!0,this.showTopSize=!0,this.showBottomSize=!1,this.scrollAfterNavigate=!1,this.isLoading=!1,this.noDocumentsTitle="Empty orders",this.oneLineDescriptionWithEllipsis=!1,this.isGroupDocuments=!1,this.actionDone=new e.EventEmitter,this.returnData=new e.EventEmitter,this.changeEvent=new e.EventEmitter,this.changePaginationEmit=new e.EventEmitter}onChangePaginationEmit(Sn){this.changePaginationEmit.emit(Sn)}onActionDone(Sn){this.actionDone.emit(Sn)}onActionData(Sn){this.returnData.emit(Sn)}onChangeEvent(Sn){this.changeEvent.emit(Sn)}static#e=this.\u0275fac=function(ke){return new(ke||Wn)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Wn,selectors:[["app-alt-document-list"]],inputs:{documentList:"documentList",showMoreVisible:"showMoreVisible",showTopSize:"showTopSize",showBottomSize:"showBottomSize",scrollAfterNavigate:"scrollAfterNavigate",isLoading:"isLoading",sizeList:"sizeList",currentPage:"currentPage",customDocumentListItemIcon:"customDocumentListItemIcon",rightBlockVerticalPositionFlex:"rightBlockVerticalPositionFlex",noDocumentsTitle:"noDocumentsTitle",oneLineDescriptionWithEllipsis:"oneLineDescriptionWithEllipsis",isGroupDocuments:"isGroupDocuments",listType:"listType"},outputs:{actionDone:"actionDone",returnData:"returnData",changeEvent:"changeEvent",changePaginationEmit:"changePaginationEmit"},decls:5,vars:4,consts:[["data-qa","1680266813",1,"alt-document-list",3,"ngClass"],[4,"ngIf","ngIfElse"],["data-qa","1680266891",3,"hidden"],["emptyDocumentListTpl",""],["class","alt-document-list__top-paginator","data-qa","1680266825",4,"ngIf"],["class","alt-document-list__items","data-qa","1680266829",4,"ngIf"],["data-qa","1680266882",1,"alt-document-list__bottom-paginator",3,"ngClass"],[3,"currentPage","currentSize","currentTotal","sizeList","showSize","showMoreVisible","scrollAfterNavigate","changePaginationEmit"],["data-qa","1680266825",1,"alt-document-list__top-paginator"],[3,"currentPage","currentSize","currentTotal","showSize","sizeList","scrollAfterNavigate","changePaginationEmit"],["data-qa","1680266829",1,"alt-document-list__items"],[3,"documentListItem","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","actionDone","returnData","changeEvent",4,"ngFor","ngForOf"],[3,"documentListItem","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","actionDone","returnData","changeEvent"],[3,"documentListItem","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","listType","actionDone","returnData","changeEvent",4,"ngFor","ngForOf"],[3,"documentListItem","isLastItem","customDocumentListItemIcon","rightBlockVerticalPositionFlex","oneLineDescriptionWithEllipsis","listType","actionDone","returnData","changeEvent"],["data-qa","1680266897",1,"alt-document-list__empty"],[4,"ngIf"]],template:function(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Nn,6,13,"ng-container",1),e.\u0275\u0275element(2,"app-loader",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,En,2,1,"ng-template",null,3,e.\u0275\u0275templateRefExtractor)),2&ke){const q=e.\u0275\u0275reference(4);e.\u0275\u0275property("ngClass",ge.listType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==ge.documentList?null:ge.documentList.length)("ngIfElse",q),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!ge.isLoading)}},dependencies:[d.mk,d.sg,d.O5,a.n,u.R,we,pn,i.X$],styles:['@charset "UTF-8";.alt-document-list[_ngcontent-%COMP%]{position:relative}.alt-document-list__top-paginator[_ngcontent-%COMP%]{margin-bottom:32px}.alt-document-list__bottom-paginator.extra-margin[_ngcontent-%COMP%]{margin-top:24px}.alt-document-list__empty[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:18px;color:#88909b;text-align:center;padding-top:100px;padding-bottom:68px}@media screen and (max-width: 768px){.alt-document-list__empty[_ngcontent-%COMP%]{padding-top:85px;padding-bottom:85px}}']})}(0,n.gn)([(0,i.SQ)()],Wn.prototype,"lang",void 0)},89258:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>G});var n=t(97582),e=t(16611),i=t(15439),d=t.n(i),a=t(59541),u=t(8226),h=t(61135),l=t(77579),m=t(78372),x=t(39300),O=t(82722),L=t(95698),w=t(54004),B=t(86349),_=t(94650),y=t(44509),$=t(98504),C=t(94611),T=t(15644),j=t(44180),I=t(39486),F=t(11260),z=t(36895),X=t(93379);function p(ce,xe){if(1&ce&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"div",10),_.\u0275\u0275text(2),_.\u0275\u0275pipe(3,"appCurrency"),_.\u0275\u0275elementStart(4,"span",11),_.\u0275\u0275text(5),_.\u0275\u0275pipe(6,"currencySymbol"),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementContainerEnd()),2&ce){const we=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind1(3,2,we.headerValue.openingBalance)," "),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind1(6,4,we.activeType))}}function P(ce,xe){if(1&ce&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"div",10),_.\u0275\u0275text(2),_.\u0275\u0275pipe(3,"appCurrency"),_.\u0275\u0275pipe(4,"currencySymbol"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd()),2&ce){const we=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate2(" + ",_.\u0275\u0275pipeBind1(3,2,we.headerValue.amountCredit)," ",_.\u0275\u0275pipeBind1(4,4,we.activeType)," ")}}function E(ce,xe){if(1&ce&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"div",10),_.\u0275\u0275text(2),_.\u0275\u0275pipe(3,"appCurrency"),_.\u0275\u0275pipe(4,"currencySymbol"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd()),2&ce){const we=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate2(" - ",_.\u0275\u0275pipeBind1(3,2,we.headerValue.amountDebit)," ",_.\u0275\u0275pipeBind1(4,4,we.activeType)," ")}}function R(ce,xe){if(1&ce&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"div",10),_.\u0275\u0275text(2),_.\u0275\u0275pipe(3,"appCurrency"),_.\u0275\u0275elementStart(4,"span",11),_.\u0275\u0275text(5),_.\u0275\u0275pipe(6,"currencySymbol"),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementContainerEnd()),2&ce){const we=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind1(3,2,we.headerValue.closingBalance)," "),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind1(6,4,we.activeType))}}function ne(ce,xe){if(1&ce&&_.\u0275\u0275element(0,"canvas",12),2&ce){const we=_.\u0275\u0275nextContext();_.\u0275\u0275property("datasets",we.chartData)("labels",we.chartLabels)("legend",!1)("options",we.chartOptions)("type","bar")}}class G{constructor(xe,we,Ge,ct,pe,Ce,U){this.translation=xe,this.currencySymbolPipe=we,this.currencyPipe=Ge,this.analyticsService=ct,this.configUtilService=pe,this.route=Ce,this.productsService=U,this.multiCurr=!1,this.chartLoader=!1,this.noChartData=!1,this.headerLoader=!1,this.cacheChart=!1,this._chartProducts=new h.X(null),this.chartProducts$=this._chartProducts.asObservable(),this.destroy$=new l.x,this.chartOptions={plugins:{legend:{display:!1,labels:{font:{family:"SourceSansPro"}}},tooltip:{enabled:!1,mode:"index",axis:"y",position:"nearest",external:this.showCustomTooltip.bind(this)}},scales:{x:{ticks:{padding:5},grid:{display:!1}},y:{beginAtZero:!0,ticks:{padding:23},grid:{drawBorder:!1}}},animation:{duration:1e3,easing:"easeOutQuart"}},this.chartData=[{data:[1]},{data:[2]}],this.chartLabels=[]}ngOnInit(){d().locale("ru"),this.route.url.subscribe(xe=>{this.productPage=!!xe.find(we=>we.path.includes("product")||this.productsService.isSingleAccount$.value)}),this.chartProducts$.pipe((0,m.b)(100),(0,x.h)(xe=>null!==xe),(0,O.R)(this.destroy$)).subscribe(xe=>this.getDynamicHeaderData(xe))}ngOnChanges(xe){if(xe.updateChartProducts){if(xe.updateChartProducts.firstChange&&0===xe.updateChartProducts?.currentValue?.length)return;(xe.updateChartProducts.previousValue&&xe.updateChartProducts.currentValue&&this.productPage||!B.Xy(xe.updateChartProducts.currentValue,xe.updateChartProducts.previousValue))&&this._chartProducts.next(this.updateChartProducts)}else xe.datesPeriod&&xe.datesPeriod.previousValue&&xe.datesPeriod.currentValue&&this._chartProducts.next(this.updateChartProducts)}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}updateChart(xe){let we;this.noChartData=!1,this.chartLoader=!0,this.numberOfSubtractDays()<=10?(we=41,this.chartOptions.scales.x={...this.chartOptions.scales.x,ticks:{padding:5}}):this.numberOfSubtractDays()<=31&&this.numberOfSubtractDays()>11?(we=12,this.chartOptions.scales.x={...this.chartOptions.scales.x,ticks:{padding:3}}):(this.numberOfSubtractDays()<=180&&this.numberOfSubtractDays(),we=12,this.chartOptions.scales.x={...this.chartOptions.scales.x,ticks:{padding:3}}),this.getChartFinanceDataV2(xe,we)}showCustomTooltip(xe){let we=document.getElementById("chartjs-tooltip");if(we||(we=document.createElement("div"),we.id="chartjs-tooltip",we.innerHTML="<div></div>",document.body.appendChild(we)),0===xe.tooltip.opacity)return void(we.style.opacity="0");if(we.classList.remove("above","below","no-transform"),we.classList.add(xe.tooltip.yAlign?xe.tooltip.yAlign:"no-transform"),xe.tooltip.body){const pe=xe.tooltip.body.map(function Ge(pe){return pe.lines}),Ce=we.querySelector("div"),U=this.currentChartData[xe.tooltip.title[0]];Ce.innerHTML=`\n            <div class='chart-tooltip'>\n              <div class='chart-tooltip__title-flex'>\n                ${this.translation.translate("Income")}\n                <div>${xe.tooltip.title}</div>\n              </div>\n              <div class='chart-tooltip__value chart-inc'>+ ${this.currencyPipe.transform(pe[0][0].split(":")[1])}\n${this.currencySymbolPipe.transform(this.activeType)?this.currencySymbolPipe.transform(this.activeType):u.V2.RUR}</div>\n              <div class='chart-tooltip__title'>${this.translation.translate("Outcome")}</div>\n              <div class='chart-tooltip__value chart-out'>- ${this.currencyPipe.transform(pe[1][0].split(":")[1])}\n${this.currencySymbolPipe.transform(this.activeType)?this.currencySymbolPipe.transform(this.activeType):u.V2.RUR}</div>\n              <div class='chart-tooltip__title'>${this.translation.translate("Balance")}</div>\n              <div class='chart-tooltip__value'>${this.currencyPipe.transform(U.summary.closingBalance)}\n${this.currencySymbolPipe.transform(this.activeType)?this.currencySymbolPipe.transform(this.activeType):u.V2.RUR}</div>\n            </div>\n          `}const ct=this.baseChart.chart.canvas.getBoundingClientRect();we.style.right="inherit",we.style.left="inherit",we.style.opacity="1",we.style.position="absolute",ct.left+window.scrollX+xe.tooltip.caretX+5+300>window.innerWidth?we.style.right="0px":we.style.left=ct.left+window.scrollX+xe.tooltip.caretX+5+"px",we.style.top=ct.top+window.scrollY+xe.tooltip.caretY+"px",we.style.padding=xe.tooltip.yPadding+"px "+xe.tooltip.xPadding+"px",we.style.pointerEvents="none"}numberOfSubtractDays(){const xe=d()(this.datesPeriod.endDate),we=d()(this.datesPeriod.beginDate);return xe.diff(we,"days")}getDynamicHeaderData(xe){let we;this.headerLoader=!0,this.chartOpen=!1,this.noChartData=!0,we=xe&&xe.length>0?{ids:xe.toString(),from:this.datesPeriod.beginDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.beginDate,""):void 0,to:this.datesPeriod.endDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.endDate,""):void 0}:{from:this.datesPeriod.beginDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.beginDate,""):void 0,to:this.datesPeriod.endDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.endDate,""):void 0},this.analyticsService.getDynamicHeaderData(we).pipe((0,L.q)(1)).subscribe(Ge=>{this.headerValue={...Ge},!we.ids&&this.multiCurr&&(this.headerValue.amountCredit=Ge.amountCreditNat,this.headerValue.amountDebit=Ge.amountDebetNat,this.headerValue.openingBalance=Ge.openingBalanceNat,this.headerValue.closingBalance=Ge.closingBalanceNat),this.headerLoader=!1,this.cacheChart=!0,setTimeout(()=>this.noChartData=!1,100)})}getChartFinanceDataV2(xe,we){let Ge;Ge=this.numberOfSubtractDays()<=31?"day":this.numberOfSubtractDays()<=182?"week":"month",this.analyticsService.getChartFinanceDataV2(xe&&xe.length>0?{ids:xe.toString(),from:this.datesPeriod.beginDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.beginDate,""):void 0,to:this.datesPeriod.endDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.endDate,""):void 0,term:Ge}:{from:this.datesPeriod.beginDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.beginDate,""):void 0,to:this.datesPeriod.endDate?this.configUtilService.revertFormatDateDMY(this.datesPeriod.endDate,""):void 0,term:Ge}).pipe((0,w.U)(ct=>ct.entries)).subscribe(ct=>{let pe,Ce;pe=this.multiCurr?ct.map(U=>(U.summary&&(U.summary.amountCredit=U.summary.amountCreditNat,U.summary.amountDebit=U.summary.amountDebetNat,U.summary.openingBalance=U.summary.openingBalanceNat,U.summary.closingBalance=U.summary.closingBalanceNat),U)):Array.isArray(ct)?[...ct]:[ct],"day"===Ge?(pe.forEach(U=>U.date=this.formateDate(this.configUtilService.formatDateString(U.start))),Ce=pe.map(U=>U.date),this.currentChartData=B.Xc(B.vM(pe,"date"),U=>U[0])):"week"===Ge?(pe.forEach(U=>{const H=this.formateDate(this.configUtilService.formatDateString(U.start)),Z=this.formateDate(this.configUtilService.formatDateString(U.end));U.date=`${H} - ${Z}`}),Ce=pe.map(U=>U.date),this.currentChartData=B.Xc(B.vM(pe,"date"),U=>U[0])):(Ce=pe.map(U=>U.caption),this.currentChartData=B.Xc(B.vM(pe,"caption"),U=>U[0])),this.chartLabels=Ce,setTimeout(()=>{this.chartData=[{data:pe.map(U=>parseFloat(U.summary.amountCredit)),label:this.translation.translate("Income"),backgroundColor:"rgba(40, 178, 109, 0.5)",hoverBackgroundColor:"rgba(40, 178, 109, 1)",borderRadius:5,borderSkipped:!1,barThickness:we},{data:pe.map(U=>parseFloat(U.summary.amountDebit)),label:this.translation.translate("Outcome"),backgroundColor:"rgba(207, 55, 55, 0.5)",hoverBackgroundColor:"rgba(207, 55, 55, 1)",borderRadius:5,borderSkipped:!1,barThickness:we}],this.chartLoader=!1},500)})}updateChartClick(){this.chartOpen&&this.cacheChart&&(this.updateChart(this.updateChartProducts),this.cacheChart=!1)}formateDate(xe){const we=xe.split(".");return we[2]=we[2].slice(2),we.join(".")}static#e=this.\u0275fac=function(we){return new(we||G)(_.\u0275\u0275directiveInject(e.D7),_.\u0275\u0275directiveInject(y.G),_.\u0275\u0275directiveInject($.H),_.\u0275\u0275directiveInject(C.y),_.\u0275\u0275directiveInject(T.Pj),_.\u0275\u0275directiveInject(j.gz),_.\u0275\u0275directiveInject(I.su))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:G,selectors:[["app-analytics"]],viewQuery:function(we,Ge){if(1&we&&_.\u0275\u0275viewQuery(a.jh,5),2&we){let ct;_.\u0275\u0275queryRefresh(ct=_.\u0275\u0275loadQuery())&&(Ge.baseChart=ct.first)}},inputs:{activeType:"activeType",datesPeriod:"datesPeriod",updateChartProducts:"updateChartProducts",multiCurr:"multiCurr"},features:[_.\u0275\u0275NgOnChangesFeature],decls:27,vars:34,consts:[["data-qa","1657789296496",1,"last-operations-content","dynamics"],["data-qa","1657789303588",1,"last-operations-content__dynamics"],[1,"last-operations-content__block"],[1,"last-operations-content__block__title"],[4,"appSkeleton","appSkeletonHeight","appSkeletonClassName"],["data-qa","1657789317943",1,"last-operations-content__icon",3,"click"],["icon","graph","svgClass","last-operations-content__icon__svg"],[2,"position","relative",3,"hidden"],[1,"last-operations-content","dynamics","chart"],["baseChart","",3,"datasets","labels","legend","options","type",4,"ngIf"],[1,"last-operations-content__block__value"],[1,"last-operations-content__block__value--symbol"],["baseChart","",3,"datasets","labels","legend","options","type"]],template:function(we,Ge){1&we&&(_.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),_.\u0275\u0275text(4),_.\u0275\u0275pipe(5,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(6,p,7,6,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"div",2)(8,"div",3),_.\u0275\u0275text(9),_.\u0275\u0275pipe(10,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(11,P,5,6,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(12,"div",2)(13,"div",3),_.\u0275\u0275text(14),_.\u0275\u0275pipe(15,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(16,E,5,6,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(17,"div",2)(18,"div",3),_.\u0275\u0275text(19),_.\u0275\u0275pipe(20,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(21,R,7,6,"ng-container",4),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(22,"div",5),_.\u0275\u0275listener("click",function(){return Ge.chartOpen=!Ge.chartOpen,Ge.updateChartClick()}),_.\u0275\u0275element(23,"app-svg-icon",6),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(24,"div",7)(25,"div",8),_.\u0275\u0275template(26,ne,1,5,"canvas",9),_.\u0275\u0275elementEnd()()),2&we&&(_.\u0275\u0275advance(4),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind2(5,22,"For start period",Ge.lang)),_.\u0275\u0275advance(2),_.\u0275\u0275property("appSkeleton",Ge.headerLoader||!Ge.headerValue)("appSkeletonHeight","40px")("appSkeletonClassName","last-operations-content__block__value"),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind2(10,25,"Income",Ge.lang)),_.\u0275\u0275advance(2),_.\u0275\u0275property("appSkeleton",Ge.headerLoader||!Ge.headerValue)("appSkeletonHeight","40px")("appSkeletonClassName","last-operations-content__block__value"),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind2(15,28,"Outcome",Ge.lang)),_.\u0275\u0275advance(2),_.\u0275\u0275property("appSkeleton",Ge.headerLoader||!Ge.headerValue)("appSkeletonHeight","40px")("appSkeletonClassName","last-operations-content__block__value"),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind2(20,31,"For end period",Ge.lang)),_.\u0275\u0275advance(2),_.\u0275\u0275property("appSkeleton",Ge.headerLoader||!Ge.headerValue)("appSkeletonHeight","40px")("appSkeletonClassName","last-operations-content__block__value"),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("chart__no-chart",Ge.noChartData),_.\u0275\u0275advance(2),_.\u0275\u0275property("hidden",!Ge.chartOpen||Ge.noChartData),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("chart__loader",Ge.chartLoader),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!Ge.chartLoader))},dependencies:[F.b,z.O5,a.jh,X.e,e.X$,y.G,$.H],styles:['@charset "UTF-8";.chart{height:auto!important;margin-top:-50px!important;box-shadow:0 15px 40px #00000021!important;border-top:1px solid #dedede;padding:40px!important}.chart-inc{color:#28b26d}.chart-out{color:#d9291e}.chart-tooltip{padding:15px;width:258px;border-radius:5px;box-sizing:border-box;background-color:#fff;box-shadow:0 15px 40px #00000021;font-weight:400}.chart-tooltip__date,.chart-tooltip__title{color:#88909b;font-size:15px}.chart-tooltip__value{font-size:19px;margin-bottom:15px;margin-top:8px}.chart-tooltip__title-flex{display:flex;justify-content:space-between;color:#88909b;font-size:15px}.chart__loader{height:80vh!important}.chart__no-chart{opacity:.5;pointer-events:none;cursor:auto!important}.last-operations-container .last-operations-content{margin-top:24px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 32px 20px;position:relative}.last-operations-container .last-operations-content.dynamics{display:flex;flex-direction:row;box-sizing:border-box;height:100px;margin-bottom:50px;padding-left:32px;padding-bottom:0;padding-right:0}.last-operations-container .last-operations-content.dynamics:last-child{width:100%}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics{display:flex;flex-direction:row;height:100%;width:100%}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:25%}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block:nth-child(2) .last-operations-content__block__value{color:#28b26d}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block:nth-child(3) .last-operations-content__block__value{color:#d9291e}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block__title{font-family:Open Sans;font-size:18px;font-weight:400;color:#88909b}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block__value{font-family:Source Sans Pro;font-size:25px;font-weight:400;letter-spacing:.03em;color:#080708;text-align:left;padding-top:5px}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block__value--symbol{color:#88909b}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block__value .decimal{font-size:.8em;margin-left:-5px}.last-operations-container .last-operations-content.dynamics .last-operations-content__dynamics .last-operations-content__block__value .currency{font-size:.8em;margin-left:5px}.last-operations-container .last-operations-content.dynamics .last-operations-content__icon{width:10%;margin-left:auto;margin-right:0;border-left:1px solid #dedede;display:flex;align-items:center;justify-content:center;cursor:pointer}.last-operations-container .last-operations-content.dynamics .last-operations-content__icon .last-operations-content__icon__svg{width:36px;height:36px;fill:#2f54eb}\n'],encapsulation:2})}(0,n.gn)([(0,e.SQ)()],G.prototype,"lang",void 0)},94611:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>a});var n=t(97600),e=t(54004),i=t(94650),d=t(3751);let a=(()=>{class u{constructor(l){this.apiService=l}updateBorderRadiusChart(l){n.kL.registry.elements.items.bar.prototype.draw=function(){const m=this._chart.ctx,x=this._view;let O,L,w,B,_,y,$,C=x.borderWidth;const T=l;if(x.horizontal?(O=x.base,L=x.x,w=x.y-x.height/2,B=x.y+x.height/2,_=L>O?1:-1,y=1,$=x.borderSkipped||"left"):(O=x.x-x.width/2,L=x.x+x.width/2,w=x.y,B=x.base,_=1,y=B>w?1:-1,$=x.borderSkipped||"bottom"),C){const p=Math.min(Math.abs(O-L),Math.abs(w-B));C=C>p?p:C;const P=C/2,E=O+("left"!==$?P*_:0),R=L+("right"!==$?-P*_:0),ne=w+("top"!==$?P*y:0),G=B+("bottom"!==$?-P*y:0);E!==R&&(w=ne,B=G),ne!==G&&(O=E,L=R)}m.beginPath(),m.fillStyle=x.backgroundColor,m.strokeStyle=x.borderColor,m.lineWidth=C;const j=[[O,B],[O,w],[L,w],[L,B]];let F=["bottom","left","top","right"].indexOf($,0);function z(p){return j[(F+p)%4]}-1===F&&(F=0);let X=z(0);m.moveTo(X[0],X[1]);for(let p=1;p<4;p++){X=z(p);let P=p+1;4===P&&(P=0);const E=j[2][0]-j[1][0],R=j[0][1]-j[1][1],ne=j[1][0],G=j[1][1];let ce=T;ce>R/2&&(ce=R/2),ce>E/2&&(ce=E/2),m.moveTo(ne+ce,G),m.lineTo(ne+E-ce,G),m.quadraticCurveTo(ne+E,G,ne+E,G+ce),m.lineTo(ne+E,G+R-ce),m.quadraticCurveTo(ne+E,G+R,ne+E-ce,G+R),m.lineTo(ne+ce,G+R),m.quadraticCurveTo(ne,G+R,ne,G+R-ce),m.lineTo(ne,G+ce),m.quadraticCurveTo(ne,G,ne+ce,G)}m.fill(),C&&m.stroke()}}returnDateToDefault(l){const m=l.split(".");return m[2]=`20${m[2]}`,m.join(".")}getChartFinanceData(l){return this.apiService.get("fin_summary",l).pipe((0,e.U)(m=>m&&m.summaryList?m.summaryList:null))}getDynamicHeaderData(l){return this.apiService.get("fin_summary/metinv/total",l)}getChartFinanceDataV2(l){return this.apiService.get("fin_summary/chart_total",l)}capitalize(l){return l.charAt(0).toUpperCase()+l.slice(1)}static#e=this.\u0275fac=function(m){return new(m||u)(i.\u0275\u0275inject(d.s))};static#t=this.\u0275prov=i.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},43557:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){this.hide=!0,this.style="default"}ngOnInit(){}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:i,selectors:[["app-arrow-toggle"]],inputs:{hide:"hide",style:"style",cssClass:"cssClass"},decls:5,vars:12,consts:[[1,"arrow-toggle-wrap"],[1,"arrow-toggle"],[1,"arrow-toggle__arrow"]],template:function(u,h){1&u&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),n.\u0275\u0275element(3,"span")(4,"span"),n.\u0275\u0275elementEnd()()()),2&u&&(n.\u0275\u0275classProp("black","black"===h.style),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("open",!h.hide),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("red","red"===h.style)("thin-black","thin-black"===h.style)("thin-black-reverse","thin-black-reverse"===h.style)("thin-gray","thin-gray"===h.style))},styles:['@charset "UTF-8";.arrow-toggle-wrap[_ngcontent-%COMP%]{padding-left:3px;width:15px;height:9px;cursor:pointer}.arrow-toggle-wrap.black[_ngcontent-%COMP%]{width:auto;height:auto;padding-left:0}.arrow-toggle-wrap.black[_ngcontent-%COMP%]   .arrow-toggle[_ngcontent-%COMP%]{display:block;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #000000}.arrow-toggle-wrap.black[_ngcontent-%COMP%]   .arrow-toggle.open[_ngcontent-%COMP%]{transform:translateZ(0) rotate(180deg)}.arrow-toggle-wrap.black[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]{display:none}.arrow-toggle[_ngcontent-%COMP%]{display:flex;align-items:center}.arrow-toggle[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]{z-index:0}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{transition:transform .25s linear;transform:rotate(135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{transition:transform .25s linear;transform:rotate(-135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{transition:transform .25s linear;transform:rotate(-135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{transition:transform .25s linear;transform:rotate(135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{transition:transform .25s linear;transform:rotate(-135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{transition:transform .25s linear;transform:rotate(135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]{width:8px}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#2f54eb}.arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;position:absolute;height:1px;width:100%;background:#2f54eb;opacity:1;left:0;transform:rotate(0);transition:.25s ease-in-out}.arrow-toggle__arrow.red[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:linear-gradient(270deg,#f39034 0%,#ff2727 100%)}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]{width:8px}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#000}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(-45deg);top:5px;left:-3px}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg);top:5px;left:2px}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]{width:8px}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#88909b}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(-45deg)}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg)}.arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]{width:8px;margin-left:-9px}.arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#88909b;height:2px}.arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(45deg);top:3px;left:-4px}.arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(-45deg);top:3px;left:2px}.arrow-toggle__arrow[_ngcontent-%COMP%]{display:block;width:10px;height:10px;transform:rotate(0);transition:.25s ease-in-out;z-index:97}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]{transform:rotate(180deg)}']})}return i})()},27719:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>i});var n=t(36895),e=t(94650);let i=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:d});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.ez]})}return d})()},87102:(Ee,Q,t)=>{"use strict";t.d(Q,{J:()=>h});var n=t(97582),e=t(16611),i=t(94650),d=t(36895),a=t(4610);const u=function(l,m){return{currentSize:l,maxSize:m}};class h{constructor(){this.color="#2F54EB"}get applyStyles(){return{width:(this.value<=this.maxValue?Math.floor(this.value/this.maxValue*100):100)+"%",background:this.color}}ngOnInit(){}static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:h,selectors:[["app-attachment-size-info"]],inputs:{value:"value",maxValue:"maxValue",color:"color"},decls:8,vars:15,consts:[["data-qa","1666339435",1,"attachment-size-info"],["data-qa","1666339446",1,"attachment-size-info__status"],[1,"progress-bar"],[1,"progress-bar__filler",3,"ngStyle"]],template:function(x,O){1&x&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275pipe(4,"formatFileSize"),i.\u0275\u0275pipe(5,"formatFileSize"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",2),i.\u0275\u0275element(7,"div",3),i.\u0275\u0275elementEnd()()),2&x&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind3(3,2,"Uploaded files size info",O.lang,i.\u0275\u0275pureFunction2(12,u,i.\u0275\u0275pipeBind2(4,6,O.value,O.lang),i.\u0275\u0275pipeBind2(5,9,O.maxValue,O.lang)))," "),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngStyle",O.applyStyles))},dependencies:[d.PC,e.X$,a.x],styles:['@charset "UTF-8";.attachment-size-info[_ngcontent-%COMP%]{display:inline-block;min-width:195px;max-width:250px}.attachment-size-info__status[_ngcontent-%COMP%]{font-family:Open Sans;font-size:14px;letter-spacing:.01em;color:#88909b;margin-bottom:4px}.attachment-size-info[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{max-width:100%;height:6px;border-radius:4px;background-color:#c4c4c4;overflow-x:hidden}.attachment-size-info[_ngcontent-%COMP%]   .progress-bar__filler[_ngcontent-%COMP%]{height:6px;border-radius:4px}']})}(0,n.gn)([(0,e.SQ)()],h.prototype,"lang",void 0)},88458:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>u});var n=t(36895),e=t(97392),i=t(16611),d=t(36561),a=t(94650);let u=(()=>{class h{static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275mod=a.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.ez,i.qw,e.Ps,d.D]})}return h})()},75748:(Ee,Q,t)=>{"use strict";t.d(Q,{C:()=>x});var n=t(36895),e=t(97392),i=t(74471),d=t(76264),a=t(36561),u=t(48038),h=t(16611),l=t(88458),m=t(94650);let x=(()=>{class O{static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:O});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[n.ez,h.qw,e.Ps,l.Y,a.D,d.o,i.h,u.Y]})}return O})()},66266:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>n});const n={correct:{matIcon:"edit_document",matStyleOutlined:!1,text:"Create adjustment"},decline_request:{svgIcon:"recall",text:"Withdraw"},decline_request_without_reason:{svgIcon:"recall",text:"Withdraw"},request_cancel:{svgIcon:"recall",text:"Withdraw"},cancel:{svgIcon:"recall",text:"Withdraw"},print:{matIcon:"local_printshop",matStyleOutlined:!0,text:"Print"},print_BPX:{matIcon:"local_printshop",matStyleOutlined:!0,text:"Print BPX"},print_last:{matIcon:"local_printshop",matStyleOutlined:!0,text:"Print"},open_registry:{svgIcon:"show_caption",text:"Open registry"},open_application:{icon:"show_caption",text:"Open application"},print_registry:{matIcon:"local_printshop",text:"Print registry"},print_payment_request:{matIcon:"local_printshop",matStyleOutlined:!0,text:"Print"},repeat:{matIcon:"replay",text:"Repeat operation"},receipt:{svgIcon:"receipt",text:"Receipt"},createTemplate:{matIcon:"star_outline",text:"Create template"},createPayment:{matIcon:"star_outline",text:"Create payment"},createCopy:{matIcon:"file_copy",matStyleOutlined:!0,text:"Create copy"},edit:{matIcon:"edit",matStyleOutlined:!0,text:"Edit"},download:{matIcon:"save_alt",text:"Download"},downloadAttachments:{matIcon:"save_alt",text:"Download attachments"},downloadXML:{matIcon:"save_alt",text:"Download XML"},sign:{svgIcon:"sign",text:"Sign"},signIncomingIdentification:{svgIcon:"sign",text:"Sign"},showSigns:{svgIcon:"show_caption",text:"Sign list"},delete:{matIcon:"delete_forever",matStyleOutlined:!0,text:"Delete"},delete_sign:{svgIcon:"delete_caption",text:"Delete sign"},send:{matIcon:"send",matStyleOutlined:!0,text:"Send"},sign_cancel:{svgIcon:"sign",text:"Sign"},withdrawalOrder:{matIcon:"send",matStyleOutlined:!0,text:"Rasp about currency debitting"},reissue:{matIcon:"replay",text:"Reissue"},withdraw_ved_document:{svgIcon:"recall",text:"Withdraw"},turnOff:{matIcon:"delete_forever",matStyleOutlined:!0,text:"Turn off"},createApplication:{matIcon:"edit",matStyleOutlined:!0,text:"Sign"},accept:{matIcon:"send",matStyleOutlined:!0,text:"To accept"},refuse:{matIcon:"delete_forever",matStyleOutlined:!0,text:"Refuse"},withdraw:{matIcon:"delete_forever",matStyleOutlined:!0,text:"Withdraw"},topUpDeposit:{svgIcon:"payment-for",text:"To pay"},sendPrintForm:{matIcon:"send",matStyleOutlined:!0,text:"Send to email"},continueProcessingApplication:{svgIcon:"sign",text:"Sign"},print_for_contragent:{matIcon:"local_printshop",text:"Print for contragent"},print_swift:{matIcon:"local_printshop",matStyleOutlined:!0,text:"Print swift message"},print_awiso:{svgIcon:"swift",text:"Print swift"},request_swift:{svgIcon:"swift",text:"Request SWIFT"},identify_receipt:{matIcon:"send",text:"Identify receipt"},download_swift:{matIcon:"save_alt",text:"Download SWIFT"},revoke_document:{svgIcon:"recall",text:"Withdraw"},sign_revoke_document:{svgIcon:"sign",text:"Sign"},create_cti:{matIcon:"send",matStyleOutlined:!0,text:"Create currency transactions information"},fixRate:{matIcon:"send",matStyleOutlined:!0,text:"Show current prices"},declarationAcceptance:{matIcon:"edit",matStyleOutlined:!0,text:"Declaration of advance acceptance"},sign_on_client:{svgIcon:"sign",text:"Sign"},partly_accept:{matIcon:"edit",matStyleOutlined:!0,text:"Accept partly"},advance_accept:{matIcon:"edit_note",matStyleOutlined:!0,text:"Declaration of advance acceptance"},for_cancellation:{svgIcon:"close",text:"Cancel accept"},decline:{matIcon:"close",matStyleOutlined:!0,text:"Refuse acceptance"},decline_phone_change:{matIcon:"close",matStyleOutlined:!0,text:"Refuse"},send_ul_documents:{matIcon:"mail",matStyleOutlined:!0,text:"Provide documents"},phone_change:{matIcon:"edit",matStyleOutlined:!0,text:"Changing the phone number for signature"},disable_user:{svgIcon:"person_cancel",text:"Disable user"},view:{matIcon:"show_caption",matStyleOutlined:!0,text:"View"},print_client_payment:{svgIcon:"swift",text:"Print client payment"},confirm_tg_payment:{matIcon:"check_circle",matStyleOutlined:!0,text:"Confirm receipt of funds"}}},46923:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>on});var n=t(94650),e=t(36895),i=t(49671),d=t(97582),a=t(36738),u=t(54409),h=t(16611),l=t(4128),m=t(6146),x=t(95832),O=t(38101),L=t(71573),w=t(9149),B=t(37601),_=t(68735),y=t(75568),$=t(90995),C=t(51329);function T(Nt,It){if(1&Nt&&n.\u0275\u0275element(0,"div",12),2&Nt){const Ot=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("innerHTML",Ot.compromise.generalInfo,n.\u0275\u0275sanitizeHtml)}}function j(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"app-metib-comment",13),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("disableToggleButton",!0),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ot.compromise.bpxInfo," ")}}function I(Nt,It){if(1&Nt){const Ot=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-radio",18),n.\u0275\u0275listener("click",function(Xn){const ci=n.\u0275\u0275restoreView(Ot).$implicit,Ui=n.\u0275\u0275nextContext(3);return n.\u0275\u0275resetView(Ui.onSignTypeClick(Xn,ci.value))}),n.\u0275\u0275elementEnd()}if(2&Nt){const Ot=It.$implicit,fn=It.index,Xn=n.\u0275\u0275nextContext(3);n.\u0275\u0275property("value",Ot.value)("label",Ot.caption)("chosen",Xn.selectedSignType===Ot.value),n.\u0275\u0275attribute("data-qa","1681812945"+fn)}}function F(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"div",14)(1,"div",15),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div",16),n.\u0275\u0275template(4,I,1,4,"app-radio",17),n.\u0275\u0275elementEnd()()),2&Nt){const Ot=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",Ot.compromise.jointInfo," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngForOf",Ot.signTypes)}}function z(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"app-metib-comment",19),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("disableToggleButton",!0),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ot.compromise.jointRutokenInfo," ")}}function X(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"div",4)(1,"div",5)(2,"div",6),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",7),n.\u0275\u0275text(5," \u0422\u0438\u043f \u043f\u043e\u0434\u043f\u0438\u0441\u0438: "),n.\u0275\u0275elementStart(6,"span"),n.\u0275\u0275text(7),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275template(8,T,1,1,"div",8),n.\u0275\u0275template(9,j,2,2,"app-metib-comment",9),n.\u0275\u0275template(10,F,5,2,"div",10),n.\u0275\u0275template(11,z,2,2,"app-metib-comment",11),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275propertyInterpolate2("title","",Ot.userFullName," - ",Ot.organization.shortName,""),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate3(" ",Ot.userFullName," - ",Ot.organization.ipType," ",Ot.organization.shortName," "),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(Ot.SIGN_TYPES_CAPTIONS[Ot.userSignType]),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",null==Ot.compromise?null:Ot.compromise.generalInfo),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",null==Ot.compromise?null:Ot.compromise.bpxInfo),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf","joint"===Ot.userSignType&&(null==Ot.compromise?null:Ot.compromise.jointInfo)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",(null==Ot.compromise?null:Ot.compromise.jointRutokenInfo)&&"single"===Ot.selectedSignType&&"joint"===Ot.userSignType)}}function p(Nt,It){if(1&Nt){const Ot=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",20)(1,"app-button",21),n.\u0275\u0275listener("clicked",function(){n.\u0275\u0275restoreView(Ot);const Xn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Xn.confirm())}),n.\u0275\u0275elementEnd()()}if(2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("disabled",Ot.isConfirmButtonDisabled)}}function P(Nt,It){1&Nt&&n.\u0275\u0275element(0,"app-loader",22)}let E=(()=>{class Nt{constructor(Ot,fn,Xn,_i,ci){this.modalService=Ot,this.cdr=fn,this.compromiseService=Xn,this.toastCustomService=_i,this.userDataService=ci,this.userId=null,this.userFullName=null,this.userSignType=null,this.isUserConfirmed=!1,this.isLoading=!0,this.compromise=null,this.organization=null,this.confirmAction=()=>{},this.cancelAction=()=>{},this.signTypes=[{caption:"\u0414\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0434\u0438\u043d\u043e\u043b\u0438\u0447\u043d\u043e",value:x.hk.Single},{caption:"\u041d\u0435\u0442, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e",value:x.hk.Joint}],this.selectedSignType=null,this.SIGN_TYPES_CAPTIONS=x.oT}get isConfirmButtonDisabled(){return this.userSignType===x.hk.Joint&&!this.selectedSignType}ngOnInit(){(0,l.D)([this.userDataService.getClientInfoOrganization(),this.compromiseService.createDismissal(this.userId)]).subscribe({next:([Ot,fn])=>{fn.choice||(this.signTypes=this.signTypes.filter(Xn=>Xn.value===x.hk.Single)),this.organization=Ot,this.compromise=fn,this.isLoading=!1,this.cdr.markForCheck()},error:Ot=>{this.toastCustomService.errorHandle(Ot),this.modalService.close()}})}confirm(){this.isLoading=!0,this.cdr.markForCheck(),null===this.selectedSignType&&(this.selectedSignType=x.hk.Single),this.compromiseService.createDismissal(this.userId,this.selectedSignType).subscribe({next:Ot=>{this.isUserConfirmed=!0,this.isLoading=!1,this.cdr.markForCheck(),this.modalService.close(),this.confirmAction({docModule:"ibankul",docType:m.o.Compromise,id:Ot.id})},error:Ot=>{this.isLoading=!1,this.cdr.markForCheck(),this.toastCustomService.errorHandle(Ot)}})}onSignTypeClick(Ot,fn){Ot&&Ot.preventDefault(),this.selectedSignType=fn,this.cdr.markForCheck()}ngOnDestroy(){this.isUserConfirmed||this.cancelAction()}static#e=this.\u0275fac=function(fn){return new(fn||Nt)(n.\u0275\u0275directiveInject(O.Z),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(L.g),n.\u0275\u0275directiveInject(w.j),n.\u0275\u0275directiveInject(B.M))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:Nt,selectors:[["app-settings-disable-user-modal"]],inputs:{userId:"userId",userFullName:"userFullName",userSignType:"userSignType",confirmAction:"confirmAction",cancelAction:"cancelAction"},decls:4,vars:3,consts:[[1,"disable-user-modal"],["class","disable-user-modal-content",4,"ngIf"],["class","disable-user-modal__button",4,"ngIf"],["class","loader",4,"ngIf"],[1,"disable-user-modal-content"],[1,"disable-user-modal-content-signer"],[1,"disable-user-modal-content-signer__name",3,"title"],[1,"disable-user-modal-content-signer__type"],["class","disable-user-modal-content-info",3,"innerHTML",4,"ngIf"],["class","disable-user-modal-content__warning","commentStyle","yellow",3,"disableToggleButton",4,"ngIf"],["class","disable-user-modal-content-sign",4,"ngIf"],["commentStyle","red",3,"disableToggleButton",4,"ngIf"],[1,"disable-user-modal-content-info",3,"innerHTML"],["commentStyle","yellow",1,"disable-user-modal-content__warning",3,"disableToggleButton"],[1,"disable-user-modal-content-sign"],[1,"disable-user-modal-content-sign__text"],[1,"disable-user-modal-content-sign__radios"],["name","sign-type",3,"value","label","chosen","click",4,"ngFor","ngForOf"],["name","sign-type",3,"value","label","chosen","click"],["commentStyle","red",3,"disableToggleButton"],[1,"disable-user-modal__button"],["type","small header","text","Confirm",3,"disabled","clicked"],[1,"loader"]],template:function(fn,Xn){1&fn&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,X,12,10,"div",1),n.\u0275\u0275template(2,p,2,1,"div",2),n.\u0275\u0275template(3,P,1,0,"app-loader",3),n.\u0275\u0275elementEnd()),2&fn&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Xn.isLoading),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Xn.isLoading),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Xn.isLoading))},dependencies:[e.sg,e.O5,_.U,y.R,$.r,C.E],styles:['@charset "UTF-8";.disable-user-modal[_ngcontent-%COMP%]{padding:24px 32px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:#444;max-width:624px}.disable-user-modal-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px}.disable-user-modal-content-signer[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px}.disable-user-modal-content-signer__name[_ngcontent-%COMP%]{font-weight:700;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.disable-user-modal-content-signer__type[_ngcontent-%COMP%]{font-size:14px}.disable-user-modal-content-signer__type[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700}.disable-user-modal-content-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;background:#f1f2f2;border-radius:4px;padding:12px;font-size:14px;line-height:20px;color:#444}.disable-user-modal-content-sign[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px}.disable-user-modal-content-sign__text[_ngcontent-%COMP%]{line-height:22px}.disable-user-modal-content-sign__radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px}.disable-user-modal-content-sign__radios[_ngcontent-%COMP%]   app-radio[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.disable-user-modal__button[_ngcontent-%COMP%]{display:flex;margin-top:60px}.disable-user-modal[_ngcontent-%COMP%]   app-loader[_ngcontent-%COMP%]{position:relative;display:flex;min-height:100px}'],changeDetection:0})}return Nt})();var R=t(15439),ne=t.n(R),G=t(39646),ce=t(39300),xe=t(82722),we=t(63900),Ge=t(54004),ct=t(30723),pe=t(82007),Ce=t(24006),U=t(77579),H=t(95698),Z=t(40929),oe=t(502),Pe=t(16304);const Ie=["class","component"];function pt(Nt,It){1&Nt&&(n.\u0275\u0275elementStart(0,"div",6),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ","\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c"," "))}class Ht{constructor(It,Ot,fn,Xn,_i){this.modalService=It,this.fb=Ot,this.documentService=fn,this.toastCustomService=Xn,this.cardIndexService=_i,this.acceptId=null,this.accId=null,this.paymentRequestDocId=null,this.paymentRequestData=null,this.formDecline=this.fb.group({declineCause:new Ce.UntypedFormControl("",[Ce.Validators.required])}),this.destroyed$=new U.x}ngOnInit(){this.acceptId&&this.documentService.getDocumentById("ibankul",m.o.RequestAcceptNoAccept,this.acceptId).pipe((0,H.q)(1)).subscribe({next:It=>{"1"===It.requestAcceptNoAcceptUlDocumentMetinv?.signStatus&&this.formDecline.get("declineCause").disable(),this.acceptDocument=It.requestAcceptNoAcceptUlDocumentMetinv,this.formDecline.patchValue({declineCause:this.acceptDocument.cause})},error:It=>{this.toastCustomService.errorHandle(It),this.done(null),this.close()}})}close(){this.modalService.close()}next(){if("1"===this.acceptDocument?.signStatus)return void this.done({id:this.acceptId,docType:m.o.RequestAcceptNoAccept,docModule:"ibankul"});const It={id:this.acceptId,accId:this.acceptDocument?.accId||this.accId,acceptAmount:this.acceptDocument?.acceptAmount||null,cause:this.formDecline.get("declineCause").value,acceptType:this.acceptDocument?.acceptType||"DECLINE",paymentRequestDocId:this.acceptDocument?.paymentRequestDocId||this.paymentRequestDocId};this.cardIndexService.createMetibAccept(It,this.paymentRequestData).pipe((0,H.q)(1),(0,xe.R)(this.destroyed$)).subscribe({next:fn=>{fn&&this.done(fn)}})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(Ot){return new(Ot||Ht)(n.\u0275\u0275directiveInject(O.Z),n.\u0275\u0275directiveInject(Ce.UntypedFormBuilder),n.\u0275\u0275directiveInject(Z.Z),n.\u0275\u0275directiveInject(w.j),n.\u0275\u0275directiveInject(oe.$))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:Ht,selectors:[["app-decline-acceptance-modal",8,"component"]],inputs:{done:"done",acceptId:"acceptId",accId:"accId",paymentRequestDocId:"paymentRequestDocId",paymentRequestData:"paymentRequestData"},attrs:Ie,decls:8,vars:12,consts:[[1,"decline-modal"],[1,"container_input",3,"formGroup"],["appearance","dcb","formControlName","declineCause",3,"title"],["class","container_input_error-message",4,"ngIf"],[1,"container_button"],["type","small",1,"list_buttons",3,"disabled","type","text","clicked"],[1,"container_input_error-message"]],template:function(Ot,fn){if(1&Ot&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275element(2,"app-metib-input",2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275template(4,pt,2,1,"div",3),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"div",4)(6,"app-button",5),n.\u0275\u0275listener("clicked",function(){return fn.next()}),n.\u0275\u0275pipe(7,"translate"),n.\u0275\u0275elementEnd()()()),2&Ot){let Xn;n.\u0275\u0275advance(1),n.\u0275\u0275property("formGroup",fn.formDecline),n.\u0275\u0275advance(1),n.\u0275\u0275propertyInterpolate("title",n.\u0275\u0275pipeBind2(3,6,"Refuse cause",fn.lang)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",fn.formDecline.get("declineCause").touched&&fn.formDecline.get("declineCause").invalid),n.\u0275\u0275advance(2),n.\u0275\u0275propertyInterpolate("text",n.\u0275\u0275pipeBind2(7,9,"Next",fn.lang)),n.\u0275\u0275property("disabled",null==(Xn=fn.formDecline.get("declineCause"))?null:Xn.hasError("required"))("type","medium-for-sign")}},dependencies:[e.O5,Pe.w,$.r,Ce.NgControlStatus,Ce.NgControlStatusGroup,Ce.FormGroupDirective,Ce.FormControlName,h.X$],styles:[".decline-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:60px;max-width:624px;padding:24px 32px;justify-content:center}@media (max-width: 768px){.decline-modal[_ngcontent-%COMP%]{padding:24px 16px}}.decline-modal[_ngcontent-%COMP%]   .container_input[_ngcontent-%COMP%]{flex:1 0 auto}.decline-modal[_ngcontent-%COMP%]   .container_input_error-message[_ngcontent-%COMP%]{color:#e23428;font-size:14px;font-weight:400;padding:0 12px;height:20px}.decline-modal[_ngcontent-%COMP%]   .container_input[_ngcontent-%COMP%]   app-metib-input[_ngcontent-%COMP%]{width:100%}.decline-modal[_ngcontent-%COMP%]   .container_button[_ngcontent-%COMP%]{display:flex;align-items:flex-start}"]})}(0,d.gn)([(0,h.SQ)()],Ht.prototype,"lang",void 0);var Wt=t(53065);const Xe=["class","component"];function Qe(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"div",10),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" \u0421\u0443\u043c\u043c\u0430 \u0430\u043a\u0446\u0435\u043f\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u0441\u0443\u043c\u043c\u044b \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f ",Ot.operationAmount," RUB ")}}function Be(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"div",11),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("\u0421\u0443\u043c\u043c\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f ",Ot.operationAmount," RUB")}}function at(Nt,It){1&Nt&&(n.\u0275\u0275elementStart(0,"div",10),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ","\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c"," "))}class lt{constructor(It,Ot,fn,Xn,_i){this.modalService=It,this.fb=Ot,this.documentService=fn,this.toastCustomService=Xn,this.cardIndexService=_i,this.acceptId=null,this.accId=null,this.paymentRequestDocId=null,this.paymentRequestData=null,this.formDecline=this.fb.group({acceptAmount:new Ce.UntypedFormControl("",[Ce.Validators.required]),declineAmount:new Ce.UntypedFormControl({value:"",disabled:!0}),declineCause:new Ce.UntypedFormControl("",[Ce.Validators.required])}),this.buttonNextCaption="To accept",this.destroyed$=new U.x,this.acceptAmountMask={TextMask:(0,Wt.createNumberMask)({decimalLimit:2,suffix:" RUR",prefix:"",allowDecimal:!0,thousandsSeparatorSymbol:" ",decimalSymbol:"."}),type:"amount",stripMask:!0,decimalSymbol:"."}}ngOnInit(){const It=Ce.Validators.compose([Ot=>""==Ot?.value||parseFloat(Ot?.value)>0&&parseFloat(Ot?.value)<this.operationAmount?[]:{maxSumLimit:!0}]);this.acceptId?this.documentService.getDocumentById("ibankul",m.o.RequestAcceptNoAccept,this.acceptId).pipe((0,H.q)(1)).subscribe({next:Ot=>{"1"===Ot.requestAcceptNoAcceptUlDocumentMetinv?.signStatus&&(this.buttonNextCaption="Continue signing",this.formDecline.get("acceptAmount").disable(),this.formDecline.get("declineCause").disable()),this.acceptDocument=Ot.requestAcceptNoAcceptUlDocumentMetinv,this.operationAmount=Number(this.acceptDocument.amount),this.formDecline.patchValue({acceptAmount:this.acceptDocument.acceptAmount,declineCause:this.acceptDocument.cause}),this.formDecline.get("acceptAmount").addValidators(It)},error:Ot=>{this.toastCustomService.errorHandle(Ot),this.done(null),this.close()}}):this.paymentRequestData?(this.operationAmount=Number(this.paymentRequestData.amount),this.formDecline.patchValue({acceptAmount:this.operationAmount}),this.formDecline.get("acceptAmount").addValidators(It)):(this.formDecline.get("acceptAmount").patchValue(this.operationAmount),this.formDecline.get("acceptAmount").addValidators(It))}close(){this.modalService.close()}next(){if("1"===this.acceptDocument?.signStatus)return void this.done({id:this.acceptId,docType:m.o.RequestAcceptNoAccept,docModule:"ibankul"});const It={id:this.acceptId,accId:this.acceptDocument?.accId||this.accId,acceptAmount:this.formDecline.get("acceptAmount").value,cause:this.formDecline.get("declineCause").value,acceptType:this.acceptDocument?.acceptType||"PARTLY_ACCEPT",paymentRequestDocId:this.acceptDocument?.paymentRequestDocId||this.paymentRequestDocId};this.cardIndexService.createMetibAccept(It,this.paymentRequestData).pipe((0,H.q)(1),(0,xe.R)(this.destroyed$)).subscribe({next:fn=>{fn&&this.done(fn)}})}onAmountChange(It){const Ot=this.operationAmount-parseFloat(It);Ot>0&&Ot<this.operationAmount?this.formDecline.get("declineAmount").patchValue(Ot.toFixed(2)):this.formDecline.get("declineAmount").patchValue("0.00")}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(Ot){return new(Ot||lt)(n.\u0275\u0275directiveInject(O.Z),n.\u0275\u0275directiveInject(Ce.UntypedFormBuilder),n.\u0275\u0275directiveInject(Z.Z),n.\u0275\u0275directiveInject(w.j),n.\u0275\u0275directiveInject(oe.$))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:lt,selectors:[["app-partly-acceptance-modal",8,"component"]],inputs:{done:"done",operationAmount:"operationAmount",acceptId:"acceptId",accId:"accId",paymentRequestDocId:"paymentRequestDocId",paymentRequestData:"paymentRequestData"},attrs:Xe,decls:15,vars:24,consts:[[1,"decline-modal"],[1,"container_input",3,"formGroup"],["appearance","dcb","formControlName","acceptAmount",3,"mask","title","ngModelChange"],["class","container_input_error-message",4,"ngIf","ngIfElse"],["amountMessage",""],["appearance","dcb","formControlName","declineAmount","cssClass","disabled-input",3,"mask","title"],["appearance","dcb","formControlName","declineCause",3,"title"],["class","container_input_error-message",4,"ngIf"],[1,"container_button"],["type","small",1,"list_buttons",3,"disabled","type","text","clicked"],[1,"container_input_error-message"],[1,"container_input_message"]],template:function(Ot,fn){if(1&Ot&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"app-metib-input",2),n.\u0275\u0275listener("ngModelChange",function(_i){return fn.onAmountChange(_i)}),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,Qe,2,1,"div",3),n.\u0275\u0275template(5,Be,2,1,"ng-template",null,4,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275element(7,"app-metib-input",5),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275element(9,"app-metib-input",6),n.\u0275\u0275pipe(10,"translate"),n.\u0275\u0275template(11,at,2,1,"div",7),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"div",8)(13,"app-button",9),n.\u0275\u0275listener("clicked",function(){return fn.next()}),n.\u0275\u0275pipe(14,"translate"),n.\u0275\u0275elementEnd()()()),2&Ot){const Xn=n.\u0275\u0275reference(6);n.\u0275\u0275advance(1),n.\u0275\u0275property("formGroup",fn.formDecline),n.\u0275\u0275advance(1),n.\u0275\u0275propertyInterpolate("title",n.\u0275\u0275pipeBind2(3,12,"Acceptance amount",fn.lang)),n.\u0275\u0275property("mask",fn.acceptAmountMask),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",fn.formDecline.get("acceptAmount").touched&&fn.formDecline.get("acceptAmount").hasError("maxSumLimit"))("ngIfElse",Xn),n.\u0275\u0275advance(3),n.\u0275\u0275propertyInterpolate("title",n.\u0275\u0275pipeBind2(8,15,"Acceptance refuse amount",fn.lang)),n.\u0275\u0275property("mask",fn.acceptAmountMask),n.\u0275\u0275advance(2),n.\u0275\u0275propertyInterpolate("title",n.\u0275\u0275pipeBind2(10,18,"Refuse cause",fn.lang)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",fn.formDecline.get("declineCause").touched&&fn.formDecline.get("declineCause").invalid),n.\u0275\u0275advance(2),n.\u0275\u0275propertyInterpolate("text",n.\u0275\u0275pipeBind2(14,21,fn.buttonNextCaption,fn.lang)),n.\u0275\u0275property("disabled",fn.formDecline.invalid)("type","medium-for-sign")}},dependencies:[e.O5,Pe.w,$.r,Ce.NgControlStatus,Ce.NgControlStatusGroup,Ce.FormGroupDirective,Ce.FormControlName,h.X$],styles:[".decline-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:60px;max-width:624px;padding:24px 32px;justify-content:center}@media (max-width: 768px){.decline-modal[_ngcontent-%COMP%]{padding:24px 16px}}.decline-modal[_ngcontent-%COMP%]   .container_input[_ngcontent-%COMP%]{flex:1 0 auto}.decline-modal[_ngcontent-%COMP%]   .container_input_error-message[_ngcontent-%COMP%]{color:#e23428;font-size:14px;font-weight:400;padding:0 12px;height:20px}@media (max-width: 768px){.decline-modal[_ngcontent-%COMP%]   .container_input_error-message[_ngcontent-%COMP%]{height:32px}}.decline-modal[_ngcontent-%COMP%]   .container_input_message[_ngcontent-%COMP%]{color:#88909b;font-size:14px;font-weight:400;padding:0 12px;height:20px}.decline-modal[_ngcontent-%COMP%]   .container_input[_ngcontent-%COMP%]   app-metib-input[_ngcontent-%COMP%]{width:100%}.decline-modal[_ngcontent-%COMP%]   .container_button[_ngcontent-%COMP%]{display:flex;align-items:flex-start}"]})}(0,d.gn)([(0,h.SQ)()],lt.prototype,"lang",void 0);var Dt=t(47706),Yt=t(74720),Tt=t(45835),ot=t(56108),Gt=t(26871),wt=t(36229),Ze=t(57677),Ut=t(15848),vn=t(42761),xn=t(81876);function bn(Nt,It){if(1&Nt){const Ot=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"div",4),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",5)(5,"div",6)(6,"app-button",7),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ot);const Xn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Xn.decline())}),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(7,"div",6)(8,"app-button",8),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ot);const Xn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Xn.close())}),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementContainerEnd()}if(2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(3,3,Ot.text||"Are you sure you want to decline the confirm?",Ot.lang)," "),n.\u0275\u0275advance(4),n.\u0275\u0275propertyInterpolate("text","Yes"),n.\u0275\u0275advance(2),n.\u0275\u0275propertyInterpolate("text","Cancel")}}function hn(Nt,It){1&Nt&&n.\u0275\u0275element(0,"app-loader")}function pn(Nt,It){if(1&Nt){const Ot=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-document-sign-with-wrapper",9),n.\u0275\u0275listener("resultEvent",function(){n.\u0275\u0275restoreView(Ot);const Xn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Xn.onResult())}),n.\u0275\u0275elementEnd()}if(2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275property("cross",Ot.cross)("docId",Ot.docData.id)("docModule",Ot.docData.docModule)("docType",Ot.docData.docType)}}class In{constructor(It,Ot,fn){this.modalService=It,this.documentService=Ot,this.toast=fn,this.cross={href:"ved",params:{tab:"documents",innerTab:"transfer"}},this.load=!1,this.firstStep=!0,this.destroyed$=new U.x,this.declinenDone=()=>{}}ngOnInit(){}close(){this.modalService.close()}onResult(){this.declinenDone(),this.close()}decline(){this.load=!0,this.documentService.withdrawVedDocument(this.operation.docIds,"\u043f\u043e \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0430").pipe((0,xe.R)(this.destroyed$)).subscribe(It=>{this.load=!1,this.docData=It,this.firstStep=!1},It=>{this.toast.show(It.errorText,"error"),this.load=!1})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(Ot){return new(Ot||In)(n.\u0275\u0275directiveInject(O.Z),n.\u0275\u0275directiveInject(Z.Z),n.\u0275\u0275directiveInject(w.j))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:In,selectors:[["app-ved-document-withdraw-modal"]],inputs:{operation:"operation",text:"text",cross:"cross",declinenDone:"declinenDone"},decls:5,vars:5,consts:[[1,"delete-modal"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["secondStep",""],[1,"delete-modal__header-value"],[1,"delete-modal__wrapper"],[1,"delete-modal__button"],["type","large",3,"text","click"],["type","small-bordered",3,"text","click"],[3,"cross","docId","docModule","docType","resultEvent"]],template:function(Ot,fn){if(1&Ot&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,bn,9,6,"ng-container",1),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(2,hn,1,0,"app-loader",2),n.\u0275\u0275template(3,pn,1,4,"ng-template",null,3,n.\u0275\u0275templateRefExtractor)),2&Ot){const Xn=n.\u0275\u0275reference(4);n.\u0275\u0275classProp("load",fn.load),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",fn.firstStep)("ngIfElse",Xn),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",fn.load)}},dependencies:[e.O5,$.r,y.R,xn.v,h.X$],styles:['@charset "UTF-8";.delete-modal.load[_ngcontent-%COMP%]{opacity:.4}.delete-modal__title[_ngcontent-%COMP%]{font-size:33px;font-weight:600;color:#284681;border-bottom:1px solid #dedede;padding-bottom:32px}.delete-modal__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}@media only screen and (min-width: 768px){.delete-modal__header-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}}.delete-modal__buttons[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-wrap:wrap;gap:16px;margin-top:20px}.delete-modal__wrapper[_ngcontent-%COMP%]{display:flex}.delete-modal__button[_ngcontent-%COMP%]{padding-top:20px}.delete-modal__button[_ngcontent-%COMP%]:first-child{margin-right:20px}.delete-modal__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.delete-modal__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.delete-modal__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.delete-modal__button-label__input[_ngcontent-%COMP%]{display:none}.delete-modal__button.view[_ngcontent-%COMP%]{margin-right:20px}.delete-modal__button.load[_ngcontent-%COMP%]{width:170px}.delete-modal__button.disabled[_ngcontent-%COMP%], .delete-modal__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}(0,d.gn)([(0,h.SQ)()],In.prototype,"lang",void 0);var Dn=t(8226),Tn=t(65938),mn=t(59549),Yn=t(284),cn=t(83135),Nn=t(39349);function Bt(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"mat-error"),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=It.$implicit;n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(Ot)}}function En(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"mat-hint",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275property("align","end"),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(Ot.hintTextArea)}}function Wn(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"mat-hint",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275property("align","end"),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate2("",Ot.symbolCounter,"/",Ot.maxLength,"")}}function rn(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"mat-hint"),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(Ot.hint)}}let Sn=(()=>{class Nt extends cn.P{constructor(Ot,fn,Xn){super(Ot,fn),this.cdr=Xn,this.hintTextArea="",this.rows=3,this.maxRows=7,this.autoSize=!0}get symbolCounter(){return this.ngControl.control?.value?this.ngControl.control?.value.length:0}ngAfterViewChecked(){this.cdr.markForCheck()}static#e=this.\u0275fac=function(fn){return new(fn||Nt)(n.\u0275\u0275directiveInject(Ce.NgControl,10),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:Nt,selectors:[["app-metib-textarea"]],inputs:{hintTextArea:"hintTextArea",placeholder:"placeholder",maxLength:"maxLength",rows:"rows",maxRows:"maxRows",autoSize:"autoSize"},standalone:!0,features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275StandaloneFeature],decls:9,vars:15,consts:[[3,"floatLabel"],["matInput","",3,"formControl","maxlength","placeholder","cdkAutosizeMaxRows","cdkTextareaAutosize","errorStateMatcher"],[4,"ngFor","ngForOf"],["class","hint-textarea caption-regular",3,"align",4,"ngIf"],[4,"ngIf"],[1,"hint-textarea","caption-regular",3,"align"]],template:function(fn,Xn){1&fn&&(n.\u0275\u0275elementStart(0,"mat-form-field",0)(1,"mat-label"),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(3,"textarea",1),n.\u0275\u0275template(4,Bt,2,1,"mat-error",2),n.\u0275\u0275pipe(5,"async"),n.\u0275\u0275template(6,En,2,2,"mat-hint",3),n.\u0275\u0275template(7,Wn,2,3,"mat-hint",3),n.\u0275\u0275template(8,rn,2,1,"mat-hint",4),n.\u0275\u0275elementEnd()),2&fn&&(n.\u0275\u0275property("floatLabel","always"),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(Xn.label),n.\u0275\u0275advance(1),n.\u0275\u0275property("formControl",Xn.formControl)("maxlength",Xn.maxLength)("placeholder",Xn.placeholder)("cdkAutosizeMaxRows",Xn.maxRows)("cdkTextareaAutosize",Xn.autoSize)("errorStateMatcher",Xn.customErrorStateMatcher),n.\u0275\u0275attribute("rows",Xn.rows),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",n.\u0275\u0275pipeBind1(5,13,Xn.errors$)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Xn.hintTextArea),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Xn.hintTextArea&&(Xn.maxLength||0===Xn.maxLength)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Xn.hint))},dependencies:[mn.lN,mn.KE,mn.hX,mn.bx,mn.TO,Yn.c,Yn.Nt,Nn.IC,Ce.ReactiveFormsModule,Ce.DefaultValueAccessor,Ce.NgControlStatus,Ce.MaxLengthValidator,Ce.FormControlDirective,e.Ov,e.O5,e.sg],styles:["textarea[_ngcontent-%COMP%]{resize:none;min-height:51px;max-height:160px}.hint-textarea[_ngcontent-%COMP%]{margin-top:-35px;margin-right:0;pointer-events:none;margin-bottom:12px}"],changeDetection:0})}return Nt})();var ke=t(80627),ge=t(45897);const q={panelClass:"metib-modal",backdropClass:"metib-modal",width:"44rem"};var Oe=(()=>{return(Nt=Oe||(Oe={}))[Nt.Cancel=0]="Cancel",Nt[Nt.Success=1]="Success",Oe;var Nt})();class je{constructor(It){this.dialogRef=It,this.REASON_MAX_LENGTH=100,this.dialogTitle="Currency control document recall",this.form=new Ce.FormGroup({recallReason:new Ce.FormControl("",[Ce.Validators.required,Ce.Validators.maxLength(100)])})}onClose(){this.dialogRef.close({resultCode:Oe.Cancel})}onRequestDeclineClick(){this.form.valid&&this.dialogRef.close({resultCode:Oe.Success,recallReason:this.form.get("recallReason")?.value})}static#e=this.\u0275fac=function(Ot){return new(Ot||je)(n.\u0275\u0275directiveInject(Tn.so))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:je,selectors:[["app-metib-dialog-decline-request"]],standalone:!0,features:[n.\u0275\u0275StandaloneFeature],decls:9,vars:22,consts:[[3,"title","closeEvent"],[1,"modal-content",3,"formGroup"],["formControlName","recallReason",3,"placeholder","label","maxLength"],[3,"action1Text","action2Text","action1Event","action2Event"]],template:function(Ot,fn){1&Ot&&(n.\u0275\u0275elementStart(0,"app-metib-modal-header",0),n.\u0275\u0275listener("closeEvent",function(){return fn.onClose()}),n.\u0275\u0275pipe(1,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"div",1),n.\u0275\u0275element(3,"app-metib-textarea",2),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"app-metib-modal-footer",3),n.\u0275\u0275listener("action1Event",function(){return fn.onRequestDeclineClick()})("action2Event",function(){return fn.onClose()}),n.\u0275\u0275pipe(7,"translate"),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275elementEnd()),2&Ot&&(n.\u0275\u0275property("title",n.\u0275\u0275pipeBind2(1,7,fn.dialogTitle,fn.lang)),n.\u0275\u0275advance(2),n.\u0275\u0275property("formGroup",fn.form),n.\u0275\u0275advance(1),n.\u0275\u0275property("placeholder",n.\u0275\u0275pipeBind2(4,10,"Start typing...",fn.lang))("label",n.\u0275\u0275pipeBind2(5,13,"Enter the reason for the recall",fn.lang))("maxLength",fn.REASON_MAX_LENGTH),n.\u0275\u0275advance(3),n.\u0275\u0275property("action1Text",n.\u0275\u0275pipeBind2(7,16,"Withdraw",fn.lang))("action2Text",n.\u0275\u0275pipeBind2(8,19,"Cancel",fn.lang)))},dependencies:[e.ez,Tn.Is,ke.K,ge.X,h.qw,h.X$,Sn,Ce.FormsModule,Ce.NgControlStatus,Ce.NgControlStatusGroup,Ce.ReactiveFormsModule,Ce.FormGroupDirective,Ce.FormControlName],changeDetection:0})}(0,d.gn)([(0,h.SQ)()],je.prototype,"lang",void 0);var Et=t(73224),dt=t(58138),rt=t(31450),qe=t(78895),ze=t(31833),zt=t(70262),vt=t(29198),Rt=t(15644),gt=t(44180);function sn(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"div",6),n.\u0275\u0275element(1,"app-metib-autocomplete-lib",7),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275property("formGroup",Ot.form),n.\u0275\u0275advance(1),n.\u0275\u0275property("options",Ot.optionsContracts)("label",n.\u0275\u0275pipeBind2(2,3,"Contract number",Ot.lang))}}function wn(Nt,It){if(1&Nt){const Ot=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-metib-modal-footer",8),n.\u0275\u0275listener("action1Event",function(){n.\u0275\u0275restoreView(Ot);const Xn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Xn.submit())})("action2Event",function(){n.\u0275\u0275restoreView(Ot);const Xn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Xn.close())}),n.\u0275\u0275pipe(1,"translate"),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()}if(2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275property("action1Text",n.\u0275\u0275pipeBind2(1,2,"Send for signature",Ot.lang))("action2Text",n.\u0275\u0275pipeBind2(2,5,"Cancel",Ot.lang))}}function Qn(Nt,It){1&Nt&&n.\u0275\u0275element(0,"app-loader")}class pi{constructor(It,Ot,fn,Xn,_i,ci,Ui,li,vi){this.data=It,this.ved=Ot,this.translation=fn,this.configUtilService=Xn,this.toast=_i,this.vedService=ci,this.router=Ui,this.dialogRef=li,this.cdr=vi,this.loading=!0,this.contracts=[],this.unkPipe=new ze.n,this.destroy$=new U.x,this.optionsContracts=[],this.headerTitle="Request for IBD",this.headerNumberAndDate="",this.form=new Ce.FormGroup({dealPass:new Ce.FormControl(null,[Ce.Validators.required])})}ngOnInit(){(0,l.D)([this.ved.requestDirectoryCreation(),this.ved.getCurrencies(!1)]).pipe((0,xe.R)(this.destroy$)).subscribe(([It,Ot])=>{this.contracts=It,this.optionsContracts=It.map(fn=>{const Xn=fn.contrCurrCode?Ot.find(_i=>_i.code===fn.contrCurrCode):void 0;return{value:fn.id,title:this.unkPipe.transform(fn.dpnum),description:(fn.dpdate?"\u0414\u043e\u0433\u043e\u0432\u043e\u0440 \u043e\u0442 "+fn.dpdate:"")+(Xn?" ("+Xn.isoCode+")":""),additionalFilterValue:Xn?[Xn.name,Xn.interName].toString():""}}),this.prefillForm(),this.subscriptions()})}prefillForm(){const It="edit"===this.data.action;(0,l.D)([this.getDocumentData(),this.getDocNumber()]).pipe((0,xe.R)(this.destroy$)).subscribe(([Ot,fn])=>{if(this.docData={docModule:"ibankul_curr",docType:m.o.InqStatement181,docNumber:It?Ot.docNumber:fn,docDate:It?Ot.docDate:this.configUtilService.revertFormatDateDMY(new Date,"-")},It&&(this.docData.id=Ot.id),Ot?.dpnum){const Xn=this.contracts.find(ci=>ci.dpnum===Ot.dpnum),_i=this.optionsContracts.find(ci=>ci.value===Xn?.id);this.form.get("dealPass").setValue(_i)}this.headerNumberAndDate=` \u2116  ${this.docData.docNumber}  ${this.translation.translate("By")}  ${ne()(this.docData.docDate).format("DD.MM.YYYY")}`,this.loading=!1,this.cdr.detectChanges()})}subscriptions(){this.form.get("dealPass").valueChanges.pipe((0,xe.R)(this.destroy$)).subscribe(It=>{this.docData.dealpassId=It?.value||""})}getDocNumber(){return"edit"!==this.data.action?this.vedService.getNextDocNum("inq_statement_181").pipe((0,Ge.U)(It=>It.docNumber),(0,zt.K)(()=>(0,G.of)(""))):(0,G.of)("")}getDocumentData(){return this.data?.id?this.vedService.requestDocumentInfo({id:this.data.id,docType:m.o.InqStatement181,docModule:"ibankul_curr"}).pipe((0,zt.K)(()=>(0,G.of)(null))):(0,G.of)(null)}close(){this.dialogRef.close()}submit(){this.ved.sendDirectoryCreation(this.docData).pipe((0,xe.R)(this.destroy$)).subscribe({next:It=>{this.toast.show("Document created","success"),this.dialogRef.close(),this.router.navigate(["/document-details"],{queryParams:{docId:It.id,docType:"inq_statement_181",docModule:"ibankul_curr"}})},error:It=>{this.toast.errorHandle(It.errorText)}})}static#e=this.defaultSettings={panelClass:"metib-modal",backdropClass:"metib-modal",width:"35rem"};ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#t=this.\u0275fac=function(Ot){return new(Ot||pi)(n.\u0275\u0275directiveInject(Tn.WI),n.\u0275\u0275directiveInject(vt.$),n.\u0275\u0275directiveInject(h.D7),n.\u0275\u0275directiveInject(Rt.Pj),n.\u0275\u0275directiveInject(w.j),n.\u0275\u0275directiveInject(vt.$),n.\u0275\u0275directiveInject(gt.F0),n.\u0275\u0275directiveInject(Tn.so),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))};static#n=this.\u0275cmp=n.\u0275\u0275defineComponent({type:pi,selectors:[["app-statement-modal"]],standalone:!0,features:[n.\u0275\u0275StandaloneFeature],decls:7,vars:7,consts:[[3,"title","closeEvent"],[1,"modal-content"],[3,"formGroup",4,"ngIf"],[1,"modal-buttons"],[3,"action1Text","action2Text","action1Event","action2Event",4,"ngIf"],[4,"ngIf"],[3,"formGroup"],["formControlName","dealPass",3,"options","label"],[3,"action1Text","action2Text","action1Event","action2Event"]],template:function(Ot,fn){1&Ot&&(n.\u0275\u0275elementStart(0,"app-metib-modal-header",0),n.\u0275\u0275listener("closeEvent",function(){return fn.close()}),n.\u0275\u0275pipe(1,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"div",1),n.\u0275\u0275template(3,sn,3,6,"div",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",3),n.\u0275\u0275template(5,wn,3,8,"app-metib-modal-footer",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(6,Qn,1,0,"app-loader",5)),2&Ot&&(n.\u0275\u0275property("title",n.\u0275\u0275pipeBind2(1,4,fn.headerTitle,fn.lang)+fn.headerNumberAndDate),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",!fn.loading),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!fn.loading),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",fn.loading))},dependencies:[ge.X,Ce.ReactiveFormsModule,Ce.NgControlStatus,Ce.NgControlStatusGroup,Ce.FormGroupDirective,Ce.FormControlName,rt.M,h.qw,h.X$,qe.q,y.R,e.O5,ke.K],styles:['@charset "UTF-8";app-metib-modal-header[_ngcontent-%COMP%]{background:#f1f2f2;font-size:20px;line-height:28px;font-weight:700}.modal-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:500px;margin:24px 32px 24px 24px!important;min-height:6rem}.modal-buttons[_ngcontent-%COMP%]{min-height:5rem}'],changeDetection:0})}(0,d.gn)([(0,h.SQ)()],pi.prototype,"lang",void 0);var Ei=t(54128),ki=t(33531),Co=t(73276),xo=t(66266),no=t(14228),Qo=t(3751),Mo=t(76751),po=t(62978),Io=t(92008),en=t(36290),Hn=t(46409),tt=t(10092),nt=t(88581),De=t(4455),ve=t(75885),Se=t(58942),Me=t(67887),We=t(51348),ut=t(52180),ue=t(13162),et=t(11260),At=t(97392);function Ae(Nt,It){if(1&Nt&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275element(1,"app-svg-icon",4),n.\u0275\u0275elementContainerEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275propertyInterpolate("icon",Ot.button.icon||""),n.\u0275\u0275property("svgClass",Ot.color+" button-action__icon")}}function bt(Nt,It){if(1&Nt&&(n.\u0275\u0275elementStart(0,"mat-icon",7),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Nt){const Ot=n.\u0275\u0275nextContext(2);n.\u0275\u0275classMap((Ot.color?Ot.color:"")+" button-action__capture"),n.\u0275\u0275property("fontSet",Ot.button.matStyleOutlined&&"material-icons-outlined"),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",Ot.button.matIcon," ")}}function Le(Nt,It){if(1&Nt&&n.\u0275\u0275element(0,"mat-icon",8),2&Nt){const Ot=n.\u0275\u0275nextContext(2);n.\u0275\u0275classMap(Ot.color+" button-action__icon"),n.\u0275\u0275property("svgIcon",Ot.button.svgIcon)}}function Pt(Nt,It){if(1&Nt&&(n.\u0275\u0275template(0,bt,2,5,"mat-icon",5),n.\u0275\u0275template(1,Le,1,3,"mat-icon",6)),2&Nt){const Ot=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngIf",Ot.button&&Ot.button.matIcon),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ot.button&&Ot.button.svgIcon)}}class dn extends pe.H{constructor(It,Ot,fn,Xn,_i,ci,Ui,li,vi,Zn,gn,Mt,$t,kn,ai,qi,eo,Oo,Fo,Zi,Wo,na,qa,rr,dr,sr){super(),this.documentService=It,this.operationService=Ot,this.modalService=fn,this.router=Xn,this.apiService=_i,this.configUtilService=ci,this.mailService=Ui,this.vedService=li,this.dialog=vi,this.toast=Zn,this.userDataService=gn,this.activatedRoute=Mt,this.acquiringService=$t,this.appConfigService=kn,this.draftApplicationCurrencyExchange=ai,this.fixedRateApplicationCurrencyExchange=qi,this.applicationCurrencyExchange=eo,this.documentSignService=Oo,this.revokeDocumentAction=Fo,this.lastOperationsService=Zi,this.menuActionButtonService=Wo,this.sbpApiService=na,this.currencyExchangeHistoryService=qa,this.cardIndexService=rr,this.vedListService=dr,this.packageSignModalService=sr,this.buttonTypes=xo.U,this.inSelectMenu=!1,this.clicked=new n.EventEmitter,this.pending=new n.EventEmitter,this.actionDone=new n.EventEmitter,this.returnData=new n.EventEmitter,this._data={handleClickOutside:!1,inPopup:!1}}get button(){return this.buttonTypes[this.type]}get data(){return this._data}set data(It){It&&(this._data=It)}static getOnlineDocumentUrl(It){switch(It){case"\u041f\u043e\u043a\u0443\u043f\u043a\u0430 \u0432\u0430\u043b\u044e\u0442\u044b":return"buying";case"\u041f\u0440\u043e\u0434\u0430\u0436\u0430 \u0432\u0430\u043b\u044e\u0442\u044b":return"sale";default:return"repayment-factoring"}}checkReadyToAutoCancel(It){this.operationService.checkReadyToAutoCancel(It).subscribe(Ot=>{Ot?this.requestCancel(this.data):this.cancel()})}buttonActionClick(){if(this.clicked.emit(),!this.data.handleClickOutside)if(this.data.hasOwnProperty("mail"))this.mailService.operationActionChange({name:this.type},this.data.mail);else switch(this.type){case"print":this.print();break;case"print_for_contragent":this.printForContragent();break;case"print_last":this.printLast();break;case"edit":this.edit();break;case"download":case"downloadAttachments":this.download();break;case"downloadXML":this.downloadXML();break;case"sign":this.sign();break;case"signIncomingIdentification":this.signIncomingIdentification();break;case"sign_cancel":this.signCancel();break;case"delete":this.delete();break;case"repeat":this.repeat();break;case"createTemplate":this.createTemplate();break;case"createCopy":this.createCopy();break;case"correct":this.createCorrection();break;case"showSigns":this.showSigns();break;case"sendPrintForm":case"sendPrintForm":this.sendPrintForm();break;case"fixRate":this.fixRate();break;case"delete_sign":this.documentSignDelete();break;case"send":this.sendToBank();break;case"withdrawalOrder":this.goToWithdrawalOrder();break;case"createPayment":this.createPayment();break;case"reissue":this.reissue();break;case"turnOff":this.turnOff();break;case"createApplication":this.createApplication();break;case"accept":this.accept();break;case"partly_accept":this.acceptPartly();break;case"decline":this.declineAccept();break;case"advance_accept":this.advanceAccept();break;case"refuse":this.refuse();break;case"withdraw":case"decline_request_without_reason":this.withdraw();break;case"topUpDeposit":this.topUpDeposit();break;case"request_cancel":this.requestCancel(this.data);break;case"decline_request":this.declineRequest(this.data);break;case"cancel":this.data.docType===m.o.DocPlatporBp?this.checkReadyToAutoCancel(this.data.docId):this.cancel();break;case"continueProcessingApplication":this.continueProcessingApplication();break;case"print_swift":this.printSwift();break;case"print_awiso":case"print_client_payment":this.printAwiso();break;case"print_BPX":this.printBPX();break;case"request_swift":this.requestSwift();break;case"download_swift":this.downloadSwift();break;case"open_registry":this.openRegistry();break;case"open_application":this.openApplication();break;case"print_registry":this.printRegistry();break;case"revoke_document":this.revokeDocumentHandler();break;case"create_cti":this.createCTI();break;case"identify_receipt":this.createIncomingIdentification();break;case"withdraw_ved_document":this.withdrawVedDocument();break;case"for_cancellation":this.cancelAccept();break;case"send_ul_documents":this.sendUlDocuments();break;case"phone_change":this.navigateToPhoneChange();break;case"disable_user":this.openDeleteUserModal();break;case"decline_phone_change":this.declineDocument("decline_phone_change","\u041e\u0442\u043a\u0430\u0437\u0430\u043d\u0430 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c");break;case"sign_revoke_document":this.router.navigate(["/revoke-document"],{queryParams:{docId:this.data.docId,docType:this.data.docType,docModule:this.data.docModule,revokedDocId:this.data.revoked.docId,revokedDocType:this.data.revoked.docType,revokedDocModule:this.data.revoked.docModule}});break;case"view":this.view();break;case"confirm_tg_payment":this.confirmTgReceiptOfFunds()}}revokeDocumentHandler(){this.data?.docType===m.o.DocNso?this.declineDocument("revoke_document","\u041e\u0442\u043e\u0437\u0432\u0430\u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c"):this.revokeDocumentAction.execute(this.data)}sendUlDocuments(){this.router.navigate(["/mail-new"],{queryParams:{operation:"send_ul_documents"}})}navigateToPhoneChange(){this.router.navigate(["settings/change-phone-number"],{queryParams:{signerId:this.data.docId}})}cancelAccept(){this.data?.acceptCancellationId?this.router.navigate([`acceptance/accept_cancellation/${this.data.acceptCancellationId}`]):this.router.navigate(["acceptance/accept_cancellation"],{queryParams:{advanceAcceptId:this.data.docId}})}openRegistry(){this.router.navigate(["/sbp/registry",this.data.docId])}openApplication(){this.router.navigate(["/applications/client-creation"],{queryParams:{id:this.data.docId}})}printRegistry(){this.documentService.getFile(`metinv/print/registry_report/pdf?guid=${this.data.docId}`)}withdrawVedDocument(){this.modalService.open(In,{header:"Withdraw",inputs:{text:"Are you sure you want to withdraw the application?",operation:{docIds:this.data.docId},cross:{href:"ved",params:{tab:"documents",innerTab:this.data.docType===m.o.DocPlatporCurrTg||m.o.DocPlatporCurrTgOv?"otherDocs":"transfer"}},declinenDone:()=>{this.actionDone.emit(this.type)}},overflow:"initial"})}print(){this.data.isHTML?this.documentService.printViewHTML(this.data.docId).subscribe():this.data.inPopup?this.modalService.open(Gt.O,{header:"Print document",styleMode:"forSign",inputs:{operation:{docIds:this.data?.docType===m.o.TspUpdateAddHardPOS?this.data.tspId:this.data.docId}}}):!this.data?.docType||this.data?.docType!==m.o.SalarySbpQrAgreement&&this.data?.docType!==m.o.AcquiringAgreementSoftPOS&&this.data?.docType!==m.o.SbpSalaryTransfer?"request_accept_no_accept"===this.data?.docType?this.documentService.getFile(this.data.url||`metinv/card_index/print?absId=${this.data.docId}`).subscribe(()=>{this.pending.emit(!1)}):this.documentService.getFile(this.data.url||`print/pdf?doc_ids=${this.data.docId}`).subscribe(()=>{this.pending.emit(!1)}):this.documentService.getFile(this.data.url||`metinv/print/with_notify/pdf?doc_id=${this.data.docId}`,!1,null,!0).subscribe(()=>{this.pending.emit(!1)})}edit(){let Ot,fn,It=!1;switch(this.pending.emit(!0),this.data.docType){case"power_of_attorney":this.actionDone.emit("edit"),Ot="/power-of-attorney/edit",fn={id:this.data.docId};break;case"amounts_billed":Ot="/bill/edit",fn={id:this.data.docId};break;case"doc_request_quotes":Ot="/currency-exchange/quotation-request",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"bank_account_agreement":Ot="/opening-currency-account",fn={id:this.data.docId,docType:this.data.docType,action:"edit",docModule:this.data.docModule};break;case"dealpass_contr_181":Ot="/ved/put-on-record/contract",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"dealpass_cred_181":Ot="/ved/put-on-record/loan-agreement",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"inq_curr_181":case"incoming_identification":Ot="/ved/metib-currency-transaction-info",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"inq_conf_181":Ot="/ved/dealpass-documents",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"dealpass_close_181":Ot="/ved/deregistration-statement",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"dealpass_renew_181":Ot="/ved/changes-statement",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"inq_statement_181":this.pending.emit(!1),this.dialog.open(pi,{...pi.defaultSettings,data:{action:"edit",id:this.data.docId}});break;case"doc_currsell":case"doc_currbuy":case"doc_platpor_conv":case"online_conversion_doc":case"precheck_conversion":case"doc_draft_buysell":It=!0,this.vedService.requestDocumentInfo({docModule:"ibankul_curr",docType:this.data.docType,id:this.data.docId}).subscribe(Xn=>{Ot=`currency-exchange/${this.getCurrencyExchangeUrl(Xn)}`,fn="doc_draft_buysell"===this.data.docType?null:{id:this.data.docId,docType:this.data.docType},this.applicationCurrencyExchange.fill(Xn),this.router.navigate([Ot],{queryParams:fn})});break;case"doc_platpor_curr":Ot="/ved/transfer-curr",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case m.o.DocPlatporCurrTg:case m.o.DocPlatporCurrTgOv:Ot="/ved/transfer-curr-tg",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case m.o.DocPlatporCurrComplex:Ot=`/ved/${Ei.q.COMPLEX_PAYMENT}`,fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case m.o.DocPlatporCurrBp:Ot=`/ved/${Ei.q.COMPLEX_PAYMENT_NO_ATTACH}`,fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"doc_transit_pay_doc":Ot="/ved/transit-acc-order",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"sbp_trade_service_enterprise":Ot="/sbp-qr/tcp-form",fn={id:this.data.docId,action:"edit"};break;case"sbp_qr_cash_register":Ot="/sbp-qr/cashbox-form",fn={id:this.data.docId,action:"edit"};break;case"doc_interbnk_currency_transfer":Ot="/ved/transfer-curr-interbank",fn={id:this.data.docId,docType:this.data.docType,action:"edit"};break;case m.o.TspRegistrHardPOS:Ot=`/${this.acquiringService.hardPOSPath}/tsp-form`,fn={id:this.data.docId,action:"edit"};break;case m.o.TspRegistrSoftPOS:Ot=`/${this.acquiringService.softPOSPath}/tsp-form`,fn={id:this.data.docId,action:"edit"};break;case m.o.TspUpdateDeleteSoftPOS:case m.o.TspUpdateAddSoftPOS:Ot=`/${this.acquiringService.softPOSPath}/add-new`,fn={id:this.data.docId,action:"edit"};break;case m.o.TspUpdateDeleteHardPOS:break;case m.o.TspUpdateAddHardPOS:Ot=`/${this.acquiringService.hardPOSPath}/tsp-form`,fn={id:this.data.tspId,action:"edit"};break;case"doc_platpor_bp":Ot="/transfer-rur-cti",fn={prefill:!1,id:this.data.docId,docType:this.data.docType,action:"edit"};break;case m.o.TransferRests:Ot="/balance-transfer",fn={prefill:!1,id:this.data.docId,docType:this.data.docType,action:"edit"};break;case"request_receive_cash":Ot=`zakaz_nalichnyh/redaktirovat_zayavku/${this.data.docId}`;break;case m.o.RequestAdvanceAccept:Ot=`acceptance/request_advance_accept/${this.data.docId}`;break;case m.o.AcceptCancellation:Ot=`acceptance/accept_cancellation/${this.data.docId}`;break;case m.o.SbpQrReg:Ot="/sbp-qr/code-form",fn={id:this.data.docId,action:"edit"};break;case m.o.RequestAcceptNoAccept:switch(It=!0,this.data.acceptType){case"DECLINE":this.declineAccept(this.data.docId);break;case"PARTLY_ACCEPT":this.acceptPartly(this.data.docId)}this.pending.emit(!1);break;case m.o.PhoneChange:Ot="/settings/change-phone-number",fn={id:this.data.docId};break;default:It=!0,this.documentService.getDocumentEdit(this.data.docId,this.data.docType,this.data.docModule).subscribe(Xn=>{this.documentService.paymentData$.next(Xn),this.pending.emit(!1),this.router.navigate([this.data.url||"/transfer-rur"],{queryParams:{prefill:!1}})})}this.data.fromTab&&fn&&(fn.fromTab=this.data.fromTab),!It&&Ot&&this.router.navigate([Ot],{queryParams:fn})}download(){this.data.attach.forEach(It=>{this.mailService.getAttachment(this.data.docId,It.id).subscribe(Ot=>{this.mailService.extractAttachment(Ot,It.fileName)})})}sign(){let It,Ot;switch(this.pending.emit(!0),this.data.docType){case"doc_currsell":case"doc_currbuy":case"doc_curr_agent_factoring":case"sms_notif_agreement":this.modalService.open(vn.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,printDocs:[],documents:[{docType:this.data.docType,docModule:this.data.docModule,docId:this.data.docId}],done:Mt=>{Mt.length&&(this.toast.show(Mt,"success"),this.actionDone.emit("sign"))}}});break;case"precheck_conversion":It="/document-details",Ot={docId:this.data.docId,docType:this.data.docType,docModule:this.data.docModule,conversionMode:this.data.conversionMode};break;case"dealpass_close_181":case"inq_statement_181":case"dealpass_renew_181":It="/document-details",Ot={docId:this.data.docId,docType:this.data.docType,docModule:this.data.docModule};break;case"doc_platpor_conv":case"bank_account_agreement":this.modalService.open(a.D,{inputs:{confirmAction:()=>{this.toast.show("\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d \u0432 \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d","success"),this.actionDone.emit("sign"),this.modalService.close()},cancelAction:()=>{this.modalService.close()},document:{docIds:this.data.docId,docType:this.data.docType,docModule:this.data.docModule}},isSign:!0,isOpeningCurr:!0,isSignDesign:!0,isModalDesign:!0});break;case"cash_placement":case"irreducible_balance":this.documentSignService.setPathData({href:"/deposits",params:{tab:"depositsApplication"}}),It="/document-details",Ot={docId:this.data.docId,docType:this.data.docType,docModule:this.data.docModule,fromTab:this.data.fromTab,conversionMode:this.data.conversionMode};break;case"sbp_trade_service_enterprise":case"sbp_qr_cash_register":case m.o.SbpTseBlock:const Xn=[{id:this.data.docId,...this.data}],_i=Array.from(Xn).map(Mt=>({docId:Mt.id,docType:Mt.docType,docModule:Mt.docModule})),ci=[];Array.from(Xn).filter(Mt=>"sbp_trade_service_enterprise"===Mt.docType||Mt.docType===m.o.SbpTseBlock).map((Mt,$t)=>{ci.push({type:`\u0422\u0421\u041f ${$t+1}`,name:Mt.name,address:`${Mt.city}, ${Mt.address}`})}),Array.from(Xn).filter(Mt=>"sbp_qr_cash_register"===Mt.docType).map((Mt,$t)=>{ci.push({type:`\u041a\u0430\u0441\u0441\u0430 ${$t+1}`,name:Mt.name,address:`${Mt.city}, ${Mt.address}`})}),this.documentSignService.setPathData({href:"/sbp-qr/list",params:{tab:"all"}}),this.modalService.open(vn.h,{header:this.data.docType===m.o.SbpTseBlock?"Deletion of TSP":"Connection",styleMode:"forSign",overflow:"initial",size:"medium-sign",inputs:{documents:_i,isModalDesign:!0,isNewDesign:!1,docsInfo:ci,done:Mt=>{Mt.length&&this.toast.show(Mt,"success"),this.actionDone.emit("sign")}}});break;case"sbp_qr_refund":this.documentSignService.setPathData({href:"/sbp-qr/list",params:{section:"Refund"}}),this.modalService.open(vn.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,documents:[{docType:this.data.docType,docModule:this.data.docModule,docId:this.data.docId}],done:Mt=>{Mt.length&&(this.toast.show(Mt,"success"),this.actionDone.emit("sign"))}}});break;case m.o.SbpQrReg:this.documentSignService.setPathData({href:"/sbp-qr/list",params:{section:"QR-codes"}}),this.modalService.open(vn.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,documents:[{docType:this.data.docType,docModule:this.data.docModule,docId:this.data.docId}],done:Mt=>{Mt.length&&(this.toast.show(Mt,"success"),this.actionDone.emit("sign"))}}});break;case m.o.TspRegistrSoftPOS:case m.o.TspUpdateDeleteSoftPOS:case m.o.TspUpdateAddSoftPOS:case m.o.TspDeleteSoftPOS:this.modalService.open(vn.h,{header:"Document sign",overflow:"initial",size:"medium-sign",styleMode:"forSign",inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,printDocs:[{name:this.acquiringService.getTitle(this.data.docType),id:this.data.docId}],documents:[{docType:this.data.docType,docModule:this.data.docModule,docId:this.data.docId}],done:Mt=>{Mt.length&&(this.toast.show(Mt,"success"),this.actionDone.emit("sign"))}}});break;case m.o.TspUpdateAddHardPOS:It=`/${this.acquiringService.hardPOSPath}/tsp-form`,Ot={id:this.data.tspId,action:"edit"};break;case m.o.TspRegistrHardPOS:Ot={id:this.data.docId,action:"edit"},this.router.navigate([`/${this.acquiringService.hardPOSPath}/tsp-form`],{queryParams:Ot});break;case m.o.RequestVedSupport:this.documentSignService.setPathData({href:"/tarif"}),this.modalService.open(vn.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,documents:[{docType:this.data.docType,docModule:this.data.docModule,docId:this.data.docId}],done:Mt=>{Mt.length&&(this.toast.show(Mt,"success"),this.actionDone.emit("sign"))}}});break;case"power_of_attorney":this.returnData.emit(this.data.docId),this.actionDone.emit("sign");break;case m.o.DocPlatporBp:case m.o.DocPlatporCurr:case m.o.DocPlatporCurrComplex:case m.o.DocPlatporCurrBp:case m.o.DocPlatporCurrTg:case m.o.DocPlatporCurrTgOv:const Ui=this.activatedRoute.snapshot.queryParams,li=Ui.tab?{tab:Ui.tab}:{},vi=Ui.innerTab?{innerTab:Ui.innerTab}:{},Zn=[{docIds:""+this.data.docId,docModule:"ibankul_curr",docType:this.data.docType}];this.data.inq181&&Zn.push({docIds:""+this.data.inq181,docModule:"ibankul_curr",docType:m.o.InqCurr181}),this.data.docCurrBuyId&&Zn.push({docIds:""+this.data.docCurrBuyId,docModule:"ibankul_curr",docType:m.o.DocCurrBuyChildren});const gn={filter:Zn,pathData:{capture:"Currency control",href:"/ved",params:{...li,...vi}}};this.lastOperationsService.setSessionStorage(this.userDataService.STORAGE_NAME_PARAMS_FOR_SIGN,JSON.stringify(gn)),this.router.navigate(["package-sign"]);break;case m.o.RequestReceiveCash:this.openSignModalAlt();break;case m.o.RequestAdvanceAccept:case m.o.AcceptCancellation:case m.o.RequestAcceptNoAccept:this.openSignModal();break;case m.o.PhoneChange:case m.o.DocNso:this.openSignModalAlt();break;case m.o.DealpassContr181:case m.o.DealpassCred181:It="/document-details",Ot={docId:this.data.docId,docType:this.data.docType,docModule:this.data.docModule};break;case m.o.ServiceTransferTg:this.openSignModal();break;default:It=this.data.inq181?"/package-sign":"/sign",Ot=this.data.inq181?{docIds:[this.data.docId,this.data.inq181,this.data?.docCurrBuyId].filter(Mt=>!!Mt).join(","),crossHref:this.data.url}:{docId:this.data.docId,docType:this.data.docType,docModule:this.data.docModule,accNumber:this.data.accNumber,crossHref:this.data.url}}this.pending.emit(!1),Ot&&It?this.router.navigate([It],{queryParams:Ot}):It&&this.router.navigate([It])}signIncomingIdentification(){const It=this.data.incomingIdentification;this.router.navigate(["/package-sign"],{queryParams:{docIds:[It.inqCurrId,It.transferCurrId,It.transferInqCurrId].join(","),action:"identify_receipt",incomingIdentificationId:It.id}})}signCancel(){this.router.navigate(["/recall-order"],{queryParams:{cancel:!0,docId:this.data.docId,docType:"request_cancel"}})}cancel(){switch(this.data.docType){case"power_of_attorney":this.returnData.emit(this.data.docId),this.actionDone.emit("sign_revoke_document");break;case m.o.PhoneChange:case m.o.Contact167ChangeAgreement:this.declineDocument("cancel","\u041e\u0442\u043e\u0437\u0432\u0430\u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c");break;default:this.appConfigService.settings$.pipe((0,ce.h)(It=>It.isLoaded),(0,xe.R)(this.$unsubscribe)).subscribe(It=>{let Ot="";Ot=It.ulSettings["OTHER/MAIL20"]?"/mail-new":"/mailing-new",this.router.navigate([Ot],{queryParams:{operation:"revoke",docType:this.data.docType,docId:this.data.docId}})})}}delete(){const It=this.activatedRoute.snapshot.queryParamMap.get("docType"),Ot=this.activatedRoute.snapshot.queryParamMap.get("docModule"),Xn=this.data.inq181||this.data.docCurrBuyId?[this.data.docId,this.data.inq181,this.data.docCurrBuyId].filter(_i=>!!_i):this.data.docId;this.modalService.open(Tt.q,{header:"Deletion",inputs:{successMessage:Array.isArray(Xn)?"Documents delete success":"Document delete success",operation:{docIds:Xn,docType:this.data.docType},deletionDone:()=>{this.actionDone.emit(this.type),It===ki.$e&&Ot===ki.Il?this.router.navigate(["/ved"],{queryParams:{tab:Co.e5.RECEIPTS}}):It===ki.iJ&&Ot===ki.Il&&this.router.navigate(["/ved"],{queryParams:{tab:Co.e5.DOCUMENTS,innerTab:Co.MR.OTHER}})}}})}repeat(){this.operationService.repeatOperation(this.data.operation)}createTemplate(){this.modalService.open(Ut.z,{header:"Save to favorites",inputs:{docId:this.data.docId,actionAfter:()=>{this.modalService.close()}}})}createCopy(){let It,Ot;switch(this.pending.emit(!0),this.data.docType){case"doc_request_quotes":It="/currency-exchange/quotation-request",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case"power_of_attorney":this.actionDone.emit("createCopy"),It="/power-of-attorney/edit",Ot={id:this.data.docId,copy:!0};break;case"dealpass_contr_181":It="/ved/put-on-record/contract",Ot={id:this.data.docId,docType:this.data.docType};break;case"dealpass_cred_181":It="/ved/put-on-record/loan-agreement",Ot={id:this.data.docId,docType:this.data.docType};break;case"inq_curr_181":It="/ved/metib-currency-transaction-info",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case"inq_conf_181":It="/ved/dealpass-documents",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case"dealpass_close_181":It="/ved/deregistration-statement",Ot={action:"copy",id:this.data.docId,docType:this.data.docType};break;case m.o.DocPlatporCurrBp:It=`/ved/${Ei.q.COMPLEX_PAYMENT_NO_ATTACH}`,Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case m.o.DocPlatporCurrComplex:It=`/ved/${Ei.q.COMPLEX_PAYMENT}`,Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case"dealpass_renew_181":It="/ved/changes-statement",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case"doc_interbnk_currency_transfer":It="/ved/transfer-curr-interbank",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case"inq_statement_181":this.pending.emit(!1),this.dialog.open(pi,{...pi.defaultSettings,data:{action:"copy",id:this.data.docId}});break;case"doc_currsell":case"doc_currbuy":case"doc_platpor_conv":case"online_conversion_doc":Ot={},this.vedService.requestDocumentInfo({docModule:"ibankul_curr",docType:this.data.docType,id:this.data.docId}).subscribe(fn=>{It=`currency-exchange/${this.getCurrencyExchangeUrl(fn)}`,this.applicationCurrencyExchange.fill(fn)});break;case"doc_platpor_curr":It="/ved/transfer-curr",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case m.o.DocPlatporCurrTg:case m.o.DocPlatporCurrTgOv:It="/ved/transfer-curr-tg",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case m.o.DocPlatporBp:It="/transfer-rur-cti",Ot={prefill:!1,id:this.data?.mibUpsDocID??this.data.docId,docType:this.data.docType,action:"copy"};break;case m.o.TransferRests:It="/balance-transfer",Ot={prefill:!1,id:this.data?.mibUpsDocID??this.data.docId,docType:this.data.docType,action:"copy"};break;case"doc_transit_pay_doc":It="/ved/transit-acc-order",Ot={id:this.data.docId,docType:this.data.docType,action:"copy"};break;case"sbp_trade_service_enterprise":It="/sbp-qr/tcp-form",Ot={id:this.data.docId,action:"copy"};break;case"sbp_qr_cash_register":It="/sbp-qr/cashbox-form",Ot={id:this.data.docId,action:"copy"};break;default:this.documentService.createDocumentCopy(this.data.docId,this.data.docType,this.data.docModule).subscribe(fn=>{this.documentService.paymentData$.next(fn),this.pending.emit(!1),this.router.navigate(["/transfer-rur"],{queryParams:{prefill:!1}})})}this.data.fromTab&&Ot&&(Ot.fromTab=this.data.fromTab),It&&this.router.navigate([It],{queryParams:Ot})}createCorrection(){if([m.o.InqConf181,m.o.InqCurr181].includes(this.data.docType)){this.pending.emit(!0);const fn={id:this.data.docId,docType:this.data.docType,action:"correct",...this.data.fromTab?{fromTab:this.data.fromTab}:{},...this.data.innerTab?{innerTab:this.data.innerTab}:{}};this.router.navigate([this.data.docType===m.o.InqConf181?"/ved/dealpass-documents":"ved/metib-currency-transaction-info"],{queryParams:fn})}}showSigns(){this.pending.emit(!0),this.apiService.get(`document/signature/metinv?doc_id=${this.data.docId}`).subscribe(It=>{this.pending.emit(!1),It&&(It=this.configUtilService.getArray(It.signature),this.modalService.open(wt.M,{header:"Electronic Document Signatures",size:"big",inputs:{sings:It}}))})}fixRate(){this.pending.emit(!0),this.documentService.getDocumentById(this.data.docModule||"ibankul_curr",this.data.docType,this.data.docId).subscribe(It=>{this.pending.emit(!1),It&&this.modalService.open(Dt.G,{header:"precheck_conversion"===this.data.docType?"RUR"===(It.preCheckConversion||{}).creditCurrCodeIso?"Sale of currency":"Purchase of currency":"Currency exchange",size:"big",inputs:{data:It}})})}documentSignDelete(){const It={isModalDesign:!0,operation:{...this.data,docIds:this.data.docId},deletionDone:()=>{this.actionDone.emit(this.type)}};this.modalService.open(Ze.n,{header:"Delete sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:It})}sendToBank(){this.data&&this.data.docId&&this.data.docType&&this.data.docModule?this.documentService.sendDocument(this.data.docModule,this.data.docType,this.data.docId).subscribe(()=>{this.toast.show("Success","success")},It=>{this.toast.show(It.errorText,"error")},()=>{this.actionDone.emit(this.type)}):this.actionDone.emit(this.type)}goToWithdrawalOrder(){this.router.navigate(["/ved/transit-acc-order"],{queryParams:{id:this.data.docId,action:"withdrawalOrder"}})}createPayment(){this.operationService.createPayment(this.data.operation)}reissue(){this.router.navigate(["certificates/create"],{queryParams:{action:"reissue"}})}turnOff(){this.router.navigate(["certificates/create"],{queryParams:{action:"turnOff"}})}createApplication(){this.vedService.requestDocumentInfo({docModule:"ibankul_curr",docType:this.data.docType,id:this.data.docId}).pipe((0,we.w)(It=>this.vedService.requestDocumentInfo({docModule:"ibankul_curr",docType:"fixed_rate",id:It.fixedRateId}).pipe((0,Ge.U)(Ot=>Ot?{...It,useClientCourse:"true"===Ot.fixedRateByClientRate,dealType:"BY_BANK"===Ot.fixedRateMode?"FromBank":"FromExchange"}:null)))).subscribe(It=>{if(!It)return void this.toast.show("Server error","error");const Ot="currency-exchange/online/"+("CB"===It.draftType?"buying":"CF"===It.draftType?"repayment-factoring":"sale");this.draftApplicationCurrencyExchange.fill(It),this.router.navigate([Ot]).then()})}accept(){switch(this.data.docType){case"request_accept_no_accept":if(this.data.operation?.requestId)this.openSignAcceptanceModal(this.type,{docModule:this.data.docModule,docType:this.data.docType,id:this.data.operation.requestId});else{const fn={accId:this.data.operation.accountId.toString(),acceptAmount:this.data.operation.amount.toString(),cause:this.data.operation.cause,acceptType:this.data.operation.type,paymentRequestDocId:this.data.docId};this.cardIndexService.createMetibAccept(fn,this.data.operation.paymentDoc).pipe((0,xe.R)(this.$unsubscribe)).subscribe({next:_i=>{null!==_i?this.openSignAcceptanceModal(this.type,_i):this.actionDone.emit(this.type)}})}break;case"confirm_irreducible_balance":case"confirm_cash_placement":this.documentSignService.setPathData({href:"/deposits",params:{tab:"depositsConfirm"}}),this.router.navigate(["/document-details"],{queryParams:{docId:this.data.docId,docType:this.data.docType,docModule:this.data.docModule,fromTab:this.data.fromTab}})}}refuse(){this.modalService.open(Yt.L,{header:"Decline",inputs:{operation:{docIds:this.data.docId},declinenDone:()=>{this.actionDone.emit(this.type)}}})}withdraw(){this.modalService.open(Yt.L,{header:"Withdraw",docType:this.data.docType,inputs:{text:"Are you sure you want to withdraw the application?",operation:{docIds:this.data.docId,data:this.data.document},declinenDone:()=>{this.actionDone.emit(this.type)}}})}requestCancel(It){this.router.navigate(["/recall-order"],{queryParams:{docId:It.docId,docType:It.docType,docModule:It.docModule}})}declineRequest(It){this.dialog.open(je,q).afterClosed().pipe((0,we.w)(Ot=>Ot.resultCode===Oe.Success&&It?this.documentService.revokeRequest(It.docId||It.id,It.docType,Ot.recallReason):(0,G.of)(null)),(0,xe.R)(this.$unsubscribe)).subscribe({next:Ot=>{this.actionDone.emit(Ot?.id?"decline_request":"cancel")},error:Ot=>{this.toast.errorHandle(Ot?.errorText||"An error has occurred. Please try again later.")}})}topUpDeposit(){this.documentService.checkCreatePayment(this.data.docId).pipe((0,xe.R)(this.$unsubscribe)).subscribe({next:It=>{const Ot=this.configUtilService.getBoolean(It.isPaymentFound),fn=this.configUtilService.getBoolean(It.possibilityRepeatedPayment);Ot?this.dialog.open(Et.S,{...dt._,data:{modalTitle:"Payment documents found",modalText:fn?"Payment documents already exist. Continue with the operation?":"Payment documents already exist",buttonTextPrimary:fn?"Interrupt":"Cancel",...fn?{buttonTextSecondary:"Continue"}:{}}}).afterClosed().pipe((0,xe.R)(this.$unsubscribe)).subscribe(Xn=>{Xn===dt.J.ButtonSecondary&&fn&&this.createPaymentFromDeposit()}):this.createPaymentFromDeposit()},error:()=>{this.toast.errorHandle("An error has occurred. Please try again later.")}})}createPaymentFromDeposit(){let Ot={};if(!Dn.G1.includes(this.data.currCode))return Ot={docId:this.data.docId,docModule:this.data.docModule,docType:this.data.docType},void this.router.navigate(["payments"],{queryParams:Ot});this.vedService.requestDocumentInfo({docModule:this.data.docModule,docType:this.data.docType,id:this.data.docId}).subscribe(fn=>{Ot={...this.data.paymentData,contractNumber:fn.depositNumber,action:this.data.action},this.router.navigate(["/transfer-rur"],{queryParams:Ot})})}printSwift(){const It=window.open("","print","popup");It.document.body.innerText=this.data.swiftMessage,It.document.execCommand("print"),window.focus()}requestSwift(){this.dialog.open(Et.S,{...dt._,data:{modalTitle:"Currency transfer SWIFT request",modalText:"Provide SWIFT for currency transfer. I am familiar with the Bank's commission.",buttonTextPrimary:"Confirm",buttonTextSecondary:"Cancel"}}).afterClosed().subscribe(Ot=>{this.pending.emit(!1),Ot===dt.J.ButtonPrimary&&this.vedService.transferAddSwift(this.data.docId).subscribe(()=>{this.toast.show("Success","success")},()=>{this.toast.show("Server error","error")},()=>{this.data?.callback&&this.data.callback()})})}downloadSwift(){this.documentService.getFile(`metinv/curr/transfer/save/swift?doc_id=${this.data.docId}`,!0).subscribe()}printAwiso(){(0,l.D)([this.userDataService.getCurrentRoles(),this.vedService.requestDocumentInfo({docModule:"ibankul_curr",docType:"notification_crediting",id:this.data.docId})]).pipe((0,Ge.U)(([It,Ot])=>{const fn=new Set(It);return{docNumber:Ot.docNumber,docDate:ne()(Ot.docDate).format("YYYY/MM/DD"),isClientBank:fn.has(ct.NZ)}})).subscribe(({docNumber:It,docDate:Ot,isClientBank:fn})=>{this.documentService.getFile(`pay/notification_crediting_metinv${fn?"/txt_file":""}?docNumber=${It}&docDate=${Ot}`)})}createCTI(){this.router.navigate(["/ved/metib-currency-transaction-info"],{queryParams:{id:this.data.docId,docType:this.data.docType,fromTab:this.data.fromTab||"documents"}})}createIncomingIdentification(){this.data.clientId?this.router.navigate(["/ved/metib-currency-transaction-info"],{queryParams:{notificationCreditingId:this.data.notificationCreditingId,docType:m.o.IncomingIdentification,fromTab:this.data.fromTab||"receipts"}}):this.toast.errorHandle("Failed to determine company id")}continueProcessingApplication(){var It=this;return(0,i.Z)(function*(){const Ot="Factoring"===It.data.document.fixedRateConversionType?"factoring":"RUR"===It.data.document.creditIso?"sale":"buy",fn="factoring"===Ot?"repayment-factoring":"buy"===Ot?"buying":Ot;It.fixedRateApplicationCurrencyExchange.fill(It.data.document,Ot),yield It.router.navigate([`/currency-exchange/online/${fn}`])})()}advanceAccept(){this.router.navigate(["acceptance/request_advance_accept"],{queryParams:{cardIndexDocId:this.data.docId}})}acceptPartly(It=null){this.modalService.open(lt,{header:"Accept partly",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:{acceptId:It||this.data?.operation?.requestId,operationAmount:this.data?.operation?.amount||null,accId:this.data?.operation?.accountId?.toString()||null,paymentRequestDocId:this.data?.docId||null,paymentRequestData:this.data?.operation?.paymentDoc||null,done:Ot=>{null!==Ot?this.openSignAcceptanceModal(this.type,Ot):this.actionDone.emit(this.type)}}})}declineAccept(It=null){this.modalService.open(Ht,{header:"Refuse acceptance",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:{acceptId:It||this.data?.operation?.requestId,accId:this.data?.operation?.accountId?.toString()||null,paymentRequestDocId:this.data?.docId||null,paymentRequestData:this.data?.operation?.paymentDoc||null,done:Ot=>{null!==Ot?this.openSignAcceptanceModal(this.type,Ot):this.actionDone.emit(this.type)}}})}getCurrencyExchangeUrl(It){let Ot;const fn=this.lastOperationsService.getSessionStorage(this.userDataService.STORAGE_NAME_CURRENCY_EXCHANGE_MODE)??"precheck";switch(It.docType){case"doc_currbuy":Ot=`${fn}/buying`;break;case"doc_currsell":Ot=`${fn}/sale`;break;case"doc_platpor_conv":Ot=`${fn}/conversion`;break;case"doc_curr_agent_factoring":Ot=`${fn}/repayment-factoring`;break;case"precheck_conversion":Ot="precheck/"+("RUR"===It.creditCurrCodeIso?"sale":"buying");break;case"online_conversion_doc":Ot=`online/${dn.getOnlineDocumentUrl(It.docType)}`;break;case"doc_draft_buysell":Ot="online/"+("CB"===It.draftType?"buying":"sale")}return Ot}printLast(){this.operationService.printOperation(this.data.docId,this.data.docNumber).pipe((0,xe.R)(this.$unsubscribe)).subscribe()}downloadXML(){this.sbpApiService.getXML(this.data.docId).subscribe(It=>{const Ot=URL.createObjectURL(It),fn=document.createElementNS("http://www.w3.org/1999/xhtml","a");fn.setAttribute("href",Ot),fn.style.cssText="display: none",fn.download=this.docName,document.body.appendChild(fn),fn.addEventListener("click",()=>{document.body.removeChild(fn)}),fn.click()})}printBPX(){this.operationService.printBPX(this.data.docId).pipe((0,xe.R)(this.$unsubscribe)).subscribe()}printForContragent(){this.documentService.getFile(`print/pdf?doc_ids=${this.data.docId}&print_type=for_contragent`).pipe((0,xe.R)(this.$unsubscribe)).subscribe(()=>{this.pending.emit(!1)})}sendPrintForm(){this.modalService.open(ot.K,{header:"Sending to email",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:{id:this.data.docId}})}openSignModal(){this.modalService.open(vn.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!1,documents:[{docType:this.data.docType,docModule:this.data.docModule,docId:this.data.docId}],done:It=>{It.length&&(this.toast.show(It,"success"),this.actionDone.emit("sign"))}}})}openSignModalAlt(It){let Ot=[],fn=!1;this.data.docType===m.o.DocNso&&(Ot=this.packageSignModalService.generateSignModalParams(this.data),fn=!0);const Xn=[];Xn.push(It?.id?It?.id:this.data.docId),this.modalService.open(a.D,{inputs:{confirmAction:()=>{this.toast.show("\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d","success"),this.actionDone.emit("sign"),this.modalService.close()},cancelAction:()=>{this.modalService.close()},document:{docIds:Xn,docType:It?.docType||this.data.docType,docModule:It?.docModule||this.data.docModule},paramsWithInfoItems:Ot,isShowParams:fn},isSign:!0,isSignDesign:!0})}openSignAcceptanceModal(It,Ot){this.modalService.open(vn.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!1,documents:[{docType:Ot.docType,docModule:Ot.docModule,docId:Ot.id}],done:fn=>{fn.length&&this.toast.show(fn,"success"),this.actionDone.emit(It)},closeWithoutSignCompleted:()=>{this.actionDone.emit(It)}}})}openDeleteUserModal(){this.modalService.open(E,{inputs:{userId:this.data.docId,userFullName:this.data.fullName,userSignType:this.data.signType,confirmAction:It=>{this.openSignModalAlt(It)}},header:"Disabling user",styleMode:"forSign",overflow:"initial",size:"auto-width",withCloseButton:!0})}view(){this.router.navigate(["/sbp-qr/code-form"],{queryParams:{id:this.data.docId,action:"view"}})}declineDocument(It,Ot){this.documentService.executeActionDocument(this.data.docId,It,Ot).pipe((0,xe.R)(this.$unsubscribe)).subscribe({next:fn=>{if(fn?.controlErrorMessage){const Xn={...fn,error:fn.controlErrorMessage};this.toast.errorHandle(Xn,"fullRed")}this.actionDone.emit(It)},error:fn=>this.toast.errorHandle(fn)})}confirmTgReceiptOfFunds(){this.modalService.open(u.e,{header:"Confirm receipt of funds",styleMode:"forSign",inputs:{additionalText:"Confirm receipt of funds description",confirmBtnText:"Just Send",cancelBtnText:"",isCompactModal:!0,confirmAction:()=>{this.vedService.confirmTgReceiptOfFunds(this.data.docId).subscribe({next:()=>{this.actionDone.emit(this.type)}})}}})}static#e=this.\u0275fac=function(Ot){return new(Ot||dn)(n.\u0275\u0275directiveInject(Z.Z),n.\u0275\u0275directiveInject(no.f),n.\u0275\u0275directiveInject(O.Z),n.\u0275\u0275directiveInject(gt.F0),n.\u0275\u0275directiveInject(Qo.s),n.\u0275\u0275directiveInject(Rt.Pj),n.\u0275\u0275directiveInject(Mo.Y),n.\u0275\u0275directiveInject(vt.$),n.\u0275\u0275directiveInject(Tn.uw),n.\u0275\u0275directiveInject(w.j),n.\u0275\u0275directiveInject(B.M),n.\u0275\u0275directiveInject(gt.gz),n.\u0275\u0275directiveInject(po.Y),n.\u0275\u0275directiveInject(Io._),n.\u0275\u0275directiveInject(en.v),n.\u0275\u0275directiveInject(Hn.y),n.\u0275\u0275directiveInject(tt.F),n.\u0275\u0275directiveInject(nt.V),n.\u0275\u0275directiveInject(De.a),n.\u0275\u0275directiveInject(ve.o),n.\u0275\u0275directiveInject(Se.f),n.\u0275\u0275directiveInject(Me.Y),n.\u0275\u0275directiveInject(We.w),n.\u0275\u0275directiveInject(oe.$),n.\u0275\u0275directiveInject(ut.l),n.\u0275\u0275directiveInject(ue.i))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:dn,selectors:[["app-button-action"]],inputs:{color:"color",inSelectMenu:"inSelectMenu",type:"type",docName:"docName",data:"data"},outputs:{clicked:"clicked",pending:"pending",actionDone:"actionDone",returnData:"returnData"},features:[n.\u0275\u0275InheritDefinitionFeature],decls:8,vars:13,consts:[["data-qa","1658987991452",1,"button-action",3,"click"],[1,"button-action__icon-wrap"],[4,"ngIf","ngIfElse"],["matIconTemplate",""],[3,"svgClass","icon"],[3,"class","fontSet",4,"ngIf"],[3,"class","svgIcon",4,"ngIf"],[3,"fontSet"],[3,"svgIcon"]],template:function(Ot,fn){if(1&Ot&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275listener("click",function(){return fn.buttonActionClick()}),n.\u0275\u0275elementStart(1,"div",1),n.\u0275\u0275template(2,Ae,2,2,"ng-container",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div"),n.\u0275\u0275text(4),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(6,Pt,2,2,"ng-template",null,3,n.\u0275\u0275templateRefExtractor)),2&Ot){const Xn=n.\u0275\u0275reference(7);n.\u0275\u0275classProp("disabled",fn.data.disabled)("selectable",fn.inSelectMenu),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",fn.button&&fn.button.icon)("ngIfElse",Xn),n.\u0275\u0275advance(1),n.\u0275\u0275classMap((fn.color?fn.color:"")+" button-action__capture"),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(5,10,fn.button.text,fn.lang)," ")}},dependencies:[e.O5,et.b,At.Hw,h.X$],styles:['@charset "UTF-8";.button-action[_ngcontent-%COMP%]{display:flex;cursor:pointer;font-size:18px;color:#88909b;width:-moz-fit-content;width:fit-content;align-items:center}.button-action[_ngcontent-%COMP%]:hover{color:#284681}[_nghost-%COMP%]     .button-action:hover .button-action__icon{fill:#284681}.button-action.selectable[_ngcontent-%COMP%]{width:100%;padding:15px;font-size:14px;align-items:center}.button-action.selectable[_ngcontent-%COMP%]:hover{background-color:#f1f2f2;color:#444}[_nghost-%COMP%]     .button-action.selectable:hover:hover .button-action__icon{fill:#444}  .alt-document-list-item-group-open-content .button-actions .button-action.selectable{width:100%;padding:15px;font-size:14px}  .alt-document-list-item-group-open-content .button-actions .button-action.selectable:hover{background-color:inherit;color:inherit}  .alt-document-list-item-group-open-content .button-actions .button-action.selectable:hover .button-action__icon{color:inherit}.button-action__icon-wrap[_ngcontent-%COMP%]{margin-right:16px;display:flex;align-items:center}[_nghost-%COMP%]     .button-action__icon{width:19px;height:19px;fill:#88909b}[_nghost-%COMP%]     .button-action__icon.primary{fill:#284681}.button-action__capture[_ngcontent-%COMP%]{white-space:nowrap}.button-action__capture.primary[_ngcontent-%COMP%]{color:#284681}']})}(0,d.gn)([(0,h.SQ)()],dn.prototype,"lang",void 0);const St=function(Nt){return{"with-divider":Nt}};function jt(Nt,It){if(1&Nt){const Ot=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"li",2)(1,"app-button-action",3),n.\u0275\u0275listener("actionDone",function(Xn){n.\u0275\u0275restoreView(Ot);const _i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(_i.onActionDone(Xn))})("returnData",function(Xn){n.\u0275\u0275restoreView(Ot);const _i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(_i.onActionData(Xn))})("clicked",function(){const _i=n.\u0275\u0275restoreView(Ot).$implicit,ci=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(ci.onButtonClick(_i.type))})("pending",function(Xn){n.\u0275\u0275restoreView(Ot);const _i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(_i.onPending(Xn))}),n.\u0275\u0275elementEnd()()}if(2&Nt){const Ot=It.$implicit,fn=It.index,Xn=It.last,_i=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(8,St,_i.showDivider&&!Xn)),n.\u0275\u0275attribute("data-qa","1658988360687"+fn),n.\u0275\u0275advance(1),n.\u0275\u0275property("color",Ot.color)("data",Ot.data)("inSelectMenu",_i.inSelectMenu)("type",Ot.type)("docName",_i.docName),n.\u0275\u0275attribute("data-qa","1658988379169"+fn)}}const ht=function(Nt,It){return{"select-menu":Nt,"buttons-row":It}};let on=(()=>{class Nt{constructor(){this.inSelectMenu=!1,this.isButtonsRow=!1,this.showDivider=!1,this.buttonClicked=new n.EventEmitter,this.buttonPending=new n.EventEmitter,this.actionDone=new n.EventEmitter,this.returnData=new n.EventEmitter}ngOnInit(){}onButtonClick(Ot){this.buttonClicked.emit(Ot)}onPending(Ot){this.buttonPending.emit(Ot)}onActionDone(Ot){this.actionDone.emit(Ot)}onActionData(Ot){this.returnData.emit(Ot)}static#e=this.\u0275fac=function(fn){return new(fn||Nt)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:Nt,selectors:[["app-button-actions"]],inputs:{buttons:"buttons",inSelectMenu:"inSelectMenu",isButtonsRow:"isButtonsRow",showDivider:"showDivider",docName:"docName"},outputs:{buttonClicked:"buttonClicked",buttonPending:"buttonPending",actionDone:"actionDone",returnData:"returnData"},decls:2,vars:5,consts:[[1,"button-actions",3,"ngClass"],["class","button-actions__item",3,"ngClass",4,"ngFor","ngForOf"],[1,"button-actions__item",3,"ngClass"],[3,"color","data","inSelectMenu","type","docName","actionDone","returnData","clicked","pending"]],template:function(fn,Xn){1&fn&&(n.\u0275\u0275elementStart(0,"ul",0),n.\u0275\u0275template(1,jt,2,10,"li",1),n.\u0275\u0275elementEnd()),2&fn&&(n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction2(2,ht,Xn.inSelectMenu,Xn.isButtonsRow)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",Xn.buttons))},dependencies:[e.mk,e.sg,dn],styles:['@charset "UTF-8";.button-actions[_ngcontent-%COMP%]{border-left:1px solid #dedede;padding:0 30px;width:100%}.button-actions.select-menu[_ngcontent-%COMP%]{border-left:none;padding:0}.button-actions.select-menu[_ngcontent-%COMP%]   .button-actions__item[_ngcontent-%COMP%]{padding:0}.button-actions.select-menu[_ngcontent-%COMP%]   .button-actions__item.with-divider[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.button-actions.buttons-row[_ngcontent-%COMP%]{border-left:none;padding:0;display:flex;flex-direction:row;justify-content:flex-start;flex-wrap:wrap}.button-actions__item[_ngcontent-%COMP%]{padding:11px 0}.button-actions__item[_ngcontent-%COMP%]:first-child{padding:0 0 11px}.button-actions__item[_ngcontent-%COMP%]:last-child{padding:11px 0 0}.button-actions__item[_ngcontent-%COMP%]:first-child:last-child{padding:0}']})}return Nt})()},38360:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>u});var n=t(36895),e=t(16611),i=t(48038),d=t(97392),a=t(94650);let u=(()=>{class h{static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275mod=a.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.ez,i.Y,e.qw,d.Ps]})}return h})()},90995:(Ee,Q,t)=>{"use strict";t.d(Q,{r:()=>a});var n=t(97582),e=t(94650),i=t(16611),d=t(36895);class a{constructor(){this.btnClass="",this.isBold=!1,this.clicked=new e.EventEmitter}ngOnInit(){}onClick(){this.disabled||this.clicked.emit()}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-button"]],inputs:{btnClass:"btnClass",isBold:"isBold",type:"type",text:"text",disabled:"disabled"},outputs:{clicked:"clicked"},decls:3,vars:9,consts:[["data-qa","1658987981978",1,"panel-form__button",3,"ngClass","click"]],template:function(l,m){1&l&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return m.onClick()}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&l&&(e.\u0275\u0275classProp("bold",m.isBold)("disabled",m.disabled),e.\u0275\u0275property("ngClass",m.type+" "+m.btnClass),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,6,m.text,m.lang),"\n"))},dependencies:[d.mk,i.X$],styles:['@charset "UTF-8";[_nghost-%COMP%]{min-height:42px;outline:none;height:-moz-fit-content;height:fit-content}@media screen and (min-width: 375px) and (max-width: 768px){[_nghost-%COMP%]{width:100%}}.disabled[_nghost-%COMP%]{pointer-events:none;opacity:.4}.panel-form__button[_ngcontent-%COMP%]{white-space:nowrap;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);text-align:center;padding:12px 40px;display:flex;align-items:center;cursor:pointer;border-radius:5px;color:#fff;justify-content:center;height:100%;width:initial!important;transition:background .2s ease,opacity .2s ease}.panel-form__button[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%]{background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);cursor:not-allowed;pointer-events:none}.panel-form__button.small-bordered[_ngcontent-%COMP%]{background:none;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.panel-form__button.email[_ngcontent-%COMP%]{margin-bottom:30px;height:62px;padding:0}.panel-form__button.last-email[_ngcontent-%COMP%]{height:62px;margin-bottom:0;padding:0}.panel-form__button.white[_ngcontent-%COMP%]{background-color:#fff}.panel-form__button.large[_ngcontent-%COMP%]{line-height:62px}.panel-form__button.bordered[_ngcontent-%COMP%]{background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.panel-form__button.header[_ngcontent-%COMP%]{background:#2f54eb;padding:14px 28px;font-size:14px;line-height:19px;font-weight:600}.panel-form__button.link[_ngcontent-%COMP%]{font-weight:600;font-size:14px;line-height:20px;display:flex;align-items:center;color:#2f54eb;background:none;padding:0;width:-moz-fit-content;width:fit-content}.large[_ngcontent-%COMP%]{height:62px;padding:0 48px}.large[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%]{background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);cursor:not-allowed}.large.pale[_ngcontent-%COMP%]{background:#fff;color:#444;border:1px solid #dedede}.default[_ngcontent-%COMP%]{font-size:16px;color:#444;border:1px solid #dedede;background:transparent;transition:background-color .2s ease}.default[_ngcontent-%COMP%]:hover{background:#dedede}.dark-blue[_ngcontent-%COMP%]{background:#2f54eb;border-radius:4px;min-width:140px;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:19px;box-sizing:border-box;width:-moz-fit-content;width:fit-content;padding:13px 38px}.primary-small[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border:1px solid #2f54eb;border-radius:4px;padding:10px;min-width:160px;outline:none;font-style:normal;font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#2f54eb;background:none;margin-bottom:0;min-height:unset}.dark-blue-large[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;background:#2f54eb;border-radius:4px;padding:14px 28px;height:48px;font-weight:600;font-size:14px}.dark-blue-large-alba[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;background:#2f54eb;border-radius:4px;padding:14px 28px;height:48px;font-weight:600;font-size:14px;width:186px!important}@media screen and (min-width: 375px) and (max-width: 768px){.dark-blue-large-alba[_ngcontent-%COMP%]{width:100%!important}}.dark-blue-medium[_ngcontent-%COMP%]{background:#2f54eb;border-radius:4px;font-style:normal;font-weight:600;font-size:16px;line-height:22px;text-align:center;padding:13px 38px;height:-moz-fit-content;height:fit-content;color:#fff;font-family:Open Sans,sans-serif}.medium-for-sign[_ngcontent-%COMP%]{background:#2f54eb;border-radius:4px;font-style:normal;font-weight:700;font-size:16px;line-height:22px;text-align:center;padding:14px 28px;height:50px;color:#fff;font-family:Open Sans,Source Sans Pro,sans-serif}.medium-for-sign-white[_ngcontent-%COMP%]{background:#ffffff;color:#2f54eb;border:1px solid #2f54eb;font-style:normal;font-weight:600;padding:14px 28px;font-family:Open Sans,Source Sans Pro,sans-serif;height:50px;border-radius:4px}.medium-for-sign-survey[_ngcontent-%COMP%]{background:#ffffff;color:#2f54eb;border:1px solid #2f54eb;border-radius:4px;padding:14px 28px;font-style:normal;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;font-weight:600;height:48px}.medium-for-sign-survey-blue[_ngcontent-%COMP%]{background:#2f54eb;color:#fff;border-radius:4px;padding:14px 28px;font-style:normal;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;line-height:22px;text-align:center;height:48px}.medium-for-sign-mail[_ngcontent-%COMP%]{background:#ffffff;color:#2f54eb;border:1px solid #2f54eb;font-style:normal;font-weight:600;padding:14px 28px;font-family:Open Sans,Source Sans Pro,sans-serif;border-radius:4px;height:48px;font-size:14px}.medium-for-sign-gray[_ngcontent-%COMP%]{background:#f1f2f2;color:#2f54eb;border:1px solid #2f54eb;font-style:normal;font-weight:600;padding:14px 28px;font-family:Open Sans,Source Sans Pro,sans-serif;border-radius:4px;height:48px;font-size:14px}.empty-bordered[_ngcontent-%COMP%]{background:none;color:#2f54eb;border:1px solid #2f54eb;font-style:normal;font-weight:600;padding:10px 24px;font-family:Open Sans,Source Sans Pro,sans-serif;height:-moz-fit-content;height:fit-content;font-size:14px;border-radius:4px}.bold[_ngcontent-%COMP%]{font-weight:600}.spb-qr-refund__button[_ngcontent-%COMP%]{border-radius:4px;background:#2f54eb}.sbp-registry__button[_ngcontent-%COMP%]{height:36px;width:104px!important;background:none;color:#444;border-radius:4px;border:1px solid #88909b;font-family:Open Sans,sans-serif;font-weight:400;font-size:14px}.sbp-generate-qr-code[_ngcontent-%COMP%]{font-weight:600;font-size:14px;line-height:20px;border-radius:4px;background:#2f54eb}']})}(0,n.gn)([(0,i.SQ)()],a.prototype,"lang",void 0)},74471:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>d});var n=t(36895),e=t(16611),i=t(94650);let d=(()=>{class a{static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275mod=i.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=i.\u0275\u0275defineInjector({imports:[n.ez,e.qw]})}return a})()},56470:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>d});var n=t(63900),e=t(94650),i=t(40451);let d=(()=>{class a{constructor(h){this.chatService=h,this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.chatService.getChat().pipe((0,n.w)(h=>(this.chatInstance=h?h.chat:null,this.chatService.getUnread()))).subscribe(h=>this.chatUnread=h))}ngOnDestroy(){this.chatInstance&&(this.chatInstance.close(),this.chatInstance.logout(),this.chatInstance.destroy(),this.cleanApplicationFromChat()),this.chatService.chartCreatedCache$=null,this.chatService.chatSettingsCache$=null,this.subscriptions.forEach(h=>h.unsubscribe())}cleanApplicationFromChat(){const h=document.getElementById("iqchannels-widget-container"),l=document.getElementById("iqchannels-widget-icon");document.querySelectorAll("script").forEach(x=>{x.src.indexOf("widget.min.js")>-1&&document.body.removeChild(x)}),h&&document.body.removeChild(h),l&&document.body.removeChild(l)}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275directiveInject(i.a))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-chat"]],decls:3,vars:2,consts:[["id","chat-container",1,"chat-container"],[1,"message-counter",3,"hidden"]],template:function(l,m){1&l&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&l&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!m.chatUnread),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",m.chatUnread<10?m.chatUnread:"9+"," "))},styles:['@charset "UTF-8";.message-counter[_ngcontent-%COMP%]{position:fixed;right:20px;bottom:66px;width:20px;height:20px;color:#fff;font-size:12px;line-height:20px;text-align:center;border-radius:50%;background-color:#2f54eb;z-index:998!important}']})}return a})()},25781:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>h});var n=t(97582),e=t(94650),i=t(16611),d=t(11260),a=t(36895);function u(l,m){if(1&l&&(e.\u0275\u0275elementStart(0,"a",8),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&l){const x=e.\u0275\u0275nextContext(),O=e.\u0275\u0275reference(3);e.\u0275\u0275classProp("checkbox__label_active",O.checked),e.\u0275\u0275property("href",x.url,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,4,x.label,x.lang))}}class h{constructor(){this.padding=0,this.checkboxChange=new e.EventEmitter}checkBoxValueChange(m){this.checkboxChange.emit(m)}ngOnInit(){}static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:h,selectors:[["app-checkbox"]],inputs:{label:"label",value:"value",name:"name",all:"all",chosen:"chosen",padding:"padding",disabled:"disabled",url:"url"},outputs:{checkboxChange:"checkboxChange"},decls:10,vars:21,consts:[[1,"checkbox-wrap"],[1,"checkbox"],["data-qa","1658988039930","type","checkbox",1,"checkbox__input",3,"checked","disabled","name","value","change"],["checkbox",""],[1,"checkbox__custom"],["icon","check",3,"hidden","svgClass"],[1,"checkbox__label"],["target","_blank","class","checkbox-link",3,"checkbox__label_active","href",4,"ngIf"],["target","_blank",1,"checkbox-link",3,"href"]],template:function(x,O){if(1&x&&(e.\u0275\u0275elementStart(0,"div",0)(1,"label",1)(2,"input",2,3),e.\u0275\u0275listener("change",function(w){return O.checkBoxValueChange(w)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",4),e.\u0275\u0275element(5,"app-svg-icon",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"span",6),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,u,3,7,"a",7),e.\u0275\u0275elementEnd()()),2&x){const L=e.\u0275\u0275reference(3);e.\u0275\u0275styleProp("margin-bottom",O.padding,"px")("margin-top",O.padding,"px"),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("disabled",O.disabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("checked",O.chosen)("disabled",O.disabled)("name",O.name)("value",O.value),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("clicked",L.checked),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!L.checked)("svgClass",O.all?"checkbox__icon-all":"checkbox__icon"),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("checkbox__label_active",L.checked),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(8,18,O.label,O.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",O.label&&O.url)}},dependencies:[d.b,a.O5,i.X$],styles:['@charset "UTF-8";.checkbox-wrap[_ngcontent-%COMP%]{display:flex}.checkbox[_ngcontent-%COMP%]{display:flex;cursor:pointer}@media screen and (max-width: 768px){.checkbox[_ngcontent-%COMP%]{align-items:center}}[_nghost-%COMP%]     .checkbox__icon{width:20px;height:20px;fill:#2f54eb}[_nghost-%COMP%]     .checkbox__icon-all{width:20px;height:20px;fill:#fff}.checkbox__label[_ngcontent-%COMP%]{margin-left:10px;color:#88909b}.checkbox__label_active[_ngcontent-%COMP%]{color:#444}.checkbox__custom[_ngcontent-%COMP%]{min-width:20px;min-height:20px;width:20px;height:20px;border:2px solid #dedede;border-radius:3px;position:relative;line-height:0}.checkbox__custom[_ngcontent-%COMP%]:hover{border-color:#2f54eb}.checkbox__custom.clicked[_ngcontent-%COMP%]{border:none}.checkbox__custom[_ngcontent-%COMP%], .checkbox__label[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.checkbox__input[_ngcontent-%COMP%]{display:none}.checkbox-link[_ngcontent-%COMP%]{color:#2f54eb!important;margin-left:5px}'],changeDetection:0})}(0,n.gn)([(0,i.SQ)()],h.prototype,"lang",void 0)},57639:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>d});var n=t(16611),e=t(48038),i=t(94650);let d=(()=>{class a{static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275mod=i.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=i.\u0275\u0275defineInjector({imports:[e.Y,n.qw]})}return a})()},65266:(Ee,Q,t)=>{"use strict";t.d(Q,{C:()=>O});var n=t(97582),e=t(16611),i=t(94650),d=t(36895);function a(L,w){if(1&L&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&L){const B=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(B.text)}}function u(L,w){1&L&&i.\u0275\u0275projection(0)}function h(L,w){if(1&L&&(i.\u0275\u0275elementStart(0,"div",6),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&L){const B=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(B.additionalText)}}function l(L,w){if(1&L){const B=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",7),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(B);const y=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(y.collapseToggle())}),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()}if(2&L){const B=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",B.isCollapseOpen?"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435"," ")}}const m=function(L){return{cut:L}},x=["*"];class O{constructor(){this.isCollapseOpen=!1,this.showCollapseButton=!0}ngOnInit(){this.showCollapseButton||(this.isCollapseOpen=!0)}collapseToggle(){this.isCollapseOpen=!this.isCollapseOpen}static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:O,selectors:[["app-collapse-text-block"]],inputs:{text:"text",additionalText:"additionalText",isCollapseOpen:"isCollapseOpen",showCollapseButton:"showCollapseButton"},ngContentSelectors:x,decls:7,vars:7,consts:[[1,"collapse-text-block"],[1,"collapse-text-block__text",3,"ngClass"],[4,"ngIf","ngIfElse"],["contentTpl",""],["class","collapse-text-block__text__additional-info",4,"ngIf"],["class","collapse-text-block__button",3,"click",4,"ngIf"],[1,"collapse-text-block__text__additional-info"],[1,"collapse-text-block__button",3,"click"]],template:function(B,_){if(1&B&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275template(2,a,2,1,"ng-container",2),i.\u0275\u0275template(3,u,1,0,"ng-template",null,3,i.\u0275\u0275templateRefExtractor),i.\u0275\u0275template(5,h,2,1,"div",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(6,l,2,1,"div",5),i.\u0275\u0275elementEnd()),2&B){const y=i.\u0275\u0275reference(4);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(5,m,!_.isCollapseOpen)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",_.text)("ngIfElse",y),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",_.additionalText),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",_.showCollapseButton)}},dependencies:[d.mk,d.O5],styles:['@charset "UTF-8";.collapse-text-block[_ngcontent-%COMP%]{padding:12px;border-radius:4px;border:1px solid #dedede;background:#f1f2f2;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.collapse-text-block__text[_ngcontent-%COMP%]{color:#444}.collapse-text-block__text.cut[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.collapse-text-block__text__additional-info[_ngcontent-%COMP%]{font-size:12px;color:#88909b}.collapse-text-block__button[_ngcontent-%COMP%]{margin-top:4px;color:#2f54eb;border-bottom:1px solid #2f54eb;cursor:pointer;width:-moz-fit-content;width:fit-content}']})}(0,n.gn)([(0,e.SQ)()],O.prototype,"lang",void 0)},64303:(Ee,Q,t)=>{"use strict";t.d(Q,{Q:()=>i});var n=t(36895),e=t(94650);let i=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:d});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.ez]})}return d})()},28356:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>y});var n=t(97582),e=t(16611),i=t(77579),d=t(95698),a=t(82722),u=t(39300),h=t(94650),l=t(40451),m=t(15644),x=t(92008),O=t(36895);function L($,C){if(1&$&&(h.\u0275\u0275elementStart(0,"div",10)(1,"a",12),h.\u0275\u0275text(2),h.\u0275\u0275elementEnd()()),2&$){const T=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275propertyInterpolate1("href","mailto:",null==T.personalManager?null:T.personalManager.email,"",h.\u0275\u0275sanitizeUrl),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(null==T.personalManager?null:T.personalManager.email)}}function w($,C){if(1&$&&(h.\u0275\u0275elementStart(0,"div",2)(1,"div",3),h.\u0275\u0275text(2,"\u0412\u0430\u0448 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"div",9)(4,"div",10),h.\u0275\u0275text(5),h.\u0275\u0275elementEnd(),h.\u0275\u0275template(6,L,3,2,"div",11),h.\u0275\u0275elementEnd()()),2&$){const T=h.\u0275\u0275nextContext();h.\u0275\u0275advance(5),h.\u0275\u0275textInterpolate2("",T.personalManager.fio,", \u0434\u043e\u0431. ",null==T.personalManager?null:T.personalManager.phone,""),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",null==T.personalManager?null:T.personalManager.email)}}function B($,C){if(1&$){const T=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"div",2)(1,"div",3),h.\u0275\u0275text(2,"\u0427\u0430\u0442 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"div",13),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(T);const I=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(I.openChat())}),h.\u0275\u0275text(4,"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0447\u0430\u0442"),h.\u0275\u0275elementEnd()()}}function _($,C){if(1&$&&(h.\u0275\u0275elementStart(0,"div",2)(1,"div",3),h.\u0275\u0275text(2,"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"div",14)(4,"a",15),h.\u0275\u0275element(5,"div",16),h.\u0275\u0275elementEnd()()()),2&$){const T=h.\u0275\u0275nextContext();h.\u0275\u0275advance(4),h.\u0275\u0275property("href",T.ruStoreLink,h.\u0275\u0275sanitizeUrl)}}class y{constructor(C,T,j){this.chatService=C,this.configUtilService=T,this.appConfigService=j,this.isChatEnabled=!1,this.destroyed$=new i.x}ngOnInit(){this.initMobileAppLink(),this.initPersonalManager()}openChat(){this.chatService.getChat().pipe((0,d.q)(1),(0,a.R)(this.destroyed$)).subscribe(C=>{C?.chat?.toggle()})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}initMobileAppLink(){this.configUtilService.getConfigs().pipe((0,a.R)(this.destroyed$)).subscribe(C=>this.ruStoreLink=C.ruStore)}initPersonalManager(){this.appConfigService.settings$.pipe((0,u.h)(C=>C.isLoaded),(0,a.R)(this.destroyed$)).subscribe(C=>{this.personalManager=C.personalManagerInfo,this.isChatEnabled=1===C.commonSettings["GADGET/CHAT"]})}static#e=this.\u0275fac=function(T){return new(T||y)(h.\u0275\u0275directiveInject(l.a),h.\u0275\u0275directiveInject(m.Pj),h.\u0275\u0275directiveInject(x._))};static#t=this.\u0275cmp=h.\u0275\u0275defineComponent({type:y,selectors:[["app-contact-bank-modal"]],decls:20,vars:3,consts:[[1,"contact-bank-modal"],[1,"contact-bank-modal__working-hours"],[1,"contact-bank-modal-block"],[1,"contact-bank-modal-block__header"],[1,"contact-phones"],[1,"contact-phone"],[1,"contact-phone__number"],[1,"contact-phone__info"],["class","contact-bank-modal-block",4,"ngIf"],[1,"block-content"],[1,"block-content__item"],["class","block-content__item",4,"ngIf"],[1,"hyperlink",3,"href"],[1,"hyperlink",3,"click"],[1,"contact-bank-modal-block__mobile-app"],["target","_blank",3,"href"],[1,"rustore"]],template:function(T,j){1&T&&(h.\u0275\u0275elementStart(0,"div",0)(1,"div",1),h.\u0275\u0275text(2," \u041e\u0442\u0432\u0435\u0447\u0430\u0435\u043c \u0432\u0430\u043c \u043d\u0430 \u0437\u0432\u043e\u043d\u043a\u0438 \u0438 \u0432 \u0447\u0430\u0442\u0435 \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441 09:00 - 19:00 \u041c\u0421\u041a, \u043a\u0440\u043e\u043c\u0435 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u0438 \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u0447\u043d\u044b\u0445 \u0434\u043d\u0435\u0439 "),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"div",2)(4,"div",3),h.\u0275\u0275text(5,"\u0422\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(6,"div",4)(7,"div",5)(8,"div",6),h.\u0275\u0275text(9,"8 (800) 500-81-97"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(10,"div",7),h.\u0275\u0275text(11,"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u043f\u043e \u0420\u043e\u0441c\u0438\u0438"),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(12,"div",5)(13,"div",6),h.\u0275\u0275text(14,"+7 (495) 777-81-97"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(15,"div",7),h.\u0275\u0275text(16,"\u0414\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043c\u0438\u0440\u0430 (\u043f\u043e \u0442\u0430\u0440\u0438\u0444\u0430\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0432\u044f\u0437\u0438)"),h.\u0275\u0275elementEnd()()()(),h.\u0275\u0275template(17,w,7,3,"div",8),h.\u0275\u0275template(18,B,5,0,"div",8),h.\u0275\u0275template(19,_,6,1,"div",8),h.\u0275\u0275elementEnd()),2&T&&(h.\u0275\u0275advance(17),h.\u0275\u0275property("ngIf",(null==j.personalManager?null:j.personalManager.fio)&&(null==j.personalManager?null:j.personalManager.phone)),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",j.isChatEnabled),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",j.ruStoreLink))},dependencies:[O.O5],styles:['@charset "UTF-8";.contact-bank-modal[_ngcontent-%COMP%]{padding:24px 32px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:#444}.contact-bank-modal__working-hours[_ngcontent-%COMP%]{max-width:560px}.contact-bank-modal-block[_ngcontent-%COMP%]{margin-top:24px}.contact-bank-modal-block__header[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.contact-bank-modal-block-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px}.contact-bank-modal-block[_ngcontent-%COMP%]   .contact-phones[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:12px}.contact-bank-modal-block[_ngcontent-%COMP%]   .contact-phones[_ngcontent-%COMP%]   .contact-phone__info[_ngcontent-%COMP%]{color:#88909b;font-size:14px}.contact-bank-modal-block[_ngcontent-%COMP%]   .hyperlink[_ngcontent-%COMP%]{color:#2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;text-decoration:none}.contact-bank-modal-block__mobile-app[_ngcontent-%COMP%]{display:block;width:-moz-fit-content;width:fit-content}.contact-bank-modal-block__mobile-app[_ngcontent-%COMP%]   .rustore[_ngcontent-%COMP%]{background:url(rustore.37267074f820028b.png);height:48px;width:150px}']})}(0,n.gn)([(0,e.SQ)()],y.prototype,"lang",void 0)},76797:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){this.size=25,this.color="red",this.clicked=new n.EventEmitter}ngOnInit(){}onClick(){this.clicked.emit()}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:i,selectors:[["app-cross"]],inputs:{size:"size",color:"color"},outputs:{clicked:"clicked"},decls:1,vars:7,consts:[["data-qa","1658988048009",3,"click"]],template:function(u,h){1&u&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275listener("click",function(){return h.onClick()}),n.\u0275\u0275elementEnd()),2&u&&(n.\u0275\u0275classMapInterpolate1("app-cross ",h.color,""),n.\u0275\u0275styleProp("height",h.size+"px")("width",h.size+"px"))},styles:['@charset "UTF-8";.app-cross[_ngcontent-%COMP%]{width:25px;height:25px;position:relative;cursor:pointer;outline:none}.app-cross[_ngcontent-%COMP%]:before, .app-cross[_ngcontent-%COMP%]:after{content:"";height:2px;width:100%;position:absolute;top:50%;left:0;margin-top:-1px}.app-cross[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.app-cross[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.app-cross.grey[_ngcontent-%COMP%]:before, .app-cross.grey[_ngcontent-%COMP%]:after{background-color:#88909b}.app-cross.red[_ngcontent-%COMP%]:before, .app-cross.red[_ngcontent-%COMP%]:after{background-color:#d9291e}']})}return i})()},48041:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>_});var n=t(97582),e=t(94650),i=t(16611);class d{constructor($){const C=[],T=[],j={840:$.currencyRates.filter(I=>"840"===I.currCode),978:$.currencyRates.filter(I=>"978"===I.currCode),826:$.currencyRates.filter(I=>"826"===I.currCode),default:$.currencyRates.filter(I=>-1===["840","978","826"].indexOf(I.currCode))};$.currencyRates=[].concat(j[840],j[978],j[826],j.default),$.currencyRates.forEach(I=>{-1===C.indexOf(I.currIso)&&C.push(I.currIso)}),C.forEach(I=>{let F={baseIso:"",currIso:"",values:[]};$.currencyRates.forEach(z=>{const X="cbrf"===z.rateType.code?4:2;z.currIso===I&&(F.values.push({code:z.rateType.code,name:z.rateType.name,rate:parseFloat(z.currRate).toFixed(X).toString(),scale:z.currScale}),F.baseIso=z.baseIso,F.currIso=z.currIso)}),T.push(F),F=null}),this.currencyRates=T}}var a=t(37601),u=t(75568),h=t(36895);function l(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&y){const C=$.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",C.name," ")}}function m(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275element(1,"div",8),e.\u0275\u0275elementStart(2,"div",9),e.\u0275\u0275template(3,l,2,1,"div",10),e.\u0275\u0275elementEnd()()),2&y){const C=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",C.currencyRates[0].values)}}function x(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"span",15),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&y){const C=e.\u0275\u0275nextContext().$implicit,T=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" (",e.\u0275\u0275pipeBind2(2,2,"For",T.lang)," ",C.values[0].scale,") ")}}function O(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&y){const C=$.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(C.rate)}}function L(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div",12)(1,"div",8),e.\u0275\u0275text(2),e.\u0275\u0275template(3,x,3,5,"span",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",9),e.\u0275\u0275template(5,O,2,1,"div",14),e.\u0275\u0275elementEnd()()),2&y){const C=$.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",C.currIso," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","1"!==C.values[0].scale),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",C.values)}}function w(y,$){1&y&&e.\u0275\u0275element(0,"app-loader")}function B(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&y){const C=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"Get currency rates error",C.lang)," ")}}class _{constructor($){this.userData=$,this.closed=new e.EventEmitter,this.loader=!1}ngOnInit(){this.loader=!0,this.userData.getCurrencyRates().subscribe($=>{if($.currencyRates){const C=new d($);this.currencyRates=C.currencyRates}this.loader=!1},()=>this.loader=!1)}static#e=this.\u0275fac=function(C){return new(C||_)(e.\u0275\u0275directiveInject(a.M))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:_,selectors:[["app-currency-rates"]],outputs:{closed:"closed"},decls:7,vars:6,consts:[["data-qa","1658988055020",1,"rates-cross-wrap",3,"click"],[1,"cross","small"],[1,"currency-rates"],["class","currency-rates__row title",4,"ngIf"],["class","currency-rates__row",4,"ngFor","ngForOf"],[4,"ngIf"],["class","currency-rates__error",4,"ngIf"],[1,"currency-rates__row","title"],[1,"currency-rates__row__item","iso"],[1,"currency-rates__row__values"],["class","currency-rates__row__item cell",4,"ngFor","ngForOf"],[1,"currency-rates__row__item","cell"],[1,"currency-rates__row"],["class","scale",4,"ngIf"],["class","currency-rates__row__item",4,"ngFor","ngForOf"],[1,"scale"],[1,"currency-rates__row__item"],[1,"currency-rates__error"]],template:function(C,T){1&C&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return T.closed.emit(null)}),e.\u0275\u0275element(1,"div",1),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275template(3,m,4,1,"div",3),e.\u0275\u0275template(4,L,6,3,"div",4),e.\u0275\u0275template(5,w,1,0,"app-loader",5),e.\u0275\u0275template(6,B,3,4,"div",6),e.\u0275\u0275elementEnd()),2&C&&(e.\u0275\u0275advance(2),e.\u0275\u0275classProp("error",!T.currencyRates&&!T.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",T.currencyRates&&T.currencyRates.length>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",T.currencyRates),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",T.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!T.currencyRates&&!T.loader))},dependencies:[u.R,h.sg,h.O5,i.X$],styles:['@charset "UTF-8";currency-rates{position:absolute;top:90%;right:18%;z-index:10}currency-rates .currency-rates{min-width:100px;min-height:100px;padding:25px 20px;border-radius:5px;background:#ffffff;border:1px solid #e6e6e6;box-sizing:border-box;box-shadow:0 0 20px #00000030}currency-rates .currency-rates.error{background:#d9291e;border:none}currency-rates .currency-rates__row{padding:10px 0;display:flex;flex-direction:row;align-items:center;font-size:1.4em}currency-rates .currency-rates__row.title{padding:0}currency-rates .currency-rates__row.title .currency-rates__row__values{margin-right:10px}currency-rates .currency-rates__row.title .currency-rates__row__item{font-size:.6em;color:#88909b}currency-rates .currency-rates__row__item.iso{color:#2f54eb}currency-rates .currency-rates__row__item.iso .scale{color:#88909b;font-size:.8em}currency-rates .currency-rates__row__values{display:flex;flex-direction:row;margin-left:auto}currency-rates .currency-rates__row__values .currency-rates__row__item{margin:0 10px}currency-rates .currency-rates__error{color:#fff;font-size:1.3em}.cell{width:56px;text-align:right}.rates-cross-wrap{position:absolute;right:10px;top:10px}\n'],encapsulation:2})}(0,n.gn)([(0,i.SQ)()],_.prototype,"lang",void 0)},62146:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>i});var n=t(94650);const e=["itemRef"];let i=(()=>{class d{constructor(){this.itemSelected=new n.EventEmitter}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["app-dadata-input-list-item"]],viewQuery:function(h,l){if(1&h&&n.\u0275\u0275viewQuery(e,5),2&h){let m;n.\u0275\u0275queryRefresh(m=n.\u0275\u0275loadQuery())&&(l.itemRef=m)}},inputs:{item:"item",isActive:"isActive"},outputs:{itemSelected:"itemSelected"},decls:6,vars:4,consts:[[1,"dadata-input-list-item",3,"click"],["itemRef",""],[1,"dadata-input-list-item__title"],[1,"dadata-input-list-item__description"]],template:function(h,l){1&h&&(n.\u0275\u0275elementStart(0,"div",0,1),n.\u0275\u0275listener("click",function(){return l.itemSelected.emit(l.item)}),n.\u0275\u0275elementStart(2,"div",2),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",3),n.\u0275\u0275text(5),n.\u0275\u0275elementEnd()()),2&h&&(n.\u0275\u0275classProp("active",l.isActive),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(l.item.name),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(l.item.description))},styles:['@charset "UTF-8";.dadata-input-list-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:14px;display:flex;flex-direction:column;padding:8px 8px 8px 20px;border-radius:4px;cursor:pointer}.dadata-input-list-item__title[_ngcontent-%COMP%]{color:#444;line-height:20px}.dadata-input-list-item__description[_ngcontent-%COMP%]{color:#88909b;font-size:12px;line-height:normal}.dadata-input-list-item__item[_ngcontent-%COMP%]{display:block}.dadata-input-list-item.active[_ngcontent-%COMP%], .dadata-input-list-item[_ngcontent-%COMP%]:hover{border-radius:4px;background:#f1f2f2}'],changeDetection:0})}return d})()},18646:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>m});var n=t(36895),e=t(24006),i=t(97392),d=t(84005),a=t(16611),u=t(52523),h=t(94716),l=t(94650);let m=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:x});static#n=this.\u0275inj=l.\u0275\u0275defineInjector({providers:[h.y],imports:[n.ez,i.Ps,d.n,u.g,e.FormsModule,e.ReactiveFormsModule,a.qw]})}return x})()},94716:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>O});var n=t(15439),e=t.n(n),i=t(54004),d=t(70262),a=t(39646),u=t(6146),h=t(94650),l=t(9149),m=t(3751),x=t(15644);let O=(()=>{class L{constructor(B,_,y){this.toastCustomService=B,this.apiService=_,this.configUtilService=y}getCompanySuggestions(B,_=!0,y,$,C,T=0,j=10){const I={docModule:"ibankfl",docType:u.o.ClientCorr,filter:{dateFrom:"2000-01-01",dateTo:e()(new Date).add(1,"days").format("YYYY-MM-DD")},page:{number:T,size:j},sorting:[{field:"id",order:"DESC"}],query:B,count:this.configUtilService.adminConfig.data.daDataCountQuery};return B&&(I.filter.additional=`((fullname like '%${B}%') or (inn like '%${B}%'))`,y&&$&&(I.filter.additional+=`and corrType ${$} (${y})`)),C&&(I.filter.additional=`(id = '${C}')`),this.apiService.post("metinv/pageable/document/page_suggestion",I).pipe((0,i.U)(F=>F),(0,i.U)(F=>({pagingDataResult:{filter:F.pagingDataResult.filter,list:_&&""===B?[]:this.configUtilService.getArray(F?.pagingDataResult?.list),page:F.pagingDataResult.page},suggestions:this.configUtilService.getArray(F?.suggestions)})),(0,d.K)(F=>(this.toastCustomService.errorHandle(F),(0,a.of)({pagingDataResult:{filter:null,list:[],page:{number:T?.toString(),size:j?.toString(),total:"0"}},suggestions:[]}))))}static#e=this.\u0275fac=function(_){return new(_||L)(h.\u0275\u0275inject(l.j),h.\u0275\u0275inject(m.s),h.\u0275\u0275inject(x.Pj))};static#t=this.\u0275prov=h.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac})}return L})()},75198:(Ee,Q,t)=>{"use strict";t.d(Q,{Q:()=>h});var n=t(94650),e=t(99602),i=t(18455),d=t(29203),a=t(36895);function u(l,m){if(1&l&&(n.\u0275\u0275elementStart(0,"div",5)(1,"span")(2,"span"),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"date"),n.\u0275\u0275elementEnd()()()),2&l){const x=n.\u0275\u0275nextContext();n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind2(4,1,x.value,"dd.MM.yyyy"))}}let h=(()=>{class l{constructor(){this.viewSpan=!1,this.dateChange=new n.EventEmitter,this.today=null}get value(){return this._value}set value(x){this._value=x}ngOnInit(){}ngOnChanges(){this.today=this.max||null}datePickersChanged(x){this.dateChange.emit(x.value?x.value.toDate():null)}static#e=this.\u0275fac=function(O){return new(O||l)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:l,selectors:[["app-datepicker"]],inputs:{max:"max",min:"min",autosize:"autosize",disabled:"disabled",viewSpan:"viewSpan",value:"value"},outputs:{dateChange:"dateChange"},features:[n.\u0275\u0275NgOnChangesFeature],decls:6,vars:15,consts:[[1,"my-period-dates-calendar"],["autocomplete","off","data-qa","1658988078920","matInput","","name","filterDateFrom",3,"disabled","matDatepicker","max","min","value","dateChange"],["class","my-period-dates-value",4,"ngIf"],["matSuffix","",3,"for"],["filterDateFrom",""],[1,"my-period-dates-value"]],template:function(O,L){if(1&O&&(n.\u0275\u0275elementStart(0,"mat-form-field",0)(1,"input",1),n.\u0275\u0275listener("dateChange",function(B){return L.datePickersChanged(B)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(2,u,5,4,"div",2),n.\u0275\u0275element(3,"mat-datepicker-toggle",3),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(4,"mat-datepicker",null,4)),2&O){const w=n.\u0275\u0275reference(5);n.\u0275\u0275classProp("autosize",L.autosize)("inputHidden",L.viewSpan),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("hideInput",L.viewSpan)("disabled",L.disabled),n.\u0275\u0275property("disabled",L.disabled)("matDatepicker",w)("max",L.today)("min",L.min)("value",L.value),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",L.viewSpan),n.\u0275\u0275advance(1),n.\u0275\u0275property("for",w)}},dependencies:[e.Mq,e.hl,e.nW,i.v_,i.nX,d.k0,a.O5,a.uU],styles:['@charset "UTF-8";.autosize.my-period-dates-calendar,.autosize .mat-form-field-flex,.autosize.my-period-dates-calendar .mat-form-field-wrapper{height:100%;width:100%}.my-period-dates-calendar .hideInput{display:none}.my-period-dates-calendar.inputHidden .mat-form-field-infix{width:139px}.my-period-dates-value{display:flex;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);padding-bottom:2px}.my-period-dates-value>span{background-color:#fff}.my-period-dates-value>span>span{font-weight:600;font-size:30px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);background-clip:content-box;-webkit-background-clip:text;color:transparent;display:flex;font-family:Source Sans Pro,sans-serif}\n'],encapsulation:2})}return l})()},9007:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>u});var n=t(36895),e=t(24006),i=t(99602),d=t(29203),a=t(94650);let u=(()=>{class h{static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275mod=a.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=a.\u0275\u0275defineInjector({imports:[e.FormsModule,i.FA,d.x4,n.ez]})}return h})()},54198:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>x});var n=t(97582),e=t(16611),i=t(94650),d=t(38101),a=t(40929),u=t(75568),h=t(36895),l=t(90995);function m(O,L){1&O&&i.\u0275\u0275element(0,"app-loader")}class x{constructor(L,w){this.modalService=L,this.documentService=w,this.whatToDelete="templateLogo",this.question="Sure to delete logo",this.yesDelete="Yes, delete"}ngOnInit(){}delete(){if(this.pending=!0,"function"==typeof this.action)this.action(),this.pending=!1,this.closeModal();else switch(this.whatToDelete){case"templateLogo":this.documentService.deleteTemplateLogo(this.id).subscribe(()=>{this.onDeletionSuccess()});break;case"counterpartLogo":this.documentService.deleteCounterpartLogo(this.id).subscribe(()=>{this.onDeletionSuccess()})}}onDeletionSuccess(){this.pending=!1,this.afterDeletion(),this.closeModal()}closeModal(){this.modalService.close()}static#e=this.\u0275fac=function(w){return new(w||x)(i.\u0275\u0275directiveInject(d.Z),i.\u0275\u0275directiveInject(a.Z))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:x,selectors:[["app-delete-modal"]],inputs:{id:"id",afterDeletion:"afterDeletion",whatToDelete:"whatToDelete",question:"question",yesDelete:"yesDelete",action:"action"},decls:10,vars:13,consts:[[1,"delete-modal"],[1,"delete-modal__content"],[1,"delete-modal__controls"],["data-qa","1658988097817",3,"text","click"],["data-qa","1658988100526","type","small-bordered",3,"text","click"],[4,"ngIf"]],template:function(w,B){1&w&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",2)(5,"app-button",3),i.\u0275\u0275listener("click",function(){return B.delete()}),i.\u0275\u0275pipe(6,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"app-button",4),i.\u0275\u0275listener("click",function(){return B.closeModal()}),i.\u0275\u0275pipe(8,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275template(9,m,1,0,"app-loader",5),i.\u0275\u0275elementEnd()),2&w&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(3,4,B.question,B.lang)," "),i.\u0275\u0275advance(3),i.\u0275\u0275propertyInterpolate("text",i.\u0275\u0275pipeBind2(6,7,B.yesDelete,B.lang)),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate("text",i.\u0275\u0275pipeBind2(8,10,"Cancel",B.lang)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",B.pending))},dependencies:[u.R,h.O5,l.r,e.X$],styles:['@charset "UTF-8";.delete-modal[_ngcontent-%COMP%]{position:relative}.delete-modal__content[_ngcontent-%COMP%]{margin:40px 0}.delete-modal__controls[_ngcontent-%COMP%]{display:flex;height:60px;margin-top:15px}.delete-modal__controls[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:last-child{margin-left:15px}']})}(0,n.gn)([(0,e.SQ)()],x.prototype,"lang",void 0)},37479:(Ee,Q,t)=>{"use strict";t.d(Q,{p:()=>F});var n=t(94650),e=t(36895),i=t(81876),d=t(15725),a=t(46923),u=t(75568),h=t(65909),l=t(97582),m=t(16611),x=t(66439);function O(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"span",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",p.info.sum," ")}}function L(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"div",4)(1,"div",5),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",6),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"account_number"),n.\u0275\u0275elementEnd()()),2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate2("",n.\u0275\u0275pipeBind2(3,3,"To account",p.lang),"",":",""),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,6,p.info.accNumber))}}function w(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"div",4)(1,"div",5),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",6),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"account_number"),n.\u0275\u0275elementEnd()()),2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate2("",n.\u0275\u0275pipeBind2(3,3,"Deposit Account",p.lang),"",":",""),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,6,p.info.creditAcc))}}function B(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"div",4)(1,"div",5),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",6),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"account_number"),n.\u0275\u0275elementEnd()()),2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate2("",n.\u0275\u0275pipeBind2(3,3,"Write-off Account",p.lang),"",":",""),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,6,p.info.debitAcc))}}class _{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(p){return new(p||_)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:_,selectors:[["app-header-info"]],inputs:{info:"info"},decls:5,vars:4,consts:[[1,"header-info"],["class","sum-block",4,"ngIf"],["class","acc-block",4,"ngIf"],[1,"sum-block"],[1,"acc-block"],[1,"acc-title"],[1,"acc-number"]],template:function(p,P){1&p&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,O,2,1,"span",1),n.\u0275\u0275template(2,L,7,8,"div",2),n.\u0275\u0275template(3,w,7,8,"div",2),n.\u0275\u0275template(4,B,7,8,"div",2),n.\u0275\u0275elementEnd()),2&p&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",P.info.sum),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",P.info.accNumber),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",P.info.creditAcc),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",P.info.debitAcc))},dependencies:[e.O5,x.k,m.X$],styles:['@charset "UTF-8";.header-info[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:10px}.sum-block[_ngcontent-%COMP%]{font-size:3em}.acc-block[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}.acc-title[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:#88909b}.acc-number[_ngcontent-%COMP%]{font-size:20px;line-height:25px;color:#444}']})}function y(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"app-header-info",7),n.\u0275\u0275elementEnd()),2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("info",p.headerInfo)}}function $(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275element(1,"app-document-sign-with-wrapper",9),n.\u0275\u0275elementEnd()),2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("action",p.action)("certificates",p.signParams.certificates)("cross",p.cross)("docId",p.signParams.docId)("docModule",p.signParams.docModule)("docType",p.signParams.docType)("autoAcceptAllTypesOfSign",p.autoAcceptAllTypesOfSign)("document",p.document)("noDefaultMessage",!0)("successCustomMessage",p.successCustomMessage)}}function C(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"div",10),n.\u0275\u0275element(1,"app-grey-block",11),n.\u0275\u0275elementEnd()),2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("pieces",p.greyBlockPieces)}}function T(z,X){if(1&z&&(n.\u0275\u0275elementStart(0,"div",10),n.\u0275\u0275element(1,"app-grey-block",12),n.\u0275\u0275elementEnd()),2&z){const p=X.ngIf;n.\u0275\u0275advance(1),n.\u0275\u0275property("pieces",p)}}function j(z,X){if(1&z){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",13)(1,"app-button-actions",14),n.\u0275\u0275listener("click",function(E){return E.stopPropagation()})("actionDone",function(E){n.\u0275\u0275restoreView(p);const R=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(R.actionDone.emit(E))})("buttonPending",function(E){n.\u0275\u0275restoreView(p);const R=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(R.pending=E)}),n.\u0275\u0275elementEnd()()}if(2&z){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("buttons",p.buttonActions)}}function I(z,X){1&z&&n.\u0275\u0275element(0,"app-loader")}(0,l.gn)([(0,m.SQ)()],_.prototype,"lang",void 0);let F=(()=>{class z{constructor(){this.title="Document Card Title",this.autoAcceptAllTypesOfSign=!0,this.greyBlockPieces=[],this.hideTitle=!1,this.noShadow=!1,this.crossClicked=new n.EventEmitter,this.actionDone=new n.EventEmitter}onCloseClick(){this.crossClicked.emit()}static#e=this.\u0275fac=function(P){return new(P||z)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:z,selectors:[["app-document-card"]],inputs:{title:"title",buttonActions:"buttonActions",signParams:"signParams",autoAcceptAllTypesOfSign:"autoAcceptAllTypesOfSign",greyBlockPieces:"greyBlockPieces",greyBlockPieces$:"greyBlockPieces$",headerInfo:"headerInfo",newPage:"newPage",hideTitle:"hideTitle",action:"action",successCustomMessage:"successCustomMessage",cross:"cross",noShadow:"noShadow",document:"document"},outputs:{crossClicked:"crossClicked",actionDone:"actionDone"},decls:10,vars:15,consts:[["data-qa","1657800358207",3,"noShadow","title","withBottomPadding","withCloseButton","withTitle","close"],[1,"document-card"],[1,"document-card__content"],[4,"ngIf"],["class","document-card__sign-wrap",4,"ngIf"],["class","document-card__grey-block",4,"ngIf"],["class","document-card__button-actions",4,"ngIf"],[3,"info"],[1,"document-card__sign-wrap"],["data-qa","1657800369148",1,"document-sign",3,"action","certificates","cross","docId","docModule","docType","autoAcceptAllTypesOfSign","document","noDefaultMessage","successCustomMessage"],[1,"document-card__grey-block"],["data-qa","1657800391555",3,"pieces"],["data-qa","1657800397328",3,"pieces"],[1,"document-card__button-actions"],["data-qa","1657800411647",3,"buttons","click","actionDone","buttonPending"]],template:function(P,E){1&P&&(n.\u0275\u0275elementStart(0,"app-page",0),n.\u0275\u0275listener("close",function(){return E.onCloseClick()}),n.\u0275\u0275elementStart(1,"div",1)(2,"div",2),n.\u0275\u0275template(3,y,2,1,"div",3),n.\u0275\u0275template(4,$,2,10,"div",4),n.\u0275\u0275template(5,C,2,1,"div",5),n.\u0275\u0275template(6,T,2,1,"div",5),n.\u0275\u0275pipe(7,"async"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(8,j,2,1,"div",6),n.\u0275\u0275template(9,I,1,0,"app-loader",3),n.\u0275\u0275elementEnd()()),2&P&&(n.\u0275\u0275property("noShadow",E.noShadow)("title",E.title)("withBottomPadding",E.newPage)("withCloseButton",!0)("withTitle",!E.hideTitle&&E.newPage),n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("padding-top",E.newPage?"30px":"0"),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",E.headerInfo),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",E.signParams),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",E.greyBlockPieces&&E.greyBlockPieces.length),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",n.\u0275\u0275pipeBind1(7,13,E.greyBlockPieces$)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",E.buttonActions&&E.buttonActions.length),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",E.pending))},dependencies:[e.O5,i.v,d.I,a.n,u.R,h.I,_,e.Ov],styles:[".document-card[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between}.document-card__content[_ngcontent-%COMP%]{width:100%}.document-card__sign-wrap[_ngcontent-%COMP%]{width:66%;margin:0 0 30px}"]})}return z})()},9522:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>x});var n=t(36895),e=t(16611),i=t(17869),d=t(36561),a=t(48038),u=t(38360),h=t(78895),l=t(71702),m=t(94650);let x=(()=>{class O{static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:O});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[n.ez,i._,l.B,a.Y,u.I,h.q,d.D,e.qw]})}return O})()},65909:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>j});var n=t(97582),e=t(16611),i=t(94650),d=t(76751),a=t(15644),u=t(36895),h=t(11260);function l(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"div",11),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",12),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd()),2&I){const z=i.\u0275\u0275nextContext(2).$implicit,X=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,2,z.data.title,X.lang)," "),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",z.data.desc," ")}}function m(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"div",9),i.\u0275\u0275template(1,l,5,5,"ng-template",10),i.\u0275\u0275elementEnd()),2&I){const z=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",z.data.title&&z.data.desc)}}function x(I,F){1&I&&i.\u0275\u0275element(0,"div",13)}function O(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"div",18),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",19),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd()),2&I){const z=i.\u0275\u0275nextContext().$implicit,X=i.\u0275\u0275nextContext(4);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,2,z.capture,X.lang)," "),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",z.value," ")}}function L(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"li",17),i.\u0275\u0275template(1,O,5,5,"ng-template",10),i.\u0275\u0275elementEnd()),2&I){const z=F.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",z.capture&&z.value)}}function w(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"div",14)(1,"ul",15),i.\u0275\u0275template(2,L,2,1,"li",16),i.\u0275\u0275elementEnd()()),2&I){const z=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",z.data.listInfo)}}function B(I,F){if(1&I){const z=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",23),i.\u0275\u0275listener("click",function(){const P=i.\u0275\u0275restoreView(z).$implicit,E=i.\u0275\u0275nextContext(2).$implicit,R=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(R.attachClick(P,E.data.docId))}),i.\u0275\u0275element(1,"app-svg-icon",24),i.\u0275\u0275elementStart(2,"span",25),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd()()}if(2&I){const z=F.$implicit;i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(z.fileName)}}function _(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"div",20)(1,"ul",21),i.\u0275\u0275template(2,B,4,1,"li",22),i.\u0275\u0275elementEnd()()),2&I){const z=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",z.data.attach)}}function y(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"div",9)(1,"div",11),i.\u0275\u0275text(2),i.\u0275\u0275elementStart(3,"span",26),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",12)(7,"span",27),i.\u0275\u0275text(8),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(9,"span",28),i.\u0275\u0275text(10),i.\u0275\u0275elementEnd()()()),2&I){const z=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",z.data.doc.title,""),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(z.data.doc.docNum),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",z.data.doc.description," "),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(z.data.doc.greenStr),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(z.data.doc.redStr)}}function $(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"li",4),i.\u0275\u0275template(1,m,2,1,"div",5),i.\u0275\u0275template(2,x,1,0,"div",6),i.\u0275\u0275template(3,w,3,1,"div",7),i.\u0275\u0275template(4,_,3,1,"div",8),i.\u0275\u0275template(5,y,11,5,"div",5),i.\u0275\u0275elementEnd()),2&I){const z=F.$implicit;i.\u0275\u0275styleProp("width",z.width,"%"),i.\u0275\u0275property("ngSwitch",z.type),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase","titleWithDesc"),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase","separator"),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase","listInfo"),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase","attach"),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase","precheck")}}function C(I,F){if(1&I&&(i.\u0275\u0275elementStart(0,"div",1),i.\u0275\u0275projection(1),i.\u0275\u0275elementStart(2,"ul",2),i.\u0275\u0275template(3,$,6,8,"li",3),i.\u0275\u0275elementEnd()()),2&I){const z=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",z.pieces)}}const T=["*"];class j{set pieces(F){F&&(this.makeAttachArray(F),this._pieces=F)}get pieces(){return this._pieces}constructor(F,z){this.mailService=F,this.util=z,this._pieces=[]}ngOnInit(){}makeAttachArray(F){F.forEach(z=>{"attach"===z.type&&z.data&&z.data.attach&&(z.data.attach=this.util.getArray(z.data.attach))})}attachClick(F,z){this.mailService.getAttachment(z,F.id).subscribe(X=>{this.mailService.extractAttachment(X,F.fileName)})}static#e=this.\u0275fac=function(z){return new(z||j)(i.\u0275\u0275directiveInject(d.Y),i.\u0275\u0275directiveInject(a.Pj))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:j,selectors:[["app-grey-block"]],inputs:{pieces:"pieces"},ngContentSelectors:T,decls:1,vars:1,consts:[["class","grey-block",4,"ngIf"],[1,"grey-block"],[1,"grey-block__list"],["class","grey-block__piece-wrap",3,"ngSwitch","width",4,"ngFor","ngForOf"],[1,"grey-block__piece-wrap",3,"ngSwitch"],["class","title-with-desc",4,"ngSwitchCase"],["class","separator",4,"ngSwitchCase"],["class","list-info",4,"ngSwitchCase"],["class","attach",4,"ngSwitchCase"],[1,"title-with-desc"],[3,"ngIf"],[1,"title-with-desc__title","ellipsis"],[1,"title-with-desc__desc"],[1,"separator"],[1,"list-info"],[1,"list-info__list"],["class","list-info__item",4,"ngFor","ngForOf"],[1,"list-info__item"],[1,"list-info__capture","ellipsis"],[1,"list-info__value","ellipsis"],[1,"attach"],[1,"attach__list"],["class","attach__item",3,"click",4,"ngFor","ngForOf"],[1,"attach__item",3,"click"],["icon","file","svgClass","attach__icon"],[1,"attach__text"],[1,"title-doc-num"],[1,"green-block"],[1,"red-block"]],template:function(z,X){1&z&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,C,4,1,"div",0)),2&z&&i.\u0275\u0275property("ngIf",X.pieces&&X.pieces.length)},dependencies:[u.sg,u.O5,u.RF,u.n9,h.b,e.X$],styles:['@charset "UTF-8";.grey-block[_ngcontent-%COMP%]{width:100%;background-color:#f1f2f2;padding:25px 30px 30px}.grey-block__list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.grey-block__piece-wrap[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.grey-block__piece-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:0}.title-with-desc__title[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:#88909b;margin-bottom:6px}.title-with-desc__title[_ngcontent-%COMP%]   .title-doc-num[_ngcontent-%COMP%]{color:#000}.title-with-desc__desc[_ngcontent-%COMP%]{font-size:20px;line-height:25px;color:#444}.title-with-desc__desc[_ngcontent-%COMP%]   .green-block[_ngcontent-%COMP%]{color:#28b26d}.title-with-desc__desc[_ngcontent-%COMP%]   .red-block[_ngcontent-%COMP%]{margin-left:5px;color:#d9291e}.separator[_ngcontent-%COMP%]{width:100%;height:1px;margin:5px 0;background-color:#dedede}.list-info__item[_ngcontent-%COMP%]{display:flex}.list-info__capture[_ngcontent-%COMP%]{font-size:16px;line-height:30px;color:#88909b;width:280px;min-width:280px;margin-right:10px}.list-info__value[_ngcontent-%COMP%]{font-size:16px;line-height:30px;color:#444}.attach__list[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:column}.attach__item[_ngcontent-%COMP%]{display:flex;cursor:pointer;font-weight:400;font-size:16px;line-height:20px;color:#2f54eb;margin-bottom:6px}.attach__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.attach__text[_ngcontent-%COMP%]{margin-top:-1px}  .attach__icon{width:16px;height:20px;fill:#2f54eb;margin-right:12px}']})}(0,n.gn)([(0,e.SQ)()],j.prototype,"lang",void 0)},25095:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>E});var n=t(36895),e=t(77579),i=t(54244),d=t(82722),a=t(30723),u=t(44509),h=t(831),l=t(6146),m=t(66439),x=t(98504),O=t(94650),L=t(29198),w=t(44180),B=t(16611),_=t(15644),y=t(39486),$=t(16294),C=t(95404),T=t(40929),j=t(88581),I=t(9149),F=t(92008);function z(R,ne){if(1&R){const G=O.\u0275\u0275getCurrentView();O.\u0275\u0275elementStart(0,"app-document-card",4),O.\u0275\u0275listener("actionDone",function(xe){O.\u0275\u0275restoreView(G);const we=O.\u0275\u0275nextContext();return O.\u0275\u0275resetView(we.actionDoneHandler(xe))})("crossClicked",function(){O.\u0275\u0275restoreView(G);const xe=O.\u0275\u0275nextContext();return O.\u0275\u0275resetView(xe.goBack())}),O.\u0275\u0275elementEnd()}if(2&R){const G=ne.ngIf,ce=O.\u0275\u0275nextContext();O.\u0275\u0275property("action",ce.queryParams.action)("autoAcceptAllTypesOfSign",ce.autoAcceptAllTypesOfSign)("buttonActions",G.buttonActions)("document",G.document)("greyBlockPieces$",G.greyBlockPieces$)("greyBlockPieces",G.greyBlockPieces)("headerInfo",G.headerInfo)("hideTitle",ce.hideTitle)("newPage",!0)("signParams",G.signParams)("successCustomMessage",G.successCustomMessage)("title",G.title)}}function X(R,ne){1&R&&(O.\u0275\u0275elementStart(0,"div",5),O.\u0275\u0275element(1,"app-loader"),O.\u0275\u0275elementEnd())}let E=(()=>{class R{constructor(G,ce,xe,we,Ge,ct,pe,Ce,U,H,Z,oe,Pe){this.vedService=G,this.route=ce,this.router=xe,this.datePipe=we,this.translation=Ge,this.util=ct,this.productService=pe,this.risdaDocumentDetailService=Ce,this.risdaService=U,this.documentService=H,this.documentSignService=Z,this.toastService=oe,this.appConfigService=Pe,this.pagePath=[],this.currencyPipe=new x.H,this.currencySymbolPipe=new u.G,this.accountNumberPipe=new m.k,this.hideTitle=!1,this.autoAcceptAllTypesOfSign=!0,this.isBank=!1,this.destroyed$=new e.x}ngOnInit(){this.queryParams=this.route.snapshot.queryParams,this.queryParams.autoAcceptAllTypesOfSign&&(this.autoAcceptAllTypesOfSign="true"===this.queryParams.autoAcceptAllTypesOfSign),this.documentCardData$=this.getDocumentCardData$(),this.appConfigService.settings$.pipe((0,i.n)(G=>!G.isLoaded),(0,d.R)(this.destroyed$)).subscribe(G=>{G?.roles.size&&(this.isBank=G.roles.has(a.NZ),this.pagePath=this.getPagePath())})}getDocumentCardData$(){const{docId:G,docType:ce,docModule:xe,fromTab:we,action:Ge}=this.queryParams,ct=this.queryParams.fromTab===h.e5.DOCUMENTS_FOR_SIGN?this.vedService.getDocForSignById.bind(this.vedService,G,ce):this.vedService.requestDocumentInfo.bind(this.vedService,{id:G,docType:ce,docModule:xe});return this.documentService.getDocDetails(ct,ce,we,Ge)}getPagePath(){const G=[this.getPageParentName(this.queryParams.docType)],ce=this.getPageName(this.queryParams.docType);return ce&&G.push(ce),G}getPageParentName(G){switch(G){case"doc_currsell":case"doc_currbuy":case"doc_platpor_conv":case"precheck_conversion":case"doc_curr_agent_factoring":return this.documentSignService.setPathData({href:`/currency-exchange/${this.queryParams.conversionMode}/history`,params:{}}),{capture:"online"===this.queryParams.conversionMode?"Currency exchange online":"Currency exchange",href:`/currency-exchange/${this.queryParams.conversionMode}/history`,bold:!0};case"cash_placement":case"irreducible_balance":case"confirm_cash_placement":case"confirm_irreducible_balance":return{capture:"deposits",href:"/deposits",bold:!0};case"doc_general_agreement":case"conversion_deal":case"pay_floating_margin":case"pay_initial_margin":case"return_floating_margin":case"doc_netting":case"settlement_exchange_forward":case"staging_exchange_forward":return this.isBank?{capture:"Treasury"}:{capture:"Other",href:"/treasury/other",bold:!0};case"bank_account_agreement":return{capture:"\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u0447\u0435\u0442\u0430",href:"/opening-currency-account-history",bold:!0};case"close_curr":return{capture:"Closing a currency account",href:"/closing-curr",bold:!0};case"doc_accession_application":return{capture:"Application for accession to the gen conditions for deposits",href:"/treasury/documents",bold:!0};case"interbank_credit_deal":return{capture:"Interbank credit",href:"/interbank-credits",bold:!0};case"sbp_trade_service_enterprise":return{capture:"Accepting payments via QR",href:"/sbp-qr/list",bold:!0};case"sbp_qr_cash_register":return{capture:"Checkout connection request",href:"/sbp-qr/list",bold:!0};case l.o.DocClientCreation:return{capture:"Adding Employees and Clients",href:"/applications",bold:!0};default:return{capture:"Currency control",href:"/ved",bold:!0,params:{tab:h.e5.CONTRACTS}}}}getPageName(G){switch(G){case"close_curr":case"bank_account_agreement":case"doc_accession_application":return{capture:"Signing order"};case"dealpass_contr_181":case"dealpass_cred_181":return{capture:"Adding new contracts"};case"inq_curr_181":return{capture:"Currency transactions information"};case"inq_conf_181":return{capture:"SPD full"};case"dealpass_renew_181":return{capture:"Add changes for contract or credit statement"};case"dealpass_close_181":return{capture:"Removal from the register"};case"inq_statement_181":return{capture:"Request a statement of banking control"};case"doc_request_quotes":return{capture:"Quotation Request"};case"doc_transit_pay_doc":return{capture:"Transit account order"};case"cash_placement":case"irreducible_balance":return{capture:"Applications"};case"doc_general_agreement":return{capture:"RISDA General agreement"};case"conversion_deal":case"pay_floating_margin":case"pay_initial_margin":case"return_floating_margin":case"doc_netting":case"settlement_exchange_forward":case"staging_exchange_forward":return this.isBank?{capture:"Forex",href:"/risda/documents-list",bold:!0}:{capture:"Risda",href:"/risda/documents-list",bold:!0};case"confirm_cash_placement":case"confirm_irreducible_balance":return{capture:"Confirmations"};case"precheck_conversion":return this.hideTitle=!0,null;default:return null}}goBack(){this.documentSignService.goBackNavigation({queryParams:this.queryParams})}actionDoneHandler(G){if("withdraw"===G)this.documentCardData$=this.getDocumentCardData$();else switch(this.queryParams.docType){case"bank_account_agreement":this.router.navigate(["/opening-currency-account-history"]);break;case"close_curr":this.router.navigate(["/closing-curr"]);break;case"doc_accession_application":this.router.navigate(["/treasury/documents"]);break;case"dealpass_renew_181":case"dealpass_close_181":case"inq_statement_181":case"dealpass_cred_181":case"dealpass_contr_181":this.router.navigate(["/ved"],{queryParams:{tab:"documents",innerTab:"otherDocs"}})}}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(ce){return new(ce||R)(O.\u0275\u0275directiveInject(L.$),O.\u0275\u0275directiveInject(w.gz),O.\u0275\u0275directiveInject(w.F0),O.\u0275\u0275directiveInject(n.uU),O.\u0275\u0275directiveInject(B.D7),O.\u0275\u0275directiveInject(_.Pj),O.\u0275\u0275directiveInject(y.su),O.\u0275\u0275directiveInject($.G),O.\u0275\u0275directiveInject(C.jp),O.\u0275\u0275directiveInject(T.Z),O.\u0275\u0275directiveInject(j.V),O.\u0275\u0275directiveInject(I.j),O.\u0275\u0275directiveInject(F._))};static#t=this.\u0275cmp=O.\u0275\u0275defineComponent({type:R,selectors:[["app-document-details-page"]],features:[O.\u0275\u0275ProvidersFeature([n.uU])],decls:6,vars:5,consts:[["data-qa","1657800337773",1,"new-contract-doc"],[3,"pathData"],[3,"action","autoAcceptAllTypesOfSign","buttonActions","document","greyBlockPieces$","greyBlockPieces","headerInfo","hideTitle","newPage","signParams","successCustomMessage","title","actionDone","crossClicked",4,"ngIf","ngIfElse"],["loader",""],[3,"action","autoAcceptAllTypesOfSign","buttonActions","document","greyBlockPieces$","greyBlockPieces","headerInfo","hideTitle","newPage","signParams","successCustomMessage","title","actionDone","crossClicked"],[1,"new-contract-doc__empty-page","card","section-shadow"]],template:function(ce,xe){if(1&ce&&(O.\u0275\u0275elementStart(0,"div",0),O.\u0275\u0275element(1,"app-path",1),O.\u0275\u0275template(2,z,1,12,"app-document-card",2),O.\u0275\u0275pipe(3,"async"),O.\u0275\u0275template(4,X,2,0,"ng-template",null,3,O.\u0275\u0275templateRefExtractor),O.\u0275\u0275elementEnd()),2&ce){const we=O.\u0275\u0275reference(5);O.\u0275\u0275advance(1),O.\u0275\u0275property("pathData",xe.pagePath),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngIf",O.\u0275\u0275pipeBind1(3,3,xe.documentCardData$))("ngIfElse",we)}},styles:['@charset "UTF-8";.new-contract-doc__empty-page[_ngcontent-%COMP%]{min-height:450px;margin-top:20px}']})}return R})()},58723:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>x});var n=t(36895),e=t(9522),i=t(78895),d=t(88044),a=t(25095),u=t(94650),h=t(75568),l=t(30815),m=t(37479);let x=(()=>{class O{static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:O});static#n=this.\u0275inj=u.\u0275\u0275defineInjector({imports:[n.ez,i.q,d.u,e.b]})}return O})();u.\u0275\u0275setComponentScope(a._,[n.O5,h.R,l.l,m.p],[n.Ov])},76042:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>Io});var n=t(97582),e=t(94650),i=t(16611),d=t(15439),a=t.n(d),u=t(6146),h=t(29198);function l(en,Hn){if(1&en){const tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-checkbox",32),e.\u0275\u0275listener("checkboxChange",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ve.onCheckboxClicked(De,ve.documentItem))})("click",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ve.onCheckboxClicked(De,ve.documentItem))}),e.\u0275\u0275elementEnd()}if(2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275property("chosen",null!==tt.selected?tt.selected:void 0)}}function m(en,Hn){1&en&&(e.\u0275\u0275elementStart(0,"mat-icon",33),e.\u0275\u0275text(1,"description "),e.\u0275\u0275elementEnd()),2&en&&e.\u0275\u0275property("fontSet","material-icons-outlined")}function x(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"mat-icon",34),e.\u0275\u0275text(1,"description "),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275propertyInterpolate("svgIcon",null==tt.documentItem?null:tt.documentItem.icon),e.\u0275\u0275property("fontSet","material-icons-outlined")}}function O(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"mat-icon",34),e.\u0275\u0275text(1,"description "),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275propertyInterpolate("svgIcon",null==tt.documentItem?null:tt.documentItem.icon),e.\u0275\u0275property("fontSet","material-icons-outlined")}}function L(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("doc-item__title-content",!tt.documentItem.conversionInfo),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,tt.documentItem.title,tt.lang)," ")}}function w(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",36),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"SWIFT is ordered",tt.lang)," ")}}function B(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",37),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.bankShortName," ")}}function _(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",38),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",tt.documentItem.conversionInfo.statusBar.className),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.conversionInfo.statusBar.status," ")}}function y(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1," SWIFT GPI: "),e.\u0275\u0275elementStart(2,"span",39),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275classMapInterpolate1("doc-item__swift ",tt.getStatusColor(tt.documentItem.additionalData.absStatusCode),"--border"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",tt.getStatusColor(tt.documentItem.additionalData.absStatusCode)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.getShortStatus(tt.getStatusColor(tt.documentItem.additionalData.absStatusCode,tt.documentItem.additionalData.absStatusCode))," ")}}function $(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"span")(1,"span",40),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275classMapInterpolate1("doc-item__swift ",tt.getStatusColor(tt.documentItem.additionalData.additionalVedStatus),"--border"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.additionalData.additionalVedStatus," ")}}function C(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"span",41),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(tt.qrCodeLabel)}}function T(en,Hn){if(1&en&&(e.\u0275\u0275element(0,"app-metib-badge-tag",44),e.\u0275\u0275pipe(1,"translate")),2&en){const tt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("backgroundColor","var(--background-light-gray)")("size","small")("color","var(--text-blue)")("type","tag")("title",e.\u0275\u0275pipeBind2(1,5,"true"===(null==tt.documentItem.isRent?null:tt.documentItem.isRent.toString())?"Provided by the bank":"Purchase of equipment",tt.lang).toUpperCase())}}function j(en,Hn){if(1&en&&(e.\u0275\u0275element(0,"app-metib-badge-tag",44),e.\u0275\u0275pipe(1,"number")),2&en){const tt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("backgroundColor","var(--background-light-gray)")("size","small")("color","var(--text-blue)")("type","tag")("title",(e.\u0275\u0275pipeBind3(1,5,tt.documentItem.tariffPromo,"1.1-2","ru")+"% \u0410\u043a\u0446\u0438\u044f").toUpperCase())}}function I(en,Hn){if(1&en&&(e.\u0275\u0275element(0,"app-metib-badge-tag",44),e.\u0275\u0275pipe(1,"number")),2&en){const tt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("backgroundColor","var(--background-light-gray)")("size","small")("color","var(--text-dark-gray)")("type","tag")("title",(e.\u0275\u0275pipeBind3(1,5,tt.documentItem.commission,"1.1-2","ru")+"% \u0411\u0430\u0437\u043e\u0432\u0430\u044f").toUpperCase())}}function F(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",42),e.\u0275\u0275template(1,T,2,8,"app-metib-badge-tag",43),e.\u0275\u0275template(2,j,2,9,"app-metib-badge-tag",43),e.\u0275\u0275template(3,I,2,9,"app-metib-badge-tag",43),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==tt.documentItem.isRent?null:tt.documentItem.isRent.toString()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.tariffPromo&&tt.shouldShowPromoTariff),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.commission)}}function z(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",45),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.depositInfo," ")}}const X=function(en){return{"ellipsis-cut":en}};function p(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",46),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275property("title",tt.oneLineDescriptionWithEllipsis?tt.getFormattedDescription(tt.documentItem.description):"")("ngClass",e.\u0275\u0275pureFunction1(3,X,tt.oneLineDescriptionWithEllipsis)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.getFormattedDescription(tt.documentItem.description)," ")}}function P(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",47),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,tt.reasonCaption,tt.lang),": ",tt.documentItem.declineInfo," ")}}function E(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"appCurrency"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275pipe(4,"currency_code"),e.\u0275\u0275elementEnd()),2&en){const tt=Hn.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind3(2,1,tt.amount,2,",")+" "+e.\u0275\u0275pipeBind1(3,5,e.\u0275\u0275pipeBind1(4,7,tt.currency))," ")}}function R(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",48)(1,"div",49),e.\u0275\u0275template(2,E,5,9,"span",50),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",tt.getSVOAmounts(tt.documentItem.doc.deal))}}function ne(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"appCurrency"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275pipe(4,"currency_code"),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.doc&&tt.documentItem.doc.amount?" "+e.\u0275\u0275pipeBind3(2,1,tt.documentItem.doc.amount,2,",")+" "+(tt.documentItem.doc.currCode?e.\u0275\u0275pipeBind1(3,5,e.\u0275\u0275pipeBind1(4,7,tt.documentItem.doc.currCode)):""):tt.documentItem.info," ")}}function G(en,Hn){if(1&en&&e.\u0275\u0275template(0,ne,5,9,"div",22),2&en){const tt=e.\u0275\u0275nextContext(),nt=e.\u0275\u0275reference(28);e.\u0275\u0275property("ngIf","sbp_qr_refund"!==tt.documentItem.docType)("ngIfElse",nt)}}function ce(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate3(" ",e.\u0275\u0275pipeBind2(2,3,"Refund sum",tt.lang)," ",null==tt.documentItem?null:tt.documentItem.refundAmount," ",null==tt.documentItem?null:tt.documentItem.paymentCurr," ")}}function xe(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.declineInfo," ")}}function we(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",51)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,xe,2,1,"div",52),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275property("hidden",!tt.documentItem.status&&!tt.documentItem.declineInfo&&!tt.documentItem.absConvCurrencyRate)("ngClass",tt.getStatusColor(tt.documentItem.status)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(tt.documentItem.statusCaption||tt.documentItem.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!tt.documentItem.customDecline&&!tt.isTSPDocument&&!tt.isQrRefundDocument&&"decline"===tt.documentItem.statusInitial),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(tt.documentItem.absConvCurrencyRate)}}function Ge(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",54),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"appCurrency"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null!=tt.documentItem&&tt.documentItem.amount?e.\u0275\u0275pipeBind3(2,1,tt.documentItem.amount,2,".")+" RUB":e.\u0275\u0275pipeBind2(3,5,"Without amount",tt.lang)," ")}}function ct(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",55)(1,"span",56),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"span",57),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("revers-info",tt.documentItem.conversionInfo.isSale),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("+ ",tt.documentItem.conversionInfo.amountBlock.amountCredit,""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("- ",tt.documentItem.conversionInfo.amountBlock.amountDebit,"")}}function pe(en,Hn){if(1&en){const tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",58)(1,"app-menu-select",59),e.\u0275\u0275listener("actionDone",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ve.onActionDone(De))})("change",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ve.onDotItemClicked(De))})("openChanged",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ve.onDotsClick(De))}),e.\u0275\u0275element(2,"app-dots",60),e.\u0275\u0275elementEnd()()}if(2&en){const tt=Hn.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("buttonActions",tt.buttonActions)("icon",!0)("items",tt.items)}}function Ce(en,Hn){1&en&&e.\u0275\u0275element(0,"div",61)}function U(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",62),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reason",tt.lang),": ",null==tt.documentItem?null:tt.documentItem.declineInfo," ")}}function H(en,Hn){1&en&&e.\u0275\u0275element(0,"app-loader")}function Z(en,Hn){if(1&en){const tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-document-item",73),e.\u0275\u0275listener("docClicked",function(){const ve=e.\u0275\u0275restoreView(tt).$implicit;return e.\u0275\u0275resetView(ve.additionalData.expanded=!ve.additionalData.expanded)})("dotsClicked",function(){const ve=e.\u0275\u0275restoreView(tt).$implicit,Se=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(Se.onDotsClickEmbeddedDocument(!0,ve))}),e.\u0275\u0275elementEnd()()}if(2&en){const tt=Hn.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("documentItem",tt)}}function oe(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Z,2,1,"div",50),e.\u0275\u0275elementContainerEnd()),2&en){const tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",tt.documentItem.additionalData.embeddedDocumentItems)}}function Pe(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"date"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1662985617"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Operation date",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(6,6,De.operDate,"dd.MM.yyyy"))}}function Ie(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657799886797"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Contract number",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(De.contrNumber)}}function pt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2,"UETR"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext().index,nt=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1662985643"+tt),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(nt.documentItem.gpiData.uetr)}}function Ht(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",80)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657799886797"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"UNK number",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(De.psNumberSeparate)}}function Wt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1662985666"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"UNK number",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(De.psNumberSeparateExtBnk)}}function Xe(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"pay_direction"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657799886797"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Payment mark",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,6,De.payDirection))}}function Qe(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657799886797"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Currency operation code",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(De.operCode)}}function Be(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275pipe(7,"currency_name"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657799886797"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Currency",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,6,e.\u0275\u0275pipeBind1(7,8,De.payCurrCode)))}}function at(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"appCurrency"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657799886797"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Amount",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,6,De.amount))}}function lt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",76),e.\u0275\u0275template(1,Pe,7,9,"div",77),e.\u0275\u0275template(2,Ie,6,6,"div",77),e.\u0275\u0275template(3,pt,5,2,"div",77),e.\u0275\u0275template(4,Ht,6,6,"div",78),e.\u0275\u0275template(5,Wt,6,6,"div",77),e.\u0275\u0275template(6,Xe,7,8,"div",77),e.\u0275\u0275template(7,Qe,6,6,"div",77),e.\u0275\u0275template(8,Be,8,10,"div",77),e.\u0275\u0275template(9,at,7,8,"div",77),e.\u0275\u0275elementEnd()),2&en){const tt=Hn.$implicit,nt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.operDate),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.contrNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.gpiData&&nt.documentItem.gpiData.uetr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.psNumberSeparate),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.psNumberSeparateExtBnk),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.payDirection),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.operCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.payCurrCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.amount)}}function Dt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",81)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Decline info",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.declineInfo)}}function Yt(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,lt,10,9,"div",74),e.\u0275\u0275template(2,Dt,6,5,"div",75),e.\u0275\u0275elementContainerEnd()),2&en){const tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",tt.arrayWrap(tt.documentItem.additionalData.document.deal)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.declineInfo)}}function Tt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"UNK number",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.paycontrolPsnumberCaption)}}function ot(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2,"UETR"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(tt.documentItem.gpiData.uetr)}}function Gt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657800018537"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Document number",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(De.docNumber)}}function wt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"date"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657800018537"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Document date",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(6,6,De.docDate,"dd.MM.yyyy"))}}function Ze(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657800018537"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Doc code",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(De.docCode)}}function Ut(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275pipe(7,"currency_name"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657800018537"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Currency",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,6,e.\u0275\u0275pipeBind1(7,8,De.currCode1)))}}function vn(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",79)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"appCurrency"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(),nt=tt.index,De=tt.$implicit,ve=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1662985788"+nt),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Amount",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,6,De.amountCurrency1))}}function xn(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",84),e.\u0275\u0275template(1,Gt,6,6,"div",77),e.\u0275\u0275template(2,wt,7,9,"div",77),e.\u0275\u0275template(3,Ze,6,6,"div",77),e.\u0275\u0275template(4,Ut,8,10,"div",77),e.\u0275\u0275template(5,vn,7,8,"div",77),e.\u0275\u0275elementEnd()),2&en){const tt=Hn.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.docNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.docDate),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.docCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.currCode1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.amountCurrency1)}}function bn(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",81)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Decline info",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.declineInfo)}}function hn(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",82),e.\u0275\u0275template(2,Tt,6,5,"div",77),e.\u0275\u0275template(3,ot,5,1,"div",77),e.\u0275\u0275template(4,xn,6,5,"div",83),e.\u0275\u0275template(5,bn,6,5,"div",75),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&en){const tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.paycontrolPsnumberCaption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.gpiData&&tt.documentItem.gpiData.uetr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",tt.arrayWrap(tt.additionalDataDocument.confDoc)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.declineInfo)}}function pn(en,Hn){1&en&&e.\u0275\u0275elementContainer(0)}function In(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,pn,1,0,"ng-container",85),e.\u0275\u0275elementContainerEnd()),2&en){e.\u0275\u0275nextContext();const tt=e.\u0275\u0275reference(12);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",tt)}}function Dn(en,Hn){1&en&&e.\u0275\u0275elementContainer(0)}function Tn(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Dn,1,0,"ng-container",85),e.\u0275\u0275elementContainerEnd()),2&en){e.\u0275\u0275nextContext();const tt=e.\u0275\u0275reference(12);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",tt)}}function mn(en,Hn){1&en&&e.\u0275\u0275elementContainer(0)}function Yn(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,mn,1,0,"ng-container",85),e.\u0275\u0275elementContainerEnd()),2&en){e.\u0275\u0275nextContext();const tt=e.\u0275\u0275reference(12);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",tt)}}function cn(en,Hn){1&en&&e.\u0275\u0275elementContainer(0)}function Nn(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,cn,1,0,"ng-container",85),e.\u0275\u0275elementContainerEnd()),2&en){e.\u0275\u0275nextContext();const tt=e.\u0275\u0275reference(12);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",tt)}}function Bt(en,Hn){1&en&&e.\u0275\u0275elementContainer(0)}function En(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Bt,1,0,"ng-container",85),e.\u0275\u0275elementContainerEnd()),2&en){e.\u0275\u0275nextContext();const tt=e.\u0275\u0275reference(12);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",tt)}}function Wn(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",97)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Write-off Account",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.accNumber)}}function rn(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",98)(1,"div"),e.\u0275\u0275text(2,"UETR"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(tt.documentItem.gpiData.uetr)}}function Sn(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",99)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Recipient",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.corrFullname)}}function ke(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",100)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275pipe(7,"country"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Country",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,5,e.\u0275\u0275pipeBind1(7,7,tt.additionalDataDocument.corrCountryCode)))}}function ge(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",101)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Locality",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.corrPlace)}}function q(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",102)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Address",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.corrAddress)}}function J(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",103)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"SWIFT code recipient",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.corrBankSwift)}}function Oe(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",104)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Recipient bank name",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.additionalData.document.corrBankName+(tt.documentItem.additionalData.document.corrBankPlace?", "+tt.documentItem.additionalData.document.corrBankPlace:"")," ")}}function je(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",105)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Corr account",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.corrAccNumber)}}function Et(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",106)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Payment purpose",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.description)}}function dt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",105)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,tt.declineInfoCaption,tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.additionalDataDocument.declineInfo)}}function rt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",86),e.\u0275\u0275template(1,Wn,6,5,"div",87),e.\u0275\u0275template(2,rn,5,1,"div",88),e.\u0275\u0275template(3,Sn,6,5,"div",89),e.\u0275\u0275template(4,ke,8,9,"div",90),e.\u0275\u0275template(5,ge,6,5,"div",91),e.\u0275\u0275template(6,q,6,5,"div",92),e.\u0275\u0275template(7,J,6,5,"div",93),e.\u0275\u0275template(8,Oe,6,5,"div",94),e.\u0275\u0275template(9,je,6,5,"div",95),e.\u0275\u0275template(10,Et,6,5,"div",96),e.\u0275\u0275template(11,dt,6,5,"div",95),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.additionalDataDocument.accNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.gpiData&&tt.documentItem.gpiData.uetr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.corrFullname),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.corrCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.corrPlace),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.corrAddress),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.corrBankSwift),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.corrBankName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.corrAccNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.description),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.declineInfo)}}function qe(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",111)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Operation reference",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.operationReference)}}function ze(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",112)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Related reference",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.linkedReference)}}function zt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",113)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Name of the sender's bank",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.senderBankName)}}function vt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",111)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"SWIFT code of the sender",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.senderBankSwift)}}function Rt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",113)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Name of the beneficiary's bank",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.beneficiaryName)}}function gt(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",111)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"SWIFT code of the beneficiary",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.additionalData.document.beneficiarySwift)}}function sn(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",111)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275pipe(7,"currency_name"),e.\u0275\u0275elementEnd()()),2&en){const tt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Summ",tt.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" ",tt.documentItem.additionalData.document.transferAmount," ",e.\u0275\u0275pipeBind1(6,6,e.\u0275\u0275pipeBind2(7,8,tt.documentItem.additionalData.document.accCurr,!0))," ")}}function wn(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",107),e.\u0275\u0275template(2,qe,6,5,"div",108),e.\u0275\u0275template(3,ze,6,5,"div",109),e.\u0275\u0275template(4,zt,6,5,"div",110),e.\u0275\u0275template(5,vt,6,5,"div",108),e.\u0275\u0275template(6,Rt,6,5,"div",110),e.\u0275\u0275template(7,gt,6,5,"div",108),e.\u0275\u0275template(8,sn,8,11,"div",108),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&en){const tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.operationReference),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.linkedReference),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.senderBankName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.senderBankSwift),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.beneficiaryName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.beneficiarySwift),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.documentItem.additionalData.document.transferAmount)}}function Qn(en,Hn){if(1&en){const tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-document-card",115),e.\u0275\u0275listener("actionDone",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(ve.onActionDone(De))}),e.\u0275\u0275elementEnd()}if(2&en){const tt=Hn.ngIf;e.\u0275\u0275property("buttonActions",tt.buttonActions)("greyBlockPieces$",tt.greyBlockPieces$)("greyBlockPieces",tt.greyBlockPieces)("headerInfo",tt.headerInfo)("noShadow",!0)("signParams",tt.signParams)("successCustomMessage",tt.successCustomMessage)("title",tt.title)}}function pi(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Qn,1,8,"app-document-card",114),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementContainerEnd()),2&en){const tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,tt.additionalDataDetails))}}function Ei(en,Hn){if(1&en){const tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",116)(1,"div",117),e.\u0275\u0275listener("click",function(De){return De.stopPropagation()}),e.\u0275\u0275elementStart(2,"div",118),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",119),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div"),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",120),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"app-button",121),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(tt);const De=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(De.openGpiDetails())}),e.\u0275\u0275elementEnd()()()}if(2&en){const tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(tt.documentItem.gpiData.gpiTimeFormatted),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate("SWIFT GPI Status:"),e.\u0275\u0275advance(1),e.\u0275\u0275classMap("status "+tt.documentItem.gpiData.gpiStatusColor),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(tt.documentItem.gpiData.gpiStatusText),e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltipPosition","below")("matTooltip",tt.documentItem.gpiData.bankName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",tt.documentItem.gpiData.bankName," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("isBold",!0)("text","\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435")("type","bordered")}}function ki(en,Hn){if(1&en){const tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button-actions",124),e.\u0275\u0275listener("actionDone",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(ve.onActionDone(De))})("click",function(De){return De.stopPropagation()}),e.\u0275\u0275elementEnd()}if(2&en){const tt=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275property("buttons",tt.buttonActions)("inSelectMenu",!0)}}function Co(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",122),e.\u0275\u0275template(1,ki,1,2,"app-button-actions",123),e.\u0275\u0275elementEnd()),2&en){const tt=Hn.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.buttonActions)}}function xo(en,Hn){if(1&en){const tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button-actions",127),e.\u0275\u0275listener("actionDone",function(De){e.\u0275\u0275restoreView(tt);const ve=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(ve.onActionDone(De))})("click",function(De){return De.stopPropagation()}),e.\u0275\u0275elementEnd()}if(2&en){const tt=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275property("buttons",tt.buttonActions)("inSelectMenu",!0)}}function no(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",125),e.\u0275\u0275template(1,xo,1,2,"app-button-actions",126),e.\u0275\u0275elementEnd()),2&en){const tt=Hn.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.buttonActions)}}function Qo(en,Hn){if(1&en&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",65),e.\u0275\u0275listener("click",function(nt){return nt.stopPropagation()}),e.\u0275\u0275elementContainerStart(2,66),e.\u0275\u0275template(3,oe,2,1,"ng-container",67),e.\u0275\u0275template(4,Yt,3,2,"ng-container",67),e.\u0275\u0275template(5,hn,6,4,"ng-container",67),e.\u0275\u0275template(6,In,2,1,"ng-container",67),e.\u0275\u0275template(7,Tn,2,1,"ng-container",67),e.\u0275\u0275template(8,Yn,2,1,"ng-container",67),e.\u0275\u0275template(9,Nn,2,1,"ng-container",67),e.\u0275\u0275template(10,En,2,1,"ng-container",67),e.\u0275\u0275template(11,rt,12,11,"ng-template",null,68,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(13,wn,9,7,"ng-container",67),e.\u0275\u0275template(14,pi,3,3,"ng-container",69),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(15,Ei,11,11,"div",70),e.\u0275\u0275template(16,Co,2,1,"div",71),e.\u0275\u0275template(17,no,2,1,"div",72),e.\u0275\u0275elementContainerEnd()),2&en){const tt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275classProp("no-right-padding",!tt.defaultDocsType(tt.documentItem.additionalData.docType)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitch",tt.documentItem.additionalData.docType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","embeddedDocument"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","inq_curr_181"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","inq_conf_181"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",tt.DOC_TYPES.DocPlatporCurr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",tt.DOC_TYPES.DocPlatporCurrTg),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",tt.DOC_TYPES.DocPlatporCurrTgOv),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",tt.DOC_TYPES.DocPlatporCurrComplex),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",tt.DOC_TYPES.DocPlatporCurrBp),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngSwitchCase","doc_interbnk_currency_transfer"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",tt.documentItem.gpiData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.defaultDocsType(tt.documentItem.additionalData.docType)&&!tt.documentItem.gpiData&&tt.documentItem.dots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","doc_interbnk_currency_transfer"===tt.documentItem.additionalData.docType&&!tt.documentItem.gpiData&&tt.documentItem.dots)}}function Mo(en,Hn){if(1&en&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275template(1,H,1,0,"app-loader",64),e.\u0275\u0275template(2,Qo,18,15,"ng-container",64),e.\u0275\u0275elementEnd()),2&en){const tt=e.\u0275\u0275nextContext();e.\u0275\u0275classMap(null!=tt.documentItem.additionalData.embeddedDocumentItems&&tt.documentItem.additionalData.embeddedDocumentItems.length?"doc-item__details-doc":"doc-item__details"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!tt.additionalDataDocument),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tt.additionalDataDocument)}}const po=function(en){return{"doc-item-hovered":en}};class Io{constructor(Hn){this.vedService=Hn,this.isDocumentsForSignTab=!1,this.isShowSVGDoc=!1,this.selectable=!0,this.selected=null,this.oneLineDescriptionWithEllipsis=!1,this.dotsClicked=new e.EventEmitter,this.dotsClickedEmbeddedDocument=new e.EventEmitter,this.dotItemClicked=new e.EventEmitter,this.actionDone=new e.EventEmitter,this.docClicked=new e.EventEmitter,this.checkboxClicked=new e.EventEmitter,this.openGpiClicked=new e.EventEmitter,this.DOC_TYPES=u.o,this.isShowDeclineStatus=!1}get additionalDataDetails(){return this.documentItem.additionalData.details}get additionalDataDocument(){return this.documentItem.additionalData.document}get isTSPDocument(){return[u.o.TspRegistrSoftPOS,u.o.TspRegistrHardPOS,u.o.TspUpdateAddSoftPOS,u.o.TspUpdateAddHardPOS,u.o.TspUpdateDeleteSoftPOS,u.o.TspUpdateDeleteHardPOS].includes(this.documentItem.docType)}get isQrRefundDocument(){return u.o.SpbQrRefund===this.documentItem.docType}get isQrCodeDocument(){return this.documentItem.docType===u.o.SbpQrReg||this.documentItem.docType===u.o.SbpQrRegTSP}get qrCodeLabel(){return this.documentItem.docType===u.o.SbpQrReg?"\u042e\u041b/\u0418\u041f":"\u0424\u041b"}get isRequest(){return[u.o.RequestVedSupport,u.o.ChangePackageUl,u.o.ChangeTariffUlReq].includes(this.documentItem.docType)}get reasonCaption(){if(!this.documentItem?.additionalData?.docType)return"Reason";switch(this.documentItem.additionalData.docType){case u.o.DocPlatporCurrTg:case u.o.DocPlatporCurrTgOv:return"Details";default:return"Reason"}}get declineInfoCaption(){if(!this.additionalDataDocument?.docType)return"Decline info";switch(this.additionalDataDocument.docType){case u.o.DocPlatporCurrTg:case u.o.DocPlatporCurrTgOv:return"Details";default:return"Decline info"}}getTSPAndQRStatusColor(Hn){if(!Hn)return"";switch(Hn.toString().toLowerCase()){case"\u043e\u0442\u043a\u0430\u0437\u0430\u043d":case"\u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c":case"decline":return"canceled";case"\u043e\u043f\u043b\u0430\u0447\u0435\u043d":case"end":case"\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e":return"send";case"\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"in_work":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"for_send":case"send":case"accept":case"changes_in_process":return"process";default:return"default"}}get shouldShowPromoTariff(){return!(a()(a()()).isBefore(this.documentItem.promoStart)||a()(a()()).isAfter(this.documentItem.promoEnd))}onDotsClick(Hn){Hn&&this.dotsClicked.emit()}onDotsClickEmbeddedDocument(Hn,tt){Hn&&this.dotsClickedEmbeddedDocument.emit(tt)}onDotItemClicked(Hn){this.dotItemClicked.emit(Hn)}onActionDone(Hn){this.actionDone.emit(Hn)}onCheckboxClicked(Hn,tt){Hn.stopPropagation(),null!==this.selected&&(Hn.preventDefault(),this.checkboxClicked.emit(tt))}onCheckboxChange(Hn,tt){this.checkboxClicked.emit(tt)}getShortStatus(Hn,tt){return this.vedService.getShortStatus(Hn,tt)}onDocClick(){this.clickable&&(this.docClicked.emit(),(this.isTSPDocument||this.isQrRefundDocument)&&(this.isShowDeclineStatus=!this.isShowDeclineStatus))}arrayWrap(Hn){return Array.isArray(Hn)?Hn:[Hn]}getFormattedDescription(Hn){const tt=(Hn||"").split("\n    \n    , ").filter(nt=>-1===nt.indexOf("null"));return tt?tt.join(", "):Hn}getFormattedAmount(Hn){return`${Hn}`.replace(".",",")}defaultDocsType(Hn){return[u.o.InqConf181,u.o.InqCurr181,u.o.DocPlatporCurrComplex,u.o.DocPlatporCurrBp,u.o.DocPlatporCurr,u.o.DocPlatporCurrTg,u.o.DocPlatporCurrTgOv].includes(Hn)}openGpiDetails(){this.openGpiClicked.emit()}getStatusColor(Hn){let tt="";return(this.isTSPDocument||this.isQrRefundDocument)&&(tt=this.getTSPAndQRStatusColor(Hn)),this.documentItem.noStatusColor||(tt=this.vedService.getStatusColor(Hn)),tt}getStatusSwiftMessage(Hn){return[u.o.DocPlatporCurrComplex,u.o.DocPlatporCurrBp].includes(Hn.docType)?this.vedService.getStatusSwiftMessage(Hn.doc):"undefined"}getSVOAmounts(Hn){let tt=[];return Array.isArray(Hn)?tt=Hn:tt.push(Hn),tt.map(nt=>({currency:nt?.payCurrCode||"",amount:nt?.amount||""}))}static#e=this.\u0275fac=function(tt){return new(tt||Io)(e.\u0275\u0275directiveInject(h.$))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Io,selectors:[["app-document-item"]],inputs:{documentItem:"documentItem",clickable:"clickable",isDocumentsForSignTab:"isDocumentsForSignTab",isShowSVGDoc:"isShowSVGDoc",selectable:"selectable",selected:"selected",oneLineDescriptionWithEllipsis:"oneLineDescriptionWithEllipsis"},outputs:{dotsClicked:"dotsClicked",dotsClickedEmbeddedDocument:"dotsClickedEmbeddedDocument",dotItemClicked:"dotItemClicked",actionDone:"actionDone",docClicked:"docClicked",checkboxClicked:"checkboxClicked",openGpiClicked:"openGpiClicked"},decls:38,vars:37,consts:[["data-qa","1657799474113",1,"doc-item",3,"ngClass","click"],[1,"doc-item__item"],[1,"doc-item__check"],["data-qa","1657799489736",3,"chosen","checkboxChange","click",4,"ngIf"],["svgIcon","file-new","class","sbp-qr-icon",3,"fontSet",4,"ngIf"],["class","sbp-qr-icon",3,"fontSet","svgIcon",4,"ngIf"],["data-qa","1657799500074",1,"doc-item__left"],[1,"doc-item__title"],[1,"doc-item__title-wrapper"],[1,"doc-item__title-top-block"],["class","doc-item__title-main",3,"doc-item__title-content",4,"ngIf"],["class","doc-item__title-conversion-status swift-waiting",4,"ngIf"],["class","doc-item__title-conversion-status in-processing no-margin",4,"ngIf"],["class","doc-item__title-conversion-status",3,"ngClass",4,"ngIf"],[3,"class",4,"ngIf"],["class","doc-item__qr-label",4,"ngIf"],["class","doc-item__hard_pos_badges",4,"ngIf"],["class","doc-item__additional-info",4,"ngIf"],["class","doc-item__desc",3,"title","ngClass",4,"ngIf"],["class","doc-item__desc custom-decline","data-qa","1662993184",4,"ngIf"],["data-qa","1657799542921",1,"doc-item__right"],[1,"doc-item__info-wrap"],["class","doc-item__info",4,"ngIf","ngIfElse"],["commonInfoBlock",""],["sbpQrRefundBlock",""],["class","doc-item__status","data-qa","1662993197",3,"hidden","ngClass",4,"ngIf","ngIfElse"],["qrCodeAmount",""],["class","doc-item__conversion-amount",3,"revers-info",4,"ngIf"],["data-qa","1657799628260",4,"ngIf","ngIfElse"],["dotsEmpty",""],["class","tsp-status-decline",4,"ngIf"],["data-qa","1657799642914",3,"class",4,"ngIf"],["data-qa","1657799489736",3,"chosen","checkboxChange","click"],["svgIcon","file-new",1,"sbp-qr-icon",3,"fontSet"],[1,"sbp-qr-icon",3,"fontSet","svgIcon"],[1,"doc-item__title-main"],[1,"doc-item__title-conversion-status","swift-waiting"],[1,"doc-item__title-conversion-status","in-processing","no-margin"],[1,"doc-item__title-conversion-status",3,"ngClass"],[1,"doc-item__swift--sub",3,"ngClass"],[1,"doc-item__swift--sub"],[1,"doc-item__qr-label"],[1,"doc-item__hard_pos_badges"],[3,"backgroundColor","size","color","type","title",4,"ngIf"],[3,"backgroundColor","size","color","type","title"],[1,"doc-item__additional-info"],[1,"doc-item__desc",3,"title","ngClass"],["data-qa","1662993184",1,"doc-item__desc","custom-decline"],[1,"doc-item__info"],[1,"doc-item__sum-svo"],[4,"ngFor","ngForOf"],["data-qa","1662993197",1,"doc-item__status",3,"hidden","ngClass"],["class","doc-item__status-decline",4,"ngIf"],[1,"doc-item__status-decline"],[1,"doc-item__amount"],[1,"doc-item__conversion-amount"],[1,"credit-amount"],[1,"debit-amount"],["data-qa","1657799628260"],["backgroundClass","operation","data-qa","1657799743141",3,"buttonActions","icon","items","actionDone","change","openChanged"],["data-qa","1657799822569"],[2,"width","40px"],[1,"tsp-status-decline"],["data-qa","1657799642914"],[4,"ngIf"],["data-qa","1657799649060",1,"doc-item__details-info",3,"click"],[3,"ngSwitch"],[4,"ngSwitchCase"],["currencyPayment",""],[4,"ngSwitchDefault"],["class","doc-item__right-block","data-qa","1662993359",4,"ngIf"],["class","doc-item__details-buttons","data-qa","1662993365",4,"ngIf"],["class","doc-item__details-buttons","data-qa","1665158132886",4,"ngIf"],["clickable","true",3,"documentItem","docClicked","dotsClicked"],["class","doc-item__details-block","data-qa","1662993213",4,"ngFor","ngForOf"],["class","doc-item__details-element-single",4,"ngIf"],["data-qa","1662993213",1,"doc-item__details-block"],["class","doc-item__details-element",4,"ngIf"],["class","doc-item__details-element big-margin-top",4,"ngIf"],[1,"doc-item__details-element"],[1,"doc-item__details-element","big-margin-top"],[1,"doc-item__details-element-single"],["data-qa","1662993223",1,"doc-item__details-block"],["class","doc-item__details-block big-margin-top","data-qa","1657800018537",4,"ngFor","ngForOf"],["data-qa","1657800018537",1,"doc-item__details-block","big-margin-top"],[4,"ngTemplateOutlet"],["data-qa","1662993243",1,"doc-item__details-block","doc-item__details-block--value-payment"],["class","doc-item__details-element","data-qa","1657800176760",4,"ngIf"],["class","doc-item__details-element","data-qa","1662993303",4,"ngIf"],["class","doc-item__details-element big-margin-top","data-qa","1662993250",4,"ngIf"],["class","doc-item__details-element","data-qa","1662993316",4,"ngIf"],["class","doc-item__details-element","data-qa","1662993320",4,"ngIf"],["class","doc-item__details-element","data-qa","1662993324",4,"ngIf"],["class","doc-item__details-element","data-qa","1662993329",4,"ngIf"],["class","doc-item__details-element","data-qa","1662993334",4,"ngIf"],["class","doc-item__details-element","data-qa","1662993340",4,"ngIf"],["class","doc-item__details-element big-margin-top","data-qa","1662993257",4,"ngIf"],["data-qa","1657800176760",1,"doc-item__details-element"],["data-qa","1662993303",1,"doc-item__details-element"],["data-qa","1662993250",1,"doc-item__details-element","big-margin-top"],["data-qa","1662993316",1,"doc-item__details-element"],["data-qa","1662993320",1,"doc-item__details-element"],["data-qa","1662993324",1,"doc-item__details-element"],["data-qa","1662993329",1,"doc-item__details-element"],["data-qa","1662993334",1,"doc-item__details-element"],["data-qa","1662993340",1,"doc-item__details-element"],["data-qa","1662993257",1,"doc-item__details-element","big-margin-top"],["data-qa","1665072859719",1,"doc-item__details-block","doc-item__details-block--value-payment"],["class","doc-item__details-element","data-qa","1665072852857",4,"ngIf"],["class","doc-item__details-element","data-qa","1665073336705",4,"ngIf"],["class","doc-item__details-element","data-qa","1665072856383",4,"ngIf"],["data-qa","1665072852857",1,"doc-item__details-element"],["data-qa","1665073336705",1,"doc-item__details-element"],["data-qa","1665072856383",1,"doc-item__details-element"],["data-qa","1657800130201",3,"buttonActions","greyBlockPieces$","greyBlockPieces","headerInfo","noShadow","signParams","successCustomMessage","title","actionDone",4,"ngIf"],["data-qa","1657800130201",3,"buttonActions","greyBlockPieces$","greyBlockPieces","headerInfo","noShadow","signParams","successCustomMessage","title","actionDone"],["data-qa","1662993359",1,"doc-item__right-block"],["data-qa","1662058418651",1,"tracker-gpi",3,"click"],[1,"date"],[1,"title"],[1,"bank",3,"matTooltipPosition","matTooltip"],["data-qa","1662058412268",3,"isBold","text","type","clicked"],["data-qa","1662993365",1,"doc-item__details-buttons"],["data-qa","1657800151164",3,"buttons","inSelectMenu","actionDone","click",4,"ngIf"],["data-qa","1657800151164",3,"buttons","inSelectMenu","actionDone","click"],["data-qa","1665158132886",1,"doc-item__details-buttons"],["data-qa","1665158134950",3,"buttons","inSelectMenu","actionDone","click",4,"ngIf"],["data-qa","1665158134950",3,"buttons","inSelectMenu","actionDone","click"]],template:function(tt,nt){if(1&tt&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return nt.onDocClick()}),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,l,1,1,"app-checkbox",3),e.\u0275\u0275template(4,m,2,1,"mat-icon",4),e.\u0275\u0275template(5,x,2,2,"mat-icon",5),e.\u0275\u0275template(6,O,2,2,"mat-icon",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9),e.\u0275\u0275template(11,L,3,6,"div",10),e.\u0275\u0275template(12,w,3,4,"div",11),e.\u0275\u0275template(13,B,2,1,"div",12),e.\u0275\u0275template(14,_,2,2,"div",13),e.\u0275\u0275template(15,y,4,5,"span",14),e.\u0275\u0275template(16,$,3,4,"span",14),e.\u0275\u0275template(17,C,2,1,"span",15),e.\u0275\u0275template(18,F,4,3,"div",16),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(19,z,2,1,"div",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(20,p,2,5,"div",18),e.\u0275\u0275template(21,P,3,5,"div",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",20)(23,"div",21),e.\u0275\u0275template(24,R,3,1,"div",22),e.\u0275\u0275template(25,G,1,2,"ng-template",null,23,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(27,ce,3,6,"ng-template",null,24,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(29,we,6,5,"div",25),e.\u0275\u0275template(30,Ge,4,8,"ng-template",null,26,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(32,ct,5,4,"div",27),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(33,pe,3,3,"div",28),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(34,Ce,1,0,"ng-template",null,29,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(36,U,3,5,"div",30),e.\u0275\u0275template(37,Mo,3,4,"div",31),e.\u0275\u0275elementEnd()),2&tt){const De=e.\u0275\u0275reference(26),ve=e.\u0275\u0275reference(31),Se=e.\u0275\u0275reference(35);e.\u0275\u0275styleProp("cursor",nt.clickable?"pointer":"default")("padding-right",0,"px"),e.\u0275\u0275classProp("doc-item__opened",nt.documentItem.additionalData&&nt.documentItem.additionalData.expanded),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(35,po,nt.clickable&&nt.isQrCodeDocument)),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("left-justify-content",!nt.isDocumentsForSignTab&&nt.isShowSVGDoc),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.isDocumentsForSignTab&&nt.selectable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!nt.isDocumentsForSignTab&&nt.isShowSVGDoc&&!nt.isTSPDocument&&!nt.isQrRefundDocument&&!nt.isQrCodeDocument),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.isQrCodeDocument),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!nt.isDocumentsForSignTab&&nt.isShowSVGDoc&&(nt.isTSPDocument||nt.isQrRefundDocument)),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("flexable",nt.documentItem.depositInfo),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",nt.documentItem.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","waiting"===nt.getStatusSwiftMessage(nt.documentItem)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.docType===nt.DOC_TYPES.NotificationCrediting&&nt.documentItem.bankShortName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.conversionInfo),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.additionalData&&nt.documentItem.additionalData.absStatusCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.additionalData&&nt.documentItem.additionalData.additionalVedStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.isQrCodeDocument),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","tsp_registr_hard_pos"===nt.documentItem.docType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.depositInfo),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.description),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.customDecline&&nt.documentItem.declineInfo),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf","inq_curr_181"===(null==nt.documentItem.additionalData?null:nt.documentItem.additionalData.docType))("ngIfElse",De),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",!nt.isQrCodeDocument)("ngIfElse",ve),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",nt.documentItem.conversionInfo),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.dots)("ngIfElse",Se),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!nt.documentItem.customDecline&&(nt.isTSPDocument||nt.isQrRefundDocument)&&nt.isShowDeclineStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.documentItem.additionalData&&nt.documentItem.additionalData.expanded)}},styles:['@charset "UTF-8";.doc-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}.doc-item__left[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:65%;margin-right:auto}.doc-item__check[_ngcontent-%COMP%]{width:40px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.doc-item__item[_ngcontent-%COMP%]{padding:21px 10px 23px 20px;display:flex;flex:1;align-items:center}.doc-item__opened[_ngcontent-%COMP%]   .doc-item__item[_ngcontent-%COMP%]{background:rgba(222,222,222,.5)}.doc-item__details[_ngcontent-%COMP%]{padding:30px 30px 30px 20px;position:relative;display:flex}.doc-item__details-doc[_ngcontent-%COMP%]{padding-bottom:30px;position:relative;display:flex}.doc-item__details-doc[_ngcontent-%COMP%]   .doc-item[_ngcontent-%COMP%]{margin:1rem 0 0 3rem}.doc-item__details-doc[_ngcontent-%COMP%]   .doc-item__details-info[_ngcontent-%COMP%]{overflow:visible;width:100%}.doc-item__details-block[_ngcontent-%COMP%]:not(:last-child){margin-bottom:24px}.doc-item__details-info[_ngcontent-%COMP%]{overflow:hidden;flex-grow:1;margin-right:auto}.doc-item__details-info[_ngcontent-%COMP%] > .doc-item__details-block[_ngcontent-%COMP%]{margin-right:40px}.doc-item__title-top-block[_ngcontent-%COMP%]{display:flex}.doc-item__title-main[_ngcontent-%COMP%]{margin-right:12px;font-size:16px;line-height:22px}.doc-item__swift[_ngcontent-%COMP%]{display:flex;border-radius:60px;padding:2px 15px;font-weight:400;font-size:16px;line-height:22px;border:1px solid;white-space:nowrap}.doc-item__swift--sub[_ngcontent-%COMP%]{margin-left:5px}.doc-item__right-block[_ngcontent-%COMP%]{flex:.8;display:flex;flex-direction:column;justify-content:space-between;align-items:end}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-weight:400;min-height:260px;width:320px;padding:21px;text-align:center;background:rgba(222,222,222,.5);border-radius:4px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{line-height:22px;margin-bottom:25px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{line-height:22px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{line-height:22px;font-weight:600;margin-bottom:20px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.black[_ngcontent-%COMP%]{color:#444}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.blue[_ngcontent-%COMP%]{color:#003ad2}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.green[_ngcontent-%COMP%]{color:#00a843}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.orange[_ngcontent-%COMP%]{color:#f39034}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.red[_ngcontent-%COMP%]{color:#ff2727}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .bank[_ngcontent-%COMP%]{line-height:22px;font-weight:600;margin-bottom:33px;text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;position:relative}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]   .panel-form__button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;height:44px;width:162px!important;color:#003ad2;border-color:#003ad2}.doc-item__details-buttons[_ngcontent-%COMP%]{max-width:35%;display:flex;flex-grow:1;flex-direction:column;justify-content:space-between;border-left:1px solid #dedede}.doc-item__details-element[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #dedede;padding:10px 0}.doc-item__details-element[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{min-width:10rem}.doc-item__details-element[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{text-align:right}.doc-item__details-element[_ngcontent-%COMP%]:first-child{padding:0 0 10px}.doc-item__details-element[_ngcontent-%COMP%]:last-child{border-bottom:none}.doc-item__qr-label[_ngcontent-%COMP%]{background:#F1F2F2;padding:4px 8px;font-weight:700;font-size:10px;line-height:14px;color:#2f54eb;border-radius:4px}.doc-item__hard_pos_badges[_ngcontent-%COMP%]{display:flex;grid-gap:12px}.doc-item__details-element-single[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-top:1px solid #dedede;padding:10px 0;margin-right:40px}.doc-item__details-element-single[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{min-width:10rem}.doc-item__details-element-single[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{text-align:right}.doc-item-hovered[_ngcontent-%COMP%]:hover{background-color:#f1f2f1}.doc-item__title[_ngcontent-%COMP%]{font-size:20px;line-height:25px;color:#000;margin-bottom:8px}.doc-item__title.flexable[_ngcontent-%COMP%], .doc-item__title-wrapper[_ngcontent-%COMP%]{display:flex}.doc-item__title-content[_ngcontent-%COMP%]{flex:0 1 32%;white-space:nowrap}.doc-item__title-conversion-status[_ngcontent-%COMP%]{margin-left:20px;padding:4px 20px;border-radius:10px;font-size:16px;min-width:123px;line-height:16px;text-align:center;background:rgba(157,157,157,.1);color:#9d9d9d}.doc-item__title-conversion-status.performed[_ngcontent-%COMP%]{background:rgba(40,178,109,.1);color:#28b26d}.doc-item__title-conversion-status.in-processing[_ngcontent-%COMP%]{background:rgba(40,70,129,.1);color:#284681}.doc-item__title-conversion-status.for-sign[_ngcontent-%COMP%]{background:rgba(157,157,157,.1);color:#9d9d9d}.doc-item__title-conversion-status.canceled[_ngcontent-%COMP%]{background:rgba(217,41,30,.1);color:#d9291e}.doc-item__title-conversion-status.swift-waiting[_ngcontent-%COMP%]{color:#003ad2;font-weight:bolder}.doc-item__title-conversion-status.no-margin[_ngcontent-%COMP%]{margin-left:0!important}.doc-item__desc[_ngcontent-%COMP%]{font-size:16px;line-height:21px;color:#88909b;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.doc-item__desc.custom-decline[_ngcontent-%COMP%]{color:#d9291e;margin-top:11px}.doc-item__desc.ellipsis-cut[_ngcontent-%COMP%]{max-width:786px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-item__right[_ngcontent-%COMP%]{display:flex;align-items:center}.sbp-qr-icon[_ngcontent-%COMP%]{color:#88909b}.doc-item__info-wrap[_ngcontent-%COMP%]{text-align:right;margin-right:10px}.doc-item__info[_ngcontent-%COMP%]{font-size:14px;line-height:19px;margin-bottom:8px}.doc-item__sum-svo[_ngcontent-%COMP%]{display:flex;flex-direction:column}.doc-item__status[_ngcontent-%COMP%]{white-space:nowrap;font-size:16px;line-height:22px;color:#88909b}.doc-item__status[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.doc-item__status.green[_ngcontent-%COMP%]{color:#00a843}.doc-item__status.red[_ngcontent-%COMP%]{color:#d9291e}.doc-item__status.primary[_ngcontent-%COMP%]{color:#284681}.doc-item__status-decline[_ngcontent-%COMP%]{white-space:normal;color:#d9291e;word-break:break-word}.doc-item__conversion-amount[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;font-size:20px;font-weight:400;text-align:right}.doc-item__conversion-amount[_ngcontent-%COMP%]   .credit-amount[_ngcontent-%COMP%]{color:#28b26d}.doc-item__conversion-amount[_ngcontent-%COMP%]   .debit-amount[_ngcontent-%COMP%]{color:#d9291e}.doc-item__conversion-amount.revers-info[_ngcontent-%COMP%]{flex-direction:column-reverse}.doc-item__dots[_ngcontent-%COMP%]{position:relative}.no-right-padding[_ngcontent-%COMP%]{padding-right:0}.big-margin-bottom[_ngcontent-%COMP%]{margin-bottom:20px}.big-margin-top[_ngcontent-%COMP%]{margin-top:20px}.doc-item__details-block--value-payment[_ngcontent-%COMP%]   .doc-item__details-element[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:10px 0}.doc-item__details-block--value-payment[_ngcontent-%COMP%]   .doc-item__details-element[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-of-type{color:#444}.doc-item__details-block--value-payment[_ngcontent-%COMP%]   .doc-item__details-element[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{color:#000}.doc-item__details-block--value-payment[_ngcontent-%COMP%]   .doc-item__details-element[_ngcontent-%COMP%]{display:flex;padding:10px 0;border-bottom:none;justify-content:initial}.doc-item__details-block--value-payment[_ngcontent-%COMP%]   .doc-item__details-element[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-of-type{color:#444;width:32%;display:flex;flex-shrink:0;padding-right:5px}.doc-item__details-block--value-payment[_ngcontent-%COMP%]   .doc-item__details-element[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{color:#000;display:flex;flex-grow:1}.bank-wrapper[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;position:relative}.left-justify-content[_ngcontent-%COMP%]{justify-content:left}.tsp-status-decline[_ngcontent-%COMP%]{font-size:14px;color:#e23428;padding:4px 20px 12px 60px;word-break:normal;overflow-wrap:anywhere}.close[_ngcontent-%COMP%]{width:18px;height:18px}']})}(0,n.gn)([(0,i.SQ)()],Io.prototype,"lang",void 0)},76817:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>n});var n=(()=>{return(e=n||(n={})).SBP="sbp",e.DEFAULT="default",n;var e})()},88210:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>ne});var n=t(36895),e=t(97392),i=t(10266),d=t(16611),a=t(36561),u=t(38360),h=t(74471),l=t(57639),m=t(9522),x=t(58723),O=t(34982),L=t(78895),w=t(54474),B=t(76042),_=t(91762),y=t(94650),$=t(25781),C=t(24201),T=t(46923),j=t(75568),I=t(18751),F=t(37479),z=t(90995),X=t(23230),p=t(67821),P=t(95495),E=t(98504),R=t(27760);let ne=(()=>{class G{static#e=this.\u0275fac=function(we){return new(we||G)};static#t=this.\u0275mod=y.\u0275\u0275defineNgModule({type:G});static#n=this.\u0275inj=y.\u0275\u0275defineInjector({imports:[n.ez,l.n,w.g,d.qw,u.I,L.q,O.i,x.Y,m.b,a.D,h.h,i.AV,e.Ps,_.y]})}return G})();y.\u0275\u0275setComponentScope(B._,[n.mk,n.sg,n.O5,n.tP,n.RF,n.n9,n.ED,$.b,C.r,T.n,j.R,I.Z,F.p,z.r,i.gM,e.Hw,_.y,B._],[n.Ov,n.JJ,n.uU,d.X$,X.g,p.z,P.l,E.H,R.u])},48086:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>lt});var n=t(97582),e=t(94650),i=t(16611),d=t(15439),a=t.n(d),u=t(77579),h=t(6146),l=t(18545),x=(t(66266),t(76817)),O=t(29198),L=t(82350),w=t(36895),B=t(25781),_=t(76042),y=t(24201),$=t(18751),C=t(11260);function T(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",Tt.document.revokeStatus),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Tt.getStatus()," ")}}function j(Dt,Yt){if(1&Dt){const Tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12)(1,"app-menu-select",13),e.\u0275\u0275listener("actionDone",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(wt.onActionDone(Gt))})("change",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(wt.onDotItemClicked(Gt))})("openChanged",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(wt.onDotsClick(Gt))}),e.\u0275\u0275element(2,"app-dots"),e.\u0275\u0275elementEnd()()}if(2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("buttonActions",Tt.buttons)("icon",!0)}}class I{constructor(){this.buttons=[],this.dotsClicked=new e.EventEmitter,this.dotItemClicked=new e.EventEmitter,this.actionDone=new e.EventEmitter}get description(){return this.document?this.document.description.replace(/\u2116\d*/,`\u2116${this.document.revokeDocNumber}`):""}ngOnChanges(){this.document&&(this.buttons=[{type:"sign_revoke_document",data:{docId:this.document.revokeId,docType:"revoke_document",docModule:"ibankul",revoked:{docId:this.document.id,docType:this.document.docType,docModule:this.document.docModule}}}])}onDotsClick(Yt){Yt&&this.dotsClicked.emit()}onDotItemClicked(Yt){this.dotItemClicked.emit(Yt)}onActionDone(Yt){this.actionDone.emit(Yt)}getStatus(){if(this.document){const{revokeStatus:Yt}=this.document;let Tt="";switch(Yt){case"new":Tt="\u041d\u043e\u0432\u044b\u0439";break;case"send":Tt="\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435";break;case"decline":Tt="\u041e\u0442\u043c\u0435\u043d\u0435\u043d";break;case"end":Tt="\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d"}return Tt}return""}ngOnInit(){}static#e=this.\u0275fac=function(Tt){return new(Tt||I)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:I,selectors:[["app-document-revoke-item"]],inputs:{document:"document",clickable:"clickable"},outputs:{dotsClicked:"dotsClicked",dotItemClicked:"dotItemClicked",actionDone:"actionDone"},features:[e.\u0275\u0275NgOnChangesFeature],decls:13,vars:6,consts:[[1,"doc-item",2,"padding-right","0"],[1,"doc-item__left"],[1,"doc-item__title","flexable"],["icon","turn","svgClass","icon"],[1,"revoke-title"],[1,"doc-item__title-wrapper"],[1,"doc-item__title-content"],["class","doc-item__title-conversion-status",3,"ngClass",4,"ngIf"],[1,"doc-item__desc"],[1,"doc-item__right"],["class","doc-item__dots",4,"ngIf"],[1,"doc-item__title-conversion-status",3,"ngClass"],[1,"doc-item__dots"],["backgroundClass","operation",3,"buttonActions","icon","actionDone","change","openChanged"]],template:function(Tt,ot){1&Tt&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275element(3,"app-svg-icon",3),e.\u0275\u0275elementStart(4,"div",4)(5,"div",5)(6,"div",6),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,T,2,2,"div",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",8),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(11,"div",9),e.\u0275\u0275template(12,j,3,2,"div",10),e.\u0275\u0275elementEnd()()),2&Tt&&(e.\u0275\u0275styleProp("cursor",ot.clickable?"pointer":"default"),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1(" ",ot.document.revokeTitle," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.document.revokeStatus),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",ot.description," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","new"===ot.document.revokeStatus))},dependencies:[w.mk,w.O5,y.r,$.Z,C.b],styles:['@charset "UTF-8";.doc-item[_ngcontent-%COMP%]{padding:23px 20px 25px;display:flex;justify-content:space-between}.doc-item__left[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column}.doc-item__title[_ngcontent-%COMP%]{font-size:20px;line-height:25px;color:#000;margin-bottom:4px}.doc-item__title.flexable[_ngcontent-%COMP%], .doc-item__title-wrapper[_ngcontent-%COMP%]{display:flex}.doc-item__title-content[_ngcontent-%COMP%]{flex:0 1 32%}.doc-item__title-conversion-status[_ngcontent-%COMP%]{margin-left:20px;padding:4px 20px;border-radius:10px;font-size:16px;min-width:123px;line-height:16px;text-align:center;background:rgba(157,157,157,.1);color:#9d9d9d}.doc-item__title-conversion-status.send[_ngcontent-%COMP%]{background:rgba(40,70,129,.1);color:#284681}.doc-item__title-conversion-status.new[_ngcontent-%COMP%]{background:rgba(157,157,157,.1);color:#9d9d9d}.doc-item__title-conversion-status.decline[_ngcontent-%COMP%]{background:rgba(217,41,30,.1);color:#d9291e}.doc-item__title-conversion-status.end[_ngcontent-%COMP%]{background:rgba(40,178,109,.1);color:#28b26d}.doc-item__desc[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:#88909b;margin-top:9px}.doc-item__desc.custom-decline[_ngcontent-%COMP%]{color:#d9291e;margin-top:11px}.doc-item__right[_ngcontent-%COMP%]{display:flex;align-items:center}.doc-item__info-wrap[_ngcontent-%COMP%]{text-align:right}.doc-item__info[_ngcontent-%COMP%]{font-size:20px;line-height:20px;margin-bottom:9px}.doc-item__status[_ngcontent-%COMP%]{white-space:nowrap;font-size:16px;line-height:20px;color:#88909b}.doc-item__status.green[_ngcontent-%COMP%]{color:#28b26d}.doc-item__status.red[_ngcontent-%COMP%]{color:#d9291e}.doc-item__conversion-amount[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;font-size:20px;font-weight:400;text-align:right}.doc-item__conversion-amount[_ngcontent-%COMP%]   .credit-amount[_ngcontent-%COMP%]{color:#28b26d}.doc-item__conversion-amount[_ngcontent-%COMP%]   .debit-amount[_ngcontent-%COMP%]{color:#d9291e}.doc-item__conversion-amount.revers-info[_ngcontent-%COMP%]{flex-direction:column-reverse}.doc-item__dots[_ngcontent-%COMP%]{position:relative}app-svg-icon[_ngcontent-%COMP%]{display:flex}app-svg-icon[_ngcontent-%COMP%]     .icon{align-self:center;fill:#cfd2d6;width:22px;height:21px}.revoke-title[_ngcontent-%COMP%]{margin-left:22px}.revoke-title[_ngcontent-%COMP%]   .doc-item__title-content[_ngcontent-%COMP%]{flex-basis:auto}']})}(0,n.gn)([(0,i.SQ)()],I.prototype,"lang",void 0);var F=t(20327),z=t(53886),X=t(75568),p=t(97392),P=t(98504);function E(Dt,Yt){1&Dt&&e.\u0275\u0275element(0,"mat-icon",17),2&Dt&&e.\u0275\u0275property("svgIcon","sbp-registry")}function R(Dt,Yt){if(1&Dt&&e.\u0275\u0275element(0,"mat-icon",18),2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275property("svgIcon",Tt.iconLink)}}function ne(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"span",19),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",Tt.getStatusColor(Tt.document.dboStatus)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Tt.document.dboStatus," ")}}function G(Dt,Yt){if(1&Dt){const Tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",20)(1,"app-menu-select",21),e.\u0275\u0275listener("actionDone",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(wt.onActionDone(Gt))})("changeEvent",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(wt.onDotItemClicked(Gt))})("openChanged",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(wt.onDotsClick(Gt))}),e.\u0275\u0275element(2,"app-dots",22),e.\u0275\u0275elementEnd()()}if(2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("buttonActions",Tt.document.buttonActions)("icon",!0)("docName",Tt.docName)}}function ce(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"span",23),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"lowercase"),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reason",Tt.lang),": ",e.\u0275\u0275pipeBind1(3,5,Tt.document.dboStatusDescription)," ")}}function xe(Dt,Yt){1&Dt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",27),e.\u0275\u0275element(2,"app-loader"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd())}function we(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-document-sbp-item",29),e.\u0275\u0275elementContainerEnd()),2&Dt){const Tt=Yt.$implicit,ot=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("document",Tt)("type",ot.SBP_DOCUMENT_TYPE.SECONDARY)}}function Ge(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,we,2,2,"ng-container",28),e.\u0275\u0275elementContainerEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Tt.document.secondaryDocs)}}function ct(Dt,Yt){if(1&Dt&&e.\u0275\u0275template(0,Ge,2,1,"ng-container",24),2&Dt){e.\u0275\u0275nextContext();const Tt=e.\u0275\u0275reference(5),ot=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",ot.document.secondaryDocs&&ot.document.secondaryDocs.length)("ngIfElse",Tt)}}function pe(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"div",30),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"No registry documents",Tt.lang)," ")}}function Ce(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,xe,3,0,"ng-container",24),e.\u0275\u0275template(2,ct,1,2,"ng-template",null,25,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(4,pe,3,4,"ng-template",null,26,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275reference(3),ot=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.document.isLoading)("ngIfElse",Tt)}}var U=(()=>{return(Dt=U||(U={})).MAIN="main",Dt.SECONDARY="secondary",U;var Dt})();class H{constructor(Yt,Tt){this.translation=Yt,this.sbpService=Tt,this.type=U.MAIN,this.dotsClicked=new e.EventEmitter,this.docClicked=new e.EventEmitter,this.dotItemClicked=new e.EventEmitter,this.actionDone=new e.EventEmitter,this.currency="RUB",this.SBP_DOCUMENT_TYPE=U,this.SBP_AGREEMENT_DOC_TYPES=z.H}get docName(){return this.document.docType===this.SBP_AGREEMENT_DOC_TYPES.REGISTRY?this.translation.translate("Payroll registry {{number}} since {{date}}",{number:this.document.number,date:this.document.reportMonth}):this.document.docName||""}get subTitle(){return this.document.subTitle||""}get iconLink(){let Yt="";switch(this.document.dboStatus.toLowerCase()){case"\u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a":Yt="sbp-registry-draft";break;case"\u043e\u0442\u043a\u0430\u0437\u0430\u043d":Yt="sbp-registry-canceled";break;default:Yt="sbp-registry-send"}return Yt}onDocClick(){this.type!==U.SECONDARY&&(this.document.isOpened=!this.document.isOpened,!this.document.secondaryDocs.length&&this.docClicked.emit(this.document))}onDotsClick(Yt){}onDotItemClicked(Yt){}onActionDone(Yt){this.actionDone.emit(Yt)}getStatusColor(Yt){return this.sbpService.getStatusColor(Yt)}static#e=this.\u0275fac=function(Tt){return new(Tt||H)(e.\u0275\u0275directiveInject(i.D7),e.\u0275\u0275directiveInject(L.V))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["app-document-sbp-item"]],inputs:{document:"document",type:"type"},outputs:{dotsClicked:"dotsClicked",docClicked:"docClicked",dotItemClicked:"dotItemClicked",actionDone:"actionDone"},decls:20,vars:14,consts:[[1,"doc-container"],[1,"doc-item",3,"click"],[1,"doc-item__icon"],["class","registry-payment-icon",3,"svgIcon",4,"ngIf"],[3,"svgIcon",4,"ngIf"],[1,"doc-item__left"],[1,"doc-item__title","flexable"],[1,"doc-item__title-wrapper"],[1,"doc-item__title-top-block"],[1,"doc-item__title-main",3,"ngClass"],["class","doc-item__badge-status",3,"ngClass",4,"ngIf"],["data-qa","1657799542921",1,"doc-item__right"],[1,"doc-item__info-wrap"],[1,"doc-item__info"],["data-qa","1665750073423",4,"ngIf"],["class","doc-item__desc",4,"ngIf"],[4,"ngIf"],[1,"registry-payment-icon",3,"svgIcon"],[3,"svgIcon"],[1,"doc-item__badge-status",3,"ngClass"],["data-qa","1665750073423"],["backgroundClass","operation","data-qa","1665750058776",3,"buttonActions","icon","docName","actionDone","changeEvent","openChanged"],["data-qa","1665750061965"],[1,"doc-item__desc"],[4,"ngIf","ngIfElse"],["result",""],["emptyResult",""],[1,"doc-item__loader"],[4,"ngFor","ngForOf"],[1,"doc-item__opened--secondary",3,"document","type"],[1,"doc-item__empty"]],template:function(Tt,ot){1&Tt&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return ot.onDocClick()}),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275template(3,E,1,1,"mat-icon",3),e.\u0275\u0275template(4,R,1,1,"mat-icon",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(11,ne,2,2,"span",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"div",11)(13,"div",12)(14,"div",13),e.\u0275\u0275text(15),e.\u0275\u0275pipe(16,"appCurrency"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(17,G,3,3,"div",14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(18,ce,4,7,"span",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(19,Ce,6,2,"div",16)),2&Tt&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",ot.type===ot.SBP_DOCUMENT_TYPE.SECONDARY),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.type===ot.SBP_DOCUMENT_TYPE.MAIN),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngClass",ot.type===ot.SBP_DOCUMENT_TYPE.SECONDARY?"secondary":""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",ot.docName," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.type!==ot.SBP_DOCUMENT_TYPE.SECONDARY),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind3(16,10,ot.document.amount,2,".")," ",ot.currency||ot.document.currency,""),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",ot.document.buttonActions),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.document.dboStatusDescription),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.document.isOpened))},dependencies:[w.mk,w.sg,w.O5,y.r,$.Z,X.R,p.Hw,H,w.i8,i.X$,P.H],styles:['@charset "UTF-8";.sbp-doc-icon[_ngcontent-%COMP%]{color:#88909b}.doc-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.doc-item[_ngcontent-%COMP%]{padding:23px 20px 25px;display:flex;justify-content:space-between;align-items:center;flex-grow:1}.doc-item__loader[_ngcontent-%COMP%]{border-top:1px solid #dedede;position:relative;height:104px;width:100%}.doc-item__icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:22px;width:20px;height:20px}.doc-item__left[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:row}.doc-item__check[_ngcontent-%COMP%]{width:40px;display:flex;align-items:center;justify-content:center}.doc-item__item[_ngcontent-%COMP%]{padding:21px 10px 23px 20px;display:flex;justify-content:space-between;align-items:center}.doc-item__empty[_ngcontent-%COMP%]{border-top:1px solid #dedede;position:relative;height:104px;width:100%;display:flex;justify-content:center;align-items:center;font-size:18px;line-height:25px}.doc-item__opened[_ngcontent-%COMP%]{background:rgba(222,222,222,.5)!important}.doc-item__opened--secondary[_ngcontent-%COMP%]{border-top:1px solid #dedede;display:flex;width:100%;cursor:initial}.doc-item__opened--secondary[_ngcontent-%COMP%]   .sbp-doc-icon[_ngcontent-%COMP%]{transform:scale(.8333333333)}.doc-item__details[_ngcontent-%COMP%]{padding:30px 30px 30px 20px;position:relative;display:flex}.doc-item__details-block[_ngcontent-%COMP%]:not(:last-child){margin-bottom:24px}.doc-item__details-info[_ngcontent-%COMP%]{flex:1.2;padding:0 9% 0 0}.doc-item__title-top-block[_ngcontent-%COMP%]{display:flex}.doc-item__title-main[_ngcontent-%COMP%]{margin-right:25px;font-size:16px;color:#080708;line-height:22px}.doc-item__title-main.secondary[_ngcontent-%COMP%]{font-size:14px;color:#444;line-height:20px}.doc-item__swift[_ngcontent-%COMP%]{display:flex;border-radius:60px;padding:2px 15px;font-weight:400;font-size:16px;line-height:22px;border:1px solid;white-space:nowrap}.doc-item__swift--sub[_ngcontent-%COMP%]{margin-left:5px}.doc-item__right-block[_ngcontent-%COMP%]{flex:.8;display:flex;flex-direction:column;justify-content:space-between;align-items:end}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;font-weight:400;min-height:260px;width:320px;padding:21px;text-align:center;background:rgba(222,222,222,.5);border-radius:4px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{line-height:22px;margin-bottom:25px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{line-height:22px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{line-height:22px;font-weight:600;margin-bottom:20px}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.black[_ngcontent-%COMP%]{color:#444}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.blue[_ngcontent-%COMP%]{color:#003ad2}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.green[_ngcontent-%COMP%]{color:#00a843}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.orange[_ngcontent-%COMP%]{color:#f39034}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .status.red[_ngcontent-%COMP%]{color:#ff2727}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   .bank[_ngcontent-%COMP%]{line-height:22px;font-weight:600;margin-bottom:33px;text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%}.doc-item__right-block[_ngcontent-%COMP%]   .tracker-gpi[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]   .panel-form__button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;height:44px;width:162px!important;color:#003ad2;border-color:#003ad2}.doc-item__details-buttons[_ngcontent-%COMP%]{flex:.6;display:flex;flex-direction:column;justify-content:space-between;border-left:1px solid #dedede}.doc-item__details-element[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #dedede;padding:10px 0}.doc-item__details-element[_ngcontent-%COMP%]:first-child{padding:0 0 10px}.doc-item__details-element[_ngcontent-%COMP%]:last-child{border-bottom:none}.doc-item__title[_ngcontent-%COMP%]{font-size:20px;line-height:25px;color:#000}.doc-item__title.flexable[_ngcontent-%COMP%], .doc-item__title-wrapper[_ngcontent-%COMP%]{display:flex}.doc-item__title-content[_ngcontent-%COMP%]{flex:0 1 32%;white-space:nowrap}.doc-item__title-conversion-status[_ngcontent-%COMP%]{margin-left:20px;padding:4px 20px;border-radius:10px;font-size:16px;min-width:123px;line-height:16px;text-align:center;background:rgba(157,157,157,.1);color:#9d9d9d}.doc-item__title-conversion-status.performed[_ngcontent-%COMP%]{background:rgba(40,178,109,.1);color:#28b26d}.doc-item__title-conversion-status.in-processing[_ngcontent-%COMP%]{background:rgba(40,70,129,.1);color:#284681}.doc-item__title-conversion-status.for-sign[_ngcontent-%COMP%]{background:rgba(157,157,157,.1);color:#9d9d9d}.doc-item__title-conversion-status.canceled[_ngcontent-%COMP%]{background:rgba(217,41,30,.1);color:#d9291e}.doc-item__desc[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;color:#e23428;margin-left:60px;margin-bottom:20px}.doc-item__desc.custom-decline[_ngcontent-%COMP%]{color:#d9291e;margin-top:11px}.doc-item__badge-status[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:600;font-size:12px;line-height:16px;background-color:#f1f2f2;color:#88909b;padding:3px}.doc-item__badge-status.green[_ngcontent-%COMP%]{color:#00a843}.doc-item__badge-status.red[_ngcontent-%COMP%]{color:#e23428}.doc-item__badge-status.blue[_ngcontent-%COMP%]{color:#2f54eb}.doc-item__badge-status.black[_ngcontent-%COMP%]{color:#444}.doc-item__badge-status.orange[_ngcontent-%COMP%]{color:#f68462}.doc-item__right[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:150px;justify-content:flex-end}.doc-item__info-wrap[_ngcontent-%COMP%]{text-align:right}.doc-item__info[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#444}.doc-item__status[_ngcontent-%COMP%]{white-space:nowrap;font-size:16px;line-height:22px;color:#88909b}.doc-item__status[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.doc-item__status.green[_ngcontent-%COMP%]{color:#28b26d}.doc-item__status.red[_ngcontent-%COMP%]{color:#d9291e}.doc-item__status.blue[_ngcontent-%COMP%]{color:#003ad2}.doc-item__status.black[_ngcontent-%COMP%]{color:#444}.doc-item__status.orange[_ngcontent-%COMP%]{color:#f68462}.doc-item__status-decline[_ngcontent-%COMP%]{white-space:normal}.registry-payment-icon[_ngcontent-%COMP%]{width:18px;height:18px}']})}function Z(Dt,Yt){if(1&Dt){const Tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-checkbox",9),e.\u0275\u0275listener("checkboxChange",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext(2).$implicit,Ze=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ze.onCheckboxDateChange(Gt,wt.dateImmutable))}),e.\u0275\u0275elementEnd()}if(2&Dt){const Tt=e.\u0275\u0275nextContext(2),ot=Tt.$implicit,Gt=Tt.index,wt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",wt.isAllDocsSelectedByDate(ot.dateImmutable)),e.\u0275\u0275attribute("data-qa","1659534308954"+Gt)}}function oe(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275template(1,Z,1,2,"app-checkbox",8),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext().$implicit,ot=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.isDocumentsForSignTab),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Tt.date," ")}}function Pe(Dt,Yt){if(1&Dt){const Tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"li",13)(1,"app-document-item",14),e.\u0275\u0275listener("actionDone",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext(2).$implicit,Ze=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Ze.onActionDone(Gt,wt))})("checkboxClicked",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(wt.onCheckboxClicked(Gt))})("dotItemClicked",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext(2).$implicit,Ze=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Ze.onDotItemClick(Gt,wt))})("dotsClicked",function(){e.\u0275\u0275restoreView(Tt);const Gt=e.\u0275\u0275nextContext(2).$implicit,wt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(wt.onDotsClick(Gt))})("dotsClickedEmbeddedDocument",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(wt.onDotsClickEmbeddedDocument(Gt))})("docClicked",function(){e.\u0275\u0275restoreView(Tt);const Gt=e.\u0275\u0275nextContext(2).$implicit,wt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(wt.onDocClick(Gt))})("openGpiClicked",function(){e.\u0275\u0275restoreView(Tt);const Gt=e.\u0275\u0275nextContext(2).$implicit,wt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(wt.onOpenGpiDetails(Gt))}),e.\u0275\u0275elementEnd()()}if(2&Dt){const Tt=e.\u0275\u0275nextContext(2),ot=Tt.index,Gt=Tt.$implicit,wt=e.\u0275\u0275nextContext().index,Ze=e.\u0275\u0275nextContext(2);e.\u0275\u0275attribute("data-qa","1657799406517"+wt+ot),e.\u0275\u0275advance(1),e.\u0275\u0275property("clickable",Ze.documentsClickable)("documentItem",Gt)("isDocumentsForSignTab",Ze.isDocumentsForSignTab)("selected",Ze.selectedDocuments?Ze.selectedDocuments.includes(Gt):null),e.\u0275\u0275attribute("data-qa","1662986487"+wt+ot)}}function Ie(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"li",13),e.\u0275\u0275element(1,"app-document-revoke-item",15),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext(2),ot=Tt.index,Gt=Tt.$implicit,wt=e.\u0275\u0275nextContext().index;e.\u0275\u0275attribute("data-qa","1657799445045"+wt+ot),e.\u0275\u0275advance(1),e.\u0275\u0275property("document",Gt)}}function pt(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Pe,2,6,"li",12),e.\u0275\u0275template(2,Ie,2,2,"li",12),e.\u0275\u0275elementContainerEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext().$implicit,ot=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ot.getHideItem(Tt)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Tt.revokeDocNumber)}}function Ht(Dt,Yt){if(1&Dt){const Tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"li",16)(2,"app-document-sbp-item",17),e.\u0275\u0275listener("actionDone",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(wt.onActionDone(Gt))})("docClicked",function(){e.\u0275\u0275restoreView(Tt);const Gt=e.\u0275\u0275nextContext().$implicit,wt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(wt.sbpDocClick(Gt))})("dotItemClicked",function(Gt){e.\u0275\u0275restoreView(Tt);const wt=e.\u0275\u0275nextContext().$implicit,Ze=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Ze.onDotItemClick(Gt,wt))})("dotsClicked",function(){e.\u0275\u0275restoreView(Tt);const Gt=e.\u0275\u0275nextContext().$implicit,wt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(wt.onDotsClick(Gt))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&Dt){const Tt=e.\u0275\u0275nextContext(),ot=Tt.index,Gt=Tt.$implicit,wt=e.\u0275\u0275nextContext().index;e.\u0275\u0275advance(1),e.\u0275\u0275attribute("data-qa","1665609055542"+wt+ot),e.\u0275\u0275advance(1),e.\u0275\u0275property("document",Gt)}}function Wt(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementContainerStart(0)(1,10),e.\u0275\u0275template(2,pt,3,2,"ng-container",11),e.\u0275\u0275template(3,Ht,3,2,"ng-container",11),e.\u0275\u0275elementContainerEnd()()),2&Dt){const Tt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitch",Tt.itemType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",Tt.DOC_ITEM_TYPES.DEFAULT),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",Tt.DOC_ITEM_TYPES.SBP)}}function Xe(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,oe,3,2,"div",6),e.\u0275\u0275template(2,Wt,4,3,"ng-container",5),e.\u0275\u0275elementEnd()),2&Dt){const Tt=Yt.$implicit;e.\u0275\u0275attribute("data-qa","1662986308"+Yt.index),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Invalid date"!==Tt.date),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Tt.documents)}}function Qe(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementStart(0,"ul",4),e.\u0275\u0275template(1,Xe,3,3,"div",5),e.\u0275\u0275elementEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Tt.formattedDocs)}}function Be(Dt,Yt){if(1&Dt){const Tt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-show-more-button",18),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Tt);const Gt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Gt.onShowMoreClick())}),e.\u0275\u0275elementEnd()}}function at(Dt,Yt){if(1&Dt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",19),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&Dt){const Tt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,1,Tt.notFoundText,Tt.lang)," ")}}(0,n.gn)([(0,i.SQ)()],H.prototype,"lang",void 0);class lt{constructor(Yt,Tt){this.vedService=Yt,this.sbpService=Tt,this.selectedDocuments=null,this.showMoreButton=!1,this.chosenAllDocsByDate=!1,this.itemType=x.l.DEFAULT,this.documentsClickable=!0,this.isSbp=!1,this.isDocumentsForSignTab=!1,this.hideItem=!1,this.selectable=!1,this.docClicked=new e.EventEmitter,this.dotsClicked=new e.EventEmitter,this.dotsClickedEmbeddedDocument=new e.EventEmitter,this.dotItemClicked=new e.EventEmitter,this.actionDone=new e.EventEmitter,this.showMoreClicked=new e.EventEmitter,this.selectDocs=new e.EventEmitter,this.checkboxDateClicked=new e.EventEmitter,this.openGpiClicked=new e.EventEmitter,this.sbpDocClicked=new e.EventEmitter,this.manualNotFoundText="",this.formattedDocs=[],this.documentsData=[],this.documentsDataSbp=[],this.DOC_ITEM_TYPES=x.l,this.destroy$=new u.x}set documents(Yt){Yt&&(this.documentsData=Yt,this.formattedDocs=this.getDocsBlocks())}set documentsSbp(Yt){Yt&&(this.documentsDataSbp=Yt,this.formattedDocs=this.getDocsBlocksSbp())}get notFoundText(){return this.manualNotFoundText.length?this.manualNotFoundText:this.tabType&&this.tabType.value?this.vedService.getNotFoundText(this.tabType.value):this.vedService.getNotFoundText()}sbpDocClick(Yt){this.sbpDocClicked.emit(Yt)}onDocClick(Yt){this.docClicked.emit(Yt)}onDotsClick(Yt){this.dotsClicked.emit(Yt)}onDotsClickEmbeddedDocument(Yt){this.dotsClickedEmbeddedDocument.emit(Yt)}onOpenGpiDetails(Yt){this.openGpiClicked.emit(Yt)}onDotItemClick(Yt,Tt){this.dotItemClicked.emit({item:Yt,document:Tt})}onActionDone(Yt,Tt){const Gt=[h.o.ConfirmIrreducibleBalance,h.o.ConfirmCashPlacement].includes(Tt?.docType||Tt?.additionalData?.docType)?{actionType:Yt,document:Tt}:Yt;this.actionDone.emit(Gt)}onShowMoreClick(){this.showMoreClicked.emit()}getHideItem(Yt){return"boolean"==typeof this.hideItem?this.hideItem:this.hideItem(Yt)}onCheckboxClicked(Yt){this.selectDocs.emit(Yt)}getDocsBlocks(){return this.documentsData?this.documentsData.reduce((Tt,ot)=>{if("Invalid date"!==ot.info){const Gt=(ot.info||"").split(",")[0]||ot.info,wt=Tt.find(Ze=>Ze.date===Gt);wt?wt.documents.push(ot):Tt.push({dateImmutable:ot.info,date:Gt,documents:[ot]})}return Tt},[]).map(Tt=>{const ot=a()(Tt.date,"DD.MM.YYYY");return Tt.date=ot.locale("ru").calendar(null,{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f]",lastDay:"[\u0412\u0447\u0435\u0440\u0430]",lastWeek:"DD MMM YYYY",sameElse:"DD MMM YYYY"}).toString(),Tt}):[]}getDocsBlocksSbp(){return this.documentsDataSbp?this.documentsDataSbp.reduce((Tt,ot)=>{const Gt=Tt.find(wt=>wt.date===a()(ot.createdAt).format("DD.MM.YYYY"));return ot.buttonActions=[{type:"open_registry",data:{docId:ot.reportId}},{type:"print_registry",data:{docId:ot.reportId}}],ot.dboStatus===l.lG.DRAFT&&ot.buttonActions.push({type:"delete",data:{docId:ot.reportId,docType:h.o.SbpQrTsp}}),(ot.dboStatus===l.lG.DECLINE||ot.dboStatus===l.lG.ENDED||ot.dboStatus===l.lG.PARTIALLY_PERFORMED)&&ot.buttonActions.push({type:"downloadXML",data:{docId:ot.reportId}}),ot.subTitle=this.sbpService.getPayrollInfo(ot.number,ot.reportMonth),ot.dboStatus=ot.dboStatus===l.lG.SIGNED?l.lG.IN_PROCESSING:ot.dboStatus,Gt?Gt.documents.push(ot):Tt.push({dateImmutable:ot.createdAt,date:a()(ot.createdAt).format("DD.MM.YYYY"),documents:[ot]}),Tt},[]).map(Tt=>{const ot=a()(Tt.date,"DD.MM.YYYY");return Tt.date=ot.locale("ru").calendar(null,{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f]",lastDay:"[\u0412\u0447\u0435\u0440\u0430]",lastWeek:"DD MMM YYYY",sameElse:"DD MMM YYYY"}).toString(),Tt}):[]}isAllDocsSelectedByDate(Yt){const Tt=this.documentsData.filter(ot=>ot.info===Yt);return!!this.selectedDocuments&&Tt.every(ot=>this.selectedDocuments.includes(ot))}onCheckboxDateChange(Yt,Tt){let ot;if("boolean"==typeof Yt)ot=Yt;else if(ot=Yt.target.checked,void 0===ot)return;this.checkboxDateClicked.emit({event:ot,date:Tt})}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(Tt){return new(Tt||lt)(e.\u0275\u0275directiveInject(O.$),e.\u0275\u0275directiveInject(L.V))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:lt,selectors:[["app-document-list"]],inputs:{selectedDocuments:"selectedDocuments",showMoreButton:"showMoreButton",chosenAllDocsByDate:"chosenAllDocsByDate",itemType:"itemType",documentsClickable:"documentsClickable",isSbp:"isSbp",tabType:"tabType",isDocumentsForSignTab:"isDocumentsForSignTab",hideItem:"hideItem",selectable:"selectable",customClass:"customClass",manualNotFoundText:"manualNotFoundText",documents:"documents",documentsSbp:"documentsSbp"},outputs:{docClicked:"docClicked",dotsClicked:"dotsClicked",dotsClickedEmbeddedDocument:"dotsClickedEmbeddedDocument",dotItemClicked:"dotItemClicked",actionDone:"actionDone",showMoreClicked:"showMoreClicked",selectDocs:"selectDocs",checkboxDateClicked:"checkboxDateClicked",openGpiClicked:"openGpiClicked",sbpDocClicked:"sbpDocClicked"},decls:4,vars:3,consts:[["data-qa","1657799356264",1,"document-list"],["class","document-list__container","data-qa","1662993410",4,"ngIf"],["data-qa","1657799450615",3,"click",4,"ngIf"],[4,"ngIf"],["data-qa","1662993410",1,"document-list__container"],[4,"ngFor","ngForOf"],["class","document-list__date-block",4,"ngIf"],[1,"document-list__date-block"],[3,"chosen","checkboxChange",4,"ngIf"],[3,"chosen","checkboxChange"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","document-list__item",4,"ngIf"],[1,"document-list__item"],[3,"clickable","documentItem","isDocumentsForSignTab","selected","actionDone","checkboxClicked","dotItemClicked","dotsClicked","dotsClickedEmbeddedDocument","docClicked","openGpiClicked"],[3,"document"],[1,"document-list__item","document-list__item--sbp"],[3,"document","actionDone","docClicked","dotItemClicked","dotsClicked"],["data-qa","1657799450615",3,"click"],["data-qa","1657799456797",1,"document-list__not-found"]],template:function(Tt,ot){1&Tt&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Qe,2,1,"ul",1),e.\u0275\u0275template(2,Be,1,0,"app-show-more-button",2),e.\u0275\u0275template(3,at,4,4,"ng-container",3),e.\u0275\u0275elementEnd()),2&Tt&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.formattedDocs&&ot.formattedDocs.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ot.showMoreButton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ot.formattedDocs.length))},dependencies:[w.sg,w.O5,w.RF,w.n9,B.b,_._,I,F.N,H,i.X$],styles:['@charset "UTF-8";.document-list__date-block[_ngcontent-%COMP%]{background:rgba(222,222,222,.5);border:1px solid rgba(222,222,222,.5);border-radius:4px;padding:13px 20px;font-weight:400;font-size:16px;line-height:22px;display:flex;align-items:center;color:#444}.document-list__item[_ngcontent-%COMP%]{cursor:pointer;border-top:1px solid #dedede}.document-list__item[_ngcontent-%COMP%]:first-child{border-top:none}.document-list__not-found[_ngcontent-%COMP%]{text-align:center;margin:122px auto;font-weight:400;font-size:20px;line-height:27px;color:#444}.document-list[_ngcontent-%COMP%]   app-checkbox[_ngcontent-%COMP%]{margin-right:1rem}.sbp-not-found[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-size:18px;font-weight:400;line-height:25px;letter-spacing:0;text-align:center}']})}(0,n.gn)([(0,i.SQ)()],lt.prototype,"lang",void 0)},87569:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>m});var n=t(36895),e=t(16611),i=t(57639),d=t(88210),a=t(62801),u=t(79e3),h=t(66832),l=t(94650);let m=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:x});static#n=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.ez,e.qw,i.n,d.S,a.k,h.C,u.P]})}return x})()},62801:(Ee,Q,t)=>{"use strict";t.d(Q,{k:()=>x});var n=t(36895),e=t(97392),i=t(16611),d=t(48038),a=t(57639),u=t(88210),h=t(34982),l=t(54474),m=t(94650);let x=(()=>{class O{static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:O});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[n.ez,i.qw,a.n,u.S,e.Ps,l.g,h.i,d.Y]})}return O})()},79e3:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>m});var n=t(36895),e=t(97392),i=t(16611),d=t(36561),a=t(34982),u=t(78895),h=t(54474),l=t(94650);let m=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:x});static#n=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.ez,i.qw,h.g,a.i,u.q,d.D,e.Ps]})}return x})()},18751:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>i});var n=t(94650),e=t(97392);let i=(()=>{class d{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["app-dots"]],decls:2,vars:0,consts:[[1,"dots"],["svgIcon","dot-menu",1,"dots-icon"]],template:function(h,l){1&h&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275element(1,"mat-icon",1),n.\u0275\u0275elementEnd())},dependencies:[e.Hw],styles:['@charset "UTF-8";.dots[_ngcontent-%COMP%]{display:inline-flex;margin-left:10px;transform:translateY(2px);color:#88909b;cursor:pointer}.dots-icon[_ngcontent-%COMP%]{width:20px;height:20px}']})}return d})()},34982:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>d});var n=t(36895),e=t(97392),i=t(94650);let d=(()=>{class a{static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275mod=i.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=i.\u0275\u0275defineInjector({imports:[n.ez,e.Ps]})}return a})()},52869:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>a});var n=t(36895),e=t(16611),i=t(99762),d=t(94650);let a=(()=>{class u{static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:u});static#n=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[n.ez,e.qw,i.N]})}return u})()},38981:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>y});var n=t(97582),e=t(94650),i=t(16611),d=t(40929),a=t(11260),u=t(75568),h=t(73040),l=t(36895),m=t(44180);function x($,C){if(1&$){const T=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-input",10),e.\u0275\u0275listener("valueChange",function(I){e.\u0275\u0275restoreView(T);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.onSearchChange(I))}),e.\u0275\u0275elementEnd()}}function O($,C){if(1&$&&e.\u0275\u0275element(0,"img",18),2&$){const T=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("src",T.image,e.\u0275\u0275sanitizeUrl)}}function L($,C){if(1&$&&e.\u0275\u0275element(0,"app-svg-icon",19),2&$){const T=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("icon",T.currentCorrType),e.\u0275\u0275property("svgClass","type-icon favorite "+T.currentCorrType)}}function w($,C){if(1&$){const T=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275listener("click",function(){const F=e.\u0275\u0275restoreView(T).$implicit,z=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(z.onTemplateClick(F))}),e.\u0275\u0275elementStart(1,"div",12),e.\u0275\u0275template(2,O,1,1,"img",13),e.\u0275\u0275template(3,L,1,2,"app-svg-icon",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",15)(5,"div",16),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",17),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()()}if(2&$){const T=C.$implicit,j=C.index;e.\u0275\u0275advance(1),e.\u0275\u0275attribute("data-qa","1657803539357"+j),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",T.image),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!T.image),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",T.name," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",T.corrFullname," ")}}function B($,C){if(1&$&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&$){const T=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"No templates",T.lang)," ")}}function _($,C){1&$&&e.\u0275\u0275element(0,"app-loader")}class y{constructor(C){this.documentService=C,this.templateClicked=new e.EventEmitter,this.openSearch=!1}ngOnInit(){this.getTemplates(),this.subscribeToUpdates()}getTemplates(){this.templateList=null,this.filteredTemplateList=null,this.documentService.getFavoritesList({with_image_link:!0}).subscribe(C=>{this.showTypes&&(C=C.filter(T=>this.showTypes.includes(T.docType))),this.templateList=C,this.filteredTemplateList=C})}subscribeToUpdates(){this.updateTemplates$&&(this.updateTemplatesSub=this.updateTemplates$.subscribe(()=>{this.getTemplates()}))}onToggleSearch(){this.openSearch=!this.openSearch,this.openSearch||(this.filteredTemplateList=this.templateList)}onSearchChange(C){"string"==typeof C&&(this.filteredTemplateList=this.templateList.filter(T=>T.name&&T.name.toLowerCase().includes(C.toLowerCase())||T.corrFullname&&T.corrFullname.toLowerCase().includes(C.toLowerCase())||T.corrInn&&T.corrInn.toLowerCase().includes(C.toLowerCase())))}onTemplateClick(C){this.templateClicked.emit(C)}ngOnDestroy(){this.updateTemplatesSub&&this.updateTemplatesSub.unsubscribe()}static#e=this.\u0275fac=function(T){return new(T||y)(e.\u0275\u0275directiveInject(d.Z))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:y,selectors:[["app-favorite-templates"]],inputs:{showTypes:"showTypes",updateTemplates$:"updateTemplates$"},outputs:{templateClicked:"templateClicked"},decls:14,vars:12,consts:[["data-qa","1657803505460",1,"favorite-templates"],["data-qa","1657803575191",1,"favorite-templates__header"],[1,"favorite-templates__title"],["data-qa","1657803501087","icon","search","svgClass","favorite-templates__header__icon__image",1,"favorite-templates__header__icon",3,"click"],["data-qa","1657803496020","inputClass","no-description favorite-templates__header__search__input","placeholder","Search templates","rightIcon","search","typeClass","favorite-templates__header__search",3,"valueChange",4,"ngIf"],["data-qa","1657803568137",1,"favorite-templates__body"],["class","favorite-templates__item",3,"click",4,"ngFor","ngForOf"],["class","favorite-templates__empty","data-qa","1662993460",4,"ngIf"],[4,"ngIf"],["data-qa","1657803557863","routerLink","/favorite-payments",1,"favorite-templates__button-more"],["data-qa","1657803496020","inputClass","no-description favorite-templates__header__search__input","placeholder","Search templates","rightIcon","search","typeClass","favorite-templates__header__search",3,"valueChange"],[1,"favorite-templates__item",3,"click"],[1,"favorite-templates__item__image"],["class","favorite-templates__item__picture",3,"src",4,"ngIf"],[3,"svgClass","icon",4,"ngIf"],[1,"favorite-templates__item__text"],[1,"favorite-templates__item__title"],[1,"favorite-templates__item__description"],[1,"favorite-templates__item__picture",3,"src"],[3,"svgClass","icon"],["data-qa","1662993460",1,"favorite-templates__empty"]],template:function(T,j){1&T&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-svg-icon",3),e.\u0275\u0275listener("click",function(){return j.onToggleSearch()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,x,1,0,"app-input",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",5),e.\u0275\u0275template(8,w,9,5,"div",6),e.\u0275\u0275template(9,B,3,4,"div",7),e.\u0275\u0275template(10,_,1,0,"app-loader",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",9),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()()),2&T&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,6,"Favorites",j.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",j.openSearch),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",j.filteredTemplateList),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",j.filteredTemplateList&&0===j.filteredTemplateList.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!j.filteredTemplateList),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(13,9,"Go to templates",j.lang)," "))},dependencies:[a.b,u.R,h.a,l.sg,l.O5,m.rH,i.X$],styles:['@charset "UTF-8";.favorite-templates[_ngcontent-%COMP%]{margin:30px 0 0 30px;background:#f1f2f2}.favorite-templates__header[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;padding:19px 20px;border-top:1px solid transparent;border-bottom:1px solid #dedede}@media (max-width: 1769px) and (min-width: 1681px){.favorite-templates__header[_ngcontent-%COMP%]{display:none}}@media (max-width: 1449px){.favorite-templates__header[_ngcontent-%COMP%]{display:none}}.favorite-templates__header__icon[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;cursor:pointer}  .favorite-templates__header__icon__image{width:20px;height:20px;fill:#88909b}  .favorite-templates__header__search{margin:20px 0 0}  .favorite-templates__header__search__input{width:100%;padding-right:45px!important}.favorite-templates__title[_ngcontent-%COMP%]{font-family:Source Sans Pro;color:#284681;font-size:20px;font-weight:700;line-height:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 20px 0 0}.favorite-templates__body[_ngcontent-%COMP%]{position:relative;height:300px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.favorite-templates__body[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media (max-width: 1769px) and (min-width: 1681px){.favorite-templates__body[_ngcontent-%COMP%]{display:none}}@media (max-width: 1449px){.favorite-templates__body[_ngcontent-%COMP%]{display:none}}.favorite-templates__item[_ngcontent-%COMP%]{display:flex;padding:9px 25px;cursor:pointer}.favorite-templates__item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 15px #0807080d;border-radius:2px}.favorite-templates__item__image[_ngcontent-%COMP%]{flex:0 32px;display:flex;justify-content:center;align-items:center;height:32px}.favorite-templates__item__picture[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:100%}.favorite-templates__item__text[_ngcontent-%COMP%]{flex:1;margin:0 0 0 10px;overflow:hidden}.favorite-templates__item__title[_ngcontent-%COMP%]{font-size:16px;line-height:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.favorite-templates__item__description[_ngcontent-%COMP%]{font-size:12px;line-height:1;color:#88909b;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:4px 0 0}.favorite-templates__empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;padding:20px}.favorite-templates__button-more[_ngcontent-%COMP%]{color:#444;font-size:16px;line-height:20px;text-align:center;padding:15px;background-color:#dedede;outline:none;cursor:pointer}']})}(0,n.gn)([(0,i.SQ)()],y.prototype,"lang",void 0)},20134:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>u});var n=t(97582),e=t(94650),i=t(16611),d=t(36895);function a(h,l){if(1&h){const m=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275listener("click",function(){const L=e.\u0275\u0275restoreView(m).$implicit,w=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(w.setActive(L))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&h){const m=l.$implicit,x=l.index,O=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("active",m.active)("disabled",m.disabled),e.\u0275\u0275attribute("data-qa","1659963889542"+x),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,6,m.text,O.lang)," ")}}class u{constructor(){this.buttonClick=new e.EventEmitter}ngOnInit(){}setActive(l){this.buttons.forEach(m=>m.active=!1),l.active=!0,this.buttonClick.emit(l)}static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:u,selectors:[["app-filter-buttons"]],inputs:{buttons:"buttons"},outputs:{buttonClick:"buttonClick"},decls:2,vars:1,consts:[[1,"filter-buttons"],["class","filter-buttons__button",3,"active","disabled","click",4,"ngFor","ngForOf"],[1,"filter-buttons__button",3,"click"]],template:function(m,x){1&m&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,a,3,9,"div",1),e.\u0275\u0275elementEnd()),2&m&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",x.buttons))},dependencies:[d.sg,i.X$],styles:['@charset "UTF-8";.filter-buttons[_ngcontent-%COMP%]{display:flex;height:50px;flex-shrink:0}.filter-buttons__button[_ngcontent-%COMP%]{padding:14px 33px;border:1px solid #2f54eb;cursor:pointer;color:#2f54eb;background:#fff;transition:background .2s ease;white-space:nowrap}.filter-buttons__button[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px;border-right:none}.filter-buttons__button[_ngcontent-%COMP%]:last-child{border-left:none;border-top-right-radius:5px;border-bottom-right-radius:5px}.filter-buttons__button.active[_ngcontent-%COMP%]{background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);color:#fff}']})}(0,n.gn)([(0,i.SQ)()],u.prototype,"lang",void 0)},30148:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>L});var n=t(97582),e=t(16611),i=t(77579),d=t(39300),a=t(82722),u=t(94650),h=t(92008),l=t(36895);function m(w,B){if(1&w&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,", "),u.\u0275\u0275elementStart(2,"a",9),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd()()),2&w){const _=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(2),u.\u0275\u0275propertyInterpolate1("href","mailto:",null==_.personalManager?null:_.personalManager.email,"",u.\u0275\u0275sanitizeUrl),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(null==_.personalManager?null:_.personalManager.email)}}function x(w,B){if(1&w&&(u.\u0275\u0275elementStart(0,"div",7),u.\u0275\u0275text(1),u.\u0275\u0275pipe(2,"translate"),u.\u0275\u0275pipe(3,"translate"),u.\u0275\u0275pipe(4,"translate"),u.\u0275\u0275template(5,m,4,2,"span",8),u.\u0275\u0275elementEnd()),2&w){const _=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate5(" ",u.\u0275\u0275pipeBind2(2,6,"Your personal manager",_.lang),": ",_.personalManager.fio," ",u.\u0275\u0275pipeBind2(3,9,"Phone value",_.lang)," ",u.\u0275\u0275pipeBind2(4,12,"ext.",_.lang)," ",(null==_.personalManager?null:_.personalManager.phone)||"-",""),u.\u0275\u0275advance(4),u.\u0275\u0275property("ngIf",null==_.personalManager?null:_.personalManager.email)}}function O(w,B){if(1&w&&(u.\u0275\u0275elementStart(0,"div",7),u.\u0275\u0275text(1),u.\u0275\u0275pipe(2,"translate"),u.\u0275\u0275elementEnd()),2&w){const _=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind2(2,1,"Phone value",_.lang))}}class L{constructor(B){this.appConfigService=B,this.currentYear=new Date,this.isContactBankAvailable=!1,this.destroyed$=new i.x}ngOnInit(){this.initPersonalManager()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}initPersonalManager(){this.appConfigService.settings$.pipe((0,d.h)(B=>B.isLoaded),(0,a.R)(this.destroyed$)).subscribe(B=>{this.personalManager=B.personalManagerInfo,this.isContactBankAvailable=1===B.ulSettings["STATEMENT_GB/CONNECT_TO_BANK"]})}static#e=this.\u0275fac=function(_){return new(_||L)(u.\u0275\u0275directiveInject(h._))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:L,selectors:[["app-footer"]],decls:13,vars:10,consts:[[1,"footer-container"],[1,"footer-container__info"],["class","phone",4,"ngIf","ngIfElse"],["phoneTpl",""],[1,"footer-container__copy"],[1,"footer-container__copy__address"],[1,"lds-ripple"],[1,"phone"],[4,"ngIf"],[1,"hyperlink",3,"href"]],template:function(_,y){if(1&_&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1),u.\u0275\u0275template(2,x,6,15,"div",2),u.\u0275\u0275template(3,O,3,4,"ng-template",null,3,u.\u0275\u0275templateRefExtractor),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"div",4)(6,"div",5),u.\u0275\u0275text(7),u.\u0275\u0275pipe(8,"translate"),u.\u0275\u0275pipe(9,"translate"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(10,"div",6),u.\u0275\u0275element(11,"div")(12,"div"),u.\u0275\u0275elementEnd()()),2&_){const $=u.\u0275\u0275reference(4);u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",y.isContactBankAvailable&&(null==y.personalManager?null:y.personalManager.fio)&&(null==y.personalManager?null:y.personalManager.phone))("ngIfElse",$),u.\u0275\u0275advance(5),u.\u0275\u0275textInterpolate2("",u.\u0275\u0275pipeBind2(8,4,"Company",y.lang)," . ",u.\u0275\u0275pipeBind2(9,7,"Adress",y.lang),"")}},dependencies:[l.O5,e.X$],styles:['@charset "UTF-8";.footer-container{margin-top:100px;display:flex;flex-direction:column;box-sizing:border-box;font-family:Open Sans}.footer-container__info{display:flex;flex-direction:row;justify-content:space-between}@media screen and (max-width: 720px){.footer-container__info{flex-direction:column}}@media screen and (min-width: 700px) and (max-width: 875px){.footer-container__info{font-size:.7em}}.footer-container__info .phone{font-size:16px;font-weight:600;color:#444}.footer-container__info .menu{display:flex;flex-direction:row}@media screen and (max-width: 720px){.footer-container__info .menu{flex-direction:column;padding-top:15px}}.footer-container__info .menu .menu-item{font-size:1.5em;color:#284681;cursor:pointer;padding-left:85px;font-weight:700}@media screen and (max-width: 720px){.footer-container__info .menu .menu-item{padding:5px 0}}.footer-container__info .hyperlink{color:#2f54eb;cursor:pointer;text-decoration:none;font-weight:400}.footer-container__copy{padding-top:12px;padding-bottom:32px;display:flex;flex-direction:row;justify-content:space-between;color:#88909b;font-size:14px}@media screen and (max-width: 720px){.footer-container__copy{flex-direction:column}}@media screen and (min-width: 720px) and (max-width: 875px){.footer-container__copy__copyright{width:40%;text-align:right}}\n'],encapsulation:2})}(0,n.gn)([(0,e.SQ)()],L.prototype,"lang",void 0)},1830:(Ee,Q,t)=>{"use strict";t.d(Q,{Q:()=>l});var n=t(97582),e=t(16611),i=t(94650),d=t(36895);function a(m,x){if(1&m&&(i.\u0275\u0275elementStart(0,"div",2),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&m){const O=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(2,1,O.title,O.lang))}}const u=[[["","accordion",""]],"*"],h=["[accordion]","*"];class l{constructor(){this.padding=15}ngOnInit(){this.padding&&!this.paddingTop&&(this.paddingTop=this.padding),this.padding&&!this.paddingBottom&&(this.paddingBottom=this.padding)}static#e=this.\u0275fac=function(O){return new(O||l)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:l,selectors:[["app-form-block"]],inputs:{padding:"padding",paddingTop:"paddingTop",paddingBottom:"paddingBottom",title:"title"},ngContentSelectors:h,decls:4,vars:5,consts:[[1,"form-block"],["class","title",4,"ngIf"],[1,"title"]],template:function(O,L){1&O&&(i.\u0275\u0275projectionDef(u),i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,a,3,4,"div",1),i.\u0275\u0275projection(2),i.\u0275\u0275projection(3,1),i.\u0275\u0275elementEnd()),2&O&&(i.\u0275\u0275styleProp("padding-top",L.paddingTop,"px")("padding-bottom",L.paddingBottom,"px"),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",L.title))},dependencies:[d.O5,e.X$],styles:['@charset "UTF-8";.form-block[_ngcontent-%COMP%]{padding:15px 0}.title[_ngcontent-%COMP%]{font-size:22px;font-weight:600;color:#284681;padding:10px 0}']})}(0,n.gn)([(0,e.SQ)()],l.prototype,"lang",void 0)},91297:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>u});var n=t(94650),e=t(36895),i=t(90995);function d(h,l){if(1&h){const m=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(m);const O=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(O.onOnlySave())}),n.\u0275\u0275elementEnd()}if(2&h){const m=n.\u0275\u0275nextContext();n.\u0275\u0275classProp("disabled",m.isSubmitDisabled)}}function a(h,l){if(1&h){const m=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-button",6),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(m);const O=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(O.onSaveDraft())}),n.\u0275\u0275elementEnd()}}let u=(()=>{class h{constructor(){this.submited=new n.EventEmitter,this.canceled=new n.EventEmitter,this.onlySave=new n.EventEmitter,this.savedDraft=new n.EventEmitter,this.isSaveButton=!1}onSubmit(){this.submited.emit()}onCancel(){this.canceled.emit()}onSaveDraft(){this.savedDraft.emit()}onOnlySave(){this.onlySave.emit()}static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:h,selectors:[["app-form-controls"]],inputs:{submitText:"submitText",isSubmitDisabled:"isSubmitDisabled",isDraftButton:"isDraftButton",isSaveButton:"isSaveButton",errorData:"errorData"},outputs:{submited:"submited",canceled:"canceled",onlySave:"onlySave",savedDraft:"savedDraft"},decls:5,vars:5,consts:[["data-qa","1657807897492",1,"form-controls"],["data-qa","1657807894989",1,"form-controls__item",3,"text","click"],["class","form-controls__item","data-qa","1684758821517","text","Save","type","bordered",3,"disabled","click",4,"ngIf"],["data-qa","1657807899963","text","Cancel","type","bordered",1,"form-controls__item",3,"click"],["class","form-controls__item right","data-qa","1657807903644","text","Save as draft","type","bordered",3,"click",4,"ngIf"],["data-qa","1684758821517","text","Save","type","bordered",1,"form-controls__item",3,"click"],["data-qa","1657807903644","text","Save as draft","type","bordered",1,"form-controls__item","right",3,"click"]],template:function(x,O){1&x&&(n.\u0275\u0275elementStart(0,"div",0)(1,"app-button",1),n.\u0275\u0275listener("click",function(){return O.onSubmit()}),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(2,d,1,2,"app-button",2),n.\u0275\u0275elementStart(3,"app-button",3),n.\u0275\u0275listener("click",function(){return O.onCancel()}),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,a,1,0,"app-button",4),n.\u0275\u0275elementEnd()),2&x&&(n.\u0275\u0275advance(1),n.\u0275\u0275classProp("disabled",O.isSubmitDisabled),n.\u0275\u0275property("text",O.submitText),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",O.isSaveButton),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",O.isDraftButton))},dependencies:[e.O5,i.r],styles:['@charset "UTF-8";.form-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:30px}@media only screen and (min-width: 768px){.form-controls[_ngcontent-%COMP%]{flex-direction:row}}.form-controls__item[_ngcontent-%COMP%]{flex-shrink:0;height:60px;margin-bottom:15px}@media only screen and (min-width: 768px){.form-controls__item[_ngcontent-%COMP%]{margin-bottom:0;margin-right:20px}}@media only screen and (min-width: 768px){.form-controls__item.right[_ngcontent-%COMP%]{margin-left:auto}}.form-controls__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}@media only screen and (min-width: 768px){.form-controls__item[_ngcontent-%COMP%]:last-child{margin-right:0}}']})}return h})()},37185:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>m});var n=t(77579),e=t(54244),i=t(82722),d=t(91175),a=t(94650),u=t(37601),h=t(38101),l=t(11481);let m=(()=>{class x{constructor(L,w,B){this.userDataService=L,this.modalService=w,this.sanitizer=B,this.destroyed$=new n.x}ngOnInit(){this.handleModal()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}handleOpenModal(){this.modalService.open(d.v,{header:"Important Information",size:"big",inputs:{content:this.blockAccountMessage}})}handleOrganizationCheck(){this.userDataService.dboAccountsBlocked$.pipe((0,e.n)(L=>null===L),(0,i.R)(this.destroyed$)).subscribe(L=>{L.blocked&&L.message&&(this.blockAccountMessage=this.sanitizer.bypassSecurityTrustHtml(L.message.replace(/\r\n/,"<br /><br />")),this.handleOpenModal())})}handleModal(){this.handleOrganizationCheck()}static#e=this.\u0275fac=function(w){return new(w||x)(a.\u0275\u0275directiveInject(u.M),a.\u0275\u0275directiveInject(h.Z),a.\u0275\u0275directiveInject(l.DomSanitizer))};static#t=this.\u0275cmp=a.\u0275\u0275defineComponent({type:x,selectors:[["app-fz-alert"]],decls:0,vars:0,template:function(w,B){}})}return x})()},91175:(Ee,Q,t)=>{"use strict";t.d(Q,{v:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:i,selectors:[["app-fz-content"]],inputs:{content:"content"},decls:1,vars:1,consts:[[1,"fz-content",3,"innerHTML"]],template:function(u,h){1&u&&n.\u0275\u0275element(0,"div",0),2&u&&n.\u0275\u0275property("innerHTML",h.content,n.\u0275\u0275sanitizeHtml)},styles:[".fz-content[_ngcontent-%COMP%]{min-height:60vh;white-space:pre-wrap;font-size:150%;padding-top:50px}"]})}return i})()},59042:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>ge});var n=t(97582),e=t(16611),i=t(4128),d=t(82722),a=t(39300),u=t(34385),h=t(82007),l=t(54),m=t(43270),x=t(831),O=t(28356),L=t(30723),w=t(99045),B=t(90042);class _{constructor(J,Oe,je,Et,dt){this.translation=J,this.availableCurrencyOnline=Oe,this.tariffService=je,this.userDataService=Et,this.acquiringService=dt}getReliableBusiness(J,Oe,je){return J.includes(L.WB)&&B.iY.isUnifiedTariffBook(Oe)?{description:this.translation.translate("Reliable Business"),link:"/reliable-business",isDisabled:1!==je["REQUEST/AML_SUBSCRIPTION"]}:null}getTariffsNav(J){return{description:this.translation.translate("Tariffs management"),link:"/tarif",isDisabled:1!==J["SERVICE_SECTIONS/TARIFF_UL"]}}getPowerOfAttorneyNav(J){return{description:this.translation.translate("Power of attorney"),link:"/power-of-attorney",isDisabled:1!==J["REQUEST/POWER_OF_ATTORNEY"]}}getHelpCenterNav(J){return{description:this.translation.translate("Help center"),link:"/help",isDisabled:1!==J["GADGET/CLIENT_UL_DIC"]}}getSmsInfoNav(J){return{description:this.translation.translate("Sms info"),link:"/sms-info",isDisabled:1!==J.SMS_NOTIFICATION}}getCardIndexNav(J){return{description:this.translation.translate("Card file"),link:"/card-index",isDisabled:1!==J["SERVICE_SECTIONS/CARD_INDEX"]}}getMinimumBalancesNav(J){const Oe=this.userDataService.activeCompany$.getValue();return Oe?.resident&&"\u0418\u041f"!==Oe?.clientTypeBank?{description:this.translation.translate("Minimum Balances"),link:"/minimum-balances",isDisabled:1!==J["SERVICE_SECTIONS/NSO"]}:null}getCertificateNav(J){return{description:this.translation.translate("Certificates"),link:"/certificates",isDisabled:1!==J["GADGET/CERT_UTIL"]}}getInkassoNav(J){return{description:this.translation.translate("Collection orders"),link:"/inkasso",isDisabled:1!==J["REQUEST/COLLECTION_INSTRUCTION"]}}getAverageBalancesNav(J){return{description:this.translation.translate("Average balances"),link:"/average-balances",isDisabled:!J.atLeastOneBlockAvailable}}getClosingCurrNav(J,Oe){return J.includes(L.JK)?{description:this.translation.translate("Closing a currency account"),link:"/closing-curr",isDisabled:1!==Oe["REQUEST/CLOSE_CURR"]}:null}getApplicationsNav(J){return J.includes(L.gF)&&J.includes(L.sf)?{description:this.translation.translate("Adding Employees and Clients"),link:"/applications"}:null}getCounterpartsNav(J){return{description:this.translation.translate("Correspondents"),link:"/counterparts",isDisabled:1!==J["OTHER/CONTRACTOR"]}}getSettingsNav(J){return{description:this.translation.translate("Settings"),link:"/settings",isDisabled:1!=J.SECURITY_SETTINGS&&1!=J.SIGNER_INFORMATION&&1!=J.CONTACT_167&&1!=J.VIEW_DISMISSAL_REQUEST&&1!=J.PHONE_CHANGE_STATEMENT}}getReferencesNav(J,Oe){return J.includes(L.NZ)?null:{description:this.translation.translate("Docs order"),link:"/references",isDisabled:1!==Oe["SERVICE_SECTIONS/REFERENCES_SECTION"]}}getCreditCabinetNav(J,Oe){return J.includes(L.NZ)?null:{description:this.translation.translate("Credit office"),link:"/credit",isDisabled:1!==Oe["OTHER/CREDIT_CABINET"]}}getCurrencyExchangeOffline(J,Oe){const je=!Oe.includes(L.NZ),Et=1===J["SERVICE_SECTIONS/CURR_EXCHANGE"],dt=Oe.includes(L.A)?this.translation.translate("Transaction confirmation by phone"):this.translation.translate("Currency exchange");return je?{description:dt,link:"/currency-exchange/offline",isDisabled:!(1===J["PAY/CURRBUY"]||1===J["PAY/CURRSELL"]||1===J["PAY/PLATPOR_CONV"])||!Et}:null}getCurrencyExchangeOnline(J){const Oe=1===J["PAY/CURRBUY"]||1===J["PAY/CURRSELL"]||1===J["PAY/PLATPOR_CONV"],je=1===J["SERVICE_SECTIONS/CURR_EXCHANGE"];return this.availableCurrencyOnline?{description:this.translation.translate("Currency exchange online"),link:"/currency-exchange/online",isDisabled:!Oe||!je}:null}getCurrencyExchangePrecheck(J,Oe){const je=1===J["PAY/CURRBUY"]||1===J["PAY/CURRSELL"]||1===J["PAY/PLATPOR_CONV"],Et=1===J["SERVICE_SECTIONS/CURR_EXCHANGE"];return Oe.includes(L.A)?{description:this.translation.translate("Currency exchange"),link:"/currency-exchange/precheck",isDisabled:!je||!Et}:null}getRisda(J,Oe){const je=Oe.includes(L.NZ)?"Risda for role bank":"Risda";return J?{description:this.translation.translate(je),link:"/risda"}:null}getInterbankCredits(J){return J.includes(L.NZ)?{description:this.translation.translate("Interbank credits"),link:"/interbank-credits"}:null}getForex(J){return J.includes(L.NZ)?{description:this.translation.translate("Risda for role bank"),link:"/risda/documents-list"}:null}getDepositsNav(J){return J.includes(L.NZ)?null:{description:this.translation.translate("deposits"),link:"/deposits"}}getDeclarationsOfAcceptance(J){return{description:this.translation.translate("Declarations of acceptance"),link:"/acceptance",isDisabled:1!==J["SERVICE_SECTIONS/ACCEPT_APPLICATIONS"]||1!==J["REQUEST/ADVANCE_ACCEPT"]&&1!==J["REQUEST/REQUEST_ACCEPT_NO_ACCEPT"]}}getBillList(J,Oe){return J.includes(L.NZ)?null:{description:this.translation.translate("Bills List"),link:"/bill",isDisabled:1!==Oe["PAY/AMOUNTS_BILLED"]}}getSbpQrPayment(J,Oe,je){const Et=J||1!==je["OTHER/SBP_PAYMENTS"];return{description:this.translation.translate("SBP payments"),link:"/sbp-qr/qr-payment",isDisabled:Et}}getSupportVED(J,Oe){return{description:this.translation.translate("Support VED"),link:"/new/support-ved",isDisabled:1!==Oe["REQUEST/REQUEST_VED_SUPPORT"]}}getConturAlba(J,Oe){const je=J||1!==Oe.ONLINE_ACCOUNTING_KONTUR_ELBA;return{description:this.translation.translate("\u041a\u043e\u043d\u0442\u0443\u0440.\u042d\u043b\u044c\u0431\u0430"),link:"/new/kontur-alba",isDisabled:je}}getSbpQr(J,Oe){const je=1!==Oe["OTHER/QR_PAYMENTS"];return J?{description:this.translation.translate("Accepting payments via QR"),link:"/sbp-qr",isDisabled:je}:{description:this.translation.translate("Accepting payments via QR"),link:"/sbp-qr/list",isDisabled:je}}getSbp(J,Oe){const je=1!==Oe["OTHER/SBP_SALARY"];return J?{description:this.translation.translate("SBP Salary"),link:"/sbp/registries-list",isDisabled:je}:{description:this.translation.translate("SBP Salary"),link:"/sbp",isDisabled:je}}getOneWindow(J,Oe){if(0===Oe["REQUEST/REQUEST_SINGLE_WINDOW_ON"])return null;const je=J;return{description:this.translation.translate("Is one window"),link:"/one-window",isDisabled:je}}getAgreementDBC(J,Oe){return J.includes(L.NZ)&&!B.iY.isUnifiedTariffBook(Oe)?null:{description:this.translation.translate("Agreement DBC"),link:"/dealing"}}getOpeningCurrencyAccountHistory(J,Oe){return J.includes(L.NZ)?null:{description:this.translation.translate("Open accounts"),link:"/opening-currency-account-history",isDisabled:!w.c.isSomeAccountTypeAvailableForCreation(Oe)}}getKonturFocus(J){return{description:this.translation.translate("Kontur.focus"),link:"/new/kontur-focus",isDisabled:1!==J["REQUEST/KONTUR_FOCUS_ON"]&&1!==J["REQUEST/KONTUR_FOCUS_OFF"]}}getAMLCompliance(J){return{description:this.translation.translate("AML Compliance"),link:"/aml-compliance",isDisabled:1!==J["REQUEST/INQUIRER_AML"]}}getFactoring(J){return{description:this.translation.translate("Factoring"),link:"/new/factoring",isDisabled:1!==J["OTHER/FACTORING"]}}getCashOrder(J,Oe){return 1===J["REQUEST/REQUEST_RECEIVE_CASH"]&&this.tariffService.isTariffForCashOrder(Oe)?{description:this.translation.translate("Get Cash"),link:"/zakaz_nalichnyh",isDisabled:1!==J["REQUEST/REQUEST_RECEIVE_CASH"]}:null}getTreasuryOther(J,Oe){return J.includes(L.NZ)?null:{description:this.translation.translate("Other"),link:"/treasury/other",isDisabled:this.userDataService.isDoubleRedBlock(Oe)}}getTreasuryDocuments(J){return{description:this.translation.translate("Documents to the Treasury"),link:"/treasury/documents",isDisabled:this.userDataService.isDoubleRedBlock(J)}}getAcquiringSoftPos(J,Oe,je){return J||0===je["OTHER/MERCHANT_ACQUIRING"]?null:{description:this.translation.translate("Acquiring SoftPOS"),link:Oe?`/${this.acquiringService.softPOSPath}/list`:`/${this.acquiringService.softPOSPath}`}}getAcquiringHardPos(J,Oe,je){return J||0===je["OTHER/MERCHANT_ACQUIRING_HARD_POS"]?null:{description:this.translation.translate("Merchant acquiring"),link:Oe?`/${this.acquiringService.hardPOSPath}/list`:`/${this.acquiringService.hardPOSPath}`}}}class y extends _{constructor(J,Oe,je,Et,dt){super(J,Oe,je,Et,dt),this.translation=J,this.availableCurrencyOnline=Oe,this.tariffService=je,this.userDataService=Et,this.acquiringService=dt,this.items=[]}buildNavigation(J,Oe,je,Et,dt,rt,qe,ze,zt,vt,Rt,gt,sn){return this.items.push({...this.getOpeningCurrencyAccountHistory(dt,je),column:"products",priority:1},{...this.getCreditCabinetNav(dt,je),column:"products",priority:2},{...this.getKonturFocus(je),column:"products",priority:4},{...this.getFactoring(je),column:"products",priority:5},{...this.getSbp(ze,je),column:"products",priority:6},{...this.getSbpQr(zt,je),column:"products",priority:7},{...this.getSbpQrPayment(qe,zt,je),column:"products",priority:8},{...this.getOneWindow(qe,je),column:"products",priority:9},{...this.getAcquiringSoftPos(qe,Rt,je),column:"products",priority:10},{...this.getAcquiringHardPos(qe,gt,je),column:"products",priority:11,isNew:!0},{...this.getSupportVED(qe,je),column:"products",priority:11,isNew:!0},{...this.getConturAlba(qe,J),column:"products",priority:12,isNew:!0},{...this.getReferencesNav(dt,je),column:"services",link:"/references",priority:1},{...this.getBillList(dt,je),column:"services",priority:2},{...this.getCashOrder(je,rt),column:"services",priority:3},{...this.getInkassoNav(je),description:this.translation.translate("Collection orders execution"),column:"services",priority:4},{...this.getAverageBalancesNav(sn),description:this.translation.translate("Average balances"),column:"services",priority:4},{...this.getClosingCurrNav(dt,je),column:"services",priority:5,isNew:!0},{...this.getApplicationsNav(dt),column:"services",priority:6},{...this.getSmsInfoNav(J),column:"services",priority:8},{...this.getCardIndexNav(je),column:"services",priority:9},{...this.getMinimumBalancesNav(je),column:"services",priority:9,isNew:!0},{...this.getAMLCompliance(je),column:"services",priority:10,isNew:!0},{...this.getCurrencyExchangePrecheck(Oe,dt),column:"treasury",priority:1},{...this.getCurrencyExchangeOnline(Oe),column:"treasury",priority:2},{...this.getCurrencyExchangeOffline(Oe,dt),column:"treasury",priority:3},{...this.getDeclarationsOfAcceptance(je),column:"services",priority:7},{...this.getForex(dt),column:"treasury",priority:4},{...this.getInterbankCredits(dt),column:"treasury",priority:5},{...this.getTreasuryDocuments(vt),column:"treasury",priority:6},{...this.getTreasuryOther(dt,vt),column:"treasury",priority:8},{...this.getTariffsNav(je),column:"other",priority:1},{...this.getPowerOfAttorneyNav(je),column:"other",priority:2},{...this.getCounterpartsNav(je),column:"other",priority:3},{...this.getSettingsNav(J),column:"other",priority:4,isNew:!0},{description:this.translation.translate("Help center"),link:"/help",column:"other",priority:5},{...this.getCertificateNav(J),column:"other",priority:6}),1!==je["SERVICE_SECTIONS/PRODUCTS"]&&this.items.filter(wn=>"products"===wn.column).forEach(wn=>{wn.isDisabled=!0}),1!==je["SERVICE_SECTIONS/TREASURY_DEPARTMENT"]&&this.items.filter(wn=>"treasury"===wn.column).forEach(wn=>{wn.isDisabled=!0}),this.items=this.items.filter(wn=>!!wn.description),this}getResult(){return this.sortingItemsByPriority(this.items),this.items}sortingItemsByPriority(J){return J.sort((je,Et)=>(je.priority=je.priority||Number.MAX_SAFE_INTEGER,Et.priority=Et.priority||Number.MAX_SAFE_INTEGER,je.priority>Et.priority||je.priority===Et.priority&&je.description>Et.description?1:-1))}}let $=(()=>{class q{static#e=this.dcbRoles=["ROLE_CLIENT_DDB","ROLE_CLIENT_DDB_RUTOKEN","ROLE_DDB_RUTOKEN_TEST","ROLE_DDB_TEST"];static#t=this.currencyRole="ROLE_CURRENCY_ONLINE";static factory(Oe,je,Et,dt,rt){const qe=Oe.includes(this.currencyRole);return new y(je,qe,Et,dt,rt)}}return q})();var C=t(94650),T=t(44180),j=t(37601),I=t(38101),F=t(68753),z=t(27828),X=t(76751),p=t(81814),P=t(15644),E=t(29198),R=t(92008),ne=t(61135);let G=(()=>{class q{constructor(){this.menuOpened$=new ne.X(!1),this._opened=!1}toggleMainMenu(){this.setMenuOpened(!this._opened)}closeMainMenu(){this.setMenuOpened(!1)}openMainMenu(){this.setMenuOpened(!0)}setMenuOpened(Oe){this._opened=Oe,this.menuOpened$.next(Oe)}static#e=this.\u0275fac=function(je){return new(je||q)};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})();var ce=t(23962),xe=t(9149),we=t(59449),Ge=t(67887),ct=t(94955),pe=t(39486),Ce=t(62978),U=t(11260),H=t(24201),Z=t(77579),oe=t(54968),Pe=t(54004),Ie=t(71884),pt=t(40451),Ht=t(36895),Wt=t(75568),Xe=t(12593);const Qe=["wrapper"];function Be(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",15),C.\u0275\u0275listener("click",function(Et){const rt=C.\u0275\u0275restoreView(Oe).$implicit,qe=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(qe.changeValue(rt,Et))}),C.\u0275\u0275text(1),C.\u0275\u0275pipe(2,"translate"),C.\u0275\u0275elementEnd()}if(2&q){const Oe=J.$implicit,je=C.\u0275\u0275nextContext(3);C.\u0275\u0275advance(1),C.\u0275\u0275textInterpolate1(" ",C.\u0275\u0275pipeBind2(2,1,Oe.description,je.lang)," ")}}function at(q,J){if(1&q&&(C.\u0275\u0275elementStart(0,"div",13),C.\u0275\u0275template(1,Be,3,4,"div",14),C.\u0275\u0275elementEnd()),2&q){const Oe=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(1),C.\u0275\u0275property("ngForOf",Oe.mobileItems)}}function lt(q,J){if(1&q&&(C.\u0275\u0275elementStart(0,"div",20),C.\u0275\u0275text(1),C.\u0275\u0275pipe(2,"translate"),C.\u0275\u0275elementEnd()),2&q){const Oe=C.\u0275\u0275nextContext(3);C.\u0275\u0275advance(1),C.\u0275\u0275textInterpolate(C.\u0275\u0275pipeBind2(2,1,"New!",Oe.lang))}}function Dt(q,J){if(1&q&&(C.\u0275\u0275elementStart(0,"div",21),C.\u0275\u0275text(1),C.\u0275\u0275pipe(2,"translate"),C.\u0275\u0275elementEnd()),2&q){const Oe=C.\u0275\u0275nextContext(3);C.\u0275\u0275advance(1),C.\u0275\u0275textInterpolate(C.\u0275\u0275pipeBind2(2,1,"Soon",Oe.lang))}}function Yt(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",16),C.\u0275\u0275listener("click",function(Et){const rt=C.\u0275\u0275restoreView(Oe).$implicit,qe=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(qe.changeValue(rt,Et))}),C.\u0275\u0275elementStart(1,"div",17),C.\u0275\u0275text(2),C.\u0275\u0275elementEnd(),C.\u0275\u0275template(3,lt,3,4,"div",18),C.\u0275\u0275template(4,Dt,3,4,"div",19),C.\u0275\u0275elementEnd()}if(2&q){const Oe=J.$implicit,je=J.index;C.\u0275\u0275classProp("is-new",Oe.isNew&&!Oe.isDisabled)("is-soon",Oe.isSoon&&!Oe.isDisabled)("is-disabled",Oe.isDisabled),C.\u0275\u0275attribute("data-qa","1657792357315"+je),C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1(" ",Oe.description," "),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",Oe.isNew&&!Oe.isDisabled),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",Oe.isSoon&&!Oe.isDisabled)}}function Tt(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",9),C.\u0275\u0275template(1,at,2,1,"div",10),C.\u0275\u0275elementStart(2,"app-accordion-page",11),C.\u0275\u0275listener("click",function(Et){const rt=C.\u0275\u0275restoreView(Oe).$implicit,qe=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(qe.menuColumnHeaderClick(rt,Et))}),C.\u0275\u0275template(3,Yt,5,10,"div",12),C.\u0275\u0275elementEnd()()}if(2&q){const Oe=J.$implicit,je=J.index;C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",0===je),C.\u0275\u0275advance(1),C.\u0275\u0275property("hidden",!1)("hide",Oe.hide)("title",Oe.title),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngForOf",Oe.items)}}function ot(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",22)(1,"span"),C.\u0275\u0275text(2),C.\u0275\u0275pipe(3,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(4,"span"),C.\u0275\u0275text(5),C.\u0275\u0275pipe(6,"translate"),C.\u0275\u0275elementStart(7,"span",23),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Oe);const Et=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(Et.openChat())}),C.\u0275\u0275text(8),C.\u0275\u0275pipe(9,"translate"),C.\u0275\u0275elementEnd()()()}if(2&q){const Oe=C.\u0275\u0275nextContext();C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1("",C.\u0275\u0275pipeBind2(3,3,"Didnt find service or product?",Oe.lang)," "),C.\u0275\u0275advance(3),C.\u0275\u0275textInterpolate1("",C.\u0275\u0275pipeBind2(6,6,"Send message",Oe.lang)," "),C.\u0275\u0275advance(3),C.\u0275\u0275textInterpolate1(" ",C.\u0275\u0275pipeBind2(9,9,"to our chat",Oe.lang)," ")}}function Gt(q,J){1&q&&C.\u0275\u0275element(0,"app-loader",24),2&q&&C.\u0275\u0275property("diameter",35)}const wt=["*"];class Ze{constructor(J,Oe,je,Et,dt,rt){this.elRef=J,this.cdr=Oe,this.configUtilService=je,this.chatService=Et,this.mainMenuService=dt,this.appConfigService=rt,this._destroyed$=new Z.x,this.changeEvent=new C.EventEmitter,this.showRised=!1,this.isSettingsEnabled=!1}get isDemo(){return this.configUtilService.getConfigs().pipe((0,Pe.U)(J=>!!J.data?.demoLabel))}ngOnInit(){this.mainMenuService.menuOpened$.pipe((0,d.R)(this._destroyed$)).subscribe(()=>{this.itemColumns=[{title:"\u041f\u0440\u043e\u0434\u0443\u043a\u0442\u044b",items:this.items.filter(J=>"products"===J.column)},{title:"\u0421\u0435\u0440\u0432\u0438\u0441\u044b",items:this.items.filter(J=>"services"===J.column)},{title:"\u041a\u0430\u0437\u043d\u0430\u0447\u0435\u0439\u0441\u0442\u0432\u043e",items:this.items.filter(J=>"treasury"===J.column)},{title:"\u041f\u0440\u043e\u0447\u0435\u0435",items:this.items.filter(J=>"other"===J.column)}]}),this.cdr.detectChanges(),this.chatService.getChartSettings().pipe((0,Ie.x)(),(0,d.R)(this._destroyed$)).subscribe(J=>{this.isSettingsEnabled=J.enabled,this.chatService.toggleIconVision(this.isSettingsEnabled?"block":"none")})}ngAfterViewInit(){(0,oe.R)(this.wrapperRef.nativeElement,"focusout").pipe((0,d.R)(this._destroyed$)).subscribe(Oe=>this.focusout(Oe))}btnClick(){this.mainMenuService.toggleMainMenu(),this.cdr.detectChanges()}changeValue(J,Oe){J.isSoon?Oe.stopPropagation():(this.wrapperRef.nativeElement.blur(),this.changeEvent.emit(J),this.mainMenuService.closeMainMenu(),this.cdr.detectChanges())}menuColumnHeaderClick(J,Oe){Oe.stopPropagation()}focusout(J){this.mainMenuService.closeMainMenu(),this.cdr.detectChanges()}updateState(){this.showRised=window.scrollY>0}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}openChat(){this.chatService.getChat().subscribe(J=>{J.chat.toggle()})}menuWrapperClick(J){}static#e=this.\u0275fac=function(Oe){return new(Oe||Ze)(C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(C.ChangeDetectorRef),C.\u0275\u0275directiveInject(P.Pj),C.\u0275\u0275directiveInject(pt.a),C.\u0275\u0275directiveInject(G),C.\u0275\u0275directiveInject(R._))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:Ze,selectors:[["app-main-menu"]],viewQuery:function(Oe,je){if(1&Oe&&C.\u0275\u0275viewQuery(Qe,7),2&Oe){let Et;C.\u0275\u0275queryRefresh(Et=C.\u0275\u0275loadQuery())&&(je.wrapperRef=Et.first)}},hostBindings:function(Oe,je){1&Oe&&C.\u0275\u0275listener("scroll",function(dt){return je.updateState(dt)},!1,C.\u0275\u0275resolveWindow)},inputs:{items:"items",backgroundClass:"backgroundClass",icon:"icon",title:"title",mobileItems:"mobileItems"},outputs:{changeEvent:"changeEvent"},ngContentSelectors:wt,decls:12,vars:14,consts:[["data-qa","1658842231430","tabindex","-1",1,"main-menu__wrapper",3,"click"],["wrapper",""],["data-qa","1658842243832",1,"main-menu__content-wrapper"],[1,"main-menu__bg"],["data-qa","1658842254864",1,"main-menu__overlay",3,"ngClass"],["data-qa","1658842269986",1,"main-menu__content"],["class","main-menu-column",4,"ngFor","ngForOf"],["class","main-menu-column last",4,"ngIf"],[3,"diameter",4,"ngIf"],[1,"main-menu-column"],["class","main-menu-column__mobile",4,"ngIf"],["arrowStyle","thin-black","headerCssClass","menu-accordion-header","titleCssClass","menu-accordion-title",3,"hidden","hide","title","click"],["class","main-menu-item",3,"is-new","is-soon","is-disabled","click",4,"ngFor","ngForOf"],[1,"main-menu-column__mobile"],["class","main-menu-column__title main-menu-column__mobile-title",3,"click",4,"ngFor","ngForOf"],[1,"main-menu-column__title","main-menu-column__mobile-title",3,"click"],[1,"main-menu-item",3,"click"],[1,"main-menu-item__title"],["class","main-menu-item__icon new",4,"ngIf"],["class","main-menu-item__icon soon",4,"ngIf"],[1,"main-menu-item__icon","new"],[1,"main-menu-item__icon","soon"],[1,"main-menu-column","last"],[1,"main-menu-column__link",3,"click"],[3,"diameter"]],template:function(Oe,je){1&Oe&&(C.\u0275\u0275projectionDef(),C.\u0275\u0275elementStart(0,"div",0,1),C.\u0275\u0275listener("click",function(dt){return je.menuWrapperClick(dt)}),C.\u0275\u0275elementStart(2,"div",2),C.\u0275\u0275projection(3),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(4,"div",3),C.\u0275\u0275pipe(5,"async"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(6,"div",4),C.\u0275\u0275pipe(7,"async"),C.\u0275\u0275elementStart(8,"div",5),C.\u0275\u0275template(9,Tt,4,5,"div",6),C.\u0275\u0275template(10,ot,10,12,"div",7),C.\u0275\u0275elementEnd(),C.\u0275\u0275template(11,Gt,1,1,"app-loader",8),C.\u0275\u0275elementEnd()()),2&Oe&&(C.\u0275\u0275advance(4),C.\u0275\u0275classProp("rised",je.showRised)("is-demo",C.\u0275\u0275pipeBind1(5,10,je.isDemo)),C.\u0275\u0275advance(2),C.\u0275\u0275classProp("main-menu__overlay--open",C.\u0275\u0275pipeBind1(7,12,je.mainMenuService.menuOpened$)),C.\u0275\u0275property("ngClass",je.backgroundClass),C.\u0275\u0275advance(3),C.\u0275\u0275property("ngForOf",je.itemColumns),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",je.isSettingsEnabled),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",je.pending||!je.itemColumns))},dependencies:[Ht.mk,Ht.sg,Ht.O5,Wt.R,Xe.y,Ht.Ov,e.X$],styles:['@charset "UTF-8";.main-menu__bg{position:fixed;top:0;width:100%;height:80px;left:0;z-index:-1;background-color:#f1f2f2}.main-menu__bg.is-demo{top:36px}.main-menu__bg.has-update{top:60px}.main-menu__bg.rised{box-shadow:0 0 40px #00000021}@media screen and (max-width: 720px){.main-menu__bg{height:60px}}.main-menu__wrapper{outline:none!important;position:relative;box-sizing:border-box;margin-left:320px;font-family:Open Sans,Source Sans Pro,sans-serif;width:1200px}@media screen and (max-width: 1680px){.main-menu__wrapper{padding:0}}@media screen and (max-width: 1599px){.main-menu__wrapper{padding:0;margin-left:0}}@media screen and (max-width: 1280px){.main-menu__wrapper{margin:0}}@media screen and (max-width: 1279px){.main-menu__wrapper{padding:0 32px}}@media screen and (max-width: 1200px){.main-menu__wrapper{width:100%}}@media screen and (max-width: 1000px){.main-menu__wrapper{padding:0 20px;max-width:976px}}@media screen and (max-width: 999px){.main-menu__wrapper{padding:0}}.main-menu__content-wrapper{height:100%;display:flex;align-items:center;justify-content:space-between;min-height:80px;width:100%}@media screen and (max-width: 1520px){.main-menu__content-wrapper{padding:0}}@media screen and (max-width: 1440px){.main-menu__content-wrapper{padding:0}}@media screen and (max-width: 720px){.main-menu__content-wrapper{min-height:60px}}.main-menu__overlay{background:#ffffff;box-shadow:0 4px 20px #0000002e;height:0px;z-index:1001;color:#88909b;display:none;visibility:hidden;cursor:default;opacity:0;transition:opacity,transform,visibility;transition-duration:70ms,.25s,.25s;transition-timing-function:linear,cubic-bezier(.23,1,.32,1);transition-delay:25ms,50ms,0ms;border-radius:5px}@media screen and (max-width: 380px){.main-menu__overlay{min-width:110px}}.main-menu__overlay--open{visibility:visible;display:block;opacity:1;height:auto;color:#2f54eb;padding:21px 0 10px;margin:8px 0 0}@media screen and (max-width: 999px){.main-menu__overlay--open{margin-left:15px;margin-right:10px;padding-top:24px}}@media screen and (max-width: 480px){.main-menu__overlay--open{width:440px;margin-left:20px;margin-right:20px;padding-top:0}}@media screen and (max-width: 420px){.main-menu__overlay--open{width:calc(100vw - 37px)}}@media screen and (max-width: 320px){.main-menu__overlay--open{width:320px;margin-left:0;margin-right:0}}.main-menu__overlay--open::-webkit-scrollbar{background:transparent!important;width:10px;margin-right:5px;box-sizing:border-box}.main-menu__overlay--open::-webkit-scrollbar-thumb{background:#dedede;border-radius:4px;width:4px;margin:auto;border-right:3px solid white;border-left:3px solid white;box-sizing:border-box}@media screen and (max-width: 720px){.main-menu__overlay--open{max-height:calc(100vh - 120px);overflow-y:scroll;overflow-x:hidden}}.main-menu__content{position:relative;min-height:50px;display:flex;flex-wrap:wrap;flex-direction:row;justify-content:space-between;padding:22px 42px 44px 38px;color:#080708}@media screen and (max-width: 1000px){.main-menu__content{justify-content:flex-start;padding:22px 26px;flex-direction:column;max-height:580px;width:936px}}@media screen and (width: 1000px){.main-menu__content{padding:22px 59px 22px 38px}}@media screen and (max-width: 999px){.main-menu__content{max-height:720px;padding:0 117px 0 52px;width:auto}}@media screen and (max-width: 720px){.main-menu__content{max-height:-moz-fit-content;max-height:fit-content}}@media screen and (max-width: 480px){.main-menu__content{padding:20px 48px 14px 47px}}@media screen and (max-width: 320px){.main-menu__content{padding:20px 6px 10px}}.main-menu-column{padding:0 10px 12px;flex:1 1 0}@media screen and (min-width: 1001px){.main-menu-column{padding-bottom:0}}@media screen and (max-width: 1279px){.main-menu-column{max-width:248px}}@media screen and (max-width: 1000px){.main-menu-column{width:224px}}@media screen and (max-width: 480px){.main-menu-column{width:344px}}@media screen and (max-width: 999px){.main-menu-column{padding-left:0;padding-right:0;padding-bottom:12px}.main-menu-column:nth-child(2){order:3}.main-menu-column:nth-child(3){order:2}.main-menu-column:nth-child(4){order:4}}@media screen and (max-width: 720px){.main-menu-column{max-width:none}.main-menu-column:nth-child(2){order:0}.main-menu-column:nth-child(3){order:0}.main-menu-column:nth-child(4){order:0}}@media screen and (max-width: 640px){.main-menu-column{max-width:inherit}}@media screen and (max-width: 320px){.main-menu-column{padding:0 14px 8px 13px}}.main-menu-column__link{color:#2f54eb;text-decoration:underline;cursor:pointer}.main-menu-column__title{font-weight:700;font-size:14px;line-height:19px;padding:12px;text-transform:uppercase}@media screen and (max-width: 999px){.main-menu-column__title{padding:11px 12px}}.main-menu-column__title-desktop{display:block}@media screen and (max-width: 640px){.main-menu-column__title-desktop{display:none}}.main-menu-column__title-accordion{display:none}@media screen and (max-width: 640px){.main-menu-column__title-accordion{display:block}}.main-menu-column__mobile{display:none}.main-menu-column__mobile-title{cursor:pointer;border:1px solid transparent;background-color:#fff;transition:.3s}.main-menu-column__mobile-title:hover{border-radius:4px;border:1px solid #f1f2f2;background-color:#f1f2f2}@media screen and (max-width: 720px){.main-menu-column__mobile-title{padding-left:12px}}@media screen and (max-width: 480px){.main-menu-column__mobile-title{padding:11px 12px}}@media screen and (max-width: 999px){.main-menu-column__mobile{display:block;padding-bottom:0}}@media screen and (max-width: 768px){.main-menu-column__mobile{padding-bottom:0}}.main-menu-column.last{padding-right:0;padding-top:12px;position:absolute;bottom:10px;right:60px;color:#4d4d4d}@media screen and (max-width: 1279px){.main-menu-column.last{display:none}}.main-menu-item{display:flex;align-items:center;padding:11px 12px;font-size:14px;font-weight:400;cursor:pointer;border:1px solid transparent;background-color:#fff;transition:.3s}@media screen and (max-width: 1000px){.main-menu-item{padding-right:0}}@media screen and (max-width: 999px){.main-menu-item{padding:11px 12px}}@media screen and (max-width: 480px){.main-menu-item{padding:11px 12px}}@media screen and (max-width: 320px){.main-menu-item{padding:11px 12px;max-width:280px}}.main-menu-item:hover{border-radius:4px;border:1px solid #f1f2f2;background-color:#f1f2f2}.main-menu-item.is-soon{cursor:default;color:#88909b;padding-bottom:15px}.main-menu-item.is-disabled{cursor:default;color:#88909b;pointer-events:none}.main-menu-item__icon{margin-left:8px;padding:4px 8px;border-radius:4px;margin-bottom:-3px;font-weight:700;font-size:10px;text-transform:uppercase}.main-menu-item__icon.new{color:#00a843;background-color:#00a84326}.main-menu-item__icon.soon{color:#2f54eb;background-color:#c6d8ff}.no-input-select{position:relative;display:inline-block}.wrapper-class{position:relative;width:40px;height:100%;display:flex;align-items:center}@media (max-width: 768px){.wrapper-class{width:24px;height:33px}}app-main-menu .operation{width:273px}.pay-request{width:330px}.hidden{display:none}\n'],encapsulation:2,changeDetection:0})}(0,n.gn)([(0,e.SQ)()],Ze.prototype,"lang",void 0);var Ut=t(90995),vn=t(97392),xn=t(26911),bn=t(48041);function hn(q,J){if(1&q&&(C.\u0275\u0275elementStart(0,"a",21),C.\u0275\u0275text(1),C.\u0275\u0275pipe(2,"translate"),C.\u0275\u0275elementEnd()),2&q){const Oe=J.$implicit,je=J.index,Et=C.\u0275\u0275nextContext(3);C.\u0275\u0275property("routerLinkActive","header-menu__item--active")("routerLink",Oe.link),C.\u0275\u0275attribute("data-qa","1657795224498"+je),C.\u0275\u0275advance(1),C.\u0275\u0275textInterpolate1(" ",C.\u0275\u0275pipeBind2(2,4,Oe.description,Et.lang)," ")}}const pn=function(q){return{"with-mail-badge":q}};function In(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementContainerStart(0),C.\u0275\u0275element(1,"a",16),C.\u0275\u0275elementStart(2,"div",17),C.\u0275\u0275template(3,hn,3,7,"a",18),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(4,"div",19),C.\u0275\u0275listener("click",function(Et){C.\u0275\u0275restoreView(Oe);const dt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(dt.burgerClick(Et))}),C.\u0275\u0275pipe(5,"async"),C.\u0275\u0275element(6,"app-svg-icon",20),C.\u0275\u0275pipe(7,"async"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementContainerEnd()}if(2&q){const Oe=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(3),C.\u0275\u0275property("ngForOf",Oe.desktopMenuItems),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngClass",C.\u0275\u0275pureFunction1(8,pn,C.\u0275\u0275pipeBind1(5,4,Oe.mailService.unreadMailNumber$))),C.\u0275\u0275advance(2),C.\u0275\u0275property("icon",C.\u0275\u0275pipeBind1(7,6,Oe.mainMenuService.menuOpened$)?"cross-new":"hamburger")("svgClass",Oe.getMainMenuSvgClass())}}function Dn(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"app-button",26),C.\u0275\u0275listener("click",function(Et){C.\u0275\u0275restoreView(Oe);const dt=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(dt.goToPayments(Et))}),C.\u0275\u0275pipe(1,"translate"),C.\u0275\u0275elementEnd()}if(2&q){const Oe=C.\u0275\u0275nextContext(3);C.\u0275\u0275propertyInterpolate("text",C.\u0275\u0275pipeBind2(1,3,"New payment",Oe.lang)),C.\u0275\u0275property("disabled",Oe.isBlockPay)("type","small header")}}function Tn(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"app-menu-select",27,28),C.\u0275\u0275listener("changeEvent",function(Et){C.\u0275\u0275restoreView(Oe);const dt=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(dt.onClickAction(Et))}),C.\u0275\u0275elementStart(2,"div",29),C.\u0275\u0275element(3,"div",30),C.\u0275\u0275pipe(4,"translate"),C.\u0275\u0275elementEnd()()}if(2&q){const Oe=C.\u0275\u0275nextContext(3);C.\u0275\u0275property("icon",!1)("items",Oe.complexPaymentSelectItems)("wrapperClass",""),C.\u0275\u0275advance(3),C.\u0275\u0275property("title",C.\u0275\u0275pipeBind2(4,4,"New payment",Oe.lang))}}function mn(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"app-menu-select",31,28),C.\u0275\u0275listener("changeEvent",function(Et){C.\u0275\u0275restoreView(Oe);const dt=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(dt.onClickAction(Et))}),C.\u0275\u0275elementStart(2,"button",32)(3,"span"),C.\u0275\u0275text(4),C.\u0275\u0275pipe(5,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(6,"mat-icon",33),C.\u0275\u0275text(7),C.\u0275\u0275elementEnd()()()}if(2&q){const Oe=C.\u0275\u0275reference(1),je=C.\u0275\u0275nextContext(3);C.\u0275\u0275property("icon",!1)("items",je.complexPaymentSelectItems)("wrapperClass",""),C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate1("",C.\u0275\u0275pipeBind2(5,5,"New payment",je.lang)," "),C.\u0275\u0275advance(3),C.\u0275\u0275textInterpolate(Oe.opened?"keyboard_arrow_up":"keyboard_arrow_down")}}function Yn(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",34),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Oe);const Et=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(Et.openContactBankModal())}),C.\u0275\u0275elementStart(1,"span",10),C.\u0275\u0275text(2),C.\u0275\u0275pipe(3,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275element(4,"div",35),C.\u0275\u0275pipe(5,"translate"),C.\u0275\u0275elementEnd()}if(2&q){const Oe=C.\u0275\u0275nextContext(3);C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1(" ",C.\u0275\u0275pipeBind2(3,2,"Contact with the Bank",Oe.lang)," "),C.\u0275\u0275advance(2),C.\u0275\u0275property("title",C.\u0275\u0275pipeBind2(5,5,"Contact with the Bank",Oe.lang))}}function cn(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",34),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Oe);const Et=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(Et.openExtractModal())}),C.\u0275\u0275elementStart(1,"span",10),C.\u0275\u0275text(2),C.\u0275\u0275pipe(3,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275element(4,"div",36),C.\u0275\u0275pipe(5,"translate"),C.\u0275\u0275elementEnd()}if(2&q){const Oe=C.\u0275\u0275nextContext(3);C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1(" ",C.\u0275\u0275pipeBind2(3,2,"Extracts",Oe.lang)," "),C.\u0275\u0275advance(2),C.\u0275\u0275property("title",C.\u0275\u0275pipeBind2(5,5,"Extracts",Oe.lang))}}function Nn(q,J){if(1&q&&(C.\u0275\u0275elementContainerStart(0),C.\u0275\u0275template(1,Dn,2,6,"app-button",22),C.\u0275\u0275template(2,Tn,5,7,"app-menu-select",23),C.\u0275\u0275template(3,mn,8,8,"app-menu-select",24),C.\u0275\u0275template(4,Yn,6,8,"div",25),C.\u0275\u0275template(5,cn,6,8,"div",25),C.\u0275\u0275elementContainerEnd()),2&q){const Oe=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",!Oe.isDocPlatporBpButtonAvailable&&!Oe.isDocPlatporBpTransferButtonAvailable||Oe.isBlockPay),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",(Oe.isDocPlatporBpButtonAvailable||Oe.isDocPlatporBpTransferButtonAvailable)&&!Oe.isBlockPay),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",(Oe.isDocPlatporBpButtonAvailable||Oe.isDocPlatporBpTransferButtonAvailable)&&!Oe.isBlockPay),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",Oe.isContactBankAvailable),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",Oe.isExtractsAvailable)}}function Bt(q,J){if(1&q&&(C.\u0275\u0275elementStart(0,"div",37),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&q){const Oe=J.ngIf,je=C.\u0275\u0275nextContext(2);C.\u0275\u0275property("hidden",je.isMailDisabled||Oe&&Oe.unreadAll<1),C.\u0275\u0275advance(1),C.\u0275\u0275textInterpolate1(" ",je.countToString(Oe.unreadAll)," ")}}function En(q,J){if(1&q&&(C.\u0275\u0275elementStart(0,"div",37),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&q){const Oe=J.ngIf,je=C.\u0275\u0275nextContext(2);C.\u0275\u0275property("hidden",je.isMailDisabled||Oe&&Oe<1),C.\u0275\u0275advance(1),C.\u0275\u0275textInterpolate1(" ",je.countToString(Oe)," ")}}function Wn(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"app-currency-rates",38),C.\u0275\u0275listener("closed",function(){C.\u0275\u0275restoreView(Oe);const Et=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(Et.currencyRates=!1)}),C.\u0275\u0275elementEnd()}}const rn=function(q){return{disabled:q}},Sn=function(q,J){return{"header-controls__item-unread-mail-icon":q,"header-controls__item-mail-icon":J}};function ke(q,J){if(1&q){const Oe=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"app-main-menu",2),C.\u0275\u0275listener("changeEvent",function(Et){C.\u0275\u0275restoreView(Oe);const dt=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(dt.changeHamburgerItem(Et))}),C.\u0275\u0275elementStart(1,"div",3)(2,"div",4)(3,"div",5),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Oe);const Et=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(Et.userDataService.sidebarOpen=!Et.userDataService.sidebarOpen)}),C.\u0275\u0275element(4,"div",6),C.\u0275\u0275elementEnd()(),C.\u0275\u0275template(5,In,8,10,"ng-container",7),C.\u0275\u0275pipe(6,"async"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(7,"div",8),C.\u0275\u0275template(8,Nn,6,5,"ng-container",7),C.\u0275\u0275pipe(9,"async"),C.\u0275\u0275elementStart(10,"div",9)(11,"div",10)(12,"span"),C.\u0275\u0275text(13),C.\u0275\u0275pipe(14,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275template(15,Bt,2,2,"div",11),C.\u0275\u0275pipe(16,"async"),C.\u0275\u0275template(17,En,2,2,"div",11),C.\u0275\u0275pipe(18,"async"),C.\u0275\u0275elementEnd(),C.\u0275\u0275element(19,"div",12),C.\u0275\u0275pipe(20,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(21,"div",13),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Oe);const Et=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(Et.logout())}),C.\u0275\u0275elementStart(22,"div",10),C.\u0275\u0275text(23),C.\u0275\u0275pipe(24,"translate"),C.\u0275\u0275elementEnd(),C.\u0275\u0275element(25,"div",14),C.\u0275\u0275pipe(26,"translate"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275template(27,Wn,1,0,"app-currency-rates",15),C.\u0275\u0275pipe(28,"async"),C.\u0275\u0275elementEnd()}if(2&q){const Oe=C.\u0275\u0275nextContext();C.\u0275\u0275property("items",Oe.hamburgerItems)("mobileItems",Oe.mobileMenuItems),C.\u0275\u0275advance(4),C.\u0275\u0275classProp("open",Oe.userDataService.sidebarOpen),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",!1===C.\u0275\u0275pipeBind1(6,16,Oe.appConfigService.isRoleOnlyEmail$)),C.\u0275\u0275advance(3),C.\u0275\u0275property("ngIf",!1===C.\u0275\u0275pipeBind1(9,18,Oe.appConfigService.isRoleOnlyEmail$)),C.\u0275\u0275advance(2),C.\u0275\u0275propertyInterpolate("routerLink",Oe.mailLink),C.\u0275\u0275property("ngClass",C.\u0275\u0275pureFunction1(38,rn,Oe.isMailDisabled)),C.\u0275\u0275advance(3),C.\u0275\u0275textInterpolate(C.\u0275\u0275pipeBind2(14,20,"Mail",Oe.lang)),C.\u0275\u0275advance(2),C.\u0275\u0275property("ngIf",C.\u0275\u0275pipeBind1(16,23,Oe.isNewMail&&Oe.mailService.allCounters$)),C.\u0275\u0275advance(2),C.\u0275\u0275property("ngIf",C.\u0275\u0275pipeBind1(18,25,!Oe.isNewMail&&Oe.mailingService.unreadMailNumber$)),C.\u0275\u0275advance(2),C.\u0275\u0275property("ngClass",C.\u0275\u0275pureFunction2(40,Sn,0!==Oe.mailService.unreadMailNumber$.value.unreadAll,0===Oe.mailService.unreadMailNumber$.value.unreadAll))("title",C.\u0275\u0275pipeBind2(20,27,"Mail",Oe.lang)),C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate1(" ",C.\u0275\u0275pipeBind2(24,30,"Logout",Oe.lang)," "),C.\u0275\u0275advance(2),C.\u0275\u0275property("title",C.\u0275\u0275pipeBind2(26,33,"Logout",Oe.lang)),C.\u0275\u0275advance(2),C.\u0275\u0275property("ngIf",Oe.currencyRates&&!1===C.\u0275\u0275pipeBind1(28,36,Oe.appConfigService.isRoleOnlyEmail$))}}class ge extends h.H{constructor(J,Oe,je,Et,dt,rt,qe,ze,zt,vt,Rt,gt,sn,wn,Qn,pi,Ei,ki,Co,xo){super(),this.router=J,this.userDataService=Oe,this.modalService=je,this.authService=Et,this.translation=dt,this.mailingService=rt,this.mailService=qe,this.tariffsService=ze,this.configUtilService=zt,this.vedService=vt,this.appConfigService=Rt,this.tariffNewService=gt,this.mainMenuService=sn,this.pluralLangPipe=wn,this.toastService=Qn,this.attachmentService=pi,this.sbpApiService=Ei,this.sbpQrApiService=ki,this.productsService=Co,this.acquiringService=xo,this.mainMenuOpened=!1,this._favoriteItem={link:"/favorite-payments",description:"Favorite",exact:!0},this.currencyRates=!1,this.mailRouterLink="mailing",this.complexPaymentSelectItems=[{name:"newRurPayment",description:"New rur payment"}],this.isDocPlatporBpButtonAvailable=!1,this.isDocPlatporBpTransferButtonAvailable=!1,this.hamburgerItems=[],this.isBlockPay=!1,this.isMailDisabled=!0,this.isNewMail=!1,this.isExtractsAvailable=!1,this.isContactBankAvailable=!1,this.mailLink="/mail"}get desktopMenuItems(){return this.menuItems}get mobileMenuItems(){return this.menuItems.filter(J=>"/desktop"!==J.link)}getUserBlockingStatus(){this.userDataService.userBlockingMessage$.pipe((0,d.R)(this.$unsubscribe)).subscribe(J=>{J&&this.toastService.show(J,"error")})}checkActiveOrganizationChanged(){this.userDataService.activeOrganizationChanged$.pipe((0,d.R)(this.$unsubscribe)).subscribe(()=>{this.vedService.checkPersonnalSupport(),this.updateUserDataOnCompanyChange()})}checkVedSupportStatus(){this.vedService.personalSupportVedContract$.pipe((0,d.R)(this.$unsubscribe)).subscribe(J=>{if(J){const{contractStatus:Oe,dateDue:je,diff:Et,skipWarning:dt}=J;Et<3&&"\u0418\u0441\u0442\u0435\u043a\u0448\u0438\u0439"!==Oe&&!dt&&this.toastService.show(`\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0412\u042d\u0414 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f ${je.format("DD.MM.YYYY")}`,"error")}})}updateUserDataOnCompanyChange(){(0,i.D)({attachmentSetup:this.attachmentService.getAttachmentSetup()}).subscribe(J=>{this.attachmentService.setAttachmentSetup(J.attachmentSetup)})}checkSettings(){this.appConfigService.settings$.pipe((0,a.h)(J=>J.isLoaded),(0,d.R)(this.$unsubscribe)).subscribe(({commonSettings:J,currSettings:Oe,ulSettings:je,roles:Et,hasRisda:dt,isDboBlocking:rt,currentTariff:qe,clientRights:ze,isSbpConnected:zt,hasNoTspStatement:vt,partiallyBlock:Rt,hasAcquiringSoftPOSDoc:gt,hasAcquiringHardPOSDoc:sn,averageBalancesBlocks:wn})=>{this.buildMenu(Rt);const Qn=$.factory(Array.from(Et),this.translation,this.tariffNewService,this.userDataService,this.acquiringService);this.hamburgerItems=Qn.buildNavigation(J,Oe,je,dt,Array.from(Et),qe,rt,zt,vt,Rt,gt,sn,wn).getResult(),this.handleCurrSettings(Oe),this.showSignerNotification(ze),this.checkMailSettings(je),this.checkPartnerAccountAvailability(je,Et),this.checkBlockPayment(je),this.isContactBankAvailable=1===je["STATEMENT_GB/CONNECT_TO_BANK"]}),this.appConfigService.getSettings$.next(null)}showSignerNotification(J){if(J&&null!==J.daysLeft){let Oe="";const je=Math.abs(J.daysLeft),Et=this.pluralLangPipe.transform(this.lang);Oe=Et.transform(je,J.daysLeft<=0?{"=0":"Signer status days.zero",one:"Signer status expired days.one",few:"Signer status expired days.few",other:"Signer status expired days.other"}:{one:"Signer status days.one",few:"Signer status days.few",other:"Signer status days.other"}),setTimeout(()=>{this.toastService.show(this.translation.translate(Oe,{days:je}),"warning")},2e3)}}buildMenu(J){this.menuItems=[{link:"/desktop",description:"Main",exact:!0}],!this.userDataService.isOKBOBlock(J)&&!this.userDataService.isDoubleRedBlock(J)&&this.menuItems.push(this._favoriteItem),this.configUtilService.adminConfig.data.ved&&this.menuItems.splice(2,0,{link:"/ved",description:"VED",exact:!0,query:{tab:x.e5.CONTRACTS}})}handleCurrSettings(J){this.vedService.availableServices.next(J),J["CONTROL_181/GROUP_181"]||this.menuItems.forEach((Oe,je)=>{"/ved"===Oe.link&&this.menuItems.splice(je,1)})}checkPartnerAccountAvailability(J,Oe){this.productsService.hasPartnerRurAccount$.pipe((0,d.R)(this.$unsubscribe)).subscribe(je=>{this.complexPaymentSelectItems=[{name:"newRurPayment",description:"New rur payment"}],this.isDocPlatporBpButtonAvailable=m._.isDocPlatporBpAvailableForCreation(J)&&Oe.has("ROLE_CLIENTUL_USER")&&je,this.isDocPlatporBpTransferButtonAvailable=u.c.isTransferRestsAvailableForCreation(J)&&Oe.has("ROLE_CLIENTUL_USER")&&je,this.isDocPlatporBpButtonAvailable&&this.complexPaymentSelectItems.push({name:"newRurComplexPayment",description:"RUR payment with CTI"}),this.isDocPlatporBpTransferButtonAvailable&&this.complexPaymentSelectItems.push({name:"newBalanceTransfer",description:"Transfer of balances"})})}ngOnInit(){this.menuItems=[{link:"/desktop",description:"Main",exact:!0}],this.mainMenuService.menuOpened$.pipe((0,d.R)(this.$unsubscribe)).subscribe(J=>this.mainMenuOpened=J),this.checkSettings(),this.checkActiveOrganizationChanged(),this.getUserBlockingStatus(),this.checkVedSupportStatus()}onClickAction(J){switch(J.name){case"newRurPayment":this.router.navigate(["/transfer-rur"]);break;case"newRurComplexPayment":this.router.navigate(["/transfer-rur-cti"]);break;case"newBalanceTransfer":this.router.navigate(["/balance-transfer"])}}urlMail(){this.router.navigate([this.mailRouterLink])}checkBlockPayment(J){this.isBlockPay=0===J["PAY/PLATPOR"]&&0===J["PAY/PLATPOR_NALOG"]||0===J["SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"],this.isExtractsAvailable=1===J["STAT/ONLINE_STATEMENT"]}countToString(J){const Oe="number"==typeof J?J:parseInt(J);return Oe>9?"+9":Oe.toString()}logout(){this.authService.sessionEnd().pipe((0,d.R)(this.$unsubscribe)).subscribe(()=>{this.userDataService.employeeInfo$.next(null),this.authService.redirectUrl=null,this.router.navigate(["/auth"]).then()})}checkMailSettings(J){1===J["OTHER/MAIL20"]?(this.isNewMail=!0,(0,i.D)(this.mailService.getMailUnreadNumber(),this.mailingService.getMailUnreadNumber()).subscribe(Oe=>{this.mailService.allCounters$.next(Oe[0]);const je=Oe[0].unread;0!==je&&(this.mailService.unreadMailIds$.next(je),this.mailService.unreadMailNumber$.next(Oe[0]))})):0===J["OTHER/MAIL20"]&&1===J["OTHER/MAIL"]&&(this.isNewMail=!1,this.mailingService.getMailUnreadNumber().subscribe(Oe=>{this.mailingService.unreadMailNumber$.next(Oe.count)})),this.mailRouterLink=1===J["OTHER/MAIL20"]?"mail":"mailing",this.isMailDisabled=1!==J["OTHER/MAIL20"]&&1!==J["OTHER/MAIL"]}changeHamburgerItem(J){this.router.navigate([J.link],{queryParams:J?.query}).then()}outsideClick(){this.mainMenuService.closeMainMenu()}burgerClick(J){this.mainMenuService.toggleMainMenu(),J.stopPropagation()}getMainMenuSvgClass(){return"hamburger-menu__icon "+(this.mainMenuOpened?"opened":"closed")}goToPayments(J){this.mainMenuService.closeMainMenu(),J.preventDefault(),!this.isBlockPay&&this.userDataService.partiallyBlock$.subscribe(Oe=>{this.router.navigate(["transfer-rur"]).then()}).unsubscribe()}openExtractModal(){this.mainMenuService.closeMainMenu(),this.modalService.open(l.H,{inputs:{selectedProductId:null},overflow:"initial"})}openContactBankModal(){this.mainMenuService.closeMainMenu(),this.modalService.open(O.$,{header:"Contact with the Bank",styleMode:"forSign",overflow:"initial",size:"auto-width"})}static#e=this.\u0275fac=function(Oe){return new(Oe||ge)(C.\u0275\u0275directiveInject(T.F0),C.\u0275\u0275directiveInject(j.M),C.\u0275\u0275directiveInject(I.Z),C.\u0275\u0275directiveInject(F.e),C.\u0275\u0275directiveInject(e.D7),C.\u0275\u0275directiveInject(z.r),C.\u0275\u0275directiveInject(X.Y),C.\u0275\u0275directiveInject(p.M),C.\u0275\u0275directiveInject(P.Pj),C.\u0275\u0275directiveInject(E.$),C.\u0275\u0275directiveInject(R._),C.\u0275\u0275directiveInject(B.iY),C.\u0275\u0275directiveInject(G),C.\u0275\u0275directiveInject(ce.u),C.\u0275\u0275directiveInject(xe.j),C.\u0275\u0275directiveInject(we.L),C.\u0275\u0275directiveInject(Ge.Y),C.\u0275\u0275directiveInject(ct.J),C.\u0275\u0275directiveInject(pe.su),C.\u0275\u0275directiveInject(Ce.Y))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:ge,selectors:[["app-header"]],features:[C.\u0275\u0275InheritDefinitionFeature],decls:4,vars:5,consts:[["data-qa","1657795161459",1,"header-container__wrapper",3,"click"],["data-qa","1657795248889",3,"items","mobileItems","changeEvent",4,"ngIf"],["data-qa","1657795248889",3,"items","mobileItems","changeEvent"],["data-qa","1657795243690",1,"header-menu-wrapper"],["data-qa","1657795332826",1,"header-controls","mobile-controls"],[1,"header-controls__item","header-controls__item--margin-in-last-child",3,"click"],[1,"header-controls__chevron"],[4,"ngIf"],["data-qa","1657795262064",1,"header-controls"],["data-qa","1657795297151",1,"header-controls__item","header-controls__item--relative",3,"ngClass","routerLink"],[1,"header-controls__item-desktop"],["class","header-controls__badge",3,"hidden",4,"ngIf"],[1,"header-controls__item-mobile",3,"ngClass","title"],[1,"header-controls__item","last",3,"click"],[1,"header-controls__item-mobile","header-controls__item-logout-icon",3,"title"],[3,"closed",4,"ngIf"],["data-qa","1657795172298","routerLink","/",1,"header-container__logo"],["data-qa","1657795238747",1,"header-menu"],["class","header-menu__item header-menu__item--desktop",3,"routerLinkActive","routerLink",4,"ngFor","ngForOf"],[1,"header-container__content","hamburger-menu","hamburger-menu__wrapper",3,"ngClass","click"],[3,"icon","svgClass"],[1,"header-menu__item","header-menu__item--desktop",3,"routerLinkActive","routerLink"],["class","header-controls__item header-controls__item--create-transfer-rur header-controls__item-desktop","data-qa","1657795266995",3,"disabled","type","text","click",4,"ngIf"],["data-qa","1663076368",3,"icon","items","wrapperClass","changeEvent",4,"ngIf"],["data-qa","1663076366","class","header-controls__item-desktop",3,"icon","items","wrapperClass","changeEvent",4,"ngIf"],["class","header-controls__item",3,"click",4,"ngIf"],["data-qa","1657795266995",1,"header-controls__item","header-controls__item--create-transfer-rur","header-controls__item-desktop",3,"disabled","type","text","click"],["data-qa","1663076368",3,"icon","items","wrapperClass","changeEvent"],["createPaymentSelect",""],[1,"header-controls__item","header-controls__item-mobile"],[1,"header-controls__item-mobile","header-controls__item-new-payment-icon",3,"title"],["data-qa","1663076366",1,"header-controls__item-desktop",3,"icon","items","wrapperClass","changeEvent"],["data-qa","1663076377",1,"new-payment-select"],["data-qa","1663076386",1,"more-button__arrow"],[1,"header-controls__item",3,"click"],[1,"header-controls__item-mobile","header-controls__item-contact-icon",3,"title"],[1,"header-controls__item-mobile","header-controls__item-extracts-icon",3,"title"],[1,"header-controls__badge",3,"hidden"],[3,"closed"]],template:function(Oe,je){1&Oe&&(C.\u0275\u0275element(0,"app-demo-label"),C.\u0275\u0275elementStart(1,"div",0),C.\u0275\u0275listener("click",function(){return je.outsideClick()}),C.\u0275\u0275pipe(2,"async"),C.\u0275\u0275template(3,ke,29,43,"app-main-menu",1),C.\u0275\u0275elementEnd()),2&Oe&&(C.\u0275\u0275advance(1),C.\u0275\u0275styleProp("padding-right",C.\u0275\u0275pipeBind1(2,3,je.modalService.additionalPadding$)),C.\u0275\u0275advance(2),C.\u0275\u0275property("ngIf",je.hamburgerItems.length>0))},dependencies:[U.b,H.r,Ze,Ht.mk,Ht.sg,Ht.O5,T.rH,T.Od,Ut.r,vn.Hw,xn.X,bn.H,e.X$,Ht.Ov],styles:['@charset "UTF-8";.header-container{position:fixed;top:0;z-index:1001;width:100%;display:flex;flex-direction:column;justify-content:space-around}@media screen and (max-width: 1599px){.header-container{width:100%;margin-left:0}}@media screen and (max-width: 1280px){.header-container{width:100%;margin-left:0}}@media screen and (max-width: 850px){.header-container{justify-content:flex-start}}@media screen and (max-width: 768px){.header-container{justify-content:flex-start}}.header-container.blocked{z-index:1000}.header-container__wrapper{display:flex;justify-content:center}@media screen and (min-width: 1000px) and (max-width: 1200px){.header-container__wrapper{width:100%}}.header-container__content{font-family:Open Sans,Source Sans Pro,sans-serif;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:80px}@media screen and (max-width: 1680px){.header-container__content{padding:0 20px}}@media screen and (max-width: 1599px){.header-container__content{padding:20px}}@media screen and (max-width: 720px){.header-container__content{padding:0 10px;height:60px}}@media screen and (max-width: 999px){.header-container__content.hamburger-menu__wrapper{padding-left:26vw}}@media screen and (max-width: 800px){.header-container__content.hamburger-menu__wrapper{padding-left:22vw}}@media screen and (max-width: 768px){.header-container__content.hamburger-menu__wrapper{padding-left:19vw;padding-right:23px}}@media screen and (max-width: 768px) and (min-width: 481px) and (max-width: 768px){.header-container__content.hamburger-menu__wrapper.with-mail-badge{padding-left:15.5vw}}@media screen and (max-width: 720px){.header-container__content.hamburger-menu__wrapper{padding-left:50vw}}@media screen and (max-width: 500px){.header-container__content.hamburger-menu__wrapper{padding-left:33vw;margin-right:12px}}@media screen and (max-width: 460px){.header-container__content.hamburger-menu__wrapper{padding-left:18vw;margin-right:0}}@media screen and (max-width: 320px){.header-container__content.hamburger-menu__wrapper{padding-left:44px;margin-right:0}}.header-container__logo{background:url(vectorlogo.060f8956dfe562f0.png) no-repeat;background-size:contain;width:28px;height:28px;margin-right:24px}@media screen and (max-width: 720px){.header-container__logo{height:24px;width:24px}}@media screen and (max-width: 320px){.header-container__logo{margin-right:2px}}.header-menu-wrapper{display:flex;align-items:center;font-family:Open Sans,Source Sans Pro,sans-serif}.header-menu{display:flex;height:80px}@media screen and (max-width: 720px){.header-menu{height:60px}}.header-menu__item{color:#080708;padding:28px 0 30px;margin-right:40px;border-top:3px solid rgba(0,0,0,0);font-size:14px;font-weight:400;text-transform:uppercase;cursor:pointer;outline:none!important;text-decoration:none;white-space:nowrap}.header-menu__item--active{border-color:#2f54eb;font-weight:700;transition:border-color 1s}@media screen and (max-width: 999px){.header-menu__item--desktop{display:none}}.hamburger-menu{display:block}.hamburger-menu__icon{width:24px;height:24px}.hamburger-menu__icon.opened,.hamburger-menu__icon.closed{fill:#080708}.hamburger-menu__background{top:100%!important;right:100%!important}@media screen and (max-width: 920px){.hamburger-menu__background{position:fixed!important;top:6em!important;left:0!important;width:75vw;max-height:90vh;overflow:scroll;overflow-x:hidden}}@media screen and (max-width: 720px){.hamburger-menu__background{position:fixed!important;top:5em!important;left:0!important;width:95vw;max-height:90vh;overflow:scroll;overflow-x:hidden}}.hamburger-menu__wrapper{height:40px;width:40px;margin-left:-8px;display:flex;justify-content:center;align-items:center;cursor:pointer}.header-controls{display:flex;flex-direction:row;align-items:center;font-size:14px;color:#080708}@media screen and (max-width: 720px){.header-controls{padding-left:12px}}@media screen and (max-width: 520px){.header-controls{padding-left:0}}@media screen and (max-width: 320px){.header-controls{padding-left:6px}}.header-controls.mobile-controls{display:none}@media screen and (max-width: 1599px){.header-controls.mobile-controls{display:block}}@media screen and (max-width: 999px){.header-controls.mobile-controls{padding-left:34px}}@media screen and (max-width: 768px){.header-controls.mobile-controls{padding-left:34px}}@media screen and (max-width: 520px){.header-controls.mobile-controls{padding-left:24px}}@media screen and (max-width: 320px){.header-controls.mobile-controls{padding-left:24px}}.header-controls__item{margin:0 18px;cursor:pointer;outline:none;position:relative;font-size:14px;font-weight:600}@media screen and (max-width: 720px){.header-controls__item{margin:0 12px}}@media screen and (max-width: 520px){.header-controls__item{margin:0 10px}}@media screen and (max-width: 320px){.header-controls__item{margin:0 8px}}@media screen and (min-width: 1000px){.header-controls__item.last{margin-right:12px;margin-left:18px}}@media screen and (max-width: 520px){.header-controls__item.last{margin-right:25px}}@media screen and (max-width: 320px){.header-controls__item.last{margin-left:9px}}.header-controls__item--margin-in-last-child{margin-left:14px}@media screen and (max-width: 999px){.header-controls__item--margin-in-last-child{margin-left:0}}@media screen and (max-width: 768px){.header-controls__item--margin-in-last-child{margin-left:0}}.header-controls__item--margin-in-last-child:last-child{margin-right:30px}@media screen and (max-width: 500px){.header-controls__item--margin-in-last-child:last-child{margin-right:20px}}@media screen and (max-width: 400px){.header-controls__item--margin-in-last-child:last-child{margin-right:16px}}.header-controls__item--relative{position:relative;line-height:21px;white-space:nowrap}@media screen and (max-width: 720px){.header-controls__item-desktop{display:none}}.header-controls__item-mobile{width:24px;height:24px;cursor:pointer;background-repeat:round}@media screen and (min-width: 721px){.header-controls__item-mobile{display:none}}.header-controls__item-unread-mail-icon{background-image:url(/assets/icons/email_unread.png)}.header-controls__item-mail-icon{background-image:url(/assets/icons/email.png)}.header-controls__item-contact-icon{background-image:url(/assets/icons/call.png)}.header-controls__item-extracts-icon{background-image:url(/assets/icons/extracts.png)}.header-controls__item-new-payment-icon{background-image:url(/assets/icons/new_payment.png)}.header-controls__item-logout-icon{background-image:url(/assets/icons/logout.png)}.header-controls__item--create-transfer-rur .small{padding:14px 28px}.header-controls__item--create-transfer-rur .new-payment-btn{font-weight:600;background:linear-gradient(251.59deg,#2f54eb 0%,#2f54eb 99.45%)!important}.header-controls__chevron{background:url(chevron.c5cc66af6f141639.png) no-repeat;background-size:contain;width:19px;height:19px}.header-controls__chevron.open{transform:rotate(90deg)}@media screen and (max-width: 480px){.header-controls__chevron{width:16px;height:16px}}.header-controls__icon{width:24px;height:24px;fill:#080708}.header-controls__icon_settings{width:21px;height:21px}.header-controls__icon--active{fill:#2f54eb}.header-controls__icon--width20{width:20px}.header-controls__badge{background-color:#d64040;border-radius:50%;width:18px;height:18px;line-height:18px;font-size:12px;color:#fff;display:inline-block;margin-left:8px;text-align:center}.new-payment-select{background:#2f54eb;border-radius:4px;padding:13px 24px;display:flex;justify-content:space-between;cursor:pointer;color:#fff;border:none;font-size:14px;align-items:center;line-height:19px;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:600}.new-payment-select:active,.new-payment-select:hover,.new-payment-select:focus{outline:none}.new-payment-select span{margin-right:9px}.new-payment-select .more-button__arrow{height:20px;width:20px;font-size:20px;padding-top:1px}.header-controls__icon--active{fill:#ffffff80}\n'],encapsulation:2})}(0,n.gn)([(0,e.SQ)()],ge.prototype,"lang",void 0)},71912:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>j});var n=t(97582),e=t(16611),i=t(77579),d=t(82722),a=t(49066),u=t(94650),h=t(24006),l=t(37601),m=t(64426),x=t(15644),O=t(9149),L=t(75568),w=t(36895),B=t(18430),_=t(90995);const y=["fileInput"];function $(I,F){if(1&I&&(u.\u0275\u0275elementStart(0,"div",13),u.\u0275\u0275text(1),u.\u0275\u0275pipe(2,"translate"),u.\u0275\u0275elementEnd()),2&I){const z=u.\u0275\u0275nextContext();u.\u0275\u0275property("ngClass",z.alertType),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind2(2,2,z.alertMsg,z.lang))}}function C(I,F){if(1&I){const z=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",14)(1,"app-button",15),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(z);const p=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(p.viewImported())}),u.\u0275\u0275pipe(2,"translate"),u.\u0275\u0275elementEnd()()}if(2&I){const z=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275propertyInterpolate("text",u.\u0275\u0275pipeBind2(2,1,"View imported",z.lang))}}function T(I,F){1&I&&u.\u0275\u0275element(0,"app-loader")}class j{constructor(F,z,X,p,P,E){this.fb=F,this.translation=z,this.userDataService=X,this.importService=p,this.configUtilService=P,this.toastService=E,this.selectConfig=[{field:{name:"importSelect"},visual:{visualDisabled:!0},component:{placeholder:"Currency transfers in 1C format",title:"Type of file to import:",type:a.j.Select},select:{items:[{value:"1",caption:this.translation.translate("Currency transfers in 1C format"),description:void 0,additionalDescription:void 0}]}}],this.form=this.fb.group({importSelect:[]}),this.load=!1,this.destroyed$=new i.x}ngOnInit(){this.form.get("importSelect").patchValue("1"),this.userDataService.dboAccountsBlocked$.pipe((0,d.R)(this.destroyed$)).subscribe(F=>{F&&F.toast&&this.toastService.show(F.toast,"error","",{toastClass:"account-blocked"})})}onFileInput(F){this.alertMsg="";const z=F.target.files;if(!z.length)return;const X=z[0];let p;if(/[.]/.exec(X.name)&&(p=/[.]/.exec(X.name)?/[^.]+$/.exec(X.name):void 0),"txt"!==p[0])return this.alertType="error",this.alertMsg="Unsupported file type!",void(F.target.value="");const P=new FormData;P.append("file",X,X.name),this.load=!0,this.importedMessageList&&this.importedMessageList.items&&(this.importedMessageList.items=void 0),this.userDataService.postImportedData(P).pipe((0,d.R)(this.destroyed$)).subscribe(E=>{E&&E.items&&(E.items=this.configUtilService.getArray(E.items)),this.importedMessageList=E,"0"!==E.countLoaded&&"0"===E.countNotLoaded?this.alertType="success":"0"!==E.countNotLoaded&&"0"===E.countLoaded||"0"===E.countNotLoaded&&"0"===E.countLoaded||!E.countNotLoaded&&!E.countLoaded?this.alertType="error":"0"!==E.countLoaded&&"0"!==E.countNotLoaded&&(this.alertType="warning"),this.alertMsg=E.items.map(R=>R.message).join("\r\n"),this.load=!1})}viewImported(){this.importService.imported$.next(!0)}reset(){this.fileInput.nativeElement.value=""}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(z){return new(z||j)(u.\u0275\u0275directiveInject(h.UntypedFormBuilder),u.\u0275\u0275directiveInject(e.D7),u.\u0275\u0275directiveInject(l.M),u.\u0275\u0275directiveInject(m.a),u.\u0275\u0275directiveInject(x.Pj),u.\u0275\u0275directiveInject(O.j))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:j,selectors:[["app-import-modal"]],viewQuery:function(z,X){if(1&z&&u.\u0275\u0275viewQuery(y,7),2&z){let p;u.\u0275\u0275queryRefresh(p=u.\u0275\u0275loadQuery())&&(X.fileInput=p.first)}},decls:20,vars:19,consts:[[1,"import"],[1,"import__title"],[1,"import__header-value"],[1,"import__select"],[3,"config","formGroup"],["class","import__alert warning",3,"ngClass",4,"ngIf"],[2,"display","flex"],["class","import__button view",4,"ngIf"],[1,"import__button","load"],[1,"import__button-label",3,"click"],["type","file",1,"import__button-label__input",3,"input"],["fileInput",""],[4,"ngIf"],[1,"import__alert","warning",3,"ngClass"],[1,"import__button","view"],[3,"text","click"]],template:function(z,X){1&z&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1),u.\u0275\u0275text(2),u.\u0275\u0275pipe(3,"translate"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"div",2),u.\u0275\u0275text(5),u.\u0275\u0275pipe(6,"translate"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"div",3),u.\u0275\u0275element(8,"app-dynamic-form",4),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(9,$,3,5,"div",5),u.\u0275\u0275elementStart(10,"div",6),u.\u0275\u0275template(11,C,3,4,"div",7),u.\u0275\u0275elementStart(12,"div",8)(13,"label",9),u.\u0275\u0275listener("click",function(){return X.reset()}),u.\u0275\u0275elementStart(14,"span"),u.\u0275\u0275text(15),u.\u0275\u0275pipe(16,"translate"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(17,"input",10,11),u.\u0275\u0275listener("input",function(P){return X.onFileInput(P)}),u.\u0275\u0275elementEnd()()()()(),u.\u0275\u0275template(19,T,1,0,"app-loader",12)),2&z&&(u.\u0275\u0275classProp("load",X.load),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate1(" ",u.\u0275\u0275pipeBind2(3,10,"Import document request",X.lang)," "),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate1(" ",u.\u0275\u0275pipeBind2(6,13,"Select file type and upload file to import documents",X.lang)," "),u.\u0275\u0275advance(3),u.\u0275\u0275property("config",X.selectConfig)("formGroup",X.form),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",X.alertMsg),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf","success"===X.alertType||"warning"===X.alertType),u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind2(16,16,"Load",X.lang)),u.\u0275\u0275advance(4),u.\u0275\u0275property("ngIf",X.load))},dependencies:[h.NgControlStatusGroup,L.R,h.FormGroupDirective,w.mk,w.O5,B.r,_.r,e.X$],styles:['@charset "UTF-8";.import.load[_ngcontent-%COMP%]{opacity:.4}.import__title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;font-weight:700;color:#080708;border-bottom:1px solid #dedede;padding-bottom:35px}.import__header-value[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}.import__alert[_ngcontent-%COMP%]{margin-top:12px;padding:12px;border-radius:4px;color:#fff;white-space:break-spaces;word-break:break-word;max-width:550px}.import__alert.success[_ngcontent-%COMP%]{background-color:#28b26d}.import__alert.warning[_ngcontent-%COMP%]{background-color:#f3ac24}.import__alert.error[_ngcontent-%COMP%]{background-color:#d9291e}.import__button[_ngcontent-%COMP%]{padding-top:20px}.import__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.import__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.import__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.import__button-label__input[_ngcontent-%COMP%]{display:none}.import__button.view[_ngcontent-%COMP%]{margin-right:20px}.import__button.load[_ngcontent-%COMP%]{width:170px}.import__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}(0,n.gn)([(0,e.SQ)()],j.prototype,"lang",void 0)},64426:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>i});var n=t(61135),e=t(94650);let i=(()=>{class d{constructor(){this.imported$=new n.X(!1)}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},99379:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>l});var n=t(97582),e=t(16611),i=t(94650),d=t(36895);function a(m,x){if(1&m&&(i.\u0275\u0275elementStart(0,"div",4),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&m){const O=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,1,O.listTitle,O.lang)," ")}}function u(m,x){if(1&m&&(i.\u0275\u0275elementStart(0,"li",6)(1,"div",7),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",8),i.\u0275\u0275text(5),i.\u0275\u0275pipe(6,"translate"),i.\u0275\u0275elementEnd()()),2&m){const O=i.\u0275\u0275nextContext(),L=O.index,w=O.$implicit,B=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("data-qa","1657801963575"+L),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(3,3,w.capture,B.lang)," "),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(6,6,w.value,B.lang)," ")}}function h(m,x){if(1&m&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,u,7,9,"li",5),i.\u0275\u0275elementContainerEnd()),2&m){const O=x.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",O.value)}}class l{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(O){return new(O||l)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:l,selectors:[["app-info-list"]],inputs:{listTitle:"listTitle",list:"list"},decls:4,vars:2,consts:[["data-qa","1657801862041",1,"info-list"],["class","info_list__title",4,"ngIf"],["data-qa","1657801869704",1,"info-list__list"],[4,"ngFor","ngForOf"],[1,"info_list__title"],["class","info-list__item",4,"ngIf"],[1,"info-list__item"],[1,"info-list__capture"],[1,"info-list__value"]],template:function(O,L){1&O&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,a,3,4,"div",1),i.\u0275\u0275elementStart(2,"ul",2),i.\u0275\u0275template(3,h,2,1,"ng-container",3),i.\u0275\u0275elementEnd()()),2&O&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",L.listTitle),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",L.list))},dependencies:[d.sg,d.O5,e.X$],styles:['@charset "UTF-8";.info_list__title[_ngcontent-%COMP%]{color:#444;font-size:22px;font-weight:600;margin-bottom:13px}.info-list__item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:18px;border-bottom:1px solid #dedede;padding:24px 0 23px}.info-list__item[_ngcontent-%COMP%]:last-child{border-bottom:none}.info-list__capture[_ngcontent-%COMP%]{color:#88909b}.info-list__value[_ngcontent-%COMP%]{max-width:500px;word-break:break-word;color:#444}']})}(0,n.gn)([(0,e.SQ)()],l.prototype,"lang",void 0)},67469:(Ee,Q,t)=>{"use strict";t.d(Q,{s:()=>E});var n=t(97582),e=t(94650),i=t(24006),d=t(16611),a=t(13120),u=t(40929),h=t(67666),l=t(9149),m=t(4610),x=t(37601),O=t(76751),L=t(95661),w=t(36895),B=t(97392),_=t(93412);function y(R,ne){if(1&R&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&R){const G=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",G.templateBaseClass+"__mime-types-label"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(G.mimeTypesLabel)}}function $(R,ne){1&R&&(e.\u0275\u0275elementStart(0,"mat-icon",27),e.\u0275\u0275text(1,"insert_drive_file"),e.\u0275\u0275elementEnd())}const C=function(R){return{"error-icon":R}};function T(R,ne){if(1&R&&e.\u0275\u0275element(0,"div",28),2&R){const G=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(1,C,G.widthBar>=100))}}function j(R,ne){if(1&R&&(e.\u0275\u0275elementStart(0,"span",29),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"formatFileSize"),e.\u0275\u0275elementEnd()),2&R){const G=e.\u0275\u0275nextContext().$implicit,ce=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,G.size,ce.lang))}}const I=function(R){return{"error-name":R}};function F(R,ne){if(1&R){const G=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",18)(1,"div",19),e.\u0275\u0275template(2,$,2,0,"mat-icon",20),e.\u0275\u0275template(3,T,1,3,"div",21),e.\u0275\u0275elementStart(4,"div",22),e.\u0275\u0275listener("click",function(){const we=e.\u0275\u0275restoreView(G).$implicit,Ge=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Ge.previewFile(we))}),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"maxStringLength"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",23),e.\u0275\u0275listener("click",function(){const we=e.\u0275\u0275restoreView(G).$implicit,Ge=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Ge.previewFile(we))}),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"maxStringLength"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",24),e.\u0275\u0275template(11,j,3,4,"span",25),e.\u0275\u0275elementStart(12,"div",26),e.\u0275\u0275listener("click",function(){const we=e.\u0275\u0275restoreView(G).index,Ge=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Ge.removeFile(we))}),e.\u0275\u0275elementEnd()()()}if(2&R){const G=ne.$implicit,ce=ne.index,xe=e.\u0275\u0275nextContext(3);e.\u0275\u0275attribute("data-qa","1657964668475"+ce),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!xe.mailDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",xe.mailDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(15,I,xe.widthBar>=100)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,9,xe.returnNameOrFormat(G.name,0),100)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(17,I,xe.widthBar>=100)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" .",e.\u0275\u0275pipeBind2(9,12,xe.returnNameOrFormat(G.name,1),100)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",xe.mailDesign),e.\u0275\u0275advance(1),e.\u0275\u0275attribute("data-qa","1663066778682"+ce)}}function z(R,ne){if(1&R&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275template(1,F,13,19,"div",17),e.\u0275\u0275elementEnd()),2&R){const G=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",G.files)}}function X(R,ne){if(1&R&&(e.\u0275\u0275elementStart(0,"div",30),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&R){const G=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(G.mimeTypesLabel)}}const p=function(R,ne){return{currentSize:R,maxSize:ne}};function P(R,ne){if(1&R){const G=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1)(1,"div",2),e.\u0275\u0275listener("filesIsDropped",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(we.onFilesDropped(xe))}),e.\u0275\u0275elementStart(2,"div",1)(3,"label",3)(4,"div",4)(5,"mat-icon",5),e.\u0275\u0275text(6,"attach_file"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"input",6,7),e.\u0275\u0275listener("input",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(we.onInputFiles(xe))})("change",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(we.onChangeInput(xe))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(12,y,2,2,"div",8),e.\u0275\u0275template(13,z,2,1,"div",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",10),e.\u0275\u0275template(15,X,2,1,"div",11),e.\u0275\u0275elementStart(16,"div",12),e.\u0275\u0275element(17,"div",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",14)(19,"div",15),e.\u0275\u0275text(20),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275pipe(22,"formatFileSize"),e.\u0275\u0275pipe(23,"formatFileSize"),e.\u0275\u0275elementEnd()()()()}if(2&R){const G=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("mail",G.mailDesign),e.\u0275\u0275property("ngClass",G.templateBaseClass),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",G.templateBaseClass+"__drop-box"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",G.templateBaseClass+(G.isErrorRequired?"___error_required":"___border-box")),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,14,"Attach files or drag with the mouse",G.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",G.disabledInput)("accept",G.acceptAttr)("multiple",G.multiple),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",G.mimeTypesLabel&&G.isVerticalAlign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==G.files?null:G.files.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",G.mimeTypesLabel&&!G.isVerticalAlign),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngStyle",G.sizeBarStyle),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind3(21,17,"Uploaded files size info",G.lang,e.\u0275\u0275pureFunction2(27,p,e.\u0275\u0275pipeBind2(22,21,G.amountOfFileSize,G.lang),e.\u0275\u0275pipeBind2(23,24,G.maxAmountFilesSizeByte,G.lang)))," ")}}class E{constructor(ne,G,ce,xe,we){this.toast=ne,this.translation=G,this.formatFileSizePipe=ce,this.userDataService=xe,this.mailService=we,this.lang="ru",this.files=[],this.totalFilesSize=0,this.mimeTypesLabel="",this.maxAmountFilesSizeByte=31457280,this.multiple=!0,this.orientation="vertical",this.disabledInput=!1,this.isErrorRequired=!1,this.isHide=!1,this.mailDesign=!1,this.additionalFilesSize=0,this.filesIsLargerThenMaximum=new e.EventEmitter,this.fileSizeIsOk=new e.EventEmitter,this.filesIsNotValidMimeType=new e.EventEmitter,this.removeAttachment=new e.EventEmitter,this._mimeTypes=a.mZ,this.widthBar=0,this._fileFormats=[],this.registerOnTouched=Ge=>this.onTouch=Ge,this.registerOnChange=Ge=>this.onChange=Ge,this.onTouch=()=>{},this.onChange=Ge=>{}}set mimeTypes(ne){this.deleteFilesByNewMimeTypes(ne),this._mimeTypes=ne}set fileFormats(ne){this._fileFormats=ne.map(G=>"."+G),ne.length&&this.checkFormats(ne)}get amountOfFileSize(){let ne=0;return this.files?.length&&this.files.forEach(G=>ne+=G.size),this.totalFilesSize!==ne&&this.fileSizeIsOk.emit(ne),this.totalFilesSize=ne+this.additionalFilesSize,this.totalFilesSize}get sizeBarStyle(){const ne=Math.floor(this.amountOfFileSize/this.maxAmountFilesSizeByte*100);return this.widthBar=this.amountOfFileSize<=this.maxAmountFilesSizeByte?ne:100,{width:this.widthBar+"%",background:this.widthBar>=100?"#E23428":"#2F54EB"}}get acceptAttr(){return this._mimeTypes.length?this._mimeTypes:this._fileFormats.length?this._fileFormats:""}get templateBaseClass(){return"input-files-"+this.orientation[0]}get isVerticalAlign(){return"vertical"===this.orientation}onChangeInput(ne){ne.target.value=""}writeValue(ne){this.files=ne,this.onChange(ne),this.onTouch()}onInputFiles(ne){const ce=Array.from(ne.target.files);ce.length&&this.setValidFiles(ce)}onFilesDropped(ne){const G=Array.from(ne);G.length&&this.setValidFiles(G)}previewFile(ne){ne instanceof File?u.Z.downloadBlob(ne,ne.name):ne instanceof Blob?u.Z.downloadBlob(ne,""):ne.id&&this.docId&&this.mailService.getAttachment(this.docId,ne.id).subscribe(G=>{this.mailService.extractAttachment(G,ne.fileName||ne.name)})}onFilesSizeIsLargerThanMax(ne){ne.forEach(G=>{this.toast.show(`${this.translation.translate(`\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 -${G}`)} ${this.formatFileSizePipe.transform(this.maxFileSizeByte,this.lang)}`,"error")})}onFilesTypesIsNotValid(ne){this.toast.errorHandle(ne.map(G=>this.translation.translate("\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0444\u0430\u0439\u043b\u0430 - ")+G))}checkFormats(ne){for(let G=this.files.length-1;G>=0;G--){const ce=this.files[G].name.split(".").pop()||"";ne.includes(ce)||this.removeFile(G)}}removeFile(ne){const G=this.files[ne];G instanceof h.h&&this.removeAttachment.emit(G.id),this.files.splice(ne,1),this.writeValue(this.files)}deleteFilesByNewMimeTypes(ne){const G=[];this.files.forEach(ce=>{ne.includes(ce.type)?G.push(ce):ce instanceof h.h&&this.removeAttachment.emit(ce.id)}),this.writeValue(G)}setValidFiles(ne){const G=[],ce=[],xe=this.files;ne.forEach(we=>{const Ge=!this.maxFileSizeByte||we.size<=this.maxFileSizeByte;let ct=!0;this._mimeTypes.length?ct=this._mimeTypes.includes(we.type):this._fileFormats.length&&(ct=this._fileFormats.includes(we.name.slice(we.name.lastIndexOf(".")))),Ge?ct?xe.push(we):ce.push(we):G.push(we)}),ce.length&&(this.filesIsNotValidMimeType.emit(ce.map(we=>we.name)),this.onFilesTypesIsNotValid(ce.map(we=>we.name))),G.length&&(this.filesIsLargerThenMaximum.emit(G.map(we=>we.name)),this.onFilesSizeIsLargerThanMax(G.map(we=>we.name))),this.writeValue(xe)}returnNameOrFormat(ne,G){return ne.split(".")[G]}static#e=this.\u0275fac=function(G){return new(G||E)(e.\u0275\u0275directiveInject(l.j),e.\u0275\u0275directiveInject(d.D7),e.\u0275\u0275directiveInject(m.x),e.\u0275\u0275directiveInject(x.M),e.\u0275\u0275directiveInject(O.Y))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:E,selectors:[["app-input-files"]],inputs:{mimeTypesLabel:"mimeTypesLabel",maxFileSizeByte:"maxFileSizeByte",maxAmountFilesSizeByte:"maxAmountFilesSizeByte",docId:"docId",multiple:"multiple",orientation:"orientation",disabledInput:"disabledInput",isErrorRequired:"isErrorRequired",isHide:"isHide",mailDesign:"mailDesign",additionalFilesSize:"additionalFilesSize",mimeTypes:"mimeTypes",fileFormats:"fileFormats"},outputs:{filesIsLargerThenMaximum:"filesIsLargerThenMaximum",fileSizeIsOk:"fileSizeIsOk",filesIsNotValidMimeType:"filesIsNotValidMimeType",removeAttachment:"removeAttachment"},features:[e.\u0275\u0275ProvidersFeature([{provide:i.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>E),multi:!0}])],decls:1,vars:1,consts:[[3,"ngClass","mail",4,"ngIf"],[3,"ngClass"],["appDropFiles","",3,"ngClass","filesIsDropped"],["data-qa","1657964644595",1,"input-files-label"],[1,"flex"],[1,"input-files-icon"],["data-qa","1657964649463","type","file",1,"input-files-label__input",3,"disabled","accept","multiple","input","change"],["fileInput",""],[3,"ngClass",4,"ngIf"],["class","file-list","data-qa","1657964658322",4,"ngIf"],[1,"input-files-h__right-column"],["class","input-files-h__mime-types-label",4,"ngIf"],[1,"size-bar__bar"],[1,"size-bar__bar__filler",3,"ngStyle"],["data-qa","1666339435",1,"size-bar"],["data-qa","1666339446",1,"size-bar__status"],["data-qa","1657964658322",1,"file-list"],["class","file-list__item",4,"ngFor","ngForOf"],[1,"file-list__item"],[1,"file-list__left","flex"],["class","file-list-file-icon",4,"ngIf"],["class","file-list__item_icon",3,"ngClass",4,"ngIf"],[1,"file-list__item-name",3,"ngClass","click"],[1,"file-list__item-format",3,"ngClass","click"],[1,"file-list__item-cross"],["class","file-list__item-size",4,"ngIf"],[1,"cross","small",3,"click"],[1,"file-list-file-icon"],[1,"file-list__item_icon",3,"ngClass"],[1,"file-list__item-size"],[1,"input-files-h__mime-types-label"]],template:function(G,ce){1&G&&e.\u0275\u0275template(0,P,24,30,"div",0),2&G&&e.\u0275\u0275property("ngIf",!ce.isHide)},dependencies:[L.F,w.mk,w.sg,w.O5,w.PC,B.Hw,d.X$,_.R,m.x],styles:['@charset "UTF-8";.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.metib-full-width[_ngcontent-%COMP%]{width:100%;margin-right:0}.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:5px;width:10px;fill:#88909b;cursor:pointer}.mdc-dialog[_ngcontent-%COMP%]   .mdc-dialog__surface[_ngcontent-%COMP%]{overflow:visible}.mat-dialog-container.cdk-dialog-container[_ngcontent-%COMP%]{background:#fff;padding:0}.cdk-overlay-container[_ngcontent-%COMP%]{z-index:1101}pre.info[_ngcontent-%COMP%]{background-color:#fafad2;color:#444;width:500px;font-size:12px;z-index:99999}html[_ngcontent-%COMP%]{box-sizing:border-box;overflow-y:scroll}*[_ngcontent-%COMP%]{box-sizing:inherit}body[_ngcontent-%COMP%]{background-color:#f1f2f2}body.freeze[_ngcontent-%COMP%]{overflow:hidden}ul[_ngcontent-%COMP%], li[_ngcontent-%COMP%]{margin:0;padding:0;display:block}.new-mail__message_text[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .new-mail__message_text[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding-inline-start:40px}.new-mail__message_text[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:1em;padding:0;display:list-item}a[_ngcontent-%COMP%]{word-wrap:break-word;word-break:break-all}app-svg-icon[_ngcontent-%COMP%]{font-size:0;display:block}svg[_ngcontent-%COMP%], svg[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:hover, svg[_ngcontent-%COMP%]:active{outline:none;border:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#iqchannels-widget-container[_ngcontent-%COMP%]{z-index:9999!important}#iqchannels-widget-icon[_ngcontent-%COMP%]{z-index:9998!important;width:45px!important;height:45px!important;box-shadow:0 0 10px #4446!important;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%)}#iqchannels-widget-icon[_ngcontent-%COMP%]:hover{width:45px!important;height:45px!important;margin-right:2px!important;margin-bottom:2px!important}#iqchannels-widget-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#fff!important;padding:0!important;margin:11px;width:24px!important;height:24px!important}#iqchannels-widget-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]:hover{width:24px!important;height:24px!important;padding:0!important}@media (max-width: 768px){#iqchannels-widget[_ngcontent-%COMP%]{width:280px!important}#iqchannels-widget-container[_ngcontent-%COMP%]{width:280px!important;height:100%!important}}@media (max-width: 640px){#iqchannels-widget-icon[_ngcontent-%COMP%]{opacity:.5!important}}@media (max-width: 360px){#iqchannels-widget[_ngcontent-%COMP%]{width:100%!important}#iqchannels-widget-container[_ngcontent-%COMP%]{width:100%!important;height:100%!important}}.container[_ngcontent-%COMP%]{margin-top:25px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 30px 20px;position:relative;min-height:400px}.container.inline[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]{height:100px;width:100%;border-bottom:1px solid #dedede;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;color:#080708;padding-top:40px;padding-bottom:20px;font-weight:700}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .item.clickable[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;text-decoration:underline}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:first-child{margin-right:20px}@media (min-width: 1280px){.container[_ngcontent-%COMP%]{max-width:1200px}}.arrow-icon[_ngcontent-%COMP%]{width:11px;height:7px;fill:#2f54eb;cursor:pointer}.rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-button-focus-overlay[_ngcontent-%COMP%], mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-button-ripple-round[_ngcontent-%COMP%], mat-datepicker-toggle[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:none}mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-mdc-button-persistent-ripple[_ngcontent-%COMP%]{display:none}.mat-form-field-suffix[_ngcontent-%COMP%]{top:6px}.my-period-dates-calendar[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-wrapper[_ngcontent-%COMP%]{padding:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{padding:0;border:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-underline[_ngcontent-%COMP%]{height:0;bottom:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-input-element[_ngcontent-%COMP%]{color:#7180b9;text-decoration:underline;cursor:pointer;font-weight:700;font-size:24px;font-family:Open Sans,Source Sans Pro,sans-serif}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-input-element.disabled[_ngcontent-%COMP%]{opacity:1;text-decoration:unset;color:#080708}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{width:132px;font-size:24px}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-suffix[_ngcontent-%COMP%], .my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-suffix[_ngcontent-%COMP%]   .mat-datepicker-toggle[_ngcontent-%COMP%]{position:absolute;inset:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-suffix[_ngcontent-%COMP%]   .mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;inset:0;opacity:0}.my-period-dates[_ngcontent-%COMP%]{line-height:33px;display:flex;margin-top:2px}.my-period-dates[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.my-period-dates.static[_ngcontent-%COMP%]{pointer-events:none}.my-period-dates.static[_ngcontent-%COMP%]     .mat-form-field-infix input{text-decoration:none}.mat-form-field-underline[_ngcontent-%COMP%]{height:0!important}.mat-datepicker-popup[_ngcontent-%COMP%] > .mat-datepicker-content[_ngcontent-%COMP%]{border-radius:8px}.mat-calendar-body-selected[_ngcontent-%COMP%]{background-color:#2f54eb}.my-payment-menu-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:40px;height:40px;padding:0;border:none;background:none;outline:none;transition:opacity .2s ease;opacity:.6;cursor:pointer}.my-payment-menu-btn[_ngcontent-%COMP%]:hover{opacity:1}.my-payment-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .my-payment-menu-btn[_ngcontent-%COMP%]:before, .my-payment-menu-btn[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:5px;height:5px;border-radius:50%;background-color:#88909b;left:calc(50% - 3px)}.my-payment-menu-btn[_ngcontent-%COMP%]:before{top:10px}.my-payment-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{top:20px}.my-payment-menu-btn[_ngcontent-%COMP%]:after{top:30px}.my-reference-menu-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:40px;height:40px;padding:0;border:none;background:none;outline:none;transition:opacity .2s ease;opacity:.6;cursor:pointer}.my-reference-menu-btn[_ngcontent-%COMP%]:hover{opacity:1}.my-reference-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .my-reference-menu-btn[_ngcontent-%COMP%]:before, .my-reference-menu-btn[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:3px;height:3px;border-radius:50%;background-color:#88909b;left:calc(50% - 3px)}.my-reference-menu-btn[_ngcontent-%COMP%]:before{top:10px}.my-reference-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{top:16px}.my-reference-menu-btn[_ngcontent-%COMP%]:after{top:22px}@media (max-width: 768px){.my-reference-menu-btn[_ngcontent-%COMP%]{width:24px;height:24px}}.highlighted[_ngcontent-%COMP%]{color:#2f54eb}.section-shadow[_ngcontent-%COMP%], .card[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px}.card[_ngcontent-%COMP%]{position:relative;background-color:#fff;padding:35px 30px 40px}.section-title[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;color:#080708;font-weight:700}@media only screen and (min-width: 1500px){.section-title[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%]{font-size:24px}}.section-title_with-padding[_ngcontent-%COMP%]{padding:0 16px}@media only screen and (min-width: 1500px){.section-title_with-padding[_ngcontent-%COMP%]{padding:0}}.section-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#2f54eb;text-decoration:underline;cursor:pointer;-webkit-user-select:none;user-select:none}.block-title[_ngcontent-%COMP%]{font-size:22px;color:#284681;font-weight:600}.card-title[_ngcontent-%COMP%]{padding-bottom:34px;border-bottom:1px solid #dedede}.w100[_ngcontent-%COMP%]{width:100%}.cross-wrap[_ngcontent-%COMP%]{position:absolute;right:30px;top:35px}.cross[_ngcontent-%COMP%]{width:18px;height:18px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.cross[_ngcontent-%COMP%]:before, .cross[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.cross[_ngcontent-%COMP%]:before{height:2px;width:100%}.cross[_ngcontent-%COMP%]:after{width:2px;height:100%}.cross.small[_ngcontent-%COMP%]{width:15px;height:15px}.cross-close.mat-icon[_ngcontent-%COMP%]{font-size:20px;width:18px}.cross-close-sign[_ngcontent-%COMP%]{width:18px;height:18px}.document-icon[_ngcontent-%COMP%]{height:24px;width:24px}.cross-close[_ngcontent-%COMP%]{height:22px;width:22px}.small-cross[_ngcontent-%COMP%]{width:16px;height:16px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.small-cross[_ngcontent-%COMP%]:before, .small-cross[_ngcontent-%COMP%]:after{content:"";position:absolute;background-color:#88909b}.small-cross[_ngcontent-%COMP%]:before{height:2px;width:100%}.small-cross[_ngcontent-%COMP%]:after{width:2px;height:100%}.small-cross.small[_ngcontent-%COMP%]{width:15px;height:15px}.small-cross.orange[_ngcontent-%COMP%]:before, .small-cross.orange[_ngcontent-%COMP%]:after{background:linear-gradient(90deg,#f39034 0%,#ff2727 100%)}.tab-number[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#2f54eb;border-radius:100px;display:flex;justify-content:center;color:#fff;align-items:center;transform:translateY(-17px);font-size:.8em;padding:10px}.tab-number.top-right-position[_ngcontent-%COMP%]{position:absolute;top:50%;right:-17px}.no-operations[_ngcontent-%COMP%]{margin:35px 0;text-align:center;font-size:22px}.shield-icon[_ngcontent-%COMP%]{width:27px;height:27px}.shield-icon.icon-green[_ngcontent-%COMP%]{fill:#28b26d}.shield-icon.icon-grey[_ngcontent-%COMP%]{fill:#88909b}.shield-icon.icon-red[_ngcontent-%COMP%]{fill:#d9291e}.shield-icon.icon-yellow[_ngcontent-%COMP%]{fill:#ffe142}.type-icon.favorite[_ngcontent-%COMP%]{width:32px;height:32px}.type-icon.corr[_ngcontent-%COMP%]{width:50px;height:50px}.type-icon.self[_ngcontent-%COMP%]{fill:#2f54eb}.type-icon.ul[_ngcontent-%COMP%]{fill:#53b8d8}.type-icon.fl[_ngcontent-%COMP%]{fill:#53d880}.type-icon.ip[_ngcontent-%COMP%]{fill:#4080a4}.type-icon.bf[_ngcontent-%COMP%]{fill:#53b8d8}.type-icon.nalog[_ngcontent-%COMP%]{fill:#d85353}.type-icon.tamozh[_ngcontent-%COMP%]{fill:#d89353}.rotate-icon[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_rotating360 3s linear infinite normal}@keyframes _ngcontent-%COMP%_rotating360{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tab-number[_ngcontent-%COMP%]{background-color:#d64040}.import-modal[_ngcontent-%COMP%]   mat-dialog-container[_ngcontent-%COMP%]{overflow:visible}.link_underline[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;text-decoration:underline}.flex[_ngcontent-%COMP%]{display:flex}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(8,7,8,.6)}mat-paginator[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{background:none}.bottom-panel[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";width:20px;height:20px;background-color:#1a2a40;top:-6px;left:50%;transform:rotate(45deg)}.top-panel[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";width:20px;height:20px;background-color:#1a2a40;bottom:-6px;left:50%;transform:rotate(45deg)}app-datepicker.disabled[_ngcontent-%COMP%]   mat-datepicker-toggle[_ngcontent-%COMP%]{pointer-events:none}.input-files-icon[_ngcontent-%COMP%]{margin-right:4px;margin-left:-5px;line-height:22px;color:#88909b;height:20px;width:20px;font-size:20px}.file-list-file-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:3px;color:#88909b;flex-shrink:0}.input-files-v[_ngcontent-%COMP%]{min-width:300px;font-size:16px}.input-files-v__drop-box[_ngcontent-%COMP%]{min-height:168px;padding:5px;border-radius:12px;background-color:#f1f2f2}.input-files-v___border-box[_ngcontent-%COMP%]{padding:21px 17px;border:1px dashed #88909b;border-radius:7px}.input-files-v___error_required[_ngcontent-%COMP%]{border-radius:12px;padding:12px 18px;border:1px dashed #e23428}.input-files-v__mime-types-label[_ngcontent-%COMP%]{color:#88909b;font-size:16px;margin-top:13px;width:80%}.input-files-v[_ngcontent-%COMP%]   .size-bar[_ngcontent-%COMP%]{display:inline-block;margin:13px 0;width:230px}.input-files-v[_ngcontent-%COMP%]   .size-bar__status[_ngcontent-%COMP%]{color:#88909b;margin-bottom:4px}.input-files-v[_ngcontent-%COMP%]   .size-bar__bar[_ngcontent-%COMP%]{max-width:100%;height:6px;border-radius:4px;background-color:#c4c4c4;overflow-x:hidden}.input-files-v[_ngcontent-%COMP%]   .size-bar__bar__filler[_ngcontent-%COMP%]{height:6px;border-radius:4px}.input-files-v[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]{margin:21px 0;min-height:100px;overflow:hidden}.input-files-v[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.input-files-v[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]{display:flex;margin-bottom:12px;width:100%;justify-content:space-between}.input-files-v[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.input-files-v[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:12px}.input-files-v[_ngcontent-%COMP%]   .file-list__item-name[_ngcontent-%COMP%]{color:#444;cursor:pointer;overflow-wrap:anywhere}.input-files-v[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   .error-name[_ngcontent-%COMP%]{color:#e23428}.input-files-v[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{background-color:#e23428}.input-files-v[_ngcontent-%COMP%]   .file-list__item-cross[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:15px}.input-files-h[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.input-files-h__drop-box[_ngcontent-%COMP%]{width:50%;min-height:168px;padding:5px;border-radius:12px;background-color:#f1f2f2}.input-files-h___border-box[_ngcontent-%COMP%]{padding:21px 17px;border:1px dashed #88909b;border-radius:7px;height:100%}.input-files-h__right-column[_ngcontent-%COMP%]{width:50%;display:flex;flex-flow:column;justify-content:space-between;padding-left:14px}.input-files-h__mime-types-label[_ngcontent-%COMP%]{color:#88909b;font-size:14px}.input-files-h[_ngcontent-%COMP%]   .size-bar[_ngcontent-%COMP%]{display:inline-block;margin:13px 0;width:230px}.input-files-h[_ngcontent-%COMP%]   .size-bar__status[_ngcontent-%COMP%]{color:#88909b;margin-bottom:4px}.input-files-h[_ngcontent-%COMP%]   .size-bar__bar[_ngcontent-%COMP%]{max-width:100%;height:6px;border-radius:4px;background-color:#c4c4c4;overflow-x:hidden}.input-files-h[_ngcontent-%COMP%]   .size-bar__bar__filler[_ngcontent-%COMP%]{height:6px;border-radius:4px}.input-files-h[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]{margin:21px 0;min-height:60px;overflow:hidden}.input-files-h[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.input-files-h[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]{display:flex;margin-bottom:20px;width:100%;justify-content:space-between}.input-files-h[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.input-files-h[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:12px}.input-files-h[_ngcontent-%COMP%]   .file-list__item-name[_ngcontent-%COMP%]{color:#444;overflow-wrap:anywhere}.input-files-h[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   .error-name[_ngcontent-%COMP%]{color:#e23428}.input-files-h[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{background-color:#e23428}.input-files-h[_ngcontent-%COMP%]   .file-list__item-cross[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:15px}.input-files-label[_ngcontent-%COMP%]{display:flex;color:#88909b;cursor:pointer;line-height:22px;font-family:Open Sans,Source Sans Pro,sans-serif}.input-files-label__input[_ngcontent-%COMP%]{display:none}.mail[_ngcontent-%COMP%]   .size-bar[_ngcontent-%COMP%]{margin:4px 0}.mail[_ngcontent-%COMP%]   .size-bar__bar[_ngcontent-%COMP%]{max-width:177px;background-color:#f1f2f2}@media screen and (min-width: 375px) and (max-width: 768px){.mail[_ngcontent-%COMP%]   .size-bar__bar[_ngcontent-%COMP%]{max-width:unset;width:220px}}.mail[_ngcontent-%COMP%]   .size-bar__status[_ngcontent-%COMP%]{font-size:14px}.mail[_ngcontent-%COMP%]   .input-files-h__right-column[_ngcontent-%COMP%]{padding-left:0;margin-top:8px}.mail[_ngcontent-%COMP%]   .input-files-v__drop-box[_ngcontent-%COMP%]{padding:0;background-color:#fff;min-height:48px}.mail[_ngcontent-%COMP%]   .input-files-v___border-box[_ngcontent-%COMP%]{border-radius:12px;padding:12px 18px}.mail[_ngcontent-%COMP%]   .file-list[_ngcontent-%COMP%]{min-height:24px}.mail[_ngcontent-%COMP%]   .file-list__left[_ngcontent-%COMP%]{max-width:70%}.mail[_ngcontent-%COMP%]   .file-list__item-cross[_ngcontent-%COMP%]{margin-left:6px;margin-bottom:3px}.mail[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.mail[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   .error-name[_ngcontent-%COMP%]{color:#e23428}.mail[_ngcontent-%COMP%]   .file-list__item[_ngcontent-%COMP%]   .error-icon[_ngcontent-%COMP%]{background-color:#e23428}.mail[_ngcontent-%COMP%]   .file-list__item-name[_ngcontent-%COMP%]{padding-left:4px;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail[_ngcontent-%COMP%]   .file-list__item-format[_ngcontent-%COMP%]{font-size:14px}.mail[_ngcontent-%COMP%]   .file-list__item_icon[_ngcontent-%COMP%]{mask:url(file-attach.471326d8a8ac2508.svg);background-color:#444;width:20px;height:20px;min-width:20px}.mail[_ngcontent-%COMP%]   .file-list__item-size[_ngcontent-%COMP%]{color:#88909b;padding:0 8px;font-size:12px}']})}(0,n.gn)([(0,d.SQ)()],E.prototype,"lang",void 0)},67666:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>e,s:()=>n});class n{constructor(d){this.id=d.id,this.type=d.type,this.fileName=d.name,this.fileSize=d.size+"",this.fileHash=d.hash}}class e{constructor(d){this.id=d.id,this.hash=d.fileHash,this.name=d.fileName,this.size=+d.fileSize,this.type=d.type}}},73040:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>X});var n=t(97582),e=t(94650),i=t(24006),d=t(16611),a=t(11260),u=t(97392),h=t(36895);let l=(()=>{class p{constructor(E){this.element=E.nativeElement}ngAfterContentChecked(){this.giveFocus()}giveFocus(){this.appFocus&&this.element.focus()}static#e=this.\u0275fac=function(R){return new(R||p)(e.\u0275\u0275directiveInject(e.ElementRef))};static#t=this.\u0275dir=e.\u0275\u0275defineDirective({type:p,selectors:[["","appFocus",""]],inputs:{appFocus:"appFocus"}})}return p})();var m=t(39349);const x=["input"],O=["tooltip"],L=["svg"];function w(p,P){1&p&&e.\u0275\u0275element(0,"app-svg-icon",14)}function B(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E),e.\u0275\u0275nextContext();const ne=e.\u0275\u0275reference(6);return e.\u0275\u0275resetView(ne.focus())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",E.placeholderClass),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,2,E.customTitle,E.lang)," ")}}function _(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,E.customTitle,E.lang)," ")}}function y(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E),e.\u0275\u0275nextContext();const ne=e.\u0275\u0275reference(6);return e.\u0275\u0275resetView(ne.focus())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,E.customTitle,E.lang)," ")}}function $(p,P){1&p&&e.\u0275\u0275element(0,"app-svg-icon",18)}function C(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-svg-icon",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.iconClick(ne.type,ne.rightIcon))}),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275property("icon",E.rightIcon)("fill",E.svgColor)}}function T(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-icon",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.iconClick(ne.type,ne.matIcon))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(E.matIcon)}}function j(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",21,22),e.\u0275\u0275element(2,"div",23),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,1,E.tooltipText,E.lang)," ")}}function I(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",E.value?E.value.length:"0","/",E.maxlength," ")}}const F={provide:i.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>X),multi:!0},z=()=>{};class X{constructor(){this.type="text",this.tabIndex="0",this.valueChange=new e.EventEmitter,this.focusChange=new e.EventEmitter,this.speckeyPress=new e.EventEmitter,this.searchInit=new e.EventEmitter,this.focus=!1,this.isShowTooltip=!1,this.svgColor="",this.isAutofilled=!1,this._onTouchedCallback=z,this._disabled=!1,this.onChange=P=>{}}set disabled(P){this._disabled=P}set title(P){this.customTitle=P}validateAmount(P){return!(!P.ctrlKey&&!P.altKey&&("."===P.key&&(P.target.value.indexOf(".")>-1||""===P.target.value||P.target.value.length-P.target.selectionStart>2)||(P.code&&"comma"===P.code.toLowerCase()||188===P.keyCode||","===P.key||227===P.which?(P.target.value&&-1===P.target.value.indexOf(".")&&(P.target.value=P.target.value.slice(0,P.target.selectionStart)+"."+P.target.value.slice(P.target.selectionEnd,P.target.selectionEnd+2)),1):1===P.key.length&&!/[0-9\.]/.test(P.key)||1===P.key.length&&/^[0-9]*\.[0-9]{3,3}$/.test(P.target.value+P.key)&&P.target.selectionStart>P.target.value.indexOf(".")||/^[0-9]+$/.test(P.key)&&P.target.value.length>15)))}clickout(P){this.isShowTooltip&&!this.tooltip.nativeElement.contains(P.target)&&!this.svg.nativeElement.contains(P.target)&&(this.isShowTooltip=!1,this.svgColor="")}onBlur(){this.onTouched()}onCdkAutofill(P){this.isAutofilled=P.isAutofilled}updateChanges(P){this.value=P,this.onChange(this.value),this.valueChange.emit(this.value)}writeValue(P){this.value=P,this.updateChanges(P)}registerOnChange(P){this.onChange=P}registerOnTouched(P){this.onTouched=P}setDisabledState(P){this._disabled=P}onTouched(){this._onTouchedCallback(null)}onFocus(){this.focusChange.emit(!0)}tooltipAction(){this.isShowTooltip=!this.isShowTooltip,this.svgColor=this.isShowTooltip?"#2f54EB":""}iconClick(P,E){switch(E){case"eyeoff":this.type="text",this.rightIcon="eyeon";break;case"eyeon":this.type="password",this.rightIcon="eyeoff";break;case"close":case"cross":this.value="",this.valueChange.emit(this.value);break;case"question":this.tooltipAction();break;case"search":this.valueChange.emit(this.value)}}handlePasteEvent(P){const E=(P.clipboardData||P.originalEvent.clipboardData).getData("text");if("string"==typeof E){P.preventDefault();let R=E.trim();const ne=this.input.nativeElement,G=ne.selectionStart,ce=ne.selectionEnd,xe=ne.value,we=G+E.length;if(R=xe.substring(0,G)+R+xe.substring(ce,xe.length),"amount"===this.typeMask){if(null===R.replace(/,/g,".").match(/^[0-9]+\.?[0-9]*$/g))return;R=parseFloat(R.replace(/,/g,".")).toFixed(2)}ne.value=R,ne.setSelectionRange(we,we),this.input.nativeElement.value=R,this.updateChanges(R)}}processKeydown(P){if("amount"===this.typeMask)return this.validateAmount(P);switch("phone"===this.typeMask&&"+7"!==P.target.value.substr(0,2)&&(P.target.value="+7"+P.target.value.substr(0,P.target.value.length)),P.key){case"ArrowUp":case"Up":this.emitSpecKeyPress(P,{type:"speckey",value:"up"});break;case"ArrowDown":case"Down":this.emitSpecKeyPress(P,{type:"speckey",value:"down"});break;case"Escape":case"Esc":this.emitSpecKeyPress(P,{type:"speckey",value:"esc"});break;case"Enter":this.emitSpecKeyPress(P,{type:"speckey",value:"enter"})}return!0}emitSpecKeyPress(P,E){P.preventDefault(),this.speckeyPress.emit(E)}static#e=this.\u0275fac=function(E){return new(E||X)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:X,selectors:[["app-input"]],viewQuery:function(E,R){if(1&E&&(e.\u0275\u0275viewQuery(x,7),e.\u0275\u0275viewQuery(O,5),e.\u0275\u0275viewQuery(L,5)),2&E){let ne;e.\u0275\u0275queryRefresh(ne=e.\u0275\u0275loadQuery())&&(R.input=ne.first),e.\u0275\u0275queryRefresh(ne=e.\u0275\u0275loadQuery())&&(R.tooltip=ne.first),e.\u0275\u0275queryRefresh(ne=e.\u0275\u0275loadQuery())&&(R.svg=ne.first)}},hostBindings:function(E,R){1&E&&e.\u0275\u0275listener("click",function(G){return R.clickout(G)},!1,e.\u0275\u0275resolveDocument)("blur",function(){return R.onBlur()})},inputs:{placeholder:"placeholder",customTitle:"customTitle",type:"type",typeClass:"typeClass",value:"value",maxlength:"maxlength",inputClass:"inputClass",placeholderClass:"placeholderClass",searchIcon:"searchIcon",error:"error",rightIcon:"rightIcon",matIcon:"matIcon",isFocus:"isFocus",tabIndex:"tabIndex",textMask:"textMask",tooltipText:"tooltipText",typeMask:"typeMask",disabled:"disabled",title:"title"},outputs:{valueChange:"valueChange",focusChange:"focusChange",speckeyPress:"speckeyPress",searchInit:"searchInit"},features:[e.\u0275\u0275ProvidersFeature([F])],decls:16,vars:25,consts:[[1,"panel-form__input",3,"ngClass"],["icon","search","svgClass","panel-form__input-svg-search",4,"ngIf"],["class","panel-form__input__placeholder","data-qa","1658988203248",3,"ngClass","click",4,"ngIf"],["class","panel-form__input__title",4,"ngIf"],[1,"panel-form__input-wrap"],["data-qa","1658988187497",3,"ngModel","appFocus","disabled","ngClass","tabindex","type","maxlength","placeholder","blur","focus","keydown","ngModelChange","paste","cdkAutofill"],["input",""],["class","panel-form__input__placeholder",3,"click",4,"ngIf"],["icon","hamburger","svgClass","panel-form__input-svg-hamburger",4,"ngIf"],["svg",""],["data-qa","1658988194022","svgClass","panel-form__input-svg-hamburger",3,"icon","fill","click",4,"ngIf"],["class","svg-mat",3,"click",4,"ngIf"],["class","tooltip",4,"ngIf"],["class","panel-form__input__counter",4,"ngIf"],["icon","search","svgClass","panel-form__input-svg-search"],["data-qa","1658988203248",1,"panel-form__input__placeholder",3,"ngClass","click"],[1,"panel-form__input__title"],[1,"panel-form__input__placeholder",3,"click"],["icon","hamburger","svgClass","panel-form__input-svg-hamburger"],["data-qa","1658988194022","svgClass","panel-form__input-svg-hamburger",3,"icon","fill","click"],[1,"svg-mat",3,"click"],[1,"tooltip"],["tooltip",""],[1,"tooltip__arrow"],[1,"panel-form__input__counter"]],template:function(E,R){1&E&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,w,1,0,"app-svg-icon",1),e.\u0275\u0275template(2,B,3,5,"div",2),e.\u0275\u0275template(3,_,3,4,"div",3),e.\u0275\u0275elementStart(4,"div",4)(5,"input",5,6),e.\u0275\u0275listener("blur",function(){return R.onTouched(),R.focus=!1})("focus",function(){return R.focus=!0,R.onFocus()})("keydown",function(G){return R.processKeydown(G)})("ngModelChange",function(G){return R.updateChanges(G)})("paste",function(G){return R.handlePasteEvent(G)})("cdkAutofill",function(G){return R.onCdkAutofill(G)})("ngModelChange",function(G){return R.value=G}),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,y,3,4,"div",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,$,1,0,"app-svg-icon",8),e.\u0275\u0275elementStart(10,"div",null,9),e.\u0275\u0275template(12,C,1,2,"app-svg-icon",10),e.\u0275\u0275template(13,T,2,1,"mat-icon",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,j,5,4,"div",12),e.\u0275\u0275template(15,I,2,2,"div",13),e.\u0275\u0275elementEnd()),2&E&&(e.\u0275\u0275classProp("active",R.focus)("panel-form__disabled",R._disabled),e.\u0275\u0275property("ngClass",R.typeClass),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.searchIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(R.inputClass&&R.inputClass.includes("no-description"))&&"login"!==R.typeClass&&"sign-input"!==R.typeClass),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","login"===R.typeClass&&(R.value||R.isAutofilled)),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("maxlength",R.maxlength),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(7,22,R.placeholder,R.lang)),e.\u0275\u0275property("ngModel",R.value)("appFocus",R.isFocus)("disabled",R._disabled)("ngClass",R.inputClass)("tabindex",R.tabIndex)("type",R.type),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf","login"===R.typeClass&&!R.value&&!R.isAutofilled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.searchIcon),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",R.rightIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.matIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.tooltipText&&R.isShowTooltip),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.maxlength&&"login"!==R.typeClass&&"phone"!==R.typeMask))},dependencies:[a.b,u.Hw,h.mk,h.O5,i.DefaultValueAccessor,i.NgControlStatus,i.MaxLengthValidator,i.NgModel,l,m.aC,d.X$],styles:['@charset "UTF-8";.panel-form__input{font-family:Open Sans,Source Sans Pro,sans-serif;position:relative}.panel-form__input__placeholder{position:absolute;box-sizing:border-box;width:100%;padding:11px 12px 0;left:0;top:0;font-size:20px;color:#88909b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-form__input__placeholder.product-input{color:#88909b!important}.panel-form__input__placeholder.password{left:16px}.panel-form__input__placeholder.settings__placeholder{font-size:12px!important}.panel-form__input__title{position:absolute;box-sizing:border-box;width:100%;padding-top:6px;padding-left:12px;left:0;top:0;font-size:12px;line-height:16px;color:#88909b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-form__input__counter{position:absolute;right:5px;bottom:5px;font-family:Source Sans Pro;font-size:12px;color:#88909b}.panel-form__input.login .panel-form__input-svg-hamburger{top:48%;width:22px;height:22px}.panel-form__input.login.active input{border-bottom:1px solid #2f54eb}.panel-form__input.login input{color:#080708;width:100%;padding:30px 60px 8px 12px;line-height:24px}.panel-form__input.login input::-webkit-input-placeholder{color:#fff;opacity:.6}.panel-form__input.login input::-moz-placeholder{color:#fff;opacity:.6}.panel-form__input.login input:-moz-placeholder{color:#fff;opacity:.6}.panel-form__input.login input:-ms-input-placeholder{color:#fff;opacity:.6}.panel-form__input.login .panel-form__input__placeholder{position:absolute;box-sizing:border-box;width:100%;padding:30px 12px 0;left:0;top:0;font-size:16px;line-height:24px;color:#9d9d9d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:0;pointer-events:none}.panel-form__input.template .panel-form__input-wrap{margin-bottom:10px}.panel-form__input.template .panel-form__input-wrap input{border-radius:0;width:100%}.panel-form__input.template .panel-form__input__placeholder{font-size:12px;color:#000}.panel-form__input.panel-form__disabled input{background:#f1f2f2}.panel-form__input.active:not(.login) input :not(.template){border-color:#2f54eb;box-shadow:inset 0 0 0 1px #2f54eb}.panel-form__input.active:not(.login) .panel-form__input__placeholder{color:#2f54eb}.panel-form__input input{background:none;border:1px solid #dedede;outline:none;padding:30px 12px 12px;font-size:16px;border-radius:5px;box-sizing:border-box;color:#000}.panel-form__input input::placeholder{opacity:1;color:#000}.panel-form__input input::-webkit-input-placeholder{font-family:Source Sans Pro;opacity:1;color:#000}.panel-form__input input:-moz-placeholder{font-family:Source Sans Pro;opacity:1;color:#000}.panel-form__input input:-ms-input-placeholder{font-family:Source Sans Pro;opacity:1;color:#000}.panel-form__input .product-input{border-color:#dedede;color:#000}.panel-form__input .content-input{width:100%}.panel-form__input .placeholder-svg-search{padding-left:45px!important;color:#444}.panel-form__input .no-description{padding-top:16px;padding-bottom:14px;width:100%}.panel-form__input .normal{color:#444}@media screen and (max-width: 1024px){.panel-form__input .filter{width:180px;flex:1 0}}.panel-form__input-svg-search{width:16px;height:16px;position:absolute;top:calc(50% - 8px);left:19px;fill:#88909b}.panel-form__input-svg-hamburger{cursor:pointer;width:16px;height:16px;position:absolute;top:calc(50% - 8px);right:15px;fill:#88909b}.panel-form__input-svg-hamburger .login{top:80%}.panel-form__input .svg-mat{cursor:pointer;width:22px;height:22px;position:absolute;top:calc(50% - 10px);right:11px;font-size:21px;color:#88909b}.panel-form__input-wrap{width:100%}.tooltip{position:absolute;width:230px;left:calc(100% + 16px);top:8px;background:#1a2a40;color:#fff;padding:12px;border-radius:4px;font-size:14px;font-family:Open Sans,Source Sans Pro,sans-serif;z-index:5}.tooltip__arrow{position:absolute;background-color:#1a2a40;top:24px;left:-6px;width:16px;height:16px;border-radius:2px;transform:rotate(-45deg)}@media (max-width: 1251px){.tooltip{right:-2px;left:initial;top:77px}.tooltip__arrow{top:-7px;right:20px;left:initial}}.width-100{width:100%}.error input{border-color:#e23428!important}\n'],encapsulation:2})}(0,n.gn)([(0,d.SQ)()],X.prototype,"lang",void 0)},52523:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>m});var n=t(39349),e=t(36895),i=t(24006),d=t(97392),a=t(16611),u=t(76264),h=t(48038),l=t(94650);let m=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:x});static#n=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[h.Y,a.qw,d.Ps,e.ez,i.FormsModule,i.ReactiveFormsModule,u.o,n.Ky]})}return x})()},30184:(Ee,Q,t)=>{"use strict";t.d(Q,{Ku:()=>m,L8:()=>L,hS:()=>O,v0:()=>e});var n=t(6146);const e={docDate:"docDate",id:"id",docIds:"id",docModule:"docModule",docType:"docType",valueForCheckboxSearch:w=>"\u043d\u043e\u0432\u044b\u0439"===w.statusCaption?"new":"imported",corrInn:()=>"",corrFullname:()=>"",description:()=>"",isOpenable:!0},i=["id","accId","accCurr","accNumber","docNumber","docDate","amount","statusCaption","status","signStatus","signStatusCaption","registerStamp","corrFullname","description","declineInfo","sendtype","loanAgreementNumber","inq181","bankName"],d=[...i,"currCode"],a=[...i,"debitingDate","accCredit","transAmountTotal","accCreditId","transCurrCodeIso"],u=["id","creditAccId","creditAccNumber","creditAccCurr","docNumber","docDate","amount","statusCaption","status","signStatus","signStatusCaption","registerStamp","debitAccId","debitAccNumber","debitAccCurr","additionalInfo","amountCredit","declineInfo"],h=u,l=u,m=w=>{switch(w){case n.o.DocPlatpor:return i;case n.o.DocPlatporCurr:return d;case n.o.DocTransitPayDoc:return a;case n.o.DocCurrBuy:return u;case n.o.DocCurrSell:return h;case n.o.DocPlatporConv:return l;case n.o.RequestCancel:return;default:return i}},O=[{label:"Show by 20",chosen:!0,value:20},{label:"Show by 100",chosen:!1,value:100},{label:"Show by 200",chosen:!1,value:200}],L=20},94938:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>$});var n=t(97582),e=t(94650),i=t(16611),d=t(15644),a=t(36895),u=t(75198),h=t(69245);let l=(()=>{class C{constructor(j){this.el=j,this.resize()}set appAutoWidth(j){this.autoWidth=`${j}`}ngOnChanges(j){this.resize()}resize(){this.el.nativeElement.style.width=16*((this.autoWidth||"").length<1?1:this.autoWidth.length)+"px"}static#e=this.\u0275fac=function(I){return new(I||C)(e.\u0275\u0275directiveInject(e.ElementRef))};static#t=this.\u0275dir=e.\u0275\u0275defineDirective({type:C,selectors:[["","appAutoWidth",""]],inputs:{appAutoWidth:"appAutoWidth"},features:[e.\u0275\u0275NgOnChangesFeature]})}return C})();function m(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span",4),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("hide",j.hideTitle),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,j.text,j.lang)," ")}}function x(C,T){if(1&C){const j=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"input",9),e.\u0275\u0275listener("input",function(F){e.\u0275\u0275restoreView(j);const z=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(z.onNumberChange(F))}),e.\u0275\u0275elementEnd()}if(2&C){const j=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("appAutoWidth",j.number)("maxLength",j.numberMaxLength)("value",j.number||""),e.\u0275\u0275attribute("maxlength",j.numberMaxLength)}}function O(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span",10),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(j.number)}}const L=function(C){return{"border-bottom":C}};function w(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span",5),e.\u0275\u0275text(1," \u2116 "),e.\u0275\u0275elementStart(2,"span",6)(3,"span"),e.\u0275\u0275template(4,x,1,4,"input",7),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,O,2,1,"ng-template",null,8,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275reference(6),I=e.\u0275\u0275nextContext();e.\u0275\u0275property("appTextMask",I.util.freeNumberMask),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,L,I.numberEditable)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",I.numberEditable)("ngIfElse",j)}}function B(C,T){if(1&C){const j=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"span",14)(1,"app-datepicker",15),e.\u0275\u0275listener("dateChange",function(F){e.\u0275\u0275restoreView(j);const z=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(z.onDateChange(F))}),e.\u0275\u0275elementEnd()()}if(2&C){const j=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("max",j.maxDate)("min",j.minDate)("value",j.date)}}function _(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span")(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&C){const j=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(j.datePipe.transform(j.date,"dd.MM.yyyy"))}}function y(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span",11),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275template(3,B,2,3,"span",12),e.\u0275\u0275template(4,_,3,1,"span",13),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,"By",j.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",j.dateEditable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!j.dateEditable)}}class ${constructor(T,j){this.util=T,this.datePipe=j,this.text="",this.number=null,this.showNumber=!0,this.numberMaxLength=4,this.maxWidth=80,this.numberEditable=!0,this.date=new Date,this.showDate=!0,this.dateEditable=!0,this.hideTitle=!1,this.numberChanged=new e.EventEmitter,this.dateChanged=new e.EventEmitter,this.loader=!0}ngOnInit(){this.numberChanged.emit(this.number),this.dateChanged.emit(this.date)}ngOnChanges(T){T&&T.number&&T.number.currentValue&&!T.number.firstChange&&this.onNumberChange({target:{value:T.number.currentValue}}),T&&T.date&&T.date.currentValue&&!T.date.firstChange&&this.onDateChange(T.date.currentValue)}onNumberChange(T){let j=T.target?.value||"";j.length>this.numberMaxLength&&(j=j.slice(0,this.numberMaxLength)),this.numberChanged.emit(j)}onDateChange(T){this.date=T,this.dateChanged.emit(this.date)}static#e=this.\u0275fac=function(j){return new(j||$)(e.\u0275\u0275directiveInject(d.Pj),e.\u0275\u0275directiveInject(a.uU))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:$,selectors:[["app-line-with-number-and-date"]],inputs:{text:"text",number:"number",showNumber:"showNumber",numberMaxLength:"numberMaxLength",maxWidth:"maxWidth",numberEditable:"numberEditable",date:"date",maxDate:"maxDate",minDate:"minDate",showDate:"showDate",dateEditable:"dateEditable",hideTitle:"hideTitle"},outputs:{numberChanged:"numberChanged",dateChanged:"dateChanged"},features:[e.\u0275\u0275NgOnChangesFeature],decls:4,vars:3,consts:[["data-qa","1657807968478",1,"title-line"],["class","title-line__text",3,"hide",4,"ngIf"],["class","title-line__number",3,"appTextMask",4,"ngIf"],["class","title-line__date",4,"ngIf"],[1,"title-line__text"],[1,"title-line__number",3,"appTextMask"],[1,"title-line__input-wrapper",3,"ngClass"],["type","text","oninput","this.value=this.value.replace(/[^0-9]/g,'')","class","title-line__input","data-qa","1657807974522",3,"appAutoWidth","maxLength","value","input",4,"ngIf","ngIfElse"],["fixedDocNumber",""],["type","text","oninput","this.value=this.value.replace(/[^0-9]/g,'')","data-qa","1657807974522",1,"title-line__input",3,"appAutoWidth","maxLength","value","input"],[1,"title-line__accent"],[1,"title-line__date"],["class","title-line__datepicker",4,"ngIf"],[4,"ngIf"],[1,"title-line__datepicker"],["data-qa","1657807981187",3,"max","min","value","dateChange"]],template:function(j,I){1&j&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,m,3,6,"span",1),e.\u0275\u0275template(2,w,7,6,"span",2),e.\u0275\u0275template(3,y,5,6,"span",3),e.\u0275\u0275elementEnd()),2&j&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",I.text),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",I.showNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",I.showDate))},dependencies:[a.mk,a.O5,u.Q,h.h,l,i.X$],styles:['@charset "UTF-8";.title-line[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;color:#080708;font-weight:700}@media screen and (min-width: 375px) and (max-width: 768px){.title-line[_ngcontent-%COMP%]{font-size:20px;padding-right:20px}}.title-line__input-wrapper[_ngcontent-%COMP%]{display:inline-flex;background:#7180b9;margin-bottom:-3px}.title-line__input-wrapper[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{background-color:#fff;display:inline-flex}.title-line__input-wrapper.border-bottom[_ngcontent-%COMP%]{padding-bottom:2px}.title-line__input[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:700;font-size:24px;width:50px;border:none;background:none;outline:none;height:23px;padding:0;text-align:center;color:#7180b9}.title-line__accent-wrapper[_ngcontent-%COMP%]{display:inline-flex;background:#7180b9;margin-bottom:-3px}.title-line__accent-wrapper[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{background-color:#fff;display:inline-flex}.title-line__accent[_ngcontent-%COMP%]{font-weight:700;line-height:.9}@media (max-width: 1023px){.title-line__text.hide[_ngcontent-%COMP%]{display:none}}.title-line__number[_ngcontent-%COMP%]{white-space:nowrap}.title-line__date[_ngcontent-%COMP%]{position:relative}.title-line__datepicker[_ngcontent-%COMP%]{display:inline-block;transform:translateY(-3px)}']})}(0,n.gn)([(0,i.SQ)()],$.prototype,"lang",void 0)},80722:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>u});var n=t(36895),e=t(9007),i=t(16611),d=t(76264),a=t(94650);let u=(()=>{class h{static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275mod=a.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.ez,e.Z,i.qw,d.o]})}return h})()},75568:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>d});var n=t(94650),e=t(36895);function i(a,u){if(1&a&&(n.\u0275\u0275elementStart(0,"div",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&a){const h=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(h.text)}}let d=(()=>{class a{constructor(){this.diameter=40}ngOnInit(){}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["app-loader"]],inputs:{loaderClass:"loaderClass",diameter:"diameter",text:"text"},decls:3,vars:6,consts:[[1,"loader__wrap",3,"ngClass"],["class","text",4,"ngIf"],[1,"loader"],[1,"text"]],template:function(l,m){1&l&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,i,2,1,"div",1),n.\u0275\u0275element(2,"div",2),n.\u0275\u0275elementEnd()),2&l&&(n.\u0275\u0275property("ngClass",m.loaderClass),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",m.text),n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",m.diameter,"px")("height",m.diameter,"px"))},dependencies:[e.mk,e.O5],styles:['@charset "UTF-8";.loader__wrap[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#ffffffb3;z-index:89;display:flex;justify-content:center;align-items:center;flex-direction:column;grid-gap:20px}.loader__wrap.white[_ngcontent-%COMP%]{background-color:transparent}.loader__wrap.white[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{border:2px solid rgba(255,255,255,.2);border-left-color:#fff}.loader__wrap.modal-design[_ngcontent-%COMP%]{top:80px;bottom:10px}.loader__wrap.position-initial[_ngcontent-%COMP%]{position:initial}.text[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#000}.loader[_ngcontent-%COMP%], .loader[_ngcontent-%COMP%]:after{border-radius:50%;width:40px;height:40px;min-width:40px;min-height:40px}.loader[_ngcontent-%COMP%]{position:relative;border:2px solid rgba(47,84,235,.2);border-left-color:#2f54eb;transform:translateZ(0);animation:_ngcontent-%COMP%_loader .6s infinite linear}@keyframes _ngcontent-%COMP%_loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}}']})}return a})()},78895:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>i});var n=t(36895),e=t(94650);let i=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:d});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.ez]})}return d})()},64481:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>ne});var n=t(97582),e=t(16611),i=t(77579),d=t(62557),a=t(95698),u=t(82722);const h={one:"Quantity and amount of selected operations.one",few:"Quantity and amount of selected operations.few",other:"Quantity and amount of selected operations.other"};var l=t(94650),m=t(3751);let x=(()=>{class G{constructor(xe){this.apiService=xe}applyLoanAgreementNumberToDocs(xe,we){return this.apiService.post("metinv/update/document/pack/loan_agreement_number",{documentIds:xe,loanAgreementNumber:we})}static#e=this.\u0275fac=function(we){return new(we||G)(l.\u0275\u0275inject(m.s))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac})}return G})();var O=t(39486),L=t(38101),w=t(23962),B=t(29198),_=t(9149),y=t(54331),$=t(68735),C=t(75568),T=t(36895),j=t(90995);function I(G,ce){if(1&G){const xe=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"app-radio",13),l.\u0275\u0275listener("click",function(){const ct=l.\u0275\u0275restoreView(xe).$implicit,pe=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(pe.selectedLoanAgreement=ct.creditInformation.contractNum)}),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()}if(2&G){const xe=ce.$implicit,we=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("name","loan-agreement")("value",xe.creditInformation.contractNum)("chosen",we.selectedLoanAgreement===xe.creditInformation.contractNum),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",xe.creditInformation.contractNum," ")}}function F(G,ce){if(1&G&&(l.\u0275\u0275elementStart(0,"div",14),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&G){const xe=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(2,1,"Attention! Sending type Urgent is not possible for payment",xe.lang)," ")}}function z(G,ce){if(1&G){const xe=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275elementStart(1,"div",5),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"div",6),l.\u0275\u0275template(5,I,2,4,"app-radio",7),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(6,F,3,4,"div",8),l.\u0275\u0275elementStart(7,"div",9)(8,"div",10)(9,"app-button",11),l.\u0275\u0275listener("clicked",function(){l.\u0275\u0275restoreView(xe);const Ge=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(Ge.onSubmit())}),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(10,"div",10)(11,"app-button",12),l.\u0275\u0275listener("clicked",function(){l.\u0275\u0275restoreView(xe);const Ge=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(Ge.onCancel())}),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementContainerEnd()}if(2&G){const xe=l.\u0275\u0275nextContext();l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate2("",l.\u0275\u0275pipeBind2(3,9,"Chosen",xe.lang),": ",xe.selectedOperationsTitle,""),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngForOf",xe.loanAgreementsList),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",xe.isOperationsContainsUrgentType),l.\u0275\u0275advance(3),l.\u0275\u0275property("text","Save")("type","small header")("disabled",!xe.selectedLoanAgreement),l.\u0275\u0275advance(2),l.\u0275\u0275property("text","Cancel")("type","small-bordered")}}const X=function(G){return{loanAgreementName:G}};function p(G,ce){if(1&G&&(l.\u0275\u0275elementStart(0,"div",5),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&G){const xe=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate2(" ",l.\u0275\u0275pipeBind3(2,2,"Loan agreement successfully added",xe.lang,l.\u0275\u0275pureFunction1(6,X,xe.selectedLoanAgreement)),": ",xe.selectedOperationsTitle," ")}}function P(G,ce){if(1&G&&(l.\u0275\u0275elementStart(0,"div",20),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&G){const xe=ce.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(xe)}}function E(G,ce){if(1&G&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275elementStart(1,"div",17),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"div",18),l.\u0275\u0275template(4,P,2,1,"div",19),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementContainerEnd()),2&G){const xe=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1("",xe.selectedLoanAgreement," \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a:"),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",xe.failedDocumentsList)}}function R(G,ce){if(1&G&&(l.\u0275\u0275template(0,p,3,8,"div",15),l.\u0275\u0275template(1,E,5,2,"ng-container",16)),2&G){const xe=l.\u0275\u0275nextContext();l.\u0275\u0275property("ngIf",xe.selectedOperationsTitle),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",xe.failedDocumentsList.length)}}class ne{constructor(ce,xe,we,Ge,ct,pe,Ce,U){this.loanAgreementModalService=ce,this.productsService=xe,this.modalService=we,this.translation=Ge,this.pluralLangPipe=ct,this.vedService=pe,this.toastCustomService=Ce,this.operationsService=U,this.selectedOperations=[],this.loanAgreementWasAdded=!1,this.loanAgreementsList=[],this.failedDocumentsList=[],this.currencies=[],this.isLoading=!0,this.destroyed$=new i.x}ngOnInit(){(0,d.$)([this.productsService.actualCreditProducts$,this.vedService.getCurrencies()]).pipe((0,a.q)(1),(0,u.R)(this.destroyed$)).subscribe(([ce,xe])=>{const we=this.selectedOperations[0].accNumber;this.loanAgreementsList=ce.filter(Ge=>Ge.creditInformation.repaymentAccount===we),this.currencies=xe,this.isLoading=!1}),this.isOperationsContainsUrgentType=!!this.selectedOperations.find(ce=>"4"===ce?.sendType)}onSubmit(){this.isLoading=!0;const ce=this.selectedOperations.map(xe=>Number(xe.id));this.loanAgreementModalService.applyLoanAgreementNumberToDocs(ce,this.selectedLoanAgreement).pipe((0,u.R)(this.destroyed$)).subscribe({next:xe=>{if(xe.updateSuccess?.length){const we=xe.updateSuccess.map(ct=>ct.documentId.toString()),Ge=this.selectedOperations.filter(ct=>we.includes(ct.id));if(Ge?.length){const ct=Ge.reduce((Z,oe)=>Z+("string"==typeof oe.amount?parseFloat(oe.amount):oe.amount),0),pe=this.currencies.find(Z=>Z.code===this.selectedOperations[0].currency)?.symbol,Ce=Ge.length,H=this.pluralLangPipe.transform(this.lang).transform(Ce,h);this.selectedOperationsTitle=this.translation.translate(H,{loanAgreementQty:Ce,amount:`${ct} ${pe||""}`})}}if(xe.updateFail?.length){const we=xe.updateFail.map(Ge=>Ge.documentId.toString());this.failedDocumentsList=this.selectedOperations.filter(Ge=>we.includes(Ge.id)).map(Ge=>{const ct=xe.updateFail.find(pe=>pe.documentId.toString()===Ge.id.toString())?.errorMessage;return`\u2116${Ge.docNumber} \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 ${Ge.amount} - ${ct}`})}this.isLoading=!1,this.loanAgreementWasAdded=!0,this.operationsService.updateOperations$.next(!1)},error:xe=>{this.isLoading=!1,this.toastCustomService.show(xe.errorText,"error")}})}onCancel(){this.modalService.close()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(xe){return new(xe||ne)(l.\u0275\u0275directiveInject(x),l.\u0275\u0275directiveInject(O.su),l.\u0275\u0275directiveInject(L.Z),l.\u0275\u0275directiveInject(e.D7),l.\u0275\u0275directiveInject(w.u),l.\u0275\u0275directiveInject(B.$),l.\u0275\u0275directiveInject(_.j),l.\u0275\u0275directiveInject(y.$))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:ne,selectors:[["app-loan-agreement-modal"]],inputs:{selectedOperations:"selectedOperations"},features:[l.\u0275\u0275ProvidersFeature([x])],decls:8,vars:7,consts:[[1,"loan-agreement"],[1,"loan-agreement__title"],[4,"ngIf","ngIfElse"],["completeNotification",""],[3,"hidden"],[1,"loan-agreement__info"],[1,"loan-agreement__list"],[3,"name","value","chosen","click",4,"ngFor","ngForOf"],["class","loan-agreement__attention",4,"ngIf"],[1,"loan-agreement__buttons"],[1,"loan-agreement__button"],[3,"text","type","disabled","clicked"],[3,"text","type","clicked"],[3,"name","value","chosen","click"],[1,"loan-agreement__attention"],["class","loan-agreement__info",4,"ngIf"],[4,"ngIf"],[1,"loan-agreement__info","mr12"],[1,"loan-agreement__unsuccess-edit-list"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"]],template:function(xe,we){if(1&xe&&(l.\u0275\u0275elementStart(0,"div",0)(1,"div",1),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(4,z,12,12,"ng-container",2),l.\u0275\u0275template(5,R,2,2,"ng-template",null,3,l.\u0275\u0275templateRefExtractor),l.\u0275\u0275element(7,"app-loader",4),l.\u0275\u0275elementEnd()),2&xe){const Ge=l.\u0275\u0275reference(6);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind2(3,4,"Execution of documents using CF",we.lang)),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",!we.loanAgreementWasAdded)("ngIfElse",Ge),l.\u0275\u0275advance(3),l.\u0275\u0275property("hidden",!we.isLoading)}},dependencies:[$.U,C.R,T.sg,T.O5,j.r,e.X$],styles:['@charset "UTF-8";.loan-agreement__title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:18px;font-weight:600;color:#080708;padding-bottom:20px;margin-bottom:32px;border-bottom:1px solid #dedede}.loan-agreement__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px;margin-bottom:26px}.loan-agreement__list[_ngcontent-%COMP%]   app-radio[_ngcontent-%COMP%]:last-child{margin-right:0}.loan-agreement__info[_ngcontent-%COMP%]{font-family:Source Sans Pro;font-weight:400;font-size:18px;line-height:22px;margin-bottom:24px}.loan-agreement__info.mr12[_ngcontent-%COMP%]{margin-bottom:12px}.loan-agreement__unsuccess-edit-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;font-family:Source Sans Pro;font-weight:400;font-size:18px;line-height:22px;max-width:750px;overflow:auto;max-height:300px}.loan-agreement__unsuccess-edit-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dedede;border-radius:4px}.loan-agreement__unsuccess-edit-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:253px;background-color:#f1f2f2}.loan-agreement__unsuccess-edit-list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.loan-agreement__unsuccess-edit-list[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{color:#e23428}.loan-agreement__attention[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;line-height:19px;color:#444;margin-bottom:22px;width:470px}.loan-agreement__select[_ngcontent-%COMP%]{margin-bottom:30px}.loan-agreement__buttons[_ngcontent-%COMP%]{display:flex;align-items:center}.loan-agreement__button[_ngcontent-%COMP%]{margin-right:20px;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:600;font-size:14px;line-height:19px;width:117px}.loan-agreement__button[_ngcontent-%COMP%]:last-child{margin-right:0}[_nghost-%COMP%]     .loan-agreement__list app-radio{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#88909b;width:-moz-fit-content;width:fit-content}[_nghost-%COMP%]     .loan-agreement__list app-radio .radio__custom{margin-right:10px}[_nghost-%COMP%]     .loan-agreement__list app-radio_active{fill:#2f54eb}']})}(0,n.gn)([(0,e.SQ)()],ne.prototype,"lang",void 0)},24201:(Ee,Q,t)=>{"use strict";t.d(Q,{r:()=>E});var n=t(97582),e=t(94650),i=t(16611),d=t(77579),a=t(54968),u=t(39300),h=t(82722),l=t(36895),m=t(46923),x=t(75568),O=t(97392);const L=function(R){return{color:R}};function w(R,ne){if(1&R&&(e.\u0275\u0275elementStart(0,"mat-icon",5),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&R){const G=e.\u0275\u0275nextContext();e.\u0275\u0275styleMap(e.\u0275\u0275pureFunction1(4,L,"answer_request"===G.item.name?"#CF3737":void 0)),e.\u0275\u0275property("fontSet",G.item.matStyleOutlined&&"material-icons-outlined"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(G.item.matIcon)}}function B(R,ne){if(1&R&&e.\u0275\u0275element(0,"mat-icon",6),2&R){const G=e.\u0275\u0275nextContext();e.\u0275\u0275styleMap(e.\u0275\u0275pureFunction1(3,L,"answer_request"===G.item.name?"#CF3737":void 0)),e.\u0275\u0275property("svgIcon",G.item.svgIcon)}}function _(R,ne){if(1&R){const G=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select-item",9),e.\u0275\u0275listener("change",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(we.changeValue(xe))}),e.\u0275\u0275elementEnd()}if(2&R){const G=ne.$implicit,ce=ne.index,xe=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("icon",xe.icon)("isMainMenu",xe.isMainMenu)("isOpened",xe.isOpened)("item",G),e.\u0275\u0275attribute("data-qa","1658988414493"+ce)}}function y(R,ne){if(1&R&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",7),e.\u0275\u0275template(2,_,1,5,"app-menu-select-item",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&R){const G=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("opened",(null==G.selectedItem?null:G.selectedItem.description)===G.item.description&&G.isOpened),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==G.item?null:G.item.children)}}class ${constructor(){this.isMainMenu=!1,this.isLastItem=!1,this.change=new e.EventEmitter,this.clear=new e.EventEmitter}get isLeaf(){return this.item.children&&this.item.children.length>0}ngOnChanges(ne){const{isOpened:G}=ne;G&&!1===G.currentValue&&(this.selectedItem=null)}changeValue(ne){ne.children&&ne.children.length?this.setISelectedItem(ne):this.change.emit(ne)}setISelectedItem(ne){this.selectedItem=this.selectedItem?null:ne}ngOnInit(){}static#e=this.\u0275fac=function(G){return new(G||$)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:$,selectors:[["app-menu-select-item"]],inputs:{item:"item",icon:"icon",isMainMenu:"isMainMenu",isLastItem:"isLastItem",isOpened:"isOpened"},outputs:{change:"change",clear:"clear"},features:[e.\u0275\u0275NgOnChangesFeature],decls:6,vars:17,consts:[["data-qa","1658988309509",1,"menu-select-item",3,"click"],["class","menu-select-item__svg",3,"fontSet","style",4,"ngIf"],["class","menu-select-item__svg",3,"style","svgIcon",4,"ngIf"],[1,"menu-select-item__title",3,"innerHTML"],[4,"ngIf"],[1,"menu-select-item__svg",3,"fontSet"],[1,"menu-select-item__svg",3,"svgIcon"],["data-qa","1658991211258",1,"sub-menu"],[3,"icon","isMainMenu","isOpened","item","change",4,"ngFor","ngForOf"],[3,"icon","isMainMenu","isOpened","item","change"]],template:function(G,ce){1&G&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return ce.changeValue(ce.item)}),e.\u0275\u0275template(1,w,2,6,"mat-icon",1),e.\u0275\u0275template(2,B,1,5,"mat-icon",2),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,y,3,3,"ng-container",4)),2&G&&(e.\u0275\u0275styleProp("border-bottom",ce.isMainMenu||ce.isLastItem?"none":"1px solid #e7e7e7"),e.\u0275\u0275classProp("alert","answer_request"===ce.item.name)("hidden",!!ce.icon&&!(ce.item.matIcon||ce.item.svgIcon))("leaf",ce.isLeaf),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ce.icon&&ce.item.matIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ce.icon&&ce.item.svgIcon),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("menu-select-item__title--mainMenu",ce.isMainMenu),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(4,14,ce.item.description,ce.lang),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",ce.item.children&&ce.item.children.length))},dependencies:[l.sg,l.O5,O.Hw,$,i.X$],styles:['@charset "UTF-8";.menu-select-item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-family:Open Sans,Source Sans Pro,sans-serif}.menu-select-item__title[_ngcontent-%COMP%]{white-space:nowrap;font-weight:400;font-style:normal;font-size:12px;line-height:20px}.menu-select-item__title--default[_ngcontent-%COMP%]{cursor:default;background-color:inherit!important;color:inherit!important}.menu-select-item__title--mainMenu[_ngcontent-%COMP%]{padding:0 12px;font-size:16px}.menu-select-item.leaf[_ngcontent-%COMP%]{flex-direction:row-reverse;justify-content:space-between}.menu-select-item.leaf[_ngcontent-%COMP%]   .menu-select-item__title[_ngcontent-%COMP%]{align-self:flex-start}.menu-select-item.alert[_ngcontent-%COMP%], .menu-select-item.alert[_ngcontent-%COMP%]:hover{color:#d9291e}.menu-select-item.title[_ngcontent-%COMP%]:hover{background:transparent;color:inherit!important}.menu-select-item[_ngcontent-%COMP%]   .menu-select-item__svg[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:10px;color:#88909b;font-size:18px;display:flex;justify-content:center;align-items:center}.menu-select-item[_ngcontent-%COMP%]:hover{background-color:#f1f2f2;color:#000}.menu-select-item[_ngcontent-%COMP%]:hover   .menu-select-item__svg[_ngcontent-%COMP%]{color:#444}.sub-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;opacity:0;visibility:hidden;transition:all .3s;position:relative;height:0;margin:0 15px}.sub-menu.opened[_ngcontent-%COMP%]{opacity:1;visibility:visible;height:auto}.menu-select__wrapper[_ngcontent-%COMP%]{position:relative}'],changeDetection:0})}(0,n.gn)([(0,i.SQ)()],$.prototype,"lang",void 0);const C=["wrapper"],T=["btn"];function j(R,ne){if(1&R&&(e.\u0275\u0275elementStart(0,"div",9)(1,"div",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&R){const G=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,1,G.title,G.lang)," ")}}function I(R,ne){if(1&R){const G=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button-actions",11),e.\u0275\u0275listener("actionDone",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(we.onActionDone(xe))})("returnData",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(we.onActionData(xe))})("buttonClicked",function(){e.\u0275\u0275restoreView(G);const xe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(xe.closeMenu())})("buttonPending",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(we.changePending(xe))}),e.\u0275\u0275elementEnd()}if(2&R){const G=e.\u0275\u0275nextContext();e.\u0275\u0275property("buttons",G.buttonActions)("inSelectMenu",!0)("showDivider",G.showDivider)("docName",G.docName)}}function F(R,ne){if(1&R){const G=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select-item",13),e.\u0275\u0275listener("change",function(xe){e.\u0275\u0275restoreView(G);const we=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(we.changeValue(xe))}),e.\u0275\u0275elementEnd()}if(2&R){const G=ne.$implicit,ce=ne.index,xe=ne.last,we=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("icon",we.icon)("isMainMenu",we.isMainMenu)("isOpened",we.openedSubMenu)("item",G)("isLastItem",xe),e.\u0275\u0275attribute("data-qa","1657792357315"+ce)}}function z(R,ne){if(1&R&&e.\u0275\u0275template(0,F,1,6,"app-menu-select-item",12),2&R){const G=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngForOf",G.items)}}function X(R,ne){1&R&&e.\u0275\u0275element(0,"app-loader",14),2&R&&e.\u0275\u0275property("diameter",35)}const p=function(R){return{"one-item":R}},P=["*"];class E{constructor(ne,G){this.elRef=ne,this.changeDetectionRef=G,this.wrapperClass="wrapper-class",this.isMainMenu=!1,this.showDivider=!1,this.change=new e.EventEmitter,this.changeEvent=new e.EventEmitter,this.openChanged=new e.EventEmitter,this.actionDone=new e.EventEmitter,this.returnData=new e.EventEmitter,this.opened=!1,this.openedSubMenu=!1,this.destroyed$=new d.x}get docName(){return this._docName}set docName(ne){this._docName=ne.replace(/\./g,"-")}ngOnInit(){}ngAfterViewInit(){(0,a.R)(this.wrapperRef.nativeElement,"focusout").pipe((0,u.h)(ne=>!this.elRef.nativeElement.contains(ne.relatedTarget)),(0,h.R)(this.destroyed$)).subscribe(ne=>this.focusout(ne))}btnClick(ne){ne.stopPropagation();const G=ne?.target?.className,ce="string"==typeof G&&G.includes("button-action");("object"==typeof G||!G.includes("menu-select-item"))&&!ce&&(this.toggleOpened(!this.opened),this.openedSubMenu=this.opened)}changeValue(ne){this.wrapperRef.nativeElement.blur(),this.change.emit(ne),this.changeEvent.emit(ne),this.toggleOpened(!1),this.changeDetectionRef.destroyed||this.changeDetectionRef.detectChanges()}changePending(ne){this.pending=ne,!1===this.pending&&this.toggleOpened(!1)}closeMenu(){this.pending||this.toggleOpened(!1)}onActionData(ne){this.returnData.emit(ne)}onActionDone(ne){this.actionDone.emit(ne)}focusout(ne){this.elRef.nativeElement.contains(ne.relatedTarget)||(this.toggleOpened(!1),this.openedSubMenu=!1,this.changeDetectionRef.destroyed||this.changeDetectionRef.detectChanges())}toggleOpened(ne){this.opened=ne,this.openChanged.emit(ne),this.changeDetectionRef.destroyed||this.changeDetectionRef.detectChanges()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(G){return new(G||E)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:E,selectors:[["app-menu-select"]],viewQuery:function(G,ce){if(1&G&&(e.\u0275\u0275viewQuery(C,7),e.\u0275\u0275viewQuery(T,7)),2&G){let xe;e.\u0275\u0275queryRefresh(xe=e.\u0275\u0275loadQuery())&&(ce.wrapperRef=xe.first),e.\u0275\u0275queryRefresh(xe=e.\u0275\u0275loadQuery())&&(ce.btnRef=xe.first)}},inputs:{items:"items",backgroundClass:"backgroundClass",wrapperClass:"wrapperClass",icon:"icon",title:"title",isMainMenu:"isMainMenu",buttonActions:"buttonActions",showDivider:"showDivider",docName:"docName"},outputs:{change:"change",changeEvent:"changeEvent",openChanged:"openChanged",actionDone:"actionDone",returnData:"returnData"},ngContentSelectors:P,decls:11,vars:13,consts:[["data-qa","1658842231430","tabindex","-1",1,"menu-select__wrapper",3,"ngClass","click"],["wrapper",""],["data-qa","1658842243832",1,"menu-select__content-wrapper"],["data-qa","1658842254864",1,"menu-select__overlay",3,"ngClass"],["data-qa","1658842269986",1,"menu-select__content",3,"ngClass"],["class","menu-select-item title",4,"ngIf"],["data-qa","1657792334891",3,"buttons","inSelectMenu","showDivider","docName","actionDone","returnData","buttonClicked","buttonPending",4,"ngIf","ngIfElse"],["regularItems",""],[3,"diameter",4,"ngIf"],[1,"menu-select-item","title"],[1,"menu-select-item__title","menu-select-item__title--default"],["data-qa","1657792334891",3,"buttons","inSelectMenu","showDivider","docName","actionDone","returnData","buttonClicked","buttonPending"],["data-qa","1658842352414",3,"icon","isMainMenu","isOpened","item","isLastItem","change",4,"ngFor","ngForOf"],["data-qa","1658842352414",3,"icon","isMainMenu","isOpened","item","isLastItem","change"],[3,"diameter"]],template:function(G,ce){if(1&G&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275listener("click",function(we){return ce.btnClick(we)}),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275projection(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3)(5,"div",4),e.\u0275\u0275template(6,j,4,4,"div",5),e.\u0275\u0275template(7,I,1,4,"app-button-actions",6),e.\u0275\u0275template(8,z,1,1,"ng-template",null,7,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(10,X,1,1,"app-loader",8),e.\u0275\u0275elementEnd()()()),2&G){const xe=e.\u0275\u0275reference(9);e.\u0275\u0275property("ngClass",ce.wrapperClass),e.\u0275\u0275advance(4),e.\u0275\u0275styleProp("padding",ce.isMainMenu?"10px 0px":""),e.\u0275\u0275classProp("menu-select__overlay--open",ce.opened),e.\u0275\u0275property("ngClass",ce.backgroundClass),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,p,1===(null==ce.items?null:ce.items.length))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ce.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ce.buttonActions)("ngIfElse",xe),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",ce.pending||!ce.buttonActions&&!ce.items)}},dependencies:[l.mk,l.sg,l.O5,m.n,x.R,$,i.X$],styles:['@charset "UTF-8";.menu-select__wrapper{outline:none!important;position:relative}.menu-select__content-wrapper{height:100%;display:flex;align-items:center}.menu-select__overlay{background:#ffffff;box-shadow:0 4px 20px #0000002e;position:absolute;z-index:80;right:0;color:#88909b;visibility:hidden;opacity:0;transition:opacity,transform,visibility;transition-duration:70ms,.25s,.25s;transition-timing-function:linear,cubic-bezier(.23,1,.32,1);transition-delay:25ms,50ms,0ms;border-radius:5px;top:100%;min-width:100%}@media screen and (max-width: 380px){.menu-select__overlay{min-width:110px}}.menu-select__overlay--open{visibility:visible;opacity:1}.menu-select__content{position:relative;min-height:50px;padding:4px}.menu-select__content.one-item{min-height:auto}.menu-select-item{padding:14px 16px;display:flex;align-items:center;cursor:pointer}.menu-select-item__svg{width:20px;height:20px;fill:#88909b}.menu-select-item__title{font-size:16px;font-weight:400;white-space:nowrap}.menu-select-item__title--default{cursor:default;background-color:inherit!important;color:inherit!important}.menu-select-item.title:hover{background:transparent;color:inherit!important}.menu-select-item:hover{background-color:#f1f2f2;color:#000}.menu-select-item:hover .menu-select-item__svg{fill:#444}.no-input-select{position:relative;display:inline-block}.wrapper-class{position:relative;width:40px;height:100%;max-height:40px;display:flex;align-items:center}@media (max-width: 768px){.wrapper-class{width:24px;height:33px}}.operation{width:305px}.pay-request{width:330px}.hidden{display:none}\n'],encapsulation:2,changeDetection:0})}(0,n.gn)([(0,i.SQ)()],E.prototype,"lang",void 0)},54474:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>m});var n=t(36895),e=t(97392),i=t(16611),d=t(48038),a=t(48872),u=t(38360),h=t(78895),l=t(94650);let m=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:x});static#n=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.ez,i.qw,u.I,h.q,a.C,d.Y,e.Ps]})}return x})()},36738:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>Ce});var n=t(97582),e=t(16611),i=t(77579),d=t(82805),a=t(39646),u=t(62843),h=t(78372),l=t(82722),m=t(70262),x=t(63900),O=t(95698),L=t(28746),w=t(13571),B=t(69109),_=t(94650),y=t(38101),$=t(88581),C=t(3751),T=t(40929),j=t(75568),I=t(36895),F=t(90995);function z(U,H){1&U&&_.\u0275\u0275element(0,"app-loader")}function X(U,H){if(1&U){const Z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",13),_.\u0275\u0275listener("click",function(){_.\u0275\u0275restoreView(Z);const Pe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(Pe.openDoc())}),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()}if(2&U){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(Z.documentFile)}}function p(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",25),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&U){const Z=_.\u0275\u0275nextContext().$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(Z.title)}}function P(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",20),_.\u0275\u0275template(1,p,2,1,"div",21),_.\u0275\u0275elementStart(2,"div",22)(3,"div",23),_.\u0275\u0275text(4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"div",24),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd()()()),2&U){const Z=H.$implicit;_.\u0275\u0275property("hidden",Z.hidden),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",Z.title),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(Z.name),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(Z.value)}}function E(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",18),_.\u0275\u0275template(1,P,7,4,"div",19),_.\u0275\u0275elementEnd()),2&U){const Z=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",Z.params)}}function R(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",35),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&U){const Z=_.\u0275\u0275nextContext().$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(Z.title)}}function ne(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",36),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&U){const Z=H.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(Z.name)}}function G(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",37),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&U){const Z=H.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(Z.value)}}function ce(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",28),_.\u0275\u0275template(1,R,2,1,"div",29),_.\u0275\u0275elementStart(2,"div",30)(3,"div",31),_.\u0275\u0275template(4,ne,2,1,"div",32),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"div",33),_.\u0275\u0275template(6,G,2,1,"div",34),_.\u0275\u0275elementEnd()()()),2&U){const Z=H.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",null==Z?null:Z.title),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngForOf",Z.infoItems),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngForOf",Z.infoItems)}}function xe(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",26),_.\u0275\u0275template(1,ce,7,3,"div",27),_.\u0275\u0275elementEnd()),2&U){const Z=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",Z.paramsWithInfoItems)}}function we(U,H){if(1&U){const Z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",14)(1,"div",15),_.\u0275\u0275listener("click",function(){_.\u0275\u0275restoreView(Z);const Pe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(Pe.showParams())}),_.\u0275\u0275text(2),_.\u0275\u0275pipe(3,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(4,E,2,1,"div",16),_.\u0275\u0275template(5,xe,2,1,"div",17),_.\u0275\u0275elementEnd()}if(2&U){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind2(3,3,Z.openParamsText,Z.lang)),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",Z.isShowParams&&(null==Z.params?null:Z.params.length)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",Z.isShowParams&&(null==Z.paramsWithInfoItems?null:Z.paramsWithInfoItems.length))}}function Ge(U,H){if(1&U&&(_.\u0275\u0275elementStart(0,"div",38)(1,"span"),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd()()),2&U){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate2("\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u043e\u0434 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 00:",Z.secondsToCode<10?"0":"","",Z.secondsToCode,"")}}function ct(U,H){if(1&U){const Z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"app-button",39),_.\u0275\u0275listener("clicked",function(){_.\u0275\u0275restoreView(Z);const Pe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(Pe.sendAgainCode())}),_.\u0275\u0275pipe(1,"translate"),_.\u0275\u0275elementEnd()}if(2&U){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275propertyInterpolate("text",_.\u0275\u0275pipeBind2(1,2,"Request code",Z.lang)),_.\u0275\u0275property("disabled",Z.disabledCode)}}const pe=function(U){return{"with-params":U}};class Ce{constructor(H,Z,oe,Pe){this.modalService=H,this.signService=Z,this.apiService=oe,this.documentService=Pe,this.isNeedBankOpeningHoursCheck=!1,this.isNeedPreSignAction=!1,this.paramsWithInfoItems=[],this.isMail=!1,this.isOpeningCurr=!1,this.title="Sign document",this.isShowParams=!1,this.documentsForSign=[],this.timerSubject=new i.x,this.stopPlay$=new i.x,this.openParamsText="Show params",this.disabledCode=!0,this.isRequestCode=!0,this.secondsToCode=59,this.isLoadSign=!1,this.timerCode=(0,d.H)(0,1e3),this.isDisabled=!0,this.destroyed$=new i.x,this.confirmAction=()=>{},this.cancelAction=()=>{}}get showRefusePaycontrolBtn(){return this.signComponent&&this.signComponent.currentCertificate&&this.signComponent.currentCertificate.cryptoTypeCode===B.d.Paycontrol}ngOnInit(){this.openParamsText=this.isShowParams?"Hide params":"Show params",this.timerSubject.pipe((0,h.b)(59e3)).subscribe(()=>{this.disabledCode=!1})}timer(H=this.selectedCertificate){H&&"INPUT_CODE"===H.cryptoTypeCode?(this.selectedCertificate=H,this.stopPlay$.next(!0),this.secondsToCode=59,this.timerCode.pipe((0,l.R)(this.stopPlay$)).subscribe(()=>{this.secondsToCode>0&&this.secondsToCode--}),this.disabledCode=!0,this.isRequestCode=!0,this.timerSubject.next(!0)):"AKTIV_RUTOKEN"===H.cryptoTypeCode?(this.selectedCertificate=H,this.isRequestCode=!1):this.disabledCode=!0}sendAgainCode(){this.signComponent.initInputCode(),this.timer()}activeButton(H){this.isDisabled=H}goToSign(){this.signComponent&&this.selectedCertificate&&(this.isLoadSign=!0,(this.isNeedBankOpeningHoursCheck?this.apiService.getServerState():(0,a.of)(!0)).pipe((0,m.K)(H=>((0,u._)(H),this.isLoadSign=!1,(0,a.of)(null))),(0,x.w)(H=>this.apiService.getIsWorkingHoursHandler(H)?this.isNeedPreSignAction&&this.document.docIds[0]?this.signService.updateDocDateById(this.document.docIds[0]).pipe((0,O.q)(1),(0,L.x)(()=>{this.signComponent.signDocument(this.action,this.showRefusePaycontrolBtn)})):(this.signComponent.signDocument(this.action,this.showRefusePaycontrolBtn),(0,a.of)(null)):(0,a.of)(null)),(0,l.R)(this.destroyed$)).subscribe())}close(){this.modalService.close(),this.cancelAction()}catchSignError(H){this.isLoadSign=H}showParams(){this.isShowParams=!this.isShowParams,this.openParamsText=this.isShowParams?"Roll up":"Show params"}setResult(H){H[0]?.sign&&this.confirmAction()}openDoc(){this.isDocumentPrintDoc?this.documentService.getFile(`print/pdf?doc_ids=${this.document.docIds[0]}`).pipe((0,l.R)(this.destroyed$)).subscribe():window.open("../../../../assets/client_manual_2024.pdf")}static#e=this.\u0275fac=function(Z){return new(Z||Ce)(_.\u0275\u0275directiveInject(y.Z),_.\u0275\u0275directiveInject($.V),_.\u0275\u0275directiveInject(C.s),_.\u0275\u0275directiveInject(T.Z))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:Ce,selectors:[["app-modal-sign"]],viewQuery:function(Z,oe){if(1&Z&&_.\u0275\u0275viewQuery(w.A,7),2&Z){let Pe;_.\u0275\u0275queryRefresh(Pe=_.\u0275\u0275loadQuery())&&(oe.signComponent=Pe.first)}},inputs:{document:"document",isNeedBankOpeningHoursCheck:"isNeedBankOpeningHoursCheck",isNeedPreSignAction:"isNeedPreSignAction",action:"action",documentFile:"documentFile",isDocumentPrintDoc:"isDocumentPrintDoc",params:"params",paramsWithInfoItems:"paramsWithInfoItems",isMail:"isMail",isOpeningCurr:"isOpeningCurr",title:"title",isShowParams:"isShowParams",documentsForSign:"documentsForSign",confirmAction:"confirmAction",cancelAction:"cancelAction"},decls:17,vars:24,consts:[[1,"modal-sign",3,"ngClass"],[4,"ngIf"],[1,"modal-sign__header"],[1,"modal-sign__header_close",3,"click"],[1,"modal-sign__content"],["class","modal-sign__content_file",3,"click",4,"ngIf"],["class","modal-sign__content_params",4,"ngIf"],[1,"modal-sign__content_sign"],[3,"docIds","docModule","docType","isMail","isModalDesign","documentsForSign","changeSert","isDisabled","resultEvent","errorEmitter"],["class","modal-sign__content_timer",4,"ngIf"],[1,"modal-sign__content_button"],["data-qa","1657795266995",1,"modal-sign__content_button-style",3,"disabled","type","text","click"],["class","controls-item","data-qa","1657789420327","type","small-bordered",3,"disabled","text","clicked",4,"ngIf"],[1,"modal-sign__content_file",3,"click"],[1,"modal-sign__content_params"],[1,"modal-sign__content_toggle",3,"click"],["class","params",4,"ngIf"],["class","params-with-info-items",4,"ngIf"],[1,"params"],["class","params__block",3,"hidden",4,"ngFor","ngForOf"],[1,"params__block",3,"hidden"],["class","params__title",4,"ngIf"],[1,"params__info"],[1,"params__info_key"],[1,"params__info_value"],[1,"params__title"],[1,"params-with-info-items"],["class","params-with-info-items__block",4,"ngFor","ngForOf"],[1,"params-with-info-items__block"],["class","params-with-info-items__title",4,"ngIf"],[1,"params-with-info-items__info"],[1,"params-with-info-items__info_keys"],["class","params-with-info-items__info_key",4,"ngFor","ngForOf"],[1,"params-with-info-items__info_values"],["class","params-with-info-items__info_value",4,"ngFor","ngForOf"],[1,"params-with-info-items__title"],[1,"params-with-info-items__info_key"],[1,"params-with-info-items__info_value"],[1,"modal-sign__content_timer"],["data-qa","1657789420327","type","small-bordered",1,"controls-item",3,"disabled","text","clicked"]],template:function(Z,oe){1&Z&&(_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275template(1,z,1,0,"app-loader",1),_.\u0275\u0275elementStart(2,"div",2)(3,"div"),_.\u0275\u0275text(4),_.\u0275\u0275pipe(5,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(6,"div",3),_.\u0275\u0275listener("click",function(){return oe.close()}),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(7,"div",4),_.\u0275\u0275template(8,X,2,1,"div",5),_.\u0275\u0275template(9,we,6,6,"div",6),_.\u0275\u0275elementStart(10,"div",7)(11,"app-document-sign",8),_.\u0275\u0275listener("changeSert",function(Ie){return oe.timer(Ie)})("isDisabled",function(Ie){return oe.activeButton(Ie)})("resultEvent",function(Ie){return oe.setResult(Ie)})("errorEmitter",function(Ie){return oe.catchSignError(Ie)}),_.\u0275\u0275elementEnd()(),_.\u0275\u0275template(12,Ge,3,2,"div",9),_.\u0275\u0275elementStart(13,"div",10)(14,"app-button",11),_.\u0275\u0275listener("click",function(){return oe.selectedCertificate&&oe.goToSign()}),_.\u0275\u0275pipe(15,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(16,ct,2,5,"app-button",12),_.\u0275\u0275elementEnd()()()),2&Z&&(_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(22,pe,null==oe.paramsWithInfoItems?null:oe.paramsWithInfoItems.length)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",oe.isLoadSign),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind2(5,16,oe.title,oe.lang)),_.\u0275\u0275advance(4),_.\u0275\u0275property("ngIf",oe.documentFile),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",(null==oe.params?null:oe.params.length)||(null==oe.paramsWithInfoItems?null:oe.paramsWithInfoItems.length)),_.\u0275\u0275advance(2),_.\u0275\u0275property("docIds",oe.document.docIds)("docModule",oe.document.docModule)("docType",oe.document.docType)("isMail",oe.isMail)("isModalDesign",!0)("documentsForSign",oe.documentsForSign),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",oe.disabledCode&&oe.selectedCertificate&&oe.isRequestCode),_.\u0275\u0275advance(2),_.\u0275\u0275propertyInterpolate("text",_.\u0275\u0275pipeBind2(15,19,"Sign",oe.lang)),_.\u0275\u0275property("disabled",!oe.selectedCertificate||oe.isDisabled)("type","small header"),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",oe.selectedCertificate&&oe.isRequestCode))},dependencies:[j.R,I.mk,I.sg,I.O5,w.A,F.r,e.X$],styles:['@charset "UTF-8";.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}.modal-sign[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;min-height:294px;width:624px;border-radius:8px;background:#ffffff}.modal-sign[_ngcontent-%COMP%]     .panel-form__button.header{font-size:16px!important;font-weight:600}.modal-sign[_ngcontent-%COMP%]     .panel-form__button.small-bordered{font-size:16px!important;font-weight:600;padding:12px 28px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]     .panel-form__button.small-bordered{padding:12px 16px}}.modal-sign__header[_ngcontent-%COMP%]{height:80px;border-radius:8px 8px 0 0;display:flex;justify-content:space-between;background-color:#f1f2f2;align-items:center;padding:0 32px;font-size:20px;font-weight:700;color:#080708}.modal-sign__header_close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.modal-sign__content_button-style[_ngcontent-%COMP%]{font-size:16px;width:148px;margin-right:16px}.modal-sign__content_file[_ngcontent-%COMP%]{color:#2f54eb;border-bottom:1px solid #2f54eb;width:-moz-fit-content;width:fit-content;cursor:pointer;margin:24px 32px 4px;font-weight:400}.modal-sign__content_toggle[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;margin:24px 32px 4px;font-weight:400}@media screen and (max-width: 768px){.modal-sign__content_toggle[_ngcontent-%COMP%]{margin:24px 16px 4px}}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:0 32px 22px}.modal-sign__content_timer[_ngcontent-%COMP%]{color:#444;font-weight:600;font-size:14px;margin:22px 32px 60px}.modal-sign__content_button[_ngcontent-%COMP%]{max-width:148px;margin:30px 32px;display:flex}.modal-sign__content_input[_ngcontent-%COMP%]{margin:20px 32px}.modal-sign__content_input[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]   .panel-form__input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:16px;border-bottom:1px solid #88909b;border-radius:0}.modal-sign__content_input[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]   .panel-form__input[_ngcontent-%COMP%]   .panel-form__input__placeholder[_ngcontent-%COMP%]{font-size:16px}@media screen and (min-width: 375px) and (max-width: 768px){.modal-sign[_ngcontent-%COMP%]{width:auto}.modal-sign__header[_ngcontent-%COMP%]{padding:0 16px}.modal-sign__content_sign[_ngcontent-%COMP%]{margin:10px 16px 22px}.modal-sign__content_button[_ngcontent-%COMP%]{margin:24px 16px;width:calc(100% - 32px);justify-content:space-between;max-width:unset}.modal-sign__content_button[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:auto!important}.modal-sign__content_timer[_ngcontent-%COMP%]{margin:0 16px 60px}.modal-sign.with-params[_ngcontent-%COMP%]{min-height:auto}}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:20px 32px;padding:12px 16px 0;font-size:14px;color:#444}.params__block[_ngcontent-%COMP%]{margin-bottom:4px}.params__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params__info[_ngcontent-%COMP%]{display:flex;font-weight:600}.params__info_key[_ngcontent-%COMP%]{color:#88909b;width:100px;margin:0 12px 12px 0}.params-with-info-items[_ngcontent-%COMP%]{background-color:#f1f2f2;margin:20px 32px 10px;padding:12px 16px;font-size:14px;color:#444}@media screen and (max-width: 768px){.params-with-info-items[_ngcontent-%COMP%]{margin:20px 16px 10px}}.params-with-info-items__block[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px}.params-with-info-items__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:16px}.params-with-info-items__info[_ngcontent-%COMP%]{display:flex;column-gap:12px}.params-with-info-items__info_keys[_ngcontent-%COMP%], .params-with-info-items__info_values[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:12px}.params-with-info-items__info_key[_ngcontent-%COMP%], .cross-close-sign[_ngcontent-%COMP%]{color:#88909b}.wrong-text[_ngcontent-%COMP%]{padding:5px 12px;font-size:14px;color:#e23428}.params[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:120px;margin:24px 32px}.cross-close-sign[_ngcontent-%COMP%]{color:#88909b}']})}(0,n.gn)([(0,e.SQ)()],Ce.prototype,"lang",void 0)},54409:(Ee,Q,t)=>{"use strict";t.d(Q,{e:()=>L});var n=t(97582),e=t(16611),i=t(94650),d=t(38101),a=t(36895),u=t(90995);function h(w,B){if(1&w&&(i.\u0275\u0275elementStart(0,"div",3),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&w){const _=i.\u0275\u0275nextContext();i.\u0275\u0275classProp("cancel-or-confirm__text_small-margin",_.isCompactModal),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,3,_.additionalText,_.lang)," ")}}function l(w,B){if(1&w&&(i.\u0275\u0275elementStart(0,"div",3),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&w){const _=i.\u0275\u0275nextContext();i.\u0275\u0275classProp("cancel-or-confirm__text_small-margin",_.isCompactModal),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,3,_.isDraft?"Cash order draft delete request prompt":"Cash order delete request prompt",_.lang)," ")}}function m(w,B){if(1&w){const _=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"app-button",6),i.\u0275\u0275listener("clicked",function(){i.\u0275\u0275restoreView(_);const $=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView($.confirm())}),i.\u0275\u0275elementEnd()}if(2&w){const _=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("text",_.confirmBtnText)("type","medium-for-sign")}}function x(w,B){if(1&w){const _=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"app-button",6),i.\u0275\u0275listener("clicked",function(){i.\u0275\u0275restoreView(_);const $=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView($.close())}),i.\u0275\u0275elementEnd()}if(2&w){const _=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("text",_.cancelBtnText)("type","medium-for-sign-white")}}function O(w,B){if(1&w&&(i.\u0275\u0275elementStart(0,"div",4),i.\u0275\u0275template(1,m,1,2,"app-button",5),i.\u0275\u0275template(2,x,1,2,"app-button",5),i.\u0275\u0275elementEnd()),2&w){const _=i.\u0275\u0275nextContext();i.\u0275\u0275classProp("cancel-or-confirm__btns-wrap_additional-padding",_.isCompactModal),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",_.confirmBtnText.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",_.cancelBtnText.length)}}class L{constructor(B){this.modalService=B,this.confirmBtnText="Yes",this.cancelBtnText="No",this.additionalText="",this.isDraft=!1,this.isDeleting=!1,this.isCompactModal=!1,this.btnConfirmType="gr-orange",this.confirmAction=()=>{},this.cancelAction=()=>{}}close(){this.modalService.close(!1,!1),this.cancelAction()}confirm(){this.modalService.close(!1,!1),this.confirmAction()}static#e=this.\u0275fac=function(_){return new(_||L)(i.\u0275\u0275directiveInject(d.Z))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:L,selectors:[["app-cancel-or-confirm-modal"]],inputs:{confirmBtnText:"confirmBtnText",cancelBtnText:"cancelBtnText",additionalText:"additionalText",isDraft:"isDraft",isDeleting:"isDeleting",isCompactModal:"isCompactModal",btnConfirmType:"btnConfirmType",confirmAction:"confirmAction",cancelAction:"cancelAction"},decls:4,vars:7,consts:[[1,"cancel-or-confirm"],["class","cancel-or-confirm__text",3,"cancel-or-confirm__text_small-margin",4,"ngIf"],["class","cancel-or-confirm__btns-wrap",3,"cancel-or-confirm__btns-wrap_additional-padding",4,"ngIf"],[1,"cancel-or-confirm__text"],[1,"cancel-or-confirm__btns-wrap"],[3,"text","type","clicked",4,"ngIf"],[3,"text","type","clicked"]],template:function(_,y){1&_&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,h,3,6,"div",1),i.\u0275\u0275template(2,l,3,6,"div",1),i.\u0275\u0275template(3,O,3,4,"div",2),i.\u0275\u0275elementEnd()),2&_&&(i.\u0275\u0275classProp("vertical",y.additionalText)("cancel-or-confirm_small-padding",y.isCompactModal),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",y.additionalText.length&&!y.isDeleting),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",y.isDeleting),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",y.confirmBtnText.length||y.cancelBtnText.length))},dependencies:[a.O5,u.r,e.X$],styles:['@charset "UTF-8";.cancel-or-confirm[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:24px 32px;max-width:650px;text-align:justify}@media screen and (max-width: 1680px){.cancel-or-confirm[_ngcontent-%COMP%]{max-width:750px}}@media screen and (max-width: 1440px){.cancel-or-confirm[_ngcontent-%COMP%]{max-width:700px}}@media screen and (max-width: 1279px){.cancel-or-confirm[_ngcontent-%COMP%]{max-width:600px}}@media screen and (max-width: 999px){.cancel-or-confirm[_ngcontent-%COMP%]{max-width:550px}}.cancel-or-confirm_small-padding[_ngcontent-%COMP%]{padding:24px 32px 0}.cancel-or-confirm__btns-wrap[_ngcontent-%COMP%]{display:flex;gap:16px}.cancel-or-confirm__btns-wrap_additional-padding[_ngcontent-%COMP%]{padding-bottom:24px}.cancel-or-confirm__confirm[_ngcontent-%COMP%]{margin-right:10px}.cancel-or-confirm__text[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:22px;display:flex;align-items:center;color:#444;margin-bottom:60px}.cancel-or-confirm__text_small-margin[_ngcontent-%COMP%]{margin-bottom:24px}']})}(0,n.gn)([(0,e.SQ)()],L.prototype,"lang",void 0)},38101:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>a});var n=t(61135),e=t(94650),i=t(48802),d=t(44180);let a=(()=>{class u{constructor(l,m){this.domService=l,this.router=m,this.additionalPadding$=new n.X(void 0),this.header="",this.position="",this.docType="",this.noScroll=!1,this.isGrayOverlay=!0,this.isDarkOverlay=!1,this.overflow="",this.withCloseButton=!0,this.sbpLogo=!1,this.modalElementId="modal-container",this.overlayElementId="modal-overlay"}open(l,m={header:null,inputs:{},outputs:{},size:"normal",data:{},noScroll:!1,overflow:"visible",isSign:!1,returnToOnClose:"",withCloseButton:!0,sbpLogo:!1,closeCallback:void 0}){this.header=m.header,this.size=m.size,this.position=m.position,this.docType=m.docType,this.data=m.data,this.noScroll=m.noScroll,this.isSign=m.isSign,this.isGrayOverlay=m.isGrayOverlay,this.isDarkOverlay=m.isDarkOverlay,this.overflow=m.overflow||"visible",this.styleMode=m.styleMode||"normal",this.returnToOnClose=m.returnToOnClose,this.withCloseButton=m.withCloseButton??!0,this.sbpLogo=m.sbpLogo,this.closeCallback=m.closeCallback;const x={inputs:m.inputs||{},outputs:m.outputs||{}};this.domService.removeComponent();const O=this.domService.appendComponentTo(this.modalElementId,l,x);return document.getElementById(this.overlayElementId).style.opacity="0",document.getElementById(this.modalElementId).classList.add("show"),document.getElementById(this.overlayElementId).classList.add("show"),document.getElementById(this.modalElementId).classList.remove("hidden"),document.getElementById(this.overlayElementId).classList.remove("hidden"),document.body.classList.add("freeze"),document.getElementById(this.overlayElementId).style.opacity="1",O}close(l=!1,m=!0){document.getElementById(this.overlayElementId).style.opacity="0",this.domService.removeComponent(),document.getElementById(this.modalElementId).classList.remove("show"),document.getElementById(this.overlayElementId).classList.remove("show"),document.getElementById(this.modalElementId).classList.add("hidden"),document.getElementById(this.overlayElementId).classList.add("hidden"),document.body.className="",this.additionalPadding$.next("0px"),this.header=null,this.size=null,this.position=null,this.closeCallback&&m&&this.closeCallback(),this.returnToOnClose&&!l&&("string"==typeof this.returnToOnClose?this.router.navigate([this.returnToOnClose]):this.router.navigate([this.returnToOnClose.router],{queryParams:this.returnToOnClose.params}))}static#e=this.\u0275fac=function(m){return new(m||u)(e.\u0275\u0275inject(i.v),e.\u0275\u0275inject(d.F0))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},95395:(Ee,Q,t)=>{"use strict";t.d(Q,{O:()=>B});var n=t(97582),e=t(94650),i=t(16611),d=t(86349),a=t(36895),u=t(11260),h=t(25781),l=t(68735);function m(_,y){if(1&_){const $=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",7)(1,"app-checkbox",8),e.\u0275\u0275listener("checkboxChange",function(T){const I=e.\u0275\u0275restoreView($).$implicit,F=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(F.changeCheckBoxValue(T,I))}),e.\u0275\u0275elementEnd()()}if(2&_){const $=y.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("chosen",$.chosen)("label",$.label)}}function x(_,y){if(1&_&&(e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275template(1,m,2,2,"div",6),e.\u0275\u0275elementEnd()),2&_){const $=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("multi-select__menu-active",$.menuOpened),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",$.checkboxList)}}function O(_,y){if(1&_&&(e.\u0275\u0275elementStart(0,"div",12)(1,"div",13),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&_){const $=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate($.count<100?$.count:"99+")}}function L(_,y){if(1&_){const $=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",7)(1,"app-radio",9),e.\u0275\u0275listener("changed",function(T){const I=e.\u0275\u0275restoreView($).$implicit,F=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(F.changeCheckBoxValue(T,I))}),e.\u0275\u0275elementStart(2,"div",10),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,O,3,1,"div",11),e.\u0275\u0275elementEnd()}if(2&_){const $=y.$implicit,C=y.index,T=e.\u0275\u0275nextContext(2);e.\u0275\u0275attribute("data-qa","1658988481312"+C),e.\u0275\u0275advance(1),e.\u0275\u0275property("chosen",$.chosen)("name",T.name)("value",$.label),e.\u0275\u0275attribute("data-qa","1658988495852"+C),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,7,$.label,T.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",$.count)}}function w(_,y){if(1&_&&(e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275template(1,L,6,10,"div",6),e.\u0275\u0275elementEnd()),2&_){const $=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("multi-select__menu-active",$.menuOpened),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",$.checkboxList)}}class B{constructor(y,$){this._eRef=y,this.translation=$,this.menuOpened=!1,this.disabled=!1,this.radioType=!1,this.isNewDesign=!1,this.checkboxList=[],this.name="test",this.multiSelectChange=new e.EventEmitter}get labelOfMultiSelect(){return this.label?this.translation.translate(this.label):this.checkboxList.find(y=>!0===y.chosen)?this.radioType?this.checkboxList.filter(y=>!0===y.chosen).map(y=>this.translation.translate(y.label)).toString():this.checkboxList[0].chosen?this.translation.translate(this.checkboxList[0].label):this.checkboxList.filter(y=>!0===y.chosen).map(y=>this.translation.translate(y.label)).join(", "):this.translation.translate(this.labelWhenNothingChosen?this.labelWhenNothingChosen:"Nothing chosen")}openMenu(){this.menuOpened=!this.menuOpened}onClick(y){this._eRef.nativeElement.contains(y.target)||"use"!==y.target.localName&&"svg"!==y.target.localName&&(this.menuOpened=!1)}changeCheckBoxValue(y,$){if(y.currentTarget){if("app-checkbox"===y.currentTarget.localName)return;$.chosen=y.target.checked}else $.chosen=y;$.all&&d.S6(this.checkboxList,!0===$.chosen?C=>C.chosen=!0:C=>C.chosen=!1),this.radioType?(d.S6(this.checkboxList,C=>{C.chosen=C.value==$.value}),setTimeout(()=>this.openMenu(),200)):(!0===this.checkboxList[0].chosen&&this.checkboxList.find(C=>!1===C.chosen)&&(this.checkboxList[0].chosen=!1),!1===this.checkboxList[0].chosen&&!this.checkboxList.slice(1).find(C=>!1===C.chosen)&&(this.checkboxList[0].chosen=!0)),this.multiSelectChange.emit(this.checkboxList)}ngOnInit(){}static#e=this.\u0275fac=function($){return new($||B)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(i.D7))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:B,selectors:[["app-multi-select"]],hostBindings:function($,C){1&$&&e.\u0275\u0275listener("click",function(j){return C.onClick(j,j.target)},!1,e.\u0275\u0275resolveDocument)},inputs:{disabled:"disabled",radioType:"radioType",isNewDesign:"isNewDesign",label:"label",checkboxList:"checkboxList",labelWhenNothingChosen:"labelWhenNothingChosen",name:"name",selectIcon:"selectIcon",cssClass:"cssClass"},outputs:{multiSelectChange:"multiSelectChange"},decls:7,vars:11,consts:[[1,"multi-select",3,"ngClass","click"],[1,"multi-select__title"],["svgClass","multi-select__svg",3,"icon"],[1,"multi-select-wrapper"],["class","multi-select__menu",3,"multi-select__menu-active",4,"ngIf"],[1,"multi-select__menu"],["class","multi-select__menu__item",4,"ngFor","ngForOf"],[1,"multi-select__menu__item"],[3,"chosen","label","checkboxChange"],[1,"multi-select__menu__item-radio",3,"chosen","name","value","changed"],[1,"multi-select__menu__item-text"],["class","multi-select__menu__item-counter",4,"ngIf"],[1,"multi-select__menu__item-counter"],[1,"multi-select__menu__item-counter-text"]],template:function($,C){1&$&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return C.openMenu()}),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"app-svg-icon",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275template(5,x,2,3,"div",4),e.\u0275\u0275template(6,w,2,3,"div",4),e.\u0275\u0275elementEnd()),2&$&&(e.\u0275\u0275classProp("disabled",C.disabled)("new-design-multi",C.isNewDesign),e.\u0275\u0275property("ngClass",C.cssClass),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("text-overflow",C.checkboxList&&null!=C.checkboxList[0]&&C.checkboxList[0].chosen?"unset":"ellipsis"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",C.labelOfMultiSelect," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("icon",C.selectIcon?C.selectIcon:"select"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!C.radioType&&C.checkboxList&&C.checkboxList.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",C.radioType))},dependencies:[a.mk,a.sg,a.O5,u.b,h.b,l.U,i.X$],styles:['@charset "UTF-8";app-multi-select{position:relative}.multi-select{border:1px solid #dedede;outline:none;padding:14px;background:none;border-radius:5px;box-sizing:border-box;white-space:nowrap;min-width:235px;min-height:50px;cursor:pointer;position:relative;display:flex}@media screen and (max-width: 1024px){.multi-select{width:100%;flex:1 0}}.multi-select-wrapper{position:relative}.multi-select.disabled{pointer-events:none;opacity:.4}.multi-select.fixed-width{width:235px}.multi-select__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:calc(100% - 22px)}.multi-select__svg{width:13px;height:13px;position:absolute;top:20px;right:15px;fill:#88909b}.multi-select__mat-icon{width:20px;height:20px;font-size:20px;color:#88909b}.multi-select__menu{display:none;position:absolute;width:100%;background:#ffffff;box-shadow:0 4px 20px #0000002e;z-index:80;transition:opacity,transform,visibility;transition-duration:70ms,.25s,.25s;transition-timing-function:linear,cubic-bezier(.23,1,.32,1);transition-delay:25ms,50ms,0ms;max-height:500px;overflow:auto}.multi-select__menu__item{box-sizing:border-box;padding:13px;display:flex;justify-content:space-between}.multi-select__menu__item-radio{flex:1}.multi-select__menu__item-text{margin-left:10px}.multi-select__menu__item-counter{display:flex;justify-content:center;align-items:center;align-self:center;margin-left:10px;width:24px;height:24px;background-color:#2f54eb;color:#fff;text-align:center;font-size:.9em;border-radius:50%}.multi-select__menu__item-counter-text{line-height:24px}@media screen and (max-width: 1024px){.multi-select__menu__item{padding:13px 8px}}.multi-select__menu-active{display:block}.new-design-multi{border:none;padding:6px 0!important;border-bottom:1px solid #88909b;border-radius:unset;box-shadow:none;min-height:55px;display:flex;align-items:center;font-weight:400;font-size:16px;line-height:22px}\n'],encapsulation:2})}(0,n.gn)([(0,i.SQ)()],B.prototype,"lang",void 0)},46884:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>l});var n=t(36895),e=t(97392),i=t(16611),d=t(48038),a=t(57639),u=t(93555),h=t(94650);let l=(()=>{class m{static#e=this.\u0275fac=function(L){return new(L||m)};static#t=this.\u0275mod=h.\u0275\u0275defineNgModule({type:m});static#n=this.\u0275inj=h.\u0275\u0275defineInjector({imports:[n.ez,d.Y,a.n,u.d,i.qw,e.Ps]})}return m})()},43679:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>h});var n=t(94650),e=t(15439),i=t.n(e),d=t(36895);function a(l,m){if(1&l){const x=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div")(1,"div",3),n.\u0275\u0275listener("click",function(){const w=n.\u0275\u0275restoreView(x).$implicit,B=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(B.changeValue(w))}),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd()()}if(2&l){const x=m.$implicit,O=m.index;n.\u0275\u0275attribute("data-qa","1658988592257"+O),n.\u0275\u0275advance(1),n.\u0275\u0275attribute("data-qa","1658988610798"+O),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(x.description)}}const u=["*"];let h=(()=>{class l{constructor(x){this._eref=x,this.periodChange=new n.EventEmitter,this.opened=!1}ngOnInit(){}onClick(x){!this.disabled&&!this._eref.nativeElement.contains(x.target)&&(this.opened=!1)}changeValue(x){x.momentSubtract&&(x.endTime=i()().subtract(x.momentSubtract[0],x.momentSubtract[1]).toDate()),this.periodChange.emit(x),setTimeout(()=>this.opened=!1)}triggerSelect(){this.disabled||(this.opened=!this.opened)}static#e=this.\u0275fac=function(O){return new(O||l)(n.\u0275\u0275directiveInject(n.ElementRef))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:l,selectors:[["app-no-input-select"]],hostBindings:function(O,L){1&O&&n.\u0275\u0275listener("click",function(B){return L.onClick(B)},!1,n.\u0275\u0275resolveDocument)},inputs:{items:"items",ngClass:"ngClass",disabled:"disabled"},outputs:{periodChange:"periodChange"},ngContentSelectors:u,decls:4,vars:4,consts:[["data-qa","1658988600655",1,"no-input-select",3,"click"],[1,"menu-select",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"item",3,"click"]],template:function(O,L){1&O&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275listener("click",function(){return L.triggerSelect()}),n.\u0275\u0275projection(1),n.\u0275\u0275elementStart(2,"div",1),n.\u0275\u0275template(3,a,3,3,"div",2),n.\u0275\u0275elementEnd()()),2&O&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("open",L.opened),n.\u0275\u0275property("ngClass",L.ngClass),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",L.items))},dependencies:[d.mk,d.sg],styles:['@charset "UTF-8";.menu-select[_ngcontent-%COMP%]{background:#fff;box-shadow:0 4px 20px #0000002e;position:absolute;z-index:3;min-width:200px;color:#88909b;visibility:hidden;opacity:0;transition:opacity,transform,visibility;transition-duration:70ms,.25s,.25s;transition-timing-function:linear,cubic-bezier(.23,1,.32,1);transition-delay:25ms,50ms,0ms}@media screen and (max-width: 380px){.menu-select[_ngcontent-%COMP%]{min-width:110px}}.item[_ngcontent-%COMP%]{padding:15px!important;font-size:16px!important;font-weight:400!important;color:#88909b!important;cursor:pointer}.item[_ngcontent-%COMP%]:hover{background-color:#f1f2f2;color:#000}.open[_ngcontent-%COMP%]{visibility:visible;opacity:1}.no-input-select[_ngcontent-%COMP%]{position:relative;display:inline-block}.tablet-menu[_ngcontent-%COMP%]{min-width:inherit;right:0}']})}return l})()},83e3:(Ee,Q,t)=>{"use strict";t.d(Q,{Q$:()=>x,Ul:()=>m,aT:()=>e});var n=t(6146);function e(L,w){let B=[];return w&&(B=B.concat(function h(L){const w=[];return L.forEach(B=>{w.push({capture:B.caption,value:B.value})}),w}(w))),w&&L.cause&&L.causeDisplay&&B.push(function l(L,w){return{capture:L,value:w}}(L.causeText,L.cause)),"accept_edit"===L.docType&&(B=function i(L){return[{capture:"INN",value:L.receiverInn},{capture:"KPP",value:L.receiverKpp},{capture:"Checking account",value:L.receiverAccount},{capture:"Bank BIK",value:L.bik},{capture:"Bank name",value:L.bank}]}(L)),(L.docType===n.o.DocSbpTransferByQrCode||L.docType===n.o.IncomingQrPayments)&&(B=function d(L){return[{capture:L.docType===n.o.IncomingQrPayments?"Deposit Account":"Write-off Account",value:L.accNumber},{capture:"UL Name",value:L.corrFullname},{capture:"corrName",value:L.corrBrandname},{capture:L.docType===n.o.IncomingQrPayments?"Payer bank name":"Corr bank name",value:L.bankName},{capture:L.docType===n.o.IncomingQrPayments?"Payer INN":"corrInn",value:L.corrInn},{capture:"Amount of payment with symbol",value:L.amount},{capture:"Amount of NDS",value:a(L)},{capture:"Amount of commission",value:"0.00"},{capture:"Total with NDS",value:L.amount},{capture:"Description",value:L.sbpComment},{capture:"Date and time of operation",value:O(L.createStamp)},{capture:"ID operation",value:L.sbpQrcId},{capture:"Status",value:L.statusCaption}]}(L)),"doc_platpor"===L.docType&&m(L.accNumber)&&B.push({capture:"\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f",value:m(L.accNumber)}),B.length||(B=function u(L){return[{capture:"INN",value:L.corrInn},{capture:"KPP",value:L.corrKpp},{capture:"Checking account",value:L.corrAccNumber},{capture:"Bank BIK",value:L.corrBankBik},{capture:"Bank name",value:L.corrBankName},{capture:"Requisites Corr Account",value:L.corrBankCorrAccount}]}(L)),L.declineInfo&&B.push({capture:"Refuse cause",value:L.declineInfo}),B}function a(L){return L.docType===n.o.IncomingQrPayments?L.taxAmount&&"0.00"!==L.taxAmount?L.taxAmount:"\u041d\u0414\u0421 \u043d\u0435 \u043e\u0431\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f":L.docType===n.o.DocSbpTransferByQrCode?L.ndsAmount&&"0.00"!==L.ndsAmount?L.ndsAmount:"\u041d\u0414\u0421 \u043d\u0435 \u043e\u0431\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f":void 0}function m(L){switch(L){case"40701810914000000012":return'\u0410\u041e "\u0423\u041a "\u0418\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438" - \u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442';case"40701810214000000013":return'\u0410\u041e "\u0423\u041a "\u0418\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438" - \u0414.\u0423. \u0417\u041f\u0418\u0424 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 "\u0412\u0435\u043d\u0447\u0443\u0440 \u041f\u043b\u044e\u0441"';case"40701810514000000014":return'\u0410\u041e "\u0423\u041a "\u0418\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438" - \u0414.\u0423. \u0417\u041f\u0418\u0424 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 "\u0412\u0435\u043a\u0442\u043e\u0440 \u041f\u043b\u044e\u0441"';case"40701810914000000038":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" -\u0414.\u0423.\u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u0415\u0432\u0440\u0430\u0437\u0438\u044f"';case"40701810714000000034":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442';case"40701810014000000035":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u041a\u0430\u043f\u0438\u0442\u0430\u043b-21 \u0432\u0435\u043a"';case"40701810314000000036":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u042d\u043a\u0441\u043a\u0430\u043b\u0438\u0431\u0443\u0440"';case"40701810414000000046":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423.\u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u0418\u0441\u0442\u0440\u0438\u043d\u0441\u043a\u0438\u0435 \u0437\u0435\u043c\u043b\u0438"';case"40701810014000000048":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423.\u0417\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u041f\u0430\u0435\u0432\u044b\u043c \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0424\u043e\u043d\u0434\u043e\u043c \u041d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438 "\u041c\u0410\u0420\u0422 \u0420\u0418\u042d\u041b\u0422\u0418"';case"40701810614000000066":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 "\u0421\u0424\u0415\u0420\u0410"';case"40701810514000000069":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 "\u0412\u043e\u0441\u0445\u043e\u0434"';case"40701810914000000070":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 "\u041e\u043a\u0435\u0430\u043d"';case"40701810214000000071":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438 "\u0422\u043e\u043f\u043e\u043b\u044c"';default:return""}}function x(L){switch(L){case"30599776":return'\u0410\u041e "\u0423\u041a "\u0418\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438" - \u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442';case"30599774":return'\u0410\u041e "\u0423\u041a "\u0418\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438" - \u0414.\u0423. \u0417\u041f\u0418\u0424 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 "\u0412\u0435\u043d\u0447\u0443\u0440 \u041f\u043b\u044e\u0441"';case"30599775":return'\u0410\u041e "\u0423\u041a "\u0418\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438" - \u0414.\u0423. \u0417\u041f\u0418\u0424 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 "\u0412\u0435\u043a\u0442\u043e\u0440 \u041f\u043b\u044e\u0441"';case"30219215":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" -\u0414.\u0423.\u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u0415\u0432\u0440\u0430\u0437\u0438\u044f"';case"30219214":return'\u0410\u041a\u0426\u0418\u041e\u041d\u0415\u0420\u041d\u041e\u0415 \u041e\u0411\u0429\u0415\u0421\u0422\u0412\u041e "\u0426\u0415\u041d\u0422\u0420\u0410\u041b\u042c\u041d\u0410\u042f \u0422\u0420\u0410\u0421\u0422\u041e\u0412\u0410\u042f \u041a\u041e\u041c\u041f\u0410\u041d\u0418\u042f"';case"30219210":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u041a\u0430\u043f\u0438\u0442\u0430\u043b-21 \u0432\u0435\u043a"';case"30219212":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u042d\u043a\u0441\u043a\u0430\u043b\u0438\u0431\u0443\u0440"';case"30219213":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423.\u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043f\u0430\u0435\u0432\u044b\u043c \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c "\u0418\u0441\u0442\u0440\u0438\u043d\u0441\u043a\u0438\u0435 \u0437\u0435\u043c\u043b\u0438"';case"30219211":return'\u0410\u041e "\u0426\u0415\u041d\u0422\u0420\u041e\u0422\u0420\u0410\u0421\u0422" - \u0414.\u0423.\u0417\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u041f\u0430\u0435\u0432\u044b\u043c \u0418\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0424\u043e\u043d\u0434\u043e\u043c \u041d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438 "\u041c\u0410\u0420\u0422 \u0420\u0418\u042d\u041b\u0422\u0418"';case"71623142":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 "\u0421\u0424\u0415\u0420\u0410"';case"74855233":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 "\u0412\u043e\u0441\u0445\u043e\u0434"';case"74855234":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 "\u041e\u043a\u0435\u0430\u043d"';case"74855232":return'\u041e\u041e\u041e "\u0423\u041a "\u0410\u043b\u044c\u0432\u0430-\u0424\u0438\u043d\u0430\u043d\u0441" \u0414.\u0423. \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0417\u041f\u0418\u0424 \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438 "\u0422\u043e\u043f\u043e\u043b\u044c"';default:return""}}function O(L,w,B){const _=new Date(L);if("Invalid Date"===_.toString())return L;let y=_.getDate();y<10&&(y=`0${y}`);let $=_.getMonth()+1;$<10&&($=`0${$}`);const C=_.getFullYear();let T=_.getHours();T<10&&(T=`0${T}`);let j=_.getMinutes();j<10&&(j=`0${j}`);let I=_.getSeconds();return I=1===I.toString().length?`0${I}`:I,w?B?`${y}.${$}.${C}${B} ${T}:${j}:${I}`:`${y}.${$}.${C} ${T}:${j}:${I}`:B?`${y}.${$}.${C}${B} ${T}:${j}`:`${y}.${$}.${C} ${T}:${j}`}},55324:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>Sn});var n=t(97582),e=t(94650),i=t(16611),d=t(15439),a=t.n(d),u=t(77579),h=t(39841),l=t(39646),m=t(4128),x=t(39300),O=t(82722),L=t(70262),w=t(54004),B=t(28746),_=t(6146),y=t(30723),$=t(45835),C=t(56108),T=t(26871),j=t(36229),I=t(57677),F=t(15848),z=t(77932),X=t(54128),P=(t(66266),t(63471)),E=t(49310),R=t(40929),ne=t(38101),G=t(44180),ce=t(14228),xe=t(39486),we=t(3751),Ge=t(15644),ct=t(29198),pe=t(37601),Ce=t(9149),U=t(70332),H=t(76751),Z=t(88581),oe=t(92008),Pe=t(88701),Ie=t(75885),pt=t(25781),Ht=t(75568),Wt=t(46923),Xe=t(24201),Qe=t(36895),Be=t(90995),at=t(44509),lt=t(98504);function Dt(ke,ge){1&ke&&e.\u0275\u0275element(0,"img",29)}function Yt(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"span",30),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,q.operation.label?q.operation.label:q.aliasOfProductName,q.lang)," ")}}function Tt(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"span",31),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(q.operation.loanAgreementNumber)}}function ot(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"span",32),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275property("title",e.\u0275\u0275pipeBind2(1,2,"RUR payment with CTI",q.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,5,"CTI",q.lang))}}function Gt(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"span",32),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275property("title",e.\u0275\u0275pipeBind2(1,2,"Bank-partner",q.lang)+" "+q.operation.bankName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,5,"BP",q.lang))}}function wt(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("\u2116 ",q.operation.docNumber,", ")}}function Ze(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",q.operation.details," ")}}function Ut(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",33),e.\u0275\u0275template(1,wt,2,1,"span",23),e.\u0275\u0275template(2,Ze,2,1,"span",23),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",q.operation.docNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",q.operation.details)}}function vn(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",34),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",q.operation.subtitle," ")}}function xn(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"appCurrency"),e.\u0275\u0275pipe(3,"currencySymbol"),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275propertyInterpolate("ngClass","0"===q.operation.charType||"incoming_transferbyqrcode_ul"===q.operation.docType?"inc":"out"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate3(" ","0"===q.operation.charType||"incoming_transferbyqrcode_ul"===q.operation.docType?"+ ":"- ","",e.\u0275\u0275pipeBind1(2,4,q.amount)," ",e.\u0275\u0275pipeBind1(3,6,q.operation.currency)," ")}}function bn(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",36),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"span",37),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"appCurrency"),e.\u0275\u0275pipe(6,"currencySymbol"),e.\u0275\u0275elementEnd()()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275styleProp("color",q.operation.statusColor),e.\u0275\u0275classProp("status_paid",!q.operation.unpaidAmount)("status_unpaid",q.operation.unpaidAmount),e.\u0275\u0275property("ngClass",q.getQRStatusColor(q.operation.status)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,11,q.operation.status,q.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",!q.operation.unpaidAmount),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(5,14,q.operation.unpaidAmount)," ",e.\u0275\u0275pipeBind1(6,16,q.operation.currency)," ")}}function hn(ke,ge){if(1&ke&&e.\u0275\u0275element(0,"div",38),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275property("innerHTML",q.operation.innerHTMLStatus,e.\u0275\u0275sanitizeHtml)}}function pn(ke,ge){if(1&ke){const q=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-menu-select",39),e.\u0275\u0275listener("actionDone",function(Oe){e.\u0275\u0275restoreView(q);const je=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(je.onButtonActionDone(Oe))})("changeEvent",function(Oe){e.\u0275\u0275restoreView(q);const je=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(je.operationActionChange(Oe))})("openChanged",function(Oe){e.\u0275\u0275restoreView(q);const je=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(je.onMenuSelectOpen(Oe))}),e.\u0275\u0275elementStart(1,"button",40),e.\u0275\u0275element(2,"span",41),e.\u0275\u0275elementEnd()()}if(2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275property("hidden",null==q.config?null:q.config.hideSvetofor)("icon",!0)("items",q.actions)}}function In(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,q.operation.alertMessage,q.lang)," ")}}function Dn(ke,ge){1&ke&&e.\u0275\u0275element(0,"app-loader")}function Tn(ke,ge){1&ke&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275element(1,"app-loader"),e.\u0275\u0275elementEnd())}function mn(ke,ge){if(1&ke&&e.\u0275\u0275template(0,Tn,2,0,"div",42),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",q.config.isOpenable&&q.operation.isOpen)}}function Yn(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("childDocuments: ",q.operation.childDocumentsIds,"")}}function cn(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"li",50)(1,"div",51),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",52),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&ke){const q=e.\u0275\u0275nextContext(),J=q.index,Oe=q.$implicit,je=e.\u0275\u0275nextContext(2);e.\u0275\u0275attribute("data-qa","1657792166917"+J),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,4,Oe.capture,je.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",je.getQRStatusColor(Oe.value)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Oe.value," ")}}function Nn(ke,ge){if(1&ke&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,cn,6,7,"li",49),e.\u0275\u0275elementContainerEnd()),2&ke){const q=ge.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",q.value)}}function Bt(ke,ge){if(1&ke){const q=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",53)(1,"app-button-actions",54),e.\u0275\u0275listener("actionDone",function(Oe){e.\u0275\u0275restoreView(q);const je=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(je.onButtonActionDone(Oe))})("buttonPending",function(Oe){e.\u0275\u0275restoreView(q);const je=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(je.pending=Oe)}),e.\u0275\u0275elementEnd()()}if(2&ke){const q=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("buttons",q.operation.info.buttons)}}function En(ke,ge){1&ke&&e.\u0275\u0275element(0,"app-button",57),2&ke&&e.\u0275\u0275property("text","Learn more")("type","small-bordered")}function Wn(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",55),e.\u0275\u0275template(1,En,1,2,"app-button",56),e.\u0275\u0275elementEnd()),2&ke){const q=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("queryParams",q.operation.info.learnMoreButton.queryParams)("routerLink",q.operation.info.learnMoreButton.link),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","requestCancelUlDocument"!==q.operation.type&&"request_cancel"!==q.operation.type)}}function rn(ke,ge){if(1&ke&&(e.\u0275\u0275elementStart(0,"div",43)(1,"ul",44),e.\u0275\u0275template(2,Nn,2,1,"ng-container",45),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",46),e.\u0275\u0275template(4,Bt,2,1,"div",47),e.\u0275\u0275template(5,Wn,2,3,"div",48),e.\u0275\u0275elementEnd()()),2&ke){const q=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",q.operation.info.rows),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",q.operation.info.buttons),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==q.operation.info.learnMoreButton?null:q.operation.info.learnMoreButton.show)&&"cardDoc"===q.operation.docType)}}class Sn{get shouldPrintOnlyInPdf(){return this.DOC_TYPES_FOR_DIRECT_PRINT_PDF.includes(this.operation?.docType)}constructor(ge,q,J,Oe,je,Et,dt,rt,qe,ze,zt,vt,Rt,gt,sn,wn,Qn,pi){this.translation=ge,this.documentService=q,this.modalService=J,this.router=Oe,this.changeDetectorRef=je,this.operationService=Et,this.productsService=dt,this.apiService=rt,this.configUtilService=qe,this.vedService=ze,this.userDataService=zt,this.toast=vt,this.actionSourceService=Rt,this.mailService=gt,this.documentSignService=sn,this.appConfigService=wn,this.oneWindowTableService=Qn,this.lastOperationsService=pi,this.subscriptions=[],this.config={hideCheckbox:!1,hideSvetofor:!1,isOpenable:!0},this.infoToggled=new e.EventEmitter,this.menuSelectOpened=new e.EventEmitter,this.operationDeleted=new e.EventEmitter,this.icons=new P.R(this.translation).getIcons(),this.actions=[],this.$unsubscribe=new u.x,this.DOC_TYPES_FOR_DIRECT_PRINT_PDF=[_.o.DocPlatporBp,_.o.TransferRests]}ngOnChanges(){this.subscriptions.push((0,h.a)([this.operationService.detectChanges$,this.productsService.getProducts()]).subscribe(()=>{if(this.aliasOfProductName=this.operation.ownerAccountNumber?this.getAliasOfProductByName(this.operation.ownerAccountNumber,this.operation?.accNumber):void 0,this.actions=this.operationService.getActions(this.icons,this.operation.actions),this.operation?.info&&this.shouldPrintOnlyInPdf){const ge=this.actions.map(q=>q.name).filter(q=>"view"!==q);this.operation.info.buttons=[...this.configUtilService.makeButtonActions({actions:this.actions.map(q=>q.name),...this.operation},ge,q=>"print"===q?{inPopup:!1}:{})]}if(this.operation?.info&&this.operation.docType===_.o.DocPlatporSBPSalary&&(this.operation.info.buttons=[...this.configUtilService.makeButtonActions({actions:this.actions.map(ge=>ge.name),...this.operation},null)]),"for_check"===this.operation.statusCode&&(this.operation?.info?.buttons&&(this.operation.info.buttons=[]),this.actions=[]),"required_check"===this.operation.statusCode||"clarify_check"===this.operation.statusCode){const ge=["sign","sign_on_client"];this.operation?.info?.buttons&&(this.operation.info.buttons=this.operation?.info?.buttons.filter(q=>!ge.includes(q.type))),this.actions=this.actions.filter(q=>!ge.includes(q.name))}if(this.userDataService.hasAnyBlocking$.getValue()){const ge=["createPayment","repeat","create_payment"];this.operation?.info?.buttons&&(this.operation.info.buttons=this.operation?.info?.buttons.filter(q=>!ge.includes(q.type))),this.actions=this.actions.filter(q=>!ge.includes(q.name))}this.changeDetectorRef.detectChanges()})),this.amount=this.operation.amount?this.absAmount(this.operation.amount):void 0,this.changeDetectorRef.detectChanges()}getQRStatusColor(ge){if("doc_sbp_transferbyqrcode_ul"===this.operation.docType||"incoming_transferbyqrcode_ul"===this.operation.docType||this.operation.sbpFpMessageId){if(!ge)return"";switch(ge.toString().toLowerCase()){case"\u043e\u0442\u043a\u0430\u0437\u0430\u043d":case"\u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d \u0431\u0430\u043d\u043a\u043e\u043c":case"decline":return"canceled";case"\u043e\u043f\u043b\u0430\u0447\u0435\u043d":case"end":case"\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e":case"\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d":return"send";case"\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"in_work":case"\u043f\u043b\u0430\u0442\u0435\u0436 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"for_send":case"send":case"accept":case"changes_in_process":return"process";default:return"default"}}return""}getAliasOfProductByName(ge,q){const J=this.productsService.products,Oe=ge.toString();let je;return J&&(je=J&&J.filter(Et=>Et.id===Oe)[0]?J.filter(Et=>Et.id===Oe)[0]:J.filter(Et=>Et.number===Oe)[0]),je&&je.alias?je.alias:je&&je.info?je.info:q||Oe}absAmount(ge){return Math.abs(parseFloat(ge.toString()))}toggleDetails(){this.operation.isOpenable&&(this.operation.isOpen=!this.operation.isOpen,this.infoToggled.emit(this.operation))}onMenuSelectOpen(ge){ge&&this.menuSelectOpened.emit()}operationActionChange(ge){switch(ge.name){case"print":this.print();break;case"update":this.update();break;case"delete":this.delete();break;case"copy":this.copy();break;case"create_template":this.createTemplate();break;case"send":this.send();break;case"sendPrintForm":this.sendPrintForm();break;case"print_last":this.printLast();break;case"repeat":this.repeat();break;case"create_payment":this.createPayment();break;case"delete_sign":this.deleteSign();break;case"request_cancel":this.requestCancel();break;case"cancel":this.operation.type===_.o.DocPlatporBp?this.checkReadyToAutoCancel(this.operation.id):this.cancel();break;case"sign_on_client":this.signClient();break;case"sign_on_client_single_window":this.signClientSingleWindow();break;case"answer_request":this.createRequestResponse();break;case"withdrawalOrder":this.goToWithdrawalOrder();break;case"sign_list":this.showSigns();break;case"print_awiso":case"print_client_payment":this.printAwiso();break;case"create_cti":this.createCTI();break;case"create_single_window":this.createOneWindowDocument()}this.actionSourceService.isButtonClick.next(!1),this.actionSourceService.actionType.next(ge.name),this.actionSourceService.operationSign.next("0"===this.operation.charType?E.j.Plus:E.j.Minus)}createRequestResponse(){this.documentService.getPaymentRequisitesRequest(this.operation.mibUpsDocID||this.operation.id).subscribe(q=>{this.router.navigate(["/mail-info"],{queryParams:{mailType:"answer",from:"desktop",operationsTab:"Plan"}}),this.mailService.openedMail$.next(q)},q=>{this.toast.show(q.error.errorText||q.error||q,"error"),this.pending=!1})}print(){this.shouldPrintOnlyInPdf?this.documentService.getFile(`print/pdf?doc_ids=${this.operation?.id}`):this.modalService.open(T.O,{header:"Print document",styleMode:"forSign",inputs:{operation:this.operation}})}update(){let ge,q;switch(this.pending=!0,this.operation.docType){case"doc_platpor_curr":ge="/ved/transfer-curr",q={id:this.operation.id,docType:this.operation.docType,action:"edit"};break;case _.o.DocPlatporCurrBp:ge=`/ved/${X.q.COMPLEX_PAYMENT_NO_ATTACH}`,q={id:this.operation.id,docType:this.operation.docType,action:"edit"};break;case _.o.DocPlatporCurrComplex:ge=`/ved/${X.q.COMPLEX_PAYMENT}`,q={id:this.operation.id,docType:this.operation.docType,action:"edit"};break;case"doc_currsell":case"doc_currbuy":case"doc_platpor_conv":ge="currency-exchange",q={id:this.operation.id,docType:this.operation.docType,action:"edit"};break;case"doc_payment_request_outgoing":return void this.documentService.getDocumentEdit(this.operation.docIds).subscribe(J=>{this.documentService.paymentData$.next(J),this.pending=!1,this.router.navigate(["/payment-req-out"],{queryParams:{prefill:!1}}).then()});case"doc_platpor_bp":return this.pending=!1,void this.router.navigate(["/transfer-rur-cti"],{queryParams:{prefill:!1,id:this.operation.id,docType:this.operation.docType,action:"edit"}});case _.o.TransferRests:ge="/balance-transfer",q={prefill:!1,id:this.operation.id,docType:this.operation.docType,action:"edit"};break;default:return void this.documentService.getDocumentEdit(this.operation.docIds).subscribe(J=>{this.documentService.paymentData$.next(J),this.pending=!1,this.router.navigate(["/transfer-rur"],{queryParams:{prefill:!1}})})}this.router.navigate([ge],{queryParams:q})}delete(){this.modalService.open($.q,{header:"Deletion of an order",inputs:{operation:this.operation,deletionDone:()=>{this.operationDeleted.emit()}}})}copy(){let ge,q;switch(this.pending=!0,this.operation.docType){case"doc_platpor_curr":ge="/ved/transfer-curr",q={id:this.operation.id,docType:this.operation.docType,action:"copy"};break;case _.o.DocPlatporCurrBp:ge=`/ved/${X.q.COMPLEX_PAYMENT_NO_ATTACH}`,q={id:this.operation.id,docType:this.operation.docType,action:"copy"};break;case _.o.DocPlatporCurrComplex:ge=`/ved/${X.q.COMPLEX_PAYMENT}`,q={id:this.operation.id,docType:this.operation.docType,action:"copy"};break;case _.o.DocPlatporBp:ge="/transfer-rur-cti",q={prefill:!1,id:this.operation?.mibUpsDocID??this.operation.id,docType:this.operation.docType,action:"copy"};break;case _.o.TransferRests:ge="/balance-transfer",q={prefill:!1,id:this.operation?.mibUpsDocID??this.operation.id,docType:this.operation.docType,action:"copy"};break;case"doc_currsell":case"doc_currbuy":case"doc_platpor_conv":ge="currency-exchange",q={id:this.operation.id,docType:this.operation.docType,action:"copy"};break;default:return void this.documentService.createDocumentCopy(this.operation.docIds).subscribe({next:J=>{this.documentService.paymentData$.next(J),this.pending=!1,this.router.navigate(["/transfer-rur"],{queryParams:{prefill:!1}})},error:J=>{this.toast.show(J.error?J.error.errorText:J.errorText,"error"),this.pending=!1,this.changeDetectorRef.detectChanges()}})}this.router.navigate([ge],{queryParams:q}).then()}createTemplate(){this.modalService.open(F.z,{header:"Save to favorites",inputs:{docId:this.operation.docIds,actionAfter:()=>{this.modalService.close()}}})}send(){this.pending=!0,this.documentService.putDocumentIntoBank(this.operation.docIds,this.operation.docType).subscribe({next:()=>{this.pending=!1,this.operationDeleted.emit(),this.toast.show("Document sent","success"),this.changeDetectorRef.detectChanges()},error:ge=>{this.toast.show(ge.errorText,"error"),this.changeDetectorRef.detectChanges()}})}printLast(){this.pending=!0,this.operationService.printOperation(this.operation.mibUpsDocID,this.operation.id).subscribe(()=>{this.pending=!1})}sendPrintForm(){this.modalService.open(C.K,{header:"Sending to email",styleMode:"forSign",overflow:"initial",size:"medium-sign",isGrayOverlay:!0,inputs:{id:this.operation.id}})}repeat(){this.operationService.repeatOperation(this.operation)}createPayment(){this.operationService.createPayment(this.operation)}deleteSign(){this.modalService.open(I.n,{header:"Delete sign",inputs:{operation:this.operation,changeDetectorRef:this.changeDetectorRef,updateActions:()=>{this.operationDeleted.emit(),this.toggleDetails(),this.changeDetectorRef.detectChanges()}},overflow:"initial"})}cancel(){this.appConfigService.settings$.pipe((0,x.h)(ge=>ge.isLoaded),(0,O.R)(this.$unsubscribe)).subscribe(ge=>{let q="";q=ge.ulSettings["OTHER/MAIL20"]?"/mail-new":"/mailing-new",this.router.navigate([q],{queryParams:{operation:"revoke",docType:this.operation.docType,docId:this.operation.docIds}})}).unsubscribe()}checkReadyToAutoCancel(ge){this.operationService.checkReadyToAutoCancel(ge).subscribe(q=>{q?this.requestCancel():this.cancel()})}requestCancel(){this.router.navigate(["/recall-order"],{queryParams:{docId:this.operation.docIds,docType:this.operation.docType,docModule:this.operation.docModule}})}signClient(ge=!1){let q;switch(this.operation.docType){case"request_cancel":q={docId:this.operation.id,docType:this.operation.docType,cancel:!0},this.router.navigate(["/recall-order"],{queryParams:q});break;case"doc_currsell":case"doc_currbuy":case"doc_platpor_conv":case"doc_transit_pay_doc":q={docId:this.operation.id,docType:this.operation.docType,docModule:this.operation.docModule},this.router.navigate(["/document-details"],{queryParams:q});break;case _.o.DocPlatporBp:this.lastOperationsService.setSessionStorage(this.userDataService.STORAGE_NAME_PARAMS_FOR_SIGN,JSON.stringify({filter:[{docIds:this.operation.id,docModule:"ibankul",docType:this.operation.docType},{docIds:this.operation.inq181,docModule:"ibankul_curr",docType:_.o.InqCurr181}],pathData:{capture:"Finance",href:"/desktop",params:{operationsTab:"ForSign"}}})),this.router.navigate(["package-sign"]);break;case _.o.DocPlatporCurrComplex:case _.o.DocPlatporCurrBp:this.router.navigate(["package-sign"],{queryParams:{docIds:[this.operation.id,this.operation.inq181].join(","),docType:this.operation.docType}});break;default:if(!this.operation.accNumber&&this.operation.ownerAccountNumber){const Oe=this.productsService.getProductNumberById(this.operation.ownerAccountNumber);Oe&&(this.operation.accNumber=Oe)}q={docId:this.operation.id,docType:this.operation.docType,docModule:this.operation.docModule,accNumber:this.operation.accNumber},ge&&(q.backUrl="one-window"),this.router.navigate(["/sign"],{queryParams:q})}}goToWithdrawalOrder(){this.pending=!0,this.subscriptions.push(this.apiService.post("metinv/curr/transit",{}).pipe((0,L.K)(ge=>(this.toast.show(ge.errorText??ge.message,"error"),(0,l.of)(null)))).subscribe(ge=>{this.pending=!1,this.changeDetectorRef.detectChanges(),!ge||ge.debitAccounts.find(je=>je.number===this.operation.accNumber)?this.router.navigate(["/ved/transit-acc-order"],{queryParams:{id:this.operation.docIds,action:"withdrawalOrder"}}):this.toast.show("Account unavailable","error")}))}showSigns(){let ge=this.operation.docIds;(this.operation.docType===_.o.DocPlatporBp||this.operation.docType===_.o.TransferRests)&&(ge=this.operation?.mibUpsDocID??this.operation.docIds),this.pending=!0,this.apiService.get(`document/signature/metinv?doc_id=${ge}`).subscribe(q=>{this.pending=!1,this.changeDetectorRef.detectChanges();const J=this.configUtilService.getArray(q.signature);this.modalService.open(j.M,{header:"Electronic Document Signatures",size:"big",inputs:{sings:J}})})}printAwiso(){(0,m.D)([this.userDataService.getCurrentRoles(),this.vedService.requestDocumentInfo({docModule:"ibankul_curr",docType:"notification_crediting",id:this.operation.docIds})]).pipe((0,w.U)(([ge,q])=>{const J=new Set(ge);return{docNumber:q.docNumber,docDate:a()(q.docDate).format("YYYY/MM/DD"),isClientBank:J.has(y.NZ)}})).subscribe(({docNumber:ge,docDate:q,isClientBank:J})=>{this.documentService.getFile(`pay/notification_crediting_metinv${J?"/txt_file":""}?docNumber=${ge}&docDate=${q}`)})}createCTI(){this.router.navigate(["/ved/metib-currency-transaction-info"],{queryParams:{id:this.operation.docIds,action:z.rL.NOTIFICATION_CREDITING}}).catch(q=>console.error(q))}selectOperation(ge,q){this.operationService.selectOperation(ge,q)}onButtonActionDone(ge){switch(ge){case"delete":case"delete_sign":this.operationDeleted.emit();break;case"send":this.operationActionChange({name:"send"})}}ngOnDestroy(){this.subscriptions.forEach(ge=>{ge&&ge.unsubscribe()})}signClientSingleWindow(){this.oneWindowTableService.operationText$.next("\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0447\u0451\u0442\u0430!"),this.oneWindowTableService.checkReadyToPay([this.operation.idBankGateDocId]).pipe((0,B.x)(()=>this.oneWindowTableService.operationText$.next(null)),(0,L.K)(ge=>(this.toast.show(ge.errorText??ge.message,"error"),(0,l.of)(!1))),(0,O.R)(this.$unsubscribe)).subscribe(ge=>{ge?this.signClient(!0):this.oneWindowTableService.changeFilter(this.oneWindowTableService.filter$.value).pipe((0,O.R)(this.$unsubscribe)).subscribe()})}createOneWindowDocument(){this.operation.idBankGateDocId&&this.router.navigate(["ved/one-window-form"],{queryParams:{form:this.operation.formType,docId:this.operation.idBankGateDocId,backUrl:"one-window"}})}static#e=this.\u0275fac=function(q){return new(q||Sn)(e.\u0275\u0275directiveInject(i.D7),e.\u0275\u0275directiveInject(R.Z),e.\u0275\u0275directiveInject(ne.Z),e.\u0275\u0275directiveInject(G.F0),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(ce.f),e.\u0275\u0275directiveInject(xe.su),e.\u0275\u0275directiveInject(we.s),e.\u0275\u0275directiveInject(Ge.Pj),e.\u0275\u0275directiveInject(ct.$),e.\u0275\u0275directiveInject(pe.M),e.\u0275\u0275directiveInject(Ce.j),e.\u0275\u0275directiveInject(U.S),e.\u0275\u0275directiveInject(H.Y),e.\u0275\u0275directiveInject(Z.V),e.\u0275\u0275directiveInject(oe._),e.\u0275\u0275directiveInject(Pe.S),e.\u0275\u0275directiveInject(Ie.o))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Sn,selectors:[["app-operation"]],inputs:{operation:"operation",config:"config",sourceOperation:"sourceOperation"},outputs:{infoToggled:"infoToggled",menuSelectOpened:"menuSelectOpened",operationDeleted:"operationDeleted"},features:[e.\u0275\u0275NgOnChangesFeature],decls:36,vars:29,consts:[["data-qa","1657792266684",1,"operation"],["data-qa","1657792072388",1,"operation__line",3,"click"],["data-qa","1657792086817",1,"last-operation__left-block"],[1,"last-operation__checkbox",3,"hidden"],["data-qa","1657792076804",3,"chosen","checkboxChange"],[1,"last-operation__info"],[1,"info-title"],["class","sbp-qr-logo","src","/assets/images/sbp_qr.svg",4,"ngIf"],[1,"operation__title"],[1,"info-title-wrapper"],["class","info-title__type",4,"ngIf"],["class","info-title__type loan-agreement",4,"ngIf"],["class","info-title__type loan-agreement",3,"title",4,"ngIf"],["class","info-description",4,"ngIf"],["class","operation__subtitle",4,"ngIf"],["data-qa","1657792091619",1,"last-operation__right-block"],[1,"last-operation__sum"],["class","value operation__amount",3,"ngClass",4,"ngIf"],["class","operation__status",3,"status_paid","status_unpaid","color","ngClass",4,"ngIf"],["class","operation__status",3,"innerHTML",4,"ngIf"],[1,"action-container"],["backgroundClass","operation","class","operation-dots","data-qa","1657792108288",3,"hidden","icon","items","actionDone","changeEvent","openChanged",4,"ngIf"],[1,"operation__alert"],[4,"ngIf"],[3,"hidden"],[3,"ngTemplateOutlet"],["loader",""],["childDocuments",""],["operationInfo",""],["src","/assets/images/sbp_qr.svg",1,"sbp-qr-logo"],[1,"info-title__type"],[1,"info-title__type","loan-agreement"],[1,"info-title__type","loan-agreement",3,"title"],[1,"info-description"],[1,"operation__subtitle"],[1,"value","operation__amount",3,"ngClass"],[1,"operation__status",3,"ngClass"],[1,"operation__unpaid-sum",3,"hidden"],[1,"operation__status",3,"innerHTML"],["backgroundClass","operation","data-qa","1657792108288",1,"operation-dots",3,"hidden","icon","items","actionDone","changeEvent","openChanged"],["data-qa","1657792116201",1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"],["class","details",4,"ngIf"],[1,"details"],["data-qa","1657792222505",1,"details__info-list"],[4,"ngFor","ngForOf"],["data-qa","1657792233844",1,"details__buttons-block"],["class","details__buttons-wrap",4,"ngIf"],["class","details__more","data-qa","1657792254261",3,"queryParams","routerLink",4,"ngIf"],["class","details__info-item",4,"ngIf"],[1,"details__info-item"],[1,"details__info-capture"],[1,"details__info-value",3,"ngClass"],[1,"details__buttons-wrap"],["data-qa","1657792237808",3,"buttons","actionDone","buttonPending"],["data-qa","1657792254261",1,"details__more",3,"queryParams","routerLink"],["data-qa","1657792243061",3,"text","type",4,"ngIf"],["data-qa","1657792243061",3,"text","type"]],template:function(q,J){if(1&q&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return J.toggleDetails()}),e.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"app-checkbox",4),e.\u0275\u0275listener("checkboxChange",function(je){return J.selectOperation(je,J.operation)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",5)(6,"div",6),e.\u0275\u0275template(7,Dt,1,0,"img",7),e.\u0275\u0275elementStart(8,"span",8),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",9),e.\u0275\u0275template(12,Yt,3,4,"span",10),e.\u0275\u0275template(13,Tt,2,1,"span",11),e.\u0275\u0275template(14,ot,4,8,"span",12),e.\u0275\u0275template(15,Gt,4,8,"span",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(16,Ut,3,2,"div",13),e.\u0275\u0275template(17,vn,2,1,"div",14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(18,"div",15)(19,"div",16),e.\u0275\u0275template(20,xn,4,8,"div",17),e.\u0275\u0275template(21,bn,7,18,"div",18),e.\u0275\u0275template(22,hn,1,1,"div",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"div",20),e.\u0275\u0275template(24,pn,3,3,"app-menu-select",21),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(25,"div",22),e.\u0275\u0275template(26,In,3,4,"span",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",24),e.\u0275\u0275elementContainer(28,25),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(29,Dn,1,0,"app-loader",23),e.\u0275\u0275template(30,mn,1,1,"ng-template",null,26,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(32,Yn,2,1,"ng-template",null,27,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(34,rn,6,3,"ng-template",null,28,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&q){const Oe=e.\u0275\u0275reference(31),je=e.\u0275\u0275reference(33),Et=e.\u0275\u0275reference(35);e.\u0275\u0275classProp("operation_opened",J.operation.isOpen),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("operation__line_border",J.operation.isOpen)("operation__line_openable",J.operation.isOpenable),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",J.config.hideCheckbox),e.\u0275\u0275advance(1),e.\u0275\u0275property("chosen",J.operation.chosen),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf","doc_sbp_transferbyqrcode_ul"===J.operation.docType||"incoming_transferbyqrcode_ul"===J.operation.docType||J.operation.sbpFpMessageId),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(10,26,"request_cancel"===J.operation.docType?"Recall statement":J.operation.cause?J.operation.cause:J.operation.counterpartName,J.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",J.operation.label||J.aliasOfProductName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",J.operation.loanAgreementNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","doc_platpor_bp"===J.operation.docType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","transfer_rests"===J.operation.docType&&(null==J.operation?null:J.operation.bankName)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",J.operation.docNumber||J.operation.details),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",J.operation.subtitle),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("empty",!J.amount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",J.amount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",J.operation.status&&!J.operation.innerHTMLStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",J.operation.innerHTMLStatus),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",J.actions&&0!==J.actions.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",J.operation.alertMessage),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!J.operation.isOpen),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",J.operation.childDocumentsIds?je:J.operation.info?Et:Oe),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",J.pending)}},dependencies:[pt.b,Ht.R,Wt.n,Xe.r,Qe.mk,Qe.sg,Qe.O5,Qe.tP,G.rH,Be.r,i.X$,at.G,lt.H],styles:['@charset "UTF-8";ul[_ngcontent-%COMP%], li[_ngcontent-%COMP%]{display:block;margin:0;padding:0}.operation[_ngcontent-%COMP%]{width:100%;position:relative;padding:20px 0}.operation_opened[_ngcontent-%COMP%]{box-shadow:0 13px 40px #00000021}.operation__alert[_ngcontent-%COMP%]{align-items:center;text-align:end;padding:0 40px;color:#d9291e;line-height:normal}.operation__title[_ngcontent-%COMP%]{max-width:68%;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:18px;line-height:25px;color:#444;flex:1;overflow:hidden;word-break:break-word}.operation__subtitle[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;margin-top:5px;color:#88909b;font-size:16px;line-height:normal}.operation__amount[_ngcontent-%COMP%]{font-size:20px;white-space:nowrap;text-align:right}.operation__amount.inc[_ngcontent-%COMP%]{color:#28b26d}.operation__amount.out[_ngcontent-%COMP%]{color:#d9291e}.last-operation__checkbox[_ngcontent-%COMP%]{align-self:center;margin-right:15px}.operation__status[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:15px;line-height:20px;text-align:right;color:#88909b;white-space:nowrap}.operation__status.canceled[_ngcontent-%COMP%]{color:#d9291e}.operation__status.send[_ngcontent-%COMP%]{color:#28b26d}.operation__status[_ngcontent-%COMP%]     .error{color:#d9291e;font-size:15px}.operation__unpaid-sum[_ngcontent-%COMP%]{color:#444}.operation__line[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-between;position:relative;padding:0 20px;border-bottom:1px solid transparent}.operation__line_openable[_ngcontent-%COMP%]{cursor:pointer}.operation__line_border[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.last-operation__left-block[_ngcontent-%COMP%]{display:flex;width:73%}.last-operation__right-block[_ngcontent-%COMP%]{display:flex;align-items:center;width:22%;justify-content:flex-end;grid-gap:15px}.last-operation__right-block[_ngcontent-%COMP%]   .last-operation__sum[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;justify-content:flex-start;width:90%}.action-container[_ngcontent-%COMP%]{width:10%}.operation__menu-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:12px;margin-left:16px;padding:0;border:none;background:none;outline:none;transition:opacity .2s ease;opacity:.6;cursor:pointer}.operation__menu-btn[_ngcontent-%COMP%]:hover{opacity:1}.operation__menu-btn-span[_ngcontent-%COMP%], .operation__menu-btn[_ngcontent-%COMP%]:before, .operation__menu-btn[_ngcontent-%COMP%]:after{content:"";display:block;width:5px;height:5px;border-radius:50%;background-color:#88909b}.operation__menu-btn-span[_ngcontent-%COMP%]{margin:5px 0}.operation__menu-btn[hidden][_ngcontent-%COMP%]{display:none}.details[_ngcontent-%COMP%]{position:relative;display:flex;padding:30px 30px 30px 20px;min-height:218px}.details[hidden][_ngcontent-%COMP%]{display:none}.details__info-list[_ngcontent-%COMP%]{flex:1.2;padding:0 9% 0 0}.details__info-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #dedede;padding:10px 0}.details__info-item[_ngcontent-%COMP%]:first-child{padding:0 0 10px}.details__info-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.details__info-capture[_ngcontent-%COMP%], .details__info-value[_ngcontent-%COMP%]{color:#444;font-size:16px}.details__info-capture[_ngcontent-%COMP%]{white-space:nowrap}.details__info-value[_ngcontent-%COMP%]{text-align:right;padding-left:15px}.details__buttons-block[_ngcontent-%COMP%]{flex:.8;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.details__buttons-wrap[_ngcontent-%COMP%]{width:100%}.details__more[_ngcontent-%COMP%]{outline:none;margin-top:16px}.operation-alert[_ngcontent-%COMP%]{padding:30px 30px 30px 20px}.info-description[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:15px;line-height:20px;margin-top:8px;padding-top:0!important}.info-title__type-mp[_ngcontent-%COMP%]{font-size:.75em!important}.last-operation__info[_ngcontent-%COMP%]{margin-right:15px;overflow:hidden;width:100%}.last-operation__info[_ngcontent-%COMP%]   .info-title[_ngcontent-%COMP%]{width:100%;display:flex}@media screen and (max-width: 920px){.last-operation__info[_ngcontent-%COMP%]   .info-title[_ngcontent-%COMP%]{display:initial}}.last-operation__info[_ngcontent-%COMP%]   .info-title__type[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;line-height:19px;padding:2px 12px;background:#f1f2f2;border-radius:20px;margin-top:8px;margin-left:4px;color:#2f54eb;height:22px;white-space:nowrap}.last-operation__info[_ngcontent-%COMP%]   .info-title__type.loan-agreement[_ngcontent-%COMP%]{color:#444}@media screen and (max-width: 920px){.last-operation__info[_ngcontent-%COMP%]   .info-title__type[_ngcontent-%COMP%]{display:none}}.last-operation__info[_ngcontent-%COMP%]   .info-title[_ngcontent-%COMP%]   .sbp-qr-logo[_ngcontent-%COMP%]{width:20px;height:30px;margin-right:10px}.last-operation__info[_ngcontent-%COMP%]   .info-description[_ngcontent-%COMP%]{word-break:break-all;padding-top:5px;color:#88909b}@media screen and (max-width: 920px){.last-operation__info[_ngcontent-%COMP%]   .info-description[_ngcontent-%COMP%]{max-width:450px}}.info-title-wrapper[_ngcontent-%COMP%]{min-width:200px}'],changeDetection:0})}(0,n.gn)([(0,i.SQ)()],Sn.prototype,"lang",void 0)},63471:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>n});class n{constructor(i){this.translation=i,this.OPERATION_ICONS=[{name:"print",icon:"printer",matIcon:"local_printshop",matStyleOutlined:!0,description:this.translation.translate("Print")},{name:"update",icon:"pencil",matIcon:"edit",matStyleOutlined:!0,description:this.translation.translate("Edit")},{name:"delete",icon:"delete",matIcon:"delete_forever",matStyleOutlined:!0,description:this.translation.translate("Delete")},{name:"copy",icon:"copy",matIcon:"file_copy",matStyleOutlined:!0,description:this.translation.translate("Copy")},{name:"create_template",icon:"star",matIcon:"star_outline",description:this.translation.translate("Create template")},{name:"send",icon:"send",matIcon:"send",matStyleOutlined:!0,description:this.translation.translate("Send")},{name:"delete_sign",icon:"delete_caption",svgIcon:"delete_caption",description:this.translation.translate("Delete sign")},{name:"sign_list",icon:"show_caption",svgIcon:"show_caption",description:this.translation.translate("Sign list")},{name:"request_cancel",icon:"recall",svgIcon:"recall",description:this.translation.translate("Request cancel")},{name:"revoke_document",icon:"recall",svgIcon:"recall",description:this.translation.translate("Request cancel")},{name:"repeat",icon:"repeat",matIcon:"replay",description:this.translation.translate("Repeat operation")},{name:"print_last",icon:"printer",matIcon:"local_printshop",matStyleOutlined:!0,description:this.translation.translate("Print")},{name:"create_payment",icon:"star",matIcon:"star_outline",description:this.translation.translate("Create payment")},{name:"sign_on_client",icon:"sign",svgIcon:"sign",description:this.translation.translate("Sign")},{name:"answer",icon:"mail",matIcon:"email",matStyleOutlined:!0,description:this.translation.translate("Answer")},{name:"withdrawalOrder",icon:"send",matIcon:"send",matStyleOutlined:!0,description:this.translation.translate("Rasp about currency debitting")},{name:"answer_request",icon:"mail",matIcon:"email",matStyleOutlined:!0,description:this.translation.translate("Answer on request"),file:!0},{name:"cancel",icon:"recall",svgIcon:"recall",description:this.translation.translate("Request cancel")},{name:"sendPrintForm",icon:"send",matIcon:"send",matStyleOutlined:!0,description:this.translation.translate("Send to email")},{name:"print_swift",icon:"swift",svgIcon:"swift",description:this.translation.translate("Print swift message")},{name:"print_awiso",icon:"swift",svgIcon:"swift",description:this.translation.translate("Print swift")},{name:"print_client_payment",icon:"swift",svgIcon:"swift",description:this.translation.translate("Print client payment")},{name:"create_cti",icon:"send",matIcon:"send",matStyleOutlined:!0,description:this.translation.translate("Create currency transactions information")},{name:"createApplication",icon:"pencil",matIcon:"edit",matStyleOutlined:!0,description:this.translation.translate("Sign")},{name:"save_to_file",icon:"save",matIcon:"save_alt",description:this.translation.translate("Save to file")},{name:"save_all_attachments",icon:"save",matIcon:"save_alt",description:this.translation.translate("Save all attachments")},{name:"download",icon:"save",matIcon:"save_alt",description:this.translation.translate("Download without ACP")},{name:"download_signed",matIcon:"save_alt",description:this.translation.translate("Download with ACP")},{name:"credit_cabinet",icon:"",matIcon:"",description:this.translation.translate("Open credit cabinet")},{name:"create_single_window",matStyleOutlined:!0,matIcon:"description",description:this.translation.translate("Create payment")},{name:"sign_on_client_single_window",svgIcon:"sign",description:this.translation.translate("Sign")},{name:"for_cancellation",svgIcon:"sign",description:this.translation.translate("Cancel accept")},{name:"send_ul_documents",matIcon:"mail",matStyleOutlined:!0,description:this.translation.translate("Provide documents")},{name:"phone_change",matIcon:"edit",matStyleOutlined:!0,description:this.translation.translate("Changing the phone number for signature")},{name:"disable_user",svgIcon:"person_cancel",description:this.translation.translate("Disable user")}]}getIcons(){return this.OPERATION_ICONS}}},49310:(Ee,Q,t)=>{"use strict";t.d(Q,{j:()=>n});var n=(()=>{return(e=n||(n={})).Plus="plus",e.Minus="minus",n;var e})()},14228:(Ee,Q,t)=>{"use strict";t.d(Q,{f:()=>y});var n=t(15439),e=t.n(n),i=t(61135),d=t(83e3),a=t(86349),u=t(6146),h=t(93887),l=t(41795),m=t(94650),x=t(40929),O=t(44180),L=t(39486),w=t(16611),B=t(15644),_=t(3751);let y=(()=>{class ${constructor(T,j,I,F,z,X){this.documentService=T,this.router=j,this.productService=I,this.translationService=F,this.configUtilService=z,this.apiService=X,this.selectedOperationsNumber$=new i.X(0),this.detectChanges$=new i.X(!1),this.docDate=new Date}getSelectedOperations(){return this.getAllCurrentOperation().filter(T=>T.chosen)}signOperations(){const T=this.getSelectedOperations();if("doc_platpor"===T[0].docType||"doc_sbp_transferbyqrcode_ul"===T[0].docType)if(1===T.length)this.router.navigate(["/sign"],{queryParams:{docId:T[0].id,docType:T[0].docType,accNumber:T[0].accNumber||T[0].accCredit||T[0].creditAccNumber,docModule:T[0].docModule}});else{const j={docIds:this.getSelectedOperations().map(I=>I.id).join(",")};this.router.navigate(["/package-sign"],{queryParams:j})}}getAllCurrentOperation(){return this.operations?this.operations.map(T=>T.transactions).reduce((T,j)=>[...T,...j],[]):[]}selectOperation(T,j){"app-checkbox"!==T.currentTarget.localName&&(j.chosen=T.target.checked,this.operations.forEach(I=>{I.transactions.some(X=>!X.chosen)&&(I.chosen=!1);const z=I.transactions.every(X=>X.chosen);!I.chosen&&z&&(I.chosen=!0)}),this.selectedOperationsNumber$.next(this.getSelectedOperationsNumber()))}selectOperationGroup(T,j){"app-checkbox"!==T.currentTarget.localName&&(j.chosen=T.target.checked,a.S6(this.operations,I=>{I.date===j.date&&I.transactions.forEach(F=>F.chosen=T.target.checked)}),this.selectedOperationsNumber$.next(this.getSelectedOperationsNumber()),this.detectChanges$.next(!0))}clearSelectedNumber(){this.selectedOperationsNumber$.next(0)}getSelectedOperationsNumber(){return this.operations?this.operations.map(T=>T.transactions).reduce((T,j)=>[...T,...j],[]).filter(T=>T.chosen).length:0}printOperation(T,j){return this.documentService.getFile(`print/operation/metinv/pdf?abs_id=${j}${T?`&id=${T}`:""}`)}printBPX(T){return this.documentService.getFile(`print/pdf?doc_ids=${T}&print_type=bpx_jasper`)}printOperations(T){let j=[],I=[];T.every(z=>z.extDocId)?j=T.map(z=>z.extDocId):I=T.map(z=>z.id);let F="";return F=j.length?`print/operation/metinv/pdf?ids=${j.join(";")}`:`print/operation/metinv/pdf?abs_ids=${I.join(";")}`,this.documentService.getFile(F)}printPlannedOperations(){const T=this.getTransactionsForPrint();let j="print/pdf?doc_ids=";T.forEach(I=>{j=`${j+I.id},`}),","===j[j.length-1]&&(j=j.slice(0,-1)),this.documentService.getFile(j).subscribe(()=>{})}getTransactionsForPrint(){return this.operations?this.operations.map(T=>T.transactions).reduce((T,j)=>[...T,...j],[]).filter(T=>T.chosen).map(T=>({id:T.id,extDocId:T.extDocId,amount:+T.amount})):[]}getAllSelected(){return!!this.operations&&void 0===this.operations.map(T=>T.transactions).reduce((T,j)=>[...T,...j],[]).find(T=>!T.chosen)}selectAll(T){"app-checkbox"!==T.currentTarget.localName&&(T.target.checked?(this.operations.forEach(j=>{j.chosen=!0,j.transactions.forEach(I=>I.chosen=!0)}),this.detectChanges$.next(!0)):(this.operations.forEach(j=>{j.chosen=!1,j.transactions.forEach(I=>I.chosen=!1)}),this.detectChanges$.next(!0)),this.selectedOperationsNumber$.next(this.getSelectedOperationsNumber()))}deselectAll(){this.selectAll({target:{checked:!1},currentTarget:{localname:""}})}setPaymentData(T){T.ownerAccountNumber&&this.productService.getProducts().subscribe(j=>{T.accId=j.find(I=>I.number===T.ownerAccountNumber).id}),T.corrKpp=T.counterpartKpp,T.corrType=T.tax?T.tax.taxPeriodParam&&8===T.tax.taxPeriodParam.length?"TAMOZH":"NALOG":"UL",T.tax&&(T.stat=T.tax.stat,T.kbk=T.tax.cbcCode,T.okato=T.tax.oktmoCode,T.ground=T.tax.payGrndParam,T.tax.taxPeriodParam&&"0"!==T.tax.taxPeriodParam?(T.tax1=T.tax.taxPeriodParam.split(".")[0],T.tax2=T.tax.taxPeriodParam.split(".")[1],T.tax3=T.tax.taxPeriodParam.split(".")[2]):T.tax1=T.tax.taxPeriodParam,T.taxdocnum=T.tax.docNumParam,T.taxdocdate=T.tax.docDateParam),T.uin=T.uin,T.corrBankCorrAccount=T.corrBankCorrAccount,T.corrAccNumber=T.counterpartAccountNumber,T.corrBankBik=T.counterpartBankBik,T.corrInn=T.counterpartInn,T.corrName=T.counterpartName,T.corrFullname=T.counterpartName,T.amount=Math.abs(parseFloat(T.amount)).toString(),T.description=T.description?T.description:T.details,T.fullname=T.ownerName,T.inn=T.ownerInn,T.payerBik=T.ownerBankBik,T.payerBankName=T.ownerBankName,T.urgenttype=T.priority,T.sendtype=T.sendType,T.oldId=T.id,T.id=void 0,delete T.docNumber,delete T.docDate,delete T.loanAgreementNumber,this.documentService.paymentData$.next(T)}repeatOperation(T,j="/transfer-rur",I=null){this.setPaymentData(T),this.router.navigate([j],{queryParams:I})}createPayment(T){T.corrType=T.tax?8===T.tax.taxPeriodParam.length?"Tamozh":"Nalog":"UL",this.documentService.paymentData$.next({corrAccNumber:T.counterpartAccountNumber,corrBankBik:T.counterpartBankBik,corrInn:T.counterpartInn,corrName:T.counterpartName,corrFullname:T.counterpartName,corrType:T.corrType,uin:T.uin,corrKpp:T.counterpartKpp,docDate:e()(this.docDate).format("YYYY-MM-DD"),docNumber:T.docNubmer}),this.router.navigate(["/transfer-rur"])}getActions(T,j){if(!j)return[];const I=[];return j.forEach(F=>{const z=T.find(X=>X.name===F);z&&I.push(z)}),I}parsePlanedOrRefusedOperations(T,j,I){return h.RH.includes(T)?I.map(F=>this.parsePlanedOrRefusedPlatpor(F,j)):[]}getOrgNameByAccId(T){return(0,d.Q$)(T)}parsePlanedOrRefusedPlatpor(T,j){switch(T.docType===u.o.RequestCancel&&(j===l.d$.Plan&&(T.actions=T.actions.filter(I=>h.mx.includes(I))),j===l.d$.Refused&&(T.actions=T.actions.filter(I=>h.tJ.includes(I)))),T["@type"]){case"acceptEdit":return{type:T["@type"],counterpartName:"\u0420\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u043a\u0446\u0435\u043f\u0442\u0430",ownerAccountNumber:T.payerAccount,details:`${this.translationService.translate("Date")}: ${this.configUtilService.formatDateString(T.docDate)}, ${this.translationService.translate("Number")}: ${T.docNumber}`,amount:T.amount,status:"\u043d\u043e\u0432\u044b\u0439"===T.statusCaption?`${this.translationService.translate("A new")}, ${T.signStatusCaption.toLowerCase()}`:T.statusCaption,docDate:T.docDate,actions:T.actions,docIds:T.id,docType:T.docType,docModule:T.docModule,id:T.id,extDocId:T.extDocId?T.extDocId:T.id,isOpenable:!0,isOpen:!1,docNumber:T.docNumber,accNumber:T.receiverAccount};case"acceptCancellation":return{type:T["@type"],counterpartName:"\u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431 \u0430\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044f",ownerAccountNumber:T.payerAccount,details:`${this.translationService.translate("Date")}: ${this.configUtilService.formatDateString(T.docDate)}, ${this.translationService.translate("Number")}: ${T.docNumber}`,status:"\u043d\u043e\u0432\u044b\u0439"===T.statusCaption?`${this.translationService.translate("A new")}, ${T.signStatusCaption.toLowerCase()}`:T.statusCaption,docDate:T.docDate,actions:T.actions,docIds:T.id,docType:T.docType,docModule:T.docModule,id:T.id,extDocId:T.extDocId?T.extDocId:T.id,isOpenable:!1,isOpen:!1,docNumber:T.docNumber,accNumber:T.receiverInfo};default:return j===l.d$.Refused&&T.declineInfo&&("\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d, \u043a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438 #1001"===T.declineInfo||-1!==T.declineInfo.indexOf("#1001"))&&(T.actions=[],T.statusCaption="\u043e\u0448\u0438\u0431\u043a\u0430"),{type:T.docType,counterpartName:T.corrFullname?T.corrFullname:T.cancelDocName,ownerAccountNumber:T.accId,details:this.getOperationDetails(T,j),charType:"doc_payment_request_outgoing"===T.docType?"0":"1",amount:T.amount,currency:T.accCurr,status:this.getStatusForPlannedAndRefusedOperation(T,j),statusCode:T.status,signStatus:T.signStatus,statusColor:"required_check"===T.statusCode||"required_check"===T.status||"clarify_check"===T.status||"clarify_check"===T.statusCode?"red":void 0,sendType:T.sendtype,docDate:T.docDate,createStamp:T.createStamp,actions:T.actions,docIds:T.id,docType:T.docType,docModule:T.docModule,id:T.id,extDocId:T.extDocId?T.extDocId:T.id,isOpenable:!0,isOpen:!1,docNumber:T.docNumber,accNumber:T.accNumber,declineInfo:T.declineInfo,loanAgreementNumber:T.loanAgreementNumber,inq181:T?.inq181,bankName:T?.bankName,cause:T.cause?this.translationService.translate("Recall statement"):"",differentRequisites:T.differentRequisites?JSON.parse(T.differentRequisites):[]}}}getOperationDetails(T,j){let I;return T.description?I=T.description:(I="doc_sbp_transferbyqrcode_ul"!==T.docType?`\n        ${this.translationService.translate("Date")}: ${this.configUtilService.formatDateString(T.docDate)},\n        ${this.translationService.translate("Number")}: ${T.docNumber}`:T.sbpComment,T.cause&&(I+=`, ${this.translationService.translate("Recall cause")}: ${T.cause}`)),I}getStatusForPlannedAndRefusedOperation(T,j){return T.docType===u.o.IncomingQrPayments&&j===l.d$.Performed?"Rur payment":"\u043d\u043e\u0432\u044b\u0439"===T.statusCaption?`${this.translationService.translate("A new")}, ${T.signStatusCaption.toLowerCase()}`:T.statusCaption}checkReadyToAutoCancel(T){return this.apiService.get(`request/process/metinv/check_ready_to_autocancel?id=${T}`)}static#e=this.\u0275fac=function(j){return new(j||$)(m.\u0275\u0275inject(x.Z),m.\u0275\u0275inject(O.F0),m.\u0275\u0275inject(L.su),m.\u0275\u0275inject(w.D7),m.\u0275\u0275inject(B.Pj),m.\u0275\u0275inject(_.s))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})()},19683:(Ee,Q,t)=>{"use strict";t.d(Q,{T:()=>_});var n=t(97582),e=t(94650),i=t(16611),d=t(37601),a=t(82350),u=t(36895),h=t(11260);function l(y,$){1&y&&e.\u0275\u0275element(0,"img",7)}function m(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"span",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&y){const C=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",C.getSBPStatusColor(C.badgeStatusSBP)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(C.badgeStatusSBP)}}function x(y,$){1&y&&(e.\u0275\u0275elementStart(0,"span",9),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&y&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate("\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442"))}const O=function(y){return{"full-title":y}};function L(y,$){if(1&y&&(e.\u0275\u0275elementStart(0,"div",3),e.\u0275\u0275template(1,l,1,0,"img",4),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275template(4,m,2,2,"span",5),e.\u0275\u0275template(5,x,2,1,"span",6),e.\u0275\u0275elementEnd()),2&y){const C=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("title-new",C.useNewTitle),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(10,O,C.fullTitleInMobileView)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",C.sbpQr),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,7,C.title,C.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",C.badgeStatusSBP),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",C.tsp)}}function w(y,$){if(1&y){const C=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-svg-icon",10),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(C);const j=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(j.onClose())}),e.\u0275\u0275elementEnd()}2&y&&e.\u0275\u0275property("fill","#88909B")("height",20)("width",20)}const B=["*"];class _{constructor($,C){this.userDataService=$,this.sbpService=C,this.closeButton=!1,this.noPadding=!1,this.styleType="",this.useNewTitle=!1,this.backgroundColor="white",this.sbpQr=!1,this.fullTitleInMobileView=!1,this.centerPosition=!0,this.tsp=!1,this.closeEvent=new e.EventEmitter}onClose(){this.closeEvent.emit()}getSBPStatusColor($){return this.sbpService.getStatusColor($)}static#e=this.\u0275fac=function(C){return new(C||_)(e.\u0275\u0275directiveInject(d.M),e.\u0275\u0275directiveInject(a.V))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:_,selectors:[["app-page-title"]],inputs:{title:"title",padding:"padding",closeButton:"closeButton",noPadding:"noPadding",styleType:"styleType",number:"number",useNewTitle:"useNewTitle",backgroundColor:"backgroundColor",badgeStatusSBP:"badgeStatusSBP",sbpQr:"sbpQr",fullTitleInMobileView:"fullTitleInMobileView",centerPosition:"centerPosition",tsp:"tsp"},outputs:{closeEvent:"closeEvent"},ngContentSelectors:B,decls:5,vars:17,consts:[["data-qa","1657805221592",1,"page-title",3,"ngClass"],["class","page-title__text",3,"title-new","ngClass",4,"ngIf"],["class","page-title__svg","data-qa","1657805226006","icon","cross",3,"fill","height","width","click",4,"ngIf"],[1,"page-title__text",3,"ngClass"],["class","page-title__logo","src","/assets/images/sbp_qr.svg",4,"ngIf"],["class","page-title__badge",3,"ngClass",4,"ngIf"],["class","page-title__tsp-status",4,"ngIf"],["src","/assets/images/sbp_qr.svg",1,"page-title__logo"],[1,"page-title__badge",3,"ngClass"],[1,"page-title__tsp-status"],["data-qa","1657805226006","icon","cross",1,"page-title__svg",3,"fill","height","width","click"]],template:function(C,T){1&C&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,L,6,12,"div",1),e.\u0275\u0275elementStart(2,"div"),e.\u0275\u0275projection(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,w,1,3,"app-svg-icon",2),e.\u0275\u0275elementEnd()),2&C&&(e.\u0275\u0275classMap(T.backgroundColor),e.\u0275\u0275styleProp("padding",T.padding),e.\u0275\u0275classProp("no-padding",T.noPadding)("center-align",!T.closeButton&&T.centerPosition),e.\u0275\u0275property("ngClass",T.styleType.length>0?T.styleType:""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",T.title),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("page-title__content--no-margin",!T.title)("page-title__content",!T.number)("page-title__number",T.number),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",T.closeButton))},dependencies:[u.mk,u.O5,h.b,i.X$],styles:['@charset "UTF-8";.page-title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:97px;border-bottom:1px solid #dedede}@media screen and (min-width: 375px) and (max-width: 768px){.page-title[_ngcontent-%COMP%]{height:auto;padding:16px 0}.page-title__svg[_ngcontent-%COMP%]{overflow:inherit}}.page-title.center-align[_ngcontent-%COMP%]{justify-content:center}.page-title__svg[_ngcontent-%COMP%]{cursor:pointer;color:#88909b;font-size:30px}.page-title__close-icon[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.page-title__text[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;color:#080708;font-weight:700;line-height:normal;font-size:24px;display:flex;gap:20px;overflow:hidden;text-overflow:ellipsis}@media screen and (max-width: 768px){.page-title__text[_ngcontent-%COMP%]{font-size:20px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}}@media screen and (max-width: 768px){.page-title__text.full-title[_ngcontent-%COMP%]{-webkit-line-clamp:unset;-webkit-box-orient:unset}}.page-title__content[_ngcontent-%COMP%], .page-title__close[_ngcontent-%COMP%]{margin-left:20px}@media screen and (max-width: 768px){.page-title__content[_ngcontent-%COMP%], .page-title__close[_ngcontent-%COMP%]{margin-left:0}}.page-title__content--no-margin[_ngcontent-%COMP%]{margin-left:0}.page-title__number[_ngcontent-%COMP%]{flex:1}.page-title__logo[_ngcontent-%COMP%]{width:30px}.page-title__tsp-status[_ngcontent-%COMP%]{border-radius:4px;padding:4px 8px;color:var(--text-white, #fff);background:var(--background-dark-green, #00916e);font-size:10px;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:700;line-height:normal;text-transform:uppercase;height:-moz-fit-content;height:fit-content;align-self:center}.no-border[_ngcontent-%COMP%]{border-bottom:none}.secondary[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;padding-top:30px;padding-bottom:20px}.secondary[_ngcontent-%COMP%]   .page-title__text[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:25px;color:#080708}.gray-background[_ngcontent-%COMP%]{padding:0 32px;background-color:#f1f2f2;border-bottom:none;height:80px;border-top-right-radius:8px;border-top-left-radius:8px;align-items:center}@media screen and (max-width: 768px){.gray-background[_ngcontent-%COMP%]{padding:0 16px}}.gray-background[_ngcontent-%COMP%]   .page-title__text[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:27px;color:#080708}@media screen and (min-width: 375px) and (max-width: 768px){.gray-background[_ngcontent-%COMP%]{padding:0 16px}}.no-padding[_ngcontent-%COMP%]{padding:0;border-bottom:none}.gray[_ngcontent-%COMP%]{background:#f1f2f2}.white[_ngcontent-%COMP%]{background:#ffffff}.page-title__badge[_ngcontent-%COMP%]{display:flex;font-weight:600;font-size:12px;line-height:16px;background-color:#f1f2f2;color:#88909b;padding:7px}.page-title__badge.green[_ngcontent-%COMP%]{color:#00a843}.page-title__badge.red[_ngcontent-%COMP%]{color:#e23428}.page-title__badge.blue[_ngcontent-%COMP%]{color:#2f54eb}.page-title__badge.black[_ngcontent-%COMP%]{color:#444}.page-title__badge.orange[_ngcontent-%COMP%]{color:#f68462}']})}(0,n.gn)([(0,i.SQ)()],_.prototype,"lang",void 0)},15725:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>O});var n=t(97582),e=t(94650),i=t(16611),d=t(36895),a=t(75568),u=t(19683);function h(L,w){if(1&L){const B=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-page-title",3),e.\u0275\u0275listener("closeEvent",function(){e.\u0275\u0275restoreView(B);const y=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(y.onClose())}),e.\u0275\u0275projection(1,1),e.\u0275\u0275elementEnd()}if(2&L){const B=e.\u0275\u0275nextContext();e.\u0275\u0275property("closeButton",B.withCloseButton)("number",B.withNumber)("title",B.title)("useNewTitle",B.useNewTitle)("fullTitleInMobileView",B.fullTitleInMobileView)}}function l(L,w){1&L&&e.\u0275\u0275element(0,"app-loader")}const m=["*",[["","page-title-content",""]]],x=["*","[page-title-content]"];class O{constructor(){this.withTitle=!0,this.hidden=!1,this.withBottomPadding=!0,this.loading=!1,this.useNewTitle=!1,this.noShadow=!1,this.fullTitleInMobileView=!1,this.close=new e.EventEmitter}onClose(){this.close.emit()}ngOnInit(){}static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:O,selectors:[["app-page"]],inputs:{title:"title",withTitle:"withTitle",hidden:"hidden",withBottomPadding:"withBottomPadding",minHeight:"minHeight",withCloseButton:"withCloseButton",withNumber:"withNumber",loading:"loading",useNewTitle:"useNewTitle",noShadow:"noShadow",fullTitleInMobileView:"fullTitleInMobileView"},outputs:{close:"close"},ngContentSelectors:x,decls:4,vars:9,consts:[[1,"page-wrapper","section-shadow",3,"hidden"],["data-qa","1658988673215",3,"closeButton","number","title","useNewTitle","fullTitleInMobileView","closeEvent",4,"ngIf"],[4,"ngIf"],["data-qa","1658988673215",3,"closeButton","number","title","useNewTitle","fullTitleInMobileView","closeEvent"]],template:function(B,_){1&B&&(e.\u0275\u0275projectionDef(m),e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,h,2,5,"app-page-title",1),e.\u0275\u0275projection(2),e.\u0275\u0275template(3,l,1,0,"app-loader",2),e.\u0275\u0275elementEnd()),2&B&&(e.\u0275\u0275styleProp("min-height",_.minHeight?_.minHeight:0,"px")("padding-bottom",_.withBottomPadding?40:0,"px"),e.\u0275\u0275classProp("section-shadow",!_.noShadow),e.\u0275\u0275property("hidden",_.hidden),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!0===_.withTitle),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",_.loading))},dependencies:[d.O5,a.R,u.T],styles:['@charset "UTF-8";.page-wrapper[_ngcontent-%COMP%]{position:relative;margin-top:24px;padding:0 32px 40px;max-width:1200px}@media screen and (min-width: 375px) and (max-width: 768px){.page-wrapper[_ngcontent-%COMP%]{padding:0 16px 16px!important}}']})}(0,n.gn)([(0,i.SQ)()],O.prototype,"lang",void 0)},71702:(Ee,Q,t)=>{"use strict";t.d(Q,{B:()=>u});var n=t(36895),e=t(16611),i=t(48038),d=t(78895),a=t(94650);let u=(()=>{class h{static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275mod=a.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.ez,e.qw,d.q,i.Y]})}return h})()},30815:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>x});var n=t(97582),e=t(16611),i=t(94650),d=t(36895),a=t(44180);function u(O,L){if(1&O&&(i.\u0275\u0275elementStart(0,"span",6),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&O){const w=i.\u0275\u0275nextContext(),B=w.$implicit,_=w.index,y=i.\u0275\u0275nextContext(2);i.\u0275\u0275classProp("page-path_bold",B.bold),i.\u0275\u0275property("queryParams",B.params)("routerLink",B.href),i.\u0275\u0275attribute("data-qa","1658988717522"+_),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(2,6,B.capture,y.lang))}}function h(O,L){if(1&O&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&O){const w=i.\u0275\u0275nextContext().$implicit,B=i.\u0275\u0275nextContext(2);i.\u0275\u0275classProp("page-path_bold",w.bold),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(2,3,w.capture,B.lang))}}function l(O,L){if(1&O&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275template(1,u,3,9,"span",3),i.\u0275\u0275elementStart(2,"span",4),i.\u0275\u0275text(3,"\xa0/\xa0"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(4,h,3,6,"ng-template",null,5,i.\u0275\u0275templateRefExtractor),i.\u0275\u0275elementEnd()),2&O){const w=L.$implicit,B=L.index,_=i.\u0275\u0275reference(5),y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",w.href)("ngIfElse",_),i.\u0275\u0275advance(1),i.\u0275\u0275classProp("page-path_bold",w.bold),i.\u0275\u0275property("hidden",B===y.pathData.length-1)}}function m(O,L){if(1&O&&(i.\u0275\u0275elementStart(0,"div",1),i.\u0275\u0275template(1,l,6,5,"span",2),i.\u0275\u0275elementEnd()),2&O){const w=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngClass",w.cssClass),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",w.pathData)}}class x{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:x,selectors:[["app-path"]],inputs:{pathData:"pathData",cssClass:"cssClass"},decls:1,vars:1,consts:[["class","page-path",3,"ngClass",4,"ngIf"],[1,"page-path",3,"ngClass"],[4,"ngFor","ngForOf"],["class","page-path_link",3,"page-path_bold","queryParams","routerLink",4,"ngIf","ngIfElse"],[3,"hidden"],["withoutHref",""],[1,"page-path_link",3,"queryParams","routerLink"]],template:function(w,B){1&w&&i.\u0275\u0275template(0,m,2,2,"div",0),2&w&&i.\u0275\u0275property("ngIf",B.pathData)},dependencies:[d.mk,d.sg,d.O5,a.rH,e.X$],styles:['@charset "UTF-8";.page-path[_ngcontent-%COMP%]{padding:0;color:#444;font-size:24px;font-weight:600;font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;width:-moz-fit-content;width:fit-content}.page-path_bold[_ngcontent-%COMP%]{font-weight:700}.page-path_link[_ngcontent-%COMP%]{cursor:pointer}.page-path[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{outline:none}.page-path.ved-header[_ngcontent-%COMP%]{padding:12px 0 4px;font-weight:700}.bold-label[_ngcontent-%COMP%]{font-weight:700}']})}(0,n.gn)([(0,e.SQ)()],x.prototype,"lang",void 0)},88044:(Ee,Q,t)=>{"use strict";t.d(Q,{u:()=>a});var n=t(36895),e=t(44180),i=t(16611),d=t(94650);let a=(()=>{class u{static#e=this.\u0275fac=function(m){return new(m||u)};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:u});static#n=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[n.ez,e.Bz,i.qw]})}return u})()},20988:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>$});var n=t(97582),e=t(16611),i=t(26871),a=(t(66266),t(94650)),u=t(38101),h=t(44180),l=t(40929),m=t(46923),x=t(24201),O=t(36895),L=t(93412),w=t(98504);function B(C,T){if(1&C&&(a.\u0275\u0275elementStart(0,"div",22),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"appCurrency"),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd()),2&C){const j=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate2("",a.\u0275\u0275pipeBind1(2,2,j._paymentReq.amount)," ",a.\u0275\u0275pipeBind2(3,4,"RUR symbol",j.lang),"")}}function _(C,T){if(1&C&&(a.\u0275\u0275elementStart(0,"li",24)(1,"div",25),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"div",26),a.\u0275\u0275text(5),a.\u0275\u0275elementEnd()()),2&C){const j=a.\u0275\u0275nextContext(),I=j.index,F=j.$implicit,z=a.\u0275\u0275nextContext();a.\u0275\u0275attribute("data-qa","1658988762735"+I),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind2(3,3,F.capture,z.lang)," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",F.value," ")}}function y(C,T){if(1&C&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,_,6,6,"li",23),a.\u0275\u0275elementContainerEnd()),2&C){const j=T.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",j.value)}}class ${constructor(T,j,I){this.modalService=T,this.router=j,this.documentService=I,this.details=[],this.isOpen=!1,this.btnActions=[],this.menuActions=[{matIcon:"local_printshop",matStyleOutlined:!0,description:"Print",type:"print_payment_request"}]}set paymentReq(T){this._paymentReq=T,this.isOpen=!1,"2"===T.payCondition&&"delivered"===T.status&&this.menuActions.push({matIcon:"send",matStyleOutlined:!0,description:"To accept",type:"accept"},{matIcon:"delete_forever",matStyleOutlined:!0,description:"Refuse acceptance",type:"delete"}),this.menuActions.push({matIcon:"edit",matStyleOutlined:!0,description:"Declaration of advance acceptance",type:"declarationAcceptance"}),this.btnActions=this.menuActions.map(j=>({type:j.type}))}toggleDetails(){this.isOpen=!this.isOpen,this.details=[{capture:"corrInn",value:this._paymentReq.corrInn},{capture:"corrKpp",value:this._paymentReq.corrKpp},{capture:"Checking account",value:this._paymentReq.corrAccNumber},{capture:"corrBankBik",value:this._paymentReq.corrBankBik},{capture:"Corr bank name",value:this._paymentReq.corrBankName},{capture:"Payment purpose",value:this._paymentReq.description},{capture:"Payer name",value:this._paymentReq.fullName},{capture:"payerInn",value:this._paymentReq.inn},{capture:"payerKpp",value:this._paymentReq.kpp},{capture:"payerBik",value:this._paymentReq.bankBik},{capture:"Payer bank name",value:this._paymentReq.bankName}],"2"===this._paymentReq.payCondition&&this.details.push({capture:"acceptTerm",value:this._paymentReq.acceptTerm+" \u0434\u043d\u044f(\u0434\u043d\u0435\u0439)"})}onButtonAction(T){switch(T){case"print_payment_request":this.modalService.open(i.O,{header:"Print document",styleMode:"forSign",inputs:{operation:{docIds:this._paymentReq.id}}});break;case"accept":this.documentService.paymentData$.next(this._paymentReq),this.router.navigate(["/accept"],{queryParams:{acceptType:"ACCEPT"}}).then();break;case"delete":this.documentService.paymentData$.next(this._paymentReq),this.router.navigate(["/accept"],{queryParams:{acceptType:"DECLINE"}}).then();break;case"declarationAcceptance":this.router.navigate(["acceptance/request_advance_accept"],{queryParams:{paymentRequestId:this._paymentReq.id}}).then()}}static#e=this.\u0275fac=function(j){return new(j||$)(a.\u0275\u0275directiveInject(u.Z),a.\u0275\u0275directiveInject(h.F0),a.\u0275\u0275directiveInject(l.Z))};static#t=this.\u0275cmp=a.\u0275\u0275defineComponent({type:$,selectors:[["app-payment-request"]],inputs:{paymentReq:"paymentReq"},decls:27,vars:20,consts:[[1,"operation"],["data-qa","1658988732025",1,"operation__line",3,"click"],[1,"last-operation__left-block","w100"],[1,"last-operation__info","w100"],[1,"info-title"],[1,"operation__title"],[1,"info-title-wrapper"],[1,"info-title__type"],[1,"info-description"],[3,"hidden"],[1,"last-operation__right-block"],[1,"last-operation__sum"],["class","value",4,"ngIf"],["backgroundClass","pay-request","data-qa","1658988740952",3,"icon","items","change"],[1,"my-payment-menu-btn"],[1,"my-payment-menu-btn-span"],[1,"details",3,"hidden"],[1,"details__info-list"],[4,"ngFor","ngForOf"],[1,"details__buttons-block"],[1,"details__buttons-wrap"],["data-qa","1657800151164",1,"button-action",3,"buttons","inSelectMenu","buttonClicked"],[1,"value"],["class","details__info-item",4,"ngIf"],[1,"details__info-item"],[1,"details__info-capture"],[1,"details__info-value"]],template:function(j,I){1&j&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275listener("click",function(){return I.toggleDetails()}),a.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),a.\u0275\u0275text(6),a.\u0275\u0275pipe(7,"maxStringLength"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(8,"div",6)(9,"span",7),a.\u0275\u0275text(10),a.\u0275\u0275pipe(11,"date"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(12,"div",8)(13,"span",9),a.\u0275\u0275text(14),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275elementStart(15,"div",10)(16,"div",11),a.\u0275\u0275template(17,B,4,7,"div",12),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(18,"app-menu-select",13),a.\u0275\u0275listener("change",function(z){return I.onButtonAction(z.type)}),a.\u0275\u0275elementStart(19,"button",14),a.\u0275\u0275element(20,"span",15),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275elementStart(21,"div",16)(22,"ul",17),a.\u0275\u0275template(23,y,2,1,"ng-container",18),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(24,"div",19)(25,"div",20)(26,"app-button-actions",21),a.\u0275\u0275listener("buttonClicked",function(z){return I.onButtonAction(z)}),a.\u0275\u0275elementEnd()()()()()),2&j&&(a.\u0275\u0275advance(6),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind2(7,14,I._paymentReq.corrFullName,40)),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate2(" ",I._paymentReq.accNumber," \u043e\u0442 ",a.\u0275\u0275pipeBind2(11,17,I._paymentReq.docDate,"dd.MM.yyyy")," "),a.\u0275\u0275advance(3),a.\u0275\u0275property("hidden",!I._paymentReq.docNumber),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1("\u2116 ",I._paymentReq.docNumber," "),a.\u0275\u0275advance(2),a.\u0275\u0275classProp("empty",!I._paymentReq.amount),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",I._paymentReq.amount),a.\u0275\u0275advance(1),a.\u0275\u0275property("icon",!0)("items",I.menuActions),a.\u0275\u0275advance(3),a.\u0275\u0275property("hidden",!I.isOpen),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",I.details),a.\u0275\u0275advance(3),a.\u0275\u0275property("buttons",I.btnActions)("inSelectMenu",!0))},dependencies:[m.n,x.r,O.sg,O.O5,e.X$,L.R,w.H,O.uU],styles:['@charset "UTF-8";ul[_ngcontent-%COMP%], li[_ngcontent-%COMP%]{display:block;margin:0;padding:0}.operation[_ngcontent-%COMP%]{width:100%;position:relative}.operation_opened[_ngcontent-%COMP%]{box-shadow:0 13px 40px #00000021}.operation__title[_ngcontent-%COMP%]{white-space:nowrap;max-width:68%}.operation__unpaid-sum[_ngcontent-%COMP%]{color:#444}.operation__line[_ngcontent-%COMP%]{height:100px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:0 20px;border-bottom:1px solid transparent}.operation__line_openable[_ngcontent-%COMP%]{cursor:pointer}.operation__line_border[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.last-operation__left-block[_ngcontent-%COMP%], .last-operation__right-block[_ngcontent-%COMP%]{display:flex}.operation__menu-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:12px;margin-left:16px;padding:0;border:none;background:none;outline:none;transition:opacity .2s ease;opacity:.6;cursor:pointer}.operation__menu-btn[_ngcontent-%COMP%]:hover{opacity:1}.operation__menu-btn-span[_ngcontent-%COMP%], .operation__menu-btn[_ngcontent-%COMP%]:before, .operation__menu-btn[_ngcontent-%COMP%]:after{content:"";display:block;width:5px;height:5px;border-radius:50%;background-color:#88909b}.operation__menu-btn-span[_ngcontent-%COMP%]{margin:5px 0}.operation__menu-btn[hidden][_ngcontent-%COMP%]{display:none}.details[_ngcontent-%COMP%]{position:relative;display:flex;padding:30px 30px 30px 20px;min-height:218px}.details[hidden][_ngcontent-%COMP%]{display:none}.details__info-list[_ngcontent-%COMP%]{flex:1.6;padding:0 9% 0 0}.details__info-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #dedede;padding:10px 0}.details__info-item[_ngcontent-%COMP%]:first-child{padding:0 0 10px}.details__info-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.details__info-capture[_ngcontent-%COMP%], .details__info-value[_ngcontent-%COMP%]{color:#1a2a40;font-size:16px}.details__info-capture[_ngcontent-%COMP%]{white-space:nowrap}.details__info-value[_ngcontent-%COMP%]{text-align:right;padding-left:15px}.details__buttons-block[_ngcontent-%COMP%]{flex:.4;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.details__buttons-block[_ngcontent-%COMP%]   .button-action[_ngcontent-%COMP%]{display:flex;cursor:pointer;font-size:18px;color:#88909b;width:-moz-fit-content;width:fit-content;padding:10px 0}.details__buttons-block[_ngcontent-%COMP%]   .button-action[_ngcontent-%COMP%]:hover{color:#284681}[_nghost-%COMP%]     .details__buttons-block .button-action:hover .button-action__icon{fill:#284681}.details__buttons-wrap[_ngcontent-%COMP%]{width:100%}.details__more[_ngcontent-%COMP%]{outline:none;margin-top:16px}.operation-alert[_ngcontent-%COMP%]{padding:30px 30px 30px 20px}']})}(0,n.gn)([(0,e.SQ)()],$.prototype,"lang",void 0)},81620:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>C});var n=t(94650),e=t(61135),i=t(39300),d=t(95698),a=t(61810),u=t(8058),h=t(3751),l=t(15644),m=t(16611),x=t(9149),O=t(36895),L=t(18430),w=t(11260),B=t(90995);function _(T,j){if(1&T){const I=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",4),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(I);const z=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(z.resetForm())}),n.\u0275\u0275element(1,"app-svg-icon",5),n.\u0275\u0275elementEnd()}}const y=function(T){return{dcb:T}};function $(T,j){if(1&T){const I=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",6)(1,"app-button",7),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(I);const z=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(z.savePerformer())}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"app-button",8),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(I);const z=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(z.resetForm())}),n.\u0275\u0275elementEnd()()}if(2&T){const I=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(9,y,I.isNewDesign)),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("disabled",I.disableButton),n.\u0275\u0275property("text",I.buttonText)("type",I.isNewDesign?"small header":""),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("disabled",!I.performerForm.touched),n.\u0275\u0275property("text","Cancel")("type",I.isNewDesign?"small header":"")}}let C=(()=>{class T{constructor(I,F,z,X,p){this.dynamicFormService=I,this.apiService=F,this.configUtilService=z,this.translation=X,this.toast=p,this.performerConfig=a.M,this.withControlButton=!0,this.returnControls=!1,this.isComplexPayment=!1,this.isUseFirstPerformer=!1,this.isNewDesign=!1,this.needToCloseErrorToasts=!0,this.formChanged=new n.EventEmitter,this.formPrepared$=new e.X(null),this.subscriptions=[],this.allPersonsFio=[],this.editMode=!1,this.wasPrefilled=!1}set fieldTitle(I){I&&this.dynamicFormService.changeComponentTitle(this.performerConfig,"employee",I)}set markAsTouched(I){I&&this.dynamicFormService.markAllAsTouched(this.performerForm)}set prefillData(I){!I||!I.employee||this.newPerson||this.formPrepared$.pipe((0,i.h)(F=>F),(0,d.q)(1)).subscribe(()=>{this.prefillForm(I)})}get buttonText(){return this.newPerson&&this.newPerson.id?"Save changes":"Save performer"}get disableButton(){let I=!this.editMode;return(!this.newPerson||!this.newPerson.fio||0===this.newPerson.fio.length||this.wasPrefilled)&&(I=!0),I}prefillForm(I){this.prefilledValue=I;let F=!0;if(I.employee){let z=I.employee;const X=this.entitledPersons.find(p=>p.fio.toUpperCase()===I.employee.toUpperCase());X&&(F=!1,z=X.fio),this.performerForm.get(this.fieldFio).setValue(z)}I.phone&&F&&this.performerForm.get(this.fieldPhone).setValue(I.phone),this.wasPrefilled=!0}ngOnInit(){this.performerForm=this.dynamicFormService.generateFormGroup(this.performerConfig),this.fieldFio=this.performerConfig[0].field.name,this.fieldPhone=this.performerConfig[1].field.name,this.subscriptions.push(this.apiService.get("cur_rko_entitled_person").subscribe(I=>{I&&(this.entitledPersons=this.configUtilService.getArray(I.entitledPersonElement).filter(F=>Boolean(F.fio)),this.entitledPersons.forEach(F=>this.allPersonsFio.push(F.fio.toUpperCase())),this.setupForm(),this.isUseFirstPerformer&&this.prefillForm({employee:this.entitledPersons[0]?.fio,phone:this.entitledPersons[0]?.phone}),this.formPrepared$.next(!0))})),this.emitFormChangeEvent(),this.subscriptions.push(this.performerForm.valueChanges.subscribe(I=>{this.emitFormChangeEvent(),this.processFormValueChange(I)}))}dynamicFormEvent(I){"focus"===I.eventType&&I.fieldName===this.fieldFio&&this.isComplexPayment&&this.toast.show(this.translation.translate("Specify in field 72 the customs code of the paid goods (TNVED) and the country of origin."),"error")}processFormValueChange(I){if(I[this.fieldFio]&&this.allPersonsFio.indexOf(I[this.fieldFio].toUpperCase())>-1||this.currPersId){this.dynamicFormService.setSelectItems(this.performerConfig,this.fieldFio,[]);const F=this.entitledPersons.find(z=>z.fio.toUpperCase()===I[this.fieldFio].toUpperCase());F&&this.currPersId!==F.id?(this.editMode=!1,this.currPersId=F.id,this.originalPerson={...F},this.newPerson={...F},this.patchPhone(F.phone)):(this.editMode=this.detectChanges(I),this.newPerson.fio=I[this.fieldFio],this.newPerson.phone=this.cleanPhone(I[this.fieldPhone]))}else this.editMode=!0,this.newPerson={fio:I[this.fieldFio],phone:this.cleanPhone(I[this.fieldPhone])};this.wasPrefilled&&this.detectPrefillChanges(I)&&(this.wasPrefilled=!1)}cleanPhone(I){return I?`+${this.configUtilService.makeOnlyNumbers(I)}`:""}detectChanges(I){return!this.isPhonesEquals(this.originalPerson.phone,I[this.fieldPhone])||this.originalPerson.fio.toUpperCase()!==I[this.fieldFio].toUpperCase()}detectPrefillChanges(I){return!(!(this.prefilledValue&&this.prefilledValue.employee&&I&&I[this.fieldFio])||this.prefilledValue.employee.toUpperCase()===I[this.fieldFio].toUpperCase()&&this.isPhonesEquals(this.prefilledValue.phone,I))}patchPhone(I){const F={};F[this.fieldPhone]=this.cleanPhone(I),this.performerForm.patchValue(F)}isPhonesEquals(I,F){return I||(I=""),F||(F=""),this.configUtilService.makeOnlyNumbers(I)===this.configUtilService.makeOnlyNumbers(F)}savePerformer(){this.editMode=!this.editMode;const I={...this.newPerson};this.subscriptions.push(this.apiService.post("cur_rko_entitled_person",I).subscribe(F=>{const z=this.entitledPersons.findIndex(X=>X.id===F.id);z>-1?(this.entitledPersons[z]=I,this.allPersonsFio=[],this.entitledPersons.forEach(X=>this.allPersonsFio.push(X.fio.toUpperCase()))):(I.id=F.id,this.currPersId=F.id,this.entitledPersons.push(I),this.allPersonsFio.push(I.fio)),this.originalPerson=I}))}resetForm(){this.originalPerson=null,this.currPersId=null,this.newPerson=null,this.editMode=!1,this.wasPrefilled=!1,this.performerForm.reset(),this.setupForm()}setupForm(){const I=this.dynamicFormService.generateItemsForSelect(this.entitledPersons,"fio","fio");this.dynamicFormService.setSelectItems(this.performerConfig,this.fieldFio,I)}emitFormChangeEvent(){if(this.returnControls)this.formChanged.emit(this.performerForm.controls);else{const I={};I[this.fieldFio]=this.performerForm.value[this.fieldFio],I[this.fieldPhone]=this.performerForm.value[this.fieldPhone]?this.cleanPhone(this.performerForm.value[this.fieldPhone]):void 0,this.formChanged.emit(I)}}ngOnDestroy(){this.subscriptions.forEach(I=>I.unsubscribe()),this.needToCloseErrorToasts&&this.toast.closeAllErrorToasts({exceptClass:"transfer-next-day"})}static#e=this.\u0275fac=function(F){return new(F||T)(n.\u0275\u0275directiveInject(u.w),n.\u0275\u0275directiveInject(h.s),n.\u0275\u0275directiveInject(l.Pj),n.\u0275\u0275directiveInject(m.D7),n.\u0275\u0275directiveInject(x.j))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:T,selectors:[["app-performer-block"]],inputs:{performerConfig:"performerConfig",withControlButton:"withControlButton",returnControls:"returnControls",isComplexPayment:"isComplexPayment",isUseFirstPerformer:"isUseFirstPerformer",isNewDesign:"isNewDesign",needToCloseErrorToasts:"needToCloseErrorToasts",fieldTitle:"fieldTitle",markAsTouched:"markAsTouched",prefillData:"prefillData"},outputs:{formChanged:"formChanged"},decls:4,vars:4,consts:[[1,"performer"],["data-qa","1657804668766",1,"drg-item-form",3,"config","formGroup","event"],["class","clear-fields","data-qa","1657804691036",3,"click",4,"ngIf"],["class","performer__action-buttons",3,"ngClass",4,"ngIf"],["data-qa","1657804691036",1,"clear-fields",3,"click"],["icon","cross","svgClass","clear-cross"],[1,"performer__action-buttons",3,"ngClass"],["data-qa","1657804673244",1,"mr20",3,"text","type","click"],["data-qa","1657804676309",1,"mr20",3,"text","type","click"]],template:function(F,z){1&F&&(n.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form",1),n.\u0275\u0275listener("event",function(p){return z.dynamicFormEvent(p)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(2,_,2,0,"div",2),n.\u0275\u0275template(3,$,3,11,"div",3),n.\u0275\u0275elementEnd()),2&F&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("config",z.performerConfig)("formGroup",z.performerForm),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!z.withControlButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",z.withControlButton))},dependencies:[O.mk,O.O5,L.r,w.b,B.r],styles:['@charset "UTF-8";.performer[_ngcontent-%COMP%]{position:relative}.performer__action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:left}.performer__action-buttons.dcb[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:600;font-size:14px}.performer[_ngcontent-%COMP%]   .clear-fields[_ngcontent-%COMP%]{position:absolute;display:flex;width:14px;height:14px;align-items:center;justify-content:center;cursor:pointer;top:10px;right:-25px}.performer[_ngcontent-%COMP%]   .clear-fields[_ngcontent-%COMP%]     .clear-cross{width:14px;height:14px;fill:#d9291e}.mr20[_ngcontent-%COMP%]{margin-right:20px}']})}return T})()},61810:(Ee,Q,t)=>{"use strict";t.d(Q,{M:()=>d});var n=t(24006),e=t(15644),i=t(49066);const d=[{field:{name:"employee",defaultName:"performer",validators:[n.Validators.required]},component:{placeholder:"Choose performer",title:"Performer",type:i.j.Autocomplete},select:{items:[]},visual:{cssClass:"half-inline"},dataQa:"1660030301657"},{field:{name:"phone",defaultName:"phone"},component:{type:i.j.Input,title:"Settings phone",placeholder:"Enter phone"},mask:{TextMask:e.Pj.phoneMask},visual:{cssClass:"half-inline"},dataQa:"1660030303604"}]},97271:(Ee,Q,t)=>{"use strict";t.d(Q,{F:()=>u});var n=t(36895),e=t(99762),i=t(54215),d=t(74471),a=t(94650);let u=(()=>{class h{static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275mod=a.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.ez,e.N,i.m,d.h]})}return h})()},68735:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>l});var n=t(97582),e=t(94650),i=t(16611),d=t(36895);function a(m,x){if(1&m&&(e.\u0275\u0275elementStart(0,"span",5),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&m){const O=e.\u0275\u0275nextContext(),L=e.\u0275\u0275reference(2);e.\u0275\u0275classProp("radio__label_active",L.checked),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,3,O.label,O.lang))}}const u=function(m){return{"modal-design":m}},h=["*"];class l{constructor(x){this.cdRef=x,this.isInvalid=!1,this.disabled=!1,this.changed=new e.EventEmitter}onRadioChange(x){this.changed.emit(x)}ngAfterViewInit(){this.cdRef.detectChanges()}ngOnInit(){}static#e=this.\u0275fac=function(O){return new(O||l)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-radio"]],inputs:{label:"label",value:"value",name:"name",chosen:"chosen",isModalDesign:"isModalDesign",isInvalid:"isInvalid",disabled:"disabled"},outputs:{changed:"changed"},ngContentSelectors:h,decls:6,vars:13,consts:[[1,"radio",3,"ngClass"],["type","radio",1,"radio__input",3,"value","name","checked","change"],["radio",""],[1,"radio__custom"],["class","radio__label",3,"radio__label_active",4,"ngIf"],[1,"radio__label"]],template:function(O,L){if(1&O){const w=e.\u0275\u0275getCurrentView();e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"label",0)(1,"input",1,2),e.\u0275\u0275listener("change",function(){e.\u0275\u0275restoreView(w);const _=e.\u0275\u0275reference(2);return e.\u0275\u0275resetView(L.onRadioChange(_.checked))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",3),e.\u0275\u0275template(4,a,3,6,"span",4),e.\u0275\u0275projection(5),e.\u0275\u0275elementEnd()}if(2&O){const w=e.\u0275\u0275reference(2);e.\u0275\u0275classProp("disabled",L.disabled),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,u,L.isModalDesign)),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",L.value)("name",L.name)("checked",L.chosen),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("radio__custom_active",w.checked)("invalid",L.isInvalid),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",L.label)}},dependencies:[d.mk,d.O5,i.X$],styles:['@charset "UTF-8";.radio[_ngcontent-%COMP%]{display:flex;cursor:pointer;align-items:center}.radio.disabled[_ngcontent-%COMP%]{pointer-events:none}.radio__label[_ngcontent-%COMP%]{margin-left:12px;color:#88909b}.radio__label_active[_ngcontent-%COMP%]{color:#444}.radio__custom[_ngcontent-%COMP%]{min-width:20px;min-height:20px;border:2px solid #dedede;position:relative}.radio__custom_active[_ngcontent-%COMP%]{border:none;background:#2f54eb}.radio__custom.invalid[_ngcontent-%COMP%]{border:2px solid #e23428}.radio__custom[_ngcontent-%COMP%], .radio__label[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.radio__input[_ngcontent-%COMP%]{display:none}.radio__input[_ngcontent-%COMP%]:checked + .radio__custom[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;inset:25%;background-color:#fff;border-radius:2px}.radio__custom[_ngcontent-%COMP%], .radio__input[_ngcontent-%COMP%]:checked + .radio__custom[_ngcontent-%COMP%]:before{border-radius:50%}[_nghost-%COMP%]     .radio__icon{fill:red}[_nghost-%COMP%]     .radio__icon_active{fill:green}']})}(0,n.gn)([(0,i.SQ)()],l.prototype,"lang",void 0)},93555:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>d});var n=t(36895),e=t(16611),i=t(94650);let d=(()=>{class a{static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275mod=i.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=i.\u0275\u0275defineInjector({imports:[n.ez,e.qw]})}return a})()},94015:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>O});var n=t(97582),e=t(94650),i=t(16611),d=t(25781),a=t(68735),u=t(36895);function h(L,w){if(1&L){const B=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3)(1,"app-radio",4),e.\u0275\u0275listener("changed",function(y){const C=e.\u0275\u0275restoreView(B).$implicit,T=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(T.changeGroupValue(y,C))}),e.\u0275\u0275elementStart(2,"div",5),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()()}if(2&L){const B=w.$implicit,_=w.index,y=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("value",B.value)("chosen",B.chosen),e.\u0275\u0275attribute("data-qa","1658988911927"+_),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,B.label,y.lang))}}function l(L,w){if(1&L&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,h,5,7,"div",2),e.\u0275\u0275elementEnd()),2&L){const B=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",B.radioList)}}function m(L,w){if(1&L){const B=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3)(1,"app-checkbox",6),e.\u0275\u0275listener("checkboxChange",function(y){const C=e.\u0275\u0275restoreView(B).$implicit,T=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(T.changeGroupValue(y,C))}),e.\u0275\u0275elementEnd()()}if(2&L){const B=w.$implicit,_=w.index;e.\u0275\u0275advance(1),e.\u0275\u0275property("label",B.label)("chosen",B.chosen),e.\u0275\u0275attribute("data-qa","1658988936464"+_)}}function x(L,w){if(1&L&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,m,2,3,"div",2),e.\u0275\u0275elementEnd()),2&L){const B=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",B.checkboxList)}}class O{constructor(w){this.translation=w,this.selectChange=new e.EventEmitter}ngOnInit(){this.resetValues&&this.resetValues.subscribe(()=>this.reset())}changeGroupValue(w,B){this.radioList&&(B.chosen=w),this.checkboxList&&(B.chosen=w.target.checked),this.selectChange.emit(B)}reset(){this.radioList&&this.radioList.forEach(w=>w.chosen=!1),this.checkboxList&&this.checkboxList.forEach(w=>w.chosen=!1)}get labelOfGroup(){if(this.label)return this.translation.translate(this.label)}static#e=this.\u0275fac=function(B){return new(B||O)(e.\u0275\u0275directiveInject(i.D7))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:O,selectors:[["app-select-group"]],inputs:{label:"label",radioList:"radioList",checkboxList:"checkboxList",resetValues:"resetValues"},outputs:{selectChange:"selectChange"},decls:4,vars:3,consts:[[1,"title"],[4,"ngIf"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[3,"value","chosen","changed"],[1,"item-text"],[3,"label","chosen","checkboxChange"]],template:function(B,_){1&B&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(2,l,2,1,"div",1),e.\u0275\u0275template(3,x,2,1,"div",1)),2&B&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(_.labelOfGroup),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",_.radioList),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",_.checkboxList))},dependencies:[d.b,a.U,u.sg,u.O5,i.X$],styles:['@charset "UTF-8";.title[_ngcontent-%COMP%]{padding-bottom:6px}.item[_ngcontent-%COMP%]{box-sizing:border-box;padding:6px 0;display:flex}.item-text[_ngcontent-%COMP%]{margin-left:10px;color:#88909b}@media screen and (max-width: 1024px){.item[_ngcontent-%COMP%]{padding:13px 8px}}']})}(0,n.gn)([(0,i.SQ)()],O.prototype,"lang",void 0)},62653:(Ee,Q,t)=>{"use strict";t.d(Q,{F:()=>j});var n=t(97582),e=t(94650),i=t(16611),d=t(95698),a=t(86349),u=t(94716),h=t(73040),l=t(62146),m=t(36895),x=t(90995);const O=["appInputComponent"],L=["itemsContainer"],w=["itemsHeader"],B=["itemsElem"];function _(I,F){if(1&I&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&I){const z=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"Choose an option or continue your search",z.lang)," ")}}function y(I,F){if(1&I){const z=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-dadata-input-list-item",13,14),e.\u0275\u0275listener("itemSelected",function(p){e.\u0275\u0275restoreView(z);const P=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(P.optionSelect(p))}),e.\u0275\u0275elementEnd()}if(2&I){const z=F.$implicit,X=F.index,p=e.\u0275\u0275nextContext().index,P=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("id",z.key)("item",z)("isActive",p===P.activeGroupIndex&&X===P.activeIndex),e.\u0275\u0275attribute("data-qa","1658988986045"+X)}}function $(I,F){if(1&I&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",10,11),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,y,2,4,"app-dadata-input-list-item",12),e.\u0275\u0275elementContainerEnd()),2&I){const z=F.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(z.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",z.items)}}function C(I,F){if(1&I&&(e.\u0275\u0275elementStart(0,"div",7,8),e.\u0275\u0275template(2,$,5,2,"ng-container",9),e.\u0275\u0275elementEnd()),2&I){const z=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",z.groupItems)}}function T(I,F){if(1&I){const z=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",15)(1,"span",16),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"app-button",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(z);const p=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(p.emitValue())}),e.\u0275\u0275elementEnd()()}if(2&I){const z=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,"Unknown organization",z.lang))}}class j{constructor(F,z,X,p){this.translation=F,this._eref=z,this.cdr=X,this.dadataService=p,this.onFormChange=a.Ds(this.getInfoOrganizationsByNameOrInn.bind(this),500),this.groupItems=[],this.opened=!1,this.load=!1,this.companyChange=new e.EventEmitter,this.manuallyChange=new e.EventEmitter,this._activeItemIndex=0,this._activeGroupIndex=0,this._items=[],this._itemsIndex=0}get innMaxLength(){const F=new RegExp("\\d");if(this.appInputComponent.value&&this.appInputComponent.value[0].match(F))return 12}get activeIndex(){return this._activeItemIndex}set activeIndex(F){this._activeItemIndex=F}get activeGroupIndex(){return this._activeGroupIndex}set activeGroupIndex(F){this._activeGroupIndex=F}get itemsRefMap(){return this.itemsRef.toArray().map(F=>F.nativeElement)}get itemsHeights(){return this.itemsRefMap.map(F=>Math.max(F.clientHeight,F.offsetHeight))}get itemsHeaderRefMap(){return this.itemsHeaderRef.toArray().map(F=>F.nativeElement)}get itemsHeaderHeights(){return this.itemsHeaderRefMap.map(F=>Math.max(F.clientHeight,F.offsetHeight))}ngOnChanges(){this.value||(this.groupItems=[])}optionSelect(F){this.opened=!1,this.value=F.name,F.name&&this.companyChange.emit(F)}onClick(F){this._eref.nativeElement.contains(F.target)||(this.opened=!1)}getInfoOrganizationsByNameOrInn(F){this.resetIndexes(),"string"==typeof F&&(this.opened=!0,this.load=!1,this.dadataService.getCompanySuggestions(F,!1).pipe((0,d.q)(1)).subscribe(z=>{const X=z?.suggestions,p=this.formatUserCorrList(z?.pagingDataResult?.list);this.createSuggestionsList(X,p)}))}emitValue(){this.opened=!1,this.manuallyChange.emit(this.appInputComponent.value),this.appInputComponent.value=""}focusChange(F){this.resetIndexes(),this.companyChange.emit("")}handleSpeckeys(F){if(this.opened)switch(F.value){case"down":this.setActiveItem(1);break;case"up":this.setActiveItem(-1);break;case"esc":this.opened=!this.opened,this.resetIndexes();break;case"enter":this.optionSelect(this.groupItems[this.activeGroupIndex].items[this.activeIndex])}}setActiveItem(F){if(void 0===this.activeIndex||void 0===this.activeGroupIndex)return void this.resetIndexes();const z=this._itemsIndex+F;if(z>this._items.length-1||z<0)return;this._itemsIndex+=F;const X=this._items[this._itemsIndex].key;this.groupItems.forEach((p,P)=>{p.items.forEach((E,R)=>{if(E.key===X)return this.activeGroupIndex=P,this.activeIndex=R,void this.setContainerScroll()})})}setContainerScroll(){const F=this.calculateContainerScroll(this._itemsIndex);void 0!==F&&(this.itemsContainerRef.nativeElement.scrollTop=F)}formatUserCorrList(F){return F.map((z,X)=>({key:`corr${X}`,name:z.fullname,inn:z.inn&&"0"!==z.inn?z.inn:null,searchString:`${z.fullname} ${z.inn}`,type:"corr",accList:z.accList,kpp:z.kpp?z.kpp:null,description:`${this.translation.translate("INN")} ${z.inn}`}))}createSuggestionsList(F,z){let X=[];F.length&&(X=F.map((E,R)=>({key:`dadata${R}`,name:E.data?.name?.short_with_opf||E.data?.name?.full_with_opf,inn:E.data.inn,kpp:E.data.kpp,description:`${this.translation.translate("INN")} ${E.data.inn}`})));const p={title:"\u0412\u0430\u0448\u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u044b",items:z,itemsQty:z.length},P={title:"\u0414\u0440\u0443\u0433\u0438\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438",items:X,itemsQty:X.length};this.groupItems=[],z.length&&this.groupItems.push(p),F.length&&this.groupItems.push(P),this._items=[...z,...X],this.load=!0,this.cdr.detectChanges()}calculateContainerScroll(F){const z=this.itemsHeights,X=this.itemsHeaderHeights.reduce((ne,G)=>ne+G*this.groupItems.length,0)+8,p=z.slice(0,F).reduce((ne,G)=>ne+G,0),P=p+z[F]+X,E=this.itemsContainerRef.nativeElement.scrollTop,R=E+this.itemsContainerRef.nativeElement.clientHeight;return E>p?p:R<P?P-R+E:void 0}resetIndexes(){this.activeIndex=0,this.activeGroupIndex=0,this._itemsIndex=0}static#e=this.\u0275fac=function(z){return new(z||j)(e.\u0275\u0275directiveInject(i.D7),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(u.y))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:j,selectors:[["app-select-highlighting"]],viewQuery:function(z,X){if(1&z&&(e.\u0275\u0275viewQuery(O,7),e.\u0275\u0275viewQuery(L,5),e.\u0275\u0275viewQuery(w,5,e.ElementRef),e.\u0275\u0275viewQuery(B,5,e.ElementRef)),2&z){let p;e.\u0275\u0275queryRefresh(p=e.\u0275\u0275loadQuery())&&(X.appInputComponent=p.first),e.\u0275\u0275queryRefresh(p=e.\u0275\u0275loadQuery())&&(X.itemsContainerRef=p.first),e.\u0275\u0275queryRefresh(p=e.\u0275\u0275loadQuery())&&(X.itemsHeaderRef=p),e.\u0275\u0275queryRefresh(p=e.\u0275\u0275loadQuery())&&(X.itemsRef=p)}},hostBindings:function(z,X){1&z&&e.\u0275\u0275listener("click",function(P){return X.onClick(P,P.target)},!1,e.\u0275\u0275resolveDocument)},inputs:{value:"value"},outputs:{companyChange:"companyChange",manuallyChange:"manuallyChange"},features:[e.\u0275\u0275NgOnChangesFeature],decls:6,vars:6,consts:[[1,"select-highlighting"],["placeholder","To search, enter the name in free form or INN","data-qa","1658989013306","inputClass","no-description content-input placeholder-svg-search",3,"maxlength","searchIcon","value","click","focusChange","speckeyPress","valueChange"],["appInputComponent",""],["class","dadata-list__title",4,"ngIf"],["class","dadata-list",4,"ngIf"],["class","dadata-list-unknown",4,"ngIf"],[1,"dadata-list__title"],[1,"dadata-list"],["itemsContainer",""],[4,"ngFor","ngForOf"],[1,"dadata-list__header"],["itemsHeader",""],["class","dadata-list__item",3,"id","item","isActive","itemSelected",4,"ngFor","ngForOf"],[1,"dadata-list__item",3,"id","item","isActive","itemSelected"],["itemsElem",""],[1,"dadata-list-unknown"],[1,"dadata-list-unknown__value"],["text","Enter manually","data-qa","1658988999553","type","small",1,"dadata-list-unknown__button",3,"click"]],template:function(z,X){1&z&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-input",1,2),e.\u0275\u0275listener("click",function(){return X.opened=X.groupItems.length>0?!X.opened:X.opened})("focusChange",function(P){return X.focusChange(P)})("speckeyPress",function(P){return X.handleSpeckeys(P)})("valueChange",function(P){return X.onFormChange(P)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,_,3,4,"div",3),e.\u0275\u0275template(4,C,3,1,"div",4),e.\u0275\u0275template(5,T,5,4,"div",5),e.\u0275\u0275elementEnd()),2&z&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("maxlength",X.innMaxLength)("searchIcon",!0)("value",X.value),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0!==X.groupItems.length&&X.opened),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",X.groupItems.length&&X.opened),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===X.groupItems.length&&X.opened&&X.load))},dependencies:[h.a,l.S,m.sg,m.O5,x.r,i.X$],styles:['@charset "UTF-8";.select-highlighting[_ngcontent-%COMP%]{position:relative;margin:12px 0}.select-highlighting[_ngcontent-%COMP%]   .dadata-list[_ngcontent-%COMP%]{position:absolute;left:0;width:100%;background:#ffffff;z-index:80;max-height:300px;overflow-y:auto;box-shadow:0 5px 20px #0807081a;padding:4px;border-radius:2px}.select-highlighting[_ngcontent-%COMP%]   .dadata-list__title[_ngcontent-%COMP%]{padding:5px;font-size:12px}.select-highlighting[_ngcontent-%COMP%]   .dadata-list__header[_ngcontent-%COMP%]{padding:8px 12px;color:#2f54eb;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:12px;font-style:normal;font-weight:600;line-height:16px}.select-highlighting[_ngcontent-%COMP%]   .dadata-list__item[_ngcontent-%COMP%]{display:block}.select-highlighting[_ngcontent-%COMP%]   .dadata-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dedede;border-radius:4px}.select-highlighting[_ngcontent-%COMP%]   .dadata-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;background-color:#f1f2f2}.select-highlighting[_ngcontent-%COMP%]   .dadata-list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.select-highlighting[_ngcontent-%COMP%]   .dadata-list-unknown[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;align-items:center;left:0;width:100%;background:#ffffff;z-index:80;overflow-y:hidden;box-shadow:0 5px 20px #0807081a;padding:10px 10px 10px 25px;border-radius:2px}.select-highlighting[_ngcontent-%COMP%]   .dadata-list-unknown__value[_ngcontent-%COMP%]{color:#88909b}.select-highlighting[_ngcontent-%COMP%]   .dadata-list-unknown__button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}'],changeDetection:0})}(0,n.gn)([(0,i.SQ)()],j.prototype,"lang",void 0)},17263:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>X});var n=t(97582),e=t(94650),i=t(24006),d=t(16611),a=t(70234),u=t(36895),h=t(97392);function l(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,E.title,E.lang)," ")}}function m(p,P){1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",8),e.\u0275\u0275text(1,"filter_alt"),e.\u0275\u0275elementEnd())}function x(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275listener("click",function(){const G=e.\u0275\u0275restoreView(E).$implicit,ce=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(ce.optionSelect(G))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&p){const E=P.$implicit,R=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",E[R.label]," ")}}function O(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",9),e.\u0275\u0275template(1,x,2,1,"div",10),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",E.items)}}function L(p,P){1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",12),e.\u0275\u0275text(1,"arrow_drop_down"),e.\u0275\u0275elementEnd())}function w(p,P){1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",8),e.\u0275\u0275text(1,"filter_alt"),e.\u0275\u0275elementEnd())}function B(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,l,3,4,"div",2),e.\u0275\u0275elementStart(2,"div",3),e.\u0275\u0275template(3,m,2,0,"mat-icon",4),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,O,2,1,"div",5),e.\u0275\u0275template(7,L,2,0,"mat-icon",6),e.\u0275\u0275template(8,w,2,0,"mat-icon",4),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!E.inlineMode),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("disable",E.disabled)("placeholder",!E.selected),e.\u0275\u0275property("ngClass",E.inputClass),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.isMobCat),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",E.selected?E.selected[E.label]:e.\u0275\u0275pipeBind2(5,11,"Enter data",E.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",E.show),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!E.isMobCat),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.isMobCat)}}function _(p,P){1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",18),e.\u0275\u0275text(1,"filter_alt"),e.\u0275\u0275elementEnd())}function y(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"span",19),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind2(2,1,E.title,E.lang)," ")}}function $(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275listener("click",function(){const G=e.\u0275\u0275restoreView(E).$implicit,ce=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ce.optionSelect(G))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&p){const E=P.$implicit,R=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",E[R.label]," ")}}function C(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-icon",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ne.clearField())}),e.\u0275\u0275text(1,"close "),e.\u0275\u0275elementEnd()}}function T(p,P){1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",12),e.\u0275\u0275text(1,"arrow_drop_down"),e.\u0275\u0275elementEnd())}const j=function(p){return{"style-new":p}},I=function(p){return{"custom-select__container_mob-select":p}};function F(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",1)(1,"div",13),e.\u0275\u0275template(2,_,2,0,"mat-icon",14),e.\u0275\u0275template(3,y,3,4,"span",15),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",16),e.\u0275\u0275template(7,$,2,1,"div",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,C,2,0,"mat-icon",17),e.\u0275\u0275template(9,T,2,0,"mat-icon",6),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("placeholder",!E.selected),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(14,j,E.styleNew)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.isMobCat),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(E.selected&&E.autoHideTitle)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",E.selected?E.selected[E.label]:e.\u0275\u0275pipeBind2(5,11,"",E.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("@accordion",E.show?"show":"hide")("ngClass",e.\u0275\u0275pureFunction1(16,I,E.isMobCat)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",E.items),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.showCross&&E.selected&&E.selected[E.label]),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!E.isMobCat)}}const z={provide:i.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>X),multi:!0};class X{constructor(P){this._eref=P,this.selectionChange=new e.EventEmitter,this.reset=!1,this.show=!1,this.onChange=E=>{},this.onTouched=()=>{}}set selectedItem(P){if(!P)return;const E=this.items.find(R=>R[P.prop]===P.value);E&&this.selectedOption!==E&&this.optionSelect(E)}onClick(P){this.disabled||(this.show=!!this._eref.nativeElement.parentNode.contains(P)&&!this.show)}optionSelect(P,E){P=P||this.items[0],this.reset=E,this.writeValue(P[this.label]),this.selected!==P&&(this.onTouched(),this.selectionChange.emit(P),this.selected=P)}writeValue(P){if(this.reset)return this.selectedOption=null,void this.onChange(null);if(!P||"string"!=typeof P)return;const E=this.items.find(R=>R[this.label]===P);E&&(this.selectedOption=E,this.onChange(this.selectedOption[this.returnValue])),setTimeout(()=>{this.show=!1})}registerOnChange(P){this.onChange=P}registerOnTouched(P){this.onTouched=P}ngOnChanges(P){if(P.defaultValue&&P.defaultValue.currentValue){const E=this.items.find(R=>R[this.returnValue]===this.defaultValue);E&&this.optionSelect(E)}}ngOnInit(){1===this.items.length&&!this.defaultValue&&this.optionSelect(this.items[0])}clearField(){this.optionSelect({id:null,caption:null,code:null},!0)}static#e=this.\u0275fac=function(E){return new(E||X)(e.\u0275\u0275directiveInject(e.ElementRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:X,selectors:[["app-select"]],hostBindings:function(E,R){1&E&&e.\u0275\u0275listener("click",function(G){return R.onClick(G.target)})},inputs:{items:"items",label:"label",title:"title",returnValue:"returnValue",defaultValue:"defaultValue",inlineMode:"inlineMode",selectId:"selectId",inputClass:"inputClass",disabled:"disabled",showCross:"showCross",autoHideTitle:"autoHideTitle",styleNew:"styleNew",isMobCat:"isMobCat",selectedItem:"selectedItem"},outputs:{selectionChange:"selectionChange"},features:[e.\u0275\u0275ProvidersFeature([z]),e.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[["class","custom-select",4,"ngIf"],[1,"custom-select"],["class","custom-select__placeholder",4,"ngIf"],[1,"custom-select__fake",3,"ngClass"],["class","pyramid-icon line-control__mob-cat_icon","color","#88909B",4,"ngIf"],["class","custom-select__container",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"custom-select__placeholder"],["color","#88909B",1,"pyramid-icon","line-control__mob-cat_icon"],[1,"custom-select__container"],["class","custom-select__container__item",3,"click",4,"ngFor","ngForOf"],[1,"custom-select__container__item",3,"click"],[1,"arrow-down"],[1,"custom-select__fake","inline-mode",3,"ngClass"],["class","pyramid-icon custom-select__fake_icon",4,"ngIf"],["class","title",4,"ngIf"],[1,"custom-select__container",3,"ngClass"],["class","select-cross","id","select-cross",3,"click",4,"ngIf"],[1,"pyramid-icon","custom-select__fake_icon"],[1,"title"],["id","select-cross",1,"select-cross",3,"click"]],template:function(E,R){1&E&&(e.\u0275\u0275template(0,B,9,14,"div",0),e.\u0275\u0275template(1,F,10,18,"div",0)),2&E&&(e.\u0275\u0275property("ngIf",!R.inlineMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.inlineMode))},dependencies:[u.mk,u.sg,u.O5,h.Hw,d.X$],styles:['@charset "UTF-8";:host{position:relative}.custom-select{position:relative}.custom-select app-svg-icon{cursor:pointer}.custom-select__fake{border:1px solid #dedede;padding:28px 34px 12px 12px;border-radius:5px;box-sizing:border-box;width:100%;font-size:16px;z-index:99;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-select__fake_icon,.custom-select__fake.placeholder{color:#88909b}.custom-select__fake.disable{background:#f1f2f2;cursor:default}.custom-select__fake.inline-mode{padding-top:10px}.custom-select__fake.style-new{padding-top:13px;border-color:#88909b;height:48px;color:#444}.custom-select__fake .title{color:#88909b}.custom-select__placeholder{position:absolute;box-sizing:border-box;width:100%;padding:11px 34px 0 12px;left:0;top:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-select .custom-select-container{border:2px solid #f1f2f2;outline:none;width:100%;padding:30px 15px 11px;background:none;font-size:1em;border-radius:5px;box-sizing:border-box;font-family:Source Sans Pro}.custom-select .custom-select-container .custom-select__item{padding:12px;border-bottom:1px solid #dedede;cursor:pointer;box-sizing:border-box}.custom-select .custom-select-container .custom-select__item:hover{background:#f1f2f2}.custom-select .custom-select-container .additional-value{display:block;padding-top:5px;font-size:.8em;color:#88909b}.custom-select .custom-select-container .additional-value .currecny{font-size:.9em}.custom-select .custom-select__container{overflow-y:auto;position:absolute;top:100%;left:0;box-shadow:0 4px 20px #0000002e;width:100%;background:#ffffff;z-index:80;max-height:300px}.custom-select .custom-select__container_mob-select{left:unset;right:0;min-width:300px}.custom-select .custom-select__container__item{padding:12px;border-bottom:1px solid #dedede;cursor:pointer;box-sizing:border-box}.custom-select .custom-select__container__item:hover{background:#f1f2f2}.custom-select .custom-select__container .additional-value{display:block;padding-top:5px;font-size:.8em;color:#88909b}.custom-select .custom-select__container .additional-value .currecny{font-size:.9em}.custom-select .custom-select app-input{margin:0}.custom-select__placeholder{position:absolute;color:#88909b;font-size:12px}.arrow-down{color:#88909b;position:absolute;right:4px;top:50%;transform:translateY(-50%)}.select-cross{color:#88909b;width:14px;height:14px;font-size:14px;position:absolute;right:24px;top:50%;transform:translateY(-50%)}\n'],encapsulation:2,data:{animation:[a.U]}})}(0,n.gn)([(0,d.SQ)()],X.prototype,"lang",void 0)},63978:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>u});var n=t(36895),e=t(16611),i=t(48038),d=t(97392),a=t(94650);let u=(()=>{class h{static#e=this.\u0275fac=function(x){return new(x||h)};static#t=this.\u0275mod=a.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.ez,i.Y,e.qw,d.Ps]})}return h})()},85369:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){}ngOnChanges(){this.margin&&(this.marginTop=this.margin,this.marginBottom=this.margin)}ngOnInit(){}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:i,selectors:[["app-separator"]],inputs:{margin:"margin",marginTop:"marginTop",marginBottom:"marginBottom"},features:[n.\u0275\u0275NgOnChangesFeature],decls:2,vars:4,consts:[[1,"separator"],[1,"separator__line"]],template:function(u,h){1&u&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275element(1,"div",1),n.\u0275\u0275elementEnd()),2&u&&(n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("margin-top",h.marginTop,"px")("margin-bottom",h.marginBottom,"px"))},styles:['@charset "UTF-8";.gray[_nghost-%COMP%]   .separator__line[_ngcontent-%COMP%]{background-color:#dedede}.separator[_ngcontent-%COMP%]{width:100%}.separator__line[_ngcontent-%COMP%]{height:1px;width:100%;background-color:#88909b}']})}return i})()},20327:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>d});var n=t(97582),e=t(16611),i=t(94650);class d{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:d,selectors:[["app-show-more-button"]],decls:3,vars:4,consts:[[1,"show-more"]],template:function(h,l){1&h&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&h&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,1,"Show more",l.lang),"\n"))},dependencies:[e.X$],styles:['@charset "UTF-8";.show-more[_ngcontent-%COMP%]{height:50px;line-height:50px;background:#f1f2f2;display:flex;align-items:center;text-align:center;justify-content:center;color:#88909b;cursor:pointer}']})}(0,n.gn)([(0,e.SQ)()],d.prototype,"lang",void 0)},66832:(Ee,Q,t)=>{"use strict";t.d(Q,{C:()=>d});var n=t(36895),e=t(16611),i=t(94650);let d=(()=>{class a{static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275mod=i.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=i.\u0275\u0275defineInjector({imports:[n.ez,e.qw]})}return a})()},15557:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>i});var n=t(94650);const e=["*"];let i=(()=>{class d{get isActive(){return this.active}constructor(){this.active=!1}ngOnInit(){}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["app-tab"]],hostVars:2,hostBindings:function(h,l){2&h&&n.\u0275\u0275classProp("active",l.isActive)},inputs:{label:"label",routerLink:"routerLink",queryParams:"queryParams",number:"number",disabled:"disabled"},ngContentSelectors:e,decls:2,vars:1,consts:[[3,"hidden"]],template:function(h,l){1&h&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd()),2&h&&n.\u0275\u0275property("hidden",!l.active)},encapsulation:2})}return d})()},15731:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>d});var n=t(36895),e=t(16611),i=t(94650);let d=(()=>{class a{static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275mod=i.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=i.\u0275\u0275defineInjector({imports:[n.ez,e.qw]})}return a})()},65218:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>w});var n=t(97582),e=t(94650),i=t(16611),d=t(15557),a=t(44180),u=t(36895);function h(B,_){if(1&B&&(e.\u0275\u0275elementStart(0,"span",5),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&B){const y=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(y.number)}}const l=function(B){return{tab__counter:B}};function m(B,_){if(1&B){const y=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3),e.\u0275\u0275listener("click",function(){const C=e.\u0275\u0275restoreView(y),T=C.$implicit,j=C.index,I=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(I.setIndex(T,j))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275template(3,h,2,1,"span",4),e.\u0275\u0275elementEnd()}if(2&B){const y=_.$implicit,$=_.index,C=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("active",y.active)("disabled",y.disabled),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,l,y.number)),e.\u0275\u0275attribute("data-qa","1657786925923"+$),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,8,y.label,C.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",y.number)}}const x=function(B){return{"--bottom-border":B}};function O(B,_){if(1&B&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,m,4,13,"div",2),e.\u0275\u0275elementEnd()),2&B){const y=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,x,y.showBottomBorder)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",y.tabs)}}const L=["*"];class w{constructor(_){this.router=_,this.showBottomBorder=!1,this.numberDigitsLimit="hundred",this.selectTab=new e.EventEmitter}set _tabs(_){_&&_.length&&(this.tabs=_.toArray(),setTimeout(()=>{this.tabs[this.currentIndex>0?this.currentIndex:this.initialIndex>=0?this.initialIndex:0].active=!0}))}getTabNumber(_){if(!_)return"";switch(this.numberDigitsLimit){case"ten":return _<10?_.toString():"9+";case"hundred":return _<100?_.toString():"99+";case"thousand":return _<1e3?_.toString():"999+";default:return _.toString()}}ngOnChanges(_){"currentIndex"in _&&this.tabs&&(this.tabs.forEach(y=>y.active=!1),this.tabs[this.currentIndex]&&(this.tabs[this.currentIndex].active=!0))}setIndex(_,y){_&&!_.active&&!_.disabled&&(this.tabs.forEach($=>$.active=!1),_.active=!0,this.selectTab.emit(this.tabs.indexOf(_)),_.routerLink&&this.router.navigate([_.routerLink])),this.scrollToTab(y)}scrollToTab(_){document.querySelectorAll(".tabs .tab")[_].scrollIntoView({block:"end",inline:"center"})}static#e=this.\u0275fac=function(y){return new(y||w)(e.\u0275\u0275directiveInject(a.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:w,selectors:[["app-tabs"]],contentQueries:function(y,$,C){if(1&y&&e.\u0275\u0275contentQuery(C,d.i,4),2&y){let T;e.\u0275\u0275queryRefresh(T=e.\u0275\u0275loadQuery())&&($._tabs=T)}},inputs:{initialIndex:"initialIndex",currentIndex:"currentIndex",spaceBetween:"spaceBetween",showBottomBorder:"showBottomBorder",numberDigitsLimit:"numberDigitsLimit"},outputs:{selectTab:"selectTab"},features:[e.\u0275\u0275NgOnChangesFeature],ngContentSelectors:L,decls:2,vars:1,consts:[["class","tabs","data-qa","1657787078062",3,"ngClass",4,"ngIf"],["data-qa","1657787078062",1,"tabs",3,"ngClass"],["class","tab",3,"active","disabled","ngClass","click",4,"ngFor","ngForOf"],[1,"tab",3,"ngClass","click"],["class","tab-number",4,"ngIf"],[1,"tab-number"]],template:function(y,$){1&y&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,O,2,4,"div",0),e.\u0275\u0275projection(1)),2&y&&e.\u0275\u0275property("ngIf",$.tabs)},dependencies:[u.mk,u.sg,u.O5,i.X$],styles:['@charset "UTF-8";.tabs[_ngcontent-%COMP%]{display:flex!important;font-family:Open Sans;overflow:scroll hidden;scrollbar-width:none;-ms-text-overflow-style:none}.tabs.--bottom-border[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.tabs[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.tab[_ngcontent-%COMP%]{outline:none;position:relative;justify-content:center;color:#88909b;font-size:18px;line-height:18px;padding:32px 0;cursor:pointer;display:flex;align-items:center;text-align:center;margin-bottom:-1px;border-bottom:3px solid transparent;margin-right:40px;transition:border .2s ease,color .2s ease;white-space:nowrap}.tab__counter[_ngcontent-%COMP%]{margin-right:27px}@media screen and (max-width: 1024px){.tab[_ngcontent-%COMP%]{margin-right:40px}}.active[_ngcontent-%COMP%]{border-bottom:3px solid #2f54eb;color:#444;transition:border-color 1s}@media screen and (max-width: 920px){.active[_ngcontent-%COMP%]:last-child{margin-right:0}}.tab[_ngcontent-%COMP%]:hover{color:#444}']})}(0,n.gn)([(0,i.SQ)()],w.prototype,"lang",void 0)},67255:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>d});var n=t(36895),e=t(16611),i=t(94650);let d=(()=>{class a{static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275mod=i.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=i.\u0275\u0275defineInjector({imports:[n.ez,e.qw]})}return a})()},15693:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>l});var n=t(97582),e=t(16611),i=t(97185),d=t(94650),a=t(11260),u=t(36895);function h(m,x){if(1&m&&(d.\u0275\u0275elementStart(0,"div",5),d.\u0275\u0275text(1),d.\u0275\u0275pipe(2,"translate"),d.\u0275\u0275elementEnd()),2&m){const O=d.\u0275\u0275nextContext();d.\u0275\u0275classProp("title-padding",O.message),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind2(2,3,O.title,O.lang))}}class l extends i.h0{ngOnInit(){}static#e=this.\u0275fac=function(){let x;return function(L){return(x||(x=d.\u0275\u0275getInheritedFactory(l)))(L||l)}}();static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:l,selectors:[["app-toast"]],features:[d.\u0275\u0275InheritDefinitionFeature],decls:6,vars:5,consts:[[1,"toast"],[1,"toast-wrapper"],["class","toast-wrapper-title",3,"title-padding",4,"ngIf"],[1,"toast-wrapper-text",3,"innerHTML"],["icon","cross","svgClass","toast-icon",1,"toast-svg"],[1,"toast-wrapper-title"]],template:function(O,L){1&O&&(d.\u0275\u0275elementStart(0,"div",0)(1,"div",1),d.\u0275\u0275template(2,h,3,6,"div",2),d.\u0275\u0275element(3,"div",3),d.\u0275\u0275pipe(4,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275element(5,"app-svg-icon",4),d.\u0275\u0275elementEnd()),2&O&&(d.\u0275\u0275advance(2),d.\u0275\u0275property("ngIf",L.title),d.\u0275\u0275advance(1),d.\u0275\u0275property("innerHTML",d.\u0275\u0275pipeBind2(4,2,L.message,L.lang),d.\u0275\u0275sanitizeHtml))},dependencies:[a.b,u.O5,e.X$],styles:['@charset "UTF-8";.toast[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;margin-bottom:20px;margin-left:12px;padding:10px 15px 10px 20px;max-width:420px;min-width:330px;min-height:60px;background:#fff;box-shadow:0 2px 4px #0000001c;pointer-events:auto;opacity:.95;border-radius:5px;cursor:pointer}.toast-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:auto 0}.toast-wrapper-text[_ngcontent-%COMP%]{color:#fff}.toast-wrapper-text[_ngcontent-%COMP%]     ul{margin-left:1em}.toast-wrapper-text[_ngcontent-%COMP%]     ul li{display:list-item}.toast-wrapper-title[_ngcontent-%COMP%]{color:#fff}.toast-wrapper-title.title-padding[_ngcontent-%COMP%]{padding-bottom:5px}.toast[_ngcontent-%COMP%]:hover{opacity:1}.toast-svg[_ngcontent-%COMP%]{margin-left:15px}  .toast-container{pointer-events:none;position:fixed;top:15px;right:12px;z-index:9999}  .toast-icon{width:12px;height:12px;fill:#fff}  .toast-success .toast{background-image:linear-gradient(270deg,#00a843 0%,#1fd071 100%)}  .toast-warning .toast{background-image:linear-gradient(90deg,#f39034 0%,#ff2727 100%)}  .toast-error .toast{background-image:linear-gradient(270deg,#f39034 0%,#ff2727 100%)}']})}(0,n.gn)([(0,e.SQ)()],l.prototype,"lang",void 0)},72654:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>m});var n=(()=>{return(x=n||(n={})).ABOVE="above",x.BELOW="below",x.LEFT="left",x.RIGHT="right",x.DYNAMIC="dynamic",n;var x})(),e=(()=>{return(x=e||(e={})).DARK="dark",x.LIGHT="light",e;var x})(),i=(()=>{return(x=i||(i={})).LEFT="left",x.RIGHT="right",x.MIDDLE="middle",i;var x})(),d=t(94650),a=t(36895);function u(x,O){if(1&x&&(d.\u0275\u0275elementStart(0,"div",3),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&x){const L=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",L.tooltipHeader," ")}}const h=function(x,O,L){return[x,O,L]};let l=(()=>{class x{constructor(){this.position=n.ABOVE,this.theme=e.DARK,this.tooltip="",this.tooltipHeader="",this.left=0,this.top=0,this.tooltipWidth="initial",this.tooltipContentFontSize="",this.tooltipContentFontWeight="",this.visible=!1}static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:x,selectors:[["app-tooltip"]],decls:4,vars:21,consts:[[1,"tooltip",3,"ngClass"],["class","tooltip__header",4,"ngIf"],[1,"tooltip__content"],[1,"tooltip__header"]],template:function(w,B){1&w&&(d.\u0275\u0275elementStart(0,"div",0),d.\u0275\u0275template(1,u,2,1,"div",1),d.\u0275\u0275elementStart(2,"div",2),d.\u0275\u0275text(3),d.\u0275\u0275elementEnd()()),2&w&&(d.\u0275\u0275styleProp("left",B.left+"px")("top",B.top+"px")("width",B.tooltipWidth)("max-width",B.tooltipWidth),d.\u0275\u0275classProp("tooltip--visible",B.visible),d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction3(17,h,"tooltip--"+B.position,"tooltip--"+B.theme,"triangle-position--"+B.triangleSidePosition)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",B.tooltipHeader),d.\u0275\u0275advance(1),d.\u0275\u0275styleProp("font-size",B.tooltipContentFontSize)("font-weight",B.tooltipContentFontWeight),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",B.tooltip," "))},dependencies:[a.mk,a.O5],styles:['@charset "UTF-8";.tooltip[_ngcontent-%COMP%]{position:fixed;z-index:1100;background-color:#1a2a40;border-radius:4px;color:#fff;font-family:Open Sans,Source Sans Pro,sans-serif;padding:12px;font-size:14px;opacity:0}.tooltip__header[_ngcontent-%COMP%]{font-weight:700;margin-bottom:8px}.tooltip__content[_ngcontent-%COMP%]{word-break:normal}.tooltip[_ngcontent-%COMP%]:before{content:"";width:0;height:0;position:absolute}.tooltip--visible[_ngcontent-%COMP%]{opacity:1;transition:opacity .3s}.tooltip--light[_ngcontent-%COMP%]{background-color:#fff;color:#080708;box-shadow:0 5px 20px #0807081a}.tooltip--light[_ngcontent-%COMP%]:before{border:5px solid white}.tooltip--dark[_ngcontent-%COMP%]{background-color:#1a2a40;color:#fff}.tooltip--dark[_ngcontent-%COMP%]:before{border:5px solid black}.tooltip--below[_ngcontent-%COMP%]{transform:translate(-80%);margin-top:7px}.tooltip--below[_ngcontent-%COMP%]:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(80% - 5px);top:-5px}.tooltip--below.triangle-position--left[_ngcontent-%COMP%]:before{left:calc(23% - 5px)}.tooltip--below.triangle-position--middle[_ngcontent-%COMP%]:before{left:50%}.tooltip--above[_ngcontent-%COMP%]{transform:translate(-80%,-105%);margin-bottom:7px}.tooltip--above[_ngcontent-%COMP%]:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(80% - 5px);bottom:-5px}.tooltip--above.triangle-position--left[_ngcontent-%COMP%]:before{left:calc(23% - 5px)}.tooltip--left[_ngcontent-%COMP%]{transform:translate(calc(-100% - 7px),-20%)}.tooltip--left[_ngcontent-%COMP%]:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(20% - 5px)}.tooltip--right[_ngcontent-%COMP%]{transform:translateY(-20%);margin-left:7px}.tooltip--right[_ngcontent-%COMP%]:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(20% - 5px)}.tooltip--right.triangle-position--left[_ngcontent-%COMP%]:before{top:calc(20% - 5px)}.tooltip--dynamic[_ngcontent-%COMP%]{margin-left:20px}.tooltip--dynamic[_ngcontent-%COMP%]:before{display:none}']})}return x})(),m=(()=>{class x{constructor(L,w,B,_){this.elementRef=L,this.appRef=w,this.componentFactoryResolver=B,this.injector=_,this.tooltipHeader="",this.tooltip="",this.position=n.ABOVE,this.theme=e.DARK,this.tooltipWidth="initial",this.tooltipContentFontSize="14px",this.tooltipContentFontWeight="400",this.showDelay=0,this.hideDelay=0,this.componentRef=null}onMouseEnter(){this.initializeTooltip()}onMouseLeave(){this.setHideTooltipTimeout()}onMouseMove(L){null!==this.componentRef&&this.position===n.DYNAMIC&&(this.componentRef.instance.left=L.clientX,this.componentRef.instance.top=L.clientY,this.componentRef.instance.tooltip=this.tooltip,this.componentRef.instance.tooltipHeader=this.tooltipHeader,this.componentRef.instance.tooltipWidth=this.tooltipWidth,this.componentRef.instance.tooltipContentFontSize=this.tooltipContentFontSize,this.componentRef.instance.tooltipContentFontWeight=this.tooltipContentFontWeight,this.componentRef.instance.triangleSidePosition=this.triangleSidePosition)}onTouchStart(L){L.cancelable&&L?.preventDefault(),window.clearTimeout(this.touchTimeout),this.touchTimeout=window.setTimeout(this.initializeTooltip.bind(this),50)}onTouchEnd(){setTimeout(()=>{window.clearTimeout(this.touchTimeout),this.setHideTooltipTimeout()},1500)}initializeTooltip(){if(null===this.componentRef){window.clearInterval(this.hideDelay);const L=this.componentFactoryResolver.resolveComponentFactory(l);this.componentRef=L.create(this.injector),this.appRef.attachView(this.componentRef.hostView);const[w]=this.componentRef.hostView.rootNodes;this.setTooltipComponentProperties(),document.body.appendChild(w),this.showTimeout=window.setTimeout(this.showTooltip.bind(this),this.showDelay)}}setTooltipComponentProperties(){if(null!==this.componentRef){this.componentRef.instance.tooltip=this.tooltip,this.componentRef.instance.tooltipHeader=this.tooltipHeader,this.componentRef.instance.position=this.position,this.componentRef.instance.triangleSidePosition=this.triangleSidePosition,this.componentRef.instance.theme=this.theme,this.componentRef.instance.tooltipWidth=this.tooltipWidth,this.componentRef.instance.tooltipContentFontSize=this.tooltipContentFontSize,this.componentRef.instance.tooltipContentFontWeight=this.tooltipContentFontWeight;const{left:L,right:w,top:B,bottom:_}=this.elementRef.nativeElement.getBoundingClientRect();let y;switch(this.triangleSidePosition){case i.LEFT:(this.position===n.BELOW||this.position===n.ABOVE)&&(y=Math.round(9*(w-L)+L)),(this.position===n.RIGHT||this.position===n.LEFT)&&(y=Math.round(B+(_-B)/2));break;case i.RIGHT:(this.position===n.BELOW||this.position===n.ABOVE)&&(y=Math.round((w-L)/2+L)),(this.position===n.RIGHT||this.position===n.LEFT)&&(y=Math.round(B+(_-B)/2));break;case i.MIDDLE:(this.position===n.BELOW||this.position===n.ABOVE)&&(y=Math.round(L+L/3)),(this.position===n.RIGHT||this.position===n.LEFT)&&(y=Math.round(B+(_-B)/2))}switch(this.position){case n.BELOW:this.componentRef.instance.left=y,this.componentRef.instance.top=Math.round(_);break;case n.ABOVE:this.componentRef.instance.left=y,this.componentRef.instance.top=Math.round(B);break;case n.RIGHT:this.componentRef.instance.left=Math.round(w),this.componentRef.instance.top=y;break;case n.LEFT:this.componentRef.instance.left=Math.round(L),this.componentRef.instance.top=y}}}showTooltip(){null!==this.componentRef&&(this.componentRef.instance.visible=!0)}setHideTooltipTimeout(){this.hideTimeout=window.setTimeout(this.destroy.bind(this),this.hideDelay)}ngOnDestroy(){this.destroy()}destroy(){null!==this.componentRef&&(window.clearInterval(this.showTimeout),window.clearInterval(this.hideDelay),this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef=null)}static#e=this.\u0275fac=function(w){return new(w||x)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.ApplicationRef),d.\u0275\u0275directiveInject(d.ComponentFactoryResolver),d.\u0275\u0275directiveInject(d.Injector))};static#t=this.\u0275dir=d.\u0275\u0275defineDirective({type:x,selectors:[["","appTooltip",""]],hostBindings:function(w,B){1&w&&d.\u0275\u0275listener("mouseenter",function(){return B.onMouseEnter()})("mouseleave",function(){return B.onMouseLeave()})("mousemove",function(y){return B.onMouseMove(y)})("touchstart",function(y){return B.onTouchStart(y)})("touchend",function(){return B.onTouchEnd()})},inputs:{tooltipHeader:"tooltipHeader",tooltip:["appTooltip","tooltip"],position:"position",triangleSidePosition:"triangleSidePosition",theme:"theme",tooltipWidth:"tooltipWidth",tooltipContentFontSize:"tooltipContentFontSize",tooltipContentFontWeight:"tooltipContentFontWeight",showDelay:"showDelay",hideDelay:"hideDelay"}})}return x})()},54680:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>e});var n=t(94650);let e=(()=>{class i{constructor(a){this.elementRef=a,this.clickOutside=new n.EventEmitter}onClick(a,u){u&&(this.elementRef.nativeElement.contains(u)||this.clickOutside.emit(a))}static#e=this.\u0275fac=function(u){return new(u||i)(n.\u0275\u0275directiveInject(n.ElementRef))};static#t=this.\u0275dir=n.\u0275\u0275defineDirective({type:i,selectors:[["","clickOutside",""]],hostBindings:function(u,h){1&u&&n.\u0275\u0275listener("click",function(m){return h.onClick(m,m.target)},!1,n.\u0275\u0275resolveDocument)},outputs:{clickOutside:"clickOutside"}})}return i})()},76264:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>i});var n=t(36895),e=t(94650);let i=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:d});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.ez]})}return d})()},95661:(Ee,Q,t)=>{"use strict";t.d(Q,{F:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){this.fileOver=!1,this.filesIsDropped=new n.EventEmitter}onDragOver(a){a.preventDefault(),a.stopPropagation(),this.fileOver=!0}onDragLeave(a){a.preventDefault(),a.stopPropagation(),this.fileOver=!1}onDrop(a){a.preventDefault(),a.stopPropagation(),this.fileOver=!1;const u=a.dataTransfer.files;u.length>0&&this.filesIsDropped.emit(u)}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275dir=n.\u0275\u0275defineDirective({type:i,selectors:[["","appDropFiles",""]],hostVars:2,hostBindings:function(u,h){1&u&&n.\u0275\u0275listener("dragover",function(m){return h.onDragOver(m)})("dragleave",function(m){return h.onDragLeave(m)})("drop",function(m){return h.onDrop(m)}),2&u&&n.\u0275\u0275classProp("fileover",h.fileOver)},outputs:{filesIsDropped:"filesIsDropped"}})}return i})()},69245:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>d});var n=t(97982),i=t(94650);let d=(()=>{class a{constructor(h){this.element=h,this.el=h}ngOnInit(){}ngAfterViewInit(){const l=Array.from(this.el.nativeElement.childNodes).filter(m=>"INPUT"===m.tagName||"TEXTAREA"===m.tagName);this.appTextMask&&l&&l[0]&&(this.maskedInputController=n.maskInput({inputElement:l[0],mask:this.appTextMask,guide:!1}))}ngOnDestroy(){this.maskedInputController&&this.maskedInputController.destroy()}static#e=this.\u0275fac=function(l){return new(l||a)(i.\u0275\u0275directiveInject(i.ElementRef))};static#t=this.\u0275dir=i.\u0275\u0275defineDirective({type:a,selectors:[["","appTextMask",""]],inputs:{appTextMask:"appTextMask"}})}return a})()},18430:(Ee,Q,t)=>{"use strict";t.d(Q,{r:()=>tt});var n=t(37340),e=t(94650),i=t(77579),d=t(36895),a=t(24006),u=t(82722),h=t(4965),l=t(16304);let m=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-metib-input-wrapper"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:10,consts:[[1,"form-input-container",3,"formGroup"],[3,"config","field","component","select","mask","filter","visual","formControlName","hint","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-metib-input",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",Me.config)("field",Me.field)("component",Me.component)("select",Me.select)("mask",Me.mask)("filter",Me.filter)("visual",Me.visual)("formControlName",Me.field.name)("hint",Me.hint))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,l.w],styles:["app-form-input-wrapper{display:block}\n"],encapsulation:2})}return nt})();var x=t(97582),O=t(16611);class L extends h.n{constructor(){super()}get class(){return this.visual?.cssClass||""}click(){this.emitEvent({eventType:"button-click",fieldName:this.field.name})}static#e=this.\u0275fac=function(ve){return new(ve||L)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:L,selectors:[["app-form-button"]],hostVars:2,hostBindings:function(ve,Se){2&ve&&e.\u0275\u0275classMap(Se.class)},features:[e.\u0275\u0275InheritDefinitionFeature],decls:5,vars:12,consts:[[3,"ngClass","click"],[1,"modal-design__plus"]],template:function(ve,Se){1&ve&&(e.\u0275\u0275elementStart(0,"button",0),e.\u0275\u0275listener("click",function(){return Se.click()}),e.\u0275\u0275elementStart(1,"span",1),e.\u0275\u0275text(2,"+"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&ve&&(e.\u0275\u0275classProp("panel-form__button",!Se.config.isModalDesign)("modal-design",Se.config.isModalDesign)("disabled",null==Se.visual?null:Se.visual.visualDisabled),e.\u0275\u0275property("ngClass",null==Se.visual?null:Se.visual.cssClass),e.\u0275\u0275attribute("data-qa",Se.config.dataQa),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind2(4,9,Se.component.title,Se.lang),"\n"))},dependencies:[d.mk,O.X$],styles:['@charset "UTF-8";app-form-button[_ngcontent-%COMP%]{width:100%;position:relative;margin:12px 0}app-form-button.half-inline[_ngcontent-%COMP%]{width:49%}app-form-button.half-inline[_ngcontent-%COMP%]:last-child{margin-right:0;margin-left:auto}app-form-button.three-inline[_ngcontent-%COMP%]{width:32%}app-form-button.short[_ngcontent-%COMP%]{width:50%}.modal-design[_ngcontent-%COMP%]{background:none;text-align:center;display:flex;align-items:center;cursor:pointer;color:#2f54eb;justify-content:center;height:100%;border:none;font-weight:600;font-size:14px}.modal-design__plus[_ngcontent-%COMP%]{font-weight:400;padding:3px 3px 1px;margin-right:4px;font-size:20px}.panel-form__button[_ngcontent-%COMP%]{text-align:center;padding:13px 40px;display:flex;align-items:center;cursor:pointer;border-radius:5px;color:#fff;justify-content:center;height:100%;width:100%;border:none}.panel-form__button.small[_ngcontent-%COMP%]{line-height:40px}.panel-form__button.small-bordered[_ngcontent-%COMP%]{line-height:40px;background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.panel-form__button.bordered[_ngcontent-%COMP%]{height:60px;background:transparent;border:1px solid #2f54eb;color:#2f54eb;box-sizing:border-box}.panel-form__button.email[_ngcontent-%COMP%]{margin-bottom:30px;height:60px;padding:0}.panel-form__button.last-email[_ngcontent-%COMP%]{height:60px;margin-bottom:0;padding:0}']})}(0,x.gn)([(0,O.SQ)()],L.prototype,"lang",void 0);var w=t(31889),B=t(3729),_=t(52068);function y(nt,De){if(1&nt){const ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-form-selection-options",3),e.\u0275\u0275listener("select",function(Me){e.\u0275\u0275restoreView(ve);const We=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(We.setItem(Me))}),e.\u0275\u0275elementEnd()}if(2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275property("config",ve.config)("keyboardEvents",ve.keyboardEvents.asObservable())("open",ve.show)("options",ve.filteredItems)("cssClass",null==ve.config||null==ve.config.visual?null:ve.config.visual.cssClass)}}const $={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>C),multi:!0};class C extends w.C{constructor(De,ve){super(),this.elRef=De,this.changeDetectorRef=ve,this.show=!1,this.filteredItems=[],this.keyboardEvents=new i.x,this.onTouch=()=>{},this.onModelChange=()=>{}}get items(){return this._items}set items(De){this._items=De,this.filterOptions(this.valueForSearch)}get filterByOpt(){return this.select&&this.select.filterByOpt?this.select.filterByOpt:[]}get originalItems(){return this.items&&this.items.length?this.items:[]}get filterBy(){return this.select&&this.select.filterBy?this.select.filterBy:"caption"}get disabled(){return this._disabled||this.visual&&this.visual.visualDisabled||null}ngOnDestroy(){clearTimeout(this.hideOnBlurTimeout)}ngOnInit(){}registerOnTouched(De){this.onTouch=De}registerOnChange(De){this.onModelChange=De}onEvent(De){"blur"===De.eventType&&(1===this.filteredItems.length?this.setItem(this.filteredItems[0]):this.hideOnBlurTimeout=setTimeout(()=>{this.show=!1,this.value&&this.group.controls[this.field.name].invalid&&(this.getSelectionOptions("",!0),this.change())},400)),this.emitEvent.emit(De)}onKeyDown(De){["Enter","ArrowUp","ArrowDown"].includes(De.key)&&this.keyboardEvents.next(De)}writeValue(De){this.show&&!this.filteredItems.length&&this.filterOptions(this.valueForSearch),this.value=De;const ve=this.originalItems.find(Se=>Se.value===De);this.getSelectionOptions(ve?ve[this.filterBy]:this.value,!1)}changeSearchValue(De){this.value=De,this.show=!0,this.getSelectionOptions(this.value,!1),this.change()}getSelectionOptions(De,ve=!0){this.onTouch(),this.valueForSearch=De,ve&&this.clearValue(),this.filterOptions(this.valueForSearch)}onClick(De){this.show=this.elRef.nativeElement.parentNode.contains(De.target),this.show&&!this.filteredItems.length&&(this.onTouch(),this.filterOptions(this.valueForSearch))}setItem(De){De&&(this.value=De.value,this.getSelectionOptions(De.caption,!1),this.change(),setTimeout(ve=>{this.show=!1,this.changeDetectorRef.detectChanges()}))}change(){this.onTouch(),this.onModelChange(this.value)}setDisabledState(De){this._disabled=De}clearValue(){this.value&&(this.value=void 0,this.change())}filterOptions(De){if(De){const Se=`${De.replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\+/g,"\\+").replace(/-/g,"\\-")}`;this.filteredItems=this.originalItems.filter(Me=>{if(new RegExp(Se,"").test(Me[this.filterBy])||new RegExp(Se,"gi").test(Me[this.filterBy]))return!0;for(const ut in this.filterByOpt)if(this.filterByOpt[ut]){const et=`${Me[this.filterByOpt[ut]]}`.toLowerCase(),At=De.toLowerCase();if(et.includes(At))return!0}return!1}),this.filteredItems.length&&this.filteredItems.sort((Me,We)=>Me.caption.indexOf(De)-We.caption.indexOf(De))}else this.filteredItems=this.originalItems}static#e=this.\u0275fac=function(ve){return new(ve||C)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:C,selectors:[["app-dynamic-form-autocomplete"]],hostVars:2,hostBindings:function(ve,Se){1&ve&&e.\u0275\u0275listener("click",function(We){return Se.onClick(We)},!1,e.\u0275\u0275resolveDocument),2&ve&&e.\u0275\u0275classMap((null==Se.visual?null:Se.visual.cssClass)||"")},inputs:{config:"config",field:"field",component:"component",select:"select",mask:"mask",filter:"filter",visual:"visual",group:"group",items:"items"},features:[e.\u0275\u0275ProvidersFeature([$]),e.\u0275\u0275InheritDefinitionFeature],decls:3,vars:10,consts:[[1,"dynamic-autocomplete"],[3,"component","config","disabled","field","filter","mask","ngModel","select","visual","emitEvent","keyDownEvent","ngModelChange"],[3,"config","keyboardEvents","open","options","cssClass","select",4,"ngIf"],[3,"config","keyboardEvents","open","options","cssClass","select"]],template:function(ve,Se){1&ve&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-input",1),e.\u0275\u0275listener("emitEvent",function(We){return Se.onEvent(We)})("keyDownEvent",function(We){return Se.onKeyDown(We)})("ngModelChange",function(We){return Se.changeSearchValue(We)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(2,y,1,5,"app-form-selection-options",2),e.\u0275\u0275elementEnd()),2&ve&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("component",Se.component)("config",Se.config)("disabled",Se.disabled)("field",Se.field)("filter",Se.filter)("mask",Se.mask)("ngModel",Se.valueForSearch)("select",Se.select)("visual",Se.visual),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Se.disabled))},dependencies:[d.O5,a.NgControlStatus,a.NgModel,B.s,_.d],styles:['@charset "UTF-8";app-dynamic-form-autocomplete{display:block}app-dynamic-form-autocomplete .dynamic-autocomplete{position:relative}app-dynamic-form-autocomplete.ng-touched.ng-invalid .dynamic-input input{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}\n'],encapsulation:2})}(0,x.gn)([(0,O.SQ)()],C.prototype,"lang",void 0);let T=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-autocomplete-wrapper"]],hostVars:2,hostBindings:function(Se,Me){2&Se&&e.\u0275\u0275classMap((null==Me.visual?null:Me.visual.cssClass)||"")},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:12,consts:[[1,"form-autocomplete-container",3,"formGroup"],[3,"component","config","field","filter","formControlName","group","items","mask","select","visual","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-autocomplete",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("component",Me.component)("config",Me.config)("field",Me.field)("filter",Me.filter)("formControlName",Me.field.name)("group",Me.formGroup)("items",null==Me.select?null:Me.select.items)("mask",Me.mask)("select",Me.select)("visual",Me.visual))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,C],styles:["app-form-autocomplete-wrapper{display:block}\n"],encapsulation:2})}return nt})();var j=t(45137),I=t(95395);const F={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>z),multi:!0};class z extends w.C{constructor(){super(...arguments),this.checkboxList=[],this.onTouch=()=>{},this.onChange=()=>{}}ngOnInit(){}ngOnChanges(De){this.config.multiSelect&&this.config.multiSelect.items&&this.parseItemsToCheckboxList(this.config.multiSelect.items)}parseItemsToCheckboxList(De){const ve=this.config.multiSelect;this.withFirstItem=!!ve.firstItem,ve&&(ve.firstItem&&this.checkboxList.push({label:this.withFirstItem&&ve.firstItem.name?ve.firstItem.name:"All",chosen:this.withFirstItem&&ve.firstItem.chosen,value:this.getFirstCheckboxValue(),all:!0}),De.forEach(Se=>{this.checkboxList.push({label:Se.caption,chosen:Se.chosen,value:`'${Se.value}'`,count:Se.count})})),this.onCheckboxListChange(this.checkboxList)}getFirstCheckboxValue(){return this.config.multiSelect.items.reduce((De,ve,Se,Me)=>De+`'${ve.value}'`+(Se===Me.length-1?"":", "),"")}writeValue(De){setTimeout(()=>{if(!De)return;this.value=De||[],this.onChange(this.value);const ve=this.withFirstItem?this.checkboxList.slice(1):this.checkboxList;ve.forEach(Se=>{Se.chosen=this.value.includes(Se.value.slice(1,-1))}),this.withFirstItem&&(this.checkboxList[0].chosen=!ve.find(Se=>!Se.chosen))})}registerOnTouched(De){this.onTouch=De}registerOnChange(De){this.onChange=De}onCheckboxListChange(De){let ve;ve=this.withFirstItem&&De[0].chosen?De.slice(1).map(Se=>Se.value.substring(1,Se.value.length-1)):De.slice(this.withFirstItem?1:0).filter(Se=>Se.chosen).map(Se=>Se.value.substring(1,Se.value.length-1)),"radioSelect"===this.config.component.type&&(this.withFirstItem&&De[0].chosen||(ve=ve[0])),this.writeValue(ve)}static#e=this.\u0275fac=function(){let De;return function(Se){return(De||(De=e.\u0275\u0275getInheritedFactory(z)))(Se||z)}}();static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-dynamic-form-checkbox-select"]],hostVars:2,hostBindings:function(ve,Se){2&ve&&e.\u0275\u0275classMap((null==Se.visual?null:Se.visual.cssClass)||"")},inputs:{config:"config",field:"field",component:"component",visual:"visual"},features:[e.\u0275\u0275ProvidersFeature([F]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature],decls:2,vars:6,consts:[[1,"checkbox-select"],[3,"checkboxList","disabled","isNewDesign","labelWhenNothingChosen","radioType","selectIcon","multiSelectChange"]],template:function(ve,Se){1&ve&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-multi-select",1),e.\u0275\u0275listener("multiSelectChange",function(We){return Se.onCheckboxListChange(We)}),e.\u0275\u0275elementEnd()()),2&ve&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("checkboxList",Se.checkboxList)("disabled",Se.config.field.disabled||Se.visual.visualDisabled)("isNewDesign",Se.config.isNewDesign)("labelWhenNothingChosen",null==Se.config.multiSelect?null:Se.config.multiSelect.labelWhenNothingChosen)("radioType","radioSelect"===Se.config.component.type)("selectIcon",Se.config.visual.svgIcon))},dependencies:[I.O],styles:[".checkbox-select[_ngcontent-%COMP%]{position:relative}"]})}(0,x.gn)([(0,O.SQ)()],z.prototype,"lang",void 0);let X=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-checkbox-select-wrapper"]],hostVars:2,hostBindings:function(Se,Me){2&Se&&e.\u0275\u0275classMap((null==Me.visual?null:Me.visual.cssClass)||"")},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:7,consts:[[3,"formGroup"],[3,"config","field","component","visual","formControlName","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-checkbox-select",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",Me.config)("field",Me.field)("component",Me.component)("visual",Me.visual)("formControlName",Me.field.name))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,z]})}return nt})();var p=t(6036),P=t(11260);const E={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>R),multi:!0};class R extends w.C{constructor(){super(...arguments),this.onTouch=()=>{},this.onChange=()=>{}}ngOnInit(){}writeValue(De){this.chosen=!!De,this.value=De,this.onChange(De),this.onTouch()}change(De){this.value=De,this.onTouch(),this.onChange(De),this.writeValue(De)}registerOnTouched(De){this.onTouch=De}registerOnChange(De){this.onChange=De}setDisabledState(De){this.isDisabled=De}get disabled(){return this.isDisabled}static#e=this.\u0275fac=function(){let De;return function(Se){return(De||(De=e.\u0275\u0275getInheritedFactory(R)))(Se||R)}}();static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:R,selectors:[["app-dynamic-form-checkbox"]],hostVars:2,hostBindings:function(ve,Se){2&ve&&e.\u0275\u0275classMap((null==Se.visual?null:Se.visual.cssClass)||"")},inputs:{config:"config",field:"field",component:"component",visual:"visual"},features:[e.\u0275\u0275ProvidersFeature([E]),e.\u0275\u0275InheritDefinitionFeature],decls:9,vars:16,consts:[[1,"form-checkbox-container"],[1,"checkbox",3,"click"],["type","checkbox",1,"checkbox__input",3,"value","checked","disabled","change"],["checkbox",""],[1,"checkbox__custom"],["icon","check",3,"svgClass"],[1,"checkbox__label"]],template:function(ve,Se){if(1&ve){const Me=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0)(1,"label",1),e.\u0275\u0275listener("click",function(){return Se.onTouch()}),e.\u0275\u0275elementStart(2,"input",2,3),e.\u0275\u0275listener("change",function(){e.\u0275\u0275restoreView(Me);const ut=e.\u0275\u0275reference(3);return e.\u0275\u0275resetView(Se.writeValue(ut.checked))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",4),e.\u0275\u0275element(5,"app-svg-icon",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"span",6),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()()()}2&ve&&(e.\u0275\u0275advance(1),e.\u0275\u0275classProp("non-active",Se.disabled),e.\u0275\u0275attribute("data-qa",Se.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",Se.value)("checked",Se.value)("disabled",Se.disabled),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("clicked",Se.value),e.\u0275\u0275advance(1),e.\u0275\u0275property("@emersionConditioned",Se.value?"show":"hide")("svgClass","checkbox__icon"),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("checkbox__label_active",Se.value),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(8,13,Se.component.title,Se.lang)))},dependencies:[P.b,O.X$],styles:['@charset "UTF-8";.checkbox{cursor:pointer}.checkbox.non-active{pointer-events:none}.checkbox.non-active .checkbox__icon{fill:#f1f2f2}.checkbox__icon{width:20px;height:20px;fill:#2f54eb}.checkbox__icon-all{width:20px;height:20px;fill:#fff}.checkbox:hover .checkbox__label{color:#626a75}.checkbox:hover .checkbox__label_active{color:#1e1e1e}.checkbox:hover .checkbox__custom{border-color:#2f54eb}.checkbox:hover .checkbox__custom{box-shadow:0 0 6px #2f54eb80}.checkbox:active .checkbox__custom{transform:scale(.9)}.checkbox__label{margin-left:10px;color:#88909b;transition:color .1s ease}.checkbox__label_active{color:#444}.checkbox__custom{min-width:20px;min-height:20px;width:20px;height:20px;border:2px solid #dedede;border-radius:3px;position:relative;line-height:0;transition:border .1s ease,box-shadow .1s ease,transform .2s ease-in-out}.checkbox__custom:hover{border-color:#2f54eb}.checkbox__custom.clicked{border:none}.checkbox__custom ::ng-deep .checkbox__icon{position:absolute;inset:0}.checkbox__custom,.checkbox__label{display:inline-block;vertical-align:middle}.checkbox__input{display:none}\n'],encapsulation:2,data:{animation:[p.N]}})}(0,x.gn)([(0,O.SQ)()],R.prototype,"lang",void 0);let ne=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-checkbox-wrapper"]],hostVars:2,hostBindings:function(Se,Me){2&Se&&e.\u0275\u0275classMap((null==Me.visual?null:Me.visual.cssClass)||"")},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:7,consts:[[3,"formGroup"],[3,"config","field","component","visual","formControlName","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-checkbox",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",Me.config)("field",Me.field)("component",Me.component)("visual",Me.visual)("formControlName",Me.field.name))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,R],encapsulation:2})}return nt})();var G=t(15439),ce=t.n(G),xe=t(75198);const we=["datepickerComponent"];function Ge(nt,De){if(1&nt){const ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-datepicker",4,5),e.\u0275\u0275listener("dateChange",function(Me){e.\u0275\u0275restoreView(ve);const We=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(We.datePickersChanged(Me))}),e.\u0275\u0275elementEnd()}if(2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("disabled",null==ve.visual?null:ve.visual.visualDisabled),e.\u0275\u0275property("autosize",!0)("max",null==ve.visual?null:ve.visual.maxDate)("min",null==ve.visual?null:ve.visual.minDate)("value",ve.objValue)}}function ct(nt,De){if(1&nt){const ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-svg-icon",6),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(ve);const Me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Me.clearField())}),e.\u0275\u0275elementEnd()}}let pe=(()=>{class nt extends h.n{constructor(){super(),this.subscriptions=[]}get isDisabled(){return this.formGroup.get(this.config.field.name).disabled}ngOnInit(){this.objValue=ce()(this.formGroup.get(this.config.field.name).value,"DD.MM.YYYY"),this.subscribeOnChangeField()}subscribeOnChangeField(){this.subscriptions.push(this.formGroup.get(this.config.field.name).valueChanges.subscribe(ve=>{!ve&&this.objValue&&(this.objValue=void 0)}))}datePickersChanged(ve){const Se=void 0===ve?ve:ce()(ve);Se&&Se.isValid()?(this.formGroup.get(this.config.field.name).setValue(Se&&Se.format("DD.MM.YYYY")),this.objValue=ce()(ve).toDate()):this.clearField(),this.formGroup.get(this.config.field.name).markAsDirty(),this.formGroup.get(this.config.field.name).markAsTouched()}getVisual(){if(this.formGroup.get(this.config.field.name).value){const ve={...this.visual};return delete ve.matIcon,delete ve.svgIcon,ve}return this.visual}emitEventHandler(ve){if(ve.data)if(this.config.field.noConvert)this.formGroup.get(this.config.field.name).setValue(ve.data),this.emitEvent(ve);else{const Se=ce()(ve.data,["DD.MM.YY","DD.MM.YYYY","DD-MM-YY","DD-MM-YYYY"]),Me={eventType:ve.eventType,fieldName:ve.fieldName,data:Se.format("DD.MM.YYYY")};this.emitEvent(Me),this.datePickersChanged(Se)}else this.emitEvent(ve)}changeInputValue(ve){if(!this.datePickerComponent||!ve)return;const Se=/(\d{2})\.(\d{2})\.(\d{4})/;if(Se.test(ve)&&4===Se.exec(ve).length){const Me=new Date(ve.replace(Se,"$3-$2-$1"));this.datePickerComponent.value=Me}}clearField(){this.formGroup.get(this.config.field.name).setValue(""),this.objValue=void 0}ngOnDestroy(){this.subscriptions.forEach(ve=>ve.unsubscribe())}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-datepicker-wrapper"]],viewQuery:function(Se,Me){if(1&Se&&e.\u0275\u0275viewQuery(we,5),2&Se){let We;e.\u0275\u0275queryRefresh(We=e.\u0275\u0275loadQuery())&&(Me.datePickerComponent=We.first)}},features:[e.\u0275\u0275InheritDefinitionFeature],decls:4,vars:12,consts:[[1,"form-datepicker__container",3,"formGroup"],[3,"component","config","field","formControlName","hint","select","suppressChange","visual","emitEvent","ngModelChange"],["class","form-datepicker__datepicker",3,"autosize","disabled","max","min","value","dateChange",4,"ngIf"],["icon","cross","svgClass","form-datepicker__cross-icon",3,"click",4,"ngIf"],[1,"form-datepicker__datepicker",3,"autosize","max","min","value","dateChange"],["datepickerComponent",""],["icon","cross","svgClass","form-datepicker__cross-icon",3,"click"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-input",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEventHandler(ut)})("ngModelChange",function(ut){return Me.changeInputValue(ut)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(2,Ge,2,6,"app-datepicker",2),e.\u0275\u0275template(3,ct,1,0,"app-svg-icon",3),e.\u0275\u0275elementEnd()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("component",Me.component)("config",Me.config)("field",Me.field)("formControlName",Me.field.name)("hint",Me.hint)("select",Me.select)("suppressChange",!0)("visual",Me.getVisual()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Me.isDisabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Me.formGroup.get(Me.config.field.name).value))},dependencies:[d.O5,a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,P.b,xe.Q,B.s],styles:['@charset "UTF-8";.form-datepicker__container[_ngcontent-%COMP%]{position:relative}.form-datepicker__datepicker[_ngcontent-%COMP%]{position:absolute;background-color:#ff000080;inset:0 0 0 50%;opacity:0}.form-datepicker__datepicker.disabled[_ngcontent-%COMP%]{pointer-events:none}  .form-datepicker__cross-icon{cursor:pointer;width:16px;height:16px;position:absolute;top:calc(50% - 8px);right:15px;fill:#88909b}app-datepicker.disabled[_ngcontent-%COMP%] + app-svg-icon[_ngcontent-%COMP%]{pointer-events:none}']})}return nt})(),Ce=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-input-wrapper"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:11,consts:[[1,"form-input-container",3,"formGroup"],[3,"component","config","field","filter","formControlName","hint","mask","select","visual","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-input",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("component",Me.component)("config",Me.config)("field",Me.field)("filter",Me.filter)("formControlName",Me.field.name)("hint",Me.hint)("mask",Me.mask)("select",Me.select)("visual",Me.visual))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,B.s],styles:["app-form-input-wrapper{display:block}\n"],encapsulation:2})}return nt})();var U=t(97392);function H(nt,De){if(1&nt&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,ve.component.titlePrefix,ve.lang),"",e.\u0275\u0275pipeBind2(3,5,ve.component.title,ve.lang),"")}}function Z(nt,De){if(1&nt&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,ve.component.placeholder,ve.lang))}}function oe(nt,De){if(1&nt&&e.\u0275\u0275element(0,"span",8),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275property("innerHTML",ve.selected.additionalCaption,e.\u0275\u0275sanitizeHtml)}}function Pe(nt,De){if(1&nt&&(e.\u0275\u0275elementStart(0,"mat-icon",9),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("active",ve.show),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(ve.svgIcon)}}function Ie(nt,De){if(1&nt&&e.\u0275\u0275element(0,"div",10),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("active",ve.show)}}const pt={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>Ht),multi:!0};class Ht extends w.C{constructor(De,ve){super(),this.elRef=De,this.cdr=ve,this.showFlag=!1,this._active=!1,this.onTouch=()=>{},this.onModelChange=()=>{}}get class(){return this.visual?.cssClass||""}get active(){return this._active}set active(De){this._active=De,this.show=!1,this.showErrorDefault&&this.onTouch()}get selectItems(){return this.items?this.items:[]}get hideTitle(){return this.config.isModalDesign?(this.title=this.config.component.placeholder,!this.selected):(this.title=this.component.titlePrefix+this.component.title,this.visual&&this.visual.cssClass&&this.visual.cssClass.includes("no-description"))}get show(){return this.showFlag}set show(De){this.showFlag=De,De&&(this.selected?this.selectionOptionsComponent.highlightOption(this.selected):this.selectionOptionsComponent.activeItemIndex=void 0)}get disabled(){return this.isDisabled||this.visual&&this.visual.visualDisabled||null}get svgIcon(){return this.config?.isModalDesign?"expand_more":this.visual&&this.visual.svgIcon||"arrow_drop_down"}get optionsCssClass(){return this.config.visual?.inputClass}onClick(De){this.disabled||(this.show=!!this.elRef.nativeElement.parentNode.contains(De)&&!this.show,this.show&&this.onTouch())}setDisabledState(De){this.isDisabled=De}optionSelect(De){this.writeValue(De.value),this.onChange(),setTimeout(ve=>{this.show=!1,this.cdr.detectChanges()})}writeValue(De){De?(this.value=`${De}`,this.selected=this.selectItems.find(ve=>ve.value===De)):(this.selected=void 0,this.value=void 0)}registerOnTouched(De){this.onTouch=De}registerOnChange(De){this.onModelChange=De}onChange(){this.onTouch(),this.onModelChange(this.value)}handleKeydown(De){if(this.show){if("Escape"===De.key||"Esc"===De.key)return void(this.show=!1);this.selectionOptionsComponent.handleKeydown(De)}else("Enter"===De.key||"Spacebar"===De.key||" "===De.key)&&(De.preventDefault(),this.show=!0)}static#e=this.\u0275fac=function(ve){return new(ve||Ht)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ht,selectors:[["app-dynamic-form-select"]],viewQuery:function(ve,Se){if(1&ve&&e.\u0275\u0275viewQuery(_.d,7),2&ve){let Me;e.\u0275\u0275queryRefresh(Me=e.\u0275\u0275loadQuery())&&(Se.selectionOptionsComponent=Me.first)}},hostVars:2,hostBindings:function(ve,Se){1&ve&&e.\u0275\u0275listener("click",function(We){return Se.onClick(We.target)},!1,e.\u0275\u0275resolveDocument),2&ve&&e.\u0275\u0275classMap(Se.class)},inputs:{config:"config",field:"field",component:"component",select:"select",mask:"mask",visual:"visual",isDisabledOptions:"isDisabledOptions",showErrorDefault:"showErrorDefault",items:"items"},features:[e.\u0275\u0275ProvidersFeature([pt]),e.\u0275\u0275InheritDefinitionFeature],decls:12,vars:29,consts:[["tabindex","0",1,"dynamic-select",3,"blur","focus","keydown"],[1,"dynamic-select__title",3,"hidden"],[4,"ngIf"],[1,"dynamic-select__fake",3,"title"],[3,"innerHTML",4,"ngIf"],["class","select-icon-position dynamic-select__icon",3,"active",4,"ngIf"],["class","select-icon-position dynamic-select__icon arrow-mail",3,"active",4,"ngIf"],["data-qa","1663073283296",3,"config","open","options","cssClass","select"],[3,"innerHTML"],[1,"select-icon-position","dynamic-select__icon"],[1,"select-icon-position","dynamic-select__icon","arrow-mail"]],template:function(ve,Se){1&ve&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("blur",function(){return Se.active=!1})("focus",function(){return Se.active=!0})("keydown",function(We){return Se.handleKeydown(We)}),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275template(2,H,4,8,"span",2),e.\u0275\u0275template(3,Z,3,4,"span",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275template(8,oe,1,1,"span",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,Pe,2,3,"mat-icon",5),e.\u0275\u0275template(10,Ie,1,2,"div",6),e.\u0275\u0275elementStart(11,"app-form-selection-options",7),e.\u0275\u0275listener("select",function(We){return Se.optionSelect(We)}),e.\u0275\u0275elementEnd()()),2&ve&&(e.\u0275\u0275classProp("active",Se.active)("new-design",Se.config.isNewDesign)("modal-design",Se.config.isModalDesign)("select-disabled",Se.disabled),e.\u0275\u0275attribute("data-qa",Se.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",Se.hideTitle),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Se.config.isModalDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Se.config.isModalDesign),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("placeholder",!Se.selected),e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind2(5,23,(null==Se.selected?null:Se.selected.caption)||Se.component.placeholder||"Enter data",Se.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(7,26,(null==Se.selected?null:Se.selected.caption)||Se.component.placeholder||"Enter data",Se.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",null==Se.selected?null:Se.selected.additionalCaption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Se.config.isModalDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Se.config.isModalDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",Se.config)("open",Se.show&&!Se.disabled)("options",Se.selectItems)("cssClass",Se.optionsCssClass))},dependencies:[d.O5,U.Hw,_.d,O.X$],styles:['@charset "UTF-8";app-dynamic-form-select{display:block}app-dynamic-form-select .dynamic-select{background-color:#fff;position:relative;outline:none!important;transition:background .1s ease}app-dynamic-form-select .dynamic-select.select-disabled{background:#f1f2f2}app-dynamic-form-select .dynamic-select__title{transition:color .1s ease;position:absolute;box-sizing:border-box;width:100%;padding:12px 36px 0 12px;left:0;top:0;font-size:12px;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-dynamic-form-select .dynamic-select__fake{transition:border-color .1s ease,box-shadow .1s ease;border:1px solid #dedede;padding:30px 34px 12px 12px;border-radius:5px;box-sizing:border-box;width:100%;font-size:16px;z-index:99;cursor:pointer;display:flex;justify-content:space-between;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-dynamic-form-select .dynamic-select__fake.placeholder{color:#88909b}app-dynamic-form-select .dynamic-select .select-icon-position{position:absolute;top:calc(50% - 12px);right:4px;transition:transform .1s ease}app-dynamic-form-select .dynamic-select .select-icon-position.active{color:#2f54eb;transform:rotate(180deg)}app-dynamic-form-select .dynamic-select__icon{display:block;color:#88909b;cursor:pointer}app-dynamic-form-select .dynamic-select.disabled .dynamic-select__fake{background:#f1f2f2;cursor:auto}app-dynamic-form-select .dynamic-select.active .dynamic-select__fake{border-color:#2f54eb;box-shadow:inset 0 0 0 1px #2f54eb}app-dynamic-form-select .dynamic-select.active .dynamic-select__placeholder{color:#2f54eb}app-dynamic-form-select .dynamic-select.active .dynamic-select__title{color:#2f54eb}app-dynamic-form-select .dynamic-select.active .dynamic-select__icon{color:#2f54eb}app-dynamic-form-select.half-inline:last-child{margin-right:0;margin-left:auto}app-dynamic-form-select.no-description .dynamic-select__fake{padding-top:12px;padding-bottom:12px}app-dynamic-form-select.ng-touched.ng-invalid .dynamic-select__fake{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}app-dynamic-form-select.ng-touched.ng-invalid .dynamic-select__icon{color:#d9291e}app-dynamic-form-select.modal-select-for-sign .dynamic-select{font-family:Open Sans,Source Sans Pro,sans-serif}app-dynamic-form-select.modal-select-for-sign .dynamic-select__fake{border:0;border-radius:0;border-bottom:1px solid #080708;padding:30px 34px 8px 12px}app-dynamic-form-select.modal-select-for-sign .dynamic-select.active .dynamic-select__fake{border:0;box-shadow:none;border-bottom:1px solid #080708}app-dynamic-form-select.modal-select-for-sign .dynamic-select__title{color:#88909b;font-weight:400;font-size:12px;line-height:16px}app-dynamic-form-select.modal-select-for-sign .dynamic-select.active .dynamic-select__title{color:#88909b}app-dynamic-form-select.modal-select-for-sign .dynamic-select.active .dynamic-select__icon{color:#88909b}app-dynamic-form-select.modal-select-for-sign .select-icon-position{top:calc(50% - 3px)}app-dynamic-form-select .modal-design .dynamic-select__fake{border:none;padding:26px 32px 8px 12px!important;border-bottom:1px solid #88909b;border-radius:unset!important;box-shadow:none!important;height:56px;display:block}app-dynamic-form-select .modal-design .dynamic-select__title{color:#88909b;padding:2px 12px 0;height:18px}app-dynamic-form-select .modal-design .arrow-mail{background:url(arrow-mail.d872f67d57b2e59a.svg) no-repeat;width:20px;height:20px}app-dynamic-form-select .modal-design .select-icon-position{top:calc(56% - 4px)}app-dynamic-form-select .modal-design.active .dynamic-select__title{color:#88909b}app-dynamic-form-select .modal-design.active .dynamic-select__fake{box-shadow:none!important;border-bottom:2px solid #2f54eb!important}app-dynamic-form-select .modal-design.ng-touched.ng-invalid .dynamic-select__fake{color:#d9291e;box-shadow:none!important;border:none!important}app-dynamic-form-select .new-design .dynamic-select__fake{border:none!important;padding:6px 0!important;border-bottom:1px solid #444444!important;border-radius:unset!important;box-shadow:none!important}app-dynamic-form-select .new-design .active .dynamic-select__fake{color:#2f54eb!important;box-shadow:none!important;border:none!important}app-dynamic-form-select .new-design.ng-touched.ng-invalid .dynamic-select__fake{color:#d9291e;box-shadow:none!important;border:none!important}.select-disabled{pointer-events:none;background-color:#f1f2f2}.select-disabled .dynamic-select__fake{color:#88909b}\n'],encapsulation:2})}(0,x.gn)([(0,O.SQ)()],Ht.prototype,"lang",void 0);let Wt=(()=>{class nt extends h.n{constructor(){super()}get class(){return this.visual?.cssClass||""}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-select-wrapper"]],hostVars:2,hostBindings:function(Se,Me){2&Se&&e.\u0275\u0275classMap(Me.class)},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:11,consts:[[1,"form-select-container",3,"formGroup"],[3,"config","field","component","select","mask","visual","formControlName","items","showErrorDefault","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-select",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",Me.config)("field",Me.field)("component",Me.component)("select",Me.select)("mask",Me.mask)("visual",Me.visual)("formControlName",Me.field.name)("items",null==Me.select?null:Me.select.items)("showErrorDefault",Me.showErrorDefault))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,Ht],styles:["app-form-select-wrapper{display:block}\n"],encapsulation:2})}return nt})();var Xe=t(54968),Qe=t(56451),Be=t(63900),at=t(54004),lt=t(71884),Dt=t(69718);const Yt=["slider"],Tt=["handle"],ot=["handleContainer"],Gt=["activeIndicator"],wt={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>Ze),multi:!0};class Ze extends w.C{constructor(){super(),this.currentOffset=0,this.subs=[],this.onTouch=()=>{},this.onModelChange=()=>{}}get items(){return this.slider&&this.slider.steps?this.slider.steps:[]}get sliderElement(){return this.sliderRef.nativeElement}get trackWidth(){return this.sliderElement.clientWidth}get handleElement(){return this.handleRef.nativeElement}get handleContainerElement(){return this.handleContainerRef.nativeElement}get activeIndicatorElement(){return this.activeIndicatorRef.nativeElement}ngOnInit(){}ngAfterViewInit(){const De=(0,Xe.R)(this.handleElement,"mousedown"),ve=(0,Xe.R)(document,"mouseup"),Se=(0,Xe.R)(document,"mousemove"),Me=(0,Xe.R)(this.handleElement,"touchstart"),We=(0,Xe.R)(document,"touchend"),ut=(0,Xe.R)(document,"touchmove");this.down$=(0,Qe.T)(De,Me),this.up$=(0,Qe.T)(ve,We),this.move$=(0,Qe.T)(Se,ut);const ue=this.down$.pipe((0,Be.w)(Le=>{const Pt=this.getClientX(Le);return this.move$.pipe((0,at.U)(dn=>Pt-this.getClientX(dn)+this.currentOffset),(0,lt.x)(),(0,at.U)(dn=>this.applyTrackBoundaries(dn)),(0,at.U)(dn=>this.calcTransformData(dn,this.trackWidth,this.items.length-1)),(0,lt.x)(),(0,u.R)(this.up$))})),et=ue.pipe((0,Be.w)(Le=>this.up$.pipe((0,Dt.h)(Le)))).subscribe(Le=>this.currentOffset=Le.offset),At=this.down$.subscribe(Le=>this.active=!0),Ae=this.up$.subscribe(Le=>this.active=!1),bt=ue.subscribe(Le=>{this.setTransformData(Le),this.setValueByIndex(Le.index)});this.subs=[et,bt,At,Ae]}ngOnDestroy(){this.subs.forEach(De=>De.unsubscribe())}getClientX(De){return De instanceof MouseEvent?De.clientX:De.changedTouches[0].clientX}applyTrackBoundaries(De){const ve=this.trackWidth;return De>=0?0:Math.abs(De)>=ve?-ve:De}calcTransformData(De,ve,Se){const Me=Math.abs(De)/ve*Se,We=Math.round(Me),ut=We/Se*100;return{transform:ut,percent:(1e4-Math.round(100*ut))/100,offset:De,index:We}}setTransformData({transform:De}){this.handleContainerElement.style.transform=`translateX(${De}%)`,this.activeIndicatorElement.style.transform=`translateX(${De-100}%)`}setValueByIndex(De){this.value=this.items[De],this.change()}registerOnTouched(De){this.onTouch=De}registerOnChange(De){this.onModelChange=De}writeValue(De){this.value=De;const ve=this.items.findIndex(Se=>Se===this.value);if(-1!==ve){const Me=this.items.length-1,We=ve/Me*this.trackWidth,ut=this.calcTransformData(We,this.trackWidth,Me);this.setTransformData(ut),this.currentOffset=-We}}change(){this.onTouch(),this.onModelChange(this.value)}static#e=this.\u0275fac=function(ve){return new(ve||Ze)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ze,selectors:[["app-dynamic-form-slider"]],viewQuery:function(ve,Se){if(1&ve&&(e.\u0275\u0275viewQuery(Yt,7),e.\u0275\u0275viewQuery(Tt,7),e.\u0275\u0275viewQuery(ot,7),e.\u0275\u0275viewQuery(Gt,7)),2&ve){let Me;e.\u0275\u0275queryRefresh(Me=e.\u0275\u0275loadQuery())&&(Se.sliderRef=Me.first),e.\u0275\u0275queryRefresh(Me=e.\u0275\u0275loadQuery())&&(Se.handleRef=Me.first),e.\u0275\u0275queryRefresh(Me=e.\u0275\u0275loadQuery())&&(Se.handleContainerRef=Me.first),e.\u0275\u0275queryRefresh(Me=e.\u0275\u0275loadQuery())&&(Se.activeIndicatorRef=Me.first)}},hostVars:2,hostBindings:function(ve,Se){2&ve&&e.\u0275\u0275classMap((null==Se.visual?null:Se.visual.cssClass)||"")},inputs:{config:"config",field:"field",component:"component",select:"select",mask:"mask",visual:"visual",slider:"slider"},features:[e.\u0275\u0275ProvidersFeature([wt]),e.\u0275\u0275InheritDefinitionFeature],decls:10,vars:10,consts:[[3,"config","field","component","select","mask","visual","disabled","ngModel"],[1,"dynamic-slider"],["slider",""],[1,"dynamic-slider__track"],[1,"dynamic-slider__active"],["activeIndicator",""],[1,"dynamic-slider__handle-container"],["handleContainer",""],[1,"dynamic-slider__handle"],["handle",""]],template:function(ve,Se){1&ve&&(e.\u0275\u0275element(0,"app-dynamic-form-input",0),e.\u0275\u0275elementStart(1,"div",1,2)(3,"div",3),e.\u0275\u0275element(4,"div",4,5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",6,7),e.\u0275\u0275element(8,"div",8,9),e.\u0275\u0275elementEnd()()),2&ve&&(e.\u0275\u0275property("config",Se.config)("field",Se.field)("component",Se.component)("select",Se.select)("mask",Se.mask)("visual",Se.visual)("disabled",!0)("ngModel",Se.value),e.\u0275\u0275advance(8),e.\u0275\u0275classProp("dynamic-slider__handle--active",Se.active))},dependencies:[a.NgControlStatus,a.NgModel,B.s],styles:['@charset "UTF-8";app-dynamic-form-slider{display:block}app-dynamic-form-slider .dynamic-slider{display:block;position:relative;width:100%;min-height:20px;margin-top:-10px;margin-bottom:-10px;touch-action:none;-webkit-user-select:none;user-select:none;user-drag:none}app-dynamic-form-slider .dynamic-slider__track{display:block;height:2px;position:absolute;left:0;right:0;top:calc(50% - 1px);border-radius:5px;overflow:hidden}app-dynamic-form-slider .dynamic-slider__active{display:block;background-color:#2f54eb;position:absolute;inset:0;border-radius:5px;transform:translate3d(-100%,0,0)}app-dynamic-form-slider .dynamic-slider__handle-container{display:block;position:absolute;inset:0}app-dynamic-form-slider .dynamic-slider__handle{cursor:grab;display:block;width:20px;height:20px;background-color:#2f54eb;border-radius:50%;position:absolute;left:-10px;top:0;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}app-dynamic-form-slider .dynamic-slider__handle--active{transform:scale(1)}app-dynamic-form-slider.ng-touched.ng-invalid .dynamic-input input.ng-touched{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}app-dynamic-form-slider app-dynamic-form-input .dynamic-input--disabled .dynamic-input__input{background:#fff}\n'],encapsulation:2})}(0,x.gn)([(0,O.SQ)()],Ze.prototype,"lang",void 0);let Ut=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-slider-wrapper"]],hostVars:2,hostBindings:function(Se,Me){2&Se&&e.\u0275\u0275classMap((null==Me.visual?null:Me.visual.cssClass)||"")},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:10,consts:[[1,"form-slider-container",3,"formGroup"],[3,"config","field","component","select","mask","visual","slider","formControlName","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-slider",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",Me.config)("field",Me.field)("component",Me.component)("select",Me.select)("mask",Me.mask)("visual",Me.visual)("slider",Me.slider)("formControlName",Me.field.name))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,Ze],styles:["app-form-slider-wrapper{display:block}\n"],encapsulation:2})}return nt})();var vn=t(4707),xn=t(4128),bn=t(49066),hn=t(37601),pn=t(44180),In=t(9149),Dn=t(46520),Tn=t(75568);function mn(nt,De){1&nt&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275element(1,"app-loader"),e.\u0275\u0275elementEnd())}function Yn(nt,De){if(1&nt){const ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5)(1,"div",6),e.\u0275\u0275element(2,"app-svg-icon",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",8)(4,"div",9),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",10),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementStart(10,"span",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(ve);const Me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Me.openReport())}),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(13,mn,2,0,"div",12),e.\u0275\u0275elementEnd()}if(2&nt){const ve=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass","mode"+ve.svetoforData.mode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",ve.svetoforData.mode),e.\u0275\u0275advance(1),e.\u0275\u0275property("icon","svetofor"+ve.svetoforData.mode),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,8,"Svetofor header"+ve.svetoforData.mode,ve.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(9,11,"Svetofor"+ve.svetoforData.mode,ve.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",0===ve.svetoforData.mode.length||"_not_found"===ve.svetoforData.mode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(12,14,"Watch report",ve.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",ve.loader)}}function cn(nt,De){if(1&nt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Yn,14,17,"div",4),e.\u0275\u0275elementContainerEnd()),2&nt){const ve=e.\u0275\u0275nextContext(),Se=e.\u0275\u0275reference(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ve.svetoforDisabled)("ngIfElse",Se)}}function Nn(nt,De){if(1&nt){const ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",21)(1,"mat-icon",22),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(ve);const Me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Me.onCloseSvetofor())}),e.\u0275\u0275text(2,"close"),e.\u0275\u0275elementEnd()()}}function Bt(nt,De){if(1&nt){const ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",15)(1,"div",16),e.\u0275\u0275element(2,"app-svg-icon",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",18)(4,"span"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(ve);const Me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Me.goToSvetoforPage())}),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(10,Nn,3,0,"div",20),e.\u0275\u0275elementEnd()}if(2&nt){const ve=e.\u0275\u0275nextContext(2);let Se;e.\u0275\u0275advance(2),e.\u0275\u0275property("fill","#2F54EB")("icon","svetofor_disabled"),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(6,5,"Make sure the counterparty is reliable, connect the free Svetofor verification service",ve.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,8,"More about the service",ve.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!(null!=(Se=ve.formGroup.get(ve.field.name))&&Se.disabled))}}function En(nt,De){if(1&nt&&e.\u0275\u0275template(0,Bt,11,11,"div",14),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",ve.showSvetoforDisabledBlock)}}const Wn={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>rn),multi:!0};class rn extends w.C{constructor(De,ve,Se,Me){super(),this.userDataService=De,this.router=ve,this.toast=Se,this.svetoforService=Me,this.svetoforDisabled=!1,this.showSvetoforDisabledBlock=!0,this.isSvetoforAvailable=!1,this.svetoforData={greenStatements:"",redStatements:"",yellowStatements:"",mode:""},this.loader=!1,this.focus=!1,this.formComponentType=bn.j,this.destroyed$=new vn.t(1),this.onTouch=()=>{},this.onModelChange=()=>{}}ngOnInit(){this.userDataService.getActiveCompanyId().subscribe(De=>{De&&(this.activeCompanyId=De)}),(0,xn.D)([this.userDataService.getClientInfoOrganization(),this.svetoforService.isSvetoforAccessSetting()]).pipe((0,u.R)(this.destroyed$)).subscribe(([De,ve])=>{this.isSvetoforAvailable=ve,this.isSvetoforAvailable&&("paid"===De.konturFocusSubscr?this.svetoforDisabled=!1:setTimeout(()=>{this.svetoforDisabled=!0;const Me=localStorage.getItem(`svetofor-hide-companies-${this.router.url}`);this.showSvetoforDisabledBlock=!JSON.parse(Me)?.companies?.find(We=>We===this.activeCompanyId)}))})}ngOnDestroy(){this.svetoforSub&&this.svetoforSub.unsubscribe(),this.destroyed$.next(!0),this.destroyed$.complete()}registerOnTouched(De){this.onTouch=De}registerOnChange(De){this.onModelChange=De}writeValue(De){this.valueChange(De,!0)}change(){this.onTouch(),this.onModelChange(this.value)}valueChange(De,ve=!1){if(this.isSvetoforAvailable)if(this.value=De,ve||this.change(),!De||10!==De.length&&12!==De.length||this.component.type!==bn.j.Svetofor)this.svetoforData={greenStatements:"",redStatements:"",yellowStatements:"",mode:""},this.report=null;else if(this.activeCompanyId)this.getSvetoforData(De);else{const Se=setInterval(()=>{this.activeCompanyId&&(clearInterval(Se),this.getSvetoforData(De))})}}getSvetoforData(De){this.loader=!0,this.svetoforSub&&this.svetoforSub.unsubscribe(),(0,xn.D)([this.userDataService.getClientInfoOrganization(),this.svetoforService.isSvetoforAccessSetting()]).pipe((0,u.R)(this.destroyed$)).subscribe(([ve,Se])=>{this.isSvetoforAvailable=Se,"paid"===ve.konturFocusSubscr&&Se?this.svetoforSub=this.userDataService.getSvetofor(De,this.activeCompanyId).subscribe(Me=>{this.loader=!1,Me&&!Me.errorCode?(this.svetoforData=Me.briefReportSummary.briefReport.summary,"true"!==this.svetoforData.redStatements?"true"!==this.svetoforData.yellowStatements||this.svetoforData.redStatements?"true"===this.svetoforData.greenStatements&&(this.svetoforData.mode="_suc"):this.svetoforData.mode="_warn":this.svetoforData.mode="_err"):this.svetoforData.mode="_not_found"}):(this.loader=!1,this.svetoforDisabled=!0)})}openReport(){this.userDataService.getReport(this.value,this.activeCompanyId).subscribe(De=>{this.report=De;const ve=URL.createObjectURL(this.report);window.open(ve)})}onCloseSvetofor(){const De=this.router.url;let ve=JSON.parse(localStorage.getItem(`svetofor-hide-companies-${De}`));ve?ve.companies.push(this.activeCompanyId):ve={companies:[this.activeCompanyId]},localStorage.setItem(`svetofor-hide-companies-${De}`,JSON.stringify(ve)),this.showSvetoforDisabledBlock=!1}goToSvetoforPage(){this.router.navigate(["/new/kontur-focus"])}static#e=this.\u0275fac=function(ve){return new(ve||rn)(e.\u0275\u0275directiveInject(hn.M),e.\u0275\u0275directiveInject(pn.F0),e.\u0275\u0275directiveInject(In.j),e.\u0275\u0275directiveInject(Dn.W))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:rn,selectors:[["app-form-svetofor"]],hostVars:2,hostBindings:function(ve,Se){1&ve&&e.\u0275\u0275listener("blur",function(We){return Se.onTouched(We)}),2&ve&&e.\u0275\u0275classMap((null==Se.visual?null:Se.visual.cssClass)||"")},inputs:{config:"config",field:"field",formGroup:"formGroup",component:"component",select:"select",mask:"mask",visual:"visual"},features:[e.\u0275\u0275ProvidersFeature([Wn]),e.\u0275\u0275InheritDefinitionFeature],decls:5,vars:11,consts:[[3,"formGroup"],[3,"component","config","field","formControlName","mask","select","visual"],[4,"ngIf"],["svetoforDisabledTemplate",""],["class","svetofor",3,"ngClass",4,"ngIf","ngIfElse"],[1,"svetofor",3,"ngClass"],[1,"svetofor__icon",3,"ngClass"],["svgClass","controls-item__icon",3,"icon"],[1,"svetofor-description"],[1,"svetofor-description__header"],[1,"svetofor-description__value"],["data-qa","1663073338358",1,"svetofor-link",3,"hidden","click"],["class","svetofor__loader",4,"ngIf"],[1,"svetofor__loader"],["class","svetofor svetofor-disabled","data-qa","1675251649",4,"ngIf"],["data-qa","1675251649",1,"svetofor","svetofor-disabled"],[1,"svetofor__icon"],[3,"fill","icon"],[1,"svetofor-disabled__description"],["data-qa","1675251717",1,"svetofor-link",3,"click"],["class","svetofor-disabled__close","data-qa","1675251698",4,"ngIf"],["data-qa","1675251698",1,"svetofor-disabled__close"],[1,"cross-close",3,"click"]],template:function(ve,Se){1&ve&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"app-dynamic-form-input",1),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(2,cn,2,2,"ng-container",2),e.\u0275\u0275template(3,En,1,1,"ng-template",null,3,e.\u0275\u0275templateRefExtractor)),2&ve&&(e.\u0275\u0275property("formGroup",Se.formGroup),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("width100",Se.svetoforDisabled),e.\u0275\u0275property("component",Se.component)("config",Se.config)("field",Se.field)("formControlName",Se.field.name)("mask",Se.mask)("select",Se.select)("visual",Se.visual),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Se.component.type!==Se.formComponentType.Input&&Se.isSvetoforAvailable))},dependencies:[d.mk,d.O5,a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,P.b,Tn.R,U.Hw,B.s,O.X$],styles:['@charset "UTF-8";app-form-svetofor{display:flex;flex-direction:column}app-form-svetofor .svetofor{border-radius:4px;display:flex;flex-direction:row;align-items:center;background:#f1f2f2;padding:0 20px;box-sizing:border-box;position:relative;min-height:64px;margin-top:20px}app-form-svetofor .svetofor__icon svg{width:25px;height:25px}app-form-svetofor .svetofor__icon._suc svg{fill:#00916e}app-form-svetofor .svetofor__icon._err svg{fill:#dd1c1a}app-form-svetofor .svetofor__icon._warn svg{fill:#f1c84a}app-form-svetofor .svetofor__icon._not_found svg{fill:#88909b}app-form-svetofor .svetofor__loader{position:absolute;width:100%;height:100%;left:0;top:0;background:rgba(255,255,255,.3)}app-form-svetofor .svetofor .svetofor-description{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:18px;margin-left:14px;padding-top:12px;padding-bottom:12px}app-form-svetofor .svetofor .svetofor-description__header{font-weight:700;margin-bottom:4px}app-form-svetofor .svetofor-disabled{padding:12px 16px;gap:12px;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:400;font-size:14px;color:#080708;min-height:auto}app-form-svetofor .svetofor-disabled__description{display:flex;flex-direction:column}app-form-svetofor .svetofor-disabled__close{cursor:pointer;margin-left:auto;margin-bottom:auto}app-form-svetofor .svetofor-link{color:#2f54eb;cursor:pointer;text-decoration:underline;width:-moz-fit-content;width:fit-content}app-form-svetofor .mode_suc{background:rgba(0,145,110,.1)}app-form-svetofor .mode_err{background:rgba(221,28,26,.1)}app-form-svetofor .mode_warn{background:rgba(241,200,74,.1)}.width100{width:100%}\n'],encapsulation:2})}(0,x.gn)([(0,O.SQ)()],rn.prototype,"lang",void 0);let Sn=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-svetofor-wrapper"]],hostVars:2,hostBindings:function(Se,Me){2&Se&&e.\u0275\u0275classMap((null==Me.visual?null:Me.visual.cssClass)||"")},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:10,consts:[[1,"form-select-container",3,"formGroup"],[3,"formGroup","component","config","field","formControlName","mask","select","visual","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-form-svetofor",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",Me.formGroup)("component",Me.component)("config",Me.config)("field",Me.field)("formControlName",Me.field.name)("mask",Me.mask)("select",Me.select)("visual",Me.visual))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,rn],styles:["app-form-svetofor-wrapper{display:block}\n"],encapsulation:2})}return nt})();var ke=t(61135),ge=t(39646),q=t(18505),J=t(39300);const Oe={field:{name:"bank",validators:[a.Validators.minLength(20)]},component:{type:bn.j.Input,title:"Corr bank name"},visual:{cssClass:"text-elipsis",visualDisabled:!0}};function Et(nt,De){1&nt&&e.\u0275\u0275element(0,"app-loader")}const dt={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>qe),multi:!0};(0,e.forwardRef)(()=>qe);let qe=(()=>{class nt extends w.C{constructor(ve,Se){super(),this.userDataService=ve,this.elRef=Se,this.items=[],this.loader=!1,this.show=!1,this.initial=!1,this.bankFormConfig=Oe,this.valueForSearch$=new ke.X(""),this.selectionOptions$=this.valueForSearch$.pipe((0,q.b)(Me=>{Me||(this.bankValue="")}),(0,J.h)(Me=>!!Me),(0,lt.x)(),(0,Be.w)(Me=>this.searchSwift(Me)),(0,at.U)(Me=>Me)),this.subscriptions=[],this.onTouch=()=>{},this.onModelChange=()=>{}}ngOnInit(){this.subscriptions.push(this.selectionOptions$.subscribe(ve=>{this.loader=!1,this.show||1!==ve.length||ve[0].value!==this.value?this.items=ve:(this.bankValue=ve[0].additionalDescription,this.change())}))}registerOnTouched(ve){this.onTouch=ve}registerOnChange(ve){this.onModelChange=ve}writeValue(ve){this.value=ve,this.valueForSearch$.next(ve)}change(){this.onTouch(),this.onModelChange(this.value)}getSelectionOptions(ve){this.value=ve,this.bankValue?(this.bankValue="",this.change()):this.onTouch(),this.valueForSearch$.next(ve)}setItem(ve){this.value=ve.value,this.bankValue=ve.additionalDescription,this.items=[],this.show=!1,this.change()}searchSwift(ve){return(0,ge.of)(ve).pipe((0,Be.w)(Se=>Se.length<3?(this.loader=!1,this.items=[],[]):(this.loader=!0,this.userDataService.getSwiftCodes(Se))),(0,at.U)(Se=>Se.map(Me=>({value:Me.swift,caption:Me.swift+" - "+Me.name,additionalDescription:this.setBankValue(Me)}))))}setBankValue(ve){return ve.name+", "+ve.place+", "+ve.address+", "+ve.zipCode}onClick(ve){this.show=this.elRef.nativeElement.parentNode.contains(ve.target),this.show&&!this.bankValue&&(this.initial=!0,this.getSelectionOptions(this.value))}ngOnDestroy(){this.subscriptions.forEach(ve=>ve.unsubscribe())}static#e=this.\u0275fac=function(Se){return new(Se||nt)(e.\u0275\u0275directiveInject(hn.M),e.\u0275\u0275directiveInject(e.ElementRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-dynamic-form-swiftsearch"]],hostVars:2,hostBindings:function(Se,Me){1&Se&&e.\u0275\u0275listener("click",function(ut){return Me.onClick(ut)},!1,e.\u0275\u0275resolveDocument),2&Se&&e.\u0275\u0275classMap((null==Me.visual?null:Me.visual.cssClass)||"")},inputs:{config:"config",field:"field",component:"component",select:"select",mask:"mask",visual:"visual"},features:[e.\u0275\u0275ProvidersFeature([dt]),e.\u0275\u0275InheritDefinitionFeature],decls:7,vars:16,consts:[[1,"dynamic-swiftsearch"],[1,"dynamic-swiftsearch__field","first"],[3,"config","field","component","select","mask","visual","ngModel","ngModelChange"],[3,"open","config","options","select"],[1,"dynamic-swiftsearch__field","second"],[3,"config","field","component","visual","ngModel"],[4,"ngIf"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"app-dynamic-form-input",2),e.\u0275\u0275listener("ngModelChange",function(ut){return Me.getSelectionOptions(ut)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"app-form-selection-options",3),e.\u0275\u0275listener("select",function(ut){return Me.setItem(ut)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",4),e.\u0275\u0275element(5,"app-dynamic-form-input",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,Et,1,0,"app-loader",6),e.\u0275\u0275elementEnd()),2&Se&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("config",Me.config)("field",Me.field)("component",Me.component)("select",Me.select)("mask",Me.mask)("visual",Me.visual)("ngModel",Me.value),e.\u0275\u0275advance(1),e.\u0275\u0275property("open",Me.show)("config",Me.config)("options",Me.items),e.\u0275\u0275advance(2),e.\u0275\u0275property("config",Me.bankFormConfig)("field",Me.bankFormConfig.field)("component",Me.bankFormConfig.component)("visual",Me.bankFormConfig.visual)("ngModel",Me.bankValue),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Me.loader))},dependencies:[d.O5,a.NgControlStatus,a.NgModel,Tn.R,B.s,_.d],styles:['@charset "UTF-8";app-dynamic-form-swiftsearch.ng-invalid.ng-touched .dynamic-swiftsearch__field.first .dynamic-input input{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}.dynamic-swiftsearch{position:relative;display:flex;justify-content:space-between}.dynamic-swiftsearch__field.first{width:25%}.dynamic-swiftsearch__field.second{width:73%}\n'],encapsulation:2})}return nt})(),ze=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-swiftsearch-wrapper"]],hostVars:2,hostBindings:function(Se,Me){2&Se&&e.\u0275\u0275classMap((null==Me.visual?null:Me.visual.cssClass)||"")},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:9,consts:[[3,"formGroup"],[3,"config","field","component","select","mask","visual","formControlName","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-swiftsearch",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",Me.config)("field",Me.field)("component",Me.component)("select",Me.select)("mask",Me.mask)("visual",Me.visual)("formControlName",Me.field.name))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,qe],encapsulation:2})}return nt})();var zt=t(69245),vt=t(39349);const Rt=["textarea"];function gt(nt,De){if(1&nt&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",ve.symbolCounter," /",ve.component.maxlength,"")}}function sn(nt,De){if(1&nt&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",ve.hint&&ve.hint.type?ve.hint.type:null),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(ve.hint.text)}}const wn=function(nt){return{background:nt}};class Qn extends w.C{constructor(){super(),this.focusChange=new e.EventEmitter,this.focused=!1,this.onTouch=()=>{},this.onModelChange=()=>{}}get symbolCounter(){return this.value?this.value.length:0}ngOnInit(){}registerOnTouched(De){this.onTouch=De}registerOnChange(De){this.onModelChange=De}writeValue(De){this.value=De}change(De){this.onTouch(),this.onModelChange(De.target.value),this.writeValue(De.target.value)}setFocus(De,ve){this.focused=ve,this.focused&&this.onTouch(),this.focusChange.emit(this.focused),this.emitEvent.emit({eventType:De.type,fieldName:this.field.name})}static#e=this.\u0275fac=function(ve){return new(ve||Qn)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Qn,selectors:[["app-form-textarea"]],viewQuery:function(ve,Se){if(1&ve&&e.\u0275\u0275viewQuery(Rt,5),2&ve){let Me;e.\u0275\u0275queryRefresh(Me=e.\u0275\u0275loadQuery())&&(Se.textArea=Me.first)}},inputs:{formGroup:"formGroup",config:"config",field:"field",component:"component",select:"select",mask:"mask",filter:"filter",visual:"visual",hint:"hint"},outputs:{focusChange:"focusChange"},features:[e.\u0275\u0275ProvidersFeature([{provide:a.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>Qn),multi:!0}]),e.\u0275\u0275InheritDefinitionFeature],decls:9,vars:23,consts:[[1,"dynamic-textarea"],[1,"dynamic-textarea__placeholder",3,"ngStyle"],[1,"dynamic-textarea__overlay",3,"appTextMask"],[3,"disabled","cdkAutosizeMaxRows","cdkTextareaAutosize","ngModel","blur","focus","input","ngModelChange"],["class","dynamic-textarea__counter",4,"ngIf"],["class","dynamic-textarea__hint",3,"ngClass",4,"ngIf"],[1,"dynamic-textarea__counter"],[1,"dynamic-textarea__hint",3,"ngClass"]],template:function(ve,Se){1&ve&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",2)(6,"textarea",3),e.\u0275\u0275listener("blur",function(We){return Se.setFocus(We,!1)})("focus",function(We){return Se.setFocus(We,!0)})("input",function(We){return Se.change(We)})("ngModelChange",function(We){return Se.value=We}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,gt,2,2,"div",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(8,sn,2,2,"div",5)),2&ve&&(e.\u0275\u0275classProp("active",Se.focused),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(21,wn,null!=Se.field&&Se.field.disabled?"#f1f2f2":"")),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(3,15,Se.component.titlePrefix,Se.lang),"",e.\u0275\u0275pipeBind2(4,18,Se.component.title,Se.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("appTextMask",Se.config.mask&&Se.config.mask.TextMask?Se.config.mask.TextMask:null),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",null==Se.visual?null:Se.visual.visualDisabled)("cdkAutosizeMaxRows",Se.component.maxRows||7)("cdkTextareaAutosize",Se.component.autoSize)("ngModel",Se.value),e.\u0275\u0275attribute("data-qa",Se.config.dataQa)("maxlength",Se.component.maxlength)("rows",Se.component.rows||3),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Se.component.maxlength),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Se.hint&&Se.hint.text))},dependencies:[d.mk,d.O5,d.PC,a.DefaultValueAccessor,a.NgControlStatus,a.MaxLengthValidator,a.NgModel,zt.h,vt.IC,O.X$],styles:['@charset "UTF-8";.dynamic-textarea{display:block;position:relative}.dynamic-textarea.active .dynamic-textarea__placeholder{color:#2f54eb;transition:color .1s ease}.dynamic-textarea.active textarea{border-color:#2f54eb!important;border:1px solid #dedede;transition:border .1s ease,box-shadow .1s ease,transform .2s ease-in-out}.dynamic-textarea__overlay{display:flex}.dynamic-textarea__counter{position:absolute;right:5px;bottom:5px;font-family:Source Sans Pro;font-size:.8em;color:#88909b}.dynamic-textarea__hint{margin-top:10px}.dynamic-textarea__placeholder{position:absolute;box-sizing:border-box;width:calc(100% - 4px);border-radius:5px 5px 0 0;padding:10px 13px 0;left:2px;top:2px;font-size:12px;line-height:16px;z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .1s ease}textarea{padding:28px 41px 13px 12px;resize:none;font-size:15px;line-height:21px;height:98px;border-radius:5px;border:1px solid #dedede;transition:border .1s ease,box-shadow .1s ease,transform .2s ease-in-out;outline:none;width:100%;font-family:Arial}textarea.cdk-textarea-autosize{box-sizing:content-box}textarea::-webkit-scrollbar{display:none}app-form-textarea.ng-touched.ng-invalid textarea{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}\n'],encapsulation:2})}(0,x.gn)([(0,O.SQ)()],Qn.prototype,"lang",void 0);let pi=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-textarea-wrapper"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:8,consts:[[1,"form-input-container",3,"formGroup"],[3,"component","config","field","visual","hint","formControlName","emitEvent"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-form-textarea",1),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd()()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275attribute("data-qa",Me.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("component",Me.component)("config",Me.config)("field",Me.field)("visual",Me.visual)("hint",Me.hint)("formControlName",Me.field.name))},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,a.FormGroupDirective,a.FormControlName,Qn],encapsulation:2})}return nt})();function Ei(nt,De){if(1&nt&&(e.\u0275\u0275elementStart(0,"div",4)(1,"span",2),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&nt){const ve=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,ve.component.subTitle,ve.lang))}}class ki extends h.n{constructor(){super()}ngOnInit(){}static#e=this.\u0275fac=function(ve){return new(ve||ki)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:ki,selectors:[["form-accordion"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:6,vars:6,consts:[[1,"accordion"],[1,"accordion__header"],[1,"accordion__title"],["class","accordion__footer",4,"ngIf"],[1,"accordion__footer"]],template:function(ve,Se){1&ve&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"span",2),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,Ei,4,4,"div",3),e.\u0275\u0275elementEnd()),2&ve&&(e.\u0275\u0275attribute("data-qa",Se.config.dataQa),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,3,Se.component.title,Se.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Se.component.subTitle))},dependencies:[d.O5,O.X$],styles:['@charset "UTF-8";.accordion[_ngcontent-%COMP%]{margin-bottom:-5px}.accordion__title[_ngcontent-%COMP%]{color:#284681;font-weight:600;font-family:Source Sans Pro;font-size:22px}.accordion__header[_ngcontent-%COMP%]{font-size:18px;display:flex}.accordion__footer[_ngcontent-%COMP%]{padding-top:8px;margin-bottom:30px}.accordion__footer[_ngcontent-%COMP%]   .accordion__title[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:#88909b;font-weight:400}']})}(0,x.gn)([(0,O.SQ)()],ki.prototype,"lang",void 0);var Co=t(11913);let xo=(()=>{class nt extends h.n{constructor(){super()}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-form-separator"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:0,consts:[[1,"separator"],[1,"separator__line"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"div",1),e.\u0275\u0275elementEnd())},styles:['@charset "UTF-8";.separator[_ngcontent-%COMP%]{width:100%}.separator__line[_ngcontent-%COMP%]{height:1px;width:100%;background-color:#88909b}']})}return nt})();const no=["input"],Mo={button:L,input:Ce,metibInput:m,select:Wt,autocomplete:T,biksearch:j.T,svetofor:Sn,accordion:ki,slider:Ut,datepicker:pe,metibDatepicker:(()=>{class nt extends h.n{constructor(){super(),this.subscriptions=[],this.dateMask={TextMask:[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/]}}ngOnInit(){this.objValue=ce()(this.formGroup.get(this.config.field.name).value,"DD.MM.YYYY")}datePickersChanged(ve){const Se=void 0===ve?ve:ce()(ve);this.formGroup.get(this.config.field.name).setValue(Se&&Se.format("DD.MM.YYYY")),this.formGroup.get(this.config.field.name).markAsDirty(),this.formGroup.get(this.config.field.name).markAsTouched(),this.objValue=ce()(ve).toDate()}ngOnDestroy(){this.subscriptions.forEach(ve=>ve.unsubscribe())}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-metib-datepicker-wrapper"]],viewQuery:function(Se,Me){if(1&Se&&e.\u0275\u0275viewQuery(no,7),2&Se){let We;e.\u0275\u0275queryRefresh(We=e.\u0275\u0275loadQuery())&&(Me.input=We.first)}},features:[e.\u0275\u0275InheritDefinitionFeature],decls:4,vars:9,consts:[[1,"form-datepicker__container",3,"formGroup"],[3,"field","mask","formControlName","hint","emitEvent"],["input",""],["icon","calendar","svgClass","form-datepicker__icon"]],template:function(Se,Me){if(1&Se&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-metib-input",1,2),e.\u0275\u0275listener("emitEvent",function(ut){return Me.emitEvent(ut)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"app-svg-icon",3),e.\u0275\u0275elementEnd()),2&Se){const We=e.\u0275\u0275reference(2);e.\u0275\u0275classProp("disabled",null==Me.visual?null:Me.visual.visualDisabled)("focused",We.focused),e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275advance(1),e.\u0275\u0275property("field",Me.field)("mask",Me.dateMask)("formControlName",Me.field.name)("hint",Me.hint)}},dependencies:[a.NgControlStatus,a.NgControlStatusGroup,P.b,a.FormGroupDirective,a.FormControlName,l.w],styles:['@charset "UTF-8";.form-datepicker__container[_ngcontent-%COMP%]{position:relative}.form-datepicker__datepicker[_ngcontent-%COMP%]{position:absolute;inset:0 0 0 50%;opacity:0}.form-datepicker__datepicker.disabled[_ngcontent-%COMP%]{pointer-events:none}  .form-datepicker__icon{cursor:pointer;width:16px;height:16px;position:absolute;top:50%;right:15px;pointer-events:none}.ng-invalid[_ngcontent-%COMP%]     .form-datepicker__icon{fill:#ff2727}.disabled[_ngcontent-%COMP%]     .form-datepicker__icon{fill:#88909b}.focused[_ngcontent-%COMP%]     .form-datepicker__icon{fill:#003ad2}app-metib-input[_ngcontent-%COMP%]{width:100%}app-metib-datepicker.disabled[_ngcontent-%COMP%] + app-svg-icon[_ngcontent-%COMP%]{pointer-events:none}']})}return nt})(),checkbox:ne,checkboxSelect:X,radioSelect:X,swiftsearch:ze,separator:xo,formarray:Co.i,textarea:pi};let po=(()=>{class nt{constructor(ve,Se){this.resolver=ve,this.container=Se,this.destroy$=new i.x,this.formId="",this.needToSubscribeForUpdates=!1,this.updateFormValue=new e.EventEmitter}ngOnChanges(ve){this.component&&(this.component.instance.config=this.config,this.component.instance.formGroup=this.formGroup,this.component.instance.eventSubject=this.eventSubject,this.component.instance.field=this.config.field,this.component.instance.component=this.config.component,this.component.instance.select=this.config.select,this.component.instance.mask=this.config.mask,this.component.instance.filter=this.config.filter,this.component.instance.visual=this.config.visual,this.component.instance.isDisabled=this.isDisabled,this.component.instance.showErrorDefault=this.showErrorDefault)}ngOnInit(){if(this.needToSubscribeForUpdates&&this.formGroup.valueChanges.pipe((0,u.R)(this.destroy$)).subscribe(Se=>{this.updateFormValue.emit({id:this.formId,formGroup:this.formGroup})}),!Mo[this.config.component.type]){const Se=Object.keys(Mo).join(", ");throw new Error(`Trying to use an unsupported type (${this.config.component.type}).\n        Supported types: ${Se}`)}const ve=this.resolver.resolveComponentFactory(Mo[this.config.component.type]);this.component=this.container.createComponent(ve),this.component.instance.config=this.config,this.component.instance.formGroup=this.formGroup,this.component.instance.eventSubject=this.eventSubject,this.component.instance.field=this.config.field,this.component.instance.component=this.config.component,this.component.instance.select=this.config.select,this.component.instance.mask=this.config.mask,this.component.instance.filter=this.config.filter,this.component.instance.visual=this.config.visual,this.component.instance.hint=this.config.hint,this.component.instance.slider=this.config.slider,this.component.instance.isDisabledOptions=this.isDisabled,this.component.instance.showErrorDefault=this.showErrorDefault,this.component.instance.config.nativeElement=this.component.location.nativeElement}ngOnDestroy(){this.component.destroy(),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Se){return new(Se||nt)(e.\u0275\u0275directiveInject(e.ComponentFactoryResolver),e.\u0275\u0275directiveInject(e.ViewContainerRef))};static#t=this.\u0275dir=e.\u0275\u0275defineDirective({type:nt,selectors:[["","dynamicField",""]],inputs:{config:"config",formId:"formId",needToSubscribeForUpdates:"needToSubscribeForUpdates",formGroup:"formGroup",isDisabled:"isDisabled",eventSubject:"eventSubject",showErrorDefault:"showErrorDefault"},outputs:{updateFormValue:"updateFormValue"},features:[e.\u0275\u0275NgOnChangesFeature]})}return nt})();const Io=["dynamicForm"];function en(nt,De){if(1&nt&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&nt){const ve=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",ve.field.requiredMessage," ")}}function Hn(nt,De){if(1&nt){const ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3),e.\u0275\u0275elementContainerStart(1,4),e.\u0275\u0275listener("updateFormValue",function(Me){e.\u0275\u0275restoreView(ve);const We=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(We.updateDynamicForm(Me))}),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275template(2,en,2,1,"div",5),e.\u0275\u0275elementEnd()}if(2&nt){const ve=De.$implicit,Se=De.index,Me=e.\u0275\u0275nextContext(),We=e.\u0275\u0275reference(1);e.\u0275\u0275classProp("dynamic-form-field__hidden",(null==ve.visual?null:ve.visual.hide)||(null==ve.visual?null:ve.visual.hideNoAnimation)),e.\u0275\u0275property("@accordionDisplayNoAnimation",null!=ve.visual&&ve.visual.hideNoAnimation?"hide":"show")("@accordionDisplay",null!=ve.visual&&ve.visual.hide?"hide":"show")("@accordion",null!=ve.visual&&ve.visual.hide||null!=ve.visual&&ve.visual.hideNoAnimation?"hide":"show")("hidden","bankPartner"===ve.field.name&&ve.select.items.length<2)("ngClass",null==ve.visual?null:ve.visual.cssClass),e.\u0275\u0275attribute("data-qa","1658984515167"+Se),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",ve)("formId",Me.formId)("eventSubject",Me.eventSubject)("needToSubscribeForUpdates",!0)("formGroup",Me.formGroup)("isDisabled",Me.disabledOptions)("showErrorDefault",!Me.showFieldError),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Me.showFieldError&&(null==ve||null==ve.control?null:ve.control.hasError("required"))&&(null==We?null:We.submitted)&&(null==ve||null==ve.control?null:ve.control.touched))}}let tt=(()=>{class nt{constructor(){this.formId="",this.needToSubscribeForUpdates=!1,this.config=[],this.showFieldError=!1,this.event=new e.EventEmitter,this.changeFormValue=new e.EventEmitter,this.eventSubject=new i.x}ngOnInit(){this.eventSubject.subscribe(ve=>this.event.emit(ve))}ngOnChanges(){this._eventSub&&this._eventSub.unsubscribe()}updateDynamicForm(ve){this.changeFormValue.emit(ve)}static#e=this.\u0275fac=function(Se){return new(Se||nt)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["app-dynamic-form"]],viewQuery:function(Se,Me){if(1&Se&&e.\u0275\u0275viewQuery(Io,5),2&Se){let We;e.\u0275\u0275queryRefresh(We=e.\u0275\u0275loadQuery())&&(Me.dynamicForm=We.first)}},inputs:{formId:"formId",needToSubscribeForUpdates:"needToSubscribeForUpdates",config:"config",showFieldError:"showFieldError",formGroup:"formGroup",disabledOptions:"disabledOptions"},outputs:{event:"event",changeFormValue:"changeFormValue"},exportAs:["dynamicForm"],features:[e.\u0275\u0275NgOnChangesFeature],decls:3,vars:2,consts:[[1,"dynamic-form",3,"formGroup"],["dynamicForm","ngForm"],["class","dynamic-form-field",3,"dynamic-form-field__hidden","hidden","ngClass",4,"ngFor","ngForOf"],[1,"dynamic-form-field",3,"hidden","ngClass"],["dynamicField","",3,"config","formId","eventSubject","needToSubscribeForUpdates","formGroup","isDisabled","showErrorDefault","updateFormValue"],["class","dynamic-form__error",4,"ngIf"],[1,"dynamic-form__error"]],template:function(Se,Me){1&Se&&(e.\u0275\u0275elementStart(0,"form",0,1),e.\u0275\u0275template(2,Hn,3,16,"div",2),e.\u0275\u0275elementEnd()),2&Se&&(e.\u0275\u0275property("formGroup",Me.formGroup),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",Me.config))},dependencies:[d.mk,d.sg,d.O5,a.\u0275NgNoValidate,a.NgControlStatusGroup,a.FormGroupDirective,po],styles:['@charset "UTF-8";.column[_nghost-%COMP%]   .dynamic-form[_ngcontent-%COMP%]{flex-direction:column}.dynamic-form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;font-family:Open Sans,Source Sans Pro,sans-serif;align-items:end}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field[_ngcontent-%COMP%]{width:100%;margin:15px 0}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field__hidden[_ngcontent-%COMP%]{margin:0}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.quarter-inline[_ngcontent-%COMP%]{width:calc(25% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.quarter-inline.slash[_ngcontent-%COMP%]{display:flex!important;align-items:center}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.quarter-inline.slash[_ngcontent-%COMP%]:before{content:"/";padding-right:10px}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.align-start[_ngcontent-%COMP%]{align-self:start}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.no-width[_ngcontent-%COMP%]{width:0!important}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.acclist-row[_ngcontent-%COMP%]:first-child{width:calc(72.66% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.acclist-row[_ngcontent-%COMP%]:last-child{width:calc(27.33% - 10px)}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.half-top[_ngcontent-%COMP%]     .half-top{margin-top:-42px}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field.use-space[_ngcontent-%COMP%]{display:block!important}.dynamic-form[_ngcontent-%COMP%]   .dynamic-form-field[_ngcontent-%COMP%]   app-form-input-wrapper[_ngcontent-%COMP%]{height:500px;display:block}.dynamic-form__error[_ngcontent-%COMP%]{font-size:12px;color:#d9291e;width:100%;padding:0 12px;margin:4px auto auto;line-height:12px;overflow:hidden;text-overflow:ellipsis}'],data:{animation:[(0,n.X$)("accordion",[(0,n.SB)("show",(0,n.oB)({margin:"10px 0px",height:"*",opacity:1,visibility:"visible"})),(0,n.SB)("hide",(0,n.oB)({margin:"0px 0px",height:"0px",opacity:0,visibility:"hidden",overflow:"hidden"})),(0,n.eR)("show <=> hide",[(0,n.jt)("0.2s ease-in-out")])]),(0,n.X$)("accordionDisplay",[(0,n.SB)("show",(0,n.oB)({display:"block"})),(0,n.SB)("hide",(0,n.oB)({display:"none"})),(0,n.eR)("hide => show",(0,n.jt)("0ms ease-in-out")),(0,n.eR)("show => hide",(0,n.jt)("0ms 0.2s ease-in-out"))]),(0,n.X$)("accordionDisplayNoAnimation",[(0,n.SB)("show",(0,n.oB)({display:"block"})),(0,n.SB)("hide",(0,n.oB)({display:"none"}))])]}})}return nt})()},99762:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>U});var n=t(36895),e=t(24006),i=t(97392),d=t(29203),a=t(16611),u=t(59650),h=t(59848),l=t(9007),m=t(78895),x=t(46884),O=t(76264),L=t(36561),w=t(48038),B=t(18430),_=t(45137),y=t(11913),$=t(97582),C=t(94650),T=t(61135),j=t(39646),I=t(39300),F=t(71884),z=t(54004),X=t(63900),p=t(22529),P=t(86349),E=t(49066),R=t(31889),ne=t(37601),G=t(40929),ce=t(75568),xe=t(3729),we=t(52068);function Ge(H,Z){1&H&&C.\u0275\u0275element(0,"app-loader")}const ct={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,C.forwardRef)(()=>pe),multi:!0};class pe extends R.C{constructor(Z,oe,Pe){super(),this.elRef=Z,this.userDataService=oe,this.documentService=Pe,this.filteredItems=[],this.show=!1,this.loader=!1,this.bikNameConfig={field:{name:"corrBankBikName",validators:[e.Validators.required]},component:{type:E.j.Input,title:"corrBankBikName",placeholder:""},visual:{hide:!1,visualDisabled:!0,inputClass:"text-elipsis"}},this.onSearchChange=P.Ds(this.getSelectionOptions.bind(this),500),this.valueForSearch$=new T.X(void 0),this.selectionOptions$=this.valueForSearch$.pipe((0,I.h)(Ie=>!!Ie),(0,F.x)((Ie,pt)=>Ie.value===pt.value&&Ie.clearValue===pt.clearValue),(0,z.U)(({value:Ie,clearValue:pt})=>(pt&&this.clearValue(),Ie)),(0,X.w)(Ie=>this.searchBik(Ie)),(0,z.U)(Ie=>(this.loader=!1,this.checkChoicePossibility(Ie),this.filteredItems=Ie,1===this.filteredItems.length&&9===this.value.length&&this.setItem(this.filteredItems[0]),Ie))),this.firstRender=!0,this.onTouch=()=>{},this.onModelChange=()=>{}}ngOnInit(){this.selectionOptions$.subscribe(Z=>{this.loader=!1,this.filteredItems=Z}),"payerBik"===this.component.title&&(this.bikNameConfig.component.title="Payer bank name")}ngOnDestroy(){this.editProductSubscription&&this.editProductSubscription.unsubscribe()}registerOnTouched(Z){this.onTouch=Z}registerOnChange(Z){this.onModelChange=Z}writeValue(Z){this.value=Z,Z?this.getSelectionOptions(Z,!1):(this.bankName=null,this.filteredItems=[])}change(){this.onTouch(),this.onModelChange(this.value)}searchBik(Z){return(0,j.of)(Z).pipe((0,I.h)(oe=>!!oe),(0,X.w)(oe=>oe.length<3?(this.loader=!1,this.bankName="",this.filteredItems=[],[]):(this.loader=!0,this.userDataService.getBankBiks(oe))),(0,z.U)(oe=>this.bankInfo=oe),(0,z.U)(oe=>oe.map(Pe=>({value:Pe.bik,caption:Pe.bik,description:Pe.name}))))}checkChoicePossibility(Z){1===Z.length&&Z[0].value===this.value&&this.change()}getSelectionOptions(Z,oe=!1){this.editProductSubscription=this.documentService.paymentData$.pipe((0,p.o)(()=>!0===this.firstRender)).subscribe(Pe=>{this.firstRender=!1,Pe&&setTimeout(()=>{this.setItem(this.filteredItems[0])},500)}),this.onTouch(),this.value=Z,this.valueForSearch$.next({value:Z,clearValue:oe||!this.value})}clearValue(){this.value&&(this.value=void 0,this.onTouch(),this.onModelChange(this.value))}setItem(Z){if(!Z)return;this.value=Z.value,this.activeBik=Z;const oe=this.bankInfo.find(Pe=>Pe.bik===Z.value);oe&&this.userDataService.selectedBik$.next(oe),this.bankName=this.activeBik.description,this.activeBik.fullstring=`${this.activeBik.value}`,this.filteredItems=this.filteredItems.filter(Pe=>Pe.value===this.activeBik.value),this.emitEvent.emit({eventType:"bik-select",fieldName:this.field.name,data:this.bankInfo.filter(Pe=>Pe.bik!==this.activeBik)[0]}),this.change(),setTimeout(Pe=>this.show=!1)}formatBik(Z){Z&&this.activeBik&&this.activeBik.fullstring&&this.value&&this.value.length>=9?this.value=this.activeBik.value:Z&&this.value&&(this.value=this.value.substr(0,9)),!Z&&this.value&&9===this.value.length&&(this.activeBik?this.value=this.activeBik.value:(this.activeBik=this.filteredItems.filter(oe=>oe.value===this.value)[0],this.setItem(this.activeBik)))}onClick(Z){this.show=this.elRef.nativeElement.parentNode.contains(Z.target),this.show&&!this.filteredItems.length&&this.getSelectionOptions(this.value)}static#e=this.\u0275fac=function(oe){return new(oe||pe)(C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(ne.M),C.\u0275\u0275directiveInject(G.Z))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:pe,selectors:[["app-dynamic-form-biksearch"]],hostVars:2,hostBindings:function(oe,Pe){1&oe&&C.\u0275\u0275listener("click",function(pt){return Pe.onClick(pt)},!1,C.\u0275\u0275resolveDocument),2&oe&&C.\u0275\u0275classMap((null==Pe.visual?null:Pe.visual.cssClass)||"")},inputs:{formGroup:"formGroup",config:"config",field:"field",component:"component",select:"select",mask:"mask",visual:"visual"},features:[C.\u0275\u0275ProvidersFeature([ct]),C.\u0275\u0275InheritDefinitionFeature],decls:7,vars:18,consts:[[1,"dynamic-biksearch"],[1,"dynamic-biksearch__field",3,"formGroup"],[3,"component","config","field","mask","formControlName","ngModel","select","visual","focusChange","ngModelChange"],[3,"config","open","options","select"],[1,"dynamic-biksearch__field"],[3,"component","config","field","ngModel","visual"],[4,"ngIf"]],template:function(oe,Pe){1&oe&&(C.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"app-dynamic-form-input",2),C.\u0275\u0275listener("focusChange",function(pt){return Pe.formatBik(pt)})("ngModelChange",function(pt){return Pe.onSearchChange(pt)}),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(3,"app-form-selection-options",3),C.\u0275\u0275listener("select",function(pt){return Pe.setItem(pt)}),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(4,"div",4),C.\u0275\u0275element(5,"app-dynamic-form-input",5),C.\u0275\u0275elementEnd(),C.\u0275\u0275template(6,Ge,1,0,"app-loader",6),C.\u0275\u0275elementEnd()),2&oe&&(C.\u0275\u0275advance(1),C.\u0275\u0275property("formGroup",Pe.formGroup),C.\u0275\u0275advance(1),C.\u0275\u0275property("component",Pe.component)("config",Pe.config)("field",Pe.field)("mask",Pe.mask)("formControlName",Pe.field.name)("ngModel",Pe.value)("select",Pe.select)("visual",Pe.visual),C.\u0275\u0275advance(1),C.\u0275\u0275property("config",Pe.config)("open",Pe.show)("options",Pe.filteredItems),C.\u0275\u0275advance(2),C.\u0275\u0275property("component",Pe.bikNameConfig.component)("config",Pe.bikNameConfig)("field",Pe.bikNameConfig.field)("ngModel",Pe.bankName)("visual",Pe.bikNameConfig.visual),C.\u0275\u0275advance(1),C.\u0275\u0275property("ngIf",Pe.loader))},dependencies:[n.O5,e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,e.NgModel,ce.R,xe.s,we.d],styles:['@charset "UTF-8";app-dynamic-form-biksearch{display:block}app-dynamic-form-biksearch .dynamic-biksearch{display:flex;flex-direction:row;justify-content:space-between}app-dynamic-form-biksearch .dynamic-biksearch__field:first-child{width:25%}app-dynamic-form-biksearch .dynamic-biksearch__field:nth-child(2){width:73%}app-dynamic-form-biksearch .dynamic-biksearch{position:relative}app-dynamic-form-biksearch.ng-touched.ng-invalid .dynamic-input input:not([disabled]){border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}\n'],encapsulation:2})}(0,$.gn)([(0,a.SQ)()],pe.prototype,"lang",void 0);var Ce=t(95495);let U=(()=>{class H{static#e=this.\u0275fac=function(Pe){return new(Pe||H)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:H});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({imports:[n.ez,e.ReactiveFormsModule,e.FormsModule,a.qw,O.o,w.Y,l.Z,h.R,x.q,m.q,L.D,d.x4,u.kb,i.Ps]})}return H})();C.\u0275\u0275setComponentScope(we.d,[n.sg,n.O5,u.KC],[n.Ov,a.X$,Ce.l]),C.\u0275\u0275setComponentScope(_.T,[e.NgControlStatus,e.NgControlStatusGroup,e.FormGroupDirective,e.FormControlName,pe],[]),C.\u0275\u0275setComponentScope(y.i,[n.sg,n.O5,e.\u0275NgNoValidate,e.NgControlStatusGroup,e.FormGroupDirective,e.FormGroupName,e.FormArrayName,B.r],[a.X$])},45137:(Ee,Q,t)=>{"use strict";t.d(Q,{T:()=>i});var n=t(4965),e=t(94650);let i=(()=>{class d extends n.n{constructor(){super()}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:d,selectors:[["app-form-biksearch-wrapper"]],hostVars:2,hostBindings:function(h,l){2&h&&e.\u0275\u0275classMap((null==l.visual?null:l.visual.cssClass)||"")},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:10,consts:[[3,"formGroup"],[3,"formGroup","component","config","field","formControlName","mask","select","visual","emitEvent"]],template:function(h,l){1&h&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form-biksearch",1),e.\u0275\u0275listener("emitEvent",function(x){return l.emitEvent(x)}),e.\u0275\u0275elementEnd()()),2&h&&(e.\u0275\u0275property("formGroup",l.formGroup),e.\u0275\u0275attribute("data-qa",l.config.dataQa),e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",l.formGroup)("component",l.component)("config",l.config)("field",l.field)("formControlName",l.field.name)("mask",l.mask)("select",l.select)("visual",l.visual))},styles:["app-form-biksearch-wrapper{display:block}\n"],encapsulation:2})}return d})()},11913:(Ee,Q,t)=>{"use strict";t.d(Q,{i:()=>m});var n=t(97582),e=t(16611),i=t(4965),d=t(94650),a=t(8058);function u(x,O){if(1&x){const L=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",8),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(L);const B=d.\u0275\u0275nextContext().index,_=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(_.deleteFormArrayItem(B))}),d.\u0275\u0275elementEnd()}2&x&&d.\u0275\u0275styleProp("height",19,"px")("width",19,"px")}function h(x,O){if(1&x&&(d.\u0275\u0275elementStart(0,"div",4),d.\u0275\u0275elementContainerStart(1,5),d.\u0275\u0275element(2,"app-dynamic-form",6),d.\u0275\u0275elementContainerEnd(),d.\u0275\u0275template(3,u,1,4,"div",7),d.\u0275\u0275elementEnd()),2&x){const L=O.$implicit,w=O.index,B=d.\u0275\u0275nextContext(2);d.\u0275\u0275classMapInterpolate1("form-array-item ",null==B.config||null==B.config.visual?null:B.config.visual.cssClass,""),d.\u0275\u0275property("formArrayName",B.formArrayName),d.\u0275\u0275advance(1),d.\u0275\u0275property("formGroupName",w),d.\u0275\u0275advance(1),d.\u0275\u0275property("config",B.config.component.formArrayFields)("formGroup",B.asFormGroup(L)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",B.arrayControls.controls.length>1||(null==B.config||null==B.config.component?null:B.config.component.canRemoveAll))}}function l(x,O){if(1&x){const L=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"form",1),d.\u0275\u0275template(1,h,4,8,"div",2),d.\u0275\u0275elementStart(2,"div",3),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(L);const B=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(B.addFormArrayItem())}),d.\u0275\u0275text(3),d.\u0275\u0275pipe(4,"translate"),d.\u0275\u0275elementStart(5,"span"),d.\u0275\u0275text(6,"+"),d.\u0275\u0275elementEnd()()()}if(2&x){const L=d.\u0275\u0275nextContext();d.\u0275\u0275property("formGroup",L.formGroup),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",L.arrayControls.controls),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1("",d.\u0275\u0275pipeBind2(4,3,null==L.config||null==L.config.component?null:L.config.component.subTitle,L.lang)," ")}}class m extends i.n{constructor(O){super(),this.dynamicFormService=O}get arrayControls(){return this.formGroup.get(this.field.name)}ngOnInit(){this.formArrayName=this.config.field.name}asFormGroup(O){return O}addFormArrayItem(){const O=this.dynamicFormService.generateFormGroup(this.config.component.formArrayFields);this.arrayControls.push(O),this.formGroup.updateValueAndValidity()}deleteFormArrayItem(O){this.arrayControls.removeAt(O),this.formGroup.updateValueAndValidity()}static#e=this.\u0275fac=function(L){return new(L||m)(d.\u0275\u0275directiveInject(a.w))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:m,selectors:[["app-form-array"]],features:[d.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[3,"formArrayName","class",4,"ngFor","ngForOf"],[1,"add-string",3,"click"],[3,"formArrayName"],[3,"formGroupName"],[3,"config","formGroup"],["class","app-cross red",3,"height","width","click",4,"ngIf"],[1,"app-cross","red",3,"click"]],template:function(L,w){1&L&&d.\u0275\u0275template(0,l,7,6,"form",0),2&L&&d.\u0275\u0275property("ngIf",w.formGroup)},styles:['@charset "UTF-8";.app-cross[_ngcontent-%COMP%]{width:25px;height:25px;position:relative;cursor:pointer;outline:none}.app-cross[_ngcontent-%COMP%]:before, .app-cross[_ngcontent-%COMP%]:after{content:"";height:2px;width:100%;position:absolute;top:50%;left:0;margin-top:-1px}.app-cross[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.app-cross[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.app-cross.grey[_ngcontent-%COMP%]:before, .app-cross.grey[_ngcontent-%COMP%]:after{background-color:#88909b}.app-cross.red[_ngcontent-%COMP%]:before, .app-cross.red[_ngcontent-%COMP%]:after{background-color:#d9291e}.add-string[_ngcontent-%COMP%]{font-size:19px;font-weight:600;cursor:pointer;color:#2f54eb;display:inline-flex;align-items:center}.add-string[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:13px;font-size:32px;font-weight:400}.arrow-toggle-wrap[_ngcontent-%COMP%]{padding-left:3px;width:15px;height:9px;cursor:pointer}.arrow-toggle-wrap.black[_ngcontent-%COMP%]{width:auto;height:auto;padding-left:0}.arrow-toggle-wrap.black[_ngcontent-%COMP%]   .arrow-toggle[_ngcontent-%COMP%]{display:block;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #000000}.arrow-toggle-wrap.black[_ngcontent-%COMP%]   .arrow-toggle.open[_ngcontent-%COMP%]{transform:translateZ(0) rotate(180deg)}.arrow-toggle-wrap.black[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]{display:none}.arrow-toggle[_ngcontent-%COMP%]{display:flex;align-items:center}.arrow-toggle[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]{z-index:0}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{transition:transform .25s linear;transform:rotate(135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{transition:transform .25s linear;transform:rotate(-135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{transition:transform .25s linear;transform:rotate(-135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{transition:transform .25s linear;transform:rotate(135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{transition:transform .25s linear;transform:rotate(-135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{transition:transform .25s linear;transform:rotate(135deg)}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]{width:8px}.arrow-toggle.open[_ngcontent-%COMP%]   .arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#2f54eb}.arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;position:absolute;height:1px;width:100%;background:#2f54eb;opacity:1;left:0;transform:rotate(0);transition:.25s ease-in-out}.arrow-toggle__arrow.red[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:linear-gradient(270deg,#f39034 0%,#ff2727 100%)}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]{width:8px}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#000}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(-45deg);top:5px;left:-3px}.arrow-toggle__arrow.thin-black[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg);top:5px;left:2px}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]{width:8px}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#88909b}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(-45deg)}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg)}.arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]{width:8px;margin-left:-9px}.arrow-toggle__arrow.thin-black-reverse[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#88909b;height:2px}.arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(45deg);top:3px;left:-4px}.arrow-toggle__arrow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(-45deg);top:3px;left:2px}.arrow-toggle__arrow[_ngcontent-%COMP%]{display:block;width:10px;height:10px;transform:rotate(0);transition:.25s ease-in-out;z-index:97}.arrow-toggle__arrow.thin-gray[_ngcontent-%COMP%]{transform:rotate(180deg)}.form-array-item.gray[_ngcontent-%COMP%]{background-color:#f1f2f2;border:1px solid #dedede;padding:10px 20px;border-radius:5px}.form-array-item.gray[_ngcontent-%COMP%]   .app-cross[_ngcontent-%COMP%]{top:40px}.form-array-item[_ngcontent-%COMP%]{margin-bottom:20px;position:relative}.app-cross[_ngcontent-%COMP%]{position:absolute;top:30px;right:-30px}form[_ngcontent-%COMP%]{width:calc(100% - 30px)}.accordion-title[_ngcontent-%COMP%]{font-size:16px;line-height:18px;padding:10px 0;display:flex;justify-content:space-between;align-items:center}']})}(0,n.gn)([(0,e.SQ)()],m.prototype,"lang",void 0)},3729:(Ee,Q,t)=>{"use strict";t.d(Q,{s:()=>X});var n=t(97582),e=t(94650),i=t(24006),d=t(67795),a=t(16611),u=t(31889),h=t(36895),l=t(69245),m=t(97392);const x=["input"];function O(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",12)(1,"b"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(E.appendSymbol)}}function L(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",8)(1,"input",9,10),e.\u0275\u0275listener("blur",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!1))})("focus",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!0))})("keydown",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleKeyDown(ne))})("keypress",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleEnterKey(ne))})("ngModelChange",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.change())})("paste",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handlePasteEvent(ne))})("ngModelChange",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.value=ne)}),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,O,3,1,"div",11),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("append-group",E.withAppend),e.\u0275\u0275property("appTextMask",E.mask.TextMask),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("dynamic-input__input--with-icon",E.closeIcon),e.\u0275\u0275property("ngModel",E.value)("disabled",E.disabled)("tabindex",E.tabIndex),e.\u0275\u0275attribute("data-qa",E.config.dataQa)("maxlength",E.maxlengthWithMask)("minlength",E.component.minlength)("placeholder",e.\u0275\u0275pipeBind2(3,14,E.component.placeholder,E.lang))("type",E.type),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",E.withAppend)}}function w(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",12)(1,"b"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(E.appendSymbol)}}function B(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",13)(1,"input",14,10),e.\u0275\u0275listener("blur",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!1))})("focus",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.setFocus(ne,!0))})("keydown",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleKeyDown(ne))})("keypress",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handleEnterKey(ne))})("ngModelChange",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.change(ne))})("paste",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.handlePasteEvent(ne))})("ngModelChange",function(ne){e.\u0275\u0275restoreView(E);const G=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(G.value=ne)}),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,w,3,1,"div",11),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("append-group",E.withAppend),e.\u0275\u0275advance(1),e.\u0275\u0275classMap(E.inputClass),e.\u0275\u0275classProp("dynamic-input__input--with-icon",E.closeIcon),e.\u0275\u0275property("ngModel",E.value)("disabled",E.disabled)("tabindex",E.tabIndex),e.\u0275\u0275attribute("data-qa",E.config.dataQa)("maxlength",E.component.maxlength)("minlength",E.component.minlength)("placeholder",e.\u0275\u0275pipeBind2(3,15,E.component.placeholder,E.lang))("type",E.type),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",E.withAppend)}}function _(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",E.symbolCounter,"/",E.component.maxlength," ")}}function y(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",E.symbolCounter,"/",E.component.minlength,"+ ")}}function $(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.resetInput())}),e.\u0275\u0275text(1,"\u2716"),e.\u0275\u0275elementEnd()}}function C(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"mat-icon",21),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("fontSet",E.visual.matStyleOutlined&&"material-icons-outlined"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(E.visual.matIcon)}}function T(p,P){if(1&p&&e.\u0275\u0275element(0,"mat-icon",22),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("svgIcon",E.visual.svgIcon)}}function j(p,P){if(1&p&&e.\u0275\u0275element(0,"div",23),2&p){const E=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("dynamic-input__icon_focused-arrow",E.focused)}}function I(p,P){if(1&p){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const ne=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ne.input.nativeElement.focus())}),e.\u0275\u0275template(1,C,2,2,"mat-icon",18),e.\u0275\u0275template(2,T,1,1,"mat-icon",19),e.\u0275\u0275template(3,j,1,2,"div",20),e.\u0275\u0275elementEnd()}if(2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.visual.matIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.visual.svgIcon&&"arrow-up"!==E.visual.svgIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","arrow-up"===E.visual.svgIcon)}}function F(p,P){if(1&p&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&p){const E=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",null!=E.hint&&E.hint.type||null!=E.config&&null!=E.config.hint&&E.config.hint.type?(null==E.hint?null:E.hint.type)||(null==E.config||null==E.config.hint?null:E.config.hint.type):null),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",(null==E.hint?null:E.hint.text)||(null==E.config||null==E.config.hint?null:E.config.hint.text)||"","\n")}}const z={provide:i.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>X),multi:!0};class X extends u.C{constructor(){super(),this.suppressChange=!1,this.keyDownEvent=new e.EventEmitter,this.focusChange=new e.EventEmitter,this.valueWithoutMask="",this.focused=!1,this.specKeys=["Backspace","Delete","Del","ArrowLeft","Left","ArrowRight","Right"],this.onTouch=()=>{},this.onModelChange=()=>{}}get class(){return this.visual?.cssClass||""}get disabled(){return this.isDisabled||this.visual&&this.visual.visualDisabled||null}get tabIndex(){return this.disabled||this.visual&&this.visual.hide&&!0===this.visual.hide?-1:0}get withAppend(){return this.visual&&this.visual.withAppend}get appendSymbol(){return this.visual&&this.visual.appendSymbol}get hideTitle(){return this.config.isModalDesign?(this.title=this.config.component.placeholder,!this.value):this.visual&&this.visual.cssClass&&this.visual.cssClass.includes("no-description")}get closeIcon(){return this.visual&&this.visual.close}get type(){return this.component&&this.component.inputType?this.component.inputType:"text"}get maskExist(){return this.mask&&this.mask.TextMask}get filterExist(){return this.filter&&Boolean(this.filter.textFilter)}get symbolCounter(){return this.value?!this.valueWithoutMask&&this.maskExist&&this.mask.stripMask?this.stripMask(this.value).length:this.maskExist&&this.mask.stripMask?this.valueWithoutMask.length:this.value.length:0}get maxlengthWithMask(){return this.component.maxlength+(this.maskExist&&this.mask.stripMask&&this.value?this.value.length-this.valueWithoutMask.length:0)}onBlur(P){this.onTouch(P)}onInput(){this.emitEvent.emit({fieldName:this.field.name,eventType:"input"})}ngOnInit(){this.inputClass=`dynamic-input__input ${this.visual&&this.visual.inputClass?this.visual.inputClass:""}`}registerOnTouched(P){this.onTouch=P}registerOnChange(P){this.onModelChange=P}writeValue(P){if(this.mask&&this.mask.TextMask&&P)try{P=(0,d.xm)(P+"",this.mask.TextMask,{guide:!1}).conformedValue}catch{}this.value=P}setDisabledState(P){this.isDisabled=P}change(P){setTimeout(E=>{let R=this.input.nativeElement.value+"";this.value=R,R&&this.maskExist&&this.mask.stripMask&&(R=this.stripMask(R),this.valueWithoutMask=R),this.onTouch(),this.suppressChange||this.onModelChange(R)})}filterValue(P){return(P.match(this.filter.textFilter)||[]).join("")}stripMask(P){let E="function"==typeof this.mask.TextMask?this.mask.TextMask(P):this.mask.TextMask;const R=this.mask.decimalSymbol?this.mask.decimalSymbol:"amount"===this.mask.type?".":null;return R&&(E=E.filter(ne=>"[]"!==ne)),P.split("").reduce((ne,G,ce)=>"string"!=typeof E[ce]||R&&E[ce]===R?ne+G:ne,"")}resetInput(){this.value="",this.onTouch(),this.onModelChange(this.value),this.emitEvent.emit({fieldName:this.field.name,eventType:"resetInput",data:this.value})}setFocus(P,E){if(this.focused=E,this.focused&&(this.onTouch(),this.mask&&this.mask.TextMask&&!this.value)){let R;try{R=(0,d.xm)(R+"",this.mask.TextMask,{guide:!1})}catch{}R&&"undefined"!==R.conformedValue&&(this.value=R.conformedValue)}this.focusChange.emit(this.focused),this.emitEvent.emit({eventType:P.type,fieldName:this.field.name,data:this.value})}handleEnterKey(P){"Enter"===P.key&&(this.input.nativeElement.blur(),this.emitEvent.emit({eventType:"enter-key",fieldName:this.field.name}))}handlePasteEvent(P){if(this.mask&&"amount"===this.mask.type){P.preventDefault();let E=(P.clipboardData||P.originalEvent.clipboardData).getData("text");if("string"==typeof E&&(E=E.trim().replace(/'|"/g,""),/^\d+[,.]?\d+/.test(E))){E=E.replace(",",".");const R=E.split("."),ne=R[0].split("").reverse();let G="";for(let ce=0;ce<ne.length;ce++)G+=ne[ce]+((ce+1)%3==0?" ":"");G=G.split("").reverse().join("").trim(),this.input.nativeElement.value=G+(R[1]?`.${R[1]}`:""),this.change()}}}handleKeyDown(P){if(this.keyDownEvent.emit(P),("comma"===P.code.toLowerCase()||"period"===P.code.toLowerCase()||188===P.keyCode||","===P.key||227===P.which)&&this.mask&&"amount"===this.mask.type&&(P.target.value=P.target.value.substr(0,P.target.value.length)+"."),this.filterExist){if(this.specKeys.indexOf(P.key)>=0)return;this.filterValue(P.key).length||(P.preventDefault(),P.stopPropagation())}}static#e=this.\u0275fac=function(E){return new(E||X)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:X,selectors:[["app-dynamic-form-input"]],viewQuery:function(E,R){if(1&E&&e.\u0275\u0275viewQuery(x,5),2&E){let ne;e.\u0275\u0275queryRefresh(ne=e.\u0275\u0275loadQuery())&&(R.input=ne.first)}},hostVars:2,hostBindings:function(E,R){1&E&&e.\u0275\u0275listener("blur",function(G){return R.onBlur(G)})("input",function(){return R.onInput()}),2&E&&e.\u0275\u0275classMap(R.class)},inputs:{config:"config",field:"field",component:"component",select:"select",mask:"mask",filter:"filter",visual:"visual",hint:"hint",suppressChange:"suppressChange"},outputs:{keyDownEvent:"keyDownEvent",focusChange:"focusChange"},features:[e.\u0275\u0275ProvidersFeature([z]),e.\u0275\u0275InheritDefinitionFeature],decls:12,vars:24,consts:[[1,"dynamic-input"],[1,"dynamic-input__placeholder",3,"hidden"],["class","dynamic-input__overlay",3,"appTextMask","append-group",4,"ngIf"],["class","dynamic-input__overlay",3,"append-group",4,"ngIf"],["class","dynamic-input__counter",4,"ngIf"],["class","dynamic-input__close","data-qa","1663073209560",3,"click",4,"ngIf"],["class","dynamic-input__icon-wrap","data-qa","1663073216815",3,"click",4,"ngIf"],["class","dynamic-input__hint",3,"ngClass",4,"ngIf"],[1,"dynamic-input__overlay",3,"appTextMask"],[1,"dynamic-input__input",3,"ngModel","disabled","tabindex","blur","focus","keydown","keypress","ngModelChange","paste"],["input",""],["class","append-icon",4,"ngIf"],[1,"append-icon"],[1,"dynamic-input__overlay"],[3,"ngModel","disabled","tabindex","blur","focus","keydown","keypress","ngModelChange","paste"],[1,"dynamic-input__counter"],["data-qa","1663073209560",1,"dynamic-input__close",3,"click"],["data-qa","1663073216815",1,"dynamic-input__icon-wrap",3,"click"],["class","dynamic-input__icon",3,"fontSet",4,"ngIf"],["class","dynamic-input__icon",3,"svgIcon",4,"ngIf"],["class","dynamic-input__icon arrow-mail",3,"dynamic-input__icon_focused-arrow",4,"ngIf"],[1,"dynamic-input__icon",3,"fontSet"],[1,"dynamic-input__icon",3,"svgIcon"],[1,"dynamic-input__icon","arrow-mail"],[1,"dynamic-input__hint",3,"ngClass"]],template:function(E,R){1&E&&(e.\u0275\u0275elementStart(0,"label",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,L,5,17,"div",2),e.\u0275\u0275template(6,B,5,18,"div",3),e.\u0275\u0275template(7,_,2,2,"div",4),e.\u0275\u0275template(8,y,2,2,"div",4),e.\u0275\u0275template(9,$,2,0,"div",5),e.\u0275\u0275template(10,I,4,3,"div",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,F,2,2,"div",7)),2&E&&(e.\u0275\u0275classProp("dynamic-input--active",R.focused)("dynamic-input--disabled",R.disabled)("new-design",R.config.isNewDesign)("modal-design",R.config.isModalDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",R.hideTitle),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(3,18,R.component.titlePrefix,R.lang),"",e.\u0275\u0275pipeBind2(4,21,R.component.title,R.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",R.maskExist),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!R.maskExist),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.component.maxlength&&!R.config.isModalDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.component.minlength&&!R.config.isModalDesign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.closeIcon&&!R.disabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",R.visual&&(R.visual.matIcon||R.visual.svgIcon)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==R.hint?null:R.hint.text.length)||(null==R.config||null==R.config.hint?null:R.config.hint.text.length)))},dependencies:[h.mk,h.O5,i.DefaultValueAccessor,i.NgControlStatus,i.MinLengthValidator,i.MaxLengthValidator,i.NgModel,l.h,m.Hw,a.X$],styles:['@charset "UTF-8";app-dynamic-form-input{display:block}app-dynamic-form-input .dynamic-input{display:block;position:relative}app-dynamic-form-input .dynamic-input__icon{display:block;color:#88909b;cursor:pointer;top:calc(50% - 3px);pointer-events:none}app-dynamic-form-input .dynamic-input__icon_focused-arrow{transform:rotate(180deg)}app-dynamic-form-input .dynamic-input__placeholder{transition:color .1s ease;position:absolute;box-sizing:border-box;width:100%;padding:2px 12px 0;left:0;top:0;font-size:12px;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-dynamic-form-input .dynamic-input__overlay.append-group{display:flex}app-dynamic-form-input .dynamic-input__overlay.append-group .append-icon{padding:16px 26px;background:#f1f2f2;border-radius:5px;border:1px solid #dedede;font-size:22px;margin-left:-5px;display:flex;align-items:center;color:#284681}app-dynamic-form-input .dynamic-input__overlay .error{display:none;color:#e23428;font-size:14px;line-height:19px;font-weight:400;margin-top:4px;padding:0 12px;font-family:Open Sans}app-dynamic-form-input .dynamic-input__input{transition:border .1s ease,box-shadow .1s ease,background .1s ease;width:100%;border:1px solid #dedede;outline:none;padding:30px 12px 12px;min-height:50px;background-color:#fff;font-size:16px;box-sizing:border-box}app-dynamic-form-input .dynamic-input__input::-webkit-input-placeholder{font-family:Source Sans Pro}app-dynamic-form-input .dynamic-input__input::-moz-placeholder{font-family:Source Sans Pro}app-dynamic-form-input .dynamic-input__input:-moz-placeholder{font-family:Source Sans Pro}app-dynamic-form-input .dynamic-input__input:-ms-input-placeholder{font-family:Source Sans Pro}app-dynamic-form-input .dynamic-input__input--with-icon{padding-right:36px}app-dynamic-form-input .dynamic-input__input.text-elipsis{text-overflow:ellipsis}app-dynamic-form-input .dynamic-input__counter{position:absolute;right:5px;bottom:5px;font-family:Source Sans Pro;font-size:.8em;color:#88909b}app-dynamic-form-input .dynamic-input__close{position:absolute;font-size:14px;top:calc(50% - 7px);right:15px;cursor:pointer;color:#e23428}app-dynamic-form-input .dynamic-input--active .dynamic-input__input{border-bottom:1px solid #2f54eb!important}app-dynamic-form-input .dynamic-input--active .append-icon{border-color:#2f54eb!important;box-shadow:inset 0 0 0 1px #2f54eb!important}app-dynamic-form-input .dynamic-input--active .dynamic-input__placeholder{color:#2f54eb}app-dynamic-form-input .dynamic-input--disabled .dynamic-input__input{background:#f1f2f2}app-dynamic-form-input .dynamic-input__hint{margin-top:10px}app-dynamic-form-input.no-description .dynamic-input__input{padding-top:14px;padding-bottom:10px}app-dynamic-form-input.ng-touched.ng-invalid .dynamic-input .dynamic-input__input{border-color:#e23428;box-shadow:inset 0 0 0 1px #e23428}app-dynamic-form-input.ng-touched.ng-invalid .dynamic-input .append-icon{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}app-dynamic-form-input.half-inline:last-child{margin-right:0;margin-left:auto}app-dynamic-form-input .modal-design.dynamic-input--active .dynamic-input__input{border-bottom:2px solid #2f54eb!important}app-dynamic-form-input .modal-design .arrow-mail{background:url(arrow-mail.d872f67d57b2e59a.svg) no-repeat;width:20px;height:20px}app-dynamic-form-input .modal-design .dynamic-input__input{padding:26px 40px 8px 12px!important;border:none;border-bottom:1px solid #88909b;border-radius:unset!important;box-shadow:none!important;min-height:unset!important;font-weight:400;font-size:16px;line-height:16px;color:#080708;height:56px}app-dynamic-form-input .modal-design .dynamic-input__input .focused{border-color:#2f54eb!important;border-bottom:2px solid #2f54eb!important}app-dynamic-form-input .modal-design .sign{display:flex}app-dynamic-form-input .modal-design.ng-invalid .dynamic-input .dynamic-input__input{color:#d9291e;box-shadow:none!important;border:none!important}app-dynamic-form-input .modal-design.ng-invalid .dynamic-input .append-icon{color:#d9291e;box-shadow:none!important;border:none!important}app-dynamic-form-input .modal-design .dynamic-input__icon-wrap{top:65%}app-dynamic-form-input .dynamic-input--active .modal-design .dynamic-input__input{border:none!important;padding:6px 12px!important;border-bottom:1px solid #2f54eb!important;border-radius:unset!important;box-shadow:none!important}app-dynamic-form-input .new-design .dynamic-input__placeholder{display:none}app-dynamic-form-input .new-design .dynamic-input__input{border:none!important;border-bottom:1px solid #88909b!important;border-radius:unset!important;box-shadow:none!important;min-height:unset!important;font-weight:400;font-size:16px;font-family:Open Sans,Source Sans Pro,sans-serif;line-height:22px}app-dynamic-form-input .new-design.ng-touched.ng-invalid .dynamic-input .dynamic-input__input{color:#d9291e;box-shadow:none!important;border:none!important}app-dynamic-form-input .new-design.ng-touched.ng-invalid .dynamic-input .append-icon{color:#d9291e;box-shadow:none!important;border:none!important}app-dynamic-form-input .dynamic-input--active .new-design .dynamic-input__input{border:none!important;padding:6px 0!important;border-bottom:1px solid #444444!important;border-radius:unset!important;box-shadow:none!important}app-dynamic-form-input .no-icon{display:none}.dynamic-input__icon-wrap{position:absolute;right:4px;top:50%;transform:translate(-50%,-50%);pointer-events:none;cursor:pointer}.dynamic-input__icon{width:20px;height:20px;color:#0000008a;fill:#0000008a;font-size:20px;display:flex;justify-content:center;align-items:center}.dynamic-input__icon_arrow{background:url(arrow-mail.d872f67d57b2e59a.svg) no-repeat;width:20px;height:20px;position:absolute;right:-4px;top:12px;transform:translate(-50%,-50%);pointer-events:none}app-dynamic-form-autocomplete .dynamic-input__input{cursor:pointer}\n'],encapsulation:2})}(0,n.gn)([(0,a.SQ)()],X.prototype,"lang",void 0)},52068:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>$});var n=t(97582),e=t(94650),i=t(16611),d=t(86349),a=t(70234),u=t(43373),h=t(15644);const l=["itemDiv"];function m(C,T){if(1&C&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",4),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&C){const j=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,1,"Nothing found. Add cash recipient manually",j.lang)," ")}}function x(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(j.additionalDescription)}}function O(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span",16),e.\u0275\u0275text(1),e.\u0275\u0275template(2,x,2,1,"span",13),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",j.description," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",j.additionalDescription)}}function L(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(j.additionalCaption)}}function w(C,T){if(1&C&&e.\u0275\u0275element(0,"span",17),2&C){const j=e.\u0275\u0275nextContext().$implicit,I=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("innerHTML",I.configUtilService.unescapeUnicode(j.unicode),e.\u0275\u0275sanitizeHtml)}}function B(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"span",18),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"currency_name"),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(2,1,e.\u0275\u0275pipeBind2(3,3,null==j?null:j.contrCurrCode,!0))," ")}}function _(C,T){if(1&C){const j=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",7,8),e.\u0275\u0275listener("click",function(){const z=e.\u0275\u0275restoreView(j).$implicit,X=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(X.optionSelect(z))}),e.\u0275\u0275text(2),e.\u0275\u0275elementStart(3,"div",9)(4,"div",10),e.\u0275\u0275template(5,O,3,2,"span",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",12),e.\u0275\u0275template(7,L,2,1,"span",13),e.\u0275\u0275template(8,w,1,1,"span",14),e.\u0275\u0275template(9,B,4,6,"span",15),e.\u0275\u0275elementEnd()()()}if(2&C){const j=T.$implicit,I=T.index,F=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("selection-options__item--highlight",I===F.activeItemIndex),e.\u0275\u0275property("hidden","true"===(null==j?null:j.hidden)),e.\u0275\u0275attribute("data-qa","1663073464869"+I),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",j.caption," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",j.description),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",j.additionalCaption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",j.unicode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==j?null:j.contrCurrCode)}}function y(C,T){if(1&C&&(e.\u0275\u0275elementStart(0,"ng-scrollbar",5),e.\u0275\u0275template(1,_,10,9,"div",6),e.\u0275\u0275elementEnd()),2&C){const j=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",j.options)}}class ${constructor(T,j,I){this.elRef=T,this.selectionOptionsService=j,this.configUtilService=I,this.open=!1,this.isReceiver=!1,this.cssClass="",this.select=new e.EventEmitter,this.keyCodes=["ArrowDown","Down","ArrowUp","Up","Home","End","Enter","Spacebar"," "]}get activeItemIndex(){return this._activeItemIndex}set activeItemIndex(T){this._activeItemIndex=T,this.setContainerScroll()}get container(){return this.elRef&&this.elRef.nativeElement}get items(){return this.itemRefs.toArray().map(T=>T.nativeElement)}get itemsHeights(){return this.items.map(T=>Math.max(T.clientHeight,T.offsetHeight))}ngOnDestroy(){this.keySubscription&&this.keySubscription.unsubscribe()}ngOnInit(){this.keyboardEvents&&(this.keySubscription=this.keyboardEvents.subscribe(T=>{this.handleKeydown(T)}))}optionSelect(T){T?.disabled||(this.selectionOptionsService.SelectedOption.next({item:T,config:this.config}),this.select.emit(T))}highlightOption(T){if(!T)return;const j=this.options.findIndex(I=>I===T);-1!==j&&setTimeout(I=>this.activeItemIndex=j)}handleKeydown(T){const j=T.key;if((0,d.q9)(this.keyCodes,j)){if(T.preventDefault(),-1!==["ArrowDown","Down","ArrowUp","Up"].indexOf(j))return this.setActiveItemByStep("ArrowDown"===j||"Down"===j?1:-1);if(("Enter"===j||"Spacebar"===j||" "===j)&&void 0!==this.activeItemIndex&&this.optionSelect(this.options[this.activeItemIndex]),"Home"===j||"End"===j)return"Home"===j?this.setFirstItemActive():this.setLastItemActive()}}setFirstItemActive(){this.activeItemIndex=0}setLastItemActive(){this.activeItemIndex=this.options.length-1}setActiveItemByStep(T){if(!this.options.length)return;if(void 0===this.activeItemIndex)return void(this.activeItemIndex=0);let j=this.activeItemIndex+T;j>this.options.length-1?j-=this.options.length:j<0&&(j=this.options.length+j),this.activeItemIndex=j}setContainerScroll(){const T=this.calculateContainerScroll(this.activeItemIndex);void 0!==T&&(this.container.children[0].scrollTop=T)}calculateContainerScroll(T){const j=this.itemsHeights,I=j.slice(0,T).reduce((p,P)=>p+P,0),F=I+j[T],z=this.container.children[0].scrollTop,X=z+this.container.children[0].clientHeight;return z>I?I:X<F?F-X+z:void 0}static#e=this.\u0275fac=function(j){return new(j||$)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(u.I),e.\u0275\u0275directiveInject(h.Pj))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:$,selectors:[["app-form-selection-options"]],viewQuery:function(j,I){if(1&j&&e.\u0275\u0275viewQuery(l,5),2&j){let F;e.\u0275\u0275queryRefresh(F=e.\u0275\u0275loadQuery())&&(I.itemRefs=F)}},hostVars:1,hostBindings:function(j,I){2&j&&e.\u0275\u0275syntheticHostProperty("@accordion",I.open?"show":"hide")},inputs:{open:"open",contrCurrCode:"contrCurrCode",options:"options",config:"config",keyboardEvents:"keyboardEvents",isReceiver:"isReceiver",cssClass:"cssClass"},outputs:{select:"select"},decls:5,vars:6,consts:[[1,"selection-options"],[1,"selection-options__container"],[4,"ngIf","ngIfElse"],["normalTemplate",""],[1,"selection-options__item"],["autoHeightDisabled","false"],["class","selection-options__item",3,"hidden","selection-options__item--highlight","click",4,"ngFor","ngForOf"],[1,"selection-options__item",3,"hidden","click"],["itemDiv",""],[1,"selection-options__additionalDescription"],[1,"selection-options__left"],["class","selection-options__description",4,"ngIf"],[1,"selection-options__right"],[4,"ngIf"],["class","selection-options__description",3,"innerHTML",4,"ngIf"],["class","selection-options__currCode",4,"ngIf"],[1,"selection-options__description"],[1,"selection-options__description",3,"innerHTML"],[1,"selection-options__currCode"]],template:function(j,I){if(1&j&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,m,4,4,"ng-container",2),e.\u0275\u0275template(3,y,2,1,"ng-template",null,3,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()),2&j){const F=e.\u0275\u0275reference(4);e.\u0275\u0275classMap(I.cssClass),e.\u0275\u0275classProp("modal-design",null==I.config?null:I.config.isModalDesign),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(!I.options||!I.options.length)&&I.isReceiver)("ngIfElse",F)}},styles:['@charset "UTF-8";app-form-selection-options{overflow:hidden;display:block;max-height:310px;position:absolute;top:100%;width:100%;left:0;box-shadow:0 4px 20px #0000002e;z-index:80}app-form-selection-options .modal-design{max-height:250px!important;width:560px!important;box-shadow:0 4px 40px #08070840;border-radius:var(--mdc-shape-medium, 4px)}app-form-selection-options .sign-design{width:560px!important}app-form-selection-options .auto-width{width:auto!important}app-form-selection-options ::-webkit-scrollbar{background:transparent!important;width:10px;margin-right:5px;box-sizing:border-box}app-form-selection-options ::-webkit-scrollbar-thumb{background:#dedede;border-radius:4px;width:4px;margin:auto;border-right:3px solid white;border-left:3px solid white;box-sizing:border-box}app-form-selection-options .selection-options{width:100%;background:#fff;max-height:310px;overflow-y:auto;transition:box-shadow .1s ease}app-form-selection-options .selection-options__right{margin-left:auto;color:#88909b}app-form-selection-options .selection-options__left{display:flex;flex-direction:row}app-form-selection-options .selection-options__container{overflow:hidden}app-form-selection-options .selection-options__currCode{margin-left:6px;font-size:13px;color:#88909b}app-form-selection-options .selection-options__additionalDescription{display:flex;align-items:flex-end}@media screen and (max-width: 768px){app-form-selection-options .selection-options__additionalDescription{font-size:12px}}app-form-selection-options .selection-options__description{display:block;padding-top:0;font-size:13px;color:#88909b}app-form-selection-options .selection-options__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-form-selection-options .selection-options__item{padding:15px 50px 15px 20px;border-bottom:1px solid #dedede;cursor:pointer;box-sizing:border-box;color:#444;font-size:14px}@media screen and (max-width: 768px){app-form-selection-options .selection-options__item{padding:8px}}app-form-selection-options .selection-options__item:hover,app-form-selection-options .selection-options__item--highlight{background:#f1f2f2}app-form-selection-options .selection-options__item_disabled{color:#88909b}\n'],encapsulation:2,data:{animation:[a.U]}})}(0,n.gn)([(0,i.SQ)()],$.prototype,"lang",void 0)},43373:(Ee,Q,t)=>{"use strict";t.d(Q,{I:()=>i});var n=t(61135),e=t(94650);let i=(()=>{class d{constructor(){this.SelectedOption=new n.X({item:null,config:null})}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},4965:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>n});class n{emitEvent(i){this.eventSubject.next(i)}}},49066:(Ee,Q,t)=>{"use strict";t.d(Q,{j:()=>n});var n=(()=>{return(e=n||(n={})).Select="select",e.Autocomplete="autocomplete",e.Button="button",e.Input="input",e.MetibInput="metibInput",e.Biksearch="biksearch",e.Svetofor="svetofor",e.Accordion="accordion",e.Slider="slider",e.Checkbox="checkbox",e.DatePicker="datepicker",e.MetibDatePicker="metibDatepicker",e.CheckboxSelect="checkboxSelect",e.RadioSelect="radioSelect",e.Swiftsearch="swiftsearch",e.Separator="separator",e.FormArray="formarray",e.TextArea="textarea",n;var e})()},31889:(Ee,Q,t)=>{"use strict";t.d(Q,{C:()=>e});var n=t(94650);let e=(()=>{class i{constructor(){this.emitEvent=new n.EventEmitter}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275dir=n.\u0275\u0275defineDirective({type:i,outputs:{emitEvent:"emitEvent"}})}return i})()},55298:(Ee,Q,t)=>{"use strict";t.d(Q,{O:()=>e});var n=t(94650);let e=(()=>{class i{transform(a){return a}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"abstractToFormGroup",type:i,pure:!0})}return i})()},66439:(Ee,Q,t)=>{"use strict";t.d(Q,{k:()=>e});var n=t(94650);let e=(()=>{class i{transform(a){return a&&("string"!=typeof a?(console.error("my_currency ERROR: value is not String type."),a):(a=a.split(".").join("")).replace(/(?=(\d{15})$)|(?=(\d{12})$)|(?=(\d{11})$)/g,"."))}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"account_number",type:i,pure:!0})}return i})()},91697:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>e});var n=t(94650);let e=(()=>{class i{transform(a){if(a?.length<7)return a;if(a.length>=7){const u=a.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),u.join(".")}}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"balance",type:i,pure:!0})}return i})()},61817:(Ee,Q,t)=>{"use strict";t.d(Q,{e:()=>e});var n=t(94650);let e=(()=>{class i{transform(a){return a&&`*${a.slice(-4)}`}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"cardNumber",type:i,pure:!0})}return i})()},67821:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>d});var n=t(69751),e=t(94650),i=t(29198);let d=(()=>{class a{constructor(h){this.vedService=h}transform(h){return new n.y(l=>{this.vedService.getCountries().subscribe(m=>{if(Array.isArray(m)){const x=m.find(O=>O.code===h);x&&l.next(x.intName)}})})}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275directiveInject(i.$,16))};static#t=this.\u0275pipe=e.\u0275\u0275definePipe({name:"country",type:a,pure:!0})}return a})()},27760:(Ee,Q,t)=>{"use strict";t.d(Q,{u:()=>a});var n=t(69751),e=t(8226),i=t(94650),d=t(29198);let a=(()=>{class u{constructor(l){this.vedService=l}transform(l){return new n.y(m=>{this.vedService.getCurrencies().subscribe(x=>{if(Array.isArray(x)){const O=x.find(L=>L.code===l||L.isoCode===l);O?(("RUB"===O.isoCode||"643"===O.code)&&(O.symbol=e.V2.RUR),m.next(["RUB","USD","EUR"].includes(l)||["643","840","978"].includes(l)?`${O.symbol}`:`${O.isoCode}`)):m.next(l||"")}})})}static#e=this.\u0275fac=function(m){return new(m||u)(i.\u0275\u0275directiveInject(d.$,16))};static#t=this.\u0275pipe=i.\u0275\u0275definePipe({name:"currency_code",type:u,pure:!0})}return u})()},95495:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>d});var n=t(69751),e=t(94650),i=t(29198);let d=(()=>{class a{constructor(h){this.vedService=h}transform(h,l=!1){return new n.y(m=>{this.vedService.getCurrencies().subscribe(x=>{if(Array.isArray(x)){const O=x.find(L=>L.code===h||L.isoCode===h);m.next(O?l?`${O.isoCode}`:`${O.name} (${O.isoCode})`:h)}})})}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275directiveInject(i.$,16))};static#t=this.\u0275pipe=e.\u0275\u0275definePipe({name:"currency_name",type:a,pure:!0})}return a})()},44509:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>i});var n=t(8226),e=t(94650);let i=(()=>{class d{transform(u,h){switch(u){case"RUR":case"RUB":case"810":case"643":return h?"RUR":n.V2.RUR;case"156":return"CNY";case"USD":case"840":return h?"USD":n.V2.USD;case"EUR":case"978":return h?"EUR":n.V2.EUR;case"all":return n.V2.RUR}return+u?"":u}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275pipe=e.\u0275\u0275definePipe({name:"currencySymbol",type:d,pure:!0})}return d})()},98504:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>e});var n=t(94650);let e=(()=>{class i{makeFractions(a){return a.replace(/\B(?=(\d{3})+(?!\d))/g," ")}transform(a,u=2,h="."){if(!a)return"0";"string"==typeof a&&(a=a.replace(/\s+/g,""));const m=(a=Number.isNaN(parseFloat(a))?0:parseFloat(a)).toFixed(u).split(".");return 2===m.length?`${this.makeFractions(m[0])}${h}${m[1]}`:1===m.length?this.makeFractions(m[0]):"0"}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"appCurrency",type:i,pure:!0})}return i})()},28121:(Ee,Q,t)=>{"use strict";t.d(Q,{u:()=>d});var n=t(15439),e=t.n(n),i=t(94650);let d=(()=>{class a{transform(h,l="DD.MM.YYYY"){return e()(h).format(l)}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275pipe=i.\u0275\u0275definePipe({name:"dateFormat",type:a,pure:!0})}return a})()},4610:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>e});var n=t(94650);let e=(()=>{class i{transform(a,u){const h="ru"===u?["\u0411\u0430\u0439\u0442","\u041a\u0411","\u041c\u0411","\u0413\u0411","\u0422\u0411"]:["Bytes","KB","MB","GB","TB"];if(0===a)return`0 ${h[1]}`;const l=parseInt(Math.floor(Math.log(a)/Math.log(1024)).toString(),10);return 0===l?`${a} ${h[l]}`:`${(a/1024**l).toFixed(1)} ${h[l]}`}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"formatFileSize",type:i,pure:!0})}return i})()},79359:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>e});var n=t(94650);let e=(()=>{class i{transform(a,u="_blank"){return a&&(a||"").replace(/([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi,function(h,l,m){let x=m;return x.match("^https?://")||(x="http://"+x),l+'<a href="'+x+'" target="'+u+'">'+m+"</a>"})}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"hyperlink",type:i,pure:!0})}return i})()},93412:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>e});var n=t(94650);let e=(()=>{class i{transform(a,u=40){return a&&(a.length>u?a=`${a.substr(0,u)}...`:a.substr(0,u),a)}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"maxStringLength",type:i,pure:!0})}return i})()},23230:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>d});var n=t(10083),e=t(94650),i=t(16611);let d=(()=>{class a{constructor(h){this.translateService=h,this.fieldConfig=(0,n.KM)(this.translateService).find(l=>"paymentMark"===l.field.name)}transform(h){if(this.fieldConfig){const l=this.fieldConfig.select.items.find(m=>m.value===h);return l?l.caption:h}return h}static#e=this.\u0275fac=function(l){return new(l||a)(e.\u0275\u0275directiveInject(i.D7,16))};static#t=this.\u0275pipe=e.\u0275\u0275definePipe({name:"pay_direction",type:a,pure:!0})}return a})()},13380:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>e});var n=t(94650);let e=(()=>{class i{transform(a,u){return a?(a=a.replace(/[^\d\+]/g,""),u&&a.slice(0,2)!==u&&(a=u+a),`${a.slice(0,2)} (${a.slice(2,5)}) ${a.slice(5,8)}-${a.slice(8,10)}-${a.slice(10,12)}`):""}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"phone_format",type:i,pure:!0})}return i})()},37843:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>e});var n=t(94650);let e=(()=>{class i{transform(a){return a&&a.replace(/(\d)(\d\d\d)(\d\d\d)(\d\d)(\d\d)/,"$1 $2 $3 $4 $5")}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"phone_number",type:i,pure:!0})}return i})()},36561:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>X});var n=t(36895),F=(t(91697),t(28121),t(13380),t(6128),t(31833),t(55298),t(66439),t(61817),t(67821),t(27760),t(95495),t(44509),t(98504),t(4610),t(79359),t(93412),t(23230),t(37843),t(23962),t(18590),t(94650));let X=(()=>{class p{static#e=this.\u0275fac=function(R){return new(R||p)};static#t=this.\u0275mod=F.\u0275\u0275defineNgModule({type:p});static#n=this.\u0275inj=F.\u0275\u0275defineInjector({imports:[n.ez]})}return p})()},23962:(Ee,Q,t)=>{"use strict";t.d(Q,{u:()=>i});var n=t(36895),e=t(94650);let i=(()=>{class d{transform(u){return new n.Gx(new n.yn(u))}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275pipe=e.\u0275\u0275definePipe({name:"pluralLang",type:d,pure:!0})}return d})()},18590:(Ee,Q,t)=>{"use strict";t.d(Q,{M:()=>i});var n=t(94650),e=t(11481);let i=(()=>{class d{constructor(u){this.sanitizer=u}transform(u){return this.sanitizer.bypassSecurityTrustResourceUrl(u)}static#e=this.\u0275fac=function(h){return new(h||d)(n.\u0275\u0275directiveInject(e.DomSanitizer,16))};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"safelink",type:d,pure:!0})}return d})()},6128:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>e});var n=t(94650);let e=(()=>{class i{transform(a){return"true"===a}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"toBoolean",type:i,pure:!0})}return i})()},31833:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>e});var n=t(94650);let e=(()=>{class i{transform(a,u){return a?18===a.length?`${a.slice(0,8)}/${a.slice(8,12)}/${a.slice(12,16)}/${a.slice(16,17)}/${a.slice(17,18)}`:a:""}static#e=this.\u0275fac=function(u){return new(u||i)};static#t=this.\u0275pipe=n.\u0275\u0275definePipe({name:"unk",type:i,pure:!0})}return i})()},54215:(Ee,Q,t)=>{"use strict";t.d(Q,{m:()=>_i});var n=t(98184),e=t(36895),i=t(24006),d=t(8277),a=t(3238),u=t(99602),h=t(90782),l=t(97392),m=t(94650);let C=(()=>{class ci{}return ci.\u0275fac=function(li){return new(li||ci)},ci.\u0275mod=m.\u0275\u0275defineNgModule({type:ci}),ci.\u0275inj=m.\u0275\u0275defineInjector({imports:[a.si,a.BQ,a.BQ]}),ci})();var T=t(29203),j=t(83026),I=t(10266),F=t(44180),z=t(18646),X=t(52523),p=t(80722),P=t(16611),E=t(59541),R=t(88458),ne=t(75748),G=t(62801),ce=t(79e3),xe=t(52869),Ge=(t(64481),t(4859));let ct=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[e.ez,Ge.ot]})}return ci})();var pe=t(15731),Ce=t(67255),U=t(55278),oe=(t(49211),t(30334),t(48802)),Pe=t(59848),Ie=t(84005),pt=t(38360),Ht=t(78895),Wt=t(48038);let Xe=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[e.ez,P.qw,pt.I,Ht.q,Wt.Y]})}return ci})();var Qe=t(53305),Yt=(t(43805),t(27382),t(95682),t(93379),t(48872));t(70234);var wt=t(42887),xn=(t(82741),t(15654),t(88279),t(91762)),bn=t(54474);let hn=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[pt.I,e.ez,l.Ps,bn.g,P.qw,Qe.P,Ht.q,xn.y]})}return ci})();t(89258);var In=t(94611),Dn=t(27719),Tn=t(74471),Yn=(t(56470),t(57639));let cn=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[e.ez]})}return ci})(),Nn=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[e.ez,F.Bz,P.qw,l.Ps,cn,I.AV]})}return ci})();t(76797),t(48041);var Wn=t(9007),rn=t(88210),Sn=t(87569);t(15644);var je=t(34982),sn=(t(38981),t(20134),t(30148),t(1830),t(91297),t(37185),t(59042),t(99379),t(67469),t(46884)),Qn=(t(43679),t(97582)),pi=t(32076),Ei=t(24351),ki=t(39646),Co=t(91005),xo=t(14228),no=t(55324);function Qo(ci,Ui){if(1&ci&&(m.\u0275\u0275elementStart(0,"div",10),m.\u0275\u0275text(1),m.\u0275\u0275elementEnd()),2&ci){const li=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",li.dateCapture," ")}}function Mo(ci,Ui){if(1&ci&&(m.\u0275\u0275elementStart(0,"div",10),m.\u0275\u0275text(1),m.\u0275\u0275pipe(2,"date"),m.\u0275\u0275elementEnd()),2&ci){const li=m.\u0275\u0275nextContext().$implicit,vi=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",m.\u0275\u0275pipeBind4(2,1,li.date,"dd MMMM yyyy",null,vi.lang)," ")}}function po(ci,Ui){if(1&ci){const li=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"li",11)(1,"app-operation",12),m.\u0275\u0275listener("infoToggled",function(Zn){m.\u0275\u0275restoreView(li);const gn=m.\u0275\u0275nextContext(3);return m.\u0275\u0275resetView(gn.operationToggled(Zn))}),m.\u0275\u0275elementEnd()()}if(2&ci){const li=Ui.$implicit,vi=Ui.index,Zn=m.\u0275\u0275nextContext(3);m.\u0275\u0275attribute("data-qa","1657800538951"+vi),m.\u0275\u0275advance(1),m.\u0275\u0275property("config",Zn.operationsConfig)("operation",li)}}function Io(ci,Ui){if(1&ci&&(m.\u0275\u0275elementStart(0,"li",5)(1,"div",6),m.\u0275\u0275template(2,Qo,2,1,"div",7),m.\u0275\u0275template(3,Mo,3,6,"div",7),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(4,"ul",8),m.\u0275\u0275template(5,po,2,3,"li",9),m.\u0275\u0275elementEnd()()),2&ci){const li=Ui.$implicit;m.\u0275\u0275attribute("data-qa","1657800486961"+Ui.index),m.\u0275\u0275advance(2),m.\u0275\u0275property("ngIf",li.dateCapture),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",!li.dateCapture),m.\u0275\u0275advance(2),m.\u0275\u0275property("ngForOf",li.operations)}}function en(ci,Ui){if(1&ci&&(m.\u0275\u0275elementStart(0,"ul",3),m.\u0275\u0275template(1,Io,6,4,"li",4),m.\u0275\u0275elementEnd()),2&ci){const li=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",li.sortedOperationBlocks)}}function Hn(ci,Ui){if(1&ci&&(m.\u0275\u0275elementStart(0,"div",13),m.\u0275\u0275text(1),m.\u0275\u0275pipe(2,"translate"),m.\u0275\u0275elementEnd()),2&ci){const li=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",m.\u0275\u0275pipeBind2(2,1,li.notFoundText,li.lang)," ")}}class tt{constructor(Ui,li){this.operationService=Ui,this.cdr=li,this.allowOpenMoreThenOne=!1,this.notFoundText="Operations not found",this.operationBlocks=[]}get operations(){return this._operations}set operations(Ui){this._operations=Ui,this.makeOperationBlocks()}get sortedOperationBlocks(){return this.sortingBlocksFunction?this.operationBlocks.sort(this.sortingBlocksFunction):this.operationBlocks}makeOperationBlocks(){this.operationBlocks=[],this.operations.forEach(Ui=>{const li=this.operationBlocks.find(vi=>vi.date===Ui.date);li?li.operations.push(Ui):this.operationBlocks.push({date:Ui.date,operations:[Ui]})}),this.sortingFns&&this.sortingFns.forEach(Ui=>{const li=this.operationBlocks.map(vi=>(vi.operations.sort(Ui),vi));this.operationBlocks=li.slice(0,10),this.renderBlocksSub&&this.renderBlocksSub.unsubscribe(),this.renderBlocksSub=(0,pi.D)(li.slice(10)).pipe((0,Ei.b)(vi=>(0,ki.of)(vi).pipe((0,Co.g)(1)))).subscribe(vi=>{this.operationBlocks.push(vi),this.operationBlocks.length%10==0&&this.cdr.detectChanges()},null,()=>{this.cdr.detectChanges()})})}operationToggled(Ui){if(this.allowOpenMoreThenOne)return;const li=this.operations.find(vi=>vi!==Ui&&vi.isOpen);li&&(li.isOpen=!1),this.operationService.detectChanges$.next(!0)}ngOnInit(){}ngOnDestroy(){this.renderBlocksSub&&this.renderBlocksSub.unsubscribe()}static#e=this.\u0275fac=function(li){return new(li||tt)(m.\u0275\u0275directiveInject(xo.f),m.\u0275\u0275directiveInject(m.ChangeDetectorRef))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:tt,selectors:[["app-operation-list"]],inputs:{operationsConfig:"operationsConfig",allowOpenMoreThenOne:"allowOpenMoreThenOne",sortingFns:"sortingFns",sortingBlocksFunction:"sortingBlocksFunction",notFoundText:"notFoundText",operations:"operations"},decls:3,vars:2,consts:[["data-qa","1657800452569",1,"operation-list"],["class","operation-list__blocks","data-qa","1657800458095",4,"ngIf"],["class","operation-list__empty","data-qa","1662993958",4,"ngIf"],["data-qa","1657800458095",1,"operation-list__blocks"],["class","operation-list__block",4,"ngFor","ngForOf"],[1,"operation-list__block"],[1,"operation-list__date-line"],["class","operation-list__date",4,"ngIf"],["data-qa","1657800515753",1,"operation-list__operations"],["class","operation-list__operation",4,"ngFor","ngForOf"],[1,"operation-list__date"],[1,"operation-list__operation"],["data-qa","1657800551645",3,"config","operation","infoToggled"],["data-qa","1662993958",1,"operation-list__empty"]],template:function(li,vi){1&li&&(m.\u0275\u0275elementStart(0,"div",0),m.\u0275\u0275template(1,en,2,1,"ul",1),m.\u0275\u0275template(2,Hn,3,4,"div",2),m.\u0275\u0275elementEnd()),2&li&&(m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",vi.operationBlocks.length>0),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",0===vi.operationBlocks.length))},dependencies:[e.sg,e.O5,no.i,P.X$,e.uU],styles:['@charset "UTF-8";.operation-list__date-line[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:13px 20px 12px;font-size:18px;line-height:normal;color:#88909b}.operation-list__operation[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.operation-list__operation[_ngcontent-%COMP%]:last-child{border-bottom:none}.operation-list__empty[_ngcontent-%COMP%]{text-align:center;color:#444;margin:122px auto;font-weight:400;font-size:20px;line-height:27px}'],changeDetection:0})}(0,Qn.gn)([(0,P.SQ)()],tt.prototype,"lang",void 0),t(20988);var De=t(93555),Me=(t(94015),t(62653),t(63978)),ut=(t(85369),t(66832));let ue=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[e.ez]})}return ci})();var et=t(36561);let At=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[e.ez,cn,l.Ps,Ht.q,P.qw,I.AV,et.D]})}return ci})();t(15693);var bt=t(76264),Le=t(99762),Pt=t(61817),dn=t(44509),St=t(98504),jt=t(4610);t(38649),t(57762),t(74607),t(83814);const Ot={parse:{dateInput:"L"},display:{dateInput:"L",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Xn=[Wn.Z,u.FA,G.k,ut.C,Pe.R,T.x4,a.XK,bt.o,Wt.Y,j.Nn,P.qw,sn.q,Yn.n,De.d,Ht.q,Sn.o,Yt.C,pt.I,bn.g,Xe,Qe.P,et.D,Me.A,Ie.n,ce.P,n.U8,hn,R.Y,ne.C,Ce.P,pe.I,X.g,Nn,cn,At,ue,z.Y];let _i=(()=>{class ci{static#e=this.\u0275fac=function(vi){return new(vi||ci)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:ci});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({providers:[{provide:a.Ad,useValue:"ru-RU"},{provide:a._A,useClass:d.t7,deps:[a.Ad]},{provide:a.sG,useValue:Ot},dn.G,St.H,In.y,oe.v,Pt.e,jt.x],imports:[Xn,e.ez,xe.E,i.FormsModule,E.vQ,i.ReactiveFormsModule,F.Bz,Le.N,Ie.n,h.N6,Dn.n,Tn.h,rn.S,je.i,C,I.AV,ct,l.Ps,U.V,p.E,wt.Z,Wn.Z,u.FA,G.k,ut.C,Pe.R,T.x4,a.XK,bt.o,Wt.Y,j.Nn,P.qw,sn.q,Yn.n,De.d,Ht.q,Sn.o,Yt.C,pt.I,bn.g,Xe,Qe.P,et.D,Me.A,Ie.n,ce.P,n.U8,hn,R.Y,ne.C,Ce.P,pe.I,X.g,Nn,cn,At,ue,z.Y]})}return ci})()},38649:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>p});var n=t(77579),e=t(62843),i=t(82722),d=t(70262),a=t(63900),u=t(94650),h=t(37601),l=t(44180),m=t(39486),x=t(29198),O=t(92008),L=t(9149),w=t(11260),B=t(73040),_=t(36895),y=t(10266),$=t(93379);function C(P,E){if(1&P){const R=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"span",6),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(R);const G=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(G.userDataService.sidebarOpen=!G.userDataService.sidebarOpen)}),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()}if(2&P){const R=E.ngIf;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate3(" ",null==R?null:R.surname," ",null==R?null:R.name," ",null==R?null:R.patronymic," ")}}function T(P,E){if(1&P&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275template(1,C,2,3,"span",5),u.\u0275\u0275pipe(2,"async"),u.\u0275\u0275elementContainerEnd()),2&P){const R=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",u.\u0275\u0275pipeBind1(2,1,R.userDataService.employeeInfo$))}}function j(P,E){if(1&P&&(u.\u0275\u0275elementStart(0,"div",10),u.\u0275\u0275element(1,"app-svg-icon",11),u.\u0275\u0275elementEnd()),2&P){const R=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(1),u.\u0275\u0275property("fill","#080708")("svgClass",R.getArrowClasses(R.mobileRequisites))}}const I=function(P){return{"non-clickable":P}};function F(P,E){if(1&P){const R=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"div",7),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(R);const G=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(G.accordionToggle())}),u.\u0275\u0275elementStart(2,"div")(3,"div",8),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(5,j,2,2,"div",9),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}if(2&P){const R=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(6,I,R.numberOfCompanies<=1)),u.\u0275\u0275advance(2),u.\u0275\u0275property("matTooltipDisabled",(null==R.activeOrganization?null:R.activeOrganization.name.length)<31)("matTooltip",null==R.activeOrganization?null:R.activeOrganization.name),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate2(" ",null==R.activeOrganization?null:R.activeOrganization.ipType," ",null==R.activeOrganization?null:R.activeOrganization.name," "),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",R.numberOfCompanies>1)}}function z(P,E){if(1&P){const R=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",17),u.\u0275\u0275listener("click",function(){const ce=u.\u0275\u0275restoreView(R).$implicit,xe=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(xe.changeActiveOrganization(ce))}),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()}if(2&P){const R=E.$implicit;u.\u0275\u0275property("matTooltipDisabled",R.name.length<31)("matTooltip",R.name),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate2(" ",null==R?null:R.ipType," ",R.name," ")}}function X(P,E){if(1&P){const R=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"div",12),u.\u0275\u0275text(2,"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"div",13)(4,"app-input",14),u.\u0275\u0275listener("valueChange",function(G){u.\u0275\u0275restoreView(R);const ce=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ce.companiesSearch(G))}),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(5,"div",15),u.\u0275\u0275template(6,z,2,4,"div",16),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}if(2&P){const R=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275propertyInterpolate("placeholder","Search"),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",R.filteredOrganizations)}}let p=(()=>{class P{constructor(R,ne,G,ce,xe,we){this.userDataService=R,this.router=ne,this.productService=G,this.vedService=ce,this.appConfigService=xe,this.toastCustomService=we,this.companies$=this.userDataService.allCompanies$,this.activeOrganization=null,this.showOrganization=!1,this.organizations=[],this.filteredOrganizations=[],this.isShowAccordion=!0,this.numberOfCompanies=null,this.mobileRequisites=!1,this.destroy$=new n.x}ngOnInit(){this.getActiveOrganization()}getActiveOrganization(){this.companies$.pipe((0,i.R)(this.destroy$)).subscribe(R=>{this.activeOrganization=R.find(ne=>!0===ne.active),this.numberOfCompanies=R.length,this.organizations=R.filter(ne=>!0!==ne.active).sort((ne,G)=>ne.name.localeCompare(G.name)),this.filteredOrganizations=this.organizations,this.activeOrganization?.name&&(this.showOrganization=!0)})}companiesSearch(R){this.filteredOrganizations=R?this.organizations.filter(ne=>ne.name.toLowerCase().includes(R.toLowerCase())):this.organizations}accordionToggle(){this.numberOfCompanies>1&&(this.mobileRequisites=!this.mobileRequisites,this.isShowAccordion=!this.isShowAccordion,this.filteredOrganizations=this.organizations)}getArrowClasses(R){return R?"arrow-icon rotated":"arrow-icon"}changeActiveOrganization(R){const ne=this.activeOrganization;return null===this.activeOrganization||R.id!==this.activeOrganization.id?(this.toastCustomService.closeAllErrorToasts(),this.showOrganization=!1,this.userDataService.changeActiveOrganization(R).pipe((0,d.K)(G=>(this.toastCustomService.show("\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u043c\u0435\u043d\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438","error"),this.activeOrganization=ne,this.showOrganization=!0,(0,e._)(G.errorText))),(0,a.w)(()=>(this.productService.clearProducts(),this.productService.getProducts())),(0,a.w)(()=>(this.userDataService.activeOrganizationChanged$.next(ne?.id),this.userDataService.activeCompany$.next(null),this.appConfigService.getSettings$.next(null),this.router.navigate(["/"]),this.mobileRequisites=!1,this.userDataService.sidebarOpen=!1,this.vedService.clearContractList(),this.userDataService.getCompanyList(!0))),(0,a.w)(G=>this.userDataService.getClientInfoOrganization(!0)),(0,i.R)(this.destroy$)).subscribe()):null}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||P)(u.\u0275\u0275directiveInject(h.M),u.\u0275\u0275directiveInject(l.F0),u.\u0275\u0275directiveInject(m.su),u.\u0275\u0275directiveInject(x.$),u.\u0275\u0275directiveInject(O._),u.\u0275\u0275directiveInject(L.j))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:P,selectors:[["app-company"]],decls:6,vars:8,consts:[["data-qa","1657795779750",1,"company-name"],[1,"company-name__info"],[4,"appSkeleton","appSkeletonHeight","appSkeletonMargin"],[4,"appSkeleton","appSkeletonHeight"],[4,"ngIf"],["class","company-name__info__surname","data-qa","1657795811325",3,"click",4,"ngIf"],["data-qa","1657795811325",1,"company-name__info__surname",3,"click"],[1,"company-name__block",3,"ngClass","click"],["data-qa","1657795816111",1,"company-name__text",3,"matTooltipDisabled","matTooltip"],["class","company-name__arrow","data-qa","1657795786847",4,"ngIf"],["data-qa","1657795786847",1,"company-name__arrow"],["icon","arrow",3,"fill","svgClass"],[1,"company-list__item","company-list__item_header"],[1,"search"],["inputClass","normal no-description  width-100",3,"placeholder","valueChange"],["data-qa","1657795793791",1,"company-list"],["class","company-list__item","data-qa","1657795797449",3,"matTooltipDisabled","matTooltip","click",4,"ngFor","ngForOf"],["data-qa","1657795797449",1,"company-list__item",3,"matTooltipDisabled","matTooltip","click"]],template:function(ne,G){1&ne&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1),u.\u0275\u0275template(2,T,3,3,"ng-container",2),u.\u0275\u0275pipe(3,"async"),u.\u0275\u0275template(4,F,6,8,"ng-container",3),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(5,X,7,2,"ng-container",4)),2&ne&&(u.\u0275\u0275advance(2),u.\u0275\u0275property("appSkeleton",null===u.\u0275\u0275pipeBind1(3,6,G.userDataService.employeeInfo$))("appSkeletonHeight","20px")("appSkeletonMargin","5px 0 0 0"),u.\u0275\u0275advance(2),u.\u0275\u0275property("appSkeleton",!G.showOrganization)("appSkeletonHeight","20px"),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",G.mobileRequisites))},dependencies:[w.b,B.a,_.mk,_.sg,_.O5,y.gM,$.e,_.Ov],styles:['@charset "UTF-8";.company-name[_ngcontent-%COMP%]{color:#080708;padding:20px 24px;font-weight:600;display:flex;justify-content:space-between;font-size:14px;border-bottom:1px solid #f1f2f2}.company-name__block[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:280px;cursor:pointer;height:19px}.company-name__block.non-clickable[_ngcontent-%COMP%]{cursor:default}.company-name__text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}.company-name__arrow[_ngcontent-%COMP%]{margin:auto 0;width:24px;height:24px;cursor:pointer;padding:7px}.company-name__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:250px}.company-name__info__surname[_ngcontent-%COMP%]{color:#88909b;white-space:nowrap;font-weight:400;padding-bottom:8px}.company-list[_ngcontent-%COMP%]{flex-direction:column;position:absolute;z-index:2;width:100%;background-color:#fff;box-shadow:0 10px 20px #00000021;height:calc(100vh - 205px);overflow:auto;scrollbar-width:none}.company-list__item[_ngcontent-%COMP%]{padding:15px 25px;color:#000;font-weight:400;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.company-list__item_header[_ngcontent-%COMP%]{color:#88909b;font-weight:400;font-size:16px;background-color:#f1f2f2;padding:12px 24px}.company-list__item[_ngcontent-%COMP%]:hover, .company-list__item.active[_ngcontent-%COMP%]{background-color:#f1f2f2;cursor:pointer}.company-list__item[_ngcontent-%COMP%]:last-child{margin-bottom:10px}.company-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.search[_ngcontent-%COMP%]{padding:20px 25px 10px}']})}return P})()},57762:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>ne});var n=t(97582),e=t(16611),i=t(77579),d=t(8226),a=t(72695),u=t(54),h=(()=>{return(G=h||(h={})).CreatePayment="create_payment",G.CreatePaymentCurr="create_payment_curr",G.CreatePaymentBp="create_payment_bp",G.BalanceTransfer="create_payment_transfer_rests",G.Rename="rename",G.CopyRequisites="copy_requisites",G.ExportRequisitesToPdf="export_requisites_to_pdf",G.MoveToCardIndex="move_to_card_index",G.SmsInfo="sms_info",G.Ordering="ordering",G.OrderingInformation="ordering_information",G.Tariff="tariff",h;var G})();const l=[{name:h.CreatePayment,matIcon:"add",description:"New payment"},{name:h.CreatePaymentCurr,matIcon:"add",description:"New payment"},{name:h.CreatePaymentBp,matIcon:"add",description:"RUR payment with CTI"},{name:h.BalanceTransfer,matIcon:"sync_alt",description:"Transfer of balances"},{name:h.Rename,matIcon:"edit",matStyleOutlined:!0,description:"Rename"},{name:h.CopyRequisites,matIcon:"content_copy",matStyleOutlined:!0,description:"Copy requisites"},{name:h.ExportRequisitesToPdf,svgIcon:"export",description:"Export requisites to PDF"},{name:h.MoveToCardIndex,svgIcon:"quick_reference",description:"Card file documents"},{name:h.SmsInfo,svgIcon:"sms",matStyleOutlined:!0,description:"SMS - information"},{name:h.Ordering,matIcon:"format_list_bulleted",matStyleOutlined:!0,description:"Extract"},{name:h.OrderingInformation,svgIcon:"pdf",description:"Get reference"},{name:h.Tariff,svgIcon:"article_shortcut",description:"Move to tariff"}];var m=t(94650),x=t(37601),O=t(39486),L=t(15644),w=t(38101),B=t(40929),_=t(44180),y=t(24201),$=t(36895),C=t(97392),T=t(44509),j=t(98504);function I(G,ce){1&G&&m.\u0275\u0275element(0,"div",11)}function F(G,ce){1&G&&m.\u0275\u0275element(0,"div",12)}function z(G,ce){if(1&G&&(m.\u0275\u0275element(0,"div",13),m.\u0275\u0275pipe(1,"translate")),2&G){const xe=m.\u0275\u0275nextContext();m.\u0275\u0275propertyInterpolate("title",m.\u0275\u0275pipeBind2(1,1,"Account to close",xe.lang))}}function X(G,ce){if(1&G&&(m.\u0275\u0275elementStart(0,"div")(1,"mat-icon"),m.\u0275\u0275text(2,"block"),m.\u0275\u0275elementEnd()()),2&G){const xe=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275classMap("product-item__icon blocked "+(xe.active?"active":""))}}function p(G,ce){if(1&G&&(m.\u0275\u0275elementStart(0,"div"),m.\u0275\u0275element(1,"mat-icon",16),m.\u0275\u0275elementEnd()),2&G){const xe=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(1),m.\u0275\u0275classMap("product-item__icon suspended  "+(xe.active?"active":""))}}function P(G,ce){if(1&G&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275element(1,"span",14),m.\u0275\u0275pipe(2,"appCurrency"),m.\u0275\u0275elementStart(3,"span",15),m.\u0275\u0275pipe(4,"async"),m.\u0275\u0275text(5),m.\u0275\u0275pipe(6,"currencySymbol"),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(7,p,2,3,"div",6),m.\u0275\u0275elementContainerEnd()),2&G){const xe=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275property("innerHTML",m.\u0275\u0275pipeBind1(2,5,xe.product.balance),m.\u0275\u0275sanitizeHtml),m.\u0275\u0275advance(2),m.\u0275\u0275classProp("my-active",xe.active||m.\u0275\u0275pipeBind1(4,7,xe.productsService.isSingleAccount$)),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate1(" ",m.\u0275\u0275pipeBind1(6,9,xe.product.currency),""),m.\u0275\u0275advance(2),m.\u0275\u0275property("ngIf","card"===xe.product.productType)}}function E(G,ce){if(1&G){const xe=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"app-menu-select",17),m.\u0275\u0275listener("changeEvent",function(Ge){m.\u0275\u0275restoreView(xe);const ct=m.\u0275\u0275nextContext();return m.\u0275\u0275resetView(ct.onClickAction(Ge))}),m.\u0275\u0275elementStart(1,"div",18),m.\u0275\u0275element(2,"mat-icon",19),m.\u0275\u0275elementEnd()()}if(2&G){const xe=m.\u0275\u0275nextContext();m.\u0275\u0275property("icon",!0)("items",xe.actions)}}function R(G,ce){if(1&G&&m.\u0275\u0275element(0,"span",14),2&G){const xe=m.\u0275\u0275nextContext();m.\u0275\u0275property("innerHTML",xe.product.number,m.\u0275\u0275sanitizeHtml)}}class ne{constructor(ce,xe,we,Ge,ct,pe,Ce){this.userDataService=ce,this.productsService=xe,this.configUtilService=we,this.modalService=Ge,this.translation=ct,this.documentService=pe,this.router=Ce,this._destroyed$=new i.x,this.closedAccountSubtype=d._7,this.actions=[]}getNumber(){"card"===this.product.productType?(this.product.info=`${this.product.number} ${this.configUtilService.formatDateString(this.product.beginDate)}`,this.number=this.product.cardNumber):this.number=this.product.number}initActions(){this.actions=[],this.configUtilService.getArray(this.product.actions).forEach(xe=>{const we=l.find(Ge=>Ge.name===xe);we&&this.actions.push(we)})}newPayment(ce){let xe;switch(ce){case h.CreatePaymentCurr:xe="ved/transfer-curr";break;case h.CreatePaymentBp:xe="transfer-rur-cti";break;case h.CreatePayment:xe="transfer-rur";break;case h.BalanceTransfer:xe="balance-transfer"}this.userDataService.sidebarOpen=!this.userDataService.sidebarOpen,this.router.navigate([xe],{queryParams:{accountId:this.product.id}})}renameProduct(){this.productsService.editProductAlias$.next(!0),this.userDataService.sidebarOpen=!this.userDataService.sidebarOpen,this.router.navigate([`/product/${this.product.id}`])}copyRequisites(){this.userDataService.getClientInfoOrganization().subscribe(ce=>{let we=(0,a.V)(this.product,ce).map(Ge=>`${this.translation.translate(Ge.title)} ${Ge.value}`).join("<br>");if(this.product.swiftBankingInformation&&this.product.swiftBankingInformation.corrBankInfo){const Ge=[`<tr><td>${this.translation.translate("Name of Correspondent Bank")}</td>`,`<td>${this.translation.translate("SWIFT code")}</td>`,`<td>${this.translation.translate("Account Bank \u2116")}</td></tr>`],ct=this.product.swiftBankingInformation.corrBankInfo.map(pe=>`<tr><td>${pe.corrBankName}</td><td>${pe.corrBankSwift}</td><td>${pe.corrBankAccount}</td></tr>`);we+=`<br><br>${this.translation.translate("Corr bank list")} ${this.product.currency}. ${this.translation.translate("You can use any of the list")}:`,we+=`<br><table>${Ge.join("")}${ct.join("")}</table>`}this.configUtilService.copyHtmlToClipboard(we)})}exportToPdf(){this.documentService.getFile(`metinv/print/requisites_pdf?acc_id=${this.product.id}`).subscribe(()=>{this.isPdfExported=!0})}openExtractModal(){this.modalService.open(u.H,{inputs:{selectedProductId:this.product.id},overflow:"initial"})}goToCardIndex(){this.router.navigate([`/product/${this.product.id}`])}goToSmsInfo(){this.router.navigate(["sms-info"])}goToOrderingInformation(){this.router.navigate(["references"])}goToTariff(){this.router.navigate(["tarif"])}get isSbpAccount(){return"account"===this.product.productType&&this.product.subtype===d.hG&&this.product.number.toString().startsWith(d.fL)}ngOnInit(){this.getNumber(),this.initActions()}onClickAction(ce){switch(ce.name){case h.CreatePayment:case h.CreatePaymentCurr:case h.CreatePaymentBp:case h.BalanceTransfer:this.newPayment(ce.name);break;case h.Rename:this.renameProduct();break;case h.CopyRequisites:this.copyRequisites();break;case h.ExportRequisitesToPdf:this.exportToPdf();break;case h.MoveToCardIndex:this.goToCardIndex();break;case h.SmsInfo:this.goToSmsInfo();break;case h.Ordering:this.openExtractModal();break;case h.OrderingInformation:this.goToOrderingInformation();break;case h.Tariff:this.goToTariff()}}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}static#e=this.\u0275fac=function(xe){return new(xe||ne)(m.\u0275\u0275directiveInject(x.M),m.\u0275\u0275directiveInject(O.su),m.\u0275\u0275directiveInject(L.Pj),m.\u0275\u0275directiveInject(w.Z),m.\u0275\u0275directiveInject(e.D7),m.\u0275\u0275directiveInject(B.Z),m.\u0275\u0275directiveInject(_.F0))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:ne,selectors:[["app-product-item"]],inputs:{product:"product",active:"active"},decls:13,vars:8,consts:[[1,"product-item"],[1,"product-item__info-block"],[1,"card-number"],["class","card-balance",4,"ngIf"],["class","product-item__sign warning-icon",4,"ngIf"],["class","product-item__sign account-to-close-icon",3,"title",4,"ngIf"],[4,"ngIf"],[1,"my-currency"],[4,"ngIf","ngIfElse"],["backgroundClass","product-item__actions-background","class","product-item__actions-block",3,"icon","items","changeEvent",4,"ngIf"],["accNumber",""],[1,"card-balance"],[1,"product-item__sign","warning-icon"],[1,"product-item__sign","account-to-close-icon",3,"title"],[3,"innerHTML"],[1,"my-currency__currency"],["svgIcon","card_sidebar"],["backgroundClass","product-item__actions-background",1,"product-item__actions-block",3,"icon","items","changeEvent"],[1,"product-item__sign"],["svgIcon","dot-menu",1,"dots-icon"]],template:function(xe,we){if(1&xe&&(m.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),m.\u0275\u0275text(3),m.\u0275\u0275template(4,I,1,0,"div",3),m.\u0275\u0275template(5,F,1,0,"div",4),m.\u0275\u0275template(6,z,2,4,"div",5),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(7,X,3,3,"div",6),m.\u0275\u0275elementStart(8,"div",7),m.\u0275\u0275template(9,P,8,11,"ng-container",8),m.\u0275\u0275elementEnd()(),m.\u0275\u0275template(10,E,3,2,"app-menu-select",9),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(11,R,1,1,"ng-template",null,10,m.\u0275\u0275templateRefExtractor)),2&xe){const Ge=m.\u0275\u0275reference(12);m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate1(" ",we.product.alias?we.product.alias:we.product.info," "),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf","7"===we.product.subtype),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",we.product.stays&&"block"!==we.product.status),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",we.product.subtype===we.closedAccountSubtype),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf","block"===we.product.status),m.\u0275\u0275advance(2),m.\u0275\u0275property("ngIf",!we.isSbpAccount)("ngIfElse",Ge),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",we.actions.length)}},dependencies:[y.r,$.O5,C.Hw,e.X$,T.G,j.H,$.Ov],styles:['@charset "UTF-8";.my-currency[_ngcontent-%COMP%]{font-size:20px;font-weight:400;font-family:Source Sans Pro;letter-spacing:.03em;line-height:25px}.my-currency__currency[_ngcontent-%COMP%]{color:#88909b}.card-number[_ngcontent-%COMP%]{font-size:16px;font-family:Open Sans,sans-serif;font-weight:400;line-height:20px;max-width:245px;display:flex;position:relative;margin-bottom:4px}.my-active[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .my-active[_ngcontent-%COMP%]:before, .my-active[_ngcontent-%COMP%]:after{background-color:#fff!important}.product-item__sign[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;transform:translateY(2px)}[_nghost-%COMP%]     .product-item__icon{height:20px;width:20px;font-size:20px}[_nghost-%COMP%]     .product-item__icon.blocked{fill:#d9291e;color:#d9291e}[_nghost-%COMP%]     .product-item__icon.suspended{fill:#2f54eb;color:#2f54eb}[_nghost-%COMP%]     .product-item__icon.active{fill:#fff}.product-item[_ngcontent-%COMP%]{padding:0 10px 0 19px;display:flex;justify-content:space-between;align-items:center}.product-item__info-block[_ngcontent-%COMP%]{position:relative}.product-item__info-block[_ngcontent-%COMP%]   .linked-cards[_ngcontent-%COMP%]{color:#284681;display:inline-block;margin-left:5px;vertical-align:middle;line-height:100%}.product-item__info-block[_ngcontent-%COMP%]   .linked-cards[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{display:inline-block}.product-item__info-block[_ngcontent-%COMP%]   .linked-cards[_ngcontent-%COMP%]     .linked{width:20px;height:20px;fill:#284681}.product-item__info-block[_ngcontent-%COMP%]   .linked-cards[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;margin-left:3px}.product-item__info-block[_ngcontent-%COMP%]   .linked-cards.active[_ngcontent-%COMP%]{color:#fff}.product-item__info-block[_ngcontent-%COMP%]   .linked-cards.active[_ngcontent-%COMP%]     .linked{fill:#fff}.product-item__actions-block[_ngcontent-%COMP%]{height:45px;cursor:pointer}[_nghost-%COMP%]     .product-item__actions-background{top:100%!important}.card-balance[_ngcontent-%COMP%]{background:url(balance-card.bdc87e6017e0878f.svg) no-repeat;width:20px;height:20px;margin-left:4px;margin-top:-2px}.warning-icon[_ngcontent-%COMP%]{background:url(warning.8b0fd70711b5bb20.svg) no-repeat;width:20px;height:20px;margin-left:4px;background-size:18px 18px;margin-top:-3px}.account-to-close-icon[_ngcontent-%COMP%]{background:url(account-to-close.74b8ebf294040cee.png) no-repeat;width:20px;height:20px;margin-left:8px;background-size:18px 18px;margin-top:-1px}.partner-case-icon[_ngcontent-%COMP%]{background:url(case.1d3652cd79119759.svg) no-repeat;width:20px;height:20px;margin-left:8px;background-size:18px 18px;margin-top:-1px}.dots-icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-left:10px}']})}(0,n.gn)([(0,e.SQ)()],ne.prototype,"lang",void 0)},74607:(Ee,Q,t)=>{"use strict";t.d(Q,{X:()=>Wt});var n=t(97582),e=t(16611),i=t(39300),d=t(82722),a=t(54004),u=t(82007),h=t(8226),l=t(94650),m=t(37601),x=t(75885),O=t(15644),L=t(39486),w=t(44180),B=t(92008),_=t(502),y=t(21798),$=t(72654),C=t(36895),T=t(97392),j=t(42887),I=t(57762),F=t(93379),z=t(6128),X=t(44509),p=t(91697);function P(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementStart(0,"div",12)(1,"div",13),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"balance"),l.\u0275\u0275elementStart(4,"span",14),l.\u0275\u0275text(5),l.\u0275\u0275pipe(6,"currencySymbol"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(7,"div",15),l.\u0275\u0275text(8),l.\u0275\u0275pipe(9,"date"),l.\u0275\u0275elementEnd()()),2&Xe){const Be=l.\u0275\u0275nextContext(4);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(3,3,Be.ecomData.data.amount)," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(6,5,Be.ecomData.data.currencyCode)),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u043d\u0430 ",l.\u0275\u0275pipeBind2(9,7,Be.ecomData.data.actdate,"dd.MM.yyyy HH:mm")," \u041c\u0421\u041a ")}}function E(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementStart(0,"div",12)(1,"div",15),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd()()),2&Xe){const Be=l.\u0275\u0275nextContext(4);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(3,1,"No data default",Be.lang)," ")}}function R(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementStart(0,"mat-icon",16),l.\u0275\u0275text(1,"info"),l.\u0275\u0275elementEnd()),2&Xe){const Be=l.\u0275\u0275nextContext(4);l.\u0275\u0275property("appTooltip",Be.ecomData.data.info)("svgIcon","material-icons-outlined")}}function ne(Xe,Qe){if(1&Xe){const Be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"app-accordion",7),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275elementStart(2,"div",8),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(Be);const lt=l.\u0275\u0275nextContext(3);return l.\u0275\u0275resetView(lt.closeSidebar())}),l.\u0275\u0275elementStart(3,"div",9),l.\u0275\u0275template(4,P,10,10,"div",10),l.\u0275\u0275template(5,E,4,4,"div",10),l.\u0275\u0275template(6,R,2,2,"mat-icon",11),l.\u0275\u0275elementEnd()()()}if(2&Xe){const Be=l.\u0275\u0275nextContext(3);l.\u0275\u0275property("hideArrow",!0)("title",l.\u0275\u0275pipeBind2(1,5,"Average ecom",Be.lang)),l.\u0275\u0275advance(4),l.\u0275\u0275property("ngIf",Be.ecomData.data.amount&&Be.ecomData.data.actdate),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!Be.ecomData.data.amount||!Be.ecomData.data.actdate),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Be.ecomData.data.info)}}function G(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementStart(0,"div",27),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Xe){const Be=l.\u0275\u0275nextContext(4);l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" \u043d\u043e\u0432\u044b\u0435 ",Be.cardIndexCounts.unread," ")}}function ce(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementStart(0,"div",28),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Xe){const Be=l.\u0275\u0275nextContext(4);l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",null==Be.cardIndexCounts?null:Be.cardIndexCounts.total," ")}}const xe=function(Xe){return{red:Xe}};function we(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementStart(0,"app-accordion",17),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275elementStart(2,"div",18)(3,"div",19)(4,"div",20)(5,"div",21),l.\u0275\u0275text(6,"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,G,2,1,"div",22),l.\u0275\u0275template(8,ce,2,1,"ng-template",null,23,l.\u0275\u0275templateRefExtractor),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(10,"div",20)(11,"div",21),l.\u0275\u0275text(12,"\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u0438"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(13,"div",21),l.\u0275\u0275text(14),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(15,"div",20)(16,"div",21),l.\u0275\u0275text(17,"\u041d\u0430 \u0430\u043a\u0446\u0435\u043f\u0442"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(18,"div",24),l.\u0275\u0275text(19),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(20,"a",25)(21,"mat-icon",26),l.\u0275\u0275text(22,"arrow_forward_ios"),l.\u0275\u0275elementEnd()()()()),2&Xe){const Be=l.\u0275\u0275reference(9),at=l.\u0275\u0275nextContext(3);l.\u0275\u0275property("hideArrow",!0)("title",l.\u0275\u0275pipeBind2(1,7,"Card file",at.lang)),l.\u0275\u0275advance(7),l.\u0275\u0275property("ngIf",(null==at.cardIndexCounts?null:at.cardIndexCounts.unread)>0)("ngIfElse",Be),l.\u0275\u0275advance(7),l.\u0275\u0275textInterpolate1("",at.cardIndexCounts.commissionAmount," \u20bd"),l.\u0275\u0275advance(4),l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction1(10,xe,at.cardIndexCounts.onAccept>0)),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(at.cardIndexCounts.onAccept)}}function Ge(Xe,Qe){if(1&Xe){const Be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"app-accordion",29),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275elementStart(2,"div",30),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(Be);const lt=l.\u0275\u0275nextContext(3);return l.\u0275\u0275resetView(lt.closeSidebar())}),l.\u0275\u0275elementStart(3,"div",31)(4,"div",32),l.\u0275\u0275text(5),l.\u0275\u0275pipe(6,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(7,"mat-icon",26),l.\u0275\u0275text(8,"arrow_forward_ios"),l.\u0275\u0275elementEnd()()()()}if(2&Xe){const Be=l.\u0275\u0275nextContext(3);l.\u0275\u0275property("hideArrow",!0)("title",l.\u0275\u0275pipeBind2(1,3,"Balances",Be.lang)),l.\u0275\u0275advance(5),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(6,6,"Average balances",Be.lang)," ")}}function ct(Xe,Qe){if(1&Xe){const Be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",36),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(Be);const lt=l.\u0275\u0275nextContext().$implicit,Dt=l.\u0275\u0275nextContext(5);return l.\u0275\u0275resetView(Dt.setProduct(lt))}),l.\u0275\u0275element(1,"app-product-item",37),l.\u0275\u0275elementEnd()}if(2&Xe){const Be=l.\u0275\u0275nextContext(),at=Be.$implicit,lt=Be.index,Dt=l.\u0275\u0275nextContext(5);l.\u0275\u0275classProp("item-active",Dt.currentProductId===at.id)("item-closed",Dt.isClosedAccount(at)||Dt.isSbpAccount(at)),l.\u0275\u0275attribute("data-qa","1657795856330"+lt),l.\u0275\u0275advance(1),l.\u0275\u0275property("active",Dt.currentProductId===at.id)("product",at)}}function pe(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,ct,2,7,"div",35),l.\u0275\u0275pipe(2,"toBoolean"),l.\u0275\u0275elementContainerEnd()),2&Xe){const Be=Qe.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(2,1,Be.visible))}}function Ce(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementStart(0,"app-accordion",34),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275template(2,pe,3,3,"ng-container",5),l.\u0275\u0275elementEnd()),2&Xe){const Be=l.\u0275\u0275nextContext(),at=Be.$implicit,lt=Be.index,Dt=l.\u0275\u0275nextContext().ngIf,Yt=l.\u0275\u0275nextContext(2);l.\u0275\u0275propertyInterpolate("title",l.\u0275\u0275pipeBind2(1,5,at.key,Yt.lang)),l.\u0275\u0275property("cssClassHeader",at.cssClassHeader||"")("cssClassTitle",at.cssClassTitle||""),l.\u0275\u0275attribute("data-qa","1657795932747"+lt),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",Dt[at.key])}}function U(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,Ce,3,8,"app-accordion",33),l.\u0275\u0275elementContainerEnd()),2&Xe){const Be=Qe.$implicit,at=l.\u0275\u0275nextContext().ngIf;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",at[Be.key]&&at[Be.key].length>0)}}function H(Xe,Qe){if(1&Xe){const Be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"app-accordion",38),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275elementStart(2,"div",39),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(Be);const lt=l.\u0275\u0275nextContext(3);return l.\u0275\u0275resetView(lt.closeSidebar())}),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementStart(5,"div",40)(6,"mat-icon"),l.\u0275\u0275text(7,"add"),l.\u0275\u0275elementEnd()()()()}if(2&Xe){const Be=l.\u0275\u0275nextContext(3);l.\u0275\u0275property("hideArrow",!0)("title",l.\u0275\u0275pipeBind2(1,3,"Offers",Be.lang)),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(4,6,"New product",Be.lang)," ")}}function Z(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,ne,7,8,"app-accordion",2),l.\u0275\u0275template(2,we,23,12,"app-accordion",3),l.\u0275\u0275template(3,Ge,9,9,"app-accordion",4),l.\u0275\u0275template(4,U,2,1,"ng-container",5),l.\u0275\u0275template(5,H,8,9,"app-accordion",6),l.\u0275\u0275elementContainerEnd()),2&Xe){const Be=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",(null==Be.ecomData?null:Be.ecomData.available)&&Be.isShowEcom),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Be.isShowCardIndex),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Be.isShowAverageBalances),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",Be.productTypes),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Be.isShowNewProduct)}}function oe(Xe,Qe){if(1&Xe&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275template(1,Z,6,5,"ng-container",1),l.\u0275\u0275pipe(2,"async"),l.\u0275\u0275elementContainerEnd()),2&Xe){const Be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(2,1,Be.productsFiltered$))}}class Wt extends u.H{constructor(Qe,Be,at,lt,Dt,Yt,Tt,ot,Gt){super(),this.userDataService=Qe,this.lastOperationService=Be,this.configUtilService=at,this.productsService=lt,this.router=Dt,this.changeDetection=Yt,this.appConfigService=Tt,this.cardIndexService=ot,this.averageBalancesService=Gt,this.localProducts=null,this.showProducts=!1,this.isShowNewProduct=!1,this.isShowEcom=!1,this.isShowCardIndex=!1,this.isShowAverageBalances=!1,this.cardIndexCounts={commission:0,commissionAmount:0,commissionUnread:0,onAccept:0,total:0,unread:0},this._highlightingProducts=[],this.defaultProductTypes=[{key:"accounts"},{key:"cards"},{key:"deposits"},{key:"closedNovosibirskAccounts"}]}ngOnInit(){this.productTypes=[...this.defaultProductTypes],this.appConfigService.settings$.pipe((0,i.h)(Qe=>Qe.isLoaded),(0,d.R)(this.$unsubscribe)).subscribe(Qe=>{this._isServiceProductSetting=Qe.ulSettings["REQUEST/SERVICE_AND_PRODUCT"],this.isShowNewProduct=Qe.ulSettings["SERVICE_SECTIONS/PRODUCTS"],this.isShowEcom=Qe.ulSettings["OTHER/ECOM_BALANCE_VISIBLE"],this.isShowAverageBalances=Qe.averageBalancesBlocks?.atLeastOneBlockAvailable,this.isShowCardIndex=Qe.ulSettings["SERVICE_SECTIONS/CARD_INDEX"]}),this.products$.pipe((0,d.R)(this.$unsubscribe)).subscribe(Qe=>{this.localProducts=Qe,this.showProducts=!0}),this.lastOperationService.highlightingProducts$.pipe((0,d.R)(this.$unsubscribe),(0,a.U)(Qe=>this.configUtilService.getArray(Qe))).subscribe(Qe=>this._highlightingProducts=Qe),this.changeDetection.detectChanges(),this.productsService.currentProductId$.pipe((0,d.R)(this.$unsubscribe)).subscribe(Qe=>{this.currentProductId=Qe}),this.productsFiltered$=this.products$.pipe((0,a.U)(Qe=>{if(!Qe)return null;const Be=this.configUtilService.getArray(Qe.accounts||[]),at=Be.filter(Yt=>!Yt?.nameBankPartner),lt=this.preparePartnerAccounts(Be.filter(Yt=>Yt?.nameBankPartner)),Dt=Object.keys(lt);return this.productTypes=[...this.defaultProductTypes],Dt.forEach(Yt=>this.productTypes.push({key:Yt,cssClassHeader:"partners",cssClassTitle:"darker"})),{...Qe,accounts:at,...lt}})),this.cardIndexService.cardIndexCounters$.pipe((0,d.R)(this.$unsubscribe)).subscribe(Qe=>{Qe&&(this.cardIndexCounts={commission:Qe.commission,commissionAmount:Qe.commissionAmount,commissionUnread:Qe.commissionUnread,onAccept:Qe.onAccept,total:Qe.total,unread:Qe.unread})}),this.averageBalancesService.averageBalancesData$.subscribe(Qe=>{Qe&&(this.ecomData={available:Qe.ecom.available,data:Qe.ecom.data[0]})})}closeSidebar(){this.userDataService.sidebarOpen=!1}setProduct(Qe){this.isClosedAccount(Qe)||this.isSbpAccount(Qe)||this.productsService.isSingleAccount$.value||(this.userDataService.sidebarOpen=!this.userDataService.sidebarOpen,this.userDataService.currentProduct$.next(Qe),this.userDataService.cardFileInfo$.next(null),this.router.navigate([`/product/${Qe.id}`]),setTimeout(()=>{this.productsService.getProducts(!0).pipe((0,d.R)(this.$unsubscribe)).subscribe()}))}isClosedAccount(Qe){return Qe&&Qe.subtype&&Qe.subtype===h.IA}isSbpAccount(Qe){return Qe&&Qe.subtype&&Qe.subtype===h.hG&&Qe.number.toString().startsWith(h.fL)}preparePartnerAccounts(Qe){const Be={};return Qe.forEach(at=>{const lt=at?.nameBankPartner;Be[lt]?Be[lt].push(at):Be[lt]=[at]}),Be}static#e=this.\u0275fac=function(Be){return new(Be||Wt)(l.\u0275\u0275directiveInject(m.M),l.\u0275\u0275directiveInject(x.o),l.\u0275\u0275directiveInject(O.Pj),l.\u0275\u0275directiveInject(L.su),l.\u0275\u0275directiveInject(w.F0),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(B._),l.\u0275\u0275directiveInject(_.$),l.\u0275\u0275directiveInject(y.J))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Wt,selectors:[["app-product-list"]],inputs:{products$:"products$"},features:[l.\u0275\u0275InheritDefinitionFeature],decls:1,vars:5,consts:[[4,"appSkeleton","appSkeletonWidth","appSkeletonHeight","appSkeletonMargin","appSkeletonRepeat"],[4,"ngIf"],[3,"hideArrow","title",4,"ngIf"],["class","offers","cssClass","open-sans",3,"hideArrow","title",4,"ngIf"],["class","balances","cssClass","open-sans","data-qa","1657795878472",3,"hideArrow","title",4,"ngIf"],[4,"ngFor","ngForOf"],["class","offers","cssClass","open-sans","data-qa","1657795878472",3,"hideArrow","title",4,"ngIf"],[3,"hideArrow","title"],["routerLinkActive","item-active",1,"ecom-item",3,"click"],[1,"ecom-item-wrapper"],["class","ecom-item__title__wrapper",4,"ngIf"],["triangleSidePosition","middle","position","below","theme","dark","tooltipWidth","296px","class","ecom-item__icon","fontSet","material-icons-outlined",3,"appTooltip","svgIcon",4,"ngIf"],[1,"ecom-item__title__wrapper"],[1,"ecom-item__title"],[1,"ecom-item__icon-value"],[1,"ecom-item__description"],["triangleSidePosition","middle","position","below","theme","dark","tooltipWidth","296px","fontSet","material-icons-outlined",1,"ecom-item__icon",3,"appTooltip","svgIcon"],["cssClass","open-sans",1,"offers",3,"hideArrow","title"],[1,"card-index-wrapper"],[1,"info-card-index"],[1,"row-item-info"],[1,"text-row"],["class","counter-card-index unread",4,"ngIf","ngIfElse"],["totalCardIndex",""],[1,"counter-card-index",3,"ngClass"],["href","#","routerLink","/card-index"],[1,"balances-item__icon"],[1,"counter-card-index","unread"],[1,"counter-card-index"],["cssClass","open-sans","data-qa","1657795878472",1,"balances",3,"hideArrow","title"],["data-qa","1657795898936","routerLink","/average-balances","routerLinkActive","item-active",1,"balances-item",3,"click"],[1,"balances-item-wrapper"],[1,"balances-item__title"],[3,"cssClassHeader","cssClassTitle","title",4,"ngIf"],[3,"cssClassHeader","cssClassTitle","title"],["class","item",3,"item-active","item-closed","click",4,"ngIf"],[1,"item",3,"click"],[1,"item__product",3,"active","product"],["cssClass","open-sans","data-qa","1657795878472",1,"offers",3,"hideArrow","title"],["data-qa","1657795898936","routerLink","/new",1,"offers__item",3,"click"],[1,"plus-icon"]],template:function(Be,at){1&Be&&l.\u0275\u0275template(0,oe,3,3,"ng-container",0),2&Be&&l.\u0275\u0275property("appSkeleton",!at.showProducts)("appSkeletonWidth","90%")("appSkeletonHeight","100px")("appSkeletonMargin","10px auto")("appSkeletonRepeat",5)},dependencies:[$.i,C.mk,C.sg,C.O5,w.rH,w.Od,T.Hw,j.Z,I.V,F.e,e.X$,z.R,X.G,p.Z,C.Ov,C.uU],styles:['@charset "UTF-8";.item[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;background:#ffffff;position:relative;border-left:6px solid transparent;min-height:91px}.item[_ngcontent-%COMP%]:hover{background-color:#fff;cursor:pointer;box-shadow:0 4px 15px #0807080d;border-radius:2px;z-index:1}.item__product[_ngcontent-%COMP%]{padding:1px}.item-active[_ngcontent-%COMP%], .item-typed[_ngcontent-%COMP%]{border-left:4px solid #2f54eb}.item-closed[_ngcontent-%COMP%]:hover{cursor:initial}.offers__item[_ngcontent-%COMP%]{background:#ffffff;padding:20px 18px 20px 25px;text-align:center;cursor:pointer;display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:#444;font-size:22px;font-weight:600;border-bottom:1px solid #dedede;height:78px}.offers__item-symbol[_ngcontent-%COMP%]{color:#88909b;font-size:1.8em;font-weight:400}.balances-item[_ngcontent-%COMP%]{cursor:pointer}.balances-item-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:30px 16px 30px 20px}.balances-item__title[_ngcontent-%COMP%]{max-width:252px}.balances-item__icon[_ngcontent-%COMP%]{height:16px;width:16px;font-size:16px;color:#88909b}.ecom-item[_ngcontent-%COMP%]{cursor:pointer}.ecom-item-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:20px 16px 20px 20px}.ecom-item__title[_ngcontent-%COMP%]{max-width:252px}.ecom-item__title__wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.ecom-item__description[_ngcontent-%COMP%]{max-width:252px;color:#88909b;font-size:14px}.ecom-item__icon-value[_ngcontent-%COMP%]{color:#88909b;font-size:20px}.ecom-item__icon[_ngcontent-%COMP%]{font-size:19px;color:#88909b}.ecom-item__icon[_ngcontent-%COMP%]:hover{color:#2f54eb}.plus-icon[_ngcontent-%COMP%]{display:flex}.plus-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:scale(.8333333333)}.new-badge[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:10px;font-style:normal;font-weight:700;line-height:normal;text-transform:uppercase;color:#00a843;background-color:#00a84326;padding:4px 8px;border-radius:4px;margin-left:8px}.card-index-wrapper[_ngcontent-%COMP%]{padding:20px 24px;display:flex;justify-content:space-between;align-items:center}.card-index-wrapper[_ngcontent-%COMP%]   .info-card-index[_ngcontent-%COMP%]{display:flex;flex-direction:column}.card-index-wrapper[_ngcontent-%COMP%]   .info-card-index[_ngcontent-%COMP%]   .row-item-info[_ngcontent-%COMP%]{margin-bottom:8px;display:flex;align-items:center}.card-index-wrapper[_ngcontent-%COMP%]   .info-card-index[_ngcontent-%COMP%]   .row-item-info[_ngcontent-%COMP%]   .text-row[_ngcontent-%COMP%]{min-width:88px;font-size:14px;font-weight:400;line-height:20px;color:#444}.card-index-wrapper[_ngcontent-%COMP%]   .info-card-index[_ngcontent-%COMP%]   .row-item-info[_ngcontent-%COMP%]   .counter-card-index[_ngcontent-%COMP%]{font-size:12px;font-weight:700;line-height:16px;text-align:center;color:#88909b;padding:2px 8px;border-radius:16px;background:#F1F2F2}.card-index-wrapper[_ngcontent-%COMP%]   .info-card-index[_ngcontent-%COMP%]   .row-item-info[_ngcontent-%COMP%]   .counter-card-index.red[_ngcontent-%COMP%]{background:#E23428;color:#fff}.card-index-wrapper[_ngcontent-%COMP%]   .info-card-index[_ngcontent-%COMP%]   .row-item-info[_ngcontent-%COMP%]   .counter-card-index.unread[_ngcontent-%COMP%]{background:#2F54EB;color:#fff}.card-index-wrapper[_ngcontent-%COMP%]   .info-card-index[_ngcontent-%COMP%]   .row-item-info[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}  .cdk-overlay-container{z-index:1101}  mat-tooltip-component{background:none}  .operations-filter-tooltip{filter:drop-shadow(0px 5px 20px rgba(9,7,8,.1));pointer-events:none}  .operations-filter-tooltip .mdc-tooltip__surface{color:#000;background-color:#fff!important;font-family:Open Sans,Source Sans Pro,sans-serif!important;font-size:12px;font-weight:400;max-width:400px}.item-typed[_ngcontent-%COMP%]{border-left:6px solid #2f54eb}']})}(0,n.gn)([(0,e.SQ)()],Wt.prototype,"lang",void 0)},83814:(Ee,Q,t)=>{"use strict";t.d(Q,{k:()=>y});var n=t(77579),e=t(71884),i=t(82722),d=t(54004),a=t(94650),u=t(15644),h=t(37601),l=t(40451),m=t(92008),x=t(11260),O=t(36895),L=t(74607),w=t(38649);function B($,C){if(1&$&&a.\u0275\u0275element(0,"app-product-list",4),2&$){const T=a.\u0275\u0275nextContext();a.\u0275\u0275property("products$",T.products$)}}function _($,C){if(1&$){const T=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",5)(1,"div",6)(2,"div",7),a.\u0275\u0275text(3,"\u0415\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0431\u0430\u043d\u043a\u0435?"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"app-svg-icon",8),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(T);const I=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(I.closeInfo())}),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(5,"div",9),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(T);const I=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(I.openChat())}),a.\u0275\u0275text(6,"\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430\u043c \u0432 \u0447\u0430\u0442"),a.\u0275\u0275elementEnd()()}}let y=(()=>{class ${constructor(T,j,I,F){this.configUtilService=T,this.userDataService=j,this.chatService=I,this.appConfigService=F,this.isSettingsEnabled=!1,this.destroyed$=new n.x}ngAfterContentInit(){this.configUtilService.getConfigs().subscribe()}openChat(){this.chatService.getChat().subscribe(T=>{T.chat.toggle()})}ngOnInit(){this.chatService.getChartSettings().pipe((0,e.x)(),(0,i.R)(this.destroyed$)).subscribe(T=>{this.isSettingsEnabled=T.enabled&&!localStorage.getItem("metinvCloseInfo")})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}get isDemo(){return this.configUtilService.getConfigs().pipe((0,d.U)(T=>!!T.data?.demoLabel))}closeInfo(){localStorage.setItem("metinvCloseInfo","true"),this.isSettingsEnabled=!1}static#e=this.\u0275fac=function(j){return new(j||$)(a.\u0275\u0275directiveInject(u.Pj),a.\u0275\u0275directiveInject(h.M),a.\u0275\u0275directiveInject(l.a),a.\u0275\u0275directiveInject(m._))};static#t=this.\u0275cmp=a.\u0275\u0275defineComponent({type:$,selectors:[["app-sidebar"]],inputs:{products$:"products$",load:"load"},decls:7,vars:8,consts:[[1,"sidebar-wrapper"],["data-qa","1657795755351"],["class","sidebar-wrapper__product-list","data-qa","1657795759111",3,"products$",4,"ngIf"],["class","sidebar-wrapper__chat-client",4,"ngIf"],["data-qa","1657795759111",1,"sidebar-wrapper__product-list",3,"products$"],[1,"sidebar-wrapper__chat-client"],[1,"sidebar-wrapper__chat-client_flex"],[1,"sidebar-wrapper__text"],["icon","cross-new","svgClass","cross-close",3,"click"],[1,"sidebar-wrapper__link",3,"click"]],template:function(j,I){1&j&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275pipe(1,"async"),a.\u0275\u0275elementContainerStart(2),a.\u0275\u0275element(3,"app-company",1),a.\u0275\u0275template(4,B,1,1,"app-product-list",2),a.\u0275\u0275pipe(5,"async"),a.\u0275\u0275template(6,_,7,0,"div",3),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275elementEnd()),2&j&&(a.\u0275\u0275classProp("is-demo",a.\u0275\u0275pipeBind1(1,4,I.isDemo)),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngIf",!a.\u0275\u0275pipeBind1(5,6,I.appConfigService.isRoleOnlyEmail$)),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",I.isSettingsEnabled))},dependencies:[x.b,O.O5,L.X,w._,O.Ov],styles:['@charset "UTF-8";.sidebar-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:100%;overflow:hidden;background:#ffffff;position:relative}.sidebar-wrapper__product-list[_ngcontent-%COMP%]{width:320px;height:100%;overflow-y:scroll;scrollbar-width:none}.sidebar-wrapper__product-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.sidebar-wrapper__chat-client[_ngcontent-%COMP%]{position:sticky;bottom:16px;width:100%;height:122px;border-radius:2px;background:#dae0f2;font-size:14px;padding:20px 16px 21px 24px;width:320px}.sidebar-wrapper__chat-client_flex[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.sidebar-wrapper__text[_ngcontent-%COMP%]{color:#080708;font-weight:400;margin-bottom:16px}.sidebar-wrapper__link[_ngcontent-%COMP%]{color:#2f54eb;text-decoration:underline;font-weight:600;cursor:pointer}.sidebar-wrapper.is-demo[_ngcontent-%COMP%]{height:calc(100% - 36px);margin-top:36px}']})}return $})()},11260:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>i});var n=t(94650),e=t(36895);let i=(()=>{class d{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["app-svg-icon"]],inputs:{icon:"icon",svgClass:"svgClass",fill:"fill",width:"width",height:"height"},decls:2,vars:8,consts:[[3,"ngClass"]],template:function(h,l){1&h&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",0),n.\u0275\u0275element(1,"use"),n.\u0275\u0275elementEnd()),2&h&&(n.\u0275\u0275styleProp("fill",l.fill)("height",l.height,"px")("width",l.width,"px"),n.\u0275\u0275property("ngClass",l.svgClass),n.\u0275\u0275advance(1),n.\u0275\u0275attribute("href","assets/sprite.svg#"+l.icon))},dependencies:[e.mk],encapsulation:2})}return d})()},48038:(Ee,Q,t)=>{"use strict";t.d(Q,{Y:()=>i});var n=t(36895),e=t(94650);let i=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:d});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.ez]})}return d})()},31806:(Ee,Q,t)=>{"use strict";t.d(Q,{EP:()=>i,EW:()=>d,GB:()=>e,cA:()=>n});const n=/^(03212|03222|03232|03242|03252|03262|03272)/,e=/^(30111|30231|40807)/,i=/^(0{25}|0{20})/,d=/^4082{2}/},38889:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>e});var n=t(31806);class e{static uin(d){return a=>{const u=a.value;if(!u)return{uinError:"Uin can not be empty"};if("0"===u)return null;const h=d.value;if(h){const l=n.cA.test(h.trim());if(l&&u.length<4)return{uinError:"Length uin no correct"};if(l&&4===u.length&&!+u)return{uinError:"Uin can not be of zeroes"};if(l&&4===u.length)return null}return 20!==u.length&&25!==u.length?{uinError:"Length uin no correct"}:20!==u.length&&25!==u.length||!n.EP.test(u)?this.checkChecksum(u):{uinError:"Uin can not be of zeroes"}}}static uip(d){return a=>{const u=d.value||"",h=a.value;if(!n.EW.test(u)&&!Boolean(h))return null;if(n.EW.test(u)&&!Boolean(h))return{uipError:"Uip is required"};const l=[3,7,1,3,7],m=[...l,...l,...l,3];let x=0;const O=u.slice(0,5).split("");if(h.length>1&&h.length<16)return{uipError:"Length field UIP incorrect"};const L=h.slice(0,17).split(""),w=[];l.forEach((_,y)=>{w.push(_*parseInt(O[y],10))}),m.forEach((_,y)=>{w.push(_*parseInt(L[y],10))});const B=w.reduce((_,y)=>_+y,0);return Number.isNaN(B)?{uipError:"Incorrect control key UIP"}:(x=3*parseInt(B.toString().slice(-1),10),x%10!=0?{uipError:"Incorrect control key UIP"}:null)}}static accountNotNalog(){return d=>n.cA.test(d.value)?{invalidForTransferUL:"Invalid account for transfer UL"}:null}static accountNotCrossBorder(){return d=>n.GB.test(d.value)?null:{invalidCrossBorderAccountUL:"Attention! Only a transfer in favor of a non-resident counterparty is available"}}static validationKBK(){return d=>"0"===d.value?{invalidValue:!0}:null}static allowedValues(d){return a=>d.includes(a.value)||!a.value?null:{invalidValue:!0}}static forbiddenValues(d){return a=>d.includes(a.value)?{invalidValue:!0}:null}static validatorTypeOperationCode(d){return a=>a.value&&d.includes(a.value)?null:{invalidValue:!0}}static checkChecksum(d){let a=d.toString().split("");a=a.map(x=>Number.parseInt(x,10));const u=a[a.length-1];a.splice(a.length-1,1);let h=0,l=1;for(let x=0;x<a.length;x++)h+=a[x]*l,l++,l>10&&(l=1);let m=h%11;if(m<10)return m!==u?{uinError:"Invalid uin"}:null;h=0,l=3;for(let x=0;x<a.length;x++)h+=a[x]*l,l++,l>10&&(l=1);return m=h%11,m=10===m?0:m,m!==u?{uinError:"Invalid uin"}:null}static validatorUNK(d){return a=>a.value?-1===d.findIndex(h=>h.value===a.value)?{invalidValue:!0}:null:{invalidValue:!0}}}},7052:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>m});var n=t(15439),e=t.n(n),i=t(39646),d=t(91005),a=t(39300),u=t(54004),h=t(63900),l=t(18505);class m{static createValidator(O,L=!0){return w=>(0,i.of)(w?.value).pipe((0,d.g)(200),(0,a.h)(B=>B?.length),(0,u.U)(B=>e()(B).format("DD.MM.YYYY")),(0,h.w)(B=>O.checkWorkday(B,L).pipe((0,u.U)(_=>_?null:{isWeekend:!0}))),(0,l.b)(()=>{w.markAsTouched()}))}}},31196:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{SmsInfoModule:()=>dt});var n=t(36895),e=t(74471),i=t(71702),d=t(88044),a=t(54215),u=t(44180),h=t(97582),l=t(16611),m=t(77579),x=t(39300),O=t(82722);const L=[{capture:"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f",value:"info"},{capture:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f",value:"history"}],w={capture:"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f",value:"info"},B={size:20,number:0,total:0},_=[10,20,100];var y=t(17489),$=t(61135),C=t(48382),T=t(39646),j=t(18505),I=t(86099),F=t(95698),z=t(63900),X=t(54004),p=t(6146),P=t(98202),E=t(94650),R=t(40929),ne=t(29198),G=t(15644),ce=t(9149),xe=t(81300),we=t(3751);let Ge=(()=>{class rt{constructor(ze,zt,vt,Rt,gt,sn,wn,Qn){this.documentService=ze,this.vedService=zt,this.utilService=vt,this.datePipe=Rt,this.toastCustomService=gt,this.serverSettingsService=sn,this.apiService=wn,this.configUtilService=Qn,this.documentList=[],this._documentList=new $.X(null),this.documentList$=this._documentList.asObservable(),this._isLoading=new $.X(!0),this.isLoading$=this._isLoading.asObservable(),this.currenciesIsoCode=new Map,this.currenciesCode=new Map,this.docTypesData={docTypes:[{docModule:"ibankul",docType:p.o.SmsNotif}]},this.ACCOUNT_TYPE_SEARCH_PATTERN="BANK_ACCOUNT_AGREEMENT/ACC_TYPE_",this.destroy$=new m.x}setIsLoading(ze){this._isLoading.next(ze)}loadDocuments(ze){this.setIsLoading(!0);const zt={visual:!0,page:ze,lastDocumentFilter:this.docTypesData,additionalFilter:null,listOfStatuses:"end,decline,for_send_abs,error,decline_minio_send,decline_minio_error,end_minio_send,end_minio_error,decline_cks_send,decline_cks_error,end_cks_send,end_cks_error"};this.serverSettingsService.getResource(this.serverSettingsService.servicesUL).pipe((0,j.b)(vt=>{const Rt=y.pickBy(vt,(sn,wn)=>y.some([this.ACCOUNT_TYPE_SEARCH_PATTERN],Qn=>y.includes(wn,Qn))),gt=[];for(const[sn,wn]of Object.entries(Rt))1===wn&&gt.push(`'${sn.substring(this.ACCOUNT_TYPE_SEARCH_PATTERN.length)}'`)}),(0,I.z)(()=>this.documentService.getLastDocumentsPageable(zt).pipe((0,F.q)(1),(0,O.R)(this.destroy$),(0,z.w)(vt=>(0,C.s)(()=>!this.currenciesIsoCode.size,this.vedService.getCurrencyList().pipe((0,j.b)(Rt=>Rt.map(gt=>{this.currenciesIsoCode.set(gt.isoCode,gt),this.currenciesCode.set(gt.code,gt)})),(0,X.U)(()=>vt)),(0,T.of)(vt))),(0,X.U)(vt=>{let Rt=[];return vt?.documents?.length&&(Rt=this.prepareDocumentList(vt)),{documents:Rt,page:vt?.page}})))).subscribe({next:vt=>{ze?.showMore?this.documentList=[...this.documentList,...vt.documents]:(this.documentList=[],this.documentList=[...vt.documents]),this._documentList.next({documents:this.documentList,page:vt?.page}),this.setIsLoading(!1)},error:vt=>{vt?.errorText&&this.toastCustomService.show(vt.errorText,"error"),this.setIsLoading(!1)}})}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}prepareDocumentList(ze){return ze.documents.map(zt=>{"decline"===zt.status&&(zt.isOpenable=!0,zt.isOpen=!1),zt.statusCaption="new"===zt.status?zt.signStatusCaption:zt.statusCaption;let vt="",Rt=zt.activationDetails;if(Rt){const gt="";Rt=Array.isArray(Rt)?Rt:[Rt],vt=[...Rt].reduce((sn,wn)=>sn+wn?.accName+": "+(Array.isArray(wn.phoneNumbers)?wn.phoneNumbers.join("; ")+"; ":[wn.phoneNumbers].join("; ")+"; "),gt)}return"string"==typeof zt.actions&&zt.actions?.length&&(zt.actions=[zt.actions]),"error"===zt.status?{...zt,title:"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438 SMS-\u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f",description:vt,amount:` ${this.datePipe.transform(zt.docDate,"dd.MM.YYYY")}`,statusCaption:this.configUtilService.capitalizeFirstLetter(zt.statusCaption),statusCaptionColor:P.rV.get(zt.status),smsInfoList:Array.isArray(zt.activationDetails)?zt.activationDetails:[zt.activationDetails],isOpenable:"error"===zt.status||"decline"===zt.status}:{dots:{buttonActions:this.utilService.makeButtonActions({actions:zt.actions,...zt},null,gt=>"print"===gt?{inPopup:!1}:{})},...zt,title:"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u0438 SMS-\u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f",description:vt,amount:` ${this.datePipe.transform(zt.docDate,"dd.MM.YYYY")}`,statusCaption:this.configUtilService.capitalizeFirstLetter(zt.statusCaption),statusCaptionColor:P.rV.get(zt.status),smsInfoList:Array.isArray(zt.activationDetails)?zt.activationDetails:[zt.activationDetails],isOpenable:"error"===zt.status||"decline"===zt.status}})}sendEdits(ze){return this.apiService.post("sms_notif/createAgreement",ze||{})}static#e=this.\u0275fac=function(zt){return new(zt||rt)(E.\u0275\u0275inject(R.Z),E.\u0275\u0275inject(ne.$),E.\u0275\u0275inject(G.Pj),E.\u0275\u0275inject(n.uU),E.\u0275\u0275inject(ce.j),E.\u0275\u0275inject(xe.l),E.\u0275\u0275inject(we.s),E.\u0275\u0275inject(G.Pj))};static#t=this.\u0275prov=E.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac})}return rt})();var ct=t(42761),pe=t(5248),Ce=t(38101),U=t(92008),H=t(23439),Z=t(65218),oe=t(15557),Pe=t(15725),Ie=t(30815),pt=t(90995),Ht=t(97392),Wt=t(10266),Xe=t(4650),Qe=t(24006);const Be=["input"],at=function(rt){return{gray:rt}};function lt(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"div",6),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(vt.clickEdit())}),E.\u0275\u0275text(1),E.\u0275\u0275elementEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext();E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(2,at,""===ze.defaultValue)),E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",""===ze.defaultValue?"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443":ze.defaultValue," ")}}const Dt=function(rt){return{error:rt}};function Yt(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"input",7,8),E.\u0275\u0275listener("keyup",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(vt.emitChange(vt.defaultValue))})("ngModelChange",function(vt){E.\u0275\u0275restoreView(ze);const Rt=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Rt.defaultValue=vt)}),E.\u0275\u0275elementEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext();E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(2,Dt,ze.isShowError))("ngModel",ze.defaultValue)}}function Tt(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"div",9),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(vt.remove())}),E.\u0275\u0275elementEnd()}2&rt&&E.\u0275\u0275property("matTooltip","\u0423\u0434\u0430\u043b\u0438\u0442\u044c")("matTooltipPosition","below")}function ot(rt,qe){1&rt&&E.\u0275\u0275element(0,"div",10)}class Gt{constructor(){this.destroy$=new m.x,this.changeValue=new E.EventEmitter,this.removeRow=new E.EventEmitter}ngOnInit(){setTimeout(()=>{this.inputElement&&this.inputElement.nativeElement.focus()})}clickEdit(){this.isEdit=this.isEditable,setTimeout(()=>{this.inputElement&&this.inputElement.nativeElement.focus()})}emitChange(qe){this.isShowError=!1,this.isEdit=!0,this.defaultValue=this.defaultValue.replace(/[^+\d]/g,""),qe=qe.replace(/[^+\d]/g,""),this.defaultValue.length<=2&&"phone"===this.type&&(this.defaultValue="+7"),this.changeValue.emit(qe)}remove(){this.removeRow.emit()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Gt)};static#t=this.\u0275cmp=E.\u0275\u0275defineComponent({type:Gt,selectors:[["app-custom-input"]],viewQuery:function(ze,zt){if(1&ze&&E.\u0275\u0275viewQuery(Be,5),2&ze){let vt;E.\u0275\u0275queryRefresh(vt=E.\u0275\u0275loadQuery())&&(zt.inputElement=vt.first)}},inputs:{isShowError:"isShowError",type:"type",defaultValue:"defaultValue",isEditable:"isEditable",showRemove:"showRemove"},outputs:{changeValue:"changeValue",removeRow:"removeRow"},decls:6,vars:4,consts:[[1,"wrapper-custom-input"],[1,"default-row"],["class","value-row",3,"ngClass","click",4,"ngIf"],["class","edit-value-row","maxlength","12",3,"ngClass","ngModel","keyup","ngModelChange",4,"ngIf"],["class","remove-icon",3,"matTooltip","matTooltipPosition","click",4,"ngIf"],["class","wrapper-icon",4,"ngIf"],[1,"value-row",3,"ngClass","click"],["maxlength","12",1,"edit-value-row",3,"ngClass","ngModel","keyup","ngModelChange"],["input",""],[1,"remove-icon",3,"matTooltip","matTooltipPosition","click"],[1,"wrapper-icon"]],template:function(ze,zt){1&ze&&(E.\u0275\u0275elementStart(0,"div",0)(1,"div",1),E.\u0275\u0275template(2,lt,2,4,"div",2),E.\u0275\u0275template(3,Yt,2,4,"input",3),E.\u0275\u0275template(4,Tt,1,2,"div",4),E.\u0275\u0275template(5,ot,1,0,"div",5),E.\u0275\u0275elementEnd()()),2&ze&&(E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",!zt.isEdit&&!zt.isShowError),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",zt.isEdit||zt.isShowError),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",zt.showRemove),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!zt.showRemove))},dependencies:[n.mk,n.O5,Qe.DefaultValueAccessor,Qe.NgControlStatus,Qe.MaxLengthValidator,Qe.NgModel,Wt.gM],styles:['@charset "UTF-8";.wrapper-custom-input[_ngcontent-%COMP%]{display:flex;flex-direction:column}.wrapper-custom-input[_ngcontent-%COMP%]   .default-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:8px}.wrapper-custom-input[_ngcontent-%COMP%]   .default-row[_ngcontent-%COMP%]   .value-row[_ngcontent-%COMP%]{cursor:pointer;width:117px;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;margin-right:30px;height:20px;border-bottom:1px solid transparent}.wrapper-custom-input[_ngcontent-%COMP%]   .default-row[_ngcontent-%COMP%]   .value-row.gray[_ngcontent-%COMP%]{color:#88909b}.wrapper-custom-input[_ngcontent-%COMP%]   .default-row[_ngcontent-%COMP%]   .edit-value-row[_ngcontent-%COMP%]{outline:none;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;width:117px;height:20px;border:none;border-bottom:1px solid #88909B;margin-right:30px}.wrapper-custom-input[_ngcontent-%COMP%]   .default-row[_ngcontent-%COMP%]   .edit-value-row.error[_ngcontent-%COMP%]{border-bottom:1px solid #E23428}.wrapper-custom-input[_ngcontent-%COMP%]   .default-row[_ngcontent-%COMP%]   .wrapper-icon[_ngcontent-%COMP%]{width:20px;height:20px}.wrapper-custom-input[_ngcontent-%COMP%]   .default-row[_ngcontent-%COMP%]   .remove-icon[_ngcontent-%COMP%]{cursor:pointer;width:20px;height:20px;color:#88909b;background-image:url(/assets/icons/remove-new.png);background-repeat:no-repeat;background-position:center center}']})}(0,h.gn)([(0,l.SQ)()],Gt.prototype,"lang",void 0);var wt=t(44509),Ze=t(95495);function Ut(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"app-custom-input",21),E.\u0275\u0275listener("changeValue",function(vt){E.\u0275\u0275restoreView(ze);const Rt=E.\u0275\u0275nextContext().index,gt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(gt.changeValue("sum",Rt,null,vt))})("removeRow",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext().index,Rt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(Rt.removeRow("sum",vt,null))}),E.\u0275\u0275elementEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext().$implicit,zt=E.\u0275\u0275nextContext(2);E.\u0275\u0275property("type","sum")("showRemove",zt.showRemove)("defaultValue",ze.overSum)("isShowError",ze.sumError)("isEditable",!0)}}const vn=function(rt){return{error:rt}};function xn(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"div",20),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext().index,Rt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(Rt.setOverSum(vt))}),E.\u0275\u0275text(1," \u0423\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 "),E.\u0275\u0275elementEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext().$implicit;E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(1,vn,ze.sumError))}}function bn(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"app-custom-input",22),E.\u0275\u0275listener("changeValue",function(vt){const gt=E.\u0275\u0275restoreView(ze).index,sn=E.\u0275\u0275nextContext().index,wn=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(wn.changeValue("phone",sn,gt,vt))})("removeRow",function(){const Rt=E.\u0275\u0275restoreView(ze).index,gt=E.\u0275\u0275nextContext().index,sn=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(sn.removeRow("phone",gt,Rt))}),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementContainerEnd()}if(2&rt){const ze=qe.$implicit,zt=qe.index,vt=E.\u0275\u0275nextContext().$implicit,Rt=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(1),E.\u0275\u0275property("type","phone")("showRemove",Rt.showRemove)("isShowError",!(null==vt.phoneNumbersError||!vt.phoneNumbersError.length)&&vt.phoneNumbersError.includes(zt))("defaultValue",ze)("isEditable",!0)}}function hn(rt,qe){1&rt&&E.\u0275\u0275element(0,"div",23)}function pn(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"tr")(1,"td"),E.\u0275\u0275text(2),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(3,"td")(4,"div",14)(5,"div",15),E.\u0275\u0275text(6),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(7,"div",16),E.\u0275\u0275text(8),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementStart(9,"td"),E.\u0275\u0275text(10),E.\u0275\u0275pipe(11,"async"),E.\u0275\u0275pipe(12,"currency_name"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(13,"td"),E.\u0275\u0275text(14),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(15,"td",10),E.\u0275\u0275template(16,Ut,1,5,"app-custom-input",17),E.\u0275\u0275template(17,xn,2,3,"div",18),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(18,"td",10),E.\u0275\u0275template(19,bn,2,5,"ng-container",11),E.\u0275\u0275template(20,hn,1,0,"div",19),E.\u0275\u0275elementStart(21,"div",20),E.\u0275\u0275listener("click",function(){const Rt=E.\u0275\u0275restoreView(ze).index,gt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(gt.addNewPhone(Rt))}),E.\u0275\u0275text(22," \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u043c\u0435\u0440 "),E.\u0275\u0275elementEnd()()()}if(2&rt){const ze=qe.$implicit,zt=qe.index,vt=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(zt+1),E.\u0275\u0275advance(4),E.\u0275\u0275textInterpolate1(" ",ze.accName," "),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate1(" ",ze.accNumber," "),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(11,10,E.\u0275\u0275pipeBind2(12,12,ze.accCurrency,!0))),E.\u0275\u0275advance(4),E.\u0275\u0275textInterpolate(null!=ze&&ze.dateEnable?vt.formatDate(ze.dateEnable):"-"),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",null!==ze.overSum),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",null===ze.overSum),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngForOf",ze.phoneNumbers),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ze.phoneNumbers.length),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(15,vn,!(null==ze.phoneNumbersError||!ze.phoneNumbersError.length)&&!0===ze.phoneNumbersError[0]))}}function In(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"app-page",2)(2,"div",3)(3,"div",4),E.\u0275\u0275text(4," \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u043e\u0439 SMS-\u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f "),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(5,"mat-icon",5),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(vt.closeEditForm())}),E.\u0275\u0275text(6,"close"),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(7,"table",6)(8,"thead")(9,"tr",7)(10,"td"),E.\u0275\u0275text(11,"\u2116"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(12,"td"),E.\u0275\u0275text(13,"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435/\u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(14,"td"),E.\u0275\u0275text(15,"\u0432\u0430\u043b\u044e\u0442\u0430 \u0441\u0447\u0435\u0442\u0430"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(16,"td"),E.\u0275\u0275text(17,"\u0434\u0430\u0442\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(18,"td")(19,"div",8)(20,"div"),E.\u0275\u0275text(21," \u0441\u043c\u0441 \u0441\u0432\u044b\u0448\u0435 \u0441\u0443\u043c\u043c\u044b "),E.\u0275\u0275elementEnd(),E.\u0275\u0275element(22,"div",9),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(23,"td",10),E.\u0275\u0275text(24,"\u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementStart(25,"tbody"),E.\u0275\u0275template(26,pn,23,17,"tr",11),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(27,"div",12)(28,"app-button",13),E.\u0275\u0275listener("clicked",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(vt.sendData())}),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementContainerEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("withCloseButton",!1)("withTitle",!1)("loading",!1),E.\u0275\u0275advance(21),E.\u0275\u0275property("matTooltip","\u0441\u0443\u043c\u043c\u0430 \u043e\u0442 1 \u0432 \u0432\u0430\u043b\u044e\u0442\u0435 \u0441\u0447\u0435\u0442\u0430 ")("matTooltipPosition","below"),E.\u0275\u0275advance(4),E.\u0275\u0275property("ngForOf",ze.accList),E.\u0275\u0275advance(2),E.\u0275\u0275property("text","\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c")}}function Dn(rt,qe){1&rt&&E.\u0275\u0275element(0,"app-tab",27),2&rt&&E.\u0275\u0275property("label",qe.$implicit.capture)}function Tn(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"app-button",28),E.\u0275\u0275listener("clicked",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(vt.openNewCurrencyAccount())}),E.\u0275\u0275pipe(1,"translate"),E.\u0275\u0275elementEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext(2);E.\u0275\u0275property("text",E.\u0275\u0275pipeBind2(1,1,"Change",ze.lang))}}function mn(rt,qe){1&rt&&(E.\u0275\u0275elementStart(0,"div",38),E.\u0275\u0275text(1," \u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0443\u0441\u043b\u0443\u0433\u043e\u0439 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 SMS-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c \u043d\u0430 \u0441\u0447\u0435\u0442\u0430\u0445, \u043d\u0430\u043b\u0438\u0447\u0438\u044e/\u0441\u043d\u044f\u0442\u0438\u044e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0442 \u0411\u0430\u043d\u043a\u0430. \u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f \u0441\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0411\u0430\u043d\u043a\u043e\u043c \u0435\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u043e \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438 \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e "),E.\u0275\u0275elementStart(2,"span")(3,"a",39),E.\u0275\u0275text(4,"\u0422\u0430\u0440\u0438\u0444\u0430\u043c."),E.\u0275\u0275elementEnd()()())}function Yn(rt,qe){if(1&rt&&(E.\u0275\u0275elementStart(0,"td"),E.\u0275\u0275text(1),E.\u0275\u0275pipe(2,"currencySymbol"),E.\u0275\u0275elementEnd()),2&rt){const ze=E.\u0275\u0275nextContext().$implicit;E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate2(" ",ze.overSum," ",E.\u0275\u0275pipeBind1(2,2,ze.accCurrency)," ")}}function cn(rt,qe){1&rt&&(E.\u0275\u0275elementStart(0,"td"),E.\u0275\u0275text(1," - "),E.\u0275\u0275elementEnd())}function Nn(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"app-custom-input",40),E.\u0275\u0275listener("changeValue",function(vt){const gt=E.\u0275\u0275restoreView(ze).index,sn=E.\u0275\u0275nextContext().index,wn=E.\u0275\u0275nextContext(4);return E.\u0275\u0275resetView(wn.changeValue("phone",sn,gt,vt))}),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementContainerEnd()}if(2&rt){const ze=qe.$implicit,zt=E.\u0275\u0275nextContext(5);E.\u0275\u0275advance(1),E.\u0275\u0275property("type","phone")("showRemove",zt.showRemove)("defaultValue",ze)}}function Bt(rt,qe){1&rt&&(E.\u0275\u0275elementStart(0,"span"),E.\u0275\u0275text(1,"-"),E.\u0275\u0275elementEnd())}function En(rt,qe){if(1&rt&&(E.\u0275\u0275elementStart(0,"tr")(1,"td"),E.\u0275\u0275text(2),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(3,"td")(4,"div",14)(5,"div",15),E.\u0275\u0275text(6),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(7,"div",16),E.\u0275\u0275text(8),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementStart(9,"td"),E.\u0275\u0275text(10),E.\u0275\u0275pipe(11,"async"),E.\u0275\u0275pipe(12,"currency_name"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(13,"td"),E.\u0275\u0275text(14),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(15,Yn,3,4,"td",1),E.\u0275\u0275template(16,cn,2,0,"td",1),E.\u0275\u0275elementStart(17,"td",10),E.\u0275\u0275template(18,Nn,2,3,"ng-container",11),E.\u0275\u0275template(19,Bt,2,0,"span",1),E.\u0275\u0275elementEnd()()),2&rt){const ze=qe.$implicit,zt=qe.index,vt=E.\u0275\u0275nextContext(4);E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(zt+1),E.\u0275\u0275advance(4),E.\u0275\u0275textInterpolate1(" ",ze.accName," "),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate1(" ",ze.accNumber," "),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(11,9,E.\u0275\u0275pipeBind2(12,11,ze.accCurrency,!0))),E.\u0275\u0275advance(4),E.\u0275\u0275textInterpolate(null!=ze&&ze.dateEnable?vt.formatDate(ze.dateEnable):"-"),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ze.overSum),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!ze.overSum),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngForOf",ze.phoneNumbers),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!(null!=ze.phoneNumbers&&ze.phoneNumbers.length))}}function Wn(rt,qe){if(1&rt&&(E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"table",6)(2,"thead")(3,"tr",7)(4,"td"),E.\u0275\u0275text(5,"\u2116"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(6,"td"),E.\u0275\u0275text(7,"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435/\u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(8,"td"),E.\u0275\u0275text(9,"\u0432\u0430\u043b\u044e\u0442\u0430 \u0441\u0447\u0435\u0442\u0430"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(10,"td"),E.\u0275\u0275text(11,"\u0434\u0430\u0442\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(12,"td"),E.\u0275\u0275text(13,"\u0441\u043c\u0441 \u0441\u0432\u044b\u0448\u0435 \u0441\u0443\u043c\u043c\u044b"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(14,"td",10),E.\u0275\u0275text(15,"\u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementStart(16,"tbody"),E.\u0275\u0275template(17,En,20,14,"tr",11),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementContainerEnd()),2&rt){const ze=E.\u0275\u0275nextContext(3);E.\u0275\u0275advance(17),E.\u0275\u0275property("ngForOf",ze.accList)}}function rn(rt,qe){1&rt&&(E.\u0275\u0275elementStart(0,"div",41)(1,"div",42),E.\u0275\u0275text(2," \u041d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0441\u0447\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 "),E.\u0275\u0275elementEnd()())}const Sn=function(rt){return{accept:rt}},ke=function(rt){return{active:rt}};function ge(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"app-metib-info",29),E.\u0275\u0275text(2,"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u0443\u0433\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0414\u043b\u044f \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.\xa0 "),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(3,"div",30)(4,"div",31),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(ze);const vt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(vt.isOpenAccordion=!vt.isOpenAccordion)}),E.\u0275\u0275elementStart(5,"div",32)(6,"div",33),E.\u0275\u0275text(7," SMS-\u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 "),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(8,"div",34),E.\u0275\u0275text(9),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(10,"mat-icon",35),E.\u0275\u0275text(11,"keyboard_arrow_down"),E.\u0275\u0275elementEnd()(),E.\u0275\u0275template(12,mn,5,0,"div",36),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(13,Wn,18,1,"ng-container",1),E.\u0275\u0275template(14,rn,3,0,"div",37),E.\u0275\u0275elementContainerEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(8),E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(6,Sn,ze.isAgreementStatus)),E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",ze.isAgreementStatus?"\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e":"\u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e"," "),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(8,ke,ze.isOpenAccordion)),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",ze.isOpenAccordion),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ze.accList.length),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!ze.accList.length)}}function q(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"div",43)(2,"app-alt-document-list",44),E.\u0275\u0275listener("changePaginationEmit",function(vt){E.\u0275\u0275restoreView(ze);const Rt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(Rt.getDocumentList(vt))})("actionDone",function(vt){E.\u0275\u0275restoreView(ze);const Rt=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(Rt.onActionDone(vt))}),E.\u0275\u0275pipe(3,"async"),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementContainerEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(2),E.\u0275\u0275property("documentList",ze.documentList)("currentPage",ze.currentPage)("sizeList",ze.sizeList)("isLoading",E.\u0275\u0275pipeBind1(3,4,ze.isLoading$))}}function J(rt,qe){if(1&rt){const ze=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"app-page",2)(2,"div",3)(3,"app-tabs",24),E.\u0275\u0275listener("selectTab",function(vt){E.\u0275\u0275restoreView(ze);const Rt=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Rt.onSelectedTab(Rt.tabs[vt]))}),E.\u0275\u0275template(4,Dn,1,1,"app-tab",25),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(5,Tn,2,4,"app-button",26),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(6,ge,15,10,"ng-container",1),E.\u0275\u0275template(7,q,4,6,"ng-container",1),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementContainerEnd()}if(2&rt){const ze=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("withCloseButton",!1)("withTitle",!1)("loading",!1),E.\u0275\u0275advance(2),E.\u0275\u0275property("initialIndex",ze.selectedTabIndex?ze.selectedTabIndex:0),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngForOf",ze.tabs),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ze.isAccessEdit&&ze.accList.length),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf","info"===ze.selectedTab.value),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf","history"===ze.selectedTab.value)}}class Oe{constructor(qe,ze,zt,vt,Rt,gt,sn){this.router=qe,this.smsInfoService=ze,this.activatedRoute=zt,this.apiService=vt,this.toast=Rt,this.modalService=gt,this.appConfigService=sn,this.pathData=[{capture:"Sms info",bold:!0}],this.tabs=L,this.selectedTab=w,this.selectedTabIndex=0,this.currentPage=B,this.sizeList=_,this.isLoading$=this.smsInfoService.isLoading$,this.documentList=[],this.accListSave=[],this.accList=[],this.accListEdit=[],this.isPowerOfAttorneyListLoading$=this.smsInfoService.isLoading$,this.isLoading=!1,this.isAccessEdit=!1,this.destroy$=new m.x}ngOnInit(){this.appConfigService.settings$.pipe((0,x.h)(ze=>ze.isLoaded),(0,O.R)(this.destroy$)).subscribe(ze=>{this.isAccessEdit=!!ze.ulSettings["REQUEST/SMS_NOTIF_AGREEMENT"]}),this.apiService.get("sms_notif/accList").subscribe(ze=>{this.accList=JSON.parse(JSON.stringify(ze)),this.accListSave=JSON.parse(JSON.stringify(ze)),this.accListEdit=JSON.parse(JSON.stringify(ze)),this.isAgreementStatus=!!this.accListSave.find(zt=>zt.overSum&&zt.phoneNumbers.length)}),this.initPagination(),this.smsInfoService.documentList$.pipe((0,O.R)(this.destroy$),(0,x.h)(ze=>null!==ze)).subscribe(ze=>{this.documentList=ze?.documents,this.currentPage=ze?.page,this.currentPage||(this.currentPage=B,this.getDocumentList(this.currentPage))}),this.getDocumentList(this.currentPage)}setOverSum(qe){this.accList[qe].overSum=""}addNewPhone(qe){this.accList[qe].phoneNumbersError=[],this.accList[qe].phoneNumbers.push("+7"),this.accListEdit[qe].phoneNumbersError=[],this.accListEdit[qe].phoneNumbers.push("+7")}removeRow(qe,ze,zt){"phone"===qe&&(this.accListEdit[ze].phoneNumbers.splice(zt,1),this.accList=JSON.parse(JSON.stringify(this.accListEdit))),"sum"===qe&&(this.accListEdit[ze].overSum=null,this.accList=JSON.parse(JSON.stringify(this.accListEdit)))}getDocumentList(qe){this.router.navigate(["sms-info"],{queryParams:{page:qe?.number?+qe.number+1:1,size:qe?.size?qe.size:10}}),this.smsInfoService.loadDocuments(qe)}openNewCurrencyAccount(){this.isEditForm=!0,this.showRemove=!0}onActionDone(qe){("delete"===qe||"delete_sign"===qe)&&this.getDocumentList(this.currentPage)}changeValue(qe,ze,zt,vt){"phone"===qe&&(this.accListEdit[ze].phoneNumbers[zt]=vt),"sum"===qe&&(this.accListEdit[ze].overSum=vt,this.accList[ze].overSum=vt)}validateForm(qe){let ze=!1,zt=!1,vt=!1;if(JSON.stringify(this.accListSave)===JSON.stringify(this.accListEdit))return this.toast.show("\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c. \u041d\u0430 \u0444\u043e\u0440\u043c\u0435 \u043d\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. ","error"),!1;if(this.accList=JSON.parse(JSON.stringify(this.accListEdit)),this.accList=this.accList.map(Rt=>({...Rt,phoneNumbersError:[],sumError:!1})),qe.length)for(let Rt=0;Rt<qe.length;Rt++)if(qe[Rt].phoneNumbers.length&&!qe[Rt].overSum&&(this.accList[Rt].sumError=!0,ze=!0),qe[Rt].phoneNumbers.length&&qe[Rt].overSum<1&&(this.accList[Rt].sumError=!0,null===qe[Rt].overSum?ze=!0:zt=!0),!qe[Rt].phoneNumbers.length&&qe[Rt].overSum&&(this.accList[Rt].phoneNumbersError=[!0],ze=!0),qe[Rt].phoneNumbers.length)for(let gt=0;gt<qe[Rt].phoneNumbers.length;gt++)qe[Rt].phoneNumbers[gt].length<12&&(this.accList[Rt].phoneNumbersError=[...this.accList[Rt].phoneNumbersError,gt],vt=!0);return ze&&this.toast.show("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u043d\u0430 \u0444\u043e\u0440\u043c\u0435","error"),zt&&this.toast.show("\u041e\u0448\u0438\u0431\u043a\u0438 \u043d\u0430 \u0444\u043e\u0440\u043c\u0435: \u043f\u043e\u043b\u0435 \u0441\u0443\u043c\u043c\u0430 \u043e\u0442 1 \u0432 \u0432\u0430\u043b\u044e\u0442\u0435 \u0441\u0447\u0435\u0442\u0430","error"),vt&&this.toast.show("\u041e\u0448\u0438\u0431\u043a\u0438 \u043d\u0430 \u0444\u043e\u0440\u043c\u0435: \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430","error"),!(ze||zt||vt)}sendData(){let qe=this.accListSave.map(zt=>({accNumber:zt.accNumber,accCurrency:zt.accCurrency,accName:zt.accName,phoneNumbers:zt.phoneNumbers,overSum:zt.overSum}));qe=qe.filter(zt=>zt.overSum&&zt.phoneNumbers.length);let ze=this.accListEdit.map(zt=>({accNumber:zt.accNumber,accCurrency:zt.accCurrency,accName:zt.accName,phoneNumbers:zt.phoneNumbers,overSum:zt.overSum}));this.validateForm(ze),this.validateForm(ze)&&(ze=ze.filter(vt=>vt.overSum&&vt.phoneNumbers.length),this.requestSubmit({activationDetails:ze,deactivationDetails:qe}))}formatDate(qe){return new Date(qe).toLocaleDateString("ru")}requestSubmit(qe){this.smsInfoService.sendEdits(qe).pipe((0,O.R)(this.destroy$)).subscribe({next:ze=>{this.editId=ze.id,this.modalService.open(ct.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,printDocs:[],documents:[{docId:this.editId?this.editId:ze.id,docType:"sms_notif_agreement",docModule:pe.nW}],done:zt=>{zt.length&&(this.isEditForm=!1,this.showRemove=!1,this.toast.show(zt,"success"),this.isEditForm=!1,this.showRemove=!1,this.accList=JSON.parse(JSON.stringify(this.accListSave)),this.accListEdit=JSON.parse(JSON.stringify(this.accListSave)),this.selectedTabIndex=1,this.onSelectedTab(this.tabs[1]))}}})},error:ze=>{this.toast.show(ze.errorText?ze.errorText:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430","error")}})}initPagination(){if(this.activatedRoute.snapshot.queryParams.page>0&&this.sizeList.includes(+this.activatedRoute.snapshot.queryParams.size)){const qe=+this.activatedRoute.snapshot.queryParams.page-1,ze=+this.activatedRoute.snapshot.queryParams.size;(this.currentPage.number!==qe||this.currentPage.size!==ze)&&(this.currentPage={...this.currentPage,number:qe,size:ze})}}closeEditForm(){this.isEditForm=!1,this.showRemove=!1,this.accList=JSON.parse(JSON.stringify(this.accListSave)),this.accListEdit=JSON.parse(JSON.stringify(this.accListSave))}onSelectedTab(qe){this.selectedTab=qe,this.ngOnInit()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Oe)(E.\u0275\u0275directiveInject(u.F0),E.\u0275\u0275directiveInject(Ge),E.\u0275\u0275directiveInject(u.gz),E.\u0275\u0275directiveInject(we.s),E.\u0275\u0275directiveInject(ce.j),E.\u0275\u0275directiveInject(Ce.Z),E.\u0275\u0275directiveInject(U._))};static#t=this.\u0275cmp=E.\u0275\u0275defineComponent({type:Oe,selectors:[["app-opening-currency-account-history"]],features:[E.\u0275\u0275ProvidersFeature([Ge])],decls:3,vars:3,consts:[[3,"pathData"],[4,"ngIf"],[3,"withCloseButton","withTitle","loading"],[1,"tabs-container","extra-margin"],[1,"title-edit"],[1,"close",3,"click"],[1,"sms-table"],[1,"head-row"],[1,"flex-table-cell"],[1,"icon-info",3,"matTooltip","matTooltipPosition"],[1,"phone-row"],[4,"ngFor","ngForOf"],[1,"wrapper-button"],["type","small header",1,"new-order-button",3,"text","clicked"],[1,"wrapper-name-acc"],[1,"name"],[1,"full-name"],[3,"type","showRemove","defaultValue","isShowError","isEditable","changeValue","removeRow",4,"ngIf"],["class","add-number",3,"ngClass","click",4,"ngIf"],["class","indent",4,"ngIf"],[1,"add-number",3,"ngClass","click"],[3,"type","showRemove","defaultValue","isShowError","isEditable","changeValue","removeRow"],[3,"type","showRemove","isShowError","defaultValue","isEditable","changeValue","removeRow"],[1,"indent"],[3,"initialIndex","selectTab"],[3,"label",4,"ngFor","ngForOf"],["type","small header","class","new-order-button","data-qa","1657968446824",3,"text","clicked",4,"ngIf"],[3,"label"],["type","small header","data-qa","1657968446824",1,"new-order-button",3,"text","clicked"],["infoStyle","yellow",1,"sms-info-block"],[1,"accordion-wrapper"],[1,"accordion-info",3,"click"],[1,"info-wrapper"],[1,"text-title-info"],[1,"status-info",3,"ngClass"],[1,"arrow",3,"ngClass"],["class","content-accordion",4,"ngIf"],["class","empty-state-wrapper",4,"ngIf"],[1,"content-accordion"],["href","https://metib.online/document/ediniy-sbornik-tarifov.html",1,"link"],[3,"type","showRemove","defaultValue","changeValue"],[1,"empty-state-wrapper"],[1,"empty-text"],[1,"document-list"],[3,"documentList","currentPage","sizeList","isLoading","changePaginationEmit","actionDone"]],template:function(ze,zt){1&ze&&(E.\u0275\u0275element(0,"app-path",0),E.\u0275\u0275template(1,In,29,7,"ng-container",1),E.\u0275\u0275template(2,J,8,8,"ng-container",1)),2&ze&&(E.\u0275\u0275property("pathData",zt.pathData),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",zt.isEditForm),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",!zt.isEditForm))},dependencies:[n.mk,n.sg,n.O5,H.c,Z.n,oe.i,Pe.I,Ie.l,pt.r,Ht.Hw,Wt.gM,Xe.x,Gt,n.Ov,l.X$,wt.G,Ze.l],styles:['@charset "UTF-8";.tabs-container[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede}.tabs-container.extra-margin[_ngcontent-%COMP%]{margin-bottom:24px}.tabs-container[_ngcontent-%COMP%]   .new-order-button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;max-width:152px;height:47px}app-path[_ngcontent-%COMP%]{display:block;margin-bottom:24px}.sms-table[_ngcontent-%COMP%]{width:100%;border-spacing:0;font-family:Open Sans}.sms-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{background:#F1F2F2}.sms-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-weight:600;font-size:12px;line-height:16px;text-transform:uppercase;color:#444}.sms-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{vertical-align:baseline}.sms-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:14px 16px;border-bottom:1px solid #dedede;font-style:normal;font-weight:400;font-size:14px;line-height:22px;letter-spacing:.01em;color:#080708}.sms-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.phone-row[_ngcontent-%COMP%]{min-width:200px}.sms-table[_ngcontent-%COMP%]   tr.head-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:none}.empty-state-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:160px;width:100%}.empty-state-wrapper[_ngcontent-%COMP%]   .empty-text[_ngcontent-%COMP%]{font-size:18px;font-weight:400;line-height:25px;color:#88909b}.flex-table-cell[_ngcontent-%COMP%]{display:flex;align-items:center}.flex-table-cell[_ngcontent-%COMP%]   .icon-info[_ngcontent-%COMP%]{margin-left:7px;width:20px;height:20px;background-image:url(/assets/icons/info.png);background-repeat:no-repeat;background-position:center center}.sms-info-block[_ngcontent-%COMP%]{display:block;margin-bottom:24px}.accordion-wrapper[_ngcontent-%COMP%]{position:relative;background:#F1F2F2;padding:20px;border-radius:4px;margin-bottom:24px;font-family:Open Sans}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:space-between}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .text-title-info[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:24px;letter-spacing:0em;color:#444;margin-right:12px}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-info[_ngcontent-%COMP%]{font-size:10px;font-weight:700;line-height:14px;letter-spacing:0em;color:#444;padding:4px 8px;border-radius:4px;background:#DEDEDE;text-transform:uppercase}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .status-info.accept[_ngcontent-%COMP%]{color:#00a843;background:rgba(0,168,67,.1490196078)}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{color:#88909b;font-size:24px}.accordion-wrapper[_ngcontent-%COMP%]   .accordion-info[_ngcontent-%COMP%]   .arrow.active[_ngcontent-%COMP%]{transform:rotate(180deg)}.accordion-wrapper[_ngcontent-%COMP%]   .content-accordion[_ngcontent-%COMP%]{margin-top:16px;font-size:14px;font-weight:400;line-height:20px;color:#444}.accordion-wrapper[_ngcontent-%COMP%]   .content-accordion[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{text-decoration:none;font-weight:600;color:#2f54eb}.title-edit[_ngcontent-%COMP%]{padding:26px 0;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0em}.close[_ngcontent-%COMP%]{cursor:pointer;font-size:27px;color:#88909b}.indent[_ngcontent-%COMP%]{margin-bottom:24px}.add-number[_ngcontent-%COMP%]{cursor:pointer;font-size:14px;font-weight:600;line-height:20px;letter-spacing:0em;color:#2f54eb}.add-number.error[_ngcontent-%COMP%]{color:#e23428}.wrapper-name-acc[_ngcontent-%COMP%]{display:flex;flex-direction:column}.wrapper-name-acc[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0em;color:#080708;margin-bottom:4px}.wrapper-name-acc[_ngcontent-%COMP%]   .full-name[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:16px;letter-spacing:0em;color:#88909b}.wrapper-button[_ngcontent-%COMP%]{margin-top:32px;width:218px}']})}(0,h.gn)([(0,l.SQ)()],Oe.prototype,"lang",void 0);const je=[{path:"",pathMatch:"full",component:Oe},{path:"**",redirectTo:"/desktop"}];let Et=(()=>{class rt{static#e=this.\u0275fac=function(zt){return new(zt||rt)};static#t=this.\u0275mod=E.\u0275\u0275defineNgModule({type:rt});static#n=this.\u0275inj=E.\u0275\u0275defineInjector({imports:[u.Bz.forChild(je),u.Bz]})}return rt})(),dt=(()=>{class rt{static#e=this.\u0275fac=function(zt){return new(zt||rt)};static#t=this.\u0275mod=E.\u0275\u0275defineNgModule({type:rt});static#n=this.\u0275inj=E.\u0275\u0275defineInjector({imports:[n.ez,Et,a.m,i.B,d.u,e.h,Ht.Ps,Qe.FormsModule,Qe.ReactiveFormsModule,Wt.AV,Xe.x]})}return rt})()},54:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>we});var n=t(97582),e=t(36895),i=t(16611),d=t(15439),a=t.n(d),u=t(77579),h=t(82722),l=t(30723),m=t(49066),x=t(94650),O=t(3751),L=t(40929);let w=(()=>{class Ge{constructor(pe,Ce){this.apiService=pe,this.documentService=Ce}requestStatementInit({accIdList:pe,beginDate:Ce,endDate:U}){return this.apiService.get(`statement/offline_metinv/ul_get_stmt?acc_id_list=${pe}&begin_date=${Ce}&end_date=${U}`)}extractStatementTXT(pe,Ce){return this.documentService.getFile(pe,!0,Ce)}getOnlineStatementsAccounts(){return this.apiService.get("online_statement/products")}extractStatementPDF(pe,Ce,U){return this.documentService.getFile(pe,Ce,U,!0)}static#e=this.\u0275fac=function(Ce){return new(Ce||Ge)(x.\u0275\u0275inject(O.s),x.\u0275\u0275inject(L.Z))};static#t=this.\u0275prov=x.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac})}return Ge})();var B=t(24006),_=t(8058),y=t(75885),$=t(92008),C=t(54331),T=t(15644),j=t(9149),I=t(75198),F=t(11260),z=t(68735),X=t(75568),p=t(65218),P=t(15557),E=t(43679),R=t(18430),ne=t(90995);function G(Ge,ct){if(1&Ge&&(x.\u0275\u0275elementStart(0,"div",34),x.\u0275\u0275text(1),x.\u0275\u0275pipe(2,"translate"),x.\u0275\u0275elementEnd()),2&Ge){const pe=x.\u0275\u0275nextContext();x.\u0275\u0275advance(1),x.\u0275\u0275textInterpolate1(" ",x.\u0275\u0275pipeBind2(2,1,"Attention! The Extract is not final. Wait for the final discharge",pe.lang)," ")}}function ce(Ge,ct){if(1&Ge&&(x.\u0275\u0275element(0,"app-tab",35),x.\u0275\u0275pipe(1,"translate")),2&Ge){const pe=ct.$implicit,Ce=ct.index,U=x.\u0275\u0275nextContext();x.\u0275\u0275propertyInterpolate("label",x.\u0275\u0275pipeBind2(1,2,pe.capture,U.lang)),x.\u0275\u0275attribute("data-qa","1663146062815"+Ce)}}function xe(Ge,ct){if(1&Ge&&(x.\u0275\u0275elementStart(0,"div",36),x.\u0275\u0275text(1),x.\u0275\u0275pipe(2,"translate"),x.\u0275\u0275elementEnd()),2&Ge){const pe=x.\u0275\u0275nextContext();x.\u0275\u0275advance(1),x.\u0275\u0275textInterpolate1(" ",x.\u0275\u0275pipeBind2(2,1,"Attention in statement",pe.lang)," ")}}class we{constructor(ct,pe,Ce,U,H,Z,oe,Pe,Ie,pt){this.fb=ct,this.dynamicFormService=pe,this.lastOperationService=Ce,this.translation=U,this.statementService=H,this.datePipe=Z,this.appConfigService=oe,this.operationsService=Pe,this.configUtilService=Ie,this.toastCustomService=pt,this.initPending=!0,this.restPending=!1,this.tabs=[{capture:"Extract only",forRequest:"only_stmnt"},{capture:"Documents only",forRequest:"only_lines"},{capture:"Extract with documents",forRequest:"with_lines"}],this.selectConfig=[{field:{name:"accId"},component:{placeholder:"Choose acc",title:"Payer account",type:m.j.Select},select:{items:[]}}],this.form=this.fb.group({tab:[this.tabs[0]],documentType:[".pdf"],accId:[]}),this.datesError={errorText:this.translation.translate("Year dates error"),alertTitle:"Error",value:!1},this.isClientBankRole=!1,this.destroyed$=new u.x,this._datesPeriod={...this.lastOperationService.chosenPeriod$.value}}get datesPeriod(){return this._datesPeriod}set datesPeriod(ct){this._datesPeriod=ct}get printButtonIsDisabled(){return["1c.01","1c.02","1c.03","xlsx"].includes(this.chosenDocumentType)||!this.chosenCheckingAccount}get isThereAnyFilters(){const ct=this.operationsService.currentFilter$.value;return!!(ct.search||ct.opCodes||ct.fromAmount||ct.toAmount)}get chosenTab(){return this.form.controls.tab.value}set chosenTab(ct){this.form.controls.tab.setValue(ct)}get chosenDocumentType(){return this.form.controls.documentType.value}set chosenDocumentType(ct){this.form.controls.documentType.setValue(ct)}get chosenCheckingAccount(){return this.form.controls.accId.value}ngOnInit(){this.checkAppSettings(),this.statementService.getOnlineStatementsAccounts().pipe((0,h.R)(this.destroyed$)).subscribe(ct=>{if(ct instanceof Object){let pe=Object.values(ct).reduce((Ce,U)=>(Ce.push(...this.configUtilService.getArray(U)),Ce),[]);pe&&(pe=pe.map(Ce=>(Ce?.info||(Ce.info=Ce.number),Ce)),this.selectConfig[0].select.items=this.dynamicFormService.generateProductItemsForSelect(pe),this.selectedProductId&&this.selectConfig[0].select.items.find(U=>U.value===this.selectedProductId)&&setTimeout(()=>this.form.controls.accId.setValue(this.selectedProductId)),this.initPending=!1)}})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}onSubmit(ct){if(!this.chosenCheckingAccount||"print"===ct&&".pdf"!==this.chosenDocumentType)return;this.restPending=!0;const pe={accIdList:this.chosenCheckingAccount,beginDate:this.datePipe.transform(this.datesPeriod.beginDate,"yyyy-MM-dd"),endDate:this.datePipe.transform(this.datesPeriod.endDate,"yyyy-MM-dd"),printMode:this.tabs.find(H=>H===this.chosenTab).forRequest,type1c:this.chosenDocumentType},Ce=this.datePipe.transform(this.datesPeriod.beginDate,"dd-MM-yyyy"),U=this.datePipe.transform(this.datesPeriod.endDate,"dd-MM-yyyy");this.statementService.requestStatementInit(pe).subscribe(H=>{if(".pdf"===this.chosenDocumentType){const Z=`metinv/print/stm_pdf?&doc_ids=${H.statementAnswer.id}&print_mode=${pe.printMode}`,oe=`${this.translation.translate("Extract")}-${H.statementAnswer.head_account_number}-${Ce}-${U}.pdf`;this.statementService.extractStatementPDF(Z,"download"===ct,oe).subscribe(()=>{this.restPending=!1})}else if("xlsx"===this.chosenDocumentType){const Z=`metinv/print/stm_xlsx?&doc_ids=${H.statementAnswer.id}&print_mode=${pe.printMode}`,oe=`${this.translation.translate("Extract")}-${H.statementAnswer.head_account_number}-${Ce}-${U}.xlsx`;this.statementService.extractStatementPDF(Z,"download"===ct,oe).subscribe(()=>{this.restPending=!1})}else{const Z=pe.type1c.replace("c",""),oe=`statement/offline_metinv/ul_get_stmt_1c?begin_date=${pe.beginDate}&end_date=${pe.endDate}&acc_id_list=${pe.accIdList}&version=${Z}&mode=${pe.printMode}`,Pe=`${this.translation.translate("Extract")}-${H.statementAnswer.head_account_number}-${Ce}-${U}.txt`;this.statementService.extractStatementTXT(oe,Pe).subscribe(()=>{this.restPending=!1})}})}checkAppSettings(){this.appConfigService.settings$.pipe((0,h.R)(this.destroyed$)).subscribe(({roles:ct})=>{ct.has(l.NZ)&&(this.isClientBankRole=!0)})}changePeriod(ct){this.datesPeriod=this.lastOperationService.changePeriod(ct,this.datesPeriod.endDate,this.datesPeriod.beginDate,ct.period||""),this.checkDateForMaxPeriod()}checkDateForMaxPeriod(){const ct=a()(this.datesPeriod.endDate),pe=a()(this.datesPeriod.beginDate);this.datesError.value=ct.diff(pe,"days")>365,this.datesError.value&&this.toastCustomService.show(this.datesError.errorText,"warning")}datePickersChanged(ct,pe){this.datesPeriod[pe]=ct,"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(Ce=>"period"===Ce.period)),this.checkDateForMaxPeriod()}static#e=this.\u0275fac=function(pe){return new(pe||we)(x.\u0275\u0275directiveInject(B.UntypedFormBuilder),x.\u0275\u0275directiveInject(_.w),x.\u0275\u0275directiveInject(y.o),x.\u0275\u0275directiveInject(i.D7),x.\u0275\u0275directiveInject(w),x.\u0275\u0275directiveInject(e.uU),x.\u0275\u0275directiveInject($._),x.\u0275\u0275directiveInject(C.$),x.\u0275\u0275directiveInject(T.Pj),x.\u0275\u0275directiveInject(j.j))};static#t=this.\u0275cmp=x.\u0275\u0275defineComponent({type:we,selectors:[["app-extract"]],inputs:{selectedProductId:"selectedProductId"},features:[x.\u0275\u0275ProvidersFeature([w,e.uU])],decls:49,vars:55,consts:[[1,"statement",3,"formGroup"],[1,"last-operations-container__title"],[1,"title-item"],["data-qa","1663145838489",3,"items","periodChange"],[1,"title-item","clickable"],[1,"my-period-dates"],["data-qa","1663145844352",3,"value","dateChange"],["data-qa","1663145848072",3,"value","dateChange"],["class","statement__warning",4,"ngIf"],[1,"statement__tabs"],["data-qa","1663145852016",3,"selectTab"],[3,"label",4,"ngFor","ngForOf"],[1,"statement__type"],[1,"statement__type-title"],[1,"statement__type-radios"],["data-qa","1663146093398",3,"chosen","name","value","click"],["icon","pdf",3,"svgClass"],["data-qa","1663146098633",3,"chosen","name","value","click"],["icon","1c.01",3,"svgClass"],["data-qa","1663146102324",3,"chosen","name","value","click"],["icon","1c.02",3,"svgClass"],["data-qa","1663146105453",3,"chosen","name","value","click"],["icon","1c.03",3,"svgClass"],["data-qa","1663146107229",3,"chosen","name","value","click"],["icon","xlsx",3,"svgClass"],[1,"statement__select"],["data-qa","1663146112039",3,"config","formGroup"],[1,"statement__buttons"],["data-qa","1663146114738",1,"statement__button",3,"click"],["data-qa","1663146248646",3,"disabled","text","type"],["data-qa","1663146117204",1,"statement__button",3,"click"],["data-qa","1663146244233",3,"disabled","text","type"],["class","statement__attention",4,"ngIf"],[3,"hidden"],[1,"statement__warning"],[3,"label"],[1,"statement__attention"]],template:function(pe,Ce){1&pe&&(x.\u0275\u0275elementStart(0,"form",0)(1,"div",1)(2,"div")(3,"span",2),x.\u0275\u0275text(4),x.\u0275\u0275pipe(5,"translate"),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(6,"app-no-input-select",3),x.\u0275\u0275listener("periodChange",function(H){return Ce.changePeriod(H)}),x.\u0275\u0275elementStart(7,"span",4),x.\u0275\u0275text(8),x.\u0275\u0275pipe(9,"lowercase"),x.\u0275\u0275elementEnd()()(),x.\u0275\u0275elementStart(10,"div",5)(11,"div")(12,"span",2),x.\u0275\u0275text(13),x.\u0275\u0275pipe(14,"translate"),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(15,"app-datepicker",6),x.\u0275\u0275listener("dateChange",function(H){return Ce.datePickersChanged(H,"beginDate")}),x.\u0275\u0275elementEnd()(),x.\u0275\u0275elementStart(16,"div")(17,"span",2),x.\u0275\u0275text(18),x.\u0275\u0275pipe(19,"translate"),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(20,"app-datepicker",7),x.\u0275\u0275listener("dateChange",function(H){return Ce.datePickersChanged(H,"endDate")}),x.\u0275\u0275elementEnd()()()(),x.\u0275\u0275template(21,G,3,4,"div",8),x.\u0275\u0275elementStart(22,"div",9)(23,"app-tabs",10),x.\u0275\u0275listener("selectTab",function(H){return Ce.chosenTab=Ce.tabs[H]}),x.\u0275\u0275template(24,ce,2,5,"app-tab",11),x.\u0275\u0275elementEnd()(),x.\u0275\u0275elementStart(25,"div",12)(26,"div",13),x.\u0275\u0275text(27),x.\u0275\u0275pipe(28,"translate"),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(29,"div",14)(30,"app-radio",15),x.\u0275\u0275listener("click",function(){return Ce.chosenDocumentType=".pdf"}),x.\u0275\u0275element(31,"app-svg-icon",16),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(32,"app-radio",17),x.\u0275\u0275listener("click",function(){return Ce.chosenDocumentType="1c.01"}),x.\u0275\u0275element(33,"app-svg-icon",18),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(34,"app-radio",19),x.\u0275\u0275listener("click",function(){return Ce.chosenDocumentType="1c.02"}),x.\u0275\u0275element(35,"app-svg-icon",20),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(36,"app-radio",21),x.\u0275\u0275listener("click",function(){return Ce.chosenDocumentType="1c.03"}),x.\u0275\u0275element(37,"app-svg-icon",22),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(38,"app-radio",23),x.\u0275\u0275listener("click",function(){return Ce.chosenDocumentType="xlsx"}),x.\u0275\u0275element(39,"app-svg-icon",24),x.\u0275\u0275elementEnd()()(),x.\u0275\u0275elementStart(40,"div",25),x.\u0275\u0275element(41,"app-dynamic-form",26),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(42,"div",27)(43,"div",28),x.\u0275\u0275listener("click",function(){return Ce.onSubmit("download")}),x.\u0275\u0275element(44,"app-button",29),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(45,"div",30),x.\u0275\u0275listener("click",function(){return Ce.onSubmit("print")}),x.\u0275\u0275element(46,"app-button",31),x.\u0275\u0275elementEnd(),x.\u0275\u0275template(47,xe,3,4,"div",32),x.\u0275\u0275elementEnd(),x.\u0275\u0275element(48,"app-loader",33),x.\u0275\u0275elementEnd()),2&pe&&(x.\u0275\u0275property("formGroup",Ce.form),x.\u0275\u0275advance(4),x.\u0275\u0275textInterpolate(x.\u0275\u0275pipeBind2(5,41,"Extract for",Ce.lang)),x.\u0275\u0275advance(2),x.\u0275\u0275property("items",Ce.lastOperationService.periods),x.\u0275\u0275advance(2),x.\u0275\u0275textInterpolate(x.\u0275\u0275pipeBind1(9,44,Ce.datesPeriod.currentPeriod.description)),x.\u0275\u0275advance(5),x.\u0275\u0275textInterpolate(x.\u0275\u0275pipeBind2(14,46,"From",Ce.lang)),x.\u0275\u0275advance(2),x.\u0275\u0275property("value",Ce.datesPeriod.beginDate),x.\u0275\u0275advance(3),x.\u0275\u0275textInterpolate(x.\u0275\u0275pipeBind2(19,49,"To",Ce.lang)),x.\u0275\u0275advance(2),x.\u0275\u0275property("value",Ce.datesPeriod.endDate),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngIf",Ce.isClientBankRole),x.\u0275\u0275advance(3),x.\u0275\u0275property("ngForOf",Ce.tabs),x.\u0275\u0275advance(3),x.\u0275\u0275textInterpolate1(" ",x.\u0275\u0275pipeBind2(28,52,"Document type",Ce.lang)," "),x.\u0275\u0275advance(3),x.\u0275\u0275property("chosen",".pdf"===Ce.chosenDocumentType)("name","document-type")("value",".pdf"),x.\u0275\u0275advance(1),x.\u0275\u0275property("svgClass",".pdf"===Ce.chosenDocumentType?"statement__icon statement__icon_active":"statement__icon"),x.\u0275\u0275advance(1),x.\u0275\u0275property("chosen","1c.01"===Ce.chosenDocumentType)("name","document-type")("value","1c.01"),x.\u0275\u0275advance(1),x.\u0275\u0275property("svgClass","1c.01"===Ce.chosenDocumentType?"statement__icon statement__icon_active":"statement__icon"),x.\u0275\u0275advance(1),x.\u0275\u0275property("chosen","1c.02"===Ce.chosenDocumentType)("name","document-type")("value","1c.02"),x.\u0275\u0275advance(1),x.\u0275\u0275property("svgClass","1c.02"===Ce.chosenDocumentType?"statement__icon statement__icon_active":"statement__icon"),x.\u0275\u0275advance(1),x.\u0275\u0275property("chosen","1c.03"===Ce.chosenDocumentType)("name","document-type")("value","1c.03"),x.\u0275\u0275advance(1),x.\u0275\u0275property("svgClass","1c.03"===Ce.chosenDocumentType?"statement__icon statement__icon_active":"statement__icon"),x.\u0275\u0275advance(1),x.\u0275\u0275property("chosen","xlsx"===Ce.chosenDocumentType)("name","document-type")("value","xlsx"),x.\u0275\u0275advance(1),x.\u0275\u0275property("svgClass","xlsx"===Ce.chosenDocumentType?"statement__icon statement__icon_active":"statement__icon"),x.\u0275\u0275advance(2),x.\u0275\u0275property("config",Ce.selectConfig)("formGroup",Ce.form),x.\u0275\u0275advance(3),x.\u0275\u0275property("disabled",!Ce.chosenCheckingAccount||Ce.datesError.value)("text","Download")("type","large"),x.\u0275\u0275advance(2),x.\u0275\u0275property("disabled",Ce.printButtonIsDisabled||Ce.datesError.value)("text","Print")("type","large"),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngIf",Ce.isThereAnyFilters),x.\u0275\u0275advance(1),x.\u0275\u0275property("hidden",!Ce.initPending&&!Ce.restPending))},dependencies:[B.\u0275NgNoValidate,B.NgControlStatusGroup,I.Q,F.b,z.U,X.R,p.n,P.i,E.S,B.FormGroupDirective,e.sg,e.O5,R.r,ne.r,i.X$,e.i8],styles:['@charset "UTF-8";.statement[_ngcontent-%COMP%]   .last-operations-container__title[_ngcontent-%COMP%]{padding:0;display:flex;align-items:center}.statement[_ngcontent-%COMP%]   .title-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;font-weight:700;color:#080708;padding-right:8px}.statement[_ngcontent-%COMP%]   .title-item.clickable[_ngcontent-%COMP%]{color:#7180b9;text-decoration:underline;cursor:pointer;display:block;height:34px;padding:0;margin-right:8px;opacity:1}.statement__warning[_ngcontent-%COMP%]{margin-top:20px;font-weight:600;font-size:20px;color:#7180b9}.statement__tabs[_ngcontent-%COMP%]{border-top:1px solid #dedede;border-bottom:1px solid #dedede;margin:30px 0;display:flex}.statement__type[_ngcontent-%COMP%]{padding-bottom:30px;margin-bottom:30px;border-bottom:1px solid #dedede}.statement__type-title[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#444;margin-bottom:21px}.statement__type-radios[_ngcontent-%COMP%]{display:flex}.statement__type-radios[_ngcontent-%COMP%]   app-radio[_ngcontent-%COMP%]{margin-right:138px}.statement__type-radios[_ngcontent-%COMP%]   app-radio[_ngcontent-%COMP%]:last-child{margin-right:0}.statement__select[_ngcontent-%COMP%]{margin-bottom:30px}.statement__buttons[_ngcontent-%COMP%]{display:flex;align-items:center}.statement__button[_ngcontent-%COMP%]{margin-right:20px}.statement__button[_ngcontent-%COMP%]:last-child{margin-right:0}.statement__attention[_ngcontent-%COMP%]{font-size:16px;color:#88909b;margin-left:10px}[_nghost-%COMP%]     .statement__icon{width:48px;height:48px;margin-left:20px;fill:#284681;transition:fill .1s ease}[_nghost-%COMP%]     .statement__icon_active{fill:#2f54eb}  .cdk-overlay-container{z-index:1200}.statement[_ngcontent-%COMP%]   .my-period-dates[_ngcontent-%COMP%]{margin-top:2px}']})}(0,n.gn)([(0,i.SQ)()],we.prototype,"lang",void 0)},43270:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>y});var n=t(39646),e=t(70262),i=t(63900),d=t(4128),a=t(54004),u=t(86099),h=t(6146),l=t(23785),m=t(94650),x=t(3751),O=t(37601),L=t(89435),w=t(40929),B=t(15644),_=t(29198);let y=(()=>{class ${constructor(T,j,I,F,z,X){this.apiService=T,this.userDataService=j,this.currencyOperationsInfoService=I,this.documentService=F,this.configUtilService=z,this.vedService=X}static isDocPlatporBpAvailableForCreation(T){return 1===T[l.bX]&&1===T[l.J9]}getDocumentByIdAndDocType(T,j){return T&&j?this.documentService.getDocumentEdit(T,j).pipe((0,e.K)(I=>(0,n.of)(I))):(0,n.of)(null)}getInitialData(T,j){return this.getDocumentByIdAndDocType(T,j).pipe((0,i.w)(I=>(0,d.D)([this.getPlatporBpPrefillData(),this.getUrgentTypes(),this.getNdsTypes(),this.vedService.getSortedByIsoCodeCurrencyCatalog(),this.userDataService.getClientInfoOrganization(),this.currencyOperationsInfoService.getAllDocumentSettingsInOneObject(),this.getDocumentAccoutsAndSettings(),(0,n.of)(I),this.getDocumentCTIById(I?.inq181)])))}createRurPaymentWithAttachments(T,j){return this.apiService.post("document_bp/create/metinv",T).pipe((0,i.w)(I=>(0,d.D)([(0,n.of)(I),this.userDataService.postAttachment(I.id,j)])),(0,a.U)(([I,F])=>I))}sendCurrencyOperations(T,j){return this.currencyOperationsInfoService.sendForSign(T).pipe((0,i.w)(I=>(0,d.D)(this.userDataService.postAttachment(I.ownerId,j)).pipe((0,u.z)(()=>(0,n.of)(I)))))}getPlatporBpPrefillData(T){return this.apiService.post("document_bp/create/metinv/prefill",T||{})}getNdsTypes(){return this.apiService.publicGet("ru_rko_nds_type")}getUrgentTypes(){return this.apiService.publicGet("ru_rko_urgent_type")}getDocumentAccoutsAndSettings(){return this.apiService.post("document_bp/create/metinv",{}).pipe((0,a.U)(T=>({accIdProducts:this.convertProducts(T.accIdProducts?T.accIdProducts:{}),docSettings:T.docSettings})))}convertProducts(T){return Object.keys(T).reduce((j,I)=>j.concat(this.configUtilService.getArray(T[I])),[])}getDocumentCTIById(T){return T?this.apiService.get(`document/byid?doc_module=ibankul_curr&doc_type=${h.o.InqCurr181}&doc_ids=${T}`).pipe((0,e.K)(()=>(0,n.of)(null))):(0,n.of)(null)}static#e=this.\u0275fac=function(j){return new(j||$)(m.\u0275\u0275inject(x.s),m.\u0275\u0275inject(O.M),m.\u0275\u0275inject(L.X),m.\u0275\u0275inject(w.Z),m.\u0275\u0275inject(B.Pj),m.\u0275\u0275inject(_.$))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac})}return $})()},23785:(Ee,Q,t)=>{"use strict";t.d(Q,{J9:()=>i,bX:()=>e,u1:()=>a,uN:()=>n,v5:()=>d});const n="IS_DOC_PLATPOR_BP_AVAILABLE_FOR_CREATION",e="PAY/PLATPOR_BP",i="SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION",d="{VO\u0425\u0425\u0425\u0425\u0425}";var a=(()=>{return(u=a||(a={})).EDIT="edit",u.COPY="copy",a;var u})()},96636:(Ee,Q,t)=>{"use strict";t.d(Q,{w:()=>u});var n=t(97582),e=t(16611),i=t(94650),d=t(38101),a=t(90995);class u{constructor(l){this.modalService=l}closeModal(){this.modalService.close()}ngOnInit(){}static#e=this.\u0275fac=function(m){return new(m||u)(i.\u0275\u0275directiveInject(d.Z))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:u,selectors:[["app-bik-warning-modal"]],decls:6,vars:4,consts:[["data-qa","1657972031827",1,"warning-text"],[1,"warning-text__content"],[1,"warning-text__controls"],["data-qa","1657972034824","text","Ok","type","large",3,"click"]],template:function(m,x){1&m&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",2)(5,"app-button",3),i.\u0275\u0275listener("click",function(){return x.closeModal()}),i.\u0275\u0275elementEnd()()()),2&m&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(3,1,"BIK bank restrictions",x.lang)," "))},dependencies:[a.r,e.X$],styles:[".warning-text[_ngcontent-%COMP%]{position:relative}.warning-text__content[_ngcontent-%COMP%]{margin:40px 0;font-size:1.2em}.warning-text__controls[_ngcontent-%COMP%]{display:flex;justify-content:center;height:60px;margin-top:15px}.warning-text__controls-button[_ngcontent-%COMP%]{width:80px}"]})}(0,n.gn)([(0,e.SQ)()],u.prototype,"lang",void 0)},26654:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>I});var n=t(97582),e=t(16611),i=t(94650),d=t(37601),a=t(64426),u=t(15644),h=t(40929),l=t(44180),m=t(38101),x=t(9149),O=t(68735),L=t(75568),w=t(36895),B=t(90995);const _=["fileInput"];function y(F,z){if(1&F){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",9)(1,"app-radio",10),i.\u0275\u0275listener("click",function(P){const R=i.\u0275\u0275restoreView(X).$implicit,ne=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(ne.changeRadioButtonValue(P,R))}),i.\u0275\u0275elementStart(2,"div",11),i.\u0275\u0275text(3),i.\u0275\u0275pipe(4,"translate"),i.\u0275\u0275elementEnd()()()}if(2&F){const X=z.$implicit,p=z.index,P=i.\u0275\u0275nextContext(2);i.\u0275\u0275attribute("data-qa","1657971983810"+p),i.\u0275\u0275advance(1),i.\u0275\u0275property("chosen",X.chosen)("name","test")("value",X.message),i.\u0275\u0275attribute("data-qa","1657971978862"+p),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(4,6,X.message,P.lang)," ")}}function $(F,z){if(1&F&&(i.\u0275\u0275elementStart(0,"div",7),i.\u0275\u0275template(1,y,5,9,"div",8),i.\u0275\u0275elementEnd()),2&F){const X=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",X.importedDocs)}}function C(F,z){if(1&F){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",12)(1,"label",13),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(X);const P=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(P.reset())}),i.\u0275\u0275elementStart(2,"span"),i.\u0275\u0275text(3),i.\u0275\u0275pipe(4,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"input",14,15),i.\u0275\u0275listener("input",function(P){i.\u0275\u0275restoreView(X);const E=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(E.onFileInput(P))}),i.\u0275\u0275elementEnd()()()}if(2&F){const X=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(4,1,"Load",X.lang))}}function T(F,z){if(1&F){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"app-button",23),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(X);const P=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(P.goToImportedList())}),i.\u0275\u0275pipe(1,"translate"),i.\u0275\u0275elementEnd()}if(2&F){const X=i.\u0275\u0275nextContext(2);i.\u0275\u0275propertyInterpolate("text",i.\u0275\u0275pipeBind2(1,1,"Go To Imported 1c Transfer RUR DOC List",X.lang))}}function j(F,z){if(1&F){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",16)(1,"div",17)(2,"app-button",18),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(X);const P=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(P.goToDocument(P.choosedDocId))}),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(4,"div",12)(5,"label",19),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(X);const P=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(P.reset())}),i.\u0275\u0275elementStart(6,"span"),i.\u0275\u0275text(7),i.\u0275\u0275pipe(8,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(9,"input",20,15),i.\u0275\u0275listener("input",function(P){i.\u0275\u0275restoreView(X);const E=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(E.onFileInput(P))}),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(11,"div",21),i.\u0275\u0275template(12,T,2,4,"app-button",22),i.\u0275\u0275elementEnd()}if(2&F){const X=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275classProp("disabled",X.isGoToPaymentDisabled),i.\u0275\u0275propertyInterpolate("text",i.\u0275\u0275pipeBind2(3,6,"Go To Imported 1c Transfer RUR DOC",X.lang)),i.\u0275\u0275property("disabled",X.isGoToPaymentDisabled),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(8,9,"Load More",X.lang)),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngIf",+X.importedMessageList.countLoaded>0)}}class I{constructor(z,X,p,P,E,R,ne,G){this.translation=z,this.userDataService=X,this.importService=p,this.configUtilService=P,this.documentService=E,this.router=R,this.modalService=ne,this.toast=G,this.alertType="success",this.load=!1,this.isCountLoaded=!1,this.importedDocs=[],this.isGoToPaymentDisabled=!0}ngOnInit(){}checkOnWrongContent(){}onFileInput(z){this.isCountLoaded=!1;const X=z.target.files;if(!X.length)return;const p=X[0];let P;if(/[.]/.exec(p.name)&&(P=/[.]/.exec(p.name)?/[^.]+$/.exec(p.name):void 0),"txt"!==P[0])return this.alertType="error",this.toast.show("Unsupported file type!","error"),void(z.target.value="");const E=new FormData;E.append("file",p,p.name),this.load=!0,this.importedMessageList&&this.importedMessageList.items&&(this.importedMessageList.items=void 0),this.userDataService.postImportedData(E).subscribe(R=>{if(this.importedDocs=[],this.importedMessageList=[],R&&R.items&&(R.items=this.configUtilService.getArray(R.items),R.items[0]&&R.items[0].message&&R.items[0].message.indexOf("Windows")>-1))return this.alertType="error",this.importedMessageList={items:[{message:R.items[0].message}]},this.toast.show(R.items[0].message,"error"),void(this.load=!1);if(1==+R.countLoaded&&0==+R.countNotLoaded){const ne=R.items.find(G=>!!G.docId).docId;this.goToDocument(ne)}else if(0==+R.countLoaded&&1==+R.countNotLoaded){this.alertType="error";const ne=R.items.find(G=>"failure"===G.typeMessage);R.items=[],R.items.push(ne),this.importedMessageList=R,this.toast.show(R.items.map(G=>G.message).toString(),"error")}else if(+R.countLoaded>0||+R.countNotLoaded>0){this.alertType="success";const ne=R.items.find(xe=>"end"===xe.typeMessage),G=R.items.find(xe=>"success_count"===xe.typeMessage),ce=R.items.find(xe=>"failure_count"===xe.typeMessage);this.importedDocs=R.items.filter(xe=>"success"===xe.typeMessage||"failure"===xe.typeMessage),R.items=[],R.items=[ne,G,ce],this.importedMessageList=R,this.toast.show(R.items.map(xe=>xe.message).toString(),"success"),this.isCountLoaded=!0}this.load=!1},R=>{this.importedMessageList={items:[{message:"Server Error",typeMessage:"error"}]},this.toast.show("Server Error","error")})}reset(){this.fileInput.nativeElement.value=""}changeRadioButtonValue(z,X){this.isGoToPaymentDisabled="failure"===X.typeMessage,X.docId&&(this.choosedDocId=X.docId)}goToDocument(z){this.documentService.getDocumentEdit(z).subscribe(X=>{this.documentService.paymentData$.next(X),this.load=!1,this.modalService.close(),this.router.navigate(["/transfer-rur"],{queryParams:{prefill:!1}})})}goToImportedList(){this.importService.imported$.next(!0),this.router.navigate(["desktop"])}static#e=this.\u0275fac=function(X){return new(X||I)(i.\u0275\u0275directiveInject(e.D7),i.\u0275\u0275directiveInject(d.M),i.\u0275\u0275directiveInject(a.a),i.\u0275\u0275directiveInject(u.Pj),i.\u0275\u0275directiveInject(h.Z),i.\u0275\u0275directiveInject(l.F0),i.\u0275\u0275directiveInject(m.Z),i.\u0275\u0275directiveInject(x.j))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:I,selectors:[["app-import-transfer-rur-modal"]],viewQuery:function(X,p){if(1&X&&i.\u0275\u0275viewQuery(_,5),2&X){let P;i.\u0275\u0275queryRefresh(P=i.\u0275\u0275loadQuery())&&(p.fileInput=P.first)}},decls:10,vars:10,consts:[["data-qa","1657971931237",1,"import"],[1,"import__title"],["class","import-docs",4,"ngIf"],[2,"display","flex","justify-content","space-between"],["class","import__button load",4,"ngIf","ngIfElse"],["showButtons",""],[3,"hidden"],[1,"import-docs"],["class","import-doc",4,"ngFor","ngForOf"],[1,"import-doc"],[3,"chosen","name","value","click"],[1,"multi-select__menu__item-text",2,"padding-left","20px","max-width","80%"],[1,"import__button","load"],["data-qa","1657972006179",1,"import__button-label",3,"click"],["data-qa","1657972008392","type","file",1,"import__button-label__input",3,"input"],["fileInput",""],[2,"display","flex"],[1,"import__button","view"],["data-qa","1657972013129",3,"disabled","text","click"],["data-qa","1657972017229",1,"import__button-label",3,"click"],["data-qa","1657972019841","type","file",1,"import__button-label__input",3,"input"],[1,"import__button"],["class","controls__item desktop-button","data-qa","1657972022915","type","small-bordered",3,"text","click",4,"ngIf"],["data-qa","1657972022915","type","small-bordered",1,"controls__item","desktop-button",3,"text","click"]],template:function(X,p){if(1&X&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(4,$,2,1,"div",2),i.\u0275\u0275elementStart(5,"div",3),i.\u0275\u0275template(6,C,7,4,"div",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(7,j,13,12,"ng-template",null,5,i.\u0275\u0275templateRefExtractor),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(9,"app-loader",6)),2&X){const P=i.\u0275\u0275reference(8);i.\u0275\u0275classProp("load",p.load),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(3,7,"Import 1c document request",p.lang)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",p.importedDocs.length),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",!p.isCountLoaded)("ngIfElse",P),i.\u0275\u0275advance(3),i.\u0275\u0275property("hidden",!p.load)}},dependencies:[O.U,L.R,w.sg,w.O5,B.r,e.X$],styles:['@charset "UTF-8";.import.load[_ngcontent-%COMP%]{opacity:.4}.import__title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;font-weight:700;color:#080708;border-bottom:1px solid #dedede;padding-bottom:35px}.import__header-value[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}.import__alert[_ngcontent-%COMP%]{margin-top:12px;padding:12px;border-radius:4px;color:#fff;white-space:break-spaces;word-break:break-word;max-width:550px}.import__alert.success[_ngcontent-%COMP%]{background-color:#28b26d}.import__alert.warning[_ngcontent-%COMP%]{background-color:#f3ac24}.import__alert.error[_ngcontent-%COMP%]{background-color:#d9291e}.import__button[_ngcontent-%COMP%]{padding-top:20px}.import__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.import__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.import__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.import__button-label__input[_ngcontent-%COMP%]{display:none}.import__button.view[_ngcontent-%COMP%]{margin-right:20px}.import__button.load[_ngcontent-%COMP%]{width:170px}.import__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.import-docs[_ngcontent-%COMP%]{margin:20px 0;border-top:1px solid #dedede;border-bottom:1px solid #dedede;max-height:270px;overflow-y:scroll}.import-doc[_ngcontent-%COMP%]{padding:10px 0}.import__title[_ngcontent-%COMP%] + .import-docs[_ngcontent-%COMP%]{margin-top:0;border-top:none}']})}(0,n.gn)([(0,e.SQ)()],I.prototype,"lang",void 0)},10956:(Ee,Q,t)=>{"use strict";t.d(Q,{Ax:()=>x,B3:()=>B,H1:()=>j,L_:()=>$,N0:()=>X,S0:()=>O,Tv:()=>y,VU:()=>l,X8:()=>L,at:()=>w,bF:()=>T,cU:()=>z,cc:()=>F,n6:()=>h,rM:()=>I,sO:()=>_,u7:()=>C,z3:()=>m});var n=t(24006),e=t(53065),d=t(15644),a=t(49066),u=t(66630);const h="30223810900000000001",l=[/\d/,/\d/,/\d/,/\d/,/\d/," ",/\d/,/\d/,/\d/," ",/\d/," ",/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],m=(p=2)=>(0,e.createNumberMask)({prefix:"",allowDecimal:!0,thousandsSeparatorSymbol:" ",decimalLimit:p}),x=(0,e.createNumberMask)({prefix:"",allowDecimal:!1,thousandsSeparatorSymbol:""}),O=(0,e.createNumberMask)({prefix:"",allowDecimal:!1,thousandsSeparatorSymbol:"",allowLeadingZeroes:!0}),L=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],w=/\d\d.\d\d.\d\d\d\d/,B=[{field:{name:"corrFullname",validators:[n.Validators.required]},component:{type:a.j.Input,title:"corrName or INN",placeholder:"Enter data",maxlength:160},visual:{close:!0},dataQa:"1663140830374"},{field:{name:"corrInn",validators:[u.Lo]},component:{type:a.j.Svetofor,title:"corrInn",placeholder:"Enter data",maxlength:12},visual:{hide:!1},dataQa:"1663140833651"},{field:{name:"corrKpp"},component:{type:a.j.Input,title:"corrKpp",placeholder:"Enter data",maxlength:9},visual:{cssClass:"",hide:!0},mask:{TextMask:O},dataQa:"1663140836758"},{field:{name:"corrBankBik",validators:[n.Validators.required]},component:{type:a.j.Biksearch,title:"corrBankBik",placeholder:"Enter data",maxlength:9},visual:{hide:!1},dataQa:"1663140839470"},{field:{name:"corrAccNumber",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"Corr account",placeholder:"Enter data",maxlength:20},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:l,stripMask:!0},select:{items:[]},dataQa:"1663140843780"},{field:{name:"corrAccNumberButton"},component:{type:a.j.Button,title:"Save corr"},visual:{cssClass:"half-inline bordered disabled",buttonType:"submit",hide:!1,visualDisabled:!0},dataQa:"1663140882365"},{field:{name:"uin",validators:[]},component:{type:a.j.Input,title:"UIN",placeholder:"Enter data",maxlength:25},visual:{cssClass:"",hide:!0},dataQa:"1663140885837"},{field:{name:"uip",validators:[]},component:{type:a.j.Input,title:"UIP",placeholder:"Enter data",maxlength:25},visual:{hide:!1},dataQa:"1663140888662"}],_=[{field:{name:"accId",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Payer account",placeholder:"Enter data"},select:{items:[]},dataQa:"1663140891521"},{field:{name:"justificationMoney"},component:{type:a.j.Input,title:"Cash transfer justification",placeholder:"Enter data",maxlength:15},visual:{hide:!0},hint:{text:"\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u0438\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0430\u0442\u044c\u0438 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043f\u043e \u0441\u043c\u0435\u0442\u0435",type:"info-type"}},{field:{name:"fullname",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Payer name",placeholder:"Enter data"},visual:{hide:!1},dataQa:"1663140897084"},{field:{name:"inn",validators:[n.Validators.required]},component:{type:a.j.Input,title:"payerInn",placeholder:"Enter data",maxlength:10},mask:{TextMask:O},visual:{cssClass:"half-inline",visualDisabled:!0,hide:!1},dataQa:"1663140907525"},{field:{name:"kpp"},component:{type:a.j.Autocomplete,title:"payerKpp",placeholder:"Enter data"},visual:{cssClass:"half-inline",hide:!0},select:{items:[]},dataQa:"1663140911045"},{field:{name:"payerBik",validators:[n.Validators.required]},component:{type:a.j.Input,title:"BIK",placeholder:"Enter data",maxlength:9},visual:{visualDisabled:!0,hide:!1},dataQa:"1663140914385"},{field:{name:"payerBankName"},component:{type:a.j.Input,title:"Payer bank name",placeholder:"Enter data"},visual:{visualDisabled:!0,hide:!1},dataQa:"1663140917742"}],y=[{field:{name:"amount",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Amount and symbol",placeholder:"Enter data"},visual:{cssClass:"three-inline"},mask:{TextMask:m(2),type:"amount",stripMask:!0,decimalSymbol:"."},dataQa:"1663140921601"},{field:{name:"ndsTypeId"},component:{type:a.j.Select,title:"NDS type",placeholder:"Enter data"},visual:{cssClass:"three-inline"},select:{items:[]},dataQa:"1663140925563"},{field:{name:"commission"},component:{type:a.j.Input,title:"Commission and symbol"},visual:{cssClass:"three-inline",visualDisabled:!0},dataQa:"1663140928525"},{field:{name:"revenueTypeCode"},component:{type:a.j.Select,title:"Purpose of payment code",placeholder:"Enter data"},visual:{hide:!0},select:{items:[]},dataQa:"1663140933182"},{field:{name:"description",validators:[n.Validators.required]},component:{type:a.j.TextArea,title:"Description",placeholder:"Enter data",maxlength:210,autoSize:!0},hint:{text:""},dataQa:"1663140936542"}],$=[{field:{name:"stat",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"Stat 101",placeholder:"Enter data"},select:{items:[]},dataQa:"1663140939853"},{field:{name:"kbk"},component:{type:a.j.Autocomplete,title:"Stat 104",placeholder:"Enter data"},select:{items:[]},visual:{cssClass:"half-inline"},dataQa:"1663140942526"},{field:{name:"okato"},component:{type:a.j.Input,title:"Stat 105",placeholder:"Enter data",maxlength:8},visual:{cssClass:"half-inline"},mask:{TextMask:O},dataQa:"1663140946566"},{field:{name:"ground",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"Stat 106",placeholder:"Enter data"},select:{items:[]},dataQa:"1663140950020"},{field:{name:"tax1",disabled:!1},component:{type:a.j.Autocomplete,title:"Stat 107",placeholder:"Enter data"},visual:{cssClass:"three-inline",hide:!0},select:{items:[],filterBy:"value"},dataQa:"1663140953179"},{field:{name:"tax"},component:{type:a.j.Input,title:"Stat 107 tamozh",placeholder:"Enter data",maxlength:8},visual:{cssClass:"",hide:!0},dataQa:"1663140956078"},{field:{name:"tax2"},component:{type:a.j.Input,title:"Enter month",placeholder:"Enter data",maxlength:2},visual:{cssClass:"three-inline",hide:!0},mask:{TextMask:O},dataQa:"1663140959833"},{field:{name:"tax3"},component:{type:a.j.Input,title:"Enter year",placeholder:"Enter data",maxlength:4},visual:{cssClass:"three-inline",hide:!0},mask:{TextMask:x},dataQa:"1663140963028"},{field:{name:"taxdocnum",validators:[n.Validators.required,n.Validators.pattern("^(0|((0[1-9]|1[1-4]|2[245689]|30)[;])?[\u0430-\u044f\u0410-\u042f0-9-/]{2,})$")]},component:{type:a.j.Input,title:"Stat 108",placeholder:"Enter data",maxlength:15},visual:{cssClass:"half-inline"},dataQa:"1663140965514"},{field:{name:"taxdocdate",validators:[n.Validators.required],noConvert:!0},component:{type:a.j.DatePicker,title:"Stat 109",placeholder:"Enter data"},visual:{cssClass:"half-inline",matIcon:"calendar_today",matStyleOutlined:!0},mask:{TextMask:L},dataQa:"1663140968655"},{field:{name:"corrBankRuAccId"},component:{type:a.j.Select,title:"Corr bank Account ID",placeholder:"Enter data"},visual:{hide:!0},select:{items:[]},dataQa:"1663140970646"}],C={field:{name:"taxdocdate",validators:[n.Validators.required],noConvert:!0},component:{type:a.j.DatePicker,title:"Stat 109",placeholder:"Enter data"},visual:{cssClass:"half-inline",matIcon:"calendar_today",matStyleOutlined:!0},mask:{TextMask:L},dataQa:"1663140973194"},T={field:{name:"taxdocdate",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Stat 109",placeholder:"Enter data"},visual:{cssClass:"half-inline",icon:""},mask:{TextMask:[/\d/,/\d/]},dataQa:"1663140975619"},j=[{field:{name:"w-o-accordion"},component:{type:a.j.Accordion,title:"Write-off Account"},dataQa:"1663140977382"},{field:{name:"accId",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Write-off Account",placeholder:"Enter data"},select:{items:[]},dataQa:"1663140979151"},{field:{name:"justificationMoney"},component:{type:a.j.Input,title:"Cash transfer justification",placeholder:"Enter data",maxlength:15},visual:{hide:!0},hint:{text:"\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u0438\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0430\u0442\u044c\u0438 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043f\u043e \u0441\u043c\u0435\u0442\u0435",type:"info-type"}},{field:{name:"corr-accordion"},component:{type:a.j.Accordion,title:"Deposit Account and sum"},dataQa:"1663140980881"},{field:{name:"corrAccId",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Deposit Account",placeholder:"Enter data"},select:{items:[]},dataQa:"1663140983533"}],I=[{value:"FL",caption:"\u0424\u041b"},{value:"KFH",caption:"\u041a\u0424\u0425"},{value:"lawyer",caption:"\u0430\u0434\u0432\u043e\u043a\u0430\u0442"},{value:"notary",caption:"\u043d\u043e\u0442\u0430\u0440\u0438\u0443\u0441"},{value:"IP",caption:"\u0418\u041f"},{value:"UL",caption:"\u042e\u041b"}],F=()=>[{field:{name:"fullname",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Taxpayer name",placeholder:"Enter data",maxlength:160},visual:{close:!1,cssClass:"two-thirds-inline"},dataQa:"1663140996100"},{field:{name:"type",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Taxpayer type",placeholder:"Enter data"},select:{items:[]},visual:{cssClass:"three-inline "},dataQa:"1663140998299"},{field:{name:"address",validators:[]},component:{type:a.j.Input,title:"Taxpayer address",placeholder:"Enter data"},visual:{hide:!0},dataQa:"1663141000444"},{field:{name:"inn",validators:[n.Validators.minLength(10),n.Validators.required]},component:{type:a.j.Input,title:"Taxpayer inn",placeholder:"Enter data",maxlength:12},mask:{TextMask:O},visual:{cssClass:"half-inline"},dataQa:"1663141003265"},{field:{name:"kpp"},component:{type:a.j.Input,title:"Taxpayer kpp",placeholder:"Enter data",maxlength:9},mask:{TextMask:O},visual:{cssClass:"half-inline"},dataQa:"1663141005709"},{field:{name:"saveTaxpayerButton"},component:{type:a.j.Button,title:"Save taxpayer"},visual:{cssClass:"half-inline bordered",buttonType:"submit",hide:!1,visualDisabled:!0},dataQa:"1663141008015"}],z=()=>[{field:{name:"notifyReceiverPhone",validators:[n.Validators.required]},component:{type:a.j.Input,title:"SMS on phone",placeholder:"Enter data"},mask:{TextMask:d.Pj.phoneMask},visual:{cssClass:"half-inline"},dataQa:"1663141018315"},{field:{name:"notifyReceiverEmail",validators:[n.Validators.required,n.Validators.email]},component:{type:a.j.Input,title:"Ticket on e-mail",placeholder:"Enter data"},mask:{TextMask:e.emailMask},visual:{cssClass:"half-inline"},dataQa:"1663141020908"}],X=()=>[{field:{name:"loanAgreementNumber",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Loan agreement number",placeholder:"Enter data"},select:{items:[]},dataQa:"1667209802"}]},3480:(Ee,Q,t)=>{"use strict";t.d(Q,{N:()=>y});var n=t(98202),e=t(17489),d=t(39646),a=t(54004),u=t(70262),h=t(6146),l=t(63471),m=t(94650),x=t(3751),O=t(14228),L=t(16611),w=t(15644),B=t(9149),_=t(36895);let y=(()=>{class ${constructor(T,j,I,F,z,X){this.apiService=T,this.operationService=j,this.translationService=I,this.configUtilService=F,this.toastCustomService=z,this.datePipe=X,this.icons=new l.R(this.translationService).getIcons(),this.lastIdList="",this.currentPage={size:10,number:0,total:0},this.AMOUNT_OF_DOCUMENTS_TO_REQUEST=100,this.docType="doc_accession_application",this.docModule="ibankul",this.docTypes={docTypes:[{docType:this.docType,docModule:this.docModule}]}}getDepositAgreementDocuments(T){return this.getDepositAgremeentDocumentList().pipe((0,a.U)(j=>{let I=[];return T||(this.lastIdList=""),j&&(I=j.map(F=>(F.document.statusCaption&&(F.document.statusCaption=this.configUtilService.capitalizeFirstLetter(F.document.statusCaption)),("decline"===F.document.status||"revoke"===F.document.status||"revoke_document"===F.document.status||"cancel"===F.document.status)&&(F.document.isOpenable=!0,F.document.isOpen=!0),{document:F.document,actions:[...this.operationService.getActions(this.icons,F.actions)]}))),I}))}getDepositAgremeentDocumentList(T){let j=`last_documents_full?number_of_entries=${this.AMOUNT_OF_DOCUMENTS_TO_REQUEST}`;return T&&(j+=`&point_of_reference=${this.lastIdList}`),this.apiService.post(j,this.docTypes).pipe((0,a.U)(I=>I&&I.lastDocumentFullWithActions&&!e.isEmpty(I.lastDocumentFullWithActions)?Array.isArray(I.lastDocumentFullWithActions)?[...I.lastDocumentFullWithActions]:[I.lastDocumentFullWithActions]:null))}getNsoApplicationDocuments(T){return this.getInitialListNSODocuments(T).pipe((0,u.K)(j=>(this.toastCustomService.errorHandle(j),(0,d.of)({page:{number:T.number.toString(),size:T.size.toString(),total:"0"},documents:[]}))),(0,a.U)(j=>{let I=[];return j?.documents?.length&&(I=this.prepareNsoApplicationList(j)),{documents:I,page:j?.page}}))}getInitialListNSODocuments(T){return this.apiService.post("metinv/pageable/document/multi_types_page",{visual:!0,page:T,lastDocumentFilter:{docTypes:[{docModule:"ibankul",docType:h.o.DocNsoApplication}]}}).pipe((0,a.U)(z=>z?.documents&&!e.isEmpty(z.documents)?{documents:Array.isArray(z.documents)?[...z.documents]:[z.documents],page:z.page}:null))}getNextDocumentMetadata(){return this.apiService.get(`document/number/next?doc_module=${this.docModule}&doc_type=${this.docType}`)}createDepositAgreementDocument(){return this.apiService.post("dealing/create_accession_application",{})}createNSODocument(){return this.apiService.post("dealing/create_nso_application",{})}getDepositAgreementAccess(){return this.apiService.get("tools/check")}getNsoApplicationAccess(){return this.apiService.get("dealing/nso/check/status").pipe((0,u.K)(()=>(0,d.of)(!1)))}prepareNsoApplicationList(T){return T.documents.map(j=>{j?.declineInfo&&(j.isOpenable=!0,j.isOpen=!0);const I=this.configUtilService.getArray(j?.actions).filter(X=>"view"!==X);j.actions=this.operationService.getActions(this.icons,I);let F="-";const z=j.shortName||j.fullname;return F=j.docType===h.o.DocNsoApplication?"\u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438 \u043a \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u041d\u0421\u041e":"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043a \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0443 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430",j.statusCaption="new"===j.status?j.signStatusCaption:j?.statusCaption??j?.signStatusCaption,{...j,title:F,description:z,status:j.status,statusCaption:this.configUtilService.capitalizeFirstLetter(j?.statusCaption??j?.signStatusCaption),statusCaptionColor:n.rV.get(j.status),date:this.datePipe.transform(j.docDate,"dd.MM.YYYY")}})}static#e=this.\u0275fac=function(j){return new(j||$)(m.\u0275\u0275inject(x.s),m.\u0275\u0275inject(O.f),m.\u0275\u0275inject(L.D7),m.\u0275\u0275inject(w.Pj),m.\u0275\u0275inject(B.j),m.\u0275\u0275inject(_.uU))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})()},84441:(Ee,Q,t)=>{"use strict";t.d(Q,{p:()=>B});var n=t(4128),e=t(95698),i=t(70997),d=t(94650),a=t(29198),u=t(75568),h=t(36895),l=t(10266),m=t(98504);function x(_,y){if(1&_&&d.\u0275\u0275element(0,"div",19),2&_){const $=d.\u0275\u0275nextContext().index;d.\u0275\u0275attribute("data-qa","1663078247"+$)}}function O(_,y){if(1&_&&(d.\u0275\u0275elementStart(0,"div",8)(1,"div",9),d.\u0275\u0275element(2,"div",10),d.\u0275\u0275template(3,x,1,1,"div",11),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(4,"div",12)(5,"div",13),d.\u0275\u0275text(6),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"div",14),d.\u0275\u0275text(8),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(9,"div",15),d.\u0275\u0275text(10),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(11,"div",16),d.\u0275\u0275text(12),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(13,"div",17),d.\u0275\u0275text(14),d.\u0275\u0275pipe(15,"appCurrency"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(16,"div",18),d.\u0275\u0275text(17),d.\u0275\u0275elementEnd()()()),2&_){const $=y.$implicit,C=y.index,T=d.\u0275\u0275nextContext(2);d.\u0275\u0275attribute("data-qa","1663077820"+C),d.\u0275\u0275advance(1),d.\u0275\u0275attribute("data-qa","1663078232"+C),d.\u0275\u0275advance(1),d.\u0275\u0275attribute("data-qa","1663078237"+C),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",C<T.items.length-1),d.\u0275\u0275advance(1),d.\u0275\u0275attribute("data-qa","1663078251"+C),d.\u0275\u0275advance(1),d.\u0275\u0275classMap(T.getStatusClass($)),d.\u0275\u0275property("matTooltipClass","gpi-tooltip")("matTooltipPosition","below")("matTooltip",T.getTooltip($))("ngClass",T.getStatusColor($.gpiStatus)),d.\u0275\u0275attribute("data-qa","1663078256"+C),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",T.getStatus($.gpiStatus)," "),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate("\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430: "+$.gpiTimeFormatted),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate($.bankName),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate($.gpiOrigin),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate("\u0421\u0443\u043c\u043c\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430: "+T.getCurrency($)+" "+d.\u0275\u0275pipeBind3(15,18,$.gpiValue,2,",")),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate("\u041a\u043e\u043c\u0438\u0441\u0441\u0438\u044f:  "+($.gpiFeeValue?T.getCurrency($)+" "+$.gpiFeeValue:"\u043d\u0435\u0442"))}}function L(_,y){if(1&_&&(d.\u0275\u0275elementStart(0,"div",2)(1,"div",3),d.\u0275\u0275text(2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"div",4)(4,"div"),d.\u0275\u0275text(5,"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438:"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"div",5),d.\u0275\u0275text(7),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(8,"div",6),d.\u0275\u0275template(9,O,18,22,"div",7),d.\u0275\u0275elementEnd()()),2&_){const $=d.\u0275\u0275nextContext();d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate($.header),d.\u0275\u0275advance(5),d.\u0275\u0275textInterpolate($.items[0].gpiTimeFormatted),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngForOf",$.items)}}function w(_,y){1&_&&d.\u0275\u0275element(0,"app-loader")}let B=(()=>{class _{constructor($){this.vedService=$,this.items=[],this.statuses=[],this.loading=!0}get loader(){return this.loading}set loader($){this.loading=$}ngOnInit(){this.initData()}initData(){(0,n.D)(this.vedService.getGpiCodesDictionary().pipe((0,e.q)(1)),this.vedService.getGpiTrackerHistory(this.docId).pipe((0,e.q)(1))).subscribe(([$,C])=>{this.statuses=$,this.items=C,this.loading=!1})}getStatus($){$.toLowerCase().trim()===i.U0.toLowerCase()&&($=i.Xo);const C=this.statuses.find(T=>T.code===$);return C&&C.message?C.message:$}getStatusClass($){return"status "+$.gpiStatusColor}getCurrency($){return $.gpiCurrCode?$.gpiCurrCode:""}getTooltip($){return $.gpiStatus.toLowerCase().trim()===i.U0.toLowerCase()?null:`\n    \u0421\u0442\u0430\u0442\u0443\u0441 ${$.gpiStatus===i.PV?"":$.gpiStatus}\n\n    ${this.vedService.getTooltipText($.gpiStatus)}\n    `}getStatusColor($){return this.vedService.getStatusColor($)||""}static#e=this.\u0275fac=function(C){return new(C||_)(d.\u0275\u0275directiveInject(a.$))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:_,selectors:[["app-tracker-gpi-modal"]],decls:2,vars:2,consts:[["class","tracker-container","data-qa","1663077801",4,"ngIf"],[4,"ngIf"],["data-qa","1663077801",1,"tracker-container"],[1,"header"],[1,"header-sub-info"],[1,"value"],[1,"content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"item-track"],[1,"tracker-point"],["class","tracker-line",4,"ngIf"],[1,"item-details"],[3,"matTooltipClass","matTooltipPosition","matTooltip","ngClass"],[1,"status-time"],[1,"bank-name"],[1,"origin"],[1,"amount"],[1,"fee"],[1,"tracker-line"]],template:function(C,T){1&C&&(d.\u0275\u0275template(0,L,10,3,"div",0),d.\u0275\u0275template(1,w,1,0,"app-loader",1)),2&C&&(d.\u0275\u0275property("ngIf",!T.loader),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",T.loader))},dependencies:[u.R,h.mk,h.sg,h.O5,l.gM,m.H],styles:['@charset "UTF-8";[_ngcontent-%COMP%]::-webkit-scrollbar{background:transparent!important;width:10px;margin-right:5px;box-sizing:border-box}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#dedede;border-radius:4px;width:4px;margin:auto;border-right:3px solid white;border-left:3px solid white}.tracker-container[_ngcontent-%COMP%]{flex-direction:column;display:flex;font-size:16px;line-height:22px;max-height:100%;flex-grow:1}.tracker-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;font-size:18px;font-weight:400;margin-bottom:30px;color:#000}.tracker-container[_ngcontent-%COMP%]   .header-sub-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;font-size:16px;font-weight:400;margin-bottom:40px;color:#444}.tracker-container[_ngcontent-%COMP%]   .header-sub-info[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{color:#003ad2}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:16px;overflow-y:scroll}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;flex-direction:row}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-track[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;position:relative;top:10px;width:24px;margin-right:25px}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-track[_ngcontent-%COMP%]   .tracker-point[_ngcontent-%COMP%]{height:28px;width:24px;background:url(tracker-point.5a5a51c3078ac430.svg) no-repeat}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-track[_ngcontent-%COMP%]   .tracker-line[_ngcontent-%COMP%]{background-color:#dedede;width:3px;height:100%}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]{width:100%;background-color:#f1f2f2;border-radius:4px;margin:10px 0;padding:20px;cursor:pointer;max-width:380px;display:flex;flex-direction:column}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{display:flex;border-bottom:1px dashed;padding:0 2px 4px;margin-bottom:15px;width:-moz-fit-content;width:fit-content;font-weight:600}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .status.blue[_ngcontent-%COMP%]{border-color:#003ad2;color:#003ad2}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .status.green[_ngcontent-%COMP%]{border-color:#00a843;color:#00a843}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .status.orange[_ngcontent-%COMP%]{border-color:#f39034;color:#f39034}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .status.red[_ngcontent-%COMP%]{border-color:#ff2727;color:#ff2727}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .status.black[_ngcontent-%COMP%]{border-color:#444;color:#444}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .status-time[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:400;color:#444}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .bank-name[_ngcontent-%COMP%]{margin-bottom:10px;text-transform:uppercase;font-weight:600;color:#000}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .origin[_ngcontent-%COMP%]{margin-bottom:25px;font-weight:400;color:#444}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]{margin-bottom:8px;height:22px;font-weight:400;color:#000}.tracker-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .item-details[_ngcontent-%COMP%]   .fee[_ngcontent-%COMP%]{font-weight:400;color:#88909b}  .gpi-tooltip{white-space:pre-line}  .gpi-tooltip:first-line{font-weight:600}  .gpi-tooltip .mdc-tooltip__surface{text-align:left}']})}return _})()},52180:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>I});var n=t(6146),e=t(97582),i=t(65938),d=t(16611),a=t(77579),u=t(82722),h=t(31833),l=t(94650),m=t(86962),x=t(15644),O=t(36895),L=t(75568),w=t(81876),B=t(45897),_=t(37084);function y(F,z){if(1&F&&(l.\u0275\u0275elementStart(0,"div",11),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&F){const X=z.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",X.docDescription," ")}}function $(F,z){if(1&F&&(l.\u0275\u0275elementStart(0,"mat-expansion-panel",5,6)(2,"mat-expansion-panel-header",7),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"div",8)(6,"div",9),l.\u0275\u0275template(7,y,2,1,"div",10),l.\u0275\u0275elementEnd()()()),2&F){const X=l.\u0275\u0275reference(1),p=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind2(4,2,X.expanded?"Hide params":"Show params",p.lang)," "),l.\u0275\u0275advance(4),l.\u0275\u0275property("ngForOf",p.docsInfoList)}}function C(F,z){if(1&F&&l.\u0275\u0275element(0,"app-document-sign-with-wrapper",12),2&F){const X=l.\u0275\u0275nextContext();l.\u0275\u0275property("certificates",X.certificates)("docIds",X.docsIdList)("docModule",null==X.data?null:X.data.docModule)("docType",null==X.data?null:X.data.docType)("isNeedMessage",!1)}}function T(F,z){1&F&&l.\u0275\u0275element(0,"app-loader")}class j{constructor(z,X,p,P,E){this.data=z,this.forSignOperationService=X,this.configUtilService=p,this.dialogRef=P,this.cdr=E,this.lang="",this.unkPipe=new h.n,this.destroyed$=new a.x,this.loader=!0,this.certificates=[],this.docsInfoList=[],this.docsIdList=[]}ngOnInit(){this.forSignOperationService.requestForSignOperationsByIds(this.data.ids.join(";")).pipe((0,u.R)(this.destroyed$)).subscribe({next:z=>{this.data.docType===n.o.InqStatement181&&z?.docs?.length&&(this.certificates=z.certificates,this.configUtilService.getArray(z.docs[0].docs).forEach(X=>{X?.doc&&(this.docsInfoList.push({docId:X.doc.docId,docDescription:this.unkPipe.transform(X.doc.dpnum)}),this.docsIdList.push(X.doc.id))})),this.loader=!1,this.cdr.detectChanges()},error:()=>{this.loader=!1,this.cdr.detectChanges()}})}onClose(){this.dialogRef.close()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(X){return new(X||j)(l.\u0275\u0275directiveInject(i.WI),l.\u0275\u0275directiveInject(m.l),l.\u0275\u0275directiveInject(x.Pj),l.\u0275\u0275directiveInject(i.so),l.\u0275\u0275directiveInject(l.ChangeDetectorRef))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:j,selectors:[["app-modal-sign"]],decls:6,vars:4,consts:[[3,"title","closeEvent"],[1,"modal-content"],["expanded","false","hideToggle","true",4,"ngIf"],[3,"certificates","docIds","docModule","docType","isNeedMessage",4,"ngIf"],[4,"ngIf"],["expanded","false","hideToggle","true"],["matExpansionPanel",""],["collapsedHeight","26px","expandedHeight","26px"],[1,"list-parameters"],[1,"list-parameters-block"],["class","list-parameters-block-item",4,"ngFor","ngForOf"],[1,"list-parameters-block-item"],[3,"certificates","docIds","docModule","docType","isNeedMessage"]],template:function(X,p){1&X&&(l.\u0275\u0275elementStart(0,"app-metib-modal-header",0),l.\u0275\u0275listener("closeEvent",function(){return p.onClose()}),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(1,"div",1)(2,"mat-accordion"),l.\u0275\u0275template(3,$,8,5,"mat-expansion-panel",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(4,C,1,5,"app-document-sign-with-wrapper",3),l.\u0275\u0275template(5,T,1,0,"app-loader",4),l.\u0275\u0275elementEnd()),2&X&&(l.\u0275\u0275property("title",p.data.modalTitle),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",p.docsInfoList.length),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!p.loader),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",p.loader))},dependencies:[O.sg,O.O5,L.R,w.v,B.X,_.pp,_.ib,_.yz,d.X$],styles:['@charset "UTF-8";app-metib-modal-header[_ngcontent-%COMP%]{background:#f1f2f2;font-size:20px;line-height:28px;font-weight:700}.modal-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:500px;margin:24px 32px 24px 24px!important}.modal-content[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]{width:100%}.modal-content[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]     .mat-expansion-panel{box-shadow:none}.modal-content[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]     .mat-expansion-panel-content .mat-expansion-panel-body{padding:0!important}.modal-content[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]     .mat-expansion-panel-header{padding:0;color:#284681;font-size:16px;font-weight:400}.modal-content[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]     .mat-expansion-panel .list-parameters{width:100%;padding:12px 0 12px 16px;background:#f1f2f2;margin-top:24px}.modal-content[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]     .mat-expansion-panel .list-parameters-block{min-height:25px;max-height:125px;overflow:auto}.modal-content[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]     .mat-expansion-panel .list-parameters-block-item{font-size:14px;line-height:25px}.modal-content[_ngcontent-%COMP%]   app-document-sign-with-wrapper[_ngcontent-%COMP%]{margin-top:24px;width:500px}.modal-content[_ngcontent-%COMP%]   app-document-sign-with-wrapper[_ngcontent-%COMP%]     .dynamic-select__fake{border:0;border-radius:0;border-bottom:1px solid #88909b;box-shadow:initial!important}.modal-content[_ngcontent-%COMP%]   app-document-sign-with-wrapper[_ngcontent-%COMP%]     .dynamic-input__input{border:0;border-radius:0;border-bottom:1px solid #88909b;box-shadow:initial!important}'],changeDetection:0})}(0,e.gn)([(0,d.SQ)()],j.prototype,"lang",void 0);let I=(()=>{class F{constructor(X,p,P){this.datePipe=X,this.dialog=p,this.translation=P}signInqStatementList(X){const p=this.translation.translate("Request for IBD"),P=this.translation.translate("By"),E=this.datePipe.transform(new Date,"dd.MM.yyyy");return this.dialog.open(j,{panelClass:"metib-modal",backdropClass:"metib-modal",data:{ids:X,docModule:"ibankul_curr",docType:n.o.InqStatement181,modalTitle:`${p} ${P} ${E}`}}).afterClosed()}static#e=this.\u0275fac=function(p){return new(p||F)(l.\u0275\u0275inject(O.uU),l.\u0275\u0275inject(i.uw),l.\u0275\u0275inject(d.D7))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})()},5718:(Ee,Q,t)=>{"use strict";t.d(Q,{$_:()=>d,Gv:()=>i,bH:()=>u,bm:()=>a});var n=t(49066),e=t(10956);const i=()=>[{field:{name:"search",value:""},component:{type:n.j.Input,placeholder:"Search",title:"Search document"},visual:{icon:"search",cssClass:"no-description"},dataQa:"1660029174216"},{field:{name:"dateFrom",value:""},component:{type:n.j.DatePicker,placeholder:"Enter data",title:"\u0414\u0430\u0442\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430"},mask:{TextMask:e.X8},visual:{cssClass:"quarter-inline",matIcon:"calendar_today",matStyleOutlined:!0,maxDate:!1,hide:!1},dataQa:"1660029182826"},{field:{name:"dateTo",value:""},component:{type:n.j.DatePicker,placeholder:"Enter data",title:"\u0414\u0430\u0442\u0430 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430"},mask:{TextMask:e.X8},visual:{cssClass:"quarter-inline",matIcon:"calendar_today",matStyleOutlined:!0,maxDate:!1,hide:!1},dataQa:"1660029195943"},{field:{name:"amountFrom",value:""},component:{type:n.j.Input,placeholder:"Search",title:"\u0421\u0443\u043c\u043c\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f"},visual:{cssClass:"quarter-inline"},mask:{TextMask:(0,e.z3)(2),type:"amount",stripMask:!0,decimalSymbol:"."},dataQa:"1660029200472"},{field:{name:"amountTo",value:""},component:{type:n.j.Input,placeholder:"Search",title:"\u0421\u0443\u043c\u043c\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f"},visual:{cssClass:"quarter-inline"},mask:{TextMask:(0,e.z3)(2),type:"amount",stripMask:!0,decimalSymbol:"."},dataQa:"1660029203443"}];var d=(()=>{return(h=d||(d={})).Removed="removed",h.End="end",h.Delete="delete",d;var h})();const a=["copy","controlStatement"],u=[d.Removed,d.End,d.Delete]},10083:(Ee,Q,t)=>{"use strict";t.d(Q,{FO:()=>m,FV:()=>l,KM:()=>u,fS:()=>a,qp:()=>h});var n=t(24006),e=t(49066),i=t(10956),d=t(66630);const a=()=>[{field:{name:"lineNumber",value:""},component:{type:e.j.Input,title:"String number",placeholder:"Enter string number",maxlength:3},mask:{TextMask:i.Ax},visual:{},dataQa:"1660030333347"},{field:{name:"noteNumber",value:""},component:{type:e.j.Input,title:"Note number/Document number",placeholder:"Enter data"},visual:{visualDisabled:!1},dataQa:"1660030335456"}],u=x=>[{field:{name:"paymentMark",value:"1"},component:{type:e.j.Select,title:"Payment mark",placeholder:"Select payment mark"},select:{items:[{value:"0",caption:x.translate("Payment mark 0")},{value:"1",caption:x.translate("Payment mark 1")},{value:"2",caption:x.translate("Payment mark 2")},{value:"7",caption:x.translate("Payment mark 7")},{value:"8",caption:x.translate("Payment mark 8")},{value:"9",caption:x.translate("Payment mark 9")}]},visual:{},dataQa:"1660030341450"},{field:{name:"noteDate",value:""},component:{type:e.j.DatePicker,title:"Note date input title",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,cssClass:"half-inline"},dataQa:"1660030343254"},{field:{name:"operationDate",value:""},component:{type:e.j.DatePicker,title:"Operation date",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,cssClass:"half-inline"},dataQa:"1660030345319"},{field:{name:"operationAmount",value:"",validators:[n.Validators.min(1)]},component:{type:e.j.Input,title:"Operation amount",placeholder:"Enter operation amount"},mask:{TextMask:(0,i.z3)(2),type:"amount",decimalSymbol:".",stripMask:!0},visual:{cssClass:"half-inline"},dataQa:"1660030347071"},{field:{name:"currency",value:""},component:{type:e.j.Autocomplete,title:"Currency",placeholder:"Select currency"},visual:{cssClass:"half-inline"},select:{items:[],filterByOpt:["code","additionalDescription"]},dataQa:"1660030349075"},{field:{name:"operationsTypeCode",value:""},component:{type:e.j.Autocomplete,title:"Operations type code",placeholder:"Select operations type code"},select:{items:[]},dataQa:"1660030351320"},{field:{name:"firstDateOperation",value:"",validators:[n.Validators.required]},component:{type:e.j.DatePicker,title:"Date of original transaction",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,hide:!0,cssClass:"half-inline"},dataQa:"1660030353893"},{field:{name:"noteOperation",value:"",validators:[n.Validators.required]},component:{type:e.j.Input,title:"Annotation",placeholder:"You must enter the nature of the operation"},visual:{hide:!0},dataQa:"1660030357741"},{field:{name:"contractNumberSelect",value:""},component:{type:e.j.Autocomplete,title:"UNK number",placeholder:"Select UNK number"},select:{items:[],filterByOpt:["caption","description"]},visual:{visualDisabled:!1},dataQa:"1660030361540"}],h=()=>[{field:{name:"unkInOtherBank",validators:[n.Validators.required]},component:{type:e.j.Input,title:"UNK registered with another bank",placeholder:"Enter the UNK number in another bank"},visual:{hide:!0},mask:{TextMask:d.zg},dataQa:"1660030363990"}],l=()=>[{field:{name:"contractNumberInput",value:""},component:{type:e.j.Input,title:"Contract number",placeholder:"Enter contract number"},visual:{cssClass:"half-inline",hide:!0},dataQa:"1660030369330"},{field:{name:"contractDate",value:""},component:{type:e.j.DatePicker,title:"Contract date",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,cssClass:"half-inline",hide:!0},dataQa:"1660030371376"},{field:{name:"amountDeal",value:""},component:{type:e.j.Input,title:"Agreement sum",placeholder:"Enter contract amount"},mask:{TextMask:(0,i.z3)(2),type:"amount"},visual:{cssClass:"half-inline",hide:!0},dataQa:"1660030374403"},{field:{name:"amountCurrencyDeal",value:""},component:{type:e.j.Autocomplete,title:"Contract currency code",placeholder:"Select currency"},visual:{cssClass:"half-inline",hide:!0},select:{items:[],filterByOpt:["code","additionalDescription"]},dataQa:"1660030377843"}],m=()=>[{field:{name:"contractOperationAmount",value:""},component:{type:e.j.Input,title:"Operation amount in contract currency",placeholder:"Enter amount"},mask:{TextMask:(0,i.z3)(2),type:"amount",decimalSymbol:".",stripMask:!0},visual:{cssClass:"half-inline",hide:!0},dataQa:"1660030381704"},{field:{name:"contractCurrency",value:""},component:{type:e.j.Autocomplete,title:"Currency",placeholder:"Select currency"},visual:{cssClass:"half-inline",hide:!0},select:{items:[],filterByOpt:["code","additionalDescription"]},dataQa:"1660030383598"},{field:{name:"repatriationDate",value:""},component:{type:e.j.DatePicker,title:"Execution of obligations",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,hide:!0},dataQa:"1660030385529"},{field:{name:"refundPrepaymentDate",value:""},component:{type:e.j.DatePicker,title:"Prepayment return date",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,hide:!0},dataQa:"1660030387919"},{field:{name:"annotation",value:""},component:{type:e.j.Input,title:"Annotation",placeholder:"Enter annotation"},dataQa:"1660030390545"}]},77932:(Ee,Q,t)=>{"use strict";t.d(Q,{MK:()=>i,ey:()=>d,rL:()=>e});var e=(()=>{return(a=e||(e={})).TEMPLATE_EDIT="template_edit",a.TEMPLATE_CREATE_DOC="template_create",a.NOTIFICATION_CREDITING="notificationCrediting",a.FROM_CONTRACT="from_contract",a.FROM_PAYMENT="from_payment",a.DOCUMENT_COPY="copy",a.DOCUMENT_EDIT="edit",e;var a})(),i=(()=>{return(a=i||(i={})).unk="1",a.noUnk="2",a.unkOtherBank="3",i;var a})(),d=(()=>{return(a=d||(d={})).Debet="debet",a.Credit="credit",d;var a})()},11274:(Ee,Q,t)=>{"use strict";t.d(Q,{D5:()=>h,DJ:()=>w,ON:()=>u,RE:()=>i,_0:()=>a,jq:()=>d,kU:()=>O,mn:()=>m,tL:()=>x});var n=t(6146),e=t(49066);const i=[{caption:"Withdrawal from transit account",value:"doc_transit_pay_doc",chosen:!1,count:null},{caption:"Setting contracts",value:"dealpass_contr_181",chosen:!1,count:null},{caption:"Setting credit agreements",value:"dealpass_cred_181",chosen:!1,count:null},{caption:"Amendment of the contract",value:"dealpass_renew_181",chosen:!1,count:null},{caption:"Removal from the register",value:"dealpass_close_181",chosen:!1,count:null},{caption:"Request statement",value:"inq_statement_181",chosen:!1,count:null},{caption:"Quotation Request",value:"doc_request_quotes",chosen:!1,count:null},{caption:"Cross-border title",value:"doc_platpor_curr_tg",chosen:!1,count:null},{caption:"Cross-border with buy currency title",value:"doc_platpor_currbuy_tg",chosen:!1,count:null},{caption:"Cross-border payment service connection request",value:"service_transfer_tg",chosen:!1,count:null}],d=["print","update","delete","copy","create_template","sign_list","sign_on_client","delete_sign","download_swift"],a=[n.o.DocPlatporCurr,n.o.DocPlatporCurrBp,n.o.DocPlatporCurrComplex,n.o.DocPlatporBp,n.o.DocPlatporCurrTg,n.o.DocPlatporCurrTgOv],u={caption:"Complex payment",value:n.o.DocPlatporCurrComplex,chosen:!1,count:null},h={caption:"Complex payment no attach",value:n.o.DocPlatporCurrBp,chosen:!1,count:null},m={caption:"Interbank currency transfers",value:"doc_interbnk_currency_transfer",chosen:!1,count:null},x=[{caption:"Not signed",value:"0",chosen:!0},{caption:"Partially signed",value:"1",chosen:!0}],O=[{docModule:"ibankul_curr",docType:n.o.InqCurr181},{docModule:"ibankul_curr",docType:n.o.InqConf181},{docModule:"ibankul_curr",docType:n.o.DealpassContr181},{docModule:"ibankul_curr",docType:n.o.DealpassCred181},{docModule:"ibankul_curr",docType:n.o.DealpassRenew181},{docModule:"ibankul_curr",docType:n.o.DealpassClose181},{docModule:"ibankul_curr",docType:n.o.InqStatement181},{docModule:"ibankul_curr",docType:n.o.DocPlatporCurr},{docModule:"ibankul_curr",docType:n.o.DocTransitPayDoc},{docModule:"ibankul_curr",docType:n.o.DocRequestQuotes},{docModule:"ibankul_curr",docType:n.o.DocPlatporCurrBp},{docModule:"ibankul_curr",docType:n.o.DocPlatporCurrComplex},{docModule:"ibankul_curr",docType:n.o.DocInterbnkCurrencyTransfer},{docModule:"ibankul_curr",docType:n.o.DocPlatporCurrTg},{docModule:"ibankul_curr",docType:n.o.DocPlatporCurrTgOv},{docModule:"ibankul_curr",docType:n.o.ServiceTransferTg}],w=()=>[{field:{name:"search",value:"",debounceTime:750},component:{type:e.j.Input,placeholder:"Search document"},visual:{matIcon:"search",cssClass:"three-inline"},isNewDesign:!0},{field:{name:"docStatuses"},component:{type:e.j.CheckboxSelect,placeholder:"Status",title:"Search"},visual:{hide:!1,cssClass:"three-inline",svgIcon:"expand_more"},multiSelect:{items:x,firstItem:{name:"All document statuses",chosen:!0}},isNewDesign:!0,dataQa:"1660030567556"},{field:{name:"currencies"},component:{type:e.j.CheckboxSelect,placeholder:"Currency"},visual:{cssClass:"three-inline use-space",svgIcon:"expand_more",hideNoAnimation:!0},multiSelect:{items:[],firstItem:{name:"All document currencies",chosen:!0}},isNewDesign:!0,dataQa:"1660030569574"},{field:{name:"type"},component:{type:e.j.CheckboxSelect,placeholder:"VED document type"},visual:{cssClass:"three-inline use-space",hideNoAnimation:!0},multiSelect:{items:i,firstItem:{name:"All types",chosen:!0}},isNewDesign:!0},{field:{name:"complexType"},component:{type:e.j.CheckboxSelect,placeholder:"VED document type"},visual:{cssClass:"three-inline use-space",svgIcon:"expand_more",hideNoAnimation:!0},multiSelect:{items:[],firstItem:{name:"All types",chosen:!0}},isNewDesign:!0}]},70997:(Ee,Q,t)=>{"use strict";t.d(Q,{E7:()=>d,Fw:()=>u,PV:()=>m,So:()=>B,U0:()=>h,Wz:()=>O,Xo:()=>l,jq:()=>L,kU:()=>w,xy:()=>x});var n=t(6146),e=t(49066);const i=[{caption:"Setting contracts",value:"dealpass_contr_181",chosen:!0},{caption:"Setting credit agreements",value:"dealpass_cred_181",chosen:!0},{caption:"Amendment of the contract",value:"dealpass_renew_181",chosen:!0},{caption:"Removal from the register",value:"dealpass_close_181",chosen:!0},{caption:"Request statement",value:"inq_statement_181",chosen:!0},{caption:"Withdrawal from transit account",value:"doc_transit_pay_doc",chosen:!0},{caption:"Quotation Request",value:"doc_request_quotes",chosen:!0},{caption:"Interbank currency transfers",value:"doc_interbnk_currency_transfer",chosen:!0},{caption:"Cross-border title",value:"doc_platpor_curr_tg",chosen:!0},{caption:"Cross-border with buy currency title",value:"doc_platpor_currbuy_tg",chosen:!0},{caption:"Cross-border payment service connection request",value:"service_transfer_tg",chosen:!0}],d="new,for_send,send,for_send_abs,accept,wait_decline,decline,end,cancel,end_bp,decline_bp,send_to_partner,end_confirmed,for_decline,send_to_partner_end",a=[{caption:"New documents",value:"new",chosen:!0},{caption:"In processing",value:"for_send,send,for_send_abs,accept,wait_decline,accept",chosen:!0},{caption:"Decline",value:"decline,cancel,decline_bp,for_decline",chosen:!0},{caption:"Ended",value:"end,processed_vk,end_bp,send_to_partner,end_confirmed,send_to_partner_end",chosen:!0},{caption:"Draft",value:"draft",chosen:!0}],u="ved-documents-filter",h="4.\u041f\u043e\u0437\u0438\u0446\u0438\u044f",l="\u0421\u043f\u0438\u0441\u0430\u043d\u043e \u0441\u043e \u0441\u0447\u0435\u0442\u0430",m="\u041f\u043b\u0430\u0442\u0435\u0436 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d",x="\u041f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d",O="\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435",L=["print","copy","delete","copy","sign_on_client","create_template","sign_list","update","decline_request","print_swift","request_swift","download_swift","sign_on_client","create_cti","create_inq_curr","delete_sign","print_awiso","revoke","confirm"],w=[{docModule:"ibankul_curr",docType:n.o.DealpassContr181},{docModule:"ibankul_curr",docType:n.o.DealpassCred181},{docModule:"ibankul_curr",docType:n.o.DealpassRenew181},{docModule:"ibankul_curr",docType:n.o.DealpassClose181},{docModule:"ibankul_curr",docType:n.o.InqStatement181},{docModule:"ibankul_curr",docType:n.o.DocTransitPayDoc},{docModule:"ibankul_curr",docType:n.o.DocRequestQuotes},{docModule:"ibankul_curr",docType:n.o.DocInterbnkCurrencyTransfer},{docModule:"ibankul_curr",docType:n.o.DocPlatporCurrTg},{docModule:"ibankul_curr",docType:n.o.DocPlatporCurrTgOv},{docModule:"ibankul_curr",docType:n.o.ServiceTransferTg}],B=_=>[{field:{name:"search",value:""},component:{type:e.j.Input,placeholder:"Search document",title:"Search"},visual:{icon:"search",hide:!1,cssClass:"three-inline use-space"}},{field:{name:"docStatuses"},component:{type:e.j.CheckboxSelect,placeholder:"Status",title:"Search"},visual:{hide:!1,cssClass:"three-inline",svgIcon:"arrow"},multiSelect:{items:a,firstItem:{name:"All document statuses",chosen:!0}}},{field:{name:"currencies"},component:{type:e.j.CheckboxSelect,placeholder:"Currency"},visual:{cssClass:"three-inline",svgIcon:"arrow",hideNoAnimation:!0},multiSelect:{items:[],firstItem:{name:"All document currencies",chosen:!0}}},{field:{name:"types"},component:{title:"Document type",type:e.j.CheckboxSelect,placeholder:"VED document type"},visual:{cssClass:"three-inline use-space",hideNoAnimation:!0},multiSelect:{items:i.map(y=>{const $=(_||[]).includes(y.value);return{...y,chosen:$}}),firstItem:{name:"All types",chosen:i.length===(_||[]).length}}}]},70981:(Ee,Q,t)=>{"use strict";t.d(Q,{f:()=>n});var n=(()=>{return(e=n||(n={})).Contragent="contragent",e.TaxBudgetPayment="tax-budget-payment",e.Tamozh="tamozh",n;var e})()},30752:(Ee,Q,t)=>{"use strict";t.d(Q,{A7:()=>d,BV:()=>i,ZL:()=>e,g6:()=>n});var n=(()=>{return(a=n||(n={}))[a.NotConnected=0]="NotConnected",a[a.Connected=1]="Connected",a[a.ToBeAgreed=2]="ToBeAgreed",n;var a})(),e=(()=>{return(a=e||(e={})).Empty="",a.NewNotSigned="New, not signed",a.NewPartlySigned="New, partly signed",a.Invalid="Invalid account",a.Fulfilled="Fulfilled",a.InProcessing="In processing",a.Denied="Denied",a.SendToAml="Send to aml",e;var a})(),i=(()=>{return(a=i||(i={})).New="new",a.SendToAml="send_to_aml",a.Invalid="invalid",a.Decline="decline",a.Send="send",a.ForSend="for_send",a.End="end",i;var a})(),d=(()=>{return(a=d||(d={})).VS2="\u0412\u04212",a.VS3="\u0412\u04213",d;var a})()},88701:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>w});var n=t(15439),e=t.n(n),i=t(61135),d=t(39646),a=t(60515),u=t(70262),h=t(54004),l=t(70981),m=t(30752),x=t(94650),O=t(3751),L=t(75885);let w=(()=>{class B{constructor(y,$){this.apiService=y,this.lastOperationService=$,this.NALOG_BUDGET_ACC="40102810045370000002",this.payDocAccepts$=new i.X(null),this.datesPeriod=JSON.parse(sessionStorage.getItem("filter-period")??"null")||this.lastOperationService.chosenPeriod$.value,this.filter$=new i.X({searchString:"",operationStatuses:[m.ZL.NewNotSigned,m.ZL.NewPartlySigned,m.ZL.Denied,m.ZL.Fulfilled,m.ZL.InProcessing],recipientTypes:[l.f.Tamozh,l.f.TaxBudgetPayment,l.f.Contragent],beginDate:this.datesPeriod.beginDate,endDate:this.datesPeriod.endDate}),this.operationText$=new i.X(null)}changeFilter(y){return this.filter$.next(y),this.payDocAccepts$.next(null),this.getPayDocAccepts()}checkReadyToPay(y){return this.apiService.get(`idbankgate/payDocInfo/checkReadyToPay?ids=${y.join(",")}`)}getPayDocAccepts(){return this.payDocAccepts$.value?a.E:this.apiService.post("idbankgate/payDocInfo",{beginDate:e()(this.filter$.value.beginDate).format("yyyy-MM-DD"),endDate:e()(this.filter$.value.endDate).format("yyyy-MM-DD")}).pipe((0,u.K)(()=>(0,d.of)([])),(0,h.U)(y=>{const $=[];return y.forEach(C=>{const T=e()(C.document.payDocData?.invoiceDate,"YYYY-MM-DD HH:mm:ss"),j=T.locale("ru").format("DD MMMM YYYY"),I=T.format("YYYY-MM-DD");let F="",z=m.ZL.Empty;C.document.status===m.BV.Decline?(F="#E23428",z=m.ZL.Denied):C.document.status===m.BV.End?(F="#00A843",z=m.ZL.Fulfilled):C.document.status===m.BV.SendToAml?z=m.ZL.SendToAml:C.document.status===m.BV.Send||C.document.status===m.BV.ForSend?(F="#2F54EB",z=m.ZL.InProcessing):C.document.status===m.BV.Invalid?(F="#E23428",z=m.ZL.Invalid):C.document.status===m.BV.New&&0===C.document.signStatus?z=m.ZL.NewNotSigned:C.document.status===m.BV.New&&1===C.document.signStatus?z=m.ZL.NewPartlySigned:z===m.ZL.Empty&&(z=m.ZL.NewNotSigned);let X=l.f.Contragent;C.document?.payDocData?.payee?.payeeAccountInfo?.bank?.correspAcc===this.NALOG_BUDGET_ACC?X=l.f.Tamozh:C.document?.chargeData?.supplierBillID&&(X=l.f.TaxBudgetPayment);let p=C.document?.id,P=C.document?.dboId;C.document.msgType===m.A7.VS2&&(P=C.document?.dboId,p=null),C.document.msgType===m.A7.VS3&&(P=null,p=C.document?.id);const E={docType:"doc_platpor",docModule:"ibankul",accNumber:C.document?.payerAcc,docId:C.document?.dboId,idBankGateDocId:C.document?.id,dboId:C.document?.dboId,msgType:C.document.msgType,chosen:!1,extDocId:P,id:p,isOpenable:!(z===m.ZL.NewNotSigned||z===m.ZL.NewPartlySigned),dateString:j,actions:C.actions,amount:+(C.document?.payDocData?.amountToPay??0),details:`\u041e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \u0421\u0447\u0435\u0442 \u2116 ${C.document?.payDocData?.invoiceID} \u043e\u0442 ${T.format("DD.MM.YYYY")}`,status:z,statusColor:F,label:C.document?.payerAcc?`\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 ${C.document?.payerAcc}`:null,loanAgreementNumber:C.document?.payerAcc?null:"\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d",formType:X,counterpartName:C.document?.payDocData?.payee?.payeeName,info:{rows:[{capture:"INN",value:C.document?.payDocData?.payee?.inn},{capture:"KPP",value:C.document?.payDocData?.payee?.kpp},{capture:"Checking account",value:C.document?.payDocData?.payee?.payeeAccountInfo?.personalAcc},{capture:"Bank BIK",value:C.document?.payDocData?.payee?.payeeAccountInfo?.bank?.bik},{capture:"Bank name",value:C.document?.payDocData?.payee?.payeeAccountInfo?.bank?.bankName},{capture:"Requisites Corr Account",value:C.document?.payDocData?.payee?.payeeAccountInfo?.bank?.correspAcc}],buttons:C.actions.find(ne=>"print_last"===ne)?[{type:"print_last",data:{docId:P,docNumber:p}}]:[],learnMoreButton:{show:!0}}};C.document.msgType===m.A7.VS3&&E.info.rows.unshift({capture:"Annotation",value:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044f, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0418\u0421 \xab\u041e\u0434\u043d\u043e \u043e\u043a\u043d\u043e\xbb"});const R=$.find(ne=>ne.date===I);R?R.transactions.push(E):$.push({date:I,name:j,transactions:[E]})}),$.sort((C,T)=>e()(T.date,"YYYY-MM-DD").date()-e()(C.date,"YYYY-MM-DD").date()),this.payDocAccepts$.next($),$}))}static#e=this.\u0275fac=function($){return new($||B)(x.\u0275\u0275inject(O.s),x.\u0275\u0275inject(L.o))};static#t=this.\u0275prov=x.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})()},54128:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>e,q:()=>n});var n=(()=>{return(i=n||(n={})).COMPLEX_PAYMENT_NO_ATTACH="complex-payment-no-attach",i.COMPLEX_PAYMENT="complex-payment",n;var i})(),e=(()=>{return(i=e||(e={})).NO_ATTACH="\u041a\u041f \u0431\u0435\u0437 \u041f",i.BASIC="\u041a\u041f",i.RUB_NO_ATTACH="\u0420\u041f \u0431\u0435\u0437 \u041f",i.TRANS_BORDER="\u0422\u0413",e;var i})()},66630:(Ee,Q,t)=>{"use strict";t.d(Q,{JW:()=>R,Lo:()=>u,Nl:()=>Ge,SE:()=>_,TK:()=>T,_o:()=>p,bI:()=>we,cp:()=>E,ex:()=>j,gS:()=>ce,jG:()=>l,jW:()=>G,l5:()=>P,n0:()=>xe,pb:()=>ne,xU:()=>X,zg:()=>L});var n=t(24006),e=t(15644),i=t(53065),a=t(49066);function u(ct){let pe=ct.value;if(pe){const U=pe.replace(/[^\d]/g,"");U.length!==pe.length&&(ct.setValue(U,{emitEvent:!1,onlySelf:!0}),pe=U)}if(!ct.hasValidator(n.Validators.required)&&!ct.value)return null;if("string"!=typeof pe||10!==pe.length&&12!==pe.length||pe.split("").some(U=>isNaN(Number(U)))||0==+pe)return{innError:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0418\u041d\u041d"};if(10===pe.length){if(Number(pe[9])!==pe.split("").slice(0,-1).reduce((U,H,Z)=>[2,4,10,3,5,9,4,6,8][Z]*Number(H)+U,0)%11%10)return{innError:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0418\u041d\u041d"}}else if(12===pe.length){const U=pe.split("").slice(0,-2).reduce((Z,oe,Pe)=>[7,2,4,10,3,5,9,4,6,8][Pe]*Number(oe)+Z,0)%11%10,H=pe.split("").slice(0,-1).reduce((Z,oe,Pe)=>[3,7,2,4,10,3,5,9,4,6,8][Pe]*Number(oe)+Z,0)%11%10;if(U!==Number(pe[10])||H!==Number(pe[11]))return{innError:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0418\u041d\u041d"}}return null}const l={currCodeInr:"356",corrBankClearingCodeLength:11,additionalInfoKey:"IFSC"},m=(0,i.createNumberMask)({prefix:"",allowDecimal:!1,thousandsSeparatorSymbol:"",allowLeadingZeroes:!0}),x=(0,i.createNumberMask)({prefix:"",allowDecimal:!0,thousandsSeparatorSymbol:" "}),O=[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/],L=[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/,"/",/\d/,"/",/\d/],w=/[^a-zA-Z\d /\-?:().,'"+]/g,B=/[a-zA-Z\d ?\r\n:().,'\-+\/]/,_=/[a-z\u0430-\u044f\u0451A-Z\u0410-\u042f\s\/,\-\d]/;function T(ct=B){const pe=[];for(let Ce=0;Ce<140;Ce++)pe.push(ct);return pe}const j=140,X=33,p=66,P=66,E=/^[a-zA-Z\d /\-?:().,'"+]*$/,R={field:{name:"enableCommissionTransfer",value:!1},component:{type:a.j.Checkbox,title:"Generate a payment for the commission amount"}},ne=()=>({recipientConfig:[{field:{name:"fullname",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"Recipient name",titlePrefix:"59a:",placeholder:"Input recipient",maxlength:138},select:{items:[],filterByOpt:["value","caption","description"]},mask:{TextMask:T(E)},dataQa:"1660029314992"},{field:{name:"corrInn",validators:[u]},component:{type:a.j.Input,title:"corrInnRezident",placeholder:"Enter data",maxlength:12},dataQa:"1660029377478"},{field:{name:"countryCode",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"Country",titlePrefix:"59a:",placeholder:"Enter data"},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:T(_)},select:{items:[]},dataQa:"1660029317512"},{field:{name:"place",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Locality",titlePrefix:"59a:",placeholder:"Enter data",maxlength:138},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:T(E)},dataQa:"1660029320474"},{field:{name:"address"},component:{type:a.j.Input,title:"Address",titlePrefix:"59A:",placeholder:"Enter data",maxlength:138},visual:{hide:!1},mask:{TextMask:T(E)},dataQa:"1660029323241"},{field:{name:"bankSwift",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"SWIFT code recipient",titlePrefix:"57A:",placeholder:"Enter data"},visual:{cssClass:"three-inline",hide:!1},mask:{TextMask:T(E)},select:{items:[]},dataQa:"1660029326118"},{field:{name:"bankString",disabled:!0},component:{type:a.j.Input,title:"Corr bank name",titlePrefix:"57A:",placeholder:"Enter data"},visual:{cssClass:"two-thirds-inline align-start",hide:!1},mask:{TextMask:T(E)},dataQa:"1660029328748"},{field:{name:"withoutBankSwift"},component:{type:a.j.Checkbox,title:"NO SWIFT code"},visual:{hide:!1},dataQa:"1660029330978"},{field:{name:"bankName"},component:{type:a.j.Input,title:"corrBankBikName",titlePrefix:"57D:",placeholder:"Enter data"},visual:{hide:!0},mask:{TextMask:T(E)},dataQa:"1660029333595"},{field:{name:"bankCountryCode",validators:[]},component:{type:a.j.Autocomplete,title:"Country",placeholder:"Enter data",titlePrefix:"57D:"},visual:{cssClass:"three-inline",hide:!0},mask:{TextMask:T(_)},select:{items:[]},dataQa:"1660029335794"},{field:{name:"bankPlace"},component:{type:a.j.Input,title:"Locality",placeholder:"Enter data",titlePrefix:"57D:"},mask:{TextMask:T(E)},visual:{cssClass:"three-inline",hide:!0},dataQa:"1660029338663"},{field:{name:"bankAddress"},component:{type:a.j.Input,title:"Address",placeholder:"Enter data",titlePrefix:"57D:"},mask:{TextMask:T(E)},visual:{cssClass:"three-inline",hide:!0},dataQa:"1660029341026"},{field:{name:"bankClearingCodeCountry"},component:{type:a.j.Input,title:"Clearing country code of the beneficiary's bank",titlePrefix:"57D:",placeholder:"Enter data",maxlength:2},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(_)},dataQa:"1660029343481"},{field:{name:"bankClearingCode"},component:{type:a.j.Input,title:"Beneficiary's bank clearing code",titlePrefix:"57D:",placeholder:"Enter data",maxlength:13},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029347068"},{field:{name:"withoutBankSwiftSeparator"},component:{type:a.j.Separator},visual:{hide:!1}},{field:{name:"description",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Description",titlePrefix:"70:",placeholder:"Enter data",maxlength:140},mask:{TextMask:T(E)},dataQa:"1660029350733"},{field:{name:"iban",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Corr account",titlePrefix:"59a:",placeholder:"Enter data",maxlength:34},visual:{cssClass:"two-thirds-inline",hide:!1},mask:{TextMask:T(E)},dataQa:"1660029353188"},{field:{name:"saveNonResident"},component:{type:a.j.Button,title:"Save non resident"},visual:{cssClass:"three-inline bordered",buttonType:"submit",visualDisabled:!0,hide:!1},dataQa:"1660029355245"},{field:{name:"addBankIntermediary"},component:{type:a.j.Checkbox,title:"Add Intermediary Bank"},visual:{hide:!1},dataQa:"1660029359381"},{field:{name:"intermediaryBankSwift"},component:{type:a.j.Autocomplete,title:"SWIFT code Intermediary",titlePrefix:"56a:",placeholder:"Enter data"},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},select:{items:[]},dataQa:"1660029362563"},{field:{name:"ibanIntermediary"},component:{type:a.j.Input,title:"Corr Acc In Intermediary Bank",titlePrefix:"56a:",placeholder:"Enter data",maxlength:30},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029365293"},{field:{name:"agentCountryCode",disabled:!0},component:{type:a.j.Autocomplete,title:"Partner country code",placeholder:"Enter data"},visual:{hide:!0,close:!0},select:{items:[],filterByOpt:["code","caption","description","intName","mnemo2","mnemo3","name","value","additionalDescription"]}}],payerConfig:[{field:{name:"accId",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Acc number",titlePrefix:"50a:",placeholder:"Enter data"},visual:{hide:!1,cssClass:""},select:{items:[]},mask:{TextMask:T(E)},dataQa:"1660029368523"},{field:{name:"accountMetinv",disabled:!0},component:{type:a.j.Select,title:"Account number in Metallinvestbank",placeholder:"Select the account number of the partner bank"},visual:{hide:!0,cssClass:"half-inline",visualDisabled:!0},select:{items:[]},dataQa:"1679673083157"},{field:{name:"otherClientInitiator"},component:{type:a.j.Checkbox,title:"Client-initiator"},visual:{hide:!0},dataQa:"1660029370626"},{field:{name:"otherClientFullName",validators:[n.Validators.required]},component:{type:a.j.Input,title:"50a: Client-initiator name",placeholder:"Use short name please",maxlength:72},visual:{hide:!0},dataQa:"1660029373894",mask:{TextMask:T(E)}},{field:{name:"otherClientInn"},component:{type:a.j.Input,title:"50a: Client-initiator INN",placeholder:"Enter data",maxlength:12},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029377471"},{field:{name:"otherClientCountry",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"50a: Client-initiator country",placeholder:"Enter data"},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(_)},select:{items:[]},dataQa:"1660029379779"},{field:{name:"otherClientPlace",validators:[n.Validators.required,n.Validators.maxLength(17)]},component:{type:a.j.Input,title:"50a: Client-initiator place",placeholder:"Enter data",maxlength:17},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029382616"},{field:{name:"otherClientAddress",validators:[n.Validators.required,n.Validators.maxLength(66)]},component:{type:a.j.Input,title:"50a: Client-initiator address",placeholder:"Enter data",maxlength:66},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029384980"},{field:{name:"otherClientAccNumber",validators:[n.Validators.required]},component:{type:a.j.Input,title:"50a: Client-initiator account number",placeholder:"Enter data",maxlength:34},visual:{hide:!0},mask:{TextMask:T(E)},dataQa:"1660029387306"},{field:{name:"otherClientInitiator"},component:{type:a.j.Checkbox,title:"Client-initiator"},visual:{hide:!0},dataQa:"1660029407082"},{field:{name:"otherClientFullName",validators:[n.Validators.required]},component:{type:a.j.Input,title:"50a: Client-initiator name",placeholder:"Use short name please",maxlength:72},visual:{hide:!0},mask:{TextMask:T(E)},dataQa:"1660029413195"},{field:{name:"otherClientInn"},component:{type:a.j.Input,title:"50a: Client-initiator INN",placeholder:"Enter data",maxlength:12},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029418419"},{field:{name:"otherClientCountry",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"50a: Client-initiator country",placeholder:"Enter data"},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(_)},select:{items:[]},dataQa:"1660029424998"},{field:{name:"otherClientPlace",validators:[n.Validators.required,n.Validators.maxLength(17)]},component:{type:a.j.Input,title:"50a: Client-initiator place",placeholder:"Enter data",maxlength:17},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029430419"},{field:{name:"otherClientAddress",validators:[n.Validators.required,n.Validators.maxLength(66)]},component:{type:a.j.Input,title:"50a: Client-initiator address",placeholder:"Enter data",maxlength:66},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:T(E)},dataQa:"1660029435028"},{field:{name:"otherClientAccNumber",validators:[n.Validators.required]},component:{type:a.j.Input,title:"50a: Client-initiator account number",placeholder:"Enter data",maxlength:34},visual:{hide:!0},mask:{TextMask:T(E)},dataQa:"1660029439454"},{field:{name:"payerName",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",titlePrefix:"50a:",placeholder:"Enter data",maxlength:p},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:T(E)},select:{items:[]},dataQa:"1660029453688"},{field:{name:"payerCountryCode",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"Country",titlePrefix:"50a:",placeholder:"Enter data"},visual:{cssClass:"half-inline",hide:!1},select:{items:[]},mask:{TextMask:T(_)},dataQa:"1660029456876"},{field:{name:"payerPlace",validators:[n.Validators.required,n.Validators.maxLength(17)]},component:{type:a.j.Input,title:"Locality",titlePrefix:"50a:",placeholder:"Enter data",maxlength:17},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:T(E)},dataQa:"1660029460293"},{field:{name:"payerAddress",validators:[n.Validators.required,n.Validators.maxLength(P)]},component:{type:a.j.Input,title:"International address",titlePrefix:"50a:",placeholder:"Enter data",maxlength:P},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:T()},dataQa:"1660029464767"}],currencyExchangeConfig:[{field:{name:"buyAccId",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Debit account number for exchange",placeholder:"Enter data"},visual:{hide:!1,cssClass:""},select:{items:[]},mask:{TextMask:T(E)}}],summAndComissionConfig:[{field:{name:"payAmount",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Amount",titlePrefix:"32B:",placeholder:"Enter data"},visual:{cssClass:"half-inline",visualDisabled:!1},mask:{TextMask:x,type:"amount",stripMask:!0,decimalSymbol:"."},dataQa:"1660029468230"},{field:{name:"chargesType",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Commission Type",titlePrefix:"71A:",placeholder:"Enter data"},select:{items:[]},visual:{cssClass:"half-inline"},dataQa:"1660029470637"},{field:{name:"chargesAccId",validators:[]},component:{type:a.j.Select,title:"Commission write-off account",titlePrefix:"71A:",placeholder:"Enter data"},select:{items:[]},visual:{hide:!0},dataQa:"1660029474836"},{field:{name:"isMultiCurr"},component:{type:a.j.Checkbox,title:"Multicurrency transfer"},visual:{hide:!1},dataQa:"1660029477795"},{field:{name:"amount"},component:{type:a.j.Input,title:"Transfer Amount",titlePrefix:"32B:",placeholder:"Enter data"},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:x,type:"amount",stripMask:!0,decimalSymbol:"."},dataQa:"1660029482533"},{field:{name:"currCode"},component:{type:a.j.Autocomplete,title:"Currency",titlePrefix:"32B:",placeholder:"Enter data"},visual:{cssClass:"half-inline",visualDisabled:!1,hide:!0},select:{items:[],filterBy:"filterByValue"},dataQa:"1660029485849"},{field:{name:"currRate",disabled:!0},component:{type:a.j.Input,title:"Currency rate",placeholder:"Enter data"},visual:{cssClass:"quarter",hide:!0},dataQa:"1660029488577"},{field:{name:"chargesConvAccId"},component:{type:a.j.Select,title:"Commission write-off account for convertation",titlePrefix:"32B:",placeholder:"Enter data"},select:{items:[]},visual:{hide:!0},dataQa:"1660029490725"}],groundsOperationConfig:[{field:{name:"groundDocuments",validators:[]},component:{type:a.j.Autocomplete,title:"Contract number",placeholder:"Enter data"},select:{items:[]},dataQa:"1660029495457"}],forWhatConfig:[{field:{name:"operType",validators:[n.Validators.required]},component:{type:a.j.Select,title:"Currency Operation Code",placeholder:"Enter data"},select:{items:[]},visual:{},dataQa:"1660029504316"},{field:{name:"amount",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Amount",placeholder:"Enter data"},visual:{cssClass:"half-inline"},mask:{TextMask:x,type:"amount",stripMask:!0,decimalSymbol:"."},dataQa:"1660029512910"},{field:{name:"waitPeriod"},component:{type:a.j.DatePicker,title:"Contract subscription date",placeholder:"Enter data"},mask:{TextMask:O},visual:{cssClass:"half-inline",matIcon:"calendar_today",matStyleOutlined:!0,maxDate:!1},dataQa:"1660029515890"}],forWhatOtherConfig:[{field:{name:"isPaymentForGoods"},component:{type:a.j.Checkbox,title:"Payment for goods"},visual:{hide:!0}},{field:{name:"customsPaymentCode"},component:{type:a.j.Input,title:"Customs payment code",placeholder:"Enter data"},visual:{hide:!0},mask:{TextMask:m}},{field:{name:"infoForBank"},component:{type:a.j.Input,title:"Info For Bank",placeholder:"Enter data",maxlength:250},dataQa:"1660029518906"},{field:{name:"additionalInfo"},component:{type:a.j.TextArea,title:"Additional information to the payee",titlePrefix:"72:",placeholder:"Enter data",maxlength:140,rows:3,maxRows:7,autoSize:!0},mask:{TextMask:T(B)},dataQa:"1660029521215"}],performerConfig:[{field:{name:"employeeFio",defaultName:"performer",validators:[n.Validators.required]},component:{title:"\u0424\u0418\u041e \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043b\u0438\u0446\u0430",placeholder:"Enter data",type:a.j.Autocomplete},select:{items:[]},visual:{cssClass:"half-inline"},dataQa:"1660029523854"},{field:{name:"employeePhone",defaultName:"phone"},component:{type:a.j.Input,title:"Phone responsible person",placeholder:"Enter data"},mask:{TextMask:e.Pj.phoneMask},visual:{cssClass:"half-inline"},dataQa:"1660030867092"}],additionalCheckboxesConfig:[{field:{name:"notifyReceiverEnabled"},component:{type:a.j.Checkbox,title:"Notify for payment"},visual:{},dataQa:"1660029526930"},{field:{name:"notifyReceiverPhone"},component:{type:a.j.Input,title:"SMS on phone",placeholder:"Enter data"},mask:{TextMask:e.Pj.phoneMask},visual:{cssClass:"half-inline",hide:!0},dataQa:"1660029530235"},{field:{name:"notifyReceiverEmail"},component:{type:a.j.Input,title:"Ticket on e-mail",placeholder:"Enter data"},mask:{TextMask:i.emailMask},visual:{cssClass:"half-inline",hide:!0},dataQa:"1660029532868"},{field:{name:"addToFavorite"},component:{type:a.j.Checkbox,title:"Add to favorite"},visual:{},dataQa:"1660029535496"},{field:{name:"notifyAdditionalInfo"},component:{type:a.j.Input,title:"Template name",placeholder:"Enter data"},visual:{hide:!0},dataQa:"1660029538148"},{field:{name:"swift"},component:{type:a.j.Checkbox,title:"Provide SWIFT for currency transfer. I am familiar with the Bank's commission."},visual:{},dataQa:"1660029542963"}],templateNameConfig:[{field:{name:"templateName",validators:[n.Validators.required]},component:{type:a.j.Input,title:"Template name",placeholder:"Enter title"},dataQa:"1660029545603"}]}),G=[{field:{name:"productGroup",validators:[n.Validators.required]},component:{type:a.j.TextArea,title:"Product group",placeholder:"Enter data",maxlength:255,rows:3,maxRows:7,autoSize:!0}},{field:{name:"tnvdCode",validators:[n.Validators.required,function h(ct){let pe=ct.value;if(pe){const Ce=pe.replace(/[^\d]/g,"");return Ce.length!==pe.length&&(ct.setValue(Ce,{emitEvent:!1,onlySelf:!0}),pe=Ce),"string"!=typeof pe||10!==pe.length?{tnvedError:"\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0422\u041d\u0412\u042d\u0414 \u043a\u043e\u0434"}:null}return null}]},component:{type:a.j.Input,title:"TNVD Code",placeholder:"Enter data",maxlength:10}},{field:{name:"purposeOfPayment",validators:[n.Validators.required]},component:{type:a.j.TextArea,title:"Purpose of payment",placeholder:"Enter data",maxlength:255,rows:3,maxRows:7,autoSize:!0}}],ce=()=>[{field:{name:"operationsTypeCode",value:"",validators:[n.Validators.required]},component:{type:a.j.Autocomplete,title:"Operations type code",placeholder:"Select operations type code"},select:{items:[]},dataQa:"1660029548035"},{field:{name:"firstDateOperation"},component:{type:a.j.DatePicker,title:"Date of original transaction",placeholder:"Enter data"},mask:{TextMask:O},visual:{cssClass:"half-inline",matIcon:"calendar_today",matStyleOutlined:!0,maxDate:!1,hide:!0},dataQa:"1660029550866"},{field:{name:"noteOperation",validators:[]},component:{type:a.j.Input,title:"Note",placeholder:"You must enter the nature of the operation"},visual:{hide:!0},dataQa:"1660029553209"},{field:{name:"contractNumberSelect",value:""},component:{type:a.j.Autocomplete,title:"UNK number",placeholder:"Select UNK number"},select:{items:[]},visual:{visualDisabled:!1},dataQa:"1660029555481"},{field:{name:"noUnkNumber"},component:{type:a.j.Checkbox,title:"No UNK number"},dataQa:"1660029557716"},{field:{name:"isUnkInOtherBank"},component:{type:a.j.Checkbox,title:"UNK registered in other bank"},visual:{cssClass:""},dataQa:"1660029560174"},{field:{name:"unkInOtherBank"},component:{type:a.j.Input,title:"UNK registered with another bank",placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0423\u041d\u041a \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0431\u0430\u043d\u043a\u0435"},visual:{cssClass:"half-inline half-top",hideNoAnimation:!0,hide:!0},mask:{TextMask:L},dataQa:"1660029563114"},{field:{name:"contractNumber"},component:{type:a.j.Input,title:"Contract number",placeholder:"Enter contract number"},visual:{cssClass:"half-inline",hide:!0},dataQa:"1660029565294"},{field:{name:"contractDate"},component:{type:a.j.DatePicker,title:"Contract date",placeholder:"Enter data"},mask:{TextMask:O},visual:{cssClass:"half-inline",matIcon:"calendar_today",matStyleOutlined:!0,maxDate:!1,hide:!0},dataQa:"1660029568098"},{field:{name:"withoutNumber"},component:{type:a.j.Checkbox,title:"Without number"},visual:{hide:!0},dataQa:"1660029572091"},{field:{name:"agreementSum",validators:[]},component:{type:a.j.Input,title:"Agreement sum",placeholder:"Enter agreement sum"},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:x,type:"amount",stripMask:!0,decimalSymbol:"."},dataQa:"1660029574647"},{field:{name:"amountCurrencyDeal",value:""},component:{type:a.j.Autocomplete,title:"Contract currency code",placeholder:"Select currency"},visual:{cssClass:"half-inline",hide:!0},select:{items:[]},dataQa:"1660029577506"},{field:{name:"withoutSum"},component:{type:a.j.Checkbox,title:"Without amount"},visual:{hide:!0},dataQa:"1660029580602"},{field:{name:"repatriationDate",value:""},component:{type:a.j.DatePicker,title:"Execution of obligations",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,hide:!0},dataQa:"1660029583364"},{field:{name:"refundPrepaymentDate",value:""},component:{type:a.j.DatePicker,title:"Prepayment return date",placeholder:"Select date"},visual:{matIcon:"calendar_today",matStyleOutlined:!0,hide:!0},dataQa:"1660029585563"},{field:{name:"annotation",validators:[]},component:{type:a.j.Input,title:"Note",placeholder:"Enter annotation"},dataQa:"1660029588658"}],xe=[{currency:"USD",date:["01.17.2022","02.21.2022","05.30.2022","06.20.2022","07.04.2022","09.05.2022","10.10.2022","11.11.2022","11.24.2022","12.26.2022"]},{currency:"EUR",date:["04.15.2022","04.18.2022","12.26.2022"]},{currency:"GBP",date:["01.03.2022","04.05.2022","04.18.2022","05.02.2022","06.02.2022","06.03.2022","08.29.2022","12.26.2022","12.27.2022"]},{currency:"AUD",date:["01.03.2022","01.26.2022","04.15.2022","04.18.2022","04.25.2022","06.13.2022","08.01.2022","10.03.2022","12.26.2022","12.27.2022"]},{currency:"BYN",date:["01.07.2022","03.07.2022","03.08.2022","05.02.2022","05.03.2022","05.09.2022","11.07.2022"]},{currency:"CAD",date:["01.03.2022","02.21.2022","04.15.2022","05.23.2022","07.01.2022","08.01.2022","09.05.2022","09.30.2022","10.10.2022","11.11.2022","12.26.2022","12.27.2022"]},{currency:"CHF",date:["04.15.2022","04.18.2022","05.26.2022","06.06.2022","08.01.2022","12.26.2022"]},{currency:"CNY",date:["01.03.2022","01.31.2022","02.01.2022","02.02.2022","02.03.2022","02.04.2022","04.04.2022","04.05.2022","05.02.2022","05.03.2022","05.04.2022","06.03.2022","09.12.2022","10.03.2022","10.04.2022","10.05.2022","10.06.2022","10.07.2022"]},{currency:"CZK",date:["04.15.2022","04.18.2022","07.05.2022","07.06.2022","09.28.2022","10.28.2022","11.17.2022","12.26.2022"]},{currency:"DKK",date:["04.14.2022","04.15.2022","04.18.2022","05.13.2022","05.26.2022","05.27.2022","06.06.2022","12.26.2022"]},{currency:"HKD",date:["02.01.2022","02.02.2022","02.03.2022","04.05.2022","04.15.2022","04.18.2022","05.02.2022","05.09.2022","06.03.2022","07.01.2022","09.12.2022","10.04.2022","12.26.2022","12.27.2022"]},{currency:"JPY",date:["01.03.2022","01.10.2022","02.11.2022","02.23.2022","03.21.2022","04.29.2022","05.03.2022","05.04.2022","05.05.2022","07.18.2022","08.11.2022","09.19.2022","09.23.2022","10.10.2022","11.03.2022","11.23.2022"]},{currency:"KZT",date:["01.03.2022","01.04.2022","01.07.2022","03.07.2022","03.08.2022","03.21.2022","03.22.2022","03.23.2022","05.01.2022","05.02.2022","05.09.2022","05.10.2022","07.06.2022","08.29.2022","08.30.2022","12.01.2022","12.16.2022","12.17.2022","12.18.2022","12.19.2022"]},{currency:"NOK",date:["04.14.2022","04.15.2022","04.18.2022","05.17.2022","05.26.2022","06.06.2022","12.26.2022"]},{currency:"NZD",date:["01.03.2022","01.04.2022","01.24.2022","01.31.2022","02.07.2022","04.15.2022","04.18.2022","04.25.2022","06.06.2022","06.24.2022","10.24.2022","12.26.2022","12.27.2022"]},{currency:"PLN",date:["01.06.2022","04.18.2022","05.03.2022","06.16.2022","08.15.2022","11.01.2022","11.11.2022","12.26.2022"]},{currency:"SEK",date:["01.06.2022","04.15.2022","04.18.2022","05.26.2022","06.06.2022","06.24.2022","12.26.2022"]},{currency:"TRY",date:["05.02.2022","05.03.2022","05.04.2022","05.19.2022","07.11.2022","07.12.2022","07.15.2022","08.30.2022"]}];function we(ct,pe,Ce,U){const H=pe.find(oe=>oe.field.name===Ce),Z=ct.get(Ce);H&&H.mask&&H.mask.TextMask[0]===B?Z&&U&&Z.setValue(U.replace(w,"")):Z&&Z.setValue(U)}const Ge=[{code:"AT",country:"\u0410\u0432\u0441\u0442\u0440\u0438\u044f"},{code:"BE",country:"\u0411\u0435\u043b\u044c\u0433\u0438\u044f"},{code:"GB",country:"\u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f"},{code:"DE",country:"\u0413\u0435\u0440\u043c\u0430\u043d\u0438\u044f"},{code:"IE",country:"\u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f"},{code:"LI",country:"\u041b\u0438\u0445\u0442\u0435\u043d\u0448\u0442\u0435\u0439\u043d"},{code:"LU",country:"\u041b\u044e\u043a\u0441\u0435\u043c\u0431\u0443\u0440\u0433"},{code:"MC",country:"\u041c\u043e\u043d\u0430\u043a\u043e"},{code:"NL",country:"\u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b"},{code:"FR",country:"\u0424\u0440\u0430\u043d\u0446\u0438\u044f"},{code:"CH",country:"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044f"},{code:"BY",country:"\u0411\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u0438\u044f"},{code:"BG",country:"\u0411\u043e\u043b\u0433\u0430\u0440\u0438\u044f"},{code:"HU",country:"\u0412\u0435\u043d\u0433\u0440\u0438\u044f"},{code:"MD",country:"\u041c\u043e\u043b\u0434\u0430\u0432\u0438\u044f"},{code:"PL",country:"\u041f\u043e\u043b\u044c\u0448\u0430"},{code:"RO",country:"\u0420\u0443\u043c\u044b\u043d\u0438\u044f"},{code:"SK",country:"\u0421\u043b\u043e\u0432\u0430\u043a\u0438\u044f"},{code:"CZ",country:"\u0427\u0435\u0445\u0438\u044f"},{code:"UA",country:"\u0423\u043a\u0440\u0430\u0438\u043d\u0430"},{code:"DK",country:"\u0414\u0430\u043d\u0438\u044f"},{code:"IS",country:"\u0418\u0441\u043b\u0430\u043d\u0434\u0438\u044f"},{code:"LV",country:"\u041b\u0430\u0442\u0432\u0438\u044f"},{code:"LT",country:"\u041b\u0438\u0442\u0432\u0430"},{code:"NO",country:"\u041d\u043e\u0440\u0432\u0435\u0433\u0438\u044f"},{code:"FI",country:"\u0424\u0438\u043d\u043b\u044f\u043d\u0434\u0438\u044f"},{code:"EE",country:"\u042d\u0441\u0442\u043e\u043d\u0438\u044f"},{code:"SE",country:"\u0428\u0432\u0435\u0446\u0438\u044f"},{code:"AL",country:"\u043b\u0431\u0430\u043d\u0438\u044f"},{code:"AD",country:"\u0410\u043d\u0434\u043e\u0440\u0440\u0430"},{code:"BA",country:"\u0411\u043e\u0441\u043d\u0438\u044f \u0438 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430"},{code:"GR",country:"\u0413\u0440\u0435\u0446\u0438\u044f"},{code:"ES",country:"\u0418\u0441\u043f\u0430\u043d\u0438\u044f"},{code:"IT",country:"\u0418\u0442\u0430\u043b\u0438\u044f"},{code:"MK",country:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u044f"},{code:"MT",country:"\u041c\u0430\u043b\u044c\u0442\u0430"},{code:"PT",country:"\u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u044f"},{code:"SM",country:"\u0421\u0430\u043d-\u041c\u0430\u0440\u0438\u043d\u043e"},{code:"RS",country:"\u0421\u0435\u0440\u0431\u0438\u044f"},{code:"SI",country:"\u0421\u043b\u043e\u0432\u0435\u043d\u0438\u044f"},{code:"HR",country:"\u0425\u043e\u0440\u0432\u0430\u0442\u0438\u044f"},{code:"ME",country:"\u0427\u0435\u0440\u043d\u043e\u0433\u043e\u0440\u0438\u044f"},{code:"CY",country:"\u041a\u0438\u043f\u0440"},{code:"AZ",country:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d"},{code:"BH",country:"\u0411\u0430\u0445\u0440\u0435\u0439\u043d"},{code:"BR",country:"\u0411\u0440\u0430\u0437\u0438\u043b\u0438\u044f"},{code:"DO",country:"\u0414\u043e\u043c\u0438\u043d\u0438\u043a\u0430\u043d\u0441\u043a\u0430\u044f \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0430"},{code:"GE",country:"\u0413\u0440\u0443\u0437\u0438\u044f"},{code:"GI",country:"\u0413\u0438\u0431\u0440\u0430\u043b\u0442\u0430\u0440"},{code:"IL",country:"\u0418\u0437\u0440\u0430\u0438\u043b\u044c"},{code:"JO",country:"\u0418\u043e\u0440\u0434\u0430\u043d\u0438\u044f"},{code:"KZ",country:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d"},{code:"KW",country:" \u041a\u0443\u0432\u0435\u0439\u0442"},{code:"LB",country:"\u041b\u0438\u0432\u0430\u043d"},{code:"MR",country:"\u041c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0438\u044f"},{code:"MU",country:"\u041c\u0430\u0432\u0440\u0438\u043a\u0438\u0439"},{code:"PK",country:"\u041f\u0430\u043a\u0438\u0441\u0442\u0430\u043d"},{code:"QA",country:"\u041a\u0430\u0442\u0430\u0440"},{code:"SA",country:"\u0421\u0430\u0443\u0434\u043e\u0432\u0441\u043a\u0430\u044f \u0410\u0440\u0430\u0432\u0438\u044f"},{code:"TN",country:"\u0422\u0443\u043d\u0438\u0441"},{code:"AE",country:"\u041e\u0410\u042d"},{code:"TR",country:"\u0422\u0443\u0440\u0446\u0438\u044f"},{code:"CR",country:"\u041a\u043e\u0441\u0442\u0430-\u0420\u0438\u043a\u0430"}]},33531:(Ee,Q,t)=>{"use strict";t.d(Q,{$e:()=>e,Il:()=>n,iJ:()=>i,lf:()=>d});const n="ibankul_curr",e="doc_transit_pay_doc",i="dealpass_close_181",d=5},73276:(Ee,Q,t)=>{"use strict";t.d(Q,{Dx:()=>i,MR:()=>n,e5:()=>e,su:()=>d});var n=(()=>{return(a=n||(n={})).SVO="svo",a.SPD="spd",a.TRANSFER="transfer",a.COMPLEX="complex",a.OTHER="otherDocs",n;var a})(),e=(()=>{return(a=e||(e={})).CONTRACTS="contracts",a.RECEIPTS="receipts",a.DOCUMENTS="documents",a.DOCUMENTS_FOR_SIGN="documentsForSign",a.DRAFT="draft",a.ONE_WINDOW="oneWindow",e;var a})();const i=[{capture:"VED contracts",number:null,value:e.CONTRACTS},{capture:"VED receipts",number:null,value:e.RECEIPTS},{capture:"VED documents",number:null,value:e.DOCUMENTS},{capture:"Signature documents",number:null,value:e.DOCUMENTS_FOR_SIGN}],d=[{capture:"\u0421\u0412\u041e",value:n.SVO,number:null},{capture:"\u0421\u041f\u0414",value:n.SPD,number:null},{capture:"\u0412\u0430\u043b\u044e\u0442\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b",value:n.TRANSFER,number:null},{capture:"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0438",value:n.COMPLEX,number:null},{capture:"\u041f\u0440\u043e\u0447\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b",value:n.OTHER,number:null}]},79468:(Ee,Q,t)=>{"use strict";t.d(Q,{$7:()=>e,DJ:()=>h,Hf:()=>d,Hi:()=>a,IK:()=>l,RO:()=>u,mm:()=>i,n4:()=>m,oZ:()=>x,r1:()=>n});const n="3",e="643",i=12e4,d="/ACC/ FOR CIVIL USAGE",a=35,u=" ",h=5;var l=(()=>{return(O=l||(l={})).EDIT="edit",O.COPY="copy",O.CREATE_BASED="createBased",O.EDIT_TEMPLATE="editTemplate",O.CREATE_PAYMENT="createPayment",l;var O})(),m=(()=>{return(O=m||(m={})).True="*",O.False="",m;var O})(),x=(()=>{return(O=x||(x={})).Yes="check_box",O.No="check_box_outline_blank",x;var O})()},831:(Ee,Q,t)=>{"use strict";t.d(Q,{MR:()=>n,e5:()=>e});var n=(()=>{return(a=n||(n={})).SVO="svo",a.SPD="spd",a.TRANSFER="transfer",a.COMPLEX="complex",a.OTHER="otherDocs",n;var a})(),e=(()=>{return(a=e||(e={})).CONTRACTS="contracts",a.RECEIPTS="receipts",a.DOCUMENTS="documents",a.DOCUMENTS_FOR_SIGN="documentsForSign",a.DRAFT="draft",a.ONE_WINDOW="oneWindow",e;var a})()},25047:(Ee,Q,t)=>{"use strict";var n=t(11481),e=t(94650),i=t(36895),d=t(80529);const a=void 0,h=["ru",[["AM","PM"],a,a],a,[["\u0412","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"],["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"]],a,[["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],["\u044f\u043d\u0432.","\u0444\u0435\u0432\u0440.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u044f","\u0438\u044e\u043d.","\u0438\u044e\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],["\u044f\u043d\u0432\u0430\u0440\u044f","\u0444\u0435\u0432\u0440\u0430\u043b\u044f","\u043c\u0430\u0440\u0442\u0430","\u0430\u043f\u0440\u0435\u043b\u044f","\u043c\u0430\u044f","\u0438\u044e\u043d\u044f","\u0438\u044e\u043b\u044f","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f","\u043e\u043a\u0442\u044f\u0431\u0440\u044f","\u043d\u043e\u044f\u0431\u0440\u044f","\u0434\u0435\u043a\u0430\u0431\u0440\u044f"]],[["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],["\u044f\u043d\u0432.","\u0444\u0435\u0432\u0440.","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440.","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],["\u044f\u043d\u0432\u0430\u0440\u044c","\u0444\u0435\u0432\u0440\u0430\u043b\u044c","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b\u044c","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u043e\u043a\u0442\u044f\u0431\u0440\u044c","\u043d\u043e\u044f\u0431\u0440\u044c","\u0434\u0435\u043a\u0430\u0431\u0440\u044c"]],[["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],["\u0434\u043e \u0420\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0430 \u0425\u0440\u0438\u0441\u0442\u043e\u0432\u0430","\u043e\u0442 \u0420\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0430 \u0425\u0440\u0438\u0441\u0442\u043e\u0432\u0430"]],1,[6,0],["dd.MM.y","d MMM y '\u0433'.","d MMMM y '\u0433'.","EEEE, d MMMM y '\u0433'."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",a,a,a],[",","\xa0",";","%","+","-","E","\xd7","\u2030","\u221e","\u043d\u0435\xa0\u0447\u0438\u0441\u043b\u043e",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"RUB","\u20bd","\u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c",{BYN:[a,"\u0440."],GEL:[a,"\u10da"],PHP:[a,"\u20b1"],RON:[a,"L"],RUB:["\u20bd"],RUR:["\u0440."],THB:["\u0e3f"],TMT:["\u0422\u041c\u0422"],TWD:["NT$"],UAH:["\u20b4"],XXX:["XXXX"]},"ltr",function u(M){const o=Math.floor(Math.abs(M)),g=M.toString().replace(/^[^.]*\.?/,"").length;return 0===g&&o%10==1&&o%100!=11?1:0===g&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?3:0===g&&o%10==0||0===g&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===g&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?4:5}];var l=t(24006),m=t(97392),x=t(98739),O=t(10266),L=t(37340);function B(M){return new e.\u0275RuntimeError(3e3,!1)}function lt(){return typeof window<"u"&&typeof window.document<"u"}function Dt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Yt(M){switch(M.length){case 0:return new L.ZN;case 1:return M[0];default:return new L.ZE(M)}}function Tt(M,s,o,g,V=new Map,me=new Map){const yt=[],Zt=[];let Pn=-1,Fn=null;if(g.forEach(Di=>{const Ti=Di.get("offset"),vo=Ti==Pn,Uo=vo&&Fn||new Map;Di.forEach((bo,wo)=>{let ba=wo,or=bo;if("offset"!==wo)switch(ba=s.normalizePropertyName(ba,yt),or){case L.k1:or=V.get(wo);break;case L.l3:or=me.get(wo);break;default:or=s.normalizeStyleValue(wo,ba,or,yt)}Uo.set(ba,or)}),vo||Zt.push(Uo),Fn=Uo,Pn=Ti}),yt.length)throw function U(M){return new e.\u0275RuntimeError(3502,!1)}();return Zt}function ot(M,s,o,g){switch(s){case"start":M.onStart(()=>g(o&&Gt(o,"start",M)));break;case"done":M.onDone(()=>g(o&&Gt(o,"done",M)));break;case"destroy":M.onDestroy(()=>g(o&&Gt(o,"destroy",M)))}}function Gt(M,s,o){const me=wt(M.element,M.triggerName,M.fromState,M.toState,s||M.phaseName,o.totalTime??M.totalTime,!!o.disabled),yt=M._data;return null!=yt&&(me._data=yt),me}function wt(M,s,o,g,V="",me=0,yt){return{element:M,triggerName:s,fromState:o,toState:g,phaseName:V,totalTime:me,disabled:!!yt}}function Ze(M,s,o){let g=M.get(s);return g||M.set(s,g=o),g}function Ut(M){const s=M.indexOf(":");return[M.substring(1,s),M.slice(s+1)]}let vn=(M,s)=>!1,xn=(M,s,o)=>[],bn=null;function hn(M){const s=M.parentNode||M.host;return s===bn?null:s}(Dt()||typeof Element<"u")&&(lt()?(bn=(()=>document.documentElement)(),vn=(M,s)=>{for(;s;){if(s===M)return!0;s=hn(s)}return!1}):vn=(M,s)=>M.contains(s),xn=(M,s,o)=>{if(o)return Array.from(M.querySelectorAll(s));const g=M.querySelector(s);return g?[g]:[]});let Dn=null,Tn=!1;const Nn=vn,Bt=xn;let Wn=(()=>{class M{validateStyleProperty(o){return function mn(M){Dn||(Dn=function cn(){return typeof document<"u"?document.body:null}()||{},Tn=!!Dn.style&&"WebkitAppearance"in Dn.style);let s=!0;return Dn.style&&!function In(M){return"ebkit"==M.substring(1,6)}(M)&&(s=M in Dn.style,!s&&Tn&&(s="Webkit"+M.charAt(0).toUpperCase()+M.slice(1)in Dn.style)),s}(o)}matchesElement(o,g){return!1}containsElement(o,g){return Nn(o,g)}getParentElement(o){return hn(o)}query(o,g,V){return Bt(o,g,V)}computeStyle(o,g,V){return V||""}animate(o,g,V,me,yt,Zt=[],Pn){return new L.ZN(V,me)}}return M.\u0275fac=function(o){return new(o||M)},M.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})(),rn=(()=>{class M{}return M.NOOP=new Wn,M})();const Sn=1e3,q="ng-enter",J="ng-leave",Oe="ng-trigger",je=".ng-trigger",Et="ng-animating",dt=".ng-animating";function rt(M){if("number"==typeof M)return M;const s=M.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:qe(parseFloat(s[1]),s[2])}function qe(M,s){return"s"===s?M*Sn:M}function ze(M,s,o){return M.hasOwnProperty("duration")?M:function zt(M,s,o){let V,me=0,yt="";if("string"==typeof M){const Zt=M.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Zt)return s.push(B()),{duration:0,delay:0,easing:""};V=qe(parseFloat(Zt[1]),Zt[2]);const Pn=Zt[3];null!=Pn&&(me=qe(parseFloat(Pn),Zt[4]));const Fn=Zt[5];Fn&&(yt=Fn)}else V=M;if(!o){let Zt=!1,Pn=s.length;V<0&&(s.push(function _(){return new e.\u0275RuntimeError(3100,!1)}()),Zt=!0),me<0&&(s.push(function y(){return new e.\u0275RuntimeError(3101,!1)}()),Zt=!0),Zt&&s.splice(Pn,0,B())}return{duration:V,delay:me,easing:yt}}(M,s,o)}function vt(M,s={}){return Object.keys(M).forEach(o=>{s[o]=M[o]}),s}function Rt(M){const s=new Map;return Object.keys(M).forEach(o=>{s.set(o,M[o])}),s}function wn(M,s=new Map,o){if(o)for(let[g,V]of o)s.set(g,V);for(let[g,V]of M)s.set(g,V);return s}function Qn(M,s,o){return o?s+":"+o+";":""}function pi(M){let s="";for(let o=0;o<M.style.length;o++){const g=M.style.item(o);s+=Qn(0,g,M.style.getPropertyValue(g))}for(const o in M.style)M.style.hasOwnProperty(o)&&!o.startsWith("_")&&(s+=Qn(0,Hn(o),M.style[o]));M.setAttribute("style",s)}function Ei(M,s,o){M.style&&(s.forEach((g,V)=>{const me=en(V);o&&!o.has(V)&&o.set(V,M.style[me]),M.style[me]=g}),Dt()&&pi(M))}function ki(M,s){M.style&&(s.forEach((o,g)=>{const V=en(g);M.style[V]=""}),Dt()&&pi(M))}function Co(M){return Array.isArray(M)?1==M.length?M[0]:(0,L.vP)(M):M}const no=new RegExp("{{\\s*(.+?)\\s*}}","g");function Qo(M){let s=[];if("string"==typeof M){let o;for(;o=no.exec(M);)s.push(o[1]);no.lastIndex=0}return s}function Mo(M,s,o){const g=M.toString(),V=g.replace(no,(me,yt)=>{let Zt=s[yt];return null==Zt&&(o.push(function C(M){return new e.\u0275RuntimeError(3003,!1)}()),Zt=""),Zt.toString()});return V==g?M:V}function po(M){const s=[];let o=M.next();for(;!o.done;)s.push(o.value),o=M.next();return s}const Io=/-+([a-z0-9])/g;function en(M){return M.replace(Io,(...s)=>s[1].toUpperCase())}function Hn(M){return M.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function De(M,s,o){switch(s.type){case 7:return M.visitTrigger(s,o);case 0:return M.visitState(s,o);case 1:return M.visitTransition(s,o);case 2:return M.visitSequence(s,o);case 3:return M.visitGroup(s,o);case 4:return M.visitAnimate(s,o);case 5:return M.visitKeyframes(s,o);case 6:return M.visitStyle(s,o);case 8:return M.visitReference(s,o);case 9:return M.visitAnimateChild(s,o);case 10:return M.visitAnimateRef(s,o);case 11:return M.visitQuery(s,o);case 12:return M.visitStagger(s,o);default:throw function T(M){return new e.\u0275RuntimeError(3004,!1)}()}}function ve(M,s){return window.getComputedStyle(M)[s]}const Ae="*";function bt(M,s){const o=[];return"string"==typeof M?M.split(/\s*,\s*/).forEach(g=>function Le(M,s,o){if(":"==M[0]){const Pn=function Pt(M,s){switch(M){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,g)=>parseFloat(g)>parseFloat(o);case":decrement":return(o,g)=>parseFloat(g)<parseFloat(o);default:return s.push(function Ge(M){return new e.\u0275RuntimeError(3016,!1)}()),"* => *"}}(M,o);if("function"==typeof Pn)return void s.push(Pn);M=Pn}const g=M.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return o.push(function we(M){return new e.\u0275RuntimeError(3015,!1)}()),s;const V=g[1],me=g[2],yt=g[3];s.push(jt(V,yt));"<"==me[0]&&!(V==Ae&&yt==Ae)&&s.push(jt(yt,V))}(g,o,s)):o.push(M),o}const dn=new Set(["true","1"]),St=new Set(["false","0"]);function jt(M,s){const o=dn.has(M)||St.has(M),g=dn.has(s)||St.has(s);return(V,me)=>{let yt=M==Ae||M==V,Zt=s==Ae||s==me;return!yt&&o&&"boolean"==typeof V&&(yt=V?dn.has(M):St.has(M)),!Zt&&g&&"boolean"==typeof me&&(Zt=me?dn.has(s):St.has(s)),yt&&Zt}}const on=new RegExp("s*:selfs*,?","g");function Nt(M,s,o,g){return new Ot(M).build(s,o,g)}class Ot{constructor(s){this._driver=s}build(s,o,g){const V=new _i(o);return this._resetContextStyleTimingState(V),De(this,Co(s),V)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,o){let g=o.queryCount=0,V=o.depCount=0;const me=[],yt=[];return"@"==s.name.charAt(0)&&o.errors.push(function I(){return new e.\u0275RuntimeError(3006,!1)}()),s.definitions.forEach(Zt=>{if(this._resetContextStyleTimingState(o),0==Zt.type){const Pn=Zt,Fn=Pn.name;Fn.toString().split(/\s*,\s*/).forEach(Di=>{Pn.name=Di,me.push(this.visitState(Pn,o))}),Pn.name=Fn}else if(1==Zt.type){const Pn=this.visitTransition(Zt,o);g+=Pn.queryCount,V+=Pn.depCount,yt.push(Pn)}else o.errors.push(function F(){return new e.\u0275RuntimeError(3007,!1)}())}),{type:7,name:s.name,states:me,transitions:yt,queryCount:g,depCount:V,options:null}}visitState(s,o){const g=this.visitStyle(s.styles,o),V=s.options&&s.options.params||null;if(g.containsDynamicStyles){const me=new Set,yt=V||{};g.styles.forEach(Zt=>{Zt instanceof Map&&Zt.forEach(Pn=>{Qo(Pn).forEach(Fn=>{yt.hasOwnProperty(Fn)||me.add(Fn)})})}),me.size&&(po(me.values()),o.errors.push(function z(M,s){return new e.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:s.name,style:g,options:V?{params:V}:null}}visitTransition(s,o){o.queryCount=0,o.depCount=0;const g=De(this,Co(s.animation),o);return{type:1,matchers:bt(s.expr,o.errors),animation:g,queryCount:o.queryCount,depCount:o.depCount,options:li(s.options)}}visitSequence(s,o){return{type:2,steps:s.steps.map(g=>De(this,g,o)),options:li(s.options)}}visitGroup(s,o){const g=o.currentTime;let V=0;const me=s.steps.map(yt=>{o.currentTime=g;const Zt=De(this,yt,o);return V=Math.max(V,o.currentTime),Zt});return o.currentTime=V,{type:3,steps:me,options:li(s.options)}}visitAnimate(s,o){const g=function Ui(M,s){if(M.hasOwnProperty("duration"))return M;if("number"==typeof M)return vi(ze(M,s).duration,0,"");const o=M;if(o.split(/\s+/).some(me=>"{"==me.charAt(0)&&"{"==me.charAt(1))){const me=vi(0,0,"");return me.dynamic=!0,me.strValue=o,me}const V=ze(o,s);return vi(V.duration,V.delay,V.easing)}(s.timings,o.errors);o.currentAnimateTimings=g;let V,me=s.styles?s.styles:(0,L.oB)({});if(5==me.type)V=this.visitKeyframes(me,o);else{let yt=s.styles,Zt=!1;if(!yt){Zt=!0;const Fn={};g.easing&&(Fn.easing=g.easing),yt=(0,L.oB)(Fn)}o.currentTime+=g.duration+g.delay;const Pn=this.visitStyle(yt,o);Pn.isEmptyStep=Zt,V=Pn}return o.currentAnimateTimings=null,{type:4,timings:g,style:V,options:null}}visitStyle(s,o){const g=this._makeStyleAst(s,o);return this._validateStyleAst(g,o),g}_makeStyleAst(s,o){const g=[],V=Array.isArray(s.styles)?s.styles:[s.styles];for(let Zt of V)"string"==typeof Zt?Zt===L.l3?g.push(Zt):o.errors.push(new e.\u0275RuntimeError(3002,!1)):g.push(Rt(Zt));let me=!1,yt=null;return g.forEach(Zt=>{if(Zt instanceof Map&&(Zt.has("easing")&&(yt=Zt.get("easing"),Zt.delete("easing")),!me))for(let Pn of Zt.values())if(Pn.toString().indexOf("{{")>=0){me=!0;break}}),{type:6,styles:g,easing:yt,offset:s.offset,containsDynamicStyles:me,options:null}}_validateStyleAst(s,o){const g=o.currentAnimateTimings;let V=o.currentTime,me=o.currentTime;g&&me>0&&(me-=g.duration+g.delay),s.styles.forEach(yt=>{"string"!=typeof yt&&yt.forEach((Zt,Pn)=>{const Fn=o.collectedStyles.get(o.currentQuerySelector),Di=Fn.get(Pn);let Ti=!0;Di&&(me!=V&&me>=Di.startTime&&V<=Di.endTime&&(o.errors.push(function P(M,s,o,g,V){return new e.\u0275RuntimeError(3010,!1)}()),Ti=!1),me=Di.startTime),Ti&&Fn.set(Pn,{startTime:me,endTime:V}),o.options&&function xo(M,s,o){const g=s.params||{},V=Qo(M);V.length&&V.forEach(me=>{g.hasOwnProperty(me)||o.push(function $(M){return new e.\u0275RuntimeError(3001,!1)}())})}(Zt,o.options,o.errors)})})}visitKeyframes(s,o){const g={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function E(){return new e.\u0275RuntimeError(3011,!1)}()),g;let me=0;const yt=[];let Zt=!1,Pn=!1,Fn=0;const Di=s.steps.map(or=>{const fs=this._makeStyleAst(or,o);let qr=null!=fs.offset?fs.offset:function ci(M){if("string"==typeof M)return null;let s=null;if(Array.isArray(M))M.forEach(o=>{if(o instanceof Map&&o.has("offset")){const g=o;s=parseFloat(g.get("offset")),g.delete("offset")}});else if(M instanceof Map&&M.has("offset")){const o=M;s=parseFloat(o.get("offset")),o.delete("offset")}return s}(fs.styles),Ys=0;return null!=qr&&(me++,Ys=fs.offset=qr),Pn=Pn||Ys<0||Ys>1,Zt=Zt||Ys<Fn,Fn=Ys,yt.push(Ys),fs});Pn&&o.errors.push(function R(){return new e.\u0275RuntimeError(3012,!1)}()),Zt&&o.errors.push(function ne(){return new e.\u0275RuntimeError(3200,!1)}());const Ti=s.steps.length;let vo=0;me>0&&me<Ti?o.errors.push(function G(){return new e.\u0275RuntimeError(3202,!1)}()):0==me&&(vo=1/(Ti-1));const Uo=Ti-1,bo=o.currentTime,wo=o.currentAnimateTimings,ba=wo.duration;return Di.forEach((or,fs)=>{const qr=vo>0?fs==Uo?1:vo*fs:yt[fs],Ys=qr*ba;o.currentTime=bo+wo.delay+Ys,wo.duration=Ys,this._validateStyleAst(or,o),or.offset=qr,g.styles.push(or)}),g}visitReference(s,o){return{type:8,animation:De(this,Co(s.animation),o),options:li(s.options)}}visitAnimateChild(s,o){return o.depCount++,{type:9,options:li(s.options)}}visitAnimateRef(s,o){return{type:10,animation:this.visitReference(s.animation,o),options:li(s.options)}}visitQuery(s,o){const g=o.currentQuerySelector,V=s.options||{};o.queryCount++,o.currentQuery=s;const[me,yt]=function fn(M){const s=!!M.split(/\s*,\s*/).find(o=>":self"==o);return s&&(M=M.replace(on,"")),M=M.replace(/@\*/g,je).replace(/@\w+/g,o=>je+"-"+o.slice(1)).replace(/:animating/g,dt),[M,s]}(s.selector);o.currentQuerySelector=g.length?g+" "+me:me,Ze(o.collectedStyles,o.currentQuerySelector,new Map);const Zt=De(this,Co(s.animation),o);return o.currentQuery=null,o.currentQuerySelector=g,{type:11,selector:me,limit:V.limit||0,optional:!!V.optional,includeSelf:yt,animation:Zt,originalSelector:s.selector,options:li(s.options)}}visitStagger(s,o){o.currentQuery||o.errors.push(function ce(){return new e.\u0275RuntimeError(3013,!1)}());const g="full"===s.timings?{duration:0,delay:0,easing:"full"}:ze(s.timings,o.errors,!0);return{type:12,animation:De(this,Co(s.animation),o),timings:g,options:null}}}class _i{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function li(M){return M?(M=vt(M)).params&&(M.params=function Xn(M){return M?vt(M):null}(M.params)):M={},M}function vi(M,s,o){return{duration:M,delay:s,easing:o}}function Zn(M,s,o,g,V,me,yt=null,Zt=!1){return{type:1,element:M,keyframes:s,preStyleProps:o,postStyleProps:g,duration:V,delay:me,totalTime:V+me,easing:yt,subTimeline:Zt}}class gn{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,o){let g=this._map.get(s);g||this._map.set(s,g=[]),g.push(...o)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const kn=new RegExp(":enter","g"),qi=new RegExp(":leave","g");function eo(M,s,o,g,V,me=new Map,yt=new Map,Zt,Pn,Fn=[]){return(new Oo).buildKeyframes(M,s,o,g,V,me,yt,Zt,Pn,Fn)}class Oo{buildKeyframes(s,o,g,V,me,yt,Zt,Pn,Fn,Di=[]){Fn=Fn||new gn;const Ti=new Zi(s,o,Fn,V,me,Di,[]);Ti.options=Pn;const vo=Pn.delay?rt(Pn.delay):0;Ti.currentTimeline.delayNextStep(vo),Ti.currentTimeline.setStyles([yt],null,Ti.errors,Pn),De(this,g,Ti);const Uo=Ti.timelines.filter(bo=>bo.containsAnimation());if(Uo.length&&Zt.size){let bo;for(let wo=Uo.length-1;wo>=0;wo--){const ba=Uo[wo];if(ba.element===o){bo=ba;break}}bo&&!bo.allowOnlyTimelineStyles()&&bo.setStyles([Zt],null,Ti.errors,Pn)}return Uo.length?Uo.map(bo=>bo.buildKeyframes()):[Zn(o,[],[],[],0,vo,"",!1)]}visitTrigger(s,o){}visitState(s,o){}visitTransition(s,o){}visitAnimateChild(s,o){const g=o.subInstructions.get(o.element);if(g){const V=o.createSubContext(s.options),me=o.currentTimeline.currentTime,yt=this._visitSubInstructions(g,V,V.options);me!=yt&&o.transformIntoNewTimeline(yt)}o.previousNode=s}visitAnimateRef(s,o){const g=o.createSubContext(s.options);g.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],o,g),this.visitReference(s.animation,g),o.transformIntoNewTimeline(g.currentTimeline.currentTime),o.previousNode=s}_applyAnimationRefDelays(s,o,g){for(const V of s){const me=V?.delay;if(me){const yt="number"==typeof me?me:rt(Mo(me,V?.params??{},o.errors));g.delayNextStep(yt)}}}_visitSubInstructions(s,o,g){let me=o.currentTimeline.currentTime;const yt=null!=g.duration?rt(g.duration):null,Zt=null!=g.delay?rt(g.delay):null;return 0!==yt&&s.forEach(Pn=>{const Fn=o.appendInstructionToTimeline(Pn,yt,Zt);me=Math.max(me,Fn.duration+Fn.delay)}),me}visitReference(s,o){o.updateOptions(s.options,!0),De(this,s.animation,o),o.previousNode=s}visitSequence(s,o){const g=o.subContextCount;let V=o;const me=s.options;if(me&&(me.params||me.delay)&&(V=o.createSubContext(me),V.transformIntoNewTimeline(),null!=me.delay)){6==V.previousNode.type&&(V.currentTimeline.snapshotCurrentStyles(),V.previousNode=Fo);const yt=rt(me.delay);V.delayNextStep(yt)}s.steps.length&&(s.steps.forEach(yt=>De(this,yt,V)),V.currentTimeline.applyStylesToKeyframe(),V.subContextCount>g&&V.transformIntoNewTimeline()),o.previousNode=s}visitGroup(s,o){const g=[];let V=o.currentTimeline.currentTime;const me=s.options&&s.options.delay?rt(s.options.delay):0;s.steps.forEach(yt=>{const Zt=o.createSubContext(s.options);me&&Zt.delayNextStep(me),De(this,yt,Zt),V=Math.max(V,Zt.currentTimeline.currentTime),g.push(Zt.currentTimeline)}),g.forEach(yt=>o.currentTimeline.mergeTimelineCollectedStyles(yt)),o.transformIntoNewTimeline(V),o.previousNode=s}_visitTiming(s,o){if(s.dynamic){const g=s.strValue;return ze(o.params?Mo(g,o.params,o.errors):g,o.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,o){const g=o.currentAnimateTimings=this._visitTiming(s.timings,o),V=o.currentTimeline;g.delay&&(o.incrementTime(g.delay),V.snapshotCurrentStyles());const me=s.style;5==me.type?this.visitKeyframes(me,o):(o.incrementTime(g.duration),this.visitStyle(me,o),V.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=s}visitStyle(s,o){const g=o.currentTimeline,V=o.currentAnimateTimings;!V&&g.hasCurrentStyleProperties()&&g.forwardFrame();const me=V&&V.easing||s.easing;s.isEmptyStep?g.applyEmptyStep(me):g.setStyles(s.styles,me,o.errors,o.options),o.previousNode=s}visitKeyframes(s,o){const g=o.currentAnimateTimings,V=o.currentTimeline.duration,me=g.duration,Zt=o.createSubContext().currentTimeline;Zt.easing=g.easing,s.styles.forEach(Pn=>{Zt.forwardTime((Pn.offset||0)*me),Zt.setStyles(Pn.styles,Pn.easing,o.errors,o.options),Zt.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(Zt),o.transformIntoNewTimeline(V+me),o.previousNode=s}visitQuery(s,o){const g=o.currentTimeline.currentTime,V=s.options||{},me=V.delay?rt(V.delay):0;me&&(6===o.previousNode.type||0==g&&o.currentTimeline.hasCurrentStyleProperties())&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Fo);let yt=g;const Zt=o.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!V.optional,o.errors);o.currentQueryTotal=Zt.length;let Pn=null;Zt.forEach((Fn,Di)=>{o.currentQueryIndex=Di;const Ti=o.createSubContext(s.options,Fn);me&&Ti.delayNextStep(me),Fn===o.element&&(Pn=Ti.currentTimeline),De(this,s.animation,Ti),Ti.currentTimeline.applyStylesToKeyframe(),yt=Math.max(yt,Ti.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(yt),Pn&&(o.currentTimeline.mergeTimelineCollectedStyles(Pn),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=s}visitStagger(s,o){const g=o.parentContext,V=o.currentTimeline,me=s.timings,yt=Math.abs(me.duration),Zt=yt*(o.currentQueryTotal-1);let Pn=yt*o.currentQueryIndex;switch(me.duration<0?"reverse":me.easing){case"reverse":Pn=Zt-Pn;break;case"full":Pn=g.currentStaggerTime}const Di=o.currentTimeline;Pn&&Di.delayNextStep(Pn);const Ti=Di.currentTime;De(this,s.animation,o),o.previousNode=s,g.currentStaggerTime=V.currentTime-Ti+(V.startTime-g.currentTimeline.startTime)}}const Fo={};class Zi{constructor(s,o,g,V,me,yt,Zt,Pn){this._driver=s,this.element=o,this.subInstructions=g,this._enterClassName=V,this._leaveClassName=me,this.errors=yt,this.timelines=Zt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Pn||new Wo(this._driver,o,0),Zt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,o){if(!s)return;const g=s;let V=this.options;null!=g.duration&&(V.duration=rt(g.duration)),null!=g.delay&&(V.delay=rt(g.delay));const me=g.params;if(me){let yt=V.params;yt||(yt=this.options.params={}),Object.keys(me).forEach(Zt=>{(!o||!yt.hasOwnProperty(Zt))&&(yt[Zt]=Mo(me[Zt],yt,this.errors))})}}_copyOptions(){const s={};if(this.options){const o=this.options.params;if(o){const g=s.params={};Object.keys(o).forEach(V=>{g[V]=o[V]})}}return s}createSubContext(s=null,o,g){const V=o||this.element,me=new Zi(this._driver,V,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(V,g||0));return me.previousNode=this.previousNode,me.currentAnimateTimings=this.currentAnimateTimings,me.options=this._copyOptions(),me.updateOptions(s),me.currentQueryIndex=this.currentQueryIndex,me.currentQueryTotal=this.currentQueryTotal,me.parentContext=this,this.subContextCount++,me}transformIntoNewTimeline(s){return this.previousNode=Fo,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,o,g){const V={duration:o??s.duration,delay:this.currentTimeline.currentTime+(g??0)+s.delay,easing:""},me=new na(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,V,s.stretchStartingKeyframe);return this.timelines.push(me),V}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,o,g,V,me,yt){let Zt=[];if(V&&Zt.push(this.element),s.length>0){s=(s=s.replace(kn,"."+this._enterClassName)).replace(qi,"."+this._leaveClassName);let Fn=this._driver.query(this.element,s,1!=g);0!==g&&(Fn=g<0?Fn.slice(Fn.length+g,Fn.length):Fn.slice(0,g)),Zt.push(...Fn)}return!me&&0==Zt.length&&yt.push(function xe(M){return new e.\u0275RuntimeError(3014,!1)}()),Zt}}class Wo{constructor(s,o,g,V){this._driver=s,this.element=o,this.startTime=g,this._elementTimelineStylesLookup=V,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const o=1===this._keyframes.size&&this._pendingStyles.size;this.duration||o?(this.forwardTime(this.currentTime+s),o&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,o){return this.applyStylesToKeyframe(),new Wo(this._driver,s,o||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,o){this._localTimelineStyles.set(s,o),this._globalTimelineStyles.set(s,o),this._styleSummary.set(s,{time:this.currentTime,value:o})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[o,g]of this._globalTimelineStyles)this._backFill.set(o,g||L.l3),this._currentKeyframe.set(o,L.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,o,g,V){o&&this._previousKeyframe.set("easing",o);const me=V&&V.params||{},yt=function rr(M,s){const o=new Map;let g;return M.forEach(V=>{if("*"===V){g=g||s.keys();for(let me of g)o.set(me,L.l3)}else wn(V,o)}),o}(s,this._globalTimelineStyles);for(let[Zt,Pn]of yt){const Fn=Mo(Pn,me,g);this._pendingStyles.set(Zt,Fn),this._localTimelineStyles.has(Zt)||this._backFill.set(Zt,this._globalTimelineStyles.get(Zt)??L.l3),this._updateStyle(Zt,Fn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,o)=>{this._currentKeyframe.set(o,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,o)=>{this._currentKeyframe.has(o)||this._currentKeyframe.set(o,s)}))}snapshotCurrentStyles(){for(let[s,o]of this._localTimelineStyles)this._pendingStyles.set(s,o),this._updateStyle(s,o)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let o in this._currentKeyframe)s.push(o);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((o,g)=>{const V=this._styleSummary.get(g);(!V||o.time>V.time)&&this._updateStyle(g,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,o=new Set,g=1===this._keyframes.size&&0===this.duration;let V=[];this._keyframes.forEach((Zt,Pn)=>{const Fn=wn(Zt,new Map,this._backFill);Fn.forEach((Di,Ti)=>{Di===L.k1?s.add(Ti):Di===L.l3&&o.add(Ti)}),g||Fn.set("offset",Pn/this.duration),V.push(Fn)});const me=s.size?po(s.values()):[],yt=o.size?po(o.values()):[];if(g){const Zt=V[0],Pn=new Map(Zt);Zt.set("offset",0),Pn.set("offset",1),V=[Zt,Pn]}return Zn(this.element,V,me,yt,this.duration,this.startTime,this.easing,!1)}}class na extends Wo{constructor(s,o,g,V,me,yt,Zt=!1){super(s,o,yt.delay),this.keyframes=g,this.preStyleProps=V,this.postStyleProps=me,this._stretchStartingKeyframe=Zt,this.timings={duration:yt.duration,delay:yt.delay,easing:yt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:o,duration:g,easing:V}=this.timings;if(this._stretchStartingKeyframe&&o){const me=[],yt=g+o,Zt=o/yt,Pn=wn(s[0]);Pn.set("offset",0),me.push(Pn);const Fn=wn(s[0]);Fn.set("offset",qa(Zt)),me.push(Fn);const Di=s.length-1;for(let Ti=1;Ti<=Di;Ti++){let vo=wn(s[Ti]);const Uo=vo.get("offset");vo.set("offset",qa((o+Uo*g)/yt)),me.push(vo)}g=yt,o=0,V="",s=me}return Zn(this.element,s,this.preStyleProps,this.postStyleProps,g,o,V,!0)}}function qa(M,s=3){const o=Math.pow(10,s-1);return Math.round(M*o)/o}class sr{}const _r=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class _o extends sr{normalizePropertyName(s,o){return en(s)}normalizeStyleValue(s,o,g,V){let me="";const yt=g.toString().trim();if(_r.has(o)&&0!==g&&"0"!==g)if("number"==typeof g)me="px";else{const Zt=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Zt&&0==Zt[1].length&&V.push(function j(M,s){return new e.\u0275RuntimeError(3005,!1)}())}return yt+me}}function to(M,s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo){return{type:0,element:M,triggerName:s,isRemovalTransition:V,fromState:o,fromStyles:me,toState:g,toStyles:yt,timelines:Zt,queriedElements:Pn,preStyleProps:Fn,postStyleProps:Di,totalTime:Ti,errors:vo}}const gr={};class za{constructor(s,o,g){this._triggerName=s,this.ast=o,this._stateStyles=g}match(s,o,g,V){return function zr(M,s,o,g,V){return M.some(me=>me(s,o,g,V))}(this.ast.matchers,s,o,g,V)}buildStyles(s,o,g){let V=this._stateStyles.get("*");return void 0!==s&&(V=this._stateStyles.get(s?.toString())||V),V?V.buildStyles(o,g):new Map}build(s,o,g,V,me,yt,Zt,Pn,Fn,Di){const Ti=[],vo=this.ast.options&&this.ast.options.params||gr,bo=this.buildStyles(g,Zt&&Zt.params||gr,Ti),wo=Pn&&Pn.params||gr,ba=this.buildStyles(V,wo,Ti),or=new Set,fs=new Map,qr=new Map,Ys="void"===V,Ou={params:cr(wo,vo),delay:this.ast.options?.delay},Cl=Di?[]:eo(s,o,this.ast.animation,me,yt,bo,ba,Ou,Fn,Ti);let Oc=0;if(Cl.forEach(Kd=>{Oc=Math.max(Kd.duration+Kd.delay,Oc)}),Ti.length)return to(o,this._triggerName,g,V,Ys,bo,ba,[],[],fs,qr,Oc,Ti);Cl.forEach(Kd=>{const Gd=Kd.element,sf=Ze(fs,Gd,new Set);Kd.preStyleProps.forEach(Qp=>sf.add(Qp));const Gp=Ze(qr,Gd,new Set);Kd.postStyleProps.forEach(Qp=>Gp.add(Qp)),Gd!==o&&or.add(Gd)});const zc=po(or.values());return to(o,this._triggerName,g,V,Ys,bo,ba,Cl,zc,fs,qr,Oc)}}function cr(M,s){const o=vt(s);for(const g in M)M.hasOwnProperty(g)&&null!=M[g]&&(o[g]=M[g]);return o}class vr{constructor(s,o,g){this.styles=s,this.defaultParams=o,this.normalizer=g}buildStyles(s,o){const g=new Map,V=vt(this.defaultParams);return Object.keys(s).forEach(me=>{const yt=s[me];null!==yt&&(V[me]=yt)}),this.styles.styles.forEach(me=>{"string"!=typeof me&&me.forEach((yt,Zt)=>{yt&&(yt=Mo(yt,V,o));const Pn=this.normalizer.normalizePropertyName(Zt,o);yt=this.normalizer.normalizeStyleValue(Zt,Pn,yt,o),g.set(Zt,yt)})}),g}}class Cs{constructor(s,o,g){this.name=s,this.ast=o,this._normalizer=g,this.transitionFactories=[],this.states=new Map,o.states.forEach(V=>{this.states.set(V.name,new vr(V.style,V.options&&V.options.params||{},g))}),Er(this.states,"true","1"),Er(this.states,"false","0"),o.transitions.forEach(V=>{this.transitionFactories.push(new za(s,V,this.states))}),this.fallbackTransition=function ia(M,s,o){return new za(M,{type:1,animation:{type:2,steps:[],options:null},matchers:[(yt,Zt)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,o,g,V){return this.transitionFactories.find(yt=>yt.match(s,o,g,V))||null}matchStyles(s,o,g){return this.fallbackTransition.buildStyles(s,o,g)}}function Er(M,s,o){M.has(s)?M.has(o)||M.set(o,M.get(s)):M.has(o)&&M.set(s,M.get(o))}const yo=new gn;class Yr{constructor(s,o,g){this.bodyNode=s,this._driver=o,this._normalizer=g,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,o){const g=[],V=[],me=Nt(this._driver,o,g,V);if(g.length)throw function H(M){return new e.\u0275RuntimeError(3503,!1)}();this._animations.set(s,me)}_buildPlayer(s,o,g){const V=s.element,me=Tt(0,this._normalizer,0,s.keyframes,o,g);return this._driver.animate(V,me,s.duration,s.delay,s.easing,[],!0)}create(s,o,g={}){const V=[],me=this._animations.get(s);let yt;const Zt=new Map;if(me?(yt=eo(this._driver,o,me,q,J,new Map,new Map,g,yo,V),yt.forEach(Di=>{const Ti=Ze(Zt,Di.element,new Map);Di.postStyleProps.forEach(vo=>Ti.set(vo,null))})):(V.push(function Z(){return new e.\u0275RuntimeError(3300,!1)}()),yt=[]),V.length)throw function oe(M){return new e.\u0275RuntimeError(3504,!1)}();Zt.forEach((Di,Ti)=>{Di.forEach((vo,Uo)=>{Di.set(Uo,this._driver.computeStyle(Ti,Uo,L.l3))})});const Fn=Yt(yt.map(Di=>{const Ti=Zt.get(Di.element);return this._buildPlayer(Di,new Map,Ti)}));return this._playersById.set(s,Fn),Fn.onDestroy(()=>this.destroy(s)),this.players.push(Fn),Fn}destroy(s){const o=this._getPlayer(s);o.destroy(),this._playersById.delete(s);const g=this.players.indexOf(o);g>=0&&this.players.splice(g,1)}_getPlayer(s){const o=this._playersById.get(s);if(!o)throw function Pe(M){return new e.\u0275RuntimeError(3301,!1)}();return o}listen(s,o,g,V){const me=wt(o,"","","");return ot(this._getPlayer(s),g,me,V),()=>{}}command(s,o,g,V){if("register"==g)return void this.register(s,V[0]);if("create"==g)return void this.create(s,o,V[0]||{});const me=this._getPlayer(s);switch(g){case"play":me.play();break;case"pause":me.pause();break;case"reset":me.reset();break;case"restart":me.restart();break;case"finish":me.finish();break;case"init":me.init();break;case"setPosition":me.setPosition(parseFloat(V[0]));break;case"destroy":this.destroy(s)}}}const Ya="ng-animate-queued",ur="ng-animate-disabled",er=[],pr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ua={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ca="__ng_removed";class Va{get params(){return this.options.params}constructor(s,o=""){this.namespaceId=o;const g=s&&s.hasOwnProperty("value");if(this.value=function ya(M){return M??null}(g?s.value:s),g){const me=vt(s);delete me.value,this.options=me}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const o=s.params;if(o){const g=this.options.params;Object.keys(o).forEach(V=>{null==g[V]&&(g[V]=o[V])})}}}const Rr="void",ha=new Va(Rr);class mr{constructor(s,o,g){this.id=s,this.hostElement=o,this._engine=g,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,wa(o,this._hostClassName)}listen(s,o,g,V){if(!this._triggers.has(o))throw function Ie(M,s){return new e.\u0275RuntimeError(3302,!1)}();if(null==g||0==g.length)throw function pt(M){return new e.\u0275RuntimeError(3303,!1)}();if(!function hr(M){return"start"==M||"done"==M}(g))throw function Ht(M,s){return new e.\u0275RuntimeError(3400,!1)}();const me=Ze(this._elementListeners,s,[]),yt={name:o,phase:g,callback:V};me.push(yt);const Zt=Ze(this._engine.statesByElement,s,new Map);return Zt.has(o)||(wa(s,Oe),wa(s,Oe+"-"+o),Zt.set(o,ha)),()=>{this._engine.afterFlush(()=>{const Pn=me.indexOf(yt);Pn>=0&&me.splice(Pn,1),this._triggers.has(o)||Zt.delete(o)})}}register(s,o){return!this._triggers.has(s)&&(this._triggers.set(s,o),!0)}_getTrigger(s){const o=this._triggers.get(s);if(!o)throw function Wt(M){return new e.\u0275RuntimeError(3401,!1)}();return o}trigger(s,o,g,V=!0){const me=this._getTrigger(o),yt=new da(this.id,o,s);let Zt=this._engine.statesByElement.get(s);Zt||(wa(s,Oe),wa(s,Oe+"-"+o),this._engine.statesByElement.set(s,Zt=new Map));let Pn=Zt.get(o);const Fn=new Va(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Pn&&Fn.absorbOptions(Pn.options),Zt.set(o,Fn),Pn||(Pn=ha),Fn.value!==Rr&&Pn.value===Fn.value){if(!function Sr(M,s){const o=Object.keys(M),g=Object.keys(s);if(o.length!=g.length)return!1;for(let V=0;V<o.length;V++){const me=o[V];if(!s.hasOwnProperty(me)||M[me]!==s[me])return!1}return!0}(Pn.params,Fn.params)){const wo=[],ba=me.matchStyles(Pn.value,Pn.params,wo),or=me.matchStyles(Fn.value,Fn.params,wo);wo.length?this._engine.reportError(wo):this._engine.afterFlush(()=>{ki(s,ba),Ei(s,or)})}return}const vo=Ze(this._engine.playersByElement,s,[]);vo.forEach(wo=>{wo.namespaceId==this.id&&wo.triggerName==o&&wo.queued&&wo.destroy()});let Uo=me.matchTransition(Pn.value,Fn.value,s,Fn.params),bo=!1;if(!Uo){if(!V)return;Uo=me.fallbackTransition,bo=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:o,transition:Uo,fromState:Pn,toState:Fn,player:yt,isFallbackTransition:bo}),bo||(wa(s,Ya),yt.onStart(()=>{Za(s,Ya)})),yt.onDone(()=>{let wo=this.players.indexOf(yt);wo>=0&&this.players.splice(wo,1);const ba=this._engine.playersByElement.get(s);if(ba){let or=ba.indexOf(yt);or>=0&&ba.splice(or,1)}}),this.players.push(yt),vo.push(yt),yt}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(o=>o.delete(s)),this._elementListeners.forEach((o,g)=>{this._elementListeners.set(g,o.filter(V=>V.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const o=this._engine.playersByElement.get(s);o&&(o.forEach(g=>g.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,o){const g=this._engine.driver.query(s,je,!0);g.forEach(V=>{if(V[Ca])return;const me=this._engine.fetchNamespacesByElement(V);me.size?me.forEach(yt=>yt.triggerLeaveAnimation(V,o,!1,!0)):this.clearElementCache(V)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(V=>this.clearElementCache(V)))}triggerLeaveAnimation(s,o,g,V){const me=this._engine.statesByElement.get(s),yt=new Map;if(me){const Zt=[];if(me.forEach((Pn,Fn)=>{if(yt.set(Fn,Pn.value),this._triggers.has(Fn)){const Di=this.trigger(s,Fn,Rr,V);Di&&Zt.push(Di)}}),Zt.length)return this._engine.markElementAsRemoved(this.id,s,!0,o,yt),g&&Yt(Zt).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const o=this._elementListeners.get(s),g=this._engine.statesByElement.get(s);if(o&&g){const V=new Set;o.forEach(me=>{const yt=me.name;if(V.has(yt))return;V.add(yt);const Pn=this._triggers.get(yt).fallbackTransition,Fn=g.get(yt)||ha,Di=new Va(Rr),Ti=new da(this.id,yt,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:yt,transition:Pn,fromState:Fn,toState:Di,player:Ti,isFallbackTransition:!0})})}}removeNode(s,o){const g=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,o),this.triggerLeaveAnimation(s,o,!0))return;let V=!1;if(g.totalAnimations){const me=g.players.length?g.playersByQueriedElement.get(s):[];if(me&&me.length)V=!0;else{let yt=s;for(;yt=yt.parentNode;)if(g.statesByElement.get(yt)){V=!0;break}}}if(this.prepareLeaveAnimationListeners(s),V)g.markElementAsRemoved(this.id,s,!1,o);else{const me=s[Ca];(!me||me===pr)&&(g.afterFlush(()=>this.clearElementCache(s)),g.destroyInnerAnimations(s),g._onRemovalComplete(s,o))}}insertNode(s,o){wa(s,this._hostClassName)}drainQueuedTransitions(s){const o=[];return this._queue.forEach(g=>{const V=g.player;if(V.destroyed)return;const me=g.element,yt=this._elementListeners.get(me);yt&&yt.forEach(Zt=>{if(Zt.name==g.triggerName){const Pn=wt(me,g.triggerName,g.fromState.value,g.toState.value);Pn._data=s,ot(g.player,Zt.phase,Pn,Zt.callback)}}),V.markedForDestroy?this._engine.afterFlush(()=>{V.destroy()}):o.push(g)}),this._queue=[],o.sort((g,V)=>{const me=g.transition.ast.depCount,yt=V.transition.ast.depCount;return 0==me||0==yt?me-yt:this._engine.driver.containsElement(g.element,V.element)?1:-1})}destroy(s){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}elementContainsData(s){let o=!1;return this._elementListeners.has(s)&&(o=!0),o=!!this._queue.find(g=>g.element===s)||o,o}}class Fr{_onRemovalComplete(s,o){this.onRemovalComplete(s,o)}constructor(s,o,g){this.bodyNode=s,this.driver=o,this._normalizer=g,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(V,me)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(o=>{o.players.forEach(g=>{g.queued&&s.push(g)})}),s}createNamespace(s,o){const g=new mr(s,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(g,o):(this.newHostElements.set(o,g),this.collectEnterElement(o)),this._namespaceLookup[s]=g}_balanceNamespaceList(s,o){const g=this._namespaceList,V=this.namespacesByHostElement;if(g.length-1>=0){let yt=!1,Zt=this.driver.getParentElement(o);for(;Zt;){const Pn=V.get(Zt);if(Pn){const Fn=g.indexOf(Pn);g.splice(Fn+1,0,s),yt=!0;break}Zt=this.driver.getParentElement(Zt)}yt||g.unshift(s)}else g.push(s);return V.set(o,s),s}register(s,o){let g=this._namespaceLookup[s];return g||(g=this.createNamespace(s,o)),g}registerTrigger(s,o,g){let V=this._namespaceLookup[s];V&&V.register(o,g)&&this.totalAnimations++}destroy(s,o){if(!s)return;const g=this._fetchNamespace(s);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[s];const V=this._namespaceList.indexOf(g);V>=0&&this._namespaceList.splice(V,1)}),this.afterFlushAnimationsDone(()=>g.destroy(o))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const o=new Set,g=this.statesByElement.get(s);if(g)for(let V of g.values())if(V.namespaceId){const me=this._fetchNamespace(V.namespaceId);me&&o.add(me)}return o}trigger(s,o,g,V){if(oa(o)){const me=this._fetchNamespace(s);if(me)return me.trigger(o,g,V),!0}return!1}insertNode(s,o,g,V){if(!oa(o))return;const me=o[Ca];if(me&&me.setForRemoval){me.setForRemoval=!1,me.setForMove=!0;const yt=this.collectedLeaveElements.indexOf(o);yt>=0&&this.collectedLeaveElements.splice(yt,1)}if(s){const yt=this._fetchNamespace(s);yt&&yt.insertNode(o,g)}V&&this.collectEnterElement(o)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,o){o?this.disabledNodes.has(s)||(this.disabledNodes.add(s),wa(s,ur)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),Za(s,ur))}removeNode(s,o,g,V){if(oa(o)){const me=s?this._fetchNamespace(s):null;if(me?me.removeNode(o,V):this.markElementAsRemoved(s,o,!1,V),g){const yt=this.namespacesByHostElement.get(o);yt&&yt.id!==s&&yt.removeNode(o,V)}}else this._onRemovalComplete(o,V)}markElementAsRemoved(s,o,g,V,me){this.collectedLeaveElements.push(o),o[Ca]={namespaceId:s,setForRemoval:V,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:me}}listen(s,o,g,V,me){return oa(o)?this._fetchNamespace(s).listen(o,g,V,me):()=>{}}_buildInstruction(s,o,g,V,me){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,g,V,s.fromState.options,s.toState.options,o,me)}destroyInnerAnimations(s){let o=this.driver.query(s,je,!0);o.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(s,dt,!0),o.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(s){const o=this.playersByElement.get(s);o&&o.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(s){const o=this.playersByQueriedElement.get(s);o&&o.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return Yt(this.players).onDone(()=>s());s()})}processLeaveNode(s){const o=s[Ca];if(o&&o.setForRemoval){if(s[Ca]=pr,o.namespaceId){this.destroyInnerAnimations(s);const g=this._fetchNamespace(o.namespaceId);g&&g.clearElementCache(s)}this._onRemovalComplete(s,o.setForRemoval)}s.classList?.contains(ur)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(g=>{this.markElementAsDisabled(g,!1)})}flush(s=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,V)=>this._balanceNamespaceList(g,V)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;g<this.collectedEnterElements.length;g++)wa(this.collectedEnterElements[g],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const g=[];try{o=this._flushAnimations(g,s)}finally{for(let V=0;V<g.length;V++)g[V]()}}else for(let g=0;g<this.collectedLeaveElements.length;g++)this.processLeaveNode(this.collectedLeaveElements[g]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(g=>g()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],o.length?Yt(o).onDone(()=>{g.forEach(V=>V())}):g.forEach(V=>V())}}reportError(s){throw function Xe(M){return new e.\u0275RuntimeError(3402,!1)}()}_flushAnimations(s,o){const g=new gn,V=[],me=new Map,yt=[],Zt=new Map,Pn=new Map,Fn=new Map,Di=new Set;this.disabledNodes.forEach(ho=>{Di.add(ho);const Do=this.driver.query(ho,".ng-animate-queued",!0);for(let Vo=0;Vo<Do.length;Vo++)Di.add(Do[Vo])});const Ti=this.bodyNode,vo=Array.from(this.statesByElement.keys()),Uo=Ia(vo,this.collectedEnterElements),bo=new Map;let wo=0;Uo.forEach((ho,Do)=>{const Vo=q+wo++;bo.set(Do,Vo),ho.forEach(Xa=>wa(Xa,Vo))});const ba=[],or=new Set,fs=new Set;for(let ho=0;ho<this.collectedLeaveElements.length;ho++){const Do=this.collectedLeaveElements[ho],Vo=Do[Ca];Vo&&Vo.setForRemoval&&(ba.push(Do),or.add(Do),Vo.hasAnimation?this.driver.query(Do,".ng-star-inserted",!0).forEach(Xa=>or.add(Xa)):fs.add(Do))}const qr=new Map,Ys=Ia(vo,Array.from(or));Ys.forEach((ho,Do)=>{const Vo=J+wo++;qr.set(Do,Vo),ho.forEach(Xa=>wa(Xa,Vo))}),s.push(()=>{Uo.forEach((ho,Do)=>{const Vo=bo.get(Do);ho.forEach(Xa=>Za(Xa,Vo))}),Ys.forEach((ho,Do)=>{const Vo=qr.get(Do);ho.forEach(Xa=>Za(Xa,Vo))}),ba.forEach(ho=>{this.processLeaveNode(ho)})});const Ou=[],Cl=[];for(let ho=this._namespaceList.length-1;ho>=0;ho--)this._namespaceList[ho].drainQueuedTransitions(o).forEach(Vo=>{const Xa=Vo.player,Hs=Vo.element;if(Ou.push(Xa),this.collectedEnterElements.length){const Sc=Hs[Ca];if(Sc&&Sc.setForMove){if(Sc.previousTriggersValues&&Sc.previousTriggersValues.has(Vo.triggerName)){const cp=Sc.previousTriggersValues.get(Vo.triggerName),Hl=this.statesByElement.get(Vo.element);if(Hl&&Hl.has(Vo.triggerName)){const cf=Hl.get(Vo.triggerName);cf.value=cp,Hl.set(Vo.triggerName,cf)}}return void Xa.destroy()}}const hd=!Ti||!this.driver.containsElement(Ti,Hs),yl=qr.get(Hs),Xp=bo.get(Hs),bs=this._buildInstruction(Vo,g,Xp,yl,hd);if(bs.errors&&bs.errors.length)return void Cl.push(bs);if(hd)return Xa.onStart(()=>ki(Hs,bs.fromStyles)),Xa.onDestroy(()=>Ei(Hs,bs.toStyles)),void V.push(Xa);if(Vo.isFallbackTransition)return Xa.onStart(()=>ki(Hs,bs.fromStyles)),Xa.onDestroy(()=>Ei(Hs,bs.toStyles)),void V.push(Xa);const f1=[];bs.timelines.forEach(Sc=>{Sc.stretchStartingKeyframe=!0,this.disabledNodes.has(Sc.element)||f1.push(Sc)}),bs.timelines=f1,g.append(Hs,bs.timelines),yt.push({instruction:bs,player:Xa,element:Hs}),bs.queriedElements.forEach(Sc=>Ze(Zt,Sc,[]).push(Xa)),bs.preStyleProps.forEach((Sc,cp)=>{if(Sc.size){let Hl=Pn.get(cp);Hl||Pn.set(cp,Hl=new Set),Sc.forEach((cf,O_)=>Hl.add(O_))}}),bs.postStyleProps.forEach((Sc,cp)=>{let Hl=Fn.get(cp);Hl||Fn.set(cp,Hl=new Set),Sc.forEach((cf,O_)=>Hl.add(O_))})});if(Cl.length){const ho=[];Cl.forEach(Do=>{ho.push(function Be(M,s){return new e.\u0275RuntimeError(3505,!1)}())}),Ou.forEach(Do=>Do.destroy()),this.reportError(ho)}const Oc=new Map,zc=new Map;yt.forEach(ho=>{const Do=ho.element;g.has(Do)&&(zc.set(Do,Do),this._beforeAnimationBuild(ho.player.namespaceId,ho.instruction,Oc))}),V.forEach(ho=>{const Do=ho.element;this._getPreviousPlayers(Do,!1,ho.namespaceId,ho.triggerName,null).forEach(Xa=>{Ze(Oc,Do,[]).push(Xa),Xa.destroy()})});const Kd=ba.filter(ho=>ao(ho,Pn,Fn)),Gd=new Map;br(Gd,this.driver,fs,Fn,L.l3).forEach(ho=>{ao(ho,Pn,Fn)&&Kd.push(ho)});const Gp=new Map;Uo.forEach((ho,Do)=>{br(Gp,this.driver,new Set(ho),Pn,L.k1)}),Kd.forEach(ho=>{const Do=Gd.get(ho),Vo=Gp.get(ho);Gd.set(ho,new Map([...Array.from(Do?.entries()??[]),...Array.from(Vo?.entries()??[])]))});const Qp=[],D0=[],h1={};yt.forEach(ho=>{const{element:Do,player:Vo,instruction:Xa}=ho;if(g.has(Do)){if(Di.has(Do))return Vo.onDestroy(()=>Ei(Do,Xa.toStyles)),Vo.disabled=!0,Vo.overrideTotalTime(Xa.totalTime),void V.push(Vo);let Hs=h1;if(zc.size>1){let yl=Do;const Xp=[];for(;yl=yl.parentNode;){const bs=zc.get(yl);if(bs){Hs=bs;break}Xp.push(yl)}Xp.forEach(bs=>zc.set(bs,Hs))}const hd=this._buildAnimation(Vo.namespaceId,Xa,Oc,me,Gp,Gd);if(Vo.setRealPlayer(hd),Hs===h1)Qp.push(Vo);else{const yl=this.playersByElement.get(Hs);yl&&yl.length&&(Vo.parentPlayer=Yt(yl)),V.push(Vo)}}else ki(Do,Xa.fromStyles),Vo.onDestroy(()=>Ei(Do,Xa.toStyles)),D0.push(Vo),Di.has(Do)&&V.push(Vo)}),D0.forEach(ho=>{const Do=me.get(ho.element);if(Do&&Do.length){const Vo=Yt(Do);ho.setRealPlayer(Vo)}}),V.forEach(ho=>{ho.parentPlayer?ho.syncPlayerEvents(ho.parentPlayer):ho.destroy()});for(let ho=0;ho<ba.length;ho++){const Do=ba[ho],Vo=Do[Ca];if(Za(Do,J),Vo&&Vo.hasAnimation)continue;let Xa=[];if(Zt.size){let hd=Zt.get(Do);hd&&hd.length&&Xa.push(...hd);let yl=this.driver.query(Do,dt,!0);for(let Xp=0;Xp<yl.length;Xp++){let bs=Zt.get(yl[Xp]);bs&&bs.length&&Xa.push(...bs)}}const Hs=Xa.filter(hd=>!hd.destroyed);Hs.length?ns(this,Do,Hs):this.processLeaveNode(Do)}return ba.length=0,Qp.forEach(ho=>{this.players.push(ho),ho.onDone(()=>{ho.destroy();const Do=this.players.indexOf(ho);this.players.splice(Do,1)}),ho.play()}),Qp}elementContainsData(s,o){let g=!1;const V=o[Ca];return V&&V.setForRemoval&&(g=!0),this.playersByElement.has(o)&&(g=!0),this.playersByQueriedElement.has(o)&&(g=!0),this.statesByElement.has(o)&&(g=!0),this._fetchNamespace(s).elementContainsData(o)||g}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,o,g,V,me){let yt=[];if(o){const Zt=this.playersByQueriedElement.get(s);Zt&&(yt=Zt)}else{const Zt=this.playersByElement.get(s);if(Zt){const Pn=!me||me==Rr;Zt.forEach(Fn=>{Fn.queued||!Pn&&Fn.triggerName!=V||yt.push(Fn)})}}return(g||V)&&(yt=yt.filter(Zt=>!(g&&g!=Zt.namespaceId||V&&V!=Zt.triggerName))),yt}_beforeAnimationBuild(s,o,g){const me=o.element,yt=o.isRemovalTransition?void 0:s,Zt=o.isRemovalTransition?void 0:o.triggerName;for(const Pn of o.timelines){const Fn=Pn.element,Di=Fn!==me,Ti=Ze(g,Fn,[]);this._getPreviousPlayers(Fn,Di,yt,Zt,o.toState).forEach(Uo=>{const bo=Uo.getRealPlayer();bo.beforeDestroy&&bo.beforeDestroy(),Uo.destroy(),Ti.push(Uo)})}ki(me,o.fromStyles)}_buildAnimation(s,o,g,V,me,yt){const Zt=o.triggerName,Pn=o.element,Fn=[],Di=new Set,Ti=new Set,vo=o.timelines.map(bo=>{const wo=bo.element;Di.add(wo);const ba=wo[Ca];if(ba&&ba.removedBeforeQueried)return new L.ZN(bo.duration,bo.delay);const or=wo!==Pn,fs=function Pa(M){const s=[];return ar(M,s),s}((g.get(wo)||er).map(Oc=>Oc.getRealPlayer())).filter(Oc=>!!Oc.element&&Oc.element===wo),qr=me.get(wo),Ys=yt.get(wo),Ou=Tt(0,this._normalizer,0,bo.keyframes,qr,Ys),Cl=this._buildPlayer(bo,Ou,fs);if(bo.subTimeline&&V&&Ti.add(wo),or){const Oc=new da(s,Zt,wo);Oc.setRealPlayer(Cl),Fn.push(Oc)}return Cl});Fn.forEach(bo=>{Ze(this.playersByQueriedElement,bo.element,[]).push(bo),bo.onDone(()=>function Ro(M,s,o){let g=M.get(s);if(g){if(g.length){const V=g.indexOf(o);g.splice(V,1)}0==g.length&&M.delete(s)}return g}(this.playersByQueriedElement,bo.element,bo))}),Di.forEach(bo=>wa(bo,Et));const Uo=Yt(vo);return Uo.onDestroy(()=>{Di.forEach(bo=>Za(bo,Et)),Ei(Pn,o.toStyles)}),Ti.forEach(bo=>{Ze(V,bo,[]).push(Uo)}),Uo}_buildPlayer(s,o,g){return o.length>0?this.driver.animate(s.element,o,s.duration,s.delay,s.easing,g):new L.ZN(s.duration,s.delay)}}class da{constructor(s,o,g){this.namespaceId=s,this.triggerName=o,this.element=g,this._player=new L.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((o,g)=>{o.forEach(V=>ot(s,g,void 0,V))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const o=this._player;o.triggerCallback&&s.onStart(()=>o.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,o){Ze(this._queuedCallbacks,s,[]).push(o)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const o=this._player;o.triggerCallback&&o.triggerCallback(s)}}function oa(M){return M&&1===M.nodeType}function fr(M,s){const o=M.style.display;return M.style.display=s??"none",o}function br(M,s,o,g,V){const me=[];o.forEach(Pn=>me.push(fr(Pn)));const yt=[];g.forEach((Pn,Fn)=>{const Di=new Map;Pn.forEach(Ti=>{const vo=s.computeStyle(Fn,Ti,V);Di.set(Ti,vo),(!vo||0==vo.length)&&(Fn[Ca]=Ua,yt.push(Fn))}),M.set(Fn,Di)});let Zt=0;return o.forEach(Pn=>fr(Pn,me[Zt++])),yt}function Ia(M,s){const o=new Map;if(M.forEach(Zt=>o.set(Zt,[])),0==s.length)return o;const g=1,V=new Set(s),me=new Map;function yt(Zt){if(!Zt)return g;let Pn=me.get(Zt);if(Pn)return Pn;const Fn=Zt.parentNode;return Pn=o.has(Fn)?Fn:V.has(Fn)?g:yt(Fn),me.set(Zt,Pn),Pn}return s.forEach(Zt=>{const Pn=yt(Zt);Pn!==g&&o.get(Pn).push(Zt)}),o}function wa(M,s){M.classList?.add(s)}function Za(M,s){M.classList?.remove(s)}function ns(M,s,o){Yt(o).onDone(()=>M.processLeaveNode(s))}function ar(M,s){for(let o=0;o<M.length;o++){const g=M[o];g instanceof L.ZE?ar(g.players,s):s.push(g)}}function ao(M,s,o){const g=o.get(M);if(!g)return!1;let V=s.get(M);return V?g.forEach(me=>V.add(me)):s.set(M,g),o.delete(M),!0}class Aa{constructor(s,o,g){this.bodyNode=s,this._driver=o,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(V,me)=>{},this._transitionEngine=new Fr(s,o,g),this._timelineEngine=new Yr(s,o,g),this._transitionEngine.onRemovalComplete=(V,me)=>this.onRemovalComplete(V,me)}registerTrigger(s,o,g,V,me){const yt=s+"-"+V;let Zt=this._triggerCache[yt];if(!Zt){const Pn=[],Fn=[],Di=Nt(this._driver,me,Pn,Fn);if(Pn.length)throw function Ce(M,s){return new e.\u0275RuntimeError(3404,!1)}();Zt=function Pr(M,s,o){return new Cs(M,s,o)}(V,Di,this._normalizer),this._triggerCache[yt]=Zt}this._transitionEngine.registerTrigger(o,V,Zt)}register(s,o){this._transitionEngine.register(s,o)}destroy(s,o){this._transitionEngine.destroy(s,o)}onInsert(s,o,g,V){this._transitionEngine.insertNode(s,o,g,V)}onRemove(s,o,g,V){this._transitionEngine.removeNode(s,o,V||!1,g)}disableAnimations(s,o){this._transitionEngine.markElementAsDisabled(s,o)}process(s,o,g,V){if("@"==g.charAt(0)){const[me,yt]=Ut(g);this._timelineEngine.command(me,o,yt,V)}else this._transitionEngine.trigger(s,o,g,V)}listen(s,o,g,V,me){if("@"==g.charAt(0)){const[yt,Zt]=Ut(g);return this._timelineEngine.listen(yt,o,Zt,me)}return this._transitionEngine.listen(s,o,g,V,me)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ke=(()=>{class M{constructor(o,g,V){this._element=o,this._startStyles=g,this._endStyles=V,this._state=0;let me=M.initialStylesByElement.get(o);me||M.initialStylesByElement.set(o,me=new Map),this._initialStyles=me}start(){this._state<1&&(this._startStyles&&Ei(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ei(this._element,this._initialStyles),this._endStyles&&(Ei(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(M.initialStylesByElement.delete(this._element),this._startStyles&&(ki(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ki(this._element,this._endStyles),this._endStyles=null),Ei(this._element,this._initialStyles),this._state=3)}}return M.initialStylesByElement=new WeakMap,M})();function Ue(M){let s=null;return M.forEach((o,g)=>{(function Qt(M){return"display"===M||"position"===M})(g)&&(s=s||new Map,s.set(g,o))}),s}class ti{constructor(s,o,g,V){this.element=s,this.keyframes=o,this.options=g,this._specialStyles=V,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const o=[];return s.forEach(g=>{o.push(Object.fromEntries(g))}),o}_triggerWebAnimation(s,o,g){return s.animate(this._convertKeyframesToObject(o),g)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((g,V)=>{"offset"!==V&&s.set(V,this._finished?g:ve(this.element,V))}),this.currentSnapshot=s}triggerCallback(s){const o="start"===s?this._onStartFns:this._onDoneFns;o.forEach(g=>g()),o.length=0}}class $i{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,o){return!1}containsElement(s,o){return Nn(s,o)}getParentElement(s){return hn(s)}query(s,o,g){return Bt(s,o,g)}computeStyle(s,o,g){return window.getComputedStyle(s)[o]}animate(s,o,g,V,me,yt=[]){const Pn={duration:g,delay:V,fill:0==V?"both":"forwards"};me&&(Pn.easing=me);const Fn=new Map,Di=yt.filter(Uo=>Uo instanceof ti);(function tt(M,s){return 0===M||0===s})(g,V)&&Di.forEach(Uo=>{Uo.currentSnapshot.forEach((bo,wo)=>Fn.set(wo,bo))});let Ti=function gt(M){return M.length?M[0]instanceof Map?M:M.map(s=>Rt(s)):[]}(o).map(Uo=>wn(Uo));Ti=function nt(M,s,o){if(o.size&&s.length){let g=s[0],V=[];if(o.forEach((me,yt)=>{g.has(yt)||V.push(yt),g.set(yt,me)}),V.length)for(let me=1;me<s.length;me++){let yt=s[me];V.forEach(Zt=>yt.set(Zt,ve(M,Zt)))}}return s}(s,Ti,Fn);const vo=function Je(M,s){let o=null,g=null;return Array.isArray(s)&&s.length?(o=Ue(s[0]),s.length>1&&(g=Ue(s[s.length-1]))):s instanceof Map&&(o=Ue(s)),o||g?new Ke(M,o,g):null}(s,Ti);return new ti(s,Ti,Pn,vo)}}let qt=(()=>{class M extends L._j{constructor(o,g){super(),this._nextAnimationId=0,this._renderer=o.createRenderer(g.body,{id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(o){const g=this._nextAnimationId.toString();this._nextAnimationId++;const V=Array.isArray(o)?(0,L.vP)(o):o;return _e(this._renderer,null,g,"register",[V]),new it(g,this._renderer)}}return M.\u0275fac=function(o){return new(o||M)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(i.K0))},M.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})();class it extends L.LC{constructor(s,o){super(),this._id=s,this._renderer=o}create(s,o){return new ae(this._id,s,o||{},this._renderer)}}class ae{constructor(s,o,g,V){this.id=s,this.element=o,this._renderer=V,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(s,o){return this._renderer.listen(this.element,`@@${this.id}:${s}`,o)}_command(s,...o){return _e(this._renderer,this.element,this.id,s,o)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _e(M,s,o,g,V){return M.setProperty(s,`@@${o}:${g}`,V)}const Vt="@.disabled";let On=(()=>{class M{constructor(o,g,V){this.delegate=o,this.engine=g,this._zone=V,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(me,yt)=>{const Zt=yt?.parentNode(me);Zt&&yt.removeChild(Zt,me)}}createRenderer(o,g){const me=this.delegate.createRenderer(o,g);if(!(o&&g&&g.data&&g.data.animation)){let Di=this._rendererCache.get(me);return Di||(Di=new Rn("",me,this.engine,()=>this._rendererCache.delete(me)),this._rendererCache.set(me,Di)),Di}const yt=g.id,Zt=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Zt,o);const Pn=Di=>{Array.isArray(Di)?Di.forEach(Pn):this.engine.registerTrigger(yt,Zt,o,Di.name,Di)};return g.data.animation.forEach(Pn),new ni(this,Zt,me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(o,g,V){o>=0&&o<this._microtaskId?this._zone.run(()=>g(V)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(me=>{const[yt,Zt]=me;yt(Zt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,V]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return M.\u0275fac=function(o){return new(o||M)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(Aa),e.\u0275\u0275inject(e.NgZone))},M.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})();class Rn{constructor(s,o,g,V){this.namespaceId=s,this.delegate=o,this.engine=g,this._onDestroy=V,this.destroyNode=this.delegate.destroyNode?me=>o.destroyNode(me):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(s,o){return this.delegate.createElement(s,o)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,o){this.delegate.appendChild(s,o),this.engine.onInsert(this.namespaceId,o,s,!1)}insertBefore(s,o,g,V=!0){this.delegate.insertBefore(s,o,g),this.engine.onInsert(this.namespaceId,o,s,V)}removeChild(s,o,g){this.engine.onRemove(this.namespaceId,o,this.delegate,g)}selectRootElement(s,o){return this.delegate.selectRootElement(s,o)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,o,g,V){this.delegate.setAttribute(s,o,g,V)}removeAttribute(s,o,g){this.delegate.removeAttribute(s,o,g)}addClass(s,o){this.delegate.addClass(s,o)}removeClass(s,o){this.delegate.removeClass(s,o)}setStyle(s,o,g,V){this.delegate.setStyle(s,o,g,V)}removeStyle(s,o,g){this.delegate.removeStyle(s,o,g)}setProperty(s,o,g){"@"==o.charAt(0)&&o==Vt?this.disableAnimations(s,!!g):this.delegate.setProperty(s,o,g)}setValue(s,o){this.delegate.setValue(s,o)}listen(s,o,g){return this.delegate.listen(s,o,g)}disableAnimations(s,o){this.engine.disableAnimations(s,o)}}class ni extends Rn{constructor(s,o,g,V,me){super(o,g,V,me),this.factory=s,this.namespaceId=o}setProperty(s,o,g){"@"==o.charAt(0)?"."==o.charAt(1)&&o==Vt?this.disableAnimations(s,g=void 0===g||!!g):this.engine.process(this.namespaceId,s,o.slice(1),g):this.delegate.setProperty(s,o,g)}listen(s,o,g){if("@"==o.charAt(0)){const V=function Ii(M){switch(M){case"body":return document.body;case"document":return document;case"window":return window;default:return M}}(s);let me=o.slice(1),yt="";return"@"!=me.charAt(0)&&([me,yt]=function so(M){const s=M.indexOf(".");return[M.substring(0,s),M.slice(s+1)]}(me)),this.engine.listen(this.namespaceId,V,me,yt,Zt=>{this.factory.scheduleListenerCallback(Zt._data||-1,g,Zt)})}return this.delegate.listen(s,o,g)}}const ka=[{provide:L._j,useClass:qt},{provide:sr,useFactory:function $a(){return new _o}},{provide:Aa,useClass:(()=>{class M extends Aa{constructor(o,g,V,me){super(o.body,g,V)}ngOnDestroy(){this.flush()}}return M.\u0275fac=function(o){return new(o||M)(e.\u0275\u0275inject(i.K0),e.\u0275\u0275inject(rn),e.\u0275\u0275inject(sr),e.\u0275\u0275inject(e.ApplicationRef))},M.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})()},{provide:e.RendererFactory2,useFactory:function lr(M,s,o){return new On(M,s,o)},deps:[n.\u0275DomRendererFactory2,Aa,e.NgZone]}],Po=[{provide:rn,useFactory:()=>new $i},{provide:e.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...ka],Cr=[{provide:rn,useClass:Wn},{provide:e.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...ka];let _s=(()=>{class M{static withConfig(o){return{ngModule:M,providers:o.disableAnimations?Cr:Po}}}return M.\u0275fac=function(o){return new(o||M)},M.\u0275mod=e.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=e.\u0275\u0275defineInjector({providers:Po,imports:[n.BrowserModule]}),M})();var is=t(80722),Br=t(67795),yi=t(16611),os=t(34510),nc=t(59650),Ic=t(97185),al=t(70418),Bs=(t(66319),t(31196)),Gn=t(4455),ui=t(3782);let si=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[Gn.a,ui.a]})}return M})(),Yi=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[si]})}return M})(),Eo=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[Yi]})}return M})();var bi=t(44180),Wi=t(97582),ei=t(5248),tr=t(76751),Ao=t(40929),jo=t(9149),as=t(92008),Ko=t(15644),xa=t(75568),aa=t(30815),pc=t(79359);function Xo(M,s){if(1&M&&e.\u0275\u0275element(0,"div",23),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("queryParams",o.data.cross.params)("routerLink",o.data.cross.href)}}function Ac(M,s){1&M&&e.\u0275\u0275element(0,"div",24)}function mc(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,Xo,1,2,"div",21),e.\u0275\u0275template(2,Ac,1,0,"ng-template",null,22,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275reference(3),g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.cross.href)("ngIfElse",o)}}function Re(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"div",27),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",o,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275attribute("data-qa","1680782965416"+g)}}function Ct(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",25),e.\u0275\u0275template(1,Re,2,2,"div",26),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.requestAnswer)}}function $e(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",30)(1,"mat-icon",31),e.\u0275\u0275text(2,"insert_drive_file"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",32),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(yt.getAttach(me.id,me.fileName))}),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275attribute("data-qa","1657964918115"+g),e.\u0275\u0275advance(3),e.\u0275\u0275attribute("data-qa","1657964904650"+g),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.fileName," ")}}function Kt(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",28),e.\u0275\u0275template(1,$e,5,3,"div",29),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mail.attachments)}}function yn(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"mat-icon",38),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("fontSet",o.matStyleOutlined&&"material-icons-outlined"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.matIcon)}}function ii(M,s){if(1&M&&e.\u0275\u0275element(0,"mat-icon",39),2&M){const o=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("svgIcon",o.svgIcon)}}function hi(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,yn,2,2,"mat-icon",36),e.\u0275\u0275template(2,ii,1,1,"mat-icon",37),e.\u0275\u0275elementStart(3,"div"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.matIcon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.svgIcon),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(5,3,o.description,g.lang))}}function Ki(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(yt.doAction(me))}),e.\u0275\u0275template(1,hi,6,6,"ng-container",2),e.\u0275\u0275elementEnd()}if(2&M){const o=s.$implicit;e.\u0275\u0275attribute("data-qa","1663066931047"+s.index),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","answer"!==o.name)}}function ea(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",33),e.\u0275\u0275template(1,Ki,2,2,"div",34),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mail.actionsList)}}function ra(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,mc,4,2,"div",7),e.\u0275\u0275elementStart(6,"div",8)(7,"div",9)(8,"div",10)(9,"div",11)(10,"div",12),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"div",13),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div"),e.\u0275\u0275text(15),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"div",14)(17,"div",15),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(19,"div",16),e.\u0275\u0275pipe(20,"hyperlink"),e.\u0275\u0275template(21,Ct,2,1,"div",17),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(22,Kt,2,1,"div",18),e.\u0275\u0275template(23,ea,2,1,"div",19),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",o.title," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data.cross),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(o.mail.registerStamp?o.mail.registerStamp:o.mail.createstamp),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.mail.mailTypeCaption),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.mail.statusCaption," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.mail.caption," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(20,10,o.mail.description),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.requestAnswer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.mail.attachments&&0!==o.mail.attachments.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.answerValue)}}function zo(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}class To{constructor(s,o,g,V,me,yt,Zt,Pn){this.mailService=s,this.documentService=o,this.translation=g,this.router=V,this.toast=me,this.appConfigService=yt,this.activatedRoute=Zt,this.util=Pn,this.pathData=[],this.title="",this.answerValue=!1}get loader(){return this.mailService.loader$.getValue()}set loader(s){this.mailService.loader$.next(s)}get isDisableAnswerAction(){return this.mailService.isDisableAnswerAction(this.mail)}ngOnInit(){this.mailService.openedOldMailTab$.subscribe(s=>{this.isOpenedArchive="archive"===s,this.data=this.isOpenedArchive?{cross:{href:"/archive",params:null}}:{cross:{href:"/recent",params:null}},this.pathData=[{capture:this.isOpenedArchive?"Archive":"Mailings from bank",href:this.data.cross.href,bold:!0}]}),this.activatedRoute.queryParams.subscribe(s=>{s&&(this.loader=!0,this.answerValue="answer"===s.mailType,this.queryParams=s.operationsTab?{operationsTab:s.operationsTab}:{},s.from&&(this.data.cross.href="/"===s.from.substr(1,1)?s.from:"/"+s.from,this.data.cross.params=this.queryParams))}),this.mailService.openedOldMail$.subscribe(s=>{s?(this.mail=s,s.docType===ei.CI.SenderBank?(this.pathData.push({capture:"Mail from bank"}),this.title=this.translation.translate("Mail from bank"),s.requestCode&&(this.request={id:s.id,caption:s.caption,requestCode:s.requestCode,body:s.body,sectionId:s.sectionId,mailType:s.mailType,requestRequiredFields:s.requestRequiredFields})):(this.pathData.push({capture:"Mail to bank"}),this.title=this.translation.translate("Mail to bank"),s.requestCode&&(this.requestAnswer=this.getRequestAnswer())),this.answerValue=s.answer,this.loader=this.answerValue):this.router.navigate(["mail"])}),this.mailService.operationAlert$.subscribe(s=>{s&&(this.operationAlert=s,"success"===s.errorType&&setTimeout(()=>{this.operationAlert=void 0,this.mailService.operationAlert$.next(void 0),this.router.navigate(["mail"])},2e3))}),this.mailService.deleteMail$.subscribe(s=>{s&&(this.router.navigate(["mail"]),this.mailService.deleteMail$.next(null))})}getRequestAnswer(){return[this.mail.taxtype&&`${this.translation.translate("Type payment:")} ${this.mail.taxtype}`,this.mail.corrAccNumber&&`${this.translation.translate("Beneficiary account number")}: ${this.mail.corrAccNumber}`,this.mail.corrFullName&&`${this.translation.translate("Beneficiary name")}: ${this.mail.corrFullName}`,this.mail.corrInn&&`${this.translation.translate("Beneficiary ITN")}: ${this.mail.corrInn}`,this.mail.corrKpp&&`${this.translation.translate("Beneficiary KPP")}: ${this.mail.corrKpp}`,this.mail.inn&&`${this.translation.translate("Payer ITN")}: ${this.mail.inn}`,this.mail.kpp&&`${this.translation.translate("Payer KPP")}: ${this.mail.kpp}`,this.mail.stat&&`${this.translation.translate("Stat 101")}: ${this.mail.stat}`,this.mail.kbk&&`${this.translation.translate("Stat 104")}: ${this.mail.kbk}`,this.mail.okato&&`${this.translation.translate("Stat 105")}: ${this.mail.okato}`,this.mail.ground&&`${this.translation.translate("Stat 106")}: ${this.mail.ground}`,this.mail.tax1&&`${this.translation.translate("Tax period")} 1: ${this.mail.tax1}`,this.mail.tax2&&`${this.translation.translate("Tax period")} 2: ${this.mail.tax2}`,this.mail.tax3&&`${this.translation.translate("Tax period")} 3: ${this.mail.tax3}`,this.mail.taxdocnum&&`${this.translation.translate("Tax document number")}: ${this.mail.taxdocnum}`,this.mail.taxdocdate&&`${this.translation.translate("Tax document date")}: ${this.mail.taxdocdate}`,this.util.getBoolean(this.mail.isRefundableAmount)?this.mailService.isRefundableAmountTitle:null,this.util.getBoolean(this.mail.isDuplicationRequisites)?this.mailService.isDuplicationRequisitesTitle:null,this.mail.additionalBody&&`${this.translation.translate("Answer text")}: ${this.mail.additionalBody}`].filter(s=>!!s)}ngOnDestroy(){this.mailService.action$.next({mail:void 0,action:void 0})}getAttach(s,o){this.appConfigService.settings.roles.has(ei.u0)?this.mailService.getAttachmentWithStamp(this.mail.id,s).subscribe(g=>{this.mailService.extractAttachment(g,o)}):this.mailService.getAttachment(this.mail.id,s).subscribe(g=>{this.mailService.extractAttachment(g,o)})}answer(){this.mail.caption!==ei.eC||this.mail.sectionId!==ei.JN?this.isDisableAnswerAction||(this.loader=!0,this.answerValue=!0):this.mailService.goToCreditMonitoring()}doAction(s){this.mailService.operationActionChange(s,this.mail)}static#e=this.\u0275fac=function(o){return new(o||To)(e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(as._),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(Ko.Pj))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:To,selectors:[["app-old-mail-info"]],decls:3,vars:3,consts:[["data-qa","1657964763798",3,"pathData"],["class","mail-info","data-qa","1657964767799",4,"ngIf"],[4,"ngIf"],["data-qa","1657964767799",1,"mail-info"],[1,"card"],[1,"card__top-block"],[1,"card__title","section-title"],["class","cross-wrap",4,"ngIf"],["data-qa","1657964791350",1,"card__content-block"],[1,"top-content"],[1,"top-content__header"],[1,"top-content__header__left"],[1,"top-content__header__left__date"],[1,"top-content__header__left__text"],[1,"top-content__text"],[1,"top-content__text-title"],["data-qa","1663066825378",1,"top-content__text-description",3,"innerHTML"],["class","top-content__text-answer",4,"ngIf"],["class","attachment",4,"ngIf"],["class","bottom-content",4,"ngIf"],[1,"cross-wrap"],["class","cross","data-qa","1657964782420",3,"queryParams","routerLink",4,"ngIf","ngIfElse"],["emptyCross",""],["data-qa","1657964782420",1,"cross",3,"queryParams","routerLink"],[1,"cross"],[1,"top-content__text-answer"],[4,"ngFor","ngForOf"],[1,"list-item",3,"innerHTML"],[1,"attachment"],["class","attachment__item",4,"ngFor","ngForOf"],[1,"attachment__item"],[1,"mail-info-file-icon"],[1,"attachment__item-name",3,"click"],[1,"bottom-content"],["class","bottom-content__button",3,"click",4,"ngFor","ngForOf"],[1,"bottom-content__button",3,"click"],["class","mail-info-action-icon",3,"fontSet",4,"ngIf"],["class","mail-info-action-icon",3,"svgIcon",4,"ngIf"],[1,"mail-info-action-icon",3,"fontSet"],[1,"mail-info-action-icon",3,"svgIcon"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275template(1,ra,24,12,"div",1),e.\u0275\u0275template(2,zo,1,0,"app-loader",2)),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.mail),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.loader))},dependencies:[bi.rH,xa.R,i.sg,i.O5,aa.l,m.Hw,yi.X$,pc.N],styles:['@charset "UTF-8";.mail-info[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 32px 40px;box-shadow:none;border-radius:2px}.mail-info[_ngcontent-%COMP%]   .card__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede;white-space:pre-wrap}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:17px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left[_ngcontent-%COMP%]{color:#88909b;display:flex;font-size:18px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__date[_ngcontent-%COMP%]{padding-right:5px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__text[_ngcontent-%COMP%]{color:#444}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-title[_ngcontent-%COMP%]{font-size:22px;margin-top:8px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-description[_ngcontent-%COMP%]{font-size:20px;margin-top:17px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-answer[_ngcontent-%COMP%]{font-size:inherit;margin:1em}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-answer[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{display:list-item}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]   app-alert[_ngcontent-%COMP%]{display:block;margin-top:10px}.mail-info[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{margin-top:25px;padding-bottom:30px;border-bottom:1px solid #dedede}.mail-info[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]{display:flex;margin-bottom:17px}.mail-info[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.mail-info[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]{color:#2f54eb}.mail-info[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.mail-info[_ngcontent-%COMP%]   .bottom-content[_ngcontent-%COMP%]{display:flex;margin-top:40px}.mail-info[_ngcontent-%COMP%]   .bottom-content[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:165px;margin-right:50px}.mail-info[_ngcontent-%COMP%]   .bottom-content__button[_ngcontent-%COMP%]{display:flex;margin:auto 40px auto 0}.mail-info[_ngcontent-%COMP%]   .bottom-content__button[_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%]     .mail-info-file-icon{font-size:22px;color:#2f54eb}[_nghost-%COMP%]     .mail-info-delete-icon{width:14px;height:18px;fill:#88909b}[_nghost-%COMP%]     .mail-info-printer-icon{width:20px;height:18px;fill:#88909b}.mail-info-action-icon[_ngcontent-%COMP%]{margin-right:15px;width:18px;height:20px;color:#88909b;font-size:18px;display:flex;justify-content:center;align-items:center}']})}(0,Wi.gn)([(0,yi.SQ)()],To.prototype,"lang",void 0);var Ha=t(15439),Ri=t.n(Ha),co=t(77579),Jo=t(4128),lo=t(54004),Ja=t(86349),Tr=t(63471),Ka=t(75885),Nr=t(27828),La=t(38101),Gs=t(14228),jr=t(29198),ic=t(75198),rl=t(48086),Ea=t(24201),nr=t(65218),Ra=t(15557),Qs=t(73040),Xs=t(43679),Ss=t(93412);function Yc(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",20)(1,"div")(2,"span",5),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-datepicker",21),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.datePickersChanged(V,"beginDate"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div")(7,"span",5),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"app-datepicker",22),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.datePickersChanged(V,"endDate"))}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,"From",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.beginDate),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,7,"To",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.endDate)}}function hc(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-tab",23),e.\u0275\u0275pipe(1,"translate")),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext();e.\u0275\u0275propertyInterpolate("label",e.\u0275\u0275pipeBind2(1,2,o.capture,V.lang)),e.\u0275\u0275attribute("data-qa","1657786925923"+g)}}function yr(M,s){1&M&&(e.\u0275\u0275elementStart(0,"mat-icon",43),e.\u0275\u0275text(1,"attach_file"),e.\u0275\u0275elementEnd())}function kc(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",33),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.caption)}}function Zs(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",44),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.sectionName)}}function Ts(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",45)(1,"div",46),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",47),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.signStatusCaption),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.statusCaption)}}function Lc(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275text(1,"\u041e\u0442\u043e\u0437\u0432\u0430\u043d\u043e"),e.\u0275\u0275elementEnd())}function oc(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275listener("click",function(V){const yt=e.\u0275\u0275restoreView(o).$implicit,Zt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Zt.openMail(V,yt))}),e.\u0275\u0275elementStart(1,"div",28)(2,"div",29)(3,"div",30),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"maxStringLength"),e.\u0275\u0275template(6,yr,2,0,"mat-icon",31),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,kc,2,1,"div",32),e.\u0275\u0275elementStart(8,"div",33),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"maxStringLength"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,Zs,2,1,"div",34),e.\u0275\u0275elementStart(12,"div",35),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"maxStringLength"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(15,"div",36)(16,"div",37),e.\u0275\u0275text(17),e.\u0275\u0275template(18,Ts,5,2,"div",38),e.\u0275\u0275template(19,Lc,2,0,"div",39),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"app-menu-select",40),e.\u0275\u0275listener("changeEvent",function(V){const yt=e.\u0275\u0275restoreView(o).$implicit,Zt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Zt.operationActionChange(V,yt))}),e.\u0275\u0275elementStart(21,"button",41),e.\u0275\u0275element(22,"span",42),e.\u0275\u0275elementEnd()()()()}if(2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275classProp("unread","send"===o.status),e.\u0275\u0275attribute("data-qa","1663068595382"+g),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",o.mailTypeCaption?o.mailTypeCaption:e.\u0275\u0275pipeBind2(5,15,o.caption,100)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0!==o.attachments.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",""!==o.mailTypeCaption),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(10,18,o.clientName,100)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.sectionName&&o.sectionName.length),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(14,21,o.description,100)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",o.registerStamp?o.registerStamp:o.createstamp," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","mail2bank"===o.docType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","decline"===o.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("icon",!0)("items",o.actionsList),e.\u0275\u0275attribute("data-qa","1663066475155"+g)}}function Kl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"No mails",o.lang))}}function Hc(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275template(1,oc,23,24,"div",25),e.\u0275\u0275template(2,Kl,3,4,"div",26),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("empty",0===o.mails.list.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mails.list),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o.chosenTab?null:o.chosenTab.query)!==o.mailTabsQuery.ACCEPTANCE&&0===o.mails.list.length)}}function fc(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",49)(1,"app-document-list",50),e.\u0275\u0275listener("dotsClicked",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.loadActions(V))})("showMoreClicked",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.showMoreDocuments())}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("documents",o.documents)("showMoreButton",o.documents.length&&!o.allAlreadyLoaded)}}function Ir(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",51),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.showMore())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"Show more",o.lang)," ")}}class rs{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti){this.lastOperationService=s,this.mailService=o,this.oldMailService=g,this.modalService=V,this.router=me,this.translation=yt,this.operationService=Zt,this.documentService=Pn,this.vedService=Fn,this.util=Di,this.route=Ti,this.mailTabsQuery=ei.LV,this.icons=new Tr.R(this.translation).getIcons(),this.actions=[],this.load=!1,this.search="",this.isArchive=!1,this.unsubscribe$=new co.x,this.onSearchChange=Ja.Ds(this.onSearch.bind(this),500),this.documents=[],this.countOnPage=5,this.initialTabIndex=0,this.allAlreadyLoaded=!1,this.selectedDocs=new Set,this._datesPeriod=this.lastOperationService.chosenPeriod$.value}get datesPeriod(){return this._datesPeriod}set datesPeriod(s){this._datesPeriod=s,this.lastOperationService.chosenPeriod$.next(s),this.getEntities()}ngOnInit(){this.checkQueryParams(),this.mailService.deleteMail$.subscribe(s=>{s&&this.mailService.deleteMail$.next(null)}),this.actionsSubscription$=this.mailService.action$.subscribe(s=>{s&&(void 0===s.mail?this.actionsSubscription$&&this.actionsSubscription$.unsubscribe():this.operationActionChange(s.action,s.mail))})}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}changePeriod(s){this.datesPeriod="period"!==s.period?this.lastOperationService.changePeriod(s,this.datesPeriod.endDate,this.datesPeriod.beginDate):{...this.datesPeriod,currentPeriod:s}}datePickersChanged(s,o){this.datesPeriod={...this.datesPeriod,[o]:s},"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(me=>"period"===me.period));const g=Ri()(this.datesPeriod.endDate),V=Ri()(this.datesPeriod.beginDate);g.diff(V,"days")>365||(this.datesPeriod=Ja.d9(this.datesPeriod))}goToMail(){this.router.navigate(["/mail"])}operationActionChange(s,o){this.mailService.operationActionChange(s,o)}openMail(s,o){s.target.className&&typeof s.target.className.includes<"u"&&(s.target.className.includes("checkbox")||s.target.className.includes("background")||s.target.className.includes("alert"))||(this.mailService.openedTypeOldMail$.next(this.initialTabIndex),"object"!=typeof s.target.className&&(this.mailService.openedOldMail$.next(o),this.mailService.readOldMail(o.id).subscribe(()=>{const g=this.mailService.oldUnreadMailIds$.value.filter(me=>me!==o.id),V=parseInt(this.mailService.oldUnreadMailNumber$.value,10)-1;0!==V?(this.mailService.oldUnreadMailIds$.next(g),this.mailService.oldUnreadMailNumber$.next(V.toString())):(this.mailService.oldUnreadMailIds$.next([]),this.mailService.oldUnreadMailNumber$.next("")),this.refreshCounters()}),this.router.navigate(["old-mail-info"])))}refreshCounters(){(0,Jo.D)(this.mailService.getMailUnreadNumber(),this.oldMailService.getMailUnreadNumber()).subscribe(s=>{s[0].unread=parseInt(s[0].unread.toString())+parseInt(s[1].count),this.mailService.allCounters$.next(s[0])})}onSelectTab(s){this.initialTabIndex=s,this.MAIL_TABS&&(this.chosenTab=this.MAIL_TABS[s],this.getEntities(),this.selectedDocs.clear())}getEntities(){this.chosenTab?.query!==ei.LV.ACCEPTANCE?this.getLetters():this.showAccept()}checkQueryParams(){this.route.url.subscribe(s=>{this.mailService.getOldMailUnreadNumber().subscribe(o=>{this.countUnread=o.count,this.isArchive="archive"===s[0].path,this.MAIL_TABS=this.isArchive?[{capture:"Inbox",query:ei.LV.INBOX,number:this.countUnread},{capture:"Out",query:ei.LV.OUT}]:[{capture:"Inbox",query:ei.LV.INBOX,number:this.countUnread}],this.mailPath=this.isArchive?[{capture:"Archive",bold:!0}]:[{capture:"Mailings from bank",bold:!0}],this.mailService.openedOldMailTab$.next(this.isArchive?"archive":"mailing"),this.mailService.openedTypeOldMail$.subscribe(g=>{this.onSelectTab(g)})})})}showAccept(){let s;this.documents.length&&(s=this.documents[this.documents.length-1].id);const o={docTypes:[{docModule:"ibankul",docType:"request_advance_accept"},{docModule:"ibankul",docType:"accept_edit"},{docModule:"ibankul",docType:"accept_cancellation"}]};this.datesPeriod&&(this.datesPeriod.beginDate&&(o.dateFrom=Ri()(this.datesPeriod.beginDate).format("YYYYMMDD")),this.datesPeriod.endDate&&(o.dateTo=Ri()(this.datesPeriod.endDate).format("YYYYMMDD"))),(0,Jo.D)([this.vedService.requestDocuments(this.countOnPage,s,o),this.vedService.requestDocumentsWithAvailableActions(this.countOnPage,s,o)]).pipe((0,lo.U)(([g,V])=>this.parseDocuments(g,V))).subscribe(g=>{g.length<this.countOnPage&&(this.allAlreadyLoaded=!0),this.documents=[...this.documents,...g],this.datesPeriod&&this.datesPeriod.beginDate&&this.datesPeriod.endDate&&(this.documents=this.documents.filter(V=>{if(Ri()(V.info,"DD.MM.YYYY").isBetween(this.datesPeriod.beginDate,this.datesPeriod.endDate))return V}))})}parseDocuments(s,o){const g=s.map(V=>{V.dots={};const me=o.find(Zt=>Zt.document.id===V.id).actions,yt=o.find(Zt=>Zt.document.id===V.id).document.signStatus;return me&&(V.dots.availableButtonActions=me),yt&&(V.signStatus=yt),V});return this.util.objectsParser(g,{id:"id",title:"name",description:V=>`\u2116${V.docNumber}${V.description?", "+V.description:""}`,status:"status",signStatus:"signStatus",declineInfo:"declineInfo",info:"docDate",docType:"docType",statusColor:V=>{switch(V.systemStatus){case"end":case"processed_vk":return"green";case"decline":return"red";default:return""}},dots:V=>V.dots,additionalData:V=>({id:V.id,docModule:V.docModule||"",docType:V.docType,actionsLoaded:!1,docNumber:V.docNumber||"",docDate:V.docDate||"",description:V.description})})}loadActions(s){s.additionalData.actionsLoaded||(s.additionalData.actionsLoaded=!0,s.dots.buttonActions=[{type:"print",data:{docId:s.id,inPopup:!0}}],("0"===s.signStatus.toString()||"1"===s.signStatus.toString())&&s.dots.buttonActions.push({type:"sign",data:{docId:s.id,docType:s.docType,docModule:"ibankul"}}))}showMoreDocuments(){this.showAccept()}onSearch(s){this.search="string"==typeof s?s:s.target.value,this.getLetters()}getLetters(s){let o;this.load=!0,o=this.chosenTab.query===ei.LV.OUT?"outcomingConfig":"incomingConfig",this.incomeMails=this.mailService.getOldLetters(this.datesPeriod,o,this.search,s).pipe((0,lo.U)(g=>(g.list.forEach(V=>{let me=[];V?.actions?.length>0&&(V.actions=Array.isArray(V.actions)?V.actions:[V.actions],V.actions.forEach(Zt=>{("print"===Zt||"save_to_file"===Zt||"save_all_attachments"===Zt)&&me.push(Zt)}),V.actions.find(Zt=>"save_to_file"===Zt)||me.push("save_to_file"),V.actions.find(Zt=>"save_all_attachments"===Zt)||me.push("save_all_attachments")),V.actions=me;const yt=this.operationService.getActions(this.icons,V.actions);V.actionsList=this.mailService.isDisableAnswerAction(V)?yt.filter(Zt=>"answer"!==Zt.name):yt}),g))).subscribe(g=>{if(this.load=!1,s){const V=this.mails.list;this.mails=g,this.mails.list=[...V,...this.mails.list]}else this.mails=g;this.mails=g,this.currentPage=g.page,this.checkShowMoreValue=this.checkShowMore()})}checkShowMore(){return!!this.currentPage&&parseFloat(this.currentPage.number)<parseFloat(this.currentPage.total)-1}showMore(){this.getLetters(parseFloat(this.currentPage.number)+1)}static#e=this.\u0275fac=function(o){return new(o||rs)(e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(Nr.r),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(Gs.f),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(jr.$),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(bi.gz))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:rs,selectors:[["app-old-mail"]],decls:27,vars:19,consts:[["data-qa","1657963843902",1,"mail"],["data-qa","1657963848386",1,"cursor-pointer",3,"pathData","click"],["data-qa","1657963856857",1,"mail__content"],[1,"header"],[1,"header__title"],[1,"title-item"],["data-qa","1657963982249",3,"items","periodChange"],[1,"title-item","clickable"],[1,"title-item-text"],["class","my-period-dates",4,"ngIf"],[1,"header__title_right",3,"click"],["data-qa","1657963997410",1,"content"],[1,"content__tabs"],["data-qa","1657964004571",3,"initialIndex","selectTab"],[3,"label",4,"ngFor","ngForOf"],[1,"content__inputs"],["data-qa","1657964027660","inputClass","no-description mail-search","matIcon","search","typeClass","flex-input-filter",1,"content__inputs__input",3,"placeholder","valueChange"],["class","mail-content",3,"empty",4,"ngIf"],["class","mail-content","data-qa","1657964123751",4,"ngIf"],["class","mail-footer","data-qa","1657964230285",3,"click",4,"ngIf"],[1,"my-period-dates"],["data-qa","1657963988991",3,"value","dateChange"],["data-qa","1657963993742",3,"value","dateChange"],[3,"label"],[1,"mail-content"],["class","mail-content__item",3,"unread","click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"mail-content__item",3,"click"],[1,"mail-content__item__text"],[1,"item-text"],[1,"item-text__mail-type"],["class","mail-attachment-icon",4,"ngIf"],["class","item-text__caption",4,"ngIf"],[1,"item-text__caption"],["class","item-text__from",4,"ngIf"],[1,"item-text__description"],[1,"mail-content__item__time"],[1,"mail-content__item__time-info"],["class","mail-content__item__time-info__caption",4,"ngIf"],["class","mail-content__item__time-info__decline",4,"ngIf"],["wrapperClass","mail-actions-wrapper",3,"icon","items","changeEvent"],["data-qa","1657792116201",1,"my-reference-menu-btn"],[1,"my-reference-menu-btn-span"],[1,"mail-attachment-icon"],[1,"item-text__from"],[1,"mail-content__item__time-info__caption"],[1,"mail-content__item__time-info__caption-sign"],[1,"mail-content__item__time-info__caption-status"],[1,"mail-content__item__time-info__decline"],["data-qa","1657964123751",1,"mail-content"],["data-qa","1657964226918",3,"documents","showMoreButton","dotsClicked","showMoreClicked"],["data-qa","1657964230285",1,"mail-footer",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-path",1),e.\u0275\u0275listener("click",function(){return g.goToMail()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"div",4)(5,"div")(6,"span",5),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"app-no-input-select",6),e.\u0275\u0275listener("periodChange",function(me){return g.changePeriod(me)}),e.\u0275\u0275elementStart(10,"span",7)(11,"span")(12,"span",8),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"lowercase"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275template(15,Yc,11,10,"div",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",10),e.\u0275\u0275listener("click",function(){return g.goToMail()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"div",11)(18,"div",12)(19,"app-tabs",13),e.\u0275\u0275listener("selectTab",function(me){return g.onSelectTab(me)}),e.\u0275\u0275template(20,hc,2,5,"app-tab",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"div",15)(22,"app-input",16),e.\u0275\u0275listener("valueChange",function(me){return g.onSearchChange(me)}),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(24,Hc,3,4,"div",17),e.\u0275\u0275template(25,fc,2,2,"div",18),e.\u0275\u0275template(26,Ir,3,4,"div",19),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",g.mailPath),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(8,11,"Letters for",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("items",g.lastOperationService.periods),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(14,14,g.datesPeriod.currentPeriod.description)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","today"!==g.datesPeriod.currentPeriod.period&&"yesterday"!==g.datesPeriod.currentPeriod.period),e.\u0275\u0275advance(4),e.\u0275\u0275property("initialIndex",g.initialTabIndex),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",g.MAIL_TABS),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(23,16,"Search",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==g.chosenTab?null:g.chosenTab.query)!==g.mailTabsQuery.ACCEPTANCE&&g.mails),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==g.chosenTab?null:g.chosenTab.query)===g.mailTabsQuery.ACCEPTANCE&&g.documents),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==g.chosenTab?null:g.chosenTab.query)!==g.mailTabsQuery.ACCEPTANCE&&g.checkShowMoreValue))},dependencies:[ic.Q,rl.d,Ea.r,nr.n,Ra.i,Qs.a,Xs.S,i.sg,i.O5,aa.l,m.Hw,yi.X$,Ss.R,i.i8],styles:['@charset "UTF-8";.mail__title[_ngcontent-%COMP%]{color:#fff;font-size:33px;font-weight:600;margin-bottom:25px}.mail__content[_ngcontent-%COMP%]{box-shadow:0 4px 15px #0807080d;border-radius:2px;background-color:#fff;padding:32px}.mail[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #dedede}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;display:flex;align-items:center;padding-bottom:35px}.mail[_ngcontent-%COMP%]   .header__title_right[_ngcontent-%COMP%]{height:32px;width:40px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.mail[_ngcontent-%COMP%]   .header__title.filters[_ngcontent-%COMP%]   .title-item[_ngcontent-%COMP%]{color:#fff}@media screen and (min-width: 720px) and (max-width: 835px){.mail[_ngcontent-%COMP%]   .header__title.filters[_ngcontent-%COMP%]{flex-direction:column}}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]   .title-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding-right:8px;color:#080708}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]   .title-item.clickable[_ngcontent-%COMP%]{cursor:pointer;color:#7180b9;text-decoration:underline}@media screen and (min-width: 720px) and (max-width: 980px){.mail[_ngcontent-%COMP%]   .header__title.product[_ngcontent-%COMP%]{flex-direction:column}}.mail__content[_ngcontent-%COMP%]{margin-top:20px}.mail__content[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex;justify-content:space-between}.mail__content[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]     .panel-form__input{width:440px}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]{flex-wrap:wrap}}.mail__content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]{display:flex;height:48px;margin:auto 0 auto auto;min-width:440px}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]{margin-right:auto;width:100%}}.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{margin-right:20px}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{min-width:440px}}@media screen and (max-width: 667px){.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{min-width:250px}}.mail-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mail-content.empty[_ngcontent-%COMP%]{font-size:22px;line-height:28px;color:#88909b;min-height:472px;justify-content:center;align-items:center}.mail-content__item[_ngcontent-%COMP%]{min-height:128px;padding:20px;border-bottom:1px solid #dedede;display:flex;flex-wrap:wrap;justify-content:space-between;cursor:pointer}.mail-content__item[_ngcontent-%COMP%]:last-child{border:none}.mail-content__item-alert[_ngcontent-%COMP%]{flex-basis:100%;padding-left:50px;padding-top:10px}.mail-content__item__text[_ngcontent-%COMP%]{display:flex;flex:1}.mail-content__item__text[_ngcontent-%COMP%]   app-checkbox[_ngcontent-%COMP%]{margin-top:4px;margin-right:20px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text[_ngcontent-%COMP%]{max-width:800px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__mail-type[_ngcontent-%COMP%]{font-size:20px;margin-bottom:15px;display:flex}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__mail-type[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-left:12px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__caption[_ngcontent-%COMP%]{font-size:16px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__description[_ngcontent-%COMP%]{font-size:14px;color:#88909b}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__from[_ngcontent-%COMP%]{font-size:18px;color:#444;margin-bottom:5px}.mail-content__item__time[_ngcontent-%COMP%]{font-size:20px;font-weight:600;display:flex;align-self:center}.mail-content__item__time[_ngcontent-%COMP%]   app-menu-select[_ngcontent-%COMP%]{height:25px;display:flex;margin:auto auto auto 25px}.mail-content__item__time[_ngcontent-%COMP%]   app-menu-select[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{cursor:pointer}.mail-content__item__time-info[_ngcontent-%COMP%]{text-align:right;font-weight:400}.mail-content__item__time-info__caption-sign[_ngcontent-%COMP%]{font-size:16px;color:#444;margin-top:12px}.mail-content__item__time-info__caption-status[_ngcontent-%COMP%]{font-size:14px;color:#88909b}.mail-content__item__time-info__decline[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#d9291e;margin-top:10px;text-align:left}.mail-content__item.unread[_ngcontent-%COMP%]{font-weight:600}.mail-footer[_ngcontent-%COMP%]{height:50px;line-height:50px;background:#f1f2f2;display:flex;flex-direction:row;align-items:center;text-align:center;justify-content:center;color:#88909b;cursor:pointer}[_nghost-%COMP%]     .mail-search{width:100%}.mail-attachment-icon[_ngcontent-%COMP%]{height:22px;font-size:22px;color:#88909b}[_nghost-%COMP%]     .mail-actions{width:5px;height:20px;fill:#88909b}[_nghost-%COMP%]     .mail-actions-wrapper{margin:auto;width:20px;display:flex;justify-content:center}.docs-for-sign__select[_ngcontent-%COMP%]{background:linear-gradient(251.59deg,#1162a1 0,#0e83df 99.45%);display:flex;justify-content:space-between;height:71px;padding:10px 20px;align-items:center;margin-bottom:20px;color:#fff}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}']})}(0,Wi.gn)([(0,yi.SQ)()],rs.prototype,"lang",void 0);var Hr=t(11260),Xt=t(90995),nn=t(49671),An=t(39646),Vn=t(71884),zn=t(82722),Fi=t(63900),uo=t(39300),ua=t(35684),Ji=t(18505),Ta=t(50727);function Mr(){return function(M){const s=M.prototype.ngOnDestroy;"function"!=typeof s&&console.warn(`OnDestroy is not implemented in ${M.name} but it's using @Unsubscription decorator`),M.prototype.ngOnDestroy=function(){for(const o in this)if(this.hasOwnProperty(o)){const g=this[o];g&&g instanceof Ta.w0&&!g.closed&&g.unsubscribe(),g&&g instanceof Array&&g.forEach(V=>{V instanceof Ta.w0&&!V.closed&&V.unsubscribe()})}s.apply(this,arguments)}}}var Fa=t(13120),_c=t(67666);const Ma=function(M=1){let s=M;return(o=!0)=>o?s++:s--};var Si=t(49066),Wa=t(10956);const xl=/^(\d{5}|\d{10}|\d{12})$/;function Zd(M){return{field:{name:`employee_${M}`,validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0424\u0418\u041e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u0438 \u0435\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",title:"\u0424\u0418\u041e, \u0434\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",type:Si.j.Input},visual:{cssClass:M>1?"":"three-quarters-inline",hide:!1,close:M>1},dataQa:"1660030064743"}}const Ns=[{field:{name:"numberOfScore",validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u2116 \u0441\u0447\u0435\u0442\u0430",title:"\u2116 \u0441\u0447\u0435\u0442\u0430",type:Si.j.Input},visual:{cssClass:"half-inline",hide:!1},dataQa:"1660030066818"},{field:{name:"companyName",validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438",title:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438",type:Si.j.Input},visual:{cssClass:"half-inline",hide:!1},dataQa:"1660030069187"},{field:{name:"headOfEnterprise",validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0435\u0434\u0438\u0442\u0435 \u0424\u0418\u041e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f",title:"\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f",type:Si.j.Input},visual:{cssClass:"half-inline",hide:!1},dataQa:"1660030076353"},{field:{name:"chiefAccountant",validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0435\u0434\u0438\u0442\u0435 \u0424\u0418\u041e \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0430",title:"\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440",type:Si.j.Input},visual:{cssClass:"half-inline",hide:!1},dataQa:"1660030176497"},{field:{name:"phones",validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b",title:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b",type:Si.j.Input},visual:{cssClass:"",hide:!1},dataQa:"1660030196368"},Zd(1),{field:{name:"employeeCount"},component:{type:Si.j.Button,title:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430"},visual:{cssClass:"quarter",buttonType:"submit",hide:!1,visualDisabled:!1},dataQa:"1660030198989"}],Dr=[{field:{name:"sectionId",validators:[l.Validators.required]},component:{placeholder:"Choose bank unit",title:"Bank Unit",type:Si.j.Select},select:{items:[]},visual:{cssClass:"half-inline",hide:!1},dataQa:"1660030201147"},{field:{name:"mailType",validators:[l.Validators.required]},component:{placeholder:"Choose mail type",title:"Mail type",type:Si.j.Select},select:{items:[]},visual:{cssClass:"half-inline",hide:!1},dataQa:"1660030203476"},{field:{name:"caption",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Mail theme",placeholder:"Write mail theme"},visual:{cssClass:"half-inline"},dataQa:"1660030205555"}],Rc=[{field:{name:"radio"},component:{type:Si.j.Input},visual:{hide:!0}},{field:{name:"corrAccNumber"},component:{type:Si.j.Input,title:"\u041d\u043e\u043c\u0435\u0440 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",maxlength:20},mask:{TextMask:Wa.VU,stripMask:!0},visual:{hide:!0}},{field:{name:"corrFullName"},component:{type:Si.j.Input,title:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",maxlength:700},visual:{hide:!0}},{field:{name:"corrInn"},component:{type:Si.j.Input,title:"\u0418\u041d\u041d (\u041a\u0418\u041e) \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",maxlength:12},mask:{TextMask:Wa.Ax},visual:{hide:!0}},{field:{name:"additionalBody"},component:{type:Si.j.TextArea,title:"\u0422\u0435\u043a\u0441\u0442 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435",maxlength:210},visual:{hide:!0}}],Fc=[{field:{name:"checkBox08",value:!1},component:{type:Si.j.Checkbox,title:"\u0422\u0435\u043a\u0441\u0442 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435"},visual:{hide:!1}},{field:{name:"additionalBody"},component:{type:Si.j.TextArea,title:"\u0422\u0435\u043a\u0441\u0442 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435",maxlength:210},visual:{hide:!0}},{field:{name:"code_60",validators:[l.Validators.required,l.Validators.pattern(xl)]},component:{type:Si.j.Input,title:"payerInn",placeholder:"Enter data",maxlength:12},visual:{hide:!0},mask:{TextMask:Wa.Ax}},{field:{name:"code_61",validators:[l.Validators.required,l.Validators.pattern(xl)]},component:{type:Si.j.Input,title:"connInnKio",placeholder:"Enter data",maxlength:12},visual:{hide:!0},mask:{TextMask:Wa.Ax}},{field:{name:"code_101",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"Stat 101",placeholder:"Enter data"},visual:{hide:!0},select:{items:[]}},{field:{name:"code_104",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"Stat 104",placeholder:"Enter data"},select:{items:[]},visual:{hide:!0}},{field:{name:"code_102",validators:[l.Validators.required,l.Validators.minLength(9)]},component:{type:Si.j.Input,title:"payerKpp",placeholder:"Enter data",maxlength:9},visual:{hide:!0},mask:{TextMask:Wa.S0}},{field:{name:"code_103",validators:[l.Validators.required,l.Validators.minLength(9)]},component:{type:Si.j.Input,title:"corrKpp",placeholder:"Enter data",maxlength:9},visual:{hide:!0},mask:{TextMask:Wa.S0}},{field:{name:"code_105",validators:[l.Validators.required,l.Validators.minLength(8)]},component:{type:Si.j.Input,title:"Stat 105",placeholder:"Enter data",maxlength:8},visual:{hide:!0},mask:{TextMask:Wa.S0}},{field:{name:"code_106",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"\u041a\u043e\u0434 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430",placeholder:"Enter data"},select:{items:[]},visual:{hide:!0}},{field:{name:"code_107",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"Stat 107",placeholder:"Enter data"},visual:{cssClass:"three-inline",hide:!0},select:{items:[]}},{field:{name:"tax2",validators:[l.Validators.required,l.Validators.pattern(/^(1[0-2]|[1-9])$/)]},component:{type:Si.j.Input,title:"Enter month",placeholder:"Enter data",maxlength:2},visual:{cssClass:"three-inline",hide:!0},mask:{TextMask:Wa.S0}},{field:{name:"tax3",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Enter year",placeholder:"Enter data",maxlength:4},visual:{cssClass:"three-inline",hide:!0},mask:{TextMask:Wa.Ax}},{field:{name:"code_108",validators:[l.Validators.required,l.Validators.pattern("^(0|((0[1-9]|1[1-4]|2[245689]|30)[;])?[\u0430-\u044f\u0410-\u042f0-9-/]{2,})$")]},component:{type:Si.j.Input,title:"Stat 108",placeholder:"Enter data",maxlength:15},visual:{hide:!0,cssClass:"half-inline"}},{field:{name:"code_109",validators:[l.Validators.required]},component:{type:Si.j.DatePicker,title:"Stat 109",placeholder:"Enter data"},visual:{hide:!0,cssClass:"half-inline"},mask:{TextMask:Wa.X8}},{field:{name:"code_110",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Type payment",placeholder:"Enter data",maxlength:1},visual:{cssClass:"half-inline",hide:!0},mask:{TextMask:Wa.Ax}}];var Ba=t(8058),ws=t(81300),Da=t(37601),wi=t(51024),Ur=t(59449),ir=t(4610),js=t(44509),qo=t(68735),fe=t(67469),ye=t(18430);const se=["fileInput"];function Ne(M,s){if(1&M&&e.\u0275\u0275element(0,"div",19),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("routerLink",o.data.cross.href)}}function st(M,s){1&M&&e.\u0275\u0275element(0,"div",20)}function Ft(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275template(1,Ne,1,1,"div",17),e.\u0275\u0275template(2,st,1,0,"ng-template",null,18,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275reference(3),g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.cross.href)("ngIfElse",o)}}function an(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-dynamic-form",21),e.\u0275\u0275listener("event",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onEvent(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("config",o.piConfig)("formGroup",o.permissionInformationForm)}}function jn(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",28),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.chosenRadio=1)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("chosen",1===o.chosenRadio)("label","\u0421\u0443\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u043c\u0438 \u043f\u043e\u0434\u043b\u0435\u0436\u0438\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0443")("name","radio")("value","1")}}function mi(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",28),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.chosenRadio=4)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("chosen",4===o.chosenRadio)("label","\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u043c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044e \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u043c\u0438")("name","radio")("value","4")}}function Vi(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",29),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.chosenRadio=2)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("chosen",2===o.chosenRadio)("label","\u0422\u0435\u043a\u0441\u0442 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435")("name","radio")("value","2")}}function zi(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",29),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.chosenRadio=3)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("chosen",3===o.chosenRadio)("label","\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432")("name","radio")("value","3")}}function fa(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",25),e.\u0275\u0275template(1,jn,1,4,"app-radio",26),e.\u0275\u0275template(2,mi,1,4,"app-radio",26),e.\u0275\u0275template(3,Vi,1,4,"app-radio",27),e.\u0275\u0275template(4,zi,1,4,"app-radio",27),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===o.rCode||2===o.rCode||3===o.rCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",3===o.rCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===o.rCode||2===o.rCode||3===o.rCode||5===o.rCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===o.rCode||2===o.rCode||5===o.rCode)}}function wr(M,s){if(1&M&&e.\u0275\u0275element(0,"app-dynamic-form",30),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("config",o.rConfig)("formGroup",o.rForm)}}function Kr(M,s){if(1&M&&e.\u0275\u0275element(0,"app-dynamic-form",30),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("config",o.fcConfig)("formGroup",o.fcForm)}}function Us(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div")(1,"label",22),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,fa,5,4,"div",23),e.\u0275\u0275template(4,wr,1,2,"app-dynamic-form",24),e.\u0275\u0275template(5,Kr,1,2,"app-dynamic-form",24),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.bankRequest.body),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.rForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.rForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.fcForm)}}const gs=function(){return[]};function Qa(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",31)(1,"label",22)(2,"div",32),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"textarea",33,34),e.\u0275\u0275listener("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.textareaValue=V)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"app-input-files",35),e.\u0275\u0275listener("filesIsLargerThenMaximum",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onFilesSizeIsLargerThanMax(V))})("filesIsNotValidMimeType",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onFilesTypesIsNotValid(V))})("removeAttachment",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.deleteFile(V))}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,9,"Mail text",o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",o.textareaValue)("disabled",o.isTextareaDisabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("mimeTypes",o.isCurrencyControlDepartment?o.fileInputMimeTypesAccepted:e.\u0275\u0275pureFunction0(12,gs))("formControl",o.filesFormControl)("mimeTypesLabel",o.isCurrencyControlDepartment?o.fileExtensionsForCurrencyControlDepartment:"")("maxAmountFilesSizeByte",(null==o.attachmentSetup?null:o.attachmentSetup.totalFileMaxSize)||0)("disabledInput",o.isDisableUpload)("isHide",o.isRevoke)}}function Gl(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",36),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.save(!0))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("disabled",o.buttonDisable())}}function Vr(M,s){if(1&M&&e.\u0275\u0275element(0,"app-button",37),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("routerLink",o.data.cross.href)("type","pale")}}let Js=class nC{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo,Uo,bo,wo){this.mailService=s,this.dynamicFormService=o,this.serverSettingsService=g,this.configUtilService=V,this.translation=me,this.activatedRoute=yt,this.documentService=Zt,this.router=Pn,this.userDataService=Fn,this.toast=Di,this.transferRurService=Ti,this.attachmentService=vo,this.formatFileSizePipe=Uo,this.datePipe=bo,this.currencySymbolPipe=wo,this.loading=new e.EventEmitter,this.pathData=[{capture:"Mail",href:"/mail",bold:!0},{capture:"New mail"}],this.data={cross:{href:"/mailing"}},this.selectConfig=Dr,this.piConfig=Ns,this.fcConfig=[],this.rCode=0,this.isRequestResponse=!1,this.selectForm=this.dynamicFormService.generateFormGroup(this.selectConfig),this.permissionInformationForm=this.dynamicFormService.generateFormGroup(this.piConfig),this.textareaValue="",this.currentTotalSize=0,this.title="New mail",this.fileExtensionsForCurrencyControlDepartment="\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b: .pdf, .jpg, .tif, .tiff",this.fileInputMimeTypesAccepted=Fa.mZ,this.isCurrencyControlDepartment=!1,this.filesFormControl=new l.FormControl([]),this.deleteAttachmentsObs=[],this.isPermissionInformation=!1,this.isTextareaDisabled=!1,this.selectedMailType="",this.CURRENCY_CONTROL_DEPARTMENT_ID="325753",this.selections={stat:[],kbk:[],ground:[],taxPeriod:[]},this.fieldFormBySettingsname=[],this.employeeCount=Ma(2),this.mail={},this.isCopy=!1,this.isRevoke=!1,this.isDisableUpload=!1,this.destroyed$=new co.x,this.activatedRoute.queryParams.subscribe(ba=>{"revoke"===ba.operation&&(this.isRevoke=!0,this.isDisableUpload=!0)})}get files(){return this.filesFormControl.value}get chosenRadio(){return this.rForm.get("radio").value}set chosenRadio(s){this.rForm.get("radio").setValue(s)}get isCheckbox08(){return this.fcForm.get("checkBox08").value}ngOnInit(){this.dynamicFormService.getFormField(this.selectForm,"sectionId").valueChanges.pipe((0,Vn.x)(),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.isCurrencyControlDepartment=s===this.CURRENCY_CONTROL_DEPARTMENT_ID,this.onChangeSectionId(s)}),this.parentMail&&this.selectForm.get("sectionId").setValue(this.parentMail.sectionId),this.setTotalSizeSettings(),this.mailService.getMail2BankSetup().pipe((0,Fi.w)(s=>(this.fieldFormBySettingsname.SET_MAIL_TYPE="mailType",this.fieldFormBySettingsname.USE_SECTION="sectionId",this.buildFormFieldsFromSetting(s,"SET_MAIL_TYPE"),this.buildFormFieldsFromSetting(s,"USE_SECTION"),this.queryParamsHandle())),(0,zn.R)(this.destroyed$)).subscribe(s=>{s&&(this.permissionInformationForm.get("companyName").setValue(s.name),this.permissionInformationForm.updateValueAndValidity())}),this.answer&&(this.title="Answer to mail"),this.isRequestResponse||this.dynamicFormService.setSelectItems(this.selectConfig,"mailType",[])}setTotalSizeSettings(){this.attachmentService.attachmentSetup$.pipe((0,uo.h)(s=>Boolean(s)),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.attachmentSetup=s})}mailTypeControlHandle(){return this.selectForm.get("mailType").valueChanges.pipe((0,ua.T)(this.isCopy||this.mailId?1:0),(0,Ji.b)(s=>{this.isPermissionInformation=!!this.permissionInformation&&s===this.permissionInformation.value,this.isTextareaDisabled=!1,this.selectForm.get("caption").enable(),s&&s!==this.selectedMailType&&(this.textareaValue="",this.selectedMailType=s,this.templateData=this.mailTypes.find(o=>s===o.code),this.templateData&&this.setTemplateData(this.templateData))}),(0,uo.h)(()=>(!this.isPermissionInformation&&!this.isRequestResponse&&(this.selectForm.get("caption").setValue(""),this.selectForm.updateValueAndValidity()),this.isPermissionInformation)),(0,Fi.w)(()=>this.isPermissionInformation?(this.selectForm.get("caption").setValue(this.permissionInformation.caption),this.selectForm.updateValueAndValidity(),this.userDataService.getCompanyList().pipe((0,lo.U)(({company:s})=>s.find(o=>!0===o.active)))):(0,An.of)([])),(0,zn.R)(this.destroyed$))}queryParamsHandle(){return this.activatedRoute.queryParams.pipe((0,Fi.w)(s=>s&&"revoke"===s.operation?this.documentService.getDocumentById("ibankul",s.docType,s.docId).pipe((0,lo.U)(o=>o.platporBpDocumentMetinv),(0,Fi.w)(o=>(this.dataForRevoke=o,this.mailTypeControlHandle()))):(s&&s.requestCode&&(this.bankRequest=s,this.answer=!0),this.bankRequest&&this.bankRequest.requestCode&&(this.bankRequest.requestSourceId=this.mailService.openedMail$.value.requestSourceId,this.isRequestResponse=!0,this.initResponse()),s&&s.mailId?(this.isCopy=!!s.copy,this.mailId=s.mailId,s.copy||(this.pathData=[{capture:"Mail",href:"/mail",bold:!0},{capture:"Editing letters"}],this.title="Editing letters"),this.templateId=s.mailId,this.documentService.getDocumentById("ibankul","mail2bank",s.mailId).pipe((0,lo.U)(o=>o.mail2BankUl),(0,Fi.w)(o=>(o&&(this.mail=o,this.selectForm.patchValue({sectionId:o.sectionId,caption:o.caption}),this.selectForm.updateValueAndValidity(),this.textareaValue=o.description,("203"===o.mailType||"982"===o.mailType||"980"===o.mailType)&&(this.isTextareaDisabled=!0,this.isDisableUpload=!0),o.attachments&&!Array.isArray(o.attachments)?this.setFiles([o.attachments]):o.attachments&&o.attachments.length&&this.setFiles(o.attachments)),this.mailTypeControlHandle())))):(this.loading.emit(!1),this.mailTypeControlHandle()))),(0,zn.R)(this.destroyed$))}initResponse(){if(this.bankRequest&&(M=this.bankRequest.requestCode,!Array.isArray(M)&&M-parseFloat(M)+1>=0)&&(this.rCode=+this.bankRequest.requestCode),-1===[1,2,3,5,8,99].indexOf(this.rCode))return this.bankRequest={},this.isRequestResponse=!1,void this.loading.emit(!1);var M;8===this.rCode?this.initFieldsForm().then(()=>{this.fcForm=this.dynamicFormService.generateFormGroup(this.fcConfig),this.fcForm.get("checkBox08").valueChanges.subscribe(s=>{this.onChangeCheckbox08(s)})}):(this.rConfig=Rc,this.rConfig.forEach(s=>s.visual.hide=!0),this.rForm=this.dynamicFormService.generateFormGroup(this.rConfig),99===this.rCode?(this.configUtilService.setValidatorsAndUpdate(this.rForm.get("additionalBody"),[l.Validators.required]),this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!1):this.dynamicFormService.getFormField(this.rForm,"radio").valueChanges.subscribe(s=>{this.onChangeRadio(s)})),this.title="Answer to mail",this.selectForm.get("caption").setValue("\u041e\u0422\u0412\u0415\u0422: "+this.bankRequest.caption),this.selectForm.get("caption").disable(),this.selectForm.get("caption").updateValueAndValidity()}initFieldsForm(){var s=this;return(0,nn.Z)(function*(){const o=s.parseJsonFields();0!==o.length?(o.find(g=>["101","104","106","107"].indexOf(g.fieldCode)>-1)&&(yield s.getSelections()),o.forEach(g=>{const V=Array.isArray(g.fieldNameEng)?g.fieldNameEng[0]:g.fieldNameEng,me=Array.isArray(g.fieldNameRus)?g.fieldNameRus[0]:g.fieldNameRus,yt=Fc.find(Zt=>Zt.field.name==="code_"+g.fieldCode||Zt.field.name===V);if(yt&&(s.fcConfig.push(yt),yt.visual.hide=!1,yt.component.title=me,yt.field.name=V,["101","104","106","107"].indexOf(g.fieldCode)>-1)){let Zt=[];switch(g.fieldCode){case"101":Zt=s.dynamicFormService.generateItemsForSelect(s.selections.stat,"code","code","caption");break;case"104":Zt=s.dynamicFormService.generateItemsForSelect(s.selections.kbk,"code","code","caption");break;case"106":Zt=s.dynamicFormService.generateItemsForSelect(s.selections.ground,"code","code","caption");break;case"107":Zt=s.dynamicFormService.generateItemsForSelect(s.selections.taxPeriod,"code","caption"),s.dynamicFormService.getConfigField(s.fcConfig,"tax3").visual.hide=!1,s.fcConfig.push(s.dynamicFormService.getConfigField(Fc,"tax2")),s.fcConfig[s.fcConfig.length-1].visual.hide=!1,s.fcConfig.push(s.dynamicFormService.getConfigField(Fc,"tax3")),s.fcConfig[s.fcConfig.length-1].visual.hide=!1}s.dynamicFormService.setSelectItems(s.fcConfig,yt.field.name,Zt)}}),s.addAdditionalBody(!1,!0)):s.addAdditionalBody(!0,!1)})()}setTemplateData(s){switch(s.code){case"982":this.textareaValue="\u0420\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u0442\u0437\u044b\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\n\u041a\u043b\u0438\u0435\u043d\u0442: "+this.dataForRevoke.fullname+"\n\u0418\u041d\u041d \u043a\u043b\u0438\u0435\u043d\u0442\u0430: "+this.dataForRevoke.inn+"\n\u0414\u0430\u0442\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: "+this.datePipe.transform(this.dataForRevoke.docDate,"dd.MM.yyyy")+"\n\u041d\u043e\u043c\u0435\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: "+this.dataForRevoke.docNumber+"\n\u0421\u0443\u043c\u043c\u0430: "+this.dataForRevoke.amount+" "+this.currencySymbolPipe.transform(this.dataForRevoke.currCode)+"\n",this.isTextareaDisabled=!0;break;case"998":setTimeout(()=>this.selectForm.get("caption").setValue(s.description)),this.textareaValue="\u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0441\u043b\u0443\u0433\u0443 \xab\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0412\u042d\u0414 \u043d\u0430 __3__\xbb (\u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 1, 3, 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432).\n\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u0434\u043e\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 15 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432): _________\n\u041a\u043e\u0434\u043e\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0443\u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0443\u0441\u043b\u0443\u0433\u0438.\n\u0421 \u0442\u0430\u0440\u0438\u0444\u0430\u043c\u0438 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d.";break;case"999":setTimeout(()=>this.selectForm.get("caption").setValue(s.description)),this.textareaValue='\u041f\u0440\u043e\u0448\u0443 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0431\u043e\u0440\u043e\u0442\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u043e\u0432-\u0444\u0430\u043a\u0442\u0443\u0440 \u043f\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u041a\u043e\u043d\u0442\u0443\u0440.\u0414\u0438\u0430\u0434\u043e\u043a \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0441 \u0423\u041a\u042d\u041f \u0411\u0430\u043d\u043a\u0430.\n\u0421\u043e\u0433\u043b\u0430\u0441\u0435\u043d \u0441 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u043e\u0432 \u0441\u0447\u0435\u0442\u043e\u0432-\u0444\u0430\u043a\u0442\u0443\u0440 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0431\u0435\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u043e\u0432-\u0444\u0430\u043a\u0442\u0443\u0440 \u043d\u0430 \u0431\u0443\u043c\u0430\u0436\u043d\u043e\u043c \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435.\n\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e, \u0447\u0442\u043e \u0441 \u0442\u0430\u0440\u0438\u0444\u0430\u043c\u0438 \u0411\u0430\u043d\u043a\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u0430 \u0441\u0447\u0435\u0442\u0430-\u0444\u0430\u043a\u0442\u0443\u0440\u044b \u043d\u0430 \u0431\u0443\u043c\u0430\u0436\u043d\u043e\u043c \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d.\n\u041d\u043e\u043c\u0435\u0440 \u0437\u0430\u044f\u0432\u043a\u0438 \u043d\u0430 \u0440\u043e\u0443\u043c\u0438\u043d\u0433: __________ (\u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u042d\u0414\u041e, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u043e\u0442 \u0410\u041e "\u041f\u0424 "\u0421\u041a\u0411 \u041a\u043e\u043d\u0442\u0443\u0440")';break;case"204":setTimeout(()=>{this.selectForm.get("caption").setValue("\u041f\u043b\u0430\u0442\u0435\u0436\u0438 \u0432 \u0418\u0440\u0430\u043d"),this.selectForm.get("caption").disable()}),this.textareaValue="\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a \u043f\u043b\u0430\u0442\u0435\u0436\u0443 \u0432 \u0418\u0440\u0430\u043d.\n\u043d\u043e\u043c\u0435\u0440 \u0423\u041d\u041a  \u0438\u043b\u0438 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u0438 \u0434\u0430\u0442\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 (\u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c): _______________\n\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u0443\u0447\u0435\u0442 \u0432 \u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\u0435? \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0414\u0410/\u041d\u0415\u0422:__________________\n\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a? \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0414\u0410/\u041d\u0415\u0422:__________________\n\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u043e\u0434\u0435(\u0430\u0445) \u0422\u041d \u0412\u042d\u0414 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430:  \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c____________\n\n\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a \u043f\u0438\u0441\u044c\u043c\u0443:\n\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043a \u043f\u043b\u0430\u0442\u0435\u0436\u0443 (\u043a\u043e\u043f\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u0438/\u0438\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0438/\u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0431\u0435\u0437 \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u043d\u0430 \u0443\u0447\u0435\u0442))\n\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441\u043e \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438.";break;case"201":setTimeout(()=>{this.selectForm.get("caption").setValue("\u0421\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0441. \u0434\u0430\u043d\u043d\u044b\u0445"),this.selectForm.get("caption").disable()}),this.textareaValue=this.parentMail?this.parentMail.description:"",this.textareaValue="\u0414\u0430\u044e \u0441\u0432\u043e\u0451 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435\n "+this.textareaValue,this.parentMail&&(this.isTextareaDisabled=!0,this.selectForm.get("mailType").disable(),this.selectForm.get("sectionId").disable());break;case"980":setTimeout(()=>{this.selectForm.get("caption").setValue(s.description),this.selectForm.get("caption").disable()}),this.isTextareaDisabled=!0,this.textareaValue="\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u041a\u043b\u0438\u0435\u043d\u0442:\n- \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043a \u041f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 \xab\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436\xbb \u0432 \u041f\u0410\u041e \u0410\u041a\u0411 \xab\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\xbb \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 428 \u0413\u0440\u0430\u0436\u0434\u0430\u043d\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0435\u043a\u0441\u0430 \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0439 \u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438, \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041a\u043b\u0438\u0435\u043d\u0442 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u041f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0434\u043b\u044f \u0421\u0442\u043e\u0440\u043e\u043d \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u043b\u0443,\n- \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0441 \u0422\u0430\u0440\u0438\u0444\u0430\u043c\u0438, \u0432\u0437\u0438\u043c\u0430\u0435\u043c\u044b\u043c\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 \xab\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436\xbb \u0411\u0430\u043d\u043a\u043e\u043c \u0438 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u043e\u043c \u0411\u0430\u043d\u043a\u0430,\n- \u043e\u0431\u044f\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043d\u0430 \u0443\u0447\u0435\u0442 \u043a \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0443 \u0411\u0430\u043d\u043a\u0430,\n- \u0434\u0430\u0435\u0442 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u0435 \u0411\u0430\u043d\u043a\u0443 \u043d\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f. 3.2. \u041f\u0440\u0430\u0432\u0438\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432,\n- \u0434\u0430\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u0411\u0430\u043d\u043a\u0443 \u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0423\u0441\u043b\u0443\u0433\u0438 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0443 \u0411\u0430\u043d\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0432\u044b\u043f\u0438\u0441\u043a\u0438 \u0441\u043e \u0441\u0447\u0435\u0442\u0430, \u0438\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0443\u044e \u0438 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0430\u0439\u043d\u0443, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438,\n- \u0434\u0430\u0435\u0442 \u0411\u0430\u043d\u043a\u0443 \u043f\u0440\u0430\u0432\u043e \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0432\u044b\u043f\u0438\u0441\u043a\u0438 \u043f\u043e \u0441\u0447\u0435\u0442\u0443 \u043e\u0442 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0430 \u0411\u0430\u043d\u043a\u0430, \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0449\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0430, \u043e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436 \u0432 \u0412\u0435\u0434\u043e\u043c\u043e\u0441\u0442\u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f.3.2. \u041f\u0440\u0430\u0432\u0438\u043b;\n- \u0434\u0430\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u0411\u0430\u043d\u043a\u0443 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043e\u0442 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0430 \u0411\u0430\u043d\u043a\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0423\u0441\u043b\u0443\u0433\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043d\u043e\u043c\u0435\u0440\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u0432\u044b\u043f\u0438\u0441\u043a\u0438 \u0441\u043e \u0441\u0447\u0435\u0442\u0430, \u0438\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0447\u0435\u0440\u0435\u0437 \u0421\u0438\u0441\u0442\u0435\u043c\u0443.\n\n\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u042d\u041f \u0435\u0434\u0438\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 (\u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436) \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0423\u0441\u043b\u0443\u0433\u0438 \u041a\u043b\u0438\u0435\u043d\u0442 \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0441\u044f \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0421\u0435\u0440\u0432\u0438\u0441\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c\u0438 \u044d\u0442\u043e\u0439 \u0436\u0435 \u042d\u041f \u041a\u043b\u0438\u0435\u043d\u0442\u0430.";break;case"203":this.isDisableUpload=!0,setTimeout(()=>{this.selectForm.get("caption").setValue("\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0442\u0440\u0430\u043d\u0441\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432 \u0432 \u0418\u0440\u0430\u043d"),this.selectForm.get("caption").disable()}),this.isTextareaDisabled=!0,this.textareaValue="\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u041a\u043b\u0438\u0435\u043d\u0442:\n- \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043a \u041f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u041f\u0410\u041e \u0410\u041a\u0411 \xab\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\xbb \u0442\u0440\u0430\u043d\u0441\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432 \u0432 \u0418\u0441\u043b\u0430\u043c\u0441\u043a\u0443\u044e \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0443 \u0418\u0440\u0430\u043d \u0438 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u0438\u0440\u0430\u043d\u0441\u043a\u0438\u0445 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u043e\u0432, \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b Bank Melli Iran (\u041e\u0410\u042d), \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 428 \u0413\u0440\u0430\u0436\u0434\u0430\u043d\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0435\u043a\u0441\u0430 \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0439 \u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438, \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041a\u043b\u0438\u0435\u043d\u0442 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u041f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0434\u043b\u044f \u0421\u0442\u043e\u0440\u043e\u043d \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u043b\u0443.\n"}this.selectForm.get("caption").updateValueAndValidity()}onFilesSizeIsLargerThanMax(s){s.forEach(o=>{this.toast.show(`${this.translation.translate(`Maximum attachment file size -${o}`)} ${this.formatFileSizePipe.transform(this.attachmentSetup.fileMaxSize,this.lang)}`,"error")})}onFilesTypesIsNotValid(s){s.forEach(o=>{this.toast.show(`${this.translation.translate(`\u0424\u0430\u0439\u043b \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0438\u0434\u0438\u0442 \u043f\u043e\u0434 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0430 -${o}`)}`,"error")})}deleteFile(s){this.mailId?this.mailService.deleteFile(this.mailId,s).subscribe():this.deleteAttachmentsObs.push(this.mailService.deleteFile(this.mailId,s).pipe((0,zn.R)(this.destroyed$)))}buildFormFieldsFromSetting(s,o){if("1"===this.mailService.getSettingValue(s,o))switch(o){case"SET_MAIL_TYPE":this.getMailTypeField();break;case"USE_SECTION":this.getMailUnitField()}else this.selectConfig.find(V=>V.field.name===this.fieldFormBySettingsname[o]).visual.hide=!0,this.selectForm.get(this.fieldFormBySettingsname[o]).setValidators([]),this.selectForm.get(this.fieldFormBySettingsname[o]).updateValueAndValidity()}getMailTypeField(){this.mailService.getMailTypes().pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{this.mailTypes=this.dynamicFormService.generateItemsForSelect(s instanceof Array?s:[s],"code","caption","description"),this.permissionInformation=this.mailTypes.find(g=>"101"===g.code)})}getMailUnitField(){this.mailService.getMailUnits().pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{const o=s instanceof Array?s:[s];if(this.mailDeps=this.mailDeps?.length?[...new Map(this.mailDeps.map(g=>[g.name.toLowerCase(),g])).values()]:this.mailDeps,this.mailDeps=this.dynamicFormService.generateItemsForSelect(o,"bankSectionId","name"),this.dynamicFormService.setSelectItems(this.selectConfig,"sectionId",this.mailDeps),this.isRevoke){const g=this.mailDeps.find(V=>"\u041e\u0442\u0434\u0435\u043b \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f"===V.name);g&&setTimeout(()=>{this.selectForm.get("sectionId").setValue(g.bankSectionId),this.selectForm.get("sectionId").updateValueAndValidity(),this.selectForm.get("sectionId").disable()})}this.isRequestResponse&&setTimeout(()=>{this.selectForm.get("sectionId").setValue("90344"),this.selectForm.get("sectionId").disable(),this.selectForm.get("sectionId").updateValueAndValidity()})})}save(s=!1){if(!this.checkTotalSize())return;let o=this.selectForm.getRawValue();if(o.description=this.textareaValue,this.parentId&&(o.parentId=this.parentId),this.templateId&&(o.id=this.templateId),this.isPermissionInformation&&(o.additionalData="PermissionToProvideInformation",Object.entries(this.mapPIData()).forEach(([g,V])=>{o[g]=V})),o.description||(o.description=" "),this.isRequestResponse){if(this.buttonDisable())return void this.toast.show("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u043b\u044f","error");o.requestCode=this.bankRequest.requestCode,o.sectionId=this.selectForm.get("sectionId").value,o.requestSourceId=this.bankRequest.requestSourceId,o.requestRequiredFields=this.bankRequest.requestRequiredFields,o.description=this.bankRequest.body,o={...o,...this.createResponseData()}}this.mailService.postMail(o).pipe((0,zn.R)(this.destroyed$)).subscribe(g=>{this.deleteAttachmentsObs.length&&(0,Jo.D)(this.deleteAttachmentsObs).subscribe(),this.files.length?(0,Jo.D)(this.userDataService.postAttachment(g.id,this.files)).pipe((0,zn.R)(this.destroyed$)).subscribe(V=>{V.find(me=>me.errorText)?V.forEach(me=>{me.errorText&&this.toast.show(me.errorText,"error")}):this.documentService.getDocumentById("ibankul","mail2bank",g.id).pipe((0,lo.U)(me=>me.mail2BankUl),(0,zn.R)(this.destroyed$)).subscribe(me=>{this.openMail(me,s)})}):this.documentService.getDocumentById("ibankul","mail2bank",g.id).pipe((0,lo.U)(V=>V.mail2BankUl),(0,zn.R)(this.destroyed$)).subscribe(V=>{this.openMail(V,s)}),s&&this.toast.show("Letter saved","success")},g=>{this.toast.show(g.errorText,"error")})}createResponseData(){let s={additionalBody:null};if(1===this.rCode||2===this.rCode)switch(s.isRefundableAmount="0",this.chosenRadio){case 1:s.isRefundableAmount="1";break;case 2:s.additionalBody=this.rForm.get("additionalBody").value;break;case 3:s.corrAccNumber=this.rForm.get("corrAccNumber").value.replace(/\s/g,""),s.corrFullName=this.rForm.get("corrFullName").value,s.corrInn=this.rForm.get("corrInn").value}else if(99===this.rCode)s.additionalBody=this.rForm.get("additionalBody").value;else if(8!==this.rCode||this.isCheckbox08){if(8===this.rCode&&this.isCheckbox08)s.additionalBody=this.fcForm.get("additionalBody").value;else if(3===this.rCode)s.additionalBody=2===this.chosenRadio?this.rForm.get("additionalBody").value:null,s.isRefundableAmount=1===this.chosenRadio?"1":0,s.isDuplicationRequisites=4===this.chosenRadio?"0":1;else if(5===this.rCode)switch(this.chosenRadio){case 2:s.additionalBody=this.rForm.get("additionalBody").value;break;case 3:s.corrFullName=this.rForm.get("corrFullName").value}}else Object.keys(this.fcForm.controls).forEach(o=>{if("additionalBody"!==o){const g=this.fcForm.get(o);g.value&&(s={...s,[o]:g.value})}});return s}checkTotalSize(){return!(this.attachmentSetup?.totalFileMaxSize&&this.attachmentSetup.totalFileMaxSize<this.currentTotalSize&&(this.toast.show(`${this.translation.translate("Maximum attachment size")} ${this.formatFileSizePipe.transform(this.attachmentSetup.totalFileMaxSize,this.lang)}`,"error"),1))}openMail(s,o){s.registerStamp=this.configUtilService.formatDateStringDMYHM(s?.registerStamp,void 0,","),s.createstamp=this.configUtilService.formatDateStringDMYHM(s?.createstamp,void 0,","),this.mailService.openedMail$.next(s),o?this.data.cross.href&&this.router.navigate([this.data.cross.href]):this.router.navigate(["mailing-sign"])}onEvent(s){"employeeCount"===s.fieldName&&this.addEmployee(),"resetInput"===s.eventType&&this.removeEmployee(s.fieldName)}onChangeSectionId(s){this.selectForm.controls.mailType.setValue("");const o=(this.mailDeps||[]).find(g=>g.value===s);o||setTimeout(()=>{this.onChangeSectionId(s)},2e3),o&&this.mailService.getMailTypesBySection(o.bankSectionId).pipe((0,zn.R)(this.destroyed$)).subscribe(g=>{const V=g&&this.mailTypes?this.mailTypes.filter(me=>g.includes(me.id)):[];this.dynamicFormService.setSelectItems(this.selectConfig,"mailType",V),this.parentMail&&setTimeout(()=>{this.selectForm.patchValue({sectionId:this.parentMail.sectionId,mailType:this.parentMail.mailType})},500),setTimeout(()=>{this.isRevoke&&setTimeout(()=>{this.selectForm.get("mailType").setValue("982"),this.selectForm.get("mailType").updateValueAndValidity(),this.selectForm.get("mailType").disable(),this.selectForm.get("caption").setValue("\u041e\u0442\u0437\u044b\u0432 \u0440\u0443\u0431\u043b\u0435\u0432\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0441 \u0421\u0412\u041e (\u0418\u041d\u041d "+this.dataForRevoke.inn+", "+this.dataForRevoke?.clientShortName+")"),this.selectForm.get("caption").updateValueAndValidity(),this.selectForm.get("caption").disable(),this.setTemplateData({code:"982",id:"2294364"})},200)},500),this.isRequestResponse?setTimeout(()=>{this.selectForm.get("mailType").setValue(this.bankRequest.mailType||"102"),this.selectForm.get("mailType").disable(),this.selectForm.get("mailType").updateValueAndValidity(),this.loading.emit(!1)},200):this.mail.mailType&&setTimeout(()=>{this.selectForm.get("mailType").setValue(this.mail.mailType),this.loading.emit(!1)})})}addEmployee(){const s=this.employeeCount();this.piConfig.push(Zd(s)),this.permissionInformationForm.addControl(`employee_${s}`,new l.UntypedFormControl("",l.Validators.required)),this.permissionInformationForm.updateValueAndValidity()}mapPIData(){const s={staff:[]};return Object.entries(this.permissionInformationForm.value).forEach(o=>{-1===o[0].indexOf("employee_")?s[o[0]]=o[1]:s.staff.push({data:o[1]})}),s}removeEmployee(s){const o=this.piConfig.findIndex(g=>g.field.name===s);this.piConfig.splice(o,1),this.permissionInformationForm.removeControl(s),this.permissionInformationForm.updateValueAndValidity()}buttonDisable(){return this.selectForm.invalid||0===this.textareaValue.length&&!this.isPermissionInformation&&!this.isRequestResponse||this.isPermissionInformation&&this.permissionInformationForm.invalid||this.rForm&&99!==this.rCode&&(this.rForm.invalid||!this.chosenRadio)||this.rForm&&99===this.rCode&&this.rForm.invalid||this.fcForm&&this.fcForm.invalid}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}onChangeRadio(s){switch(this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("additionalBody")),this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("corrAccNumber")),this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("corrFullName")),this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("corrInn")),s){case 1:this.dynamicFormService.getConfigField(this.rConfig,"corrAccNumber").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrFullName").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrInn").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!0;break;case 2:this.configUtilService.setValidatorsAndUpdate(this.rForm.get("additionalBody"),[l.Validators.required]),this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!1,this.dynamicFormService.getConfigField(this.rConfig,"corrAccNumber").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrFullName").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrInn").visual.hide=!0;break;case 3:this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!0,(1===this.rCode||2===this.rCode)&&(this.configUtilService.setValidatorsAndUpdate(this.rForm.get("corrAccNumber"),[l.Validators.required,l.Validators.minLength(20)]),this.configUtilService.setValidatorsAndUpdate(this.rForm.get("corrInn"),[l.Validators.required,l.Validators.pattern(xl)]),this.dynamicFormService.getConfigField(this.rConfig,"corrAccNumber").visual.hide=!1,this.dynamicFormService.getConfigField(this.rConfig,"corrInn").visual.hide=!1),(1===this.rCode||2===this.rCode||5===this.rCode)&&(this.configUtilService.setValidatorsAndUpdate(this.rForm.get("corrFullName"),[l.Validators.required]),this.dynamicFormService.getConfigField(this.rConfig,"corrFullName").visual.hide=!1)}}onChangeCheckbox08(s){this.fcConfig.forEach(o=>{const g=this.dynamicFormService.getConfigField(Fc,o.field.name);"checkBox08"!==o.field.name&&("additionalBody"===o.field.name?(this.dynamicFormService.getConfigField(this.fcConfig,"additionalBody").visual.hide=!s,this.configUtilService.setValidatorsAndUpdate(this.fcForm.get("additionalBody"),s?[l.Validators.required]:[])):s?(this.dynamicFormService.getConfigField(this.fcConfig,o.field.name).visual.hide=!0,this.configUtilService.clearValidatorsAndUpdate(this.fcForm.get(o.field.name))):(this.dynamicFormService.getConfigField(this.fcConfig,o.field.name).visual.hide=!1,this.configUtilService.setValidatorsAndUpdate(this.fcForm.get(o.field.name),g.field.validators)))}),this.fcForm.updateValueAndValidity()}parseJsonFields(){try{return JSON.parse(this.bankRequest.requestRequiredFields)}catch{return[]}}addAdditionalBody(s,o){this.fcConfig.push(this.dynamicFormService.getConfigField(Fc,"checkBox08")),this.dynamicFormService.getConfigField(this.fcConfig,"checkBox08").field.value=s,this.dynamicFormService.getConfigField(this.fcConfig,"checkBox08").visual.hide=!o,this.fcConfig.push(this.dynamicFormService.getConfigField(Fc,"additionalBody")),this.dynamicFormService.getConfigField(this.fcConfig,"additionalBody").visual.hide=!s,this.dynamicFormService.getConfigField(this.fcConfig,"additionalBody").field.validators=s?[l.Validators.required]:[]}getSelections(){return new Promise(s=>{this.transferRurService.getLists().subscribe(([o,g,V,me])=>(this.selections.stat=o,this.selections.kbk=g,this.selections.ground=V,this.selections.taxPeriod=me,s(null)))})}setFiles(s){const o=s.map(g=>new _c.h(g));this.filesFormControl.setValue(o)}static#e=this.\u0275fac=function(o){return new(o||nC)(e.\u0275\u0275directiveInject(Nr.r),e.\u0275\u0275directiveInject(Ba.w),e.\u0275\u0275directiveInject(ws.l),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(wi.c),e.\u0275\u0275directiveInject(Ur.L),e.\u0275\u0275directiveInject(ir.x),e.\u0275\u0275directiveInject(i.uU),e.\u0275\u0275directiveInject(js.G))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:nC,selectors:[["app-mailing-new"]],viewQuery:function(o,g){if(1&o&&e.\u0275\u0275viewQuery(se,5),2&o){let V;e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(g.fileInput=V.first)}},inputs:{answer:"answer",parentId:"parentId",bankRequest:"bankRequest",parentMail:"parentMail"},outputs:{loading:"loading"},decls:18,vars:15,consts:[[3,"pathData"],[1,"mail-new"],[1,"card"],[1,"card__top-block"],[1,"card__title","section-title"],["class","cross-wrap",4,"ngIf"],["data-qa","1657964623773",1,"card__content-block"],["data-qa","1657964626503",3,"config","formGroup"],["data-qa","1657964630193",3,"config","formGroup","event",4,"ngIf"],[4,"ngIf"],["class","card__content-block__text",4,"ngIf"],[1,"wrapper-footer"],[1,"buttons"],["class","buttons-save","data-qa","1657964748155","text","Save",3,"disabled","click",4,"ngIf"],["data-qa","1657964750854","text","Send for signature",3,"click"],["data-qa","1657964753221","text","Cancel",3,"routerLink","type",4,"ngIf"],[1,"cross-wrap"],["class","cross","data-qa","1657964612480",3,"routerLink",4,"ngIf","ngIfElse"],["emptyCross",""],["data-qa","1657964612480",1,"cross",3,"routerLink"],[1,"cross"],["data-qa","1657964630193",3,"config","formGroup","event"],[1,"recall-order__cause"],["class","radio-wrap",4,"ngIf"],["class","reForm",3,"config","formGroup",4,"ngIf"],[1,"radio-wrap"],["class","radio",3,"chosen","label","name","value","changed",4,"ngIf"],[3,"chosen","label","name","value","changed",4,"ngIf"],[1,"radio",3,"chosen","label","name","value","changed"],[3,"chosen","label","name","value","changed"],[1,"reForm",3,"config","formGroup"],[1,"card__content-block__text"],[1,"recall-order__label"],["data-qa","1657964635634",1,"recall-order__textarea",3,"ngModel","disabled","ngModelChange"],["cause",""],[3,"mimeTypes","formControl","mimeTypesLabel","maxAmountFilesSizeByte","disabledInput","isHide","filesIsLargerThenMaximum","filesIsNotValidMimeType","removeAttachment"],["data-qa","1657964748155","text","Save",1,"buttons-save",3,"click"],["data-qa","1657964753221","text","Cancel",3,"routerLink","type"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(7,Ft,4,2,"div",5),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275element(9,"app-dynamic-form",7),e.\u0275\u0275template(10,an,1,2,"app-dynamic-form",8),e.\u0275\u0275template(11,Us,6,4,"div",9),e.\u0275\u0275template(12,Qa,8,13,"div",10),e.\u0275\u0275elementStart(13,"div",11)(14,"div",12),e.\u0275\u0275template(15,Gl,1,2,"app-button",13),e.\u0275\u0275elementStart(16,"app-button",14),e.\u0275\u0275listener("click",function(){return g.save(!1)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(17,Vr,1,2,"app-button",15),e.\u0275\u0275elementEnd()()()()()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,12,g.title,g.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.data.cross&&!g.answer),e.\u0275\u0275advance(2),e.\u0275\u0275property("config",g.selectConfig)("formGroup",g.selectForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isPermissionInformation),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isRequestResponse),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isPermissionInformation&&!g.isRequestResponse),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",g.mailId),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("disabled",g.buttonDisable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.answer))},dependencies:[l.DefaultValueAccessor,l.NgControlStatus,l.NgControlStatusGroup,l.NgModel,bi.rH,qo.U,fe.s,l.FormControlDirective,l.FormGroupDirective,i.O5,ye.r,aa.l,Xt.r,yi.X$],styles:['@charset "UTF-8";.mail-new[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 32px 40px;box-shadow:0 4px 15px #0807080d;border-radius:2px}.mail-new[_ngcontent-%COMP%]   .card__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]{min-height:224px;margin-top:11px;width:100%;display:flex;justify-content:space-between}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__cause[_ngcontent-%COMP%]{width:70%;border-radius:5px;border:1px solid #dedede}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__label[_ngcontent-%COMP%]{cursor:pointer;margin:12px 13px;font-size:12px;color:#88909b}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]{width:100%;min-height:calc(100% - 40px);outline:none;border:none;font-size:16px;color:#444;padding:0 10px;resize:vertical;font-family:Source Sans Pro,sans-serif}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]::placeholder{color:#2f54eb}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:168px;width:300px;margin:11px 0 11px -12px;z-index:2}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .attachment__text[_ngcontent-%COMP%]{display:flex;padding:13px 17px;color:#88909b;cursor:pointer}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .attachment__text[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:10px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:17px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left[_ngcontent-%COMP%]{color:#88909b;display:flex;font-size:18px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__date[_ngcontent-%COMP%]{padding-right:5px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__text[_ngcontent-%COMP%]{color:#444}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-title[_ngcontent-%COMP%]{font-size:22px;margin-top:8px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-description[_ngcontent-%COMP%]{font-size:20px;margin-top:17px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;margin-top:20px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:last-child{margin-left:20px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:first-child{margin-left:0}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons-save[_ngcontent-%COMP%]{margin-right:0}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons-text[_ngcontent-%COMP%]{color:#2f54eb;font-weight:600;margin:auto auto auto 48px;cursor:pointer}[_nghost-%COMP%]     .mail-new-attachment-icon{width:11px;height:22px;fill:#88909b}[_nghost-%COMP%]     .mail-new-file-icon{width:16px;height:20px;fill:#88909b}.import__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:30px}.import__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.import__button-label__input[_ngcontent-%COMP%]{display:none}.import__button.view[_ngcontent-%COMP%]{margin-right:20px}.import__button.load[_ngcontent-%COMP%]{width:170px}.files[_ngcontent-%COMP%]{padding:13px 21px;min-height:100px;overflow:hidden;overflow-y:scroll;scrollbar-width:none}.files[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.files__item[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}.files__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.files__item[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:12px}.files__item-name[_ngcontent-%COMP%]{color:#444}.files__item-cross[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:15px}  .radio-wrap{margin-top:1em}  .radio-wrap .radio{padding:.3em 0}']})};function Gc(M,s){if(1&M&&e.\u0275\u0275element(0,"div",22),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("queryParams",o.data.cross.params)("routerLink",o.data.cross.href)}}function vs(M,s){1&M&&e.\u0275\u0275element(0,"div",23)}function fd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",19),e.\u0275\u0275template(1,Gc,1,2,"div",20),e.\u0275\u0275template(2,vs,1,0,"ng-template",null,21,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275reference(3),g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.cross.href)("ngIfElse",o)}}function Jd(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",26),e.\u0275\u0275element(1,"app-svg-icon",27),e.\u0275\u0275elementStart(2,"div",28),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(yt.getAttach(me.id,me.fileName))}),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275attribute("data-qa","1657964918115"+g),e.\u0275\u0275advance(2),e.\u0275\u0275attribute("data-qa","1657964904650"+g),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.fileName," ")}}function Qc(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275template(1,Jd,4,3,"div",25),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mail.attachments)}}function _d(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",32),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.answer())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,2,"Answer",o.lang)),e.\u0275\u0275property("disabled",o.isDisableAnswerAction)}}function qd(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-svg-icon",34),e.\u0275\u0275elementStart(2,"div"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("icon",o.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,2,o.description,g.lang))}}function Gr(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",33),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(yt.doAction(me))}),e.\u0275\u0275template(1,qd,5,5,"ng-container",2),e.\u0275\u0275elementEnd()}if(2&M){const o=s.$implicit;e.\u0275\u0275attribute("data-qa","1663066931047"+s.index),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","answer"!==o.name)}}function gd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",29),e.\u0275\u0275template(1,_d,2,5,"app-button",30),e.\u0275\u0275template(2,Gr,2,2,"div",31),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","mail2client"===o.mail.docType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mail.actionsList)}}function sl(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-mailing-new",35),e.\u0275\u0275listener("loading",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.loader=V)}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("answer",!0)("parentMail",o.mail)("bankRequest",o.request)("parentId",o.mail.id)}}function Vs(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,fd,4,2,"div",7),e.\u0275\u0275elementStart(6,"div",8)(7,"div",9)(8,"div",10)(9,"div",11)(10,"div",12),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"div",13),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div"),e.\u0275\u0275text(15),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"div",14)(17,"div",15),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(19,"div",16),e.\u0275\u0275pipe(20,"hyperlink"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(21,Qc,2,1,"div",17),e.\u0275\u0275template(22,gd,3,2,"div",18),e.\u0275\u0275template(23,sl,2,4,"div",2),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",o.title," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data.cross),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(o.mail.registerStamp?o.mail.registerStamp:o.mail.createstamp),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.mail.mailTypeCaption),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.mail.statusCaption," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.mail.caption," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(20,10,o.mail.description),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.mail.attachments&&0!==o.mail.attachments.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.answerValue),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.answerValue)}}function Bc(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}(0,Wi.gn)([(0,yi.SQ)()],Js.prototype,"lang",void 0),Js=(0,Wi.gn)([Mr()],Js);class cl{constructor(s,o,g,V,me,yt,Zt){this.mailService=s,this.documentService=o,this.translation=g,this.router=V,this.toast=me,this.appConfigService=yt,this.activatedRoute=Zt,this.pathData=[],this.title="",this.answerValue=!1,this.data={cross:{href:"/mailing",params:null}}}get loader(){return this.mailService.loader$.getValue()}set loader(s){this.mailService.loader$.next(s)}get isDisableAnswerAction(){return this.mailService.isDisableAnswerAction(this.mail)}ngOnInit(){this.activatedRoute.queryParams.subscribe(s=>{s&&(this.loader=!0,this.answerValue="answer"===s.mailType,this.queryParams=s.operationsTab?{operationsTab:s.operationsTab}:{},s.from&&(this.data.cross.href="/"===s.from.substr(1,1)?s.from:"/"+s.from,this.data.cross.params=this.queryParams))}),this.mailService.openedMail$.subscribe(s=>{s?(this.mail=s,"mail2client"===s.docType?(this.pathData=[{capture:"Mail",href:"/mailing",bold:!0},{capture:"Mail from bank"}],this.title=this.translation.translate("Mail from bank"),s.requestCode&&(this.request={id:s.id,caption:s.caption,requestCode:s.requestCode,body:s.body,sectionId:s.sectionId,mailType:s.mailType,requestRequiredFields:s.requestRequiredFields})):(this.pathData=[{capture:"Mail",href:"/mailing",bold:!0},{capture:"Mail to bank"}],this.title=this.translation.translate("Mail to bank")),this.answerValue=s.answer,this.loader=this.answerValue):this.router.navigate(["mailing"])}),this.mailService.operationAlert$.subscribe(s=>{s&&(this.operationAlert=s,"success"===s.errorType&&setTimeout(()=>{this.operationAlert=void 0,this.mailService.operationAlert$.next(void 0),this.router.navigate(["mailing"])},2e3))}),this.mailService.deleteMail$.subscribe(s=>{s&&(this.router.navigate(["mailing"]),this.mailService.deleteMail$.next(null))})}ngOnDestroy(){this.mailService.action$.next({mail:void 0,action:void 0})}getAttach(s,o){this.appConfigService.settings.roles.has("ROLE_ATTACHMENT_WITH_STAMP")?this.mailService.getAttachmentWithStamp(this.mail.id,s).subscribe(g=>{this.mailService.extractAttachment(g,o)}):this.mailService.getAttachment(this.mail.id,s).subscribe(g=>{this.mailService.extractAttachment(g,o)})}answer(){"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0441\u043a\u043e\u0439 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438"!==this.mail.caption||"325751"!==this.mail.sectionId?this.isDisableAnswerAction||(this.loader=!0,this.answerValue=!0):this.mailService.goToCreditMonitoring()}doAction(s){this.mailService.operationActionChange(s,this.mail)}static#e=this.\u0275fac=function(o){return new(o||cl)(e.\u0275\u0275directiveInject(Nr.r),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(as._),e.\u0275\u0275directiveInject(bi.gz))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:cl,selectors:[["app-mailing-info"]],decls:3,vars:3,consts:[["data-qa","1657964763798",3,"pathData"],["class","mail-info","data-qa","1657964767799",4,"ngIf"],[4,"ngIf"],["data-qa","1657964767799",1,"mail-info"],[1,"card"],[1,"card__top-block"],[1,"card__title","section-title"],["class","cross-wrap",4,"ngIf"],["data-qa","1657964791350",1,"card__content-block"],[1,"top-content"],[1,"top-content__header"],[1,"top-content__header__left"],[1,"top-content__header__left__date"],[1,"top-content__header__left__text"],[1,"top-content__text"],[1,"top-content__text-title"],["data-qa","1663066825378",1,"top-content__text-description",3,"innerHTML"],["class","attachment",4,"ngIf"],["class","bottom-content",4,"ngIf"],[1,"cross-wrap"],["class","cross","data-qa","1657964782420",3,"queryParams","routerLink",4,"ngIf","ngIfElse"],["emptyCross",""],["data-qa","1657964782420",1,"cross",3,"queryParams","routerLink"],[1,"cross"],[1,"attachment"],["class","attachment__item",4,"ngFor","ngForOf"],[1,"attachment__item"],["icon","file","svgClass","mail-info-file-icon"],[1,"attachment__item-name",3,"click"],[1,"bottom-content"],["data-qa","1657965189431","type","large",3,"disabled","text","click",4,"ngIf"],["class","bottom-content__button",3,"click",4,"ngFor","ngForOf"],["data-qa","1657965189431","type","large",3,"disabled","text","click"],[1,"bottom-content__button",3,"click"],["svgClass","mail-info-action-icon",3,"icon"],["data-qa","1657965197470",3,"answer","parentMail","bankRequest","parentId","loading"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275template(1,Vs,24,12,"div",1),e.\u0275\u0275template(2,Bc,1,0,"app-loader",2)),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.mail),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.loader))},dependencies:[bi.rH,Hr.b,xa.R,i.sg,i.O5,aa.l,Xt.r,Js,yi.X$,pc.N],styles:['@charset "UTF-8";.mail-info[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 30px 40px;box-shadow:0 4px 15px #0807080d;border-radius:2px}.mail-info[_ngcontent-%COMP%]   .card__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede;white-space:pre-wrap}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:17px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left[_ngcontent-%COMP%]{color:#88909b;display:flex;font-size:18px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__date[_ngcontent-%COMP%]{padding-right:5px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__text[_ngcontent-%COMP%]{color:#444}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-title[_ngcontent-%COMP%]{font-size:22px;margin-top:8px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-description[_ngcontent-%COMP%]{font-size:20px;margin-top:17px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]   app-alert[_ngcontent-%COMP%]{display:block;margin-top:10px}.mail-info[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{margin-top:25px;padding-bottom:30px;border-bottom:1px solid #dedede}.mail-info[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]{display:flex;margin-bottom:17px}.mail-info[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.mail-info[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:12px}.mail-info[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]{color:#2f54eb}.mail-info[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.mail-info[_ngcontent-%COMP%]   .bottom-content[_ngcontent-%COMP%]{display:flex;margin-top:40px}.mail-info[_ngcontent-%COMP%]   .bottom-content[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:165px;margin-right:50px}.mail-info[_ngcontent-%COMP%]   .bottom-content__button[_ngcontent-%COMP%]{display:flex;margin:auto 40px auto 0}.mail-info[_ngcontent-%COMP%]   .bottom-content__button[_ngcontent-%COMP%]:hover{cursor:pointer}.mail-info[_ngcontent-%COMP%]   .bottom-content__button[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:15px}[_nghost-%COMP%]     .mail-info-file-icon{width:16px;height:20px;fill:#2f54eb}[_nghost-%COMP%]     .mail-info-delete-icon{width:14px;height:18px;fill:#88909b}[_nghost-%COMP%]     .mail-info-printer-icon{width:20px;height:18px;fill:#88909b}[_nghost-%COMP%]     .mail-info-action-icon{width:19px;height:19px;fill:#88909b}']})}(0,Wi.gn)([(0,yi.SQ)()],cl.prototype,"lang",void 0);const Xc={items:[{value:"1",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 1"},{value:"2",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 2"},{value:"3",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 3"},{value:"4",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 4"}]};var Ql=t(62256),ys=t(88155),Ml=t(87102);function dp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o)}}function up(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275element(1,"app-svg-icon",13),e.\u0275\u0275elementStart(2,"div",14),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"maxStringLength"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",15),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",16),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.removeFile(me))}),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,2,o.name,20)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("",g.getFileSize(o)," Mb")}}function vd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275template(1,up,8,5,"div",11),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.files)}}class ss{constructor(s,o,g){this.translation=s,this.router=o,this.configUtilService=g,this.uploadChanged=new e.EventEmitter,this.files=[]}ngOnInit(){}onFileInput(s){const o=s.target.files;o.length&&(this.files=[...this.files,...this.toArray(o)],this.uploadChanged.emit({fileUpload:this.files,type:this.blockInfo.type}))}toArray(s){return Array.from(s)}removeFile(s){this.files=this.files.filter(o=>o!==s),this.uploadChanged.emit({fileUpload:this.files,type:this.blockInfo.type})}getFileSize(s){return(s.size/1024/1024).toFixed(1)}static#e=this.\u0275fac=function(o){return new(o||ss)(e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ko.Pj))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:ss,selectors:[["app-uploading-block"]],inputs:{blockInfo:"blockInfo"},outputs:{uploadChanged:"uploadChanged"},decls:13,vars:4,consts:[[1,"block-upload-finance-report"],[1,"info-block-upload"],[1,"title-block-upload"],[1,"description-block-upload"],[4,"ngFor","ngForOf"],[1,"btn-upload"],["icon","attachment","svgClass","icon-btn-upload"],["data-qa","1657964649463","multiple","","type","file",1,"import__button-label__input",3,"accept","input"],[1,"text-btn-upload"],["class","upload-files-name",4,"ngIf"],[1,"upload-files-name"],["class","item-upload-file",4,"ngFor","ngForOf"],[1,"item-upload-file"],["icon","upload-file","svgClass","icon"],[1,"text"],[1,"text","memory"],[1,"remove-file",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275text(5," \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b: "),e.\u0275\u0275template(6,dp,2,1,"span",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",5),e.\u0275\u0275element(8,"app-svg-icon",6),e.\u0275\u0275elementStart(9,"input",7),e.\u0275\u0275listener("input",function(me){return g.onFileInput(me)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",8),e.\u0275\u0275text(11,"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(12,vd,2,1,"div",9),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",g.blockInfo.description," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",g.blockInfo.formats),e.\u0275\u0275advance(3),e.\u0275\u0275property("accept",g.blockInfo.formats),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",g.files))},dependencies:[Hr.b,i.sg,i.O5,Ss.R],styles:['@charset "UTF-8";.block-upload-finance-report[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background:#ffffff;border:1px dashed #88909b;border-radius:4px;padding:20px 24px;box-sizing:border-box;margin-bottom:20px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]{display:flex;flex-direction:column}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .title-block-upload[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-weight:600;font-size:16px;line-height:22px;color:#080708;margin-bottom:12px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .description-block-upload[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:19px;letter-spacing:.01em;color:#444;margin-bottom:24px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .description-block-upload[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:2px;padding-left:2px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]{position:relative;border:1px solid #2f54eb;border-radius:4px;padding:9px 12px;display:flex;width:max-content}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]     .icon-btn-upload{height:20px;width:24px;fill:#2f54eb}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]   .text-btn-upload[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#2f54eb}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;opacity:0;top:0;left:0;cursor:pointer}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:end}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:14px}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]     .icon{fill:#444;width:14px;height:17px}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]     .icon svg{fill:#444}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-left:7px;margin-right:12px;font-weight:400;font-size:14px;line-height:19px;letter-spacing:.01em;color:#444;font-family:Open Sans,sans-serif}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .text.memory[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:16px;letter-spacing:.01em;color:#88909b;margin-right:7px;margin-left:0}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]{width:16px;height:16px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:before, .block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:before{height:2px;width:100%}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:after{width:2px;height:100%}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file.small[_ngcontent-%COMP%]{width:15px;height:15px}']})}function Dl(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-uploading-block",14),e.\u0275\u0275listener("uploadChanged",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.setFile(V))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("blockInfo",s.$implicit)}function Zc(M,s){if(1&M&&e.\u0275\u0275element(0,"app-attachment-size-info",15),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("value",o.currentTotalSize)("maxValue",o.attachmentSetup.totalFileMaxSize)}}(0,Wi.gn)([(0,yi.SQ)()],ss.prototype,"lang",void 0);class Pl{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di){this.translation=s,this.router=o,this.configUtilService=g,this.mailService=V,this.userDataService=me,this.toast=yt,this.documentService=Zt,this.fb=Pn,this.attachmentService=Fn,this.formatFileSizePipe=Di,this.pathData=[{capture:"Mail",href:"/mailing",bold:!0},{capture:"Financial reporting full"}],this.mailInfo={sectionId:"2368189",mailType:"997",caption:"\u0424\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u0430\u044f \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c.",description:""},this.data={cross:{href:"/mailing"}},this.uploadMail=[{description:"\u0411\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0441\u043a\u0438\u0439 \u0431\u0430\u043b\u0430\u043d\u0441 (\u041e\u041a\u0423\u0414 0710001) \u0438 \u041e\u0442\u0447\u0435\u0442 \u043e \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 (\u041e\u041a\u0423\u0414 07002)",formats:[".rtf",".pdf",".xls",".xlsx",".doc",".docx"],type:"balances",files:[]},{description:"\u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u043a \u043e\u0442\u0447\u0435\u0442\u0430\u043c",formats:[".rtf",".pdf",".xls",".xlsx",".doc",".docx"],type:"reports",files:[]},{description:"\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u0438",formats:[".pdf",".xls",".xlsx",".doc",".docx"],type:"declaration",files:[]},{description:"\u0421\u043f\u0440\u0430\u0432\u043a\u0438 \u0438\u0437 \u0411\u0430\u043d\u043a\u043e\u0432",formats:[".doc",".docx",".pdf",".rtf",".xls",".xlsx"],type:"references",files:[]},{description:'\u0410\u0440\u0445\u0438\u0432\u044b "No_BUHOTCH"',formats:[".zip",".xls",".xlsx",".doc",".docx"],type:"archive",files:[]},{description:"\u041f\u0440\u043e\u0447\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b (\u043f\u043e\u044f\u0441\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u043a\u0438, \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0441\u043a\u0438\u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0442.\u043f)",formats:[".rtf",".pdf",".jpg",".jpeg",".png",".tiff",".bmp",".gif",".xls",".xlsx",".doc",".docx"],type:"other",files:[]}],this.destroyed$=new co.x,this.mailConfig=Xc,this.currentTotalSize=0,this.allFiles={files:[],descriptions:""},this.loader=!0,this.mailReportForm=Pn.group({date:new l.UntypedFormControl("",[l.Validators.required]),quarter:new l.UntypedFormControl(null,[l.Validators.required])})}ngOnInit(){this.setTotalSizeSettings(),this.getPrefillData(),this.mailReportForm.valueChanges.subscribe(s=>{let o=null;s.date&&(o=new Date(s.date).getFullYear()),o&&s.quarter&&(this.mailInfo.description="\u0413\u043e\u0434: "+o+", \u041a\u0432\u0430\u0440\u0442\u0430\u043b: "+s.quarter+". ")})}getPrefillData(){this.userDataService.getClientInfoOrganization().pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{this.prefillData=s})}setFile(s){this.allFiles.files=[],this.uploadMail.find(o=>o.type===s.type).files=s.fileUpload;for(let o=0;o<this.uploadMail.length;o++)this.allFiles.files=this.allFiles.files.concat(this.uploadMail[o].files),this.uploadMail[o].files.length&&-1===this.allFiles.descriptions.indexOf(this.uploadMail[o].description)&&(this.allFiles.descriptions=this.allFiles.descriptions+this.uploadMail[o].description+".         ");this.calculateTotalFilesSize(),this.checkTotalSize()||this.toast.show(`${this.translation.translate("Maximum attachment file size")} ${this.formatFileSizePipe.transform(this.attachmentSetup.totalFileMaxSize,this.lang)}`,"error")}postMail(s=!1){if(!this.checkTotalSize())return;const o=this.mailInfo;o.description+=this.allFiles.descriptions,o.caption=o.caption+" "+this.prefillData?.shortName+", \u0418\u041d\u041d "+this.prefillData?.INN,this.mailService.postMail(o).pipe((0,zn.R)(this.destroyed$),(0,Fi.w)(g=>(0,Jo.D)([(0,An.of)(g),...this.userDataService.postAttachment(g.id,this.allFiles.files)])),(0,Fi.w)(g=>{const[V,...me]=g;return me.find(yt=>yt.errorText)&&me.forEach(yt=>{yt.errorText&&this.toast.show(yt.errorText,"error")}),this.getDocument(s,V)})).subscribe(g=>{this.files=this.configUtilService.getArray(g.attachments),this.files.forEach(V=>V.name=V.fileName),this.openMail(g,s),s&&this.toast.show("Letter saved","success")},g=>{this.toast.show(g.errorText,"error")})}getDocument(s,o){return this.documentService.getDocumentById("ibankul","mail2bank",o.id).pipe((0,lo.U)(g=>g.mail2BankUl))}setTotalSizeSettings(){this.attachmentService.attachmentSetup$.pipe((0,uo.h)(s=>Boolean(s)),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.attachmentSetup=s})}calculateTotalFilesSize(){let s=0;this.allFiles.files.forEach(o=>{o instanceof File&&(s+=o.size)}),this.currentTotalSize=s}checkTotalSize(){return this.attachmentSetup.totalFileMaxSize>this.currentTotalSize}openMail(s,o){s.registerStamp=this.configUtilService.formatDateStringDMYHM(s.registerStamp,void 0,","),s.createstamp=this.configUtilService.formatDateStringDMYHM(s.createstamp,void 0,","),this.mailService.openedMail$.next(s),o?this.data.cross.href&&this.router.navigate([this.data.cross.href]):this.router.navigate(["mailing-sign"])}buttonDisable(){return!(this.mailReportForm.valid&&this.uploadMail.find(s=>s.files.length>0)&&this.attachmentSetup?.totalFileMaxSize>this.currentTotalSize)}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(o){return new(o||Pl)(e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Nr.r),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(l.UntypedFormBuilder),e.\u0275\u0275directiveInject(Ur.L),e.\u0275\u0275directiveInject(ir.x))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Pl,selectors:[["app-mailing-report"]],decls:18,vars:21,consts:[[3,"pathData"],[1,"finance-report"],[1,"wrapper-cross"],["routerLink","/mail",1,"cross"],[1,"title-finance-report"],[1,"description-actions-finance-report"],[1,"wrapper-actions-finance-report",3,"formGroup"],["formControlName","date",1,"form-datepicker__datepicker",3,"title","placeholder","autosize","startView","readOnly"],["formControlName","quarter",3,"items","title","placeholder","appearance"],[1,"descriptions-finance-report"],[3,"blockInfo","uploadChanged",4,"ngFor","ngForOf"],[3,"value","maxValue",4,"ngIf"],[1,"buttons"],["text","Send for signature",3,"click"],[3,"blockInfo","uploadChanged"],[3,"value","maxValue"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",4),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",5),e.\u0275\u0275text(7,"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0435\u0440\u0438\u043e\u0434 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0411\u0430\u043d\u043a."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275element(9,"app-metib-datepicker",7)(10,"app-metib-select",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",9),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"formatFileSize"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,Dl,1,1,"app-uploading-block",10),e.\u0275\u0275template(15,Zc,1,2,"app-attachment-size-info",11),e.\u0275\u0275elementStart(16,"div",12)(17,"app-button",13),e.\u0275\u0275listener("click",function(){return g.postMail(!1)}),e.\u0275\u0275elementEnd()()()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate2("\u0424\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u0430\u044f \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c ",null==g.prefillData?null:g.prefillData.shortName,", \u0418\u041d\u041d ",null==g.prefillData?null:g.prefillData.INN,""),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",g.mailReportForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("title","\u0413\u043e\u0434")("placeholder","\u0413\u043e\u0434")("autosize",!1)("startView","multi-year")("readOnly",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("items",g.mailConfig.items)("title","\u041a\u0432\u0430\u0440\u0442\u0430\u043b")("placeholder","\u041a\u0432\u0430\u0440\u0442\u0430\u043b")("appearance","dcb"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" \u041e\u0431\u0449\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 ",e.\u0275\u0275pipeBind2(13,18,null==g.attachmentSetup?null:g.attachmentSetup.totalFileMaxSize,"ru"),". "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",g.uploadMail),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.attachmentSetup),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("disabled",g.buttonDisable()))},dependencies:[l.NgControlStatus,l.NgControlStatusGroup,bi.rH,Ql.A,ys.A,Ml.J,l.FormGroupDirective,l.FormControlName,i.sg,i.O5,aa.l,Xt.r,ss,ir.x],styles:['@charset "UTF-8";.finance-report[_ngcontent-%COMP%]{margin-top:30px;max-width:1200px;width:100%;background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:32px;box-sizing:border-box;position:relative}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]{position:absolute;top:40px;right:35px}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]{width:16px;height:16px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:before, .finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:before{height:2px;width:100%}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:after{width:2px;height:100%}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross.small[_ngcontent-%COMP%]{width:15px;height:15px}.finance-report[_ngcontent-%COMP%]   .title-finance-report[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-weight:700;font-size:24px;line-height:33px;color:#080708;padding-bottom:32px;box-sizing:border-box;width:100%;padding-right:21px;border-bottom:1px solid #dedede}.finance-report[_ngcontent-%COMP%]   .description-actions-finance-report[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px;font-style:normal;font-weight:400;font-family:Open Sans,sans-serif;font-size:16px;line-height:22px;color:#000}.finance-report[_ngcontent-%COMP%]   .wrapper-actions-finance-report[_ngcontent-%COMP%]{width:560px;display:flex}.finance-report[_ngcontent-%COMP%]   .descriptions-finance-report[_ngcontent-%COMP%]{font-weight:600;font-family:Open Sans,sans-serif;font-size:14px;line-height:19px;color:#88909b;margin-top:32px;padding-bottom:12px}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:#ffffff;border:1px dashed #88909b;border-radius:4px;padding:20px 24px;box-sizing:border-box}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .title-block-upload[_ngcontent-%COMP%]{font-weight:600;font-size:16px;line-height:22px;color:#080708;margin-bottom:12px}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .description-block-upload[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:19px;letter-spacing:.01em;color:#444;margin-bottom:24px}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]{border:1px solid #2f54eb;border-radius:4px;padding:9px 12px;display:flex;width:max-content}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]     .icon-btn-upload{height:20px;width:24px;fill:#2f54eb}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]   .text-btn-upload[_ngcontent-%COMP%]{font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#2f54eb}.finance-report[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;margin-top:20px}.finance-report[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:last-child{margin-left:20px}.finance-report[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:first-child{margin-left:0}.finance-report[_ngcontent-%COMP%]   .buttons-save[_ngcontent-%COMP%]{margin-right:0}.finance-report[_ngcontent-%COMP%]   .buttons-text[_ngcontent-%COMP%]{color:#2f54eb;font-weight:600;margin:auto auto auto 48px;cursor:pointer}app-metib-select[_ngcontent-%COMP%]{width:230px;margin:12px 10px 0 30px}app-metib-select[_ngcontent-%COMP%]     .dynamic-select__title{color:#88909b;font-family:Open Sans,sans-serif}  .form-datepicker__datepicker mat-datepicker-toggle .mat-mdc-icon-button svg{display:block}']})}(0,Wi.gn)([(0,yi.SQ)()],Pl.prototype,"lang",void 0);var Xl=t(46923),El=t(81876);function ll(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",10)(1,"div",11),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.title," ")}}function dl(M,s){if(1&M&&e.\u0275\u0275element(0,"div",15),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("queryParams",o.data.cross.params)("routerLink",o.data.cross.href)}}function ac(M,s){1&M&&e.\u0275\u0275element(0,"div",16)}function Ol(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275template(1,dl,1,2,"div",13),e.\u0275\u0275template(2,ac,1,0,"ng-template",null,14,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275reference(3),g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.cross.href)("ngIfElse",o)}}function pa(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-document-sign-with-wrapper",17),e.\u0275\u0275listener("result",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.changeResult(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("docIds",o.docIds)("docModule",o.signParams.docModule)("docType",o.signParams.docType)}}function ie(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",18)(1,"app-button-actions",19),e.\u0275\u0275listener("buttonPending",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.pending=V)}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("buttons",o.mails[0].buttonActions)}}function be(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",34),e.\u0275\u0275element(1,"app-svg-icon",35),e.\u0275\u0275elementStart(2,"div",36),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(yt.getAttach(me.id,me.fileName))}),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275advance(2),e.\u0275\u0275attribute("data-qa","1663066641658"+g),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.fileName," ")}}function Ye(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",32),e.\u0275\u0275template(1,be,4,2,"div",33),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.attachments)}}function ft(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",22)(1,"div",23)(2,"div",24)(3,"div",25)(4,"div",26),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",27),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",28)(9,"div",29),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",30),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(13,Ye,2,1,"div",31),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit;e.\u0275\u0275attribute("data-qa","1663066638454"+s.index),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(o.registerStamp?o.registerStamp:o.createstamp),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.mailTypeCaption),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.caption," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.description," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.attachments&&0!==o.attachments.length)}}function tn(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,ft,14,6,"div",21),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mails)}}function Bn(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275template(1,ll,3,1,"div",3),e.\u0275\u0275template(2,Ol,4,2,"div",4),e.\u0275\u0275elementStart(3,"div",5)(4,"div",6),e.\u0275\u0275template(5,pa,1,3,"app-document-sign-with-wrapper",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,ie,2,1,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,tn,2,1,"div",9),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.isMultiSigns),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data.cross&&!o.isMultiSigns),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.signParams),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.isMultiSigns&&o.mails.length&&o.mails[0].buttonActions),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.mails.length)}}let di=(()=>{class M{constructor(o,g,V,me){this.mailService=o,this.translation=g,this.router=V,this.configUtilService=me,this.pathData=[{capture:"Mail",href:"/mail",bold:!0},{capture:"New mail"}],this.data={cross:{href:"/mailing",params:null},buttons:[{type:"print"}]},this.actions=["copy","update","print","delete","sign_on_client"],this.mails=[],this.title="",this.isLoading=!1,this.isMultiSigns=!1,this.docIds=[]}ngOnInit(){null!==this.mailService.openedMail$.getValue()?(this.isMultiSigns=!1,this.docIds=[],this.mailService.openedMail$.subscribe(o=>{o?(this.mail=o,this.mail.attachments&&(this.mail.attachments=this.configUtilService.getArray(this.mail.attachments)),this.mail.buttonActions=this.parseMailActionsToButtonType(this.mail.actions?this.mail.actions:this.actions),this.title=`${this.translation.translate("Signature of the letter to the bank")}`,this.signParams={},this.docIds.push(o.id),this.signParams.docType=o.docType,this.signParams.docModule=o.docModule,this.isDuplicate(this.mails,this.mail)||this.mails.push(this.mail)):this.router.navigate(["mailing"])})):(this.isMultiSigns=!1,this.docIds=[],this.mailService.sighMails$.subscribe(o=>{o?o.forEach(g=>{const V=g;V.attachments&&(V.attachments=this.configUtilService.getArray(V.attachments)),V.buttonActions=this.parseMailActionsToButtonType(V.actions?V.actions:this.actions),this.signParams={},this.signParams.docType=V.docType,this.signParams.docModule=V.docModule,this.mails.push(V),this.docIds.push(V.id)}):this.router.navigate(["mailing"])}))}isDuplicate(o,g){return!!o.find(V=>V.id===g.id)}getAttach(o,g){this.mailService.getAttachment(this.mail.id,o).subscribe(V=>{this.mailService.extractAttachment(V,g)})}changeResult(o){2===o.signStatus&&(this.mail.buttonActions.forEach(g=>{"edit"===g.type&&(g.data.disabled=!0),"delete"===g.type&&(g.data.disabled=!0)}),this.isMultiSigns?(this.mailService.openedMail$.next(null),this.mailService.sighMails$.next(o.document)):(this.mailService.openedMail$.next(o.document),this.mailService.sighMails$.next([])))}parseMailActionsToButtonType(o){const g=[];return o.forEach(V=>{switch(V){case"copy":g.push({type:"createCopy",data:{mail:this.mail,disabled:!1}});break;case"update":g.push({type:"edit",data:{mail:this.mail,disabled:!1}});break;case"sign_on_client":g.push({type:"sign",data:{mail:this.mail,disabled:!0}});break;case"print":g.push({type:"print",data:{mail:this.mail,disabled:!1}});break;case"delete":g.push({type:"delete",data:{mail:this.mail,disabled:!1}})}}),g}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(Nr.r),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ko.Pj))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-mailing-sign"]],decls:2,vars:2,consts:[["data-qa","1657964365838",3,"pathData"],["class","card","data-qa","1657964371043",4,"ngIf"],["data-qa","1657964371043",1,"card"],["class","card__top-block",4,"ngIf"],["class","cross-wrap",4,"ngIf"],[1,"sign-page-wrapper"],[1,"sign-page"],["class","document-sign","data-qa","1657964387287",3,"docIds","docModule","docType","result",4,"ngIf"],["class","card__middle-block-right",4,"ngIf"],["data-qa","1657964399128",4,"ngIf"],[1,"card__top-block"],[1,"card__title","section-title"],[1,"cross-wrap"],["class","cross","data-qa","1657964379638",3,"queryParams","routerLink",4,"ngIf","ngIfElse"],["emptyCross",""],["data-qa","1657964379638",1,"cross",3,"queryParams","routerLink"],[1,"cross"],["data-qa","1657964387287",1,"document-sign",3,"docIds","docModule","docType","result"],[1,"card__middle-block-right"],["data-qa","1657964391447",3,"buttons","buttonPending"],["data-qa","1657964399128"],["class","card__content-block",4,"ngFor","ngForOf"],[1,"card__content-block"],[1,"top-content"],[1,"top-content__header"],[1,"top-content__header__left"],[1,"top-content__header__left__date"],[1,"top-content__header__left__text"],[1,"top-content__text"],[1,"top-content__text-title"],[1,"top-content__text-description"],["class","attachment",4,"ngIf"],[1,"attachment"],["class","attachment__item",4,"ngFor","ngForOf"],[1,"attachment__item"],["icon","file","svgClass","card-file-icon"],[1,"attachment__item-name",3,"click"]],template:function(g,V){1&g&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275template(1,Bn,8,5,"div",1)),2&g&&(e.\u0275\u0275property("pathData",V.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.mails))},dependencies:[bi.rH,Hr.b,Xl.n,i.sg,i.O5,El.v,aa.l],styles:['@charset "UTF-8";.card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 30px 40px;box-shadow:0 4px 15px #0807080d;border-radius:2px}.card__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.card__content-block[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:30px;margin-bottom:20px}.card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.card__content-block[_ngcontent-%COMP%]   .top-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.card__content-block[_ngcontent-%COMP%]   .top-content__header__left[_ngcontent-%COMP%]{color:#88909b;display:flex;font-size:18px}.card__content-block[_ngcontent-%COMP%]   .top-content__header__left__date[_ngcontent-%COMP%]{padding-right:5px}.card__content-block[_ngcontent-%COMP%]   .top-content__header__left__text[_ngcontent-%COMP%]{color:#444}.card__content-block[_ngcontent-%COMP%]   .top-content__text-title[_ngcontent-%COMP%]{font-size:22px;margin-top:8px}.card__content-block[_ngcontent-%COMP%]   .top-content__text-description[_ngcontent-%COMP%]{font-size:20px;margin-top:17px}.card[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{margin-top:25px;padding-bottom:30px}.card[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]{display:flex;margin-bottom:17px}.card[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.card[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:12px}.card[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]{color:#2f54eb}.card[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.card__middle-block-right[_ngcontent-%COMP%]{margin:30px 0 30px auto}.card[_ngcontent-%COMP%]   .sign-page-wrapper[_ngcontent-%COMP%]{display:flex}.card[_ngcontent-%COMP%]   .sign-page[_ngcontent-%COMP%]{width:50%;display:block;margin:30px 0}[_nghost-%COMP%]     .card-file-icon{width:16px;height:20px;fill:#2f54eb}[_nghost-%COMP%]     .card-action-icon{width:19px;height:19px;fill:#88909b}.bottom-content[_ngcontent-%COMP%]{display:flex;margin-top:40px}.bottom-content[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:165px;margin-right:50px}.bottom-content__button[_ngcontent-%COMP%]{display:flex;margin:auto 50px auto 0}.bottom-content__button[_ngcontent-%COMP%]:hover{cursor:pointer}.bottom-content__button[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:15px}']})}return M})();var Gi=t(82805),So=t(7331),Bo=(()=>{return(M=Bo||(Bo={})).INBOX="inbox",M.OUT="out",Bo;var M})();const $r=[{capture:"Inbox",query:Bo.INBOX},{capture:"Out",query:Bo.OUT},{capture:"Financial reporting",routerLink:"/mailing-report"}];var rc=t(25781);function cs(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",20)(1,"div")(2,"span",5),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-datepicker",21),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.datePickersChanged(V,"beginDate"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div")(7,"span",5),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"app-datepicker",22),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.datePickersChanged(V,"endDate"))}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,"From",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.beginDate),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,7,"To",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.endDate)}}function Su(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-tab",23),e.\u0275\u0275pipe(1,"translate")),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext();e.\u0275\u0275propertyInterpolate("label",e.\u0275\u0275pipeBind2(1,2,o.capture,V.lang)),e.\u0275\u0275attribute("data-qa","1657786925923"+g)}}function Jp(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",26),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.signDocuments())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Sign",o.lang))}}function ul(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",26),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.saveSelected())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Save to file",o.lang))}}function pp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",24)(1,"p"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Jp,2,4,"app-button",25),e.\u0275\u0275template(4,ul,2,4,"app-button",25),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("\u0412\u044b\u0431\u0440\u0430\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432: ",o.selectedDocs&&o.selectedDocs.size,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===o.lastOperationService.mailTab),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===o.lastOperationService.mailTab)}}function eu(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-checkbox",46),e.\u0275\u0275listener("checkboxChange",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onSelectDocs(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(),g=o.$implicit,V=o.index,me=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",me.selectedDocs.has(g)),e.\u0275\u0275attribute("data-qa","1663066463703"+V)}}function qp(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",47)}function Sl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",37),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.caption)}}function mp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.sectionName)}}function Tu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",49)(1,"div",50),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",51),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.signStatusCaption),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.statusCaption)}}function sa(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",52),e.\u0275\u0275text(1,"\u041e\u0442\u043e\u0437\u0432\u0430\u043d\u043e"),e.\u0275\u0275elementEnd())}const em=function(){return[]};function xs(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",30),e.\u0275\u0275listener("click",function(V){const yt=e.\u0275\u0275restoreView(o).$implicit,Zt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Zt.openMail(V,yt))}),e.\u0275\u0275elementStart(1,"div",31),e.\u0275\u0275template(2,eu,1,2,"app-checkbox",32),e.\u0275\u0275elementStart(3,"div",33)(4,"div",34),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"maxStringLength"),e.\u0275\u0275template(7,qp,1,0,"app-svg-icon",35),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,Sl,2,1,"div",36),e.\u0275\u0275elementStart(9,"div",37),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"maxStringLength"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,mp,2,1,"div",38),e.\u0275\u0275elementStart(13,"div",39),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"maxStringLength"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(16,"div",40)(17,"div",41),e.\u0275\u0275text(18),e.\u0275\u0275template(19,Tu,5,2,"div",42),e.\u0275\u0275template(20,sa,2,0,"div",43),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"app-menu-select",44),e.\u0275\u0275listener("change",function(V){const yt=e.\u0275\u0275restoreView(o).$implicit,Zt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Zt.operationActionChange(V,yt))}),e.\u0275\u0275element(22,"app-svg-icon",45),e.\u0275\u0275elementEnd()()()}if(2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275classProp("unread","send"===o.status),e.\u0275\u0275attribute("data-qa","1663068595382"+g),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(o.actions||e.\u0275\u0275pureFunction0(25,em)).includes("sign_on_client")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.mailTypeCaption?o.mailTypeCaption:e.\u0275\u0275pipeBind2(6,16,o.caption,100)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0!==o.attachments.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",""!==o.mailTypeCaption),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(11,19,o.clientName,100)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.sectionName&&o.sectionName.length),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(15,22,o.description,100)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",o.registerStamp?o.registerStamp:o.createstamp," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","mail2bank"===o.docType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","decline"===o.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("icon",!0)("items",o.actionsList),e.\u0275\u0275attribute("data-qa","1663066475155"+g)}}function Tl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"No mails",o.lang))}}function hp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275template(1,xs,23,26,"div",28),e.\u0275\u0275template(2,Tl,3,4,"div",29),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("empty",0===o.mails.list.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mails.list),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===o.mails.list.length)}}function fp(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.showMore())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"Show more",o.lang)," ")}}const As=function(){return{capture:"Mail",bold:!0}},$s=function(M){return[M]};class bd{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di){this.lastOperationService=s,this.mailService=o,this.modalService=g,this.router=V,this.translation=me,this.operationService=yt,this.documentService=Zt,this.vedService=Pn,this.util=Fn,this.route=Di,this.MAIL_TABS=$r,this.MAIL_TABS_QUERY=Bo,this.icons=new Tr.R(this.translation).getIcons(),this.actions=[],this.load=!1,this.search="",this.unsubscribe$=new co.x,this.onSearchChange=Ja.Ds(this.onSearch.bind(this),500),this.documents=[],this.countOnPage=5,this.initialTabIndex=0,this.allAlreadyLoaded=!1,this.selectedDocs=new Set,this._datesPeriod=this.lastOperationService.chosenPeriod$.value}get datesPeriod(){return this._datesPeriod}set datesPeriod(s){this._datesPeriod=s,this.lastOperationService.chosenPeriod$.next(s)}ngOnInit(){this.checkQueryParams(),this.lastOperationService.chosenPeriod$.pipe((0,So.D)(()=>(0,Gi.H)(500))).subscribe(()=>{this.getLetters(),this.getUnreadMails()}),this.mailService.deleteMail$.subscribe(s=>{s&&this.getLetters()}),this.actionsSubscription$=this.mailService.action$.subscribe(s=>{s&&(void 0===s.mail?this.actionsSubscription$&&this.actionsSubscription$.unsubscribe():this.operationActionChange(s.action,s.mail))})}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}changePeriod(s){this.datesPeriod="period"!==s.period?this.lastOperationService.changePeriod(s,this.datesPeriod.endDate,this.datesPeriod.beginDate):{...this.datesPeriod,currentPeriod:s}}datePickersChanged(s,o){this.datesPeriod={...this.datesPeriod,[o]:s},"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(me=>"period"===me.period));const g=Ri()(this.datesPeriod.endDate),V=Ri()(this.datesPeriod.beginDate);g.diff(V,"days")>365||(this.datesPeriod=Ja.d9(this.datesPeriod))}operationActionChange(s,o){this.mailService.operationActionChange(s,o)}openMail(s,o){s.target.className&&typeof s.target.className.includes<"u"&&(s.target.className.includes("checkbox")||s.target.className.includes("background")||s.target.className.includes("alert"))||"object"!=typeof s.target.className&&(this.router.navigate(["mailing-info"]),this.mailService.openedMail$.next(o),(o.unread||"send"===o.status)&&this.mailService.readMail(o.id).subscribe(()=>{const g=this.mailService.unreadMailIds$.value.filter(me=>me!==o.id),V=parseInt(this.mailService.unreadMailNumber$.value,10)-1;0!==V?(this.mailService.unreadMailIds$.next(g),this.mailService.unreadMailNumber$.next(V.toString())):(this.mailService.unreadMailIds$.next([]),this.mailService.unreadMailNumber$.next(""))}))}onSelectTab(s){const o=this.MAIL_TABS[s];this.chosenTab=o,this.getLetters(),this.getUnreadMails(),this.selectedDocs.clear(),o.routerLink?this.router.navigate([o.routerLink]):this.router.navigate(["/mailing"],{queryParams:{tab:o.query}})}checkQueryParams(){this.route.queryParams.pipe((0,zn.R)(this.unsubscribe$)).subscribe(s=>{if(s.tab){let o=this.MAIL_TABS.findIndex(g=>g.query===s.tab);-1===o&&(o=0),this.initialTabIndex=o}else this.initialTabIndex=0;this.onSelectTab(this.initialTabIndex)})}onSearch(s){this.search="string"==typeof s?s:s.target.value,this.getLetters()}getLetters(s){let o;this.load=!0,o=this.chosenTab.query===Bo.OUT?"outcomingConfig":"incomingConfig",this.incomeMails=this.mailService.getLetters(this.datesPeriod,o,this.search,s).pipe((0,lo.U)(g=>(g.list.forEach(V=>{const me=this.operationService.getActions(this.icons,V.actions);V.actionsList=this.mailService.isDisableAnswerAction(V)?me.filter(yt=>"answer"!==yt.name):me}),g))).subscribe(g=>{if(this.load=!1,s){const V=this.mails.list;this.mails=g,this.mails.list=[...V,...this.mails.list]}else this.mails=g;this.mails=g,this.currentPage=g.page,this.checkShowMoreValue=this.checkShowMore()})}newMail(){this.router.navigate(["mailing-new"])}saveSelected(){const s=Array.from(this.selectedDocs).map(o=>o.id).join(",");this.operationActionChange({name:"save_to_file"},{id:s})}checkShowMore(){return!!this.currentPage&&parseFloat(this.currentPage.number)<parseFloat(this.currentPage.total)-1}showMore(){this.getLetters(parseFloat(this.currentPage.number)+1)}getUnreadMails(){this.mailService.getMailUnreadNumber().subscribe(s=>{const o=parseFloat(s.count),g=Array.isArray(s.unreadMails)?s.unreadMails:[s.unreadMails],V=[];0!==o&&(g.forEach(me=>V.push(me.id.toString())),this.mailService.unreadMailIds$.next(V),this.mailService.unreadMailNumber$.next(o>9?"9+":s.count))})}signDocuments(){1===this.selectedDocs.size?(this.mailService.openedMail$.next(Array.from(this.selectedDocs)[0]),this.mailService.sighMails$.next([])):(this.mailService.openedMail$.next(null),this.mailService.sighMails$.next(Array.from(this.selectedDocs))),this.router.navigate(["/mailinh-sign"])}onSelectDocs(s){this.selectedDocs.has(s)?this.selectedDocs.delete(s):this.selectedDocs.add(s)}static#e=this.\u0275fac=function(o){return new(o||bd)(e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(Nr.r),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(Gs.f),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(jr.$),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(bi.gz))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:bd,selectors:[["app-mailing"]],decls:28,vars:26,consts:[["data-qa","1657963843902",1,"mail"],["data-qa","1657963848386",3,"pathData"],["data-qa","1657963856857",1,"mail__content"],[1,"header"],[1,"header__title"],[1,"title-item"],["data-qa","1657963982249",3,"items","periodChange"],[1,"title-item","clickable"],[1,"title-item-text"],["class","my-period-dates",4,"ngIf"],["data-qa","1657963997410",1,"content"],[1,"content__tabs"],["data-qa","1657964004571",3,"initialIndex","selectTab"],[3,"label",4,"ngFor","ngForOf"],[1,"content__inputs"],["data-qa","1657964027660","inputClass","no-description mail-search","matIcon","search","typeClass","flex-input-filter",1,"content__inputs__input",3,"placeholder","valueChange"],["data-qa","1657964031772","type","small",1,"content__inputs__button",3,"text","click"],["class","docs-for-sign__select",4,"ngIf"],["class","mail-content",3,"empty",4,"ngIf"],["class","mail-footer","data-qa","1657964230285",3,"click",4,"ngIf"],[1,"my-period-dates"],["data-qa","1657963988991",3,"value","dateChange"],["data-qa","1657963993742",3,"value","dateChange"],[3,"label"],[1,"docs-for-sign__select"],["type","small-bordered white",3,"text","click",4,"ngIf"],["type","small-bordered white",3,"text","click"],[1,"mail-content"],["class","mail-content__item",3,"unread","click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"mail-content__item",3,"click"],[1,"mail-content__item__text"],[3,"chosen","checkboxChange",4,"ngIf"],[1,"item-text"],[1,"item-text__mail-type"],["icon","attachment","svgClass","mail-attachment-icon",4,"ngIf"],["class","item-text__caption",4,"ngIf"],[1,"item-text__caption"],["class","item-text__from",4,"ngIf"],[1,"item-text__description"],[1,"mail-content__item__time"],[1,"mail-content__item__time-info"],["class","mail-content__item__time-info__caption",4,"ngIf"],["class","mail-content__item__time-info__decline",4,"ngIf"],["wrapperClass","mail-actions-wrapper",3,"icon","items","change"],["icon","actions","svgClass","mail-actions"],[3,"chosen","checkboxChange"],["icon","attachment","svgClass","mail-attachment-icon"],[1,"item-text__from"],[1,"mail-content__item__time-info__caption"],[1,"mail-content__item__time-info__caption-sign"],[1,"mail-content__item__time-info__caption-status"],[1,"mail-content__item__time-info__decline"],["data-qa","1657964230285",1,"mail-footer",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"app-path",1),e.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"div",4)(5,"div")(6,"span",5),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"app-no-input-select",6),e.\u0275\u0275listener("periodChange",function(me){return g.changePeriod(me)}),e.\u0275\u0275elementStart(10,"span",7)(11,"span")(12,"span",8),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"lowercase"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275template(15,cs,11,10,"div",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"div",10)(17,"div",11)(18,"app-tabs",12),e.\u0275\u0275listener("selectTab",function(me){return g.onSelectTab(me)}),e.\u0275\u0275template(19,Su,2,5,"app-tab",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"div",14)(21,"app-input",15),e.\u0275\u0275listener("valueChange",function(me){return g.onSearchChange(me)}),e.\u0275\u0275pipe(22,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"app-button",16),e.\u0275\u0275listener("click",function(){return g.newMail()}),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(25,pp,5,3,"div",17),e.\u0275\u0275template(26,hp,3,4,"div",18),e.\u0275\u0275template(27,fp,3,4,"div",19),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",e.\u0275\u0275pureFunction1(24,$s,e.\u0275\u0275pureFunction0(23,As))),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(8,12,"Letters for",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("items",g.lastOperationService.periods),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(14,15,g.datesPeriod.currentPeriod.description)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","today"!==g.datesPeriod.currentPeriod.period&&"yesterday"!==g.datesPeriod.currentPeriod.period),e.\u0275\u0275advance(3),e.\u0275\u0275property("initialIndex",g.initialTabIndex),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",g.MAIL_TABS),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(22,17,"Search",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(24,20,"New mail",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.selectedDocs.size),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.mails),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.checkShowMoreValue))},dependencies:[ic.Q,Hr.b,rc.b,Ea.r,nr.n,Ra.i,Qs.a,Xs.S,i.sg,i.O5,aa.l,Xt.r,yi.X$,Ss.R,i.i8],styles:['@charset "UTF-8";.mail__title[_ngcontent-%COMP%]{color:#fff;font-size:33px;font-weight:600;margin-bottom:25px}.mail__content[_ngcontent-%COMP%]{box-shadow:0 4px 15px #0807080d;border-radius:2px;background-color:#fff;padding:32px}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;display:flex;align-items:center;padding-bottom:35px;border-bottom:1px solid #dedede}.mail[_ngcontent-%COMP%]   .header__title.filters[_ngcontent-%COMP%]   .title-item[_ngcontent-%COMP%]{color:#fff}@media screen and (min-width: 720px) and (max-width: 835px){.mail[_ngcontent-%COMP%]   .header__title.filters[_ngcontent-%COMP%]{flex-direction:column}}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]   .title-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding-right:8px;color:#080708}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]   .title-item.clickable[_ngcontent-%COMP%]{cursor:pointer;color:#7180b9;text-decoration:underline}@media screen and (min-width: 720px) and (max-width: 980px){.mail[_ngcontent-%COMP%]   .header__title.product[_ngcontent-%COMP%]{flex-direction:column}}.mail__content[_ngcontent-%COMP%]{margin-top:20px}.mail__content[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]{flex-wrap:wrap}}.mail__content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]{display:flex;height:48px;margin:auto 0 auto auto}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]{margin-right:auto;width:100%}}.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{margin-right:20px}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{min-width:380px}}@media screen and (max-width: 667px){.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{min-width:250px}}.mail-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mail-content.empty[_ngcontent-%COMP%]{font-size:22px;line-height:28px;color:#88909b;min-height:472px;justify-content:center;align-items:center}.mail-content__item[_ngcontent-%COMP%]{min-height:128px;padding:20px;border-bottom:1px solid #dedede;display:flex;flex-wrap:wrap;justify-content:space-between;cursor:pointer}.mail-content__item[_ngcontent-%COMP%]:last-child{border:none}.mail-content__item-alert[_ngcontent-%COMP%]{flex-basis:100%;padding-left:50px;padding-top:10px}.mail-content__item__text[_ngcontent-%COMP%]{display:flex;flex:1}.mail-content__item__text[_ngcontent-%COMP%]   app-checkbox[_ngcontent-%COMP%]{margin-top:4px;margin-right:20px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text[_ngcontent-%COMP%]{max-width:800px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__mail-type[_ngcontent-%COMP%]{font-size:20px;margin-bottom:15px;display:flex}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__mail-type[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-left:12px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__caption[_ngcontent-%COMP%]{font-size:16px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__description[_ngcontent-%COMP%]{font-size:14px;color:#88909b}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__from[_ngcontent-%COMP%]{font-size:18px;color:#444;margin-bottom:5px}.mail-content__item__time[_ngcontent-%COMP%]{font-size:20px;font-weight:600;display:flex;align-self:center}.mail-content__item__time[_ngcontent-%COMP%]   app-menu-select[_ngcontent-%COMP%]{height:25px;display:flex;margin:auto auto auto 25px}.mail-content__item__time[_ngcontent-%COMP%]   app-menu-select[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{cursor:pointer}.mail-content__item__time-info[_ngcontent-%COMP%]{text-align:right;font-weight:400}.mail-content__item__time-info__caption-sign[_ngcontent-%COMP%]{font-size:16px;color:#444;margin-top:12px}.mail-content__item__time-info__caption-status[_ngcontent-%COMP%]{font-size:14px;color:#88909b}.mail-content__item__time-info__decline[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#d9291e;margin-top:10px;text-align:left}.mail-content__item.unread[_ngcontent-%COMP%]{font-weight:600}.mail-footer[_ngcontent-%COMP%]{height:50px;line-height:50px;background:#f1f2f2;display:flex;flex-direction:row;align-items:center;text-align:center;justify-content:center;color:#88909b;cursor:pointer}[_nghost-%COMP%]     .mail-search{width:100%}[_nghost-%COMP%]     .mail-attachment-icon{width:11px;height:22px;fill:#88909b}[_nghost-%COMP%]     .mail-actions{width:5px;height:20px;fill:#88909b}[_nghost-%COMP%]     .mail-actions-wrapper{margin:auto;width:20px;display:flex;justify-content:center}.docs-for-sign__select[_ngcontent-%COMP%]{background:linear-gradient(251.59deg,#1162a1 0,#0e83df 99.45%);display:flex;justify-content:space-between;height:71px;padding:10px 20px;align-items:center;margin-bottom:20px;color:#fff}']})}(0,Wi.gn)([(0,yi.SQ)()],bd.prototype,"lang",void 0);var pl=t(21562),Iu=t(5254),_p=t(21798);let tm=(()=>{class M{constructor(o,g){this.router=o,this.averageBalancesService=g}canActivate(o,g){return this.averageBalancesService.averageBalancesData$.pipe((0,uo.h)(V=>null!==V),(0,lo.U)(V=>V?.atLeastOneBlockAvailable),(0,Ji.b)(V=>{!1===V&&this.router.navigate(["/"])}))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(bi.F0),e.\u0275\u0275inject(_p.J))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();var qs=t(34122),ml=t(26871),gc=t(3751);let gp=(()=>{class M{constructor(o,g,V){this.apiService=o,this.util=g,this.translation=V}getAllList(o){return this.apiService.post("metall-invest/last_documents/doc_types/visual?number_of_entries=1000",o).pipe((0,lo.U)(g=>g&&g.lastDocument?this.util.getArray(g.lastDocument):[]))}getUnreadList(){return this.apiService.get("metall-invest/collection-order/list/unread").pipe((0,lo.U)(o=>o&&o.collectionOrderDocument?this.util.getArray(o.collectionOrderDocument):[]))}confirmDoc(o){return this.apiService.post(`metall-invest/collection-order/confirm/${o}`,{})}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(gc.s),e.\u0275\u0275inject(Ko.Pj),e.\u0275\u0275inject(yi.D7))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();var tu=t(95395),nu=t(20134),ls=t(15725),Jc=t(98504);function Zl(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275element(1,"app-loader"),e.\u0275\u0275elementEnd())}function vp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",13)(1,"div",14),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,"No documents found",o.lang))}}function qc(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.checkDoc(V))}),e.\u0275\u0275elementStart(1,"div",21)(2,"span",22),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",23)(5,"div",24)(6,"div",25)(7,"span",26),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"appCurrency"),e.\u0275\u0275pipe(10,"currencySymbol"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",27)(12,"span",28),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd()()()()()}if(2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.corrFullname),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(9,4,o.amount)," ",e.\u0275\u0275pipeBind1(10,6,o.currCode),""),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(o.metallStatus)}}function bp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",29)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o)}}function el(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,qc,14,8,"div",18),e.\u0275\u0275template(2,bp,3,1,"ng-template",null,19,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementContainerEnd()),2&M){const o=s.$implicit,g=e.\u0275\u0275reference(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.docDate)("ngIfElse",g)}}function iu(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.showMoreDocs())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"Show more",o.lang)," ")}}function tl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275template(1,el,4,2,"ng-container",16),e.\u0275\u0275template(2,iu,3,4,"div",17),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.someDocs),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.showMore)}}class hl{constructor(s,o,g,V,me){this.translation=s,this.router=o,this.modalService=g,this.toast=V,this.collectionOrderService=me,this.buttons=[{active:!0,text:"New",type:"New",disabled:!1,number:0},{active:!1,text:"All",type:"All",disabled:!1,number:1}],this.statusList=[{label:"All statuses",all:!0,chosen:!0,value:"send;card_index_2;cancel;end"},{label:"Performed",chosen:!0,value:"end"},{label:"Accepted for execution",chosen:!0,value:"send"},{label:"Placed in card file",chosen:!0,value:"card_index_2"},{label:"Recalled",chosen:!0,value:"cancel"}],this.pathData=[{capture:"Finance",href:"/desktop"},{capture:"Collection order"}],this.allListParams={docTypes:[{docModule:"ibankul",docType:"doc_collection_order"}]},this.loader=!0,this.showMore=!1,this.documents=[],this.filteredDocs=[],this.searchFiltered=[],this.statusFiltered=[],this.docsNumber=11,this.someDocs=[]}ngOnInit(){this.getDocs()}getDocs(){this.collectionOrderService.getUnreadList().subscribe(s=>{0!==s.length?(this.buttons[0].disabled=!1,this.currentTab=0,this.buttons[0].number=s.length,this.showAfterRequest(s)):(this.buttons[0].disabled=!0,this.buttons[0].active=!1,this.buttons[1].active=!0,this.goAll())},s=>{this.handleError(s)})}goAll(s){this.currentTab=1,this.collectionOrderService.getAllList(this.allListParams).pipe((0,Fi.w)(o=>(this.showAfterRequest(o),s?this.collectionOrderService.getUnreadList():(0,An.of)(null)))).subscribe(o=>{o&&(this.buttons[0].disabled=0===o.length,this.buttons[0].number=o.length)},o=>{this.handleError(o)})}showAfterRequest(s){this.documents=s,this.addMetallStatus(),this.documents.length>this.docsNumber&&(this.showMore=!0),this.filteredDocs=this.documents.slice(),this.searchFiltered=this.documents.slice(),this.statusFiltered=this.documents.slice(),this.someDocs=this.filteredDocs.slice(0,this.showMore?this.docsNumber:this.documents.length),this.groupByDate(this.someDocs),this.loader=!1}addMetallStatus(){for(let s=0;s<this.documents.length;s++)switch(this.documents[s].statusCaption||this.documents[s].status){case"\u043f\u0440\u0438\u043d\u044f\u0442 \u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e":this.documents[s].metallStatus="\u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e";break;case"\u043e\u0442\u043e\u0437\u0432\u0430\u043d":this.documents[s].metallStatus="\u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043e";break;case"\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d":this.documents[s].metallStatus="\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e";break;case"\u043d\u0430 \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u0435":this.documents[s].metallStatus="\u043f\u043e\u043c\u0435\u0449\u0435\u043d\u043e \u0432 \u043a\u0430\u0440\u0442\u043e\u0442\u0435\u043a\u0443"}}checkDoc(s){this.viewAndPrint(s),0===this.currentTab&&this.collectionOrderService.confirmDoc(s.id).subscribe(()=>{this.goAll(!0)},o=>{this.handleError(o)})}viewAndPrint(s){this.modalService.open(ml.O,{header:"Print document",styleMode:"forSign",inputs:{operation:{docIds:s.id,filename:s.corrFullname}}})}changeTab(s){this.currentTab=s.number,this.resetFilters(),this.showMore=!1,this.someDocs=[],this.loader=!0,this.loadList()}resetFilters(){this.searchValue="";for(let s=0;s<this.statusList.length;s++)this.statusList[s].chosen=!0}loadList(){switch(this.currentTab){case 0:this.collectionOrderService.getUnreadList().subscribe(s=>{this.buttons[0].disabled=0===s.length,this.buttons[0].number=s.length,this.showAfterRequest(s)},s=>{this.handleError(s)});break;case 1:this.collectionOrderService.getAllList(this.allListParams).subscribe(s=>{this.showAfterRequest(s)},s=>{this.handleError(s)})}}handleError(s){this.loader=!1,this.toast.show(s&&s.errorText?s.errorText:"Server error","error")}showMoreDocs(){this.ungroupByDate(this.someDocs),this.someDocs.length+this.docsNumber>this.filteredDocs.length?(this.showMore=!1,this.someDocs=this.filteredDocs.slice()):(this.showMore=!0,this.someDocs=this.filteredDocs.slice(0,this.someDocs.length+this.docsNumber)),this.groupByDate(this.someDocs)}groupByDate(s){s[0]&&s[0].docDate&&s.splice(0,0,s[0].docDate);for(let o=1;o<s.length-1;o++)s[o].docDate&&s[o].docDate!==s[o+1].docDate&&(s.splice(o+1,0,s[o+1].docDate),o++)}ungroupByDate(s){for(let o=0;o<s.length-1;o++)s[o].docDate||(s.splice(o,1),o--)}filterList(s){"string"==typeof s&&this.searchDocs(s)}searchDocs(s){this.searchFiltered=[],this.showMore=!1;for(let o=0;o<this.documents.length;o++)-1!==this.documents[o].corrFullname.toLowerCase().indexOf(s.toLowerCase())&&this.searchFiltered.push(this.documents[o]);this.filterCommon()}filterDocStatus(s){this.statusFiltered=[],this.showMore=!1;const o=s;if(o[0].chosen)this.statusFiltered=this.documents.slice();else{const g=[];for(let me=1;me<o.length;me++)o[me].chosen&&g.push(o[me].value);const V=this.currentTab?"systemStatus":"status";for(let me=0;me<this.documents.length;me++)for(let yt=0;yt<g.length;yt++)if(this.documents[me][V]===g[yt]){this.statusFiltered.push(this.documents[me]);break}}this.filterCommon()}filterCommon(){this.searchFiltered.length&&this.statusFiltered.length?(this.filteredDocs=Ja.oA(Ja.UI(this.searchFiltered,s=>this.match(this.statusFiltered,s))),this.filteredDocs.length>this.docsNumber&&(this.showMore=!0),this.someDocs=this.filteredDocs.slice(0,this.showMore?this.docsNumber:this.documents.length),this.groupByDate(this.someDocs)):this.someDocs=[]}match(s,o){const g=Ja.C2(o);return Ja.hX(s,g)[0]}static#e=this.\u0275fac=function(o){return new(o||hl)(e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(gp))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:hl,selectors:[["app-collection-order-list"]],decls:13,vars:12,consts:[[3,"pathData"],[1,"collection-order-list",3,"title"],[1,"inline"],[1,"period-filter"],["data-qa","1657886011189",3,"buttons","buttonClick"],[1,"filter-item","search-div"],["data-qa","1663167407498","inputClass","no-description first-filter","matIcon","search","typeClass","flex-input-filter",3,"value","placeholder","valueChange"],[1,"filter-item"],["cssClass","fixed-width","data-qa","1663167411451",3,"checkboxList","multiSelectChange"],["class","collection-order-list__loader",4,"ngIf"],["class","collection-order-list__empty",4,"ngIf"],["class","collection-order-list__items",4,"ngIf"],[1,"collection-order-list__loader"],[1,"collection-order-list__empty"],[1,"collection-order-list__empty-text"],[1,"collection-order-list__items"],[4,"ngFor","ngForOf"],["class","show-more","data-qa","1663167419170",3,"click",4,"ngIf"],["class","collection-order-list__item",3,"click",4,"ngIf","ngIfElse"],["dateBlock",""],[1,"collection-order-list__item",3,"click"],[1,"collection-order-list__item__left-block"],[1,"title"],[1,"collection-order-list__item__right-block"],[1,"sum-block"],[1,"sum-block__amount"],[1,"amount"],[1,"sum-block__status"],[1,"status"],[1,"collection-order-list__date-group"],["data-qa","1663167419170",1,"show-more",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1)(2,"div",2)(3,"div",3)(4,"app-filter-buttons",4),e.\u0275\u0275listener("buttonClick",function(me){return g.changeTab(me)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",5)(6,"app-input",6),e.\u0275\u0275listener("valueChange",function(me){return g.filterList(me)})("valueChange",function(me){return g.searchValue=me}),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",7)(9,"app-multi-select",8),e.\u0275\u0275listener("multiSelectChange",function(me){return g.filterDocStatus(me)}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(10,Zl,2,0,"div",9),e.\u0275\u0275template(11,vp,4,4,"div",10),e.\u0275\u0275template(12,tl,3,2,"div",11),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("title","Collection order"),e.\u0275\u0275advance(3),e.\u0275\u0275property("buttons",g.buttons),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(7,9,"Search",g.lang)),e.\u0275\u0275property("value",g.searchValue),e.\u0275\u0275advance(3),e.\u0275\u0275property("checkboxList",g.statusList),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.someDocs.length&&!g.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader))},dependencies:[tu.O,xa.R,Qs.a,nu.n,i.sg,i.O5,aa.l,ls.I,yi.X$,js.G,Jc.H],styles:['@charset "UTF-8";.collection-order-list__empty[_ngcontent-%COMP%]{display:flex}.collection-order-list__empty-text[_ngcontent-%COMP%]{color:#284681;font-size:1.7em;display:flex;justify-self:center;align-items:center;margin:auto;min-height:400px}.collection-order-list__loader[_ngcontent-%COMP%]{position:relative;min-height:400px}.collection-order-list__items[_ngcontent-%COMP%]   .show-more[_ngcontent-%COMP%]{height:50px;line-height:50px;background:#f1f2f2;display:flex;flex-direction:row;align-items:center;text-align:center;justify-content:center;color:#88909b;cursor:pointer}.collection-order-list__date-group[_ngcontent-%COMP%]{height:50px;line-height:50px;background:#f1f2f2;display:flex;flex-direction:row;align-items:center}.collection-order-list__date-group[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.1em;color:#88909b;margin-left:15px}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item[_ngcontent-%COMP%]{padding:20px 15px;display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #f1f2f2;cursor:pointer}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item[_ngcontent-%COMP%]:hover{background:#f1f2f2}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__type[_ngcontent-%COMP%]{overflow:hidden;width:50px;height:50px;border-radius:50%;background:#f1f2f2;font-size:1.4em;text-align:center;line-height:50px;color:#fff}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__left-block[_ngcontent-%COMP%]{padding-right:25px}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__left-block[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.3em}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__right-block[_ngcontent-%COMP%]{margin-left:auto;display:flex}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__right-block[_ngcontent-%COMP%]   .sum-block[_ngcontent-%COMP%]{text-align:right}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__right-block[_ngcontent-%COMP%]   .sum-block__amount[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]{font-size:1.3em;white-space:nowrap;color:#d9291e}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__right-block[_ngcontent-%COMP%]   .sum-block__status[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{padding-top:5px;color:#444;white-space:nowrap}.collection-order-list[_ngcontent-%COMP%]   .collection-order-list__item__right-block[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]:not(.shield-icon){cursor:pointer;width:24px;height:24px;fill:#88909b}.collection-order-list[_ngcontent-%COMP%]   .multi-select__menu-active[_ngcontent-%COMP%]{z-index:100000000}.tab[_ngcontent-%COMP%]{min-width:80px!important;margin-right:30px!important}.period-filter[_ngcontent-%COMP%]{height:83px;margin-right:16px;align-items:center;display:flex}.filter-item[_ngcontent-%COMP%]{position:relative}.filter-item.search-div[_ngcontent-%COMP%]{margin-right:20px;width:100%;min-width:200px}.filter-item.search-div[_ngcontent-%COMP%]   .panel-form__input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.filter-item[_ngcontent-%COMP%]:last-child{min-width:235px}.inline[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex;justify-content:center;align-items:center;margin-bottom:16px}']})}(0,Wi.gn)([(0,yi.SQ)()],hl.prototype,"lang",void 0);var Qr=t(6146),ks=t(39486),wu=t(18590);let Au=(()=>{class M{constructor(o,g,V,me,yt,Zt){this.operationService=o,this.productService=g,this.userDataService=V,this.documentService=me,this.router=yt,this.route=Zt,this.iframeSrc="cred-cab/login",this.name=(new Date).getMilliseconds()}ngOnInit(){this.route.params.subscribe(o=>{o["reference-type"]&&(this.iframeSrc=`cred-cab/login?redirect_to=enquiry.request&btn=js-view-modal-request-enquiry&selector=class&enquiry_type=${o["reference-type"]}`)}),this.route.snapshot.queryParamMap.get("monitoring")&&(this.iframeSrc="cred-cab/login?redirect_to=monitoring.index",this.router.navigate([])),this.productService.getProducts(!1).subscribe(o=>{this.products=o}),this.userDataService.getClientInfoOrganization(!1).subscribe(o=>{this.clientInfo=o}),this.initListener()}ngOnDestroy(){clearInterval(this.timer)}processData(o){clearInterval(this.timer);const g=JSON.parse(o);if(Array.isArray(g)&&"listCurrencyPaymentsForTransfer"===g[0].type)this.createTransferPayments(g);else{const V=Array.isArray(g)?g[0]:g;V.payment_account?this.createPayment(V):V.page&&this.navigate(V)}}toLowerCaseObject(o){const g={};for(const V in o)g[V.toLowerCase()]=o[V];return g}createTransferPayments(o){const g=[];o.forEach(V=>{Array.isArray(V.data)&&V.data.forEach(me=>g.push(this.toLowerCaseObject(me)))}),this.documentService.paymentsList$.next(g.map(V=>({docType:Qr.o.DocPlatporCurr,docModule:"ibankul_curr",docDate:V.doc_date,payAmount:V.amount,currCode:V.curr_code,payerAccount:V.acc_number,corrAccount:V.corr_acc_number,description:V.description}))),this.router.navigate(["/payments"])}createPayment(o){let g={};const V=this.products.find(yt=>yt.number===o.payment_account);if(V){const yt=V.bankingInformation;g={accId:V.id,accNumber:V.number,payerBik:yt.bic,payerBankName:yt.name,corrBankBik:yt.bic}}const me={corrType:"UL",docDate:Ri()(o.date_payment).format("YYYY-MM-DD"),amount:Math.abs(parseFloat(o.amount)).toString(),description:o.purpose_of_payment,ndsTypeId:"653",fullName:this.clientInfo.fullName,inn:this.clientInfo.INN,corrAccNumber:o.loan_account,corrInn:this.clientInfo.INN,corrName:this.clientInfo.shortName,corrFullname:this.clientInfo.fullName,corrKpp:this.clientInfo.KPP};this.documentService.paymentData$.next({...g,...me}),this.router.navigate(["/transfer-rur"])}navigate(o){let g;g=o.page&&"VED"===o.page.toUpperCase()?{queryParams:{tab:o.tab}}:{queryParams:{operationsTab:o.tab}},this.router.navigate(["/"+o.page],g)}initListener(){const o=document.getElementById("dataForPaymentOrderByCredApp");this.timer=setInterval(()=>{o.value.length>0&&this.processData(o.value)},1e3)}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(Gs.f),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(bi.gz))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-cred-cab"]],decls:3,vars:4,consts:[["data-qa","1657961982250","hidden","","id","dataForPaymentOrderByCredApp"],["data-qa","1657961985275","id","cred-cab",1,"container",3,"name","src"]],template:function(g,V){1&g&&(e.\u0275\u0275element(0,"input",0)(1,"iframe",1),e.\u0275\u0275pipe(2,"safelink")),2&g&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("name",V.name)("src",e.\u0275\u0275pipeBind1(2,2,V.iframeSrc),e.\u0275\u0275sanitizeResourceUrl))},dependencies:[wu.M],styles:["#cred-cab[_ngcontent-%COMP%]{width:100%;height:100vh;overflow:hidden;border:0}"]})}return M})();var Nc=t(61135),Cd=t(99921),ou=t(86962);let au=(()=>{class M{constructor(o,g,V,me,yt){this.route=o,this.lastOperationService=g,this.datePipe=V,this.productsService=me,this.forSignOperationService=yt,this.operationDetailsData$=new Nc.X(null),this.route.queryParams.subscribe(Zt=>{this.queryParams=Zt,this.getOperationDetailsData()})}getOperationDetailsData(){this.productsSub=this.productsService.productsFromServer$.subscribe(o=>{if(o)if(this.chosenAccount=o.accounts.find(g=>g.id===this.queryParams.accId),"For sign"===this.queryParams.tab){const g=this.lastOperationService.forSignOperations$.value;if(g){const V=g.find(me=>me.id===this.queryParams.id);this.operationDetailsData$.next(this.parseOperationDetailsData(V))}else this.forSignOperationService.requestForSignOperations("doc_platpor","ibankul").subscribe(V=>{if(V&&V[0]&&V[0].docs){const me=V[0].docs;this.lastOperationService.forSignOperations$.next(me);const yt=me.find(Zt=>Zt.id===this.queryParams.id);this.operationDetailsData$.next(this.parseOperationDetailsData(yt))}})}else{const g=this.lastOperationService.plannedOperationsInfo.find(V=>V.id===this.queryParams.id);g?this.operationDetailsData$.next(this.parseOperationDetailsData(g)):this.lastOperationService.requestOperationsByDocId({doc_ids:this.queryParams.docIds,docType:this.queryParams.docType,docModule:this.queryParams.docModule}).subscribe(V=>{const me=V.platporDocument;this.lastOperationService.plannedOperationsInfo=me,this.operationDetailsData$.next(this.parseOperationDetailsData(me))})}})}parseOperationDetailsData(o){return{declineInfo:o.declineInfo,accountId:this.queryParams.accId,docNumber:o.docNumber,docDate:this.datePipe.transform(o.docDate,"dd.MM.yyyy"),amount:o.amount,accountName:this.chosenAccount.alias?this.chosenAccount.alias:this.chosenAccount.info,accountNum:this.chosenAccount.number,currency:this.chosenAccount.currency,cross:{href:this.queryParams.pathBack,params:{operationsTab:this.queryParams.tab}},buttons:[{type:"print",color:"primary",data:{url:`print/pdf?doc_ids=${this.queryParams.id}`}}],...(0,Cd.c)(o)}}ngOnDestroy(){this.productsSub&&this.productsSub.unsubscribe()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(bi.gz),e.\u0275\u0275inject(Ka.o),e.\u0275\u0275inject(i.uU),e.\u0275\u0275inject(ks.su),e.\u0275\u0275inject(ou.l))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();var Ms=t(95447);function vc(M,s){1&M&&e.\u0275\u0275element(0,"app-document-info",4),2&M&&e.\u0275\u0275property("data",s.ngIf)}function ku(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}let Cp=(()=>{class M{constructor(o,g){this.documentOperationDetailsService=o,this.route=g}ngOnInit(){this.path$=this.route.queryParams.pipe((0,lo.U)(o=>[{capture:"Payments",href:o.pathBack,bold:!0,params:{operationsTab:o.tab}},{capture:"Rur payment"}]))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(au),e.\u0275\u0275directiveInject(bi.gz))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-document-operation-details"]],features:[e.\u0275\u0275ProvidersFeature([au,i.uU])],decls:7,vars:7,consts:[["data-qa","1657877401922",1,"planned-info-wrap"],["data-qa","1657877409445",3,"pathData"],["data-qa","1657877405712",3,"data",4,"ngIf","ngIfElse"],["loader",""],["data-qa","1657877405712",3,"data"]],template:function(g,V){if(1&g&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"app-path",1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275template(3,vc,1,1,"app-document-info",2),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275template(5,ku,1,0,"ng-template",null,3,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&g){const me=e.\u0275\u0275reference(6);e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",e.\u0275\u0275pipeBind1(2,3,V.path$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(4,5,V.documentOperationDetailsService.operationDetailsData$))("ngIfElse",me)}},dependencies:[i.O5,aa.l,xa.R,Ms.a,i.Ov],styles:[".planned-info-wrap[_ngcontent-%COMP%]{position:relative}"]})}return M})();t(66266);var bc=t(95698),Jl=t(81814);let xd=(()=>{class M{constructor(o,g,V,me,yt,Zt){this.documentService=o,this.activatedRoute=g,this.apiService=V,this.lastOperationsService=me,this.forSignOperationService=yt,this.tariffsService=Zt}sendForSignature(o){return this.apiService.post("request/process/ul_request_cancel",o)}getRecallOrderData(){return this.activatedRoute.queryParams.pipe((0,bc.q)(1),(0,Fi.w)(({docId:o,docType:g,cancel:V,docModule:me})=>{let yt;return this.lastOperationsService.operationDataForSign$.pipe((0,bc.q)(1),(0,Fi.w)(Zt=>"change_tariff_ul_req"===g||Zt&&Zt.operation.id===o?(0,An.of)(Zt):this.forSignOperationService.generateDataForSign(g,o,me)),(0,Fi.w)(Zt=>(yt=Zt,this.documentService.getDocumentEdit(o,g,me))),(0,Fi.w)(Zt=>(0,An.of)({...yt,document:Zt,cancel:"true"===V})))}),(0,lo.U)(o=>this.prepareRecallOrderData(o)))}prepareRecallOrderData({certificates:o,document:V,cancel:me}){let yt={docId:V.id,docNumber:V.docNumber,docModule:V.docModule,docType:V.docType,docDate:V.docDate,certificates:o,cancel:me};if("change_tariff_ul_req"===V.docType)yt.documentTitle=this.tariffsService.connectionInfo&&this.tariffsService.connectionInfo.documentTitle,yt.bottomInfoBlockOtherData=this.tariffsService.connectionInfo&&this.tariffsService.connectionInfo.bottomInfoBlockData,yt.successMessage=this.tariffsService.connectionInfo&&this.tariffsService.connectionInfo.successMessage,yt.causeText="\u041e\u0442\u0437\u044b\u0432 \u043f\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u0438\u0432\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430";else{const Zt=V.displayedFields?V.displayedFields.list:null;yt.amountAll=V.amountAll,yt.currency=V.currCodeIso,yt={...yt,...(0,Cd.c)(V,Zt)}}return yt}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(Ao.Z),e.\u0275\u0275inject(bi.gz),e.\u0275\u0275inject(gc.s),e.\u0275\u0275inject(Ka.o),e.\u0275\u0275inject(ou.l),e.\u0275\u0275inject(Jl.M))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();var yp=t(1244);function Il(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",13)(1,"div",14),e.\u0275\u0275element(2,"app-document-sign-with-wrapper",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",16)(4,"app-button-actions",17),e.\u0275\u0275listener("buttonClicked",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onButtonActionClick(V))}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("certificates",o.certificates)("docId",o.signData.docId)("docModule",o.signData.docModule)("docType",o.signData.docType)("successCustomMessage",o.data.successMessage),e.\u0275\u0275advance(2),e.\u0275\u0275property("buttons",o.buttonActions)}}function ql(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"date"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"currencySymbol"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,o.docName,o.lang)+" \u2116"+o.data.docNumber+" "+e.\u0275\u0275pipeBind2(3,4,"By",o.lang)+" "+e.\u0275\u0275pipeBind2(4,7,o.data.docDate,"dd.MM.yyyy")+" "+e.\u0275\u0275pipeBind2(5,10,"for the amount of",o.lang)+" "+o.data.amountAll+" "+e.\u0275\u0275pipeBind1(6,13,o.data.currency)," ")}}function Md(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"date"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,o.docName,o.lang)+" \u2116"+o.data.docNumber+" "+e.\u0275\u0275pipeBind2(3,4,"By",o.lang)+" "+e.\u0275\u0275pipeBind2(4,7,o.data.docDate,"dd.MM.yyyy")," ")}}function Gm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",21)(1,"div",22),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,ql,7,15,"div",23),e.\u0275\u0275template(5,Md,5,10,"div",23),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,3,"Recalled document",o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.data.amountAll),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.data.amountAll)}}function Qm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",18)(1,"app-bottom-info-block",19),e.\u0275\u0275template(2,Gm,6,6,"div",20),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("data",o.data)("otherData",o.data.bottomInfoBlockOtherData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.data.bottomInfoBlockOtherData)}}function ru(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Il,5,6,"div",3),e.\u0275\u0275template(2,Qm,3,3,"div",4),e.\u0275\u0275elementStart(3,"div",5)(4,"label",6)(5,"div",7),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"textarea",8,9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",10)(11,"app-button",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275reference(9),me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.sendClick(V,me.data.docId))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(12,"app-button",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.sent&&o.signData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",o.sent),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(7,7,"Recall cause",o.lang)),e.\u0275\u0275advance(4),e.\u0275\u0275styleProp("margin-top",o.datesError.value?"25px":"0"),e.\u0275\u0275advance(2),e.\u0275\u0275property("type","large pale")}}function su(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}class wl{constructor(s,o,g,V){this.recallOrderService=s,this.translationPipe=o,this.router=g,this.toast=V,this.currentDate=(new Date).toJSON().slice(0,10),this.datesError={errorText:null,alertTitle:"Error",value:!1},this.pathData=[{capture:"Rur payment",href:"/desktop"},{capture:"Recall instructions"}],this.buttonActions=[{type:"print",data:{docId:null,inPopup:!0}}],this.loader=!0,this.cancelTitle=this.translationPipe.transform("Recall of payment order",this.lang),this.by=this.translationPipe.transform("By",this.lang)}ngOnInit(){this.recallOrderService.getRecallOrderData().subscribe(s=>{this.getPathData(s.docType),this.data=s,this.loader=!1,this.docName=this.getDocName(s.docType),s.documentTitle&&(this.mainTitle=s.documentTitle,this.cancelTitle=s.documentTitle),this.mainTitle=this.translationPipe.transform("doc_platpor"===s.docType?"Order to withdraw a payment order":"Recall instructions",this.lang),s.cancel?(this.document=s,this.certificates=s.certificates,this.buttonActions=this.buttonActions.filter(o=>"edit"!==o.type),this.sendClick({value:s.description},s.docId)):s.causeText?this.sendClick({value:s.causeText},s.docId):this.setMainTitle()},s=>{console.error("getRecallOrderData ERROR:",s),this.loader=!1,this.toast.show(s.errorText,"error")})}sendClick(s,o){if(!s.value)return void(s.placeholder=this.translationPipe.transform("Fill the field",this.lang));this.pending=!0;const g={docDate:this.currentDate,cancelDocId:o,cause:s.value},V=this.getButtonAction("edit")?this.getButtonAction("edit").data.docId:void 0;V&&(g.id=V),this.document?(this.signData={docModule:this.document.docModule,docType:this.document.docType,docId:this.document.docId},this.sent=!0,this.setCancelTitle(),this.pending=!1,this.getButtonAction("print")&&(this.getButtonAction("print").data.docId=this.document.docId),this.getButtonAction("delete")&&(this.getButtonAction("delete").data.docId=this.document.docId)):this.recallOrderService.sendForSignature(g).subscribe(me=>{this.signData={docModule:me.docModule,docType:me.docType,docId:me.id},this.sent=!0,this.setCancelTitle(),this.pending=!1,this.getButtonAction("print")&&(this.getButtonAction("print").data.docId=me.id),this.getButtonAction("edit")&&(this.getButtonAction("edit").data.docId=me.id),this.getButtonAction("delete")&&(this.getButtonAction("delete").data.docId=me.id)},me=>{this.pending=!1,this.toast.show(me.errorText,"error")})}onButtonActionClick(s){"edit"===s&&(this.sent=!1,this.setMainTitle())}getButtonAction(s){return this.buttonActions.find(o=>o.type===s)}onClose(){this.pathData&&this.pathData[0]&&"/settings"===this.pathData[0].href&&this.pathData[1]&&this.pathData[1].capture.indexOf("Tariff")>-1?this.router.navigate(["/settings"],{queryParams:{operationsTab:"Tariffs"}}):this.router.navigate(["/desktop"])}setCancelTitle(){const s=Ri()(this.currentDate).format("DD.MM.YYYY");this.title=`${this.cancelTitle} \u2116${this.data.docNumber} ${this.by} ${s}`}setMainTitle(){this.title=this.mainTitle}getPathData(s){"change_tariff_ul_req"===s&&(this.pathData=[{capture:"Settings page title",href:"/settings",bold:!0},{capture:"Tariff cancel switching connection"}])}getDocName(s){switch(s){case"doc_platpor":return"Payment to counterparty";case"doc_platpor_conv":return"Conversion request";case"doc_currsell":return"Currency sell request";case"doc_currbuy":return"Currency buy request";case"doc_curr_agent_factoring":return"Factoring repayment request";default:return"Document"}}static#e=this.\u0275fac=function(o){return new(o||wl)(e.\u0275\u0275directiveInject(xd),e.\u0275\u0275directiveInject(yi.X$),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(jo.j))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:wl,selectors:[["app-document-recall-order"]],features:[e.\u0275\u0275ProvidersFeature([xd,yi.X$])],decls:4,vars:5,consts:[["data-qa","1657877261026",3,"pathData"],["data-qa","1657877265645",1,"recall-order",3,"title","withCloseButton","close"],[4,"ngIf"],["class","recall-order__middle","data-qa","1657877272093",4,"ngIf"],["class","recall-order__bottom-block","data-qa","1657877284861",4,"ngIf"],[1,"recall-order__controls",3,"hidden"],[1,"recall-order__cause"],[1,"recall-order__label"],["data-qa","1657877332509","maxlength","255","required","",1,"recall-order__textarea"],["cause",""],[1,"recall-order__buttons"],["data-qa","1657877306483","text","Send for signature","type","large",3,"click"],["data-qa","1657877310189","routerLink","/desktop","text","Cancel",3,"type"],["data-qa","1657877272093",1,"recall-order__middle"],[1,"recall-order__middle-left"],["data-qa","1657877278380",3,"certificates","docId","docModule","docType","successCustomMessage"],[1,"recall-order__middle-right"],["data-qa","1657877275555",3,"buttons","buttonClicked"],["data-qa","1657877284861",1,"recall-order__bottom-block"],["data-qa","1657877288404",3,"data","otherData"],["class","recall-order__purpose",4,"ngIf"],[1,"recall-order__purpose"],[1,"card__bottom-block-capture","card__capture"],["class","card__desc",4,"ngIf"],[1,"card__desc"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1),e.\u0275\u0275listener("close",function(){return g.onClose()}),e.\u0275\u0275template(2,ru,13,10,"ng-container",2),e.\u0275\u0275template(3,su,1,0,"app-loader",2),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("title",g.title)("withCloseButton",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.pending||g.loader))},dependencies:[i.O5,bi.rH,Xt.r,aa.l,ls.I,Xl.n,xa.R,El.v,yp.m,i.uU,yi.X$,js.G],styles:['@charset "UTF-8";.payment__container[_ngcontent-%COMP%]{padding:0 30px}.payment__card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 30px 40px}.document-info[_ngcontent-%COMP%]{margin-top:20px}.document-info__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.document-info__middle-block[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:25px;margin-bottom:30px}.document-info__middle-block-left[_ngcontent-%COMP%]{display:flex;align-items:center}.document-info__big-numbers[_ngcontent-%COMP%]{color:#444;font-size:64px;margin-right:20px}.document-info__account-desc[_ngcontent-%COMP%]{margin-bottom:4px}.document-info__account-name[_ngcontent-%COMP%]{max-width:210px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px}.document-info__capture[_ngcontent-%COMP%]{font-size:16px;color:#88909b}.document-info__value[_ngcontent-%COMP%]{color:#444;font-size:20px;display:flex}.document-info__bottom-block[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:25px}.document-info__purpose[_ngcontent-%COMP%]{padding-bottom:23px;display:flex}.document-info__purpose__logo[_ngcontent-%COMP%]{width:100px;margin-right:20px}.document-info__purpose-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.document-info__refuse-reason[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid #dedede;padding-top:17px}.document-info__bottom-block-capture[_ngcontent-%COMP%]{margin-bottom:8px}.document-info__bottom-block-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.document-info__info-block[_ngcontent-%COMP%]{margin-top:27px;display:flex}.document-info__payer[_ngcontent-%COMP%]{width:50%;padding-right:15px}.document-info__recipient[_ngcontent-%COMP%]{width:50%;padding-left:15px}.document-info__info-list[_ngcontent-%COMP%]{margin-top:25px}.document-info__info-item[_ngcontent-%COMP%]{display:flex;margin-bottom:14px}.document-info__info-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.document-info__info-capture[_ngcontent-%COMP%]{min-width:210px;padding-right:12px}.document-info__info-value[_ngcontent-%COMP%]{font-size:16px;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-sign[_ngcontent-%COMP%]{display:block;margin:30px 0}.document-info__sign-block[_ngcontent-%COMP%]{width:100%;padding-right:30px}.document-info__other-item[_ngcontent-%COMP%]{margin-bottom:20px}.document-info__other-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.document-info__additional-buttons[_ngcontent-%COMP%]{display:flex;gap:15px;margin-top:15px}.document-info__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#003ad2;align-items:center}.document-info__other[_ngcontent-%COMP%]{margin-top:20px}.recall-order[_ngcontent-%COMP%]{display:block;position:relative}.recall-order__middle[_ngcontent-%COMP%]{justify-content:space-between;margin:40px 0 10px;display:flex}.recall-order__middle-left[_ngcontent-%COMP%]{width:628px}.recall-order__middle-right[_ngcontent-%COMP%]{margin-left:15px}.recall-order__bottom-block[_ngcontent-%COMP%]{margin-top:30px}.recall-order__purpose[_ngcontent-%COMP%]{margin-bottom:20px}.recall-order__cause[_ngcontent-%COMP%]{display:block;margin:31px 0;position:relative}.recall-order__label[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:12px;left:13px;font-size:12px;color:#88909b}.recall-order__textarea[_ngcontent-%COMP%]{width:760px;height:100px;padding:28px 11px 11px;outline:none;border-radius:5px;border:2px solid #2f54eb;font-size:16px;color:#444}.recall-order__textarea[_ngcontent-%COMP%]::placeholder{color:#2f54eb}.recall-order__buttons[_ngcontent-%COMP%]{display:flex}.recall-order__buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:25px}.recall-order__buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:last-child{margin-right:0}']})}(0,Wi.gn)([(0,yi.SQ)()],wl.prototype,"lang",void 0);var Dd=t(94037),ed=t(88581),Al=t(19683);function nm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"appCurrency"),e.\u0275\u0275pipe(3,"currencySymbol"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate3(" ","-","",e.\u0275\u0275pipeBind1(2,3,o.data.amount.value)," ",e.\u0275\u0275pipeBind1(3,5,o.data.amount.currCode)," ")}}function td(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-document-sign-with-wrapper",16),e.\u0275\u0275listener("result",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onResult(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("certificates",o.data.certificates)("docIds",o.data.docIds)("docModule",o.data.docModule)("docType",o.data.docType)("documentsForSign",o.documentsForSign)("isCreatedMessage",!1)("action",o.action)("summaryDocumentId",o.summaryDocumentId)}}function nd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275element(1,"app-button-actions",18),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("buttons",o.data.buttons)}}function Lu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",21),e.\u0275\u0275element(1,"app-bottom-info-block",22),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275attribute("data-qa","1657876698006"+g),e.\u0275\u0275advance(1),e.\u0275\u0275property("data",o)("isHide",!0),e.\u0275\u0275attribute("data-qa","1657876711295"+g)}}function Pd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",19),e.\u0275\u0275template(1,Lu,2,4,"div",20),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==o.data?null:o.data.infoData)}}function xp(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",23)(1,"app-button",24),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.openCommissionPayment())}),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("type","small-bordered white")("text",e.\u0275\u0275pipeBind2(2,2,"Send payment to pay commission",o.lang))}}function cu(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",6)(1,"app-page-title",7),e.\u0275\u0275listener("closeEvent",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",8)(3,"div",9),e.\u0275\u0275template(4,nm,4,7,"div",10),e.\u0275\u0275template(5,td,1,8,"app-document-sign-with-wrapper",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,nd,2,1,"div",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,Pd,2,1,"div",13),e.\u0275\u0275template(8,xp,3,5,"div",14),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("closeButton",!0)("title","Package sign"),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null==o.data||null==o.data.amount?null:o.data.amount.currCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==o.data?null:o.data.buttons),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.docCommId)}}function Cc(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",25),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,o.errorText,o.lang))}}function Mp(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}class kl{constructor(s,o,g,V,me,yt,Zt,Pn,Fn){this.router=s,this.packageSignPageService=o,this.documentSignService=g,this.signService=V,this.route=me,this.configUtilService=yt,this.documentService=Zt,this.lastOperationsService=Pn,this.userDataService=Fn,this.complexTypes=[Qr.o.DocPlatporCurrComplex,Qr.o.DocPlatporCurrBp],this.destroy$=new co.x,this.pathData=[{capture:"Payments",href:"/desktop",bold:!0},{capture:"Sign operation"}],this.isLoading=!1,this.documentsForSign=[]}ngOnInit(){this.queryParams=this.route.snapshot.queryParams,this.signParamsFromStorage=this.getParamsFromStorage(),this.isLoading=!0,this.action=this.queryParams.action,this.summaryDocumentId=this.queryParams.incomingIdentificationId;const s=this.signParamsFromStorage?.pathData||this.signService.getPathData();s&&(this.pathData[0].capture=s.capture||this.pathData[0].capture,this.pathData[0].href=s.href||this.pathData[0].href,this.pathData[0].params=s.params||this.pathData[0].params),this.packageSignPageService.getData().pipe((0,zn.R)(this.destroy$)).subscribe({next:o=>{this.documentsForSign=o.docs,this.data=o,this.isLoading=!1},error:o=>{this.errorText=o?.message,this.isLoading=!1}})}getParamsFromStorage(){const s=this.lastOperationsService.getSessionStorage(this.userDataService.STORAGE_NAME_PARAMS_FOR_SIGN);return s?JSON.parse(s):void 0}onResult(s){const o=this.configUtilService.getArray(s).find(g=>this.complexTypes.includes(g.document.docType));"2"===o?.signStatus?.toString()&&o.document?.docCommId&&(this.docCommId=o?.document?.docCommId)}openCommissionPayment(){this.docCommId&&(this.isLoading=!0,this.documentService.getDocumentEdit(this.docCommId).subscribe(s=>{this.documentService.paymentData$.next(s),this.router.navigate(["/transfer-rur"],{queryParams:{prefill:!1}})}))}onClose(){if(this.signParamsFromStorage){const o=this.signParamsFromStorage.pathData;return void this.router.navigate([o.href],{queryParams:o.params})}const s={docType:this.data?.docType||this.queryParams?.docType};s.docType?("identify_receipt"===this.queryParams?.action&&(s.cross={href:"ved",params:{tab:"receipts"}}),this.documentSignService.goBackNavigation(s)):this.router.navigate([this.pathData[0].href],{queryParams:this.pathData[0].params})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.lastOperationsService.removeSessionStorageArray([this.userDataService.STORAGE_NAME_PARAMS_FOR_SIGN])}static#e=this.\u0275fac=function(o){return new(o||kl)(e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Dd.r),e.\u0275\u0275directiveInject(ed.V),e.\u0275\u0275directiveInject(ed.V),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(Da.M))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:kl,selectors:[["app-package-sign-page"]],features:[e.\u0275\u0275ProvidersFeature([Dd.r])],decls:6,vars:5,consts:[["data-qa","1657876653809",3,"pathData"],["data-qa","1657876658366",3,"withTitle"],[1,"package-sign-page"],["class","package-sign-page__content",4,"ngIf"],["class","package-sign-page__error",4,"ngIf"],[4,"ngIf"],[1,"package-sign-page__content"],["data-qa","1657876664516",3,"closeButton","title","closeEvent"],[1,"package-sign-page__middle-block"],[1,"package-sign-page__middle-block-left"],["class","package-sign-page__amount",4,"ngIf"],["class","document-sign","data-qa","1657876675188",3,"certificates","docIds","docModule","docType","documentsForSign","isCreatedMessage","action","summaryDocumentId","result",4,"ngIf"],["class","document-info__middle-block-right",4,"ngIf"],["class","package-sign-page__info-list",4,"ngIf"],["class","package-sign-page__button",4,"ngIf"],[1,"package-sign-page__amount"],["data-qa","1657876675188",1,"document-sign",3,"certificates","docIds","docModule","docType","documentsForSign","isCreatedMessage","action","summaryDocumentId","result"],[1,"document-info__middle-block-right"],["data-qa","1657876680260",3,"buttons"],[1,"package-sign-page__info-list"],["class","package-sign-page__info",4,"ngFor","ngForOf"],[1,"package-sign-page__info"],[3,"data","isHide"],[1,"package-sign-page__button"],[3,"type","text","click"],[1,"package-sign-page__error"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1)(2,"div",2),e.\u0275\u0275template(3,cu,9,7,"div",3),e.\u0275\u0275template(4,Cc,3,4,"div",4),e.\u0275\u0275template(5,Mp,1,0,"app-loader",5),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("withTitle",!1),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!g.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isLoading&&g.errorText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isLoading))},dependencies:[i.sg,i.O5,Xt.r,aa.l,ls.I,Al.T,Xl.n,xa.R,El.v,yp.m,yi.X$,js.G,Jc.H],styles:['@charset "UTF-8";.package-sign-page[_ngcontent-%COMP%]{position:relative;min-height:400px}.package-sign-page__middle-block[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:25px;margin-bottom:30px}.package-sign-page__amount[_ngcontent-%COMP%]{color:#444;font-size:64px}.package-sign-page__info[_ngcontent-%COMP%]{margin-bottom:30px}.package-sign-page__info[_ngcontent-%COMP%]:last-child{margin-bottom:0}.package-sign-page__button[_ngcontent-%COMP%]{margin-top:1rem;max-width:30rem}.package-sign-page__error[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.document-sign[_ngcontent-%COMP%]{max-width:570px;display:block;margin:30px 0}']})}(0,Wi.gn)([(0,yi.SQ)()],kl.prototype,"lang",void 0);var im=t(82007),om=t(831),Xm=t(59363),lu=t(94907),nl=t(71060);let id=(()=>{class M{constructor(o,g,V,me,yt,Zt,Pn,Fn){this.lastOperationsService=o,this.forSignOperationService=g,this.activatedRoute=V,this.productsService=me,this.documentSignService=yt,this.tariffsService=Zt,this.injector=Pn,this.configUtilService=Fn}getSignPageData(){return this.activatedRoute.queryParams.pipe((0,bc.q)(1),(0,Fi.w)(({docId:o,docType:g,accNumber:V,docModule:me,accId:yt,crossHref:Zt,operationsTab:Pn,corrType:Fn})=>{let Di;return this.lastOperationsService.operationDataForSign$.pipe((0,bc.q)(1),(0,Fi.w)(Ti=>Ti?(0,An.of)(Ti):Xm.Dk.includes(g)||lu.gt.includes(g)?this.documentSignService.getDataForSign(g,o,me):this.forSignOperationService.generateDataForSign(g,o,me)),(0,Fi.w)(Ti=>(Di=Ti,Di.operation||(Di.operation={}),(!Di.operation.docType||!Di.operation.docModule)&&(Di.operation.docType=g,Di.operation.docModule=me),yt?this.getProductByAccId(yt):V?this.getProductByAccNumber(V):(0,An.of)(null))),(0,Fi.w)(Ti=>(0,An.of)({...Di,product:Ti,crossHref:Zt,operationsTab:Pn,corrType:Fn})),(0,Fi.w)(Ti=>{if("request_receive_cash"===Ti.operation.docType){const vo=this.injector.get(nl.s);return(0,Jo.D)([vo.getPlaces(),vo.getRecipients(),vo.getCashOrderParams()]).pipe((0,Fi.w)(([Uo,bo,wo])=>{const ba=[].concat(...Object.values(Uo)).find(qr=>qr.branchId===Ti.operation.branchCode),or=bo.find(qr=>qr.id===parseFloat(Ti.operation.receiverEmployeeId).toString()),fs=this.configUtilService.getArray(wo?.cashSource).map(qr=>({value:qr.code,caption:qr.caption}));return(0,An.of)({...Ti,cashOrderInfo:{place:ba,recipient:or,cashSources:fs}})}),(0,bc.q)(1))}return(0,An.of)(Ti)}))}),(0,lo.U)(o=>this.prepareSignPageData(o)))}getProductByAccNumber(o){return this.productsService.getProducts().pipe((0,lo.U)(g=>g.find(V=>V.number===o)))}getProductByAccId(o){return this.productsService.getProducts().pipe((0,lo.U)(g=>g.find(V=>V.id===o)))}prepareSignPageData({certificates:o,operation:g,product:V,crossHref:me,operationsTab:yt,corrType:Zt,cashOrderInfo:Pn}){let Fn={buttons:[{type:"print",data:{url:`print/pdf?doc_ids=${g.id}`}}],cross:!me||{href:me,params:yt?{operationsTab:yt}:""}};switch(g.docType){case"request_receive_cash":Fn.bottomBlockInfo=(0,Cd.S)(g,Pn),Fn.amount=g.totalAmount,Fn.currency="RUR",Fn.docDate=g.docDate,Fn.docNumber=g.docNumber,Fn.signStatus=g.signStatus,Fn.documentStatus=g.status;break;case"change_tariff_ul_req":Fn.documentTitle=this.tariffsService.connectionInfo&&this.tariffsService.connectionInfo.documentTitle,Fn.successTitle=this.tariffsService.connectionInfo&&this.tariffsService.connectionInfo.successTitle,Fn.successMessage=this.tariffsService.connectionInfo&&this.tariffsService.connectionInfo.successMessage,Fn.bottomInfoBlockOtherData=this.tariffsService.connectionInfo&&this.tariffsService.connectionInfo.bottomInfoBlockData;break;case"doc_sbp_transferbyqrcode_ul":Fn.successMessage=" ",Fn.successTitle="decline"===g.status?"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0435\u0443\u0441\u043f\u0435\u0448\u043d\u0430":"end"===g.status?"\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u0431\u0430\u043d\u043a !",Fn.accountName=V?V.alias||V.info:"",Fn.accountNum=V&&V.number,Fn.amount=g.amount,Fn.currency=g.accCurrIso||g.currCode,Fn.docDate=g.docDate,Fn.docNumber=g.docNumber,Fn.signStatus=g.signStatus,Fn.status=g.status,Fn.additionalButtonRedirectUrl=g.sbpRedirectUrl,Fn.additionalButtonRedirectText="Back to shop",Fn.hideIcon="decline"===g.status||"end"===g.status,Fn.resultSignTitleColor="decline"===g.status?"#dd1c1a":"end"===g.status?"#00a843":void 0,Fn={...Fn,...(0,Cd.c)(g)},"decline"===g.status&&Fn.leftRows.push({capture:"SBP Status",value:"\u041e\u0442\u043a\u0430\u0437\u0430\u043d"}),"end"===g.status&&Fn.leftRows.push({capture:"SBP Status",value:"\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d"});break;default:Fn.successMessage=" ",Fn.successTitle="\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u0431\u0430\u043d\u043a !",Fn.accountName=V?V.alias||V.info:"",Fn.accountNum=V&&V.number,Fn.amount=g.amount,Fn.currency=g.accCurrIso||g.currCode,Fn.docDate=g.docDate,Fn.docNumber=g.docNumber,Fn={...Fn,...(0,Cd.c)(g)}}return"doc_platpor"===g.docType&&"SELF"===g.corrType&&(Fn.documentTitle="Self transfer"),{data:Fn,signParams:{docId:g.id,docModule:g.docModule,docType:g.docType,corrType:Zt,certificates:o}}}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(Ka.o),e.\u0275\u0275inject(ou.l),e.\u0275\u0275inject(bi.gz),e.\u0275\u0275inject(ks.su),e.\u0275\u0275inject(ed.V),e.\u0275\u0275inject(Jl.M),e.\u0275\u0275inject(e.Injector),e.\u0275\u0275inject(Ko.Pj))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();var Ll=t(15963);function Rl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.data.docNumber)}}function Fl(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"date"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,2,"By",o.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(5,5,o.data.docDate,"dd.MM.yyyy"))}}function ec(M,s){if(1&M&&e.\u0275\u0275element(0,"div",17),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("queryParams",o.paramsFromDataCross(o.data.cross))("routerLink",o.routerLinkFromDataCross(o.data.cross))}}function go(M,s){1&M&&e.\u0275\u0275element(0,"div",18)}function du(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,ec,1,2,"div",15),e.\u0275\u0275template(2,go,1,0,"ng-template",null,16,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275reference(3),g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.routerLinkFromDataCross(g.data.cross))("ngIfElse",o)}}function Ed(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",19),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"appCurrency"),e.\u0275\u0275pipe(3,"currencySymbol"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind3(2,2,o.data.amount,2,",")," ",e.\u0275\u0275pipeBind1(3,6,o.data.currency)," ")}}function od(M,s){if(1&M&&e.\u0275\u0275element(0,"app-document-sign-with-wrapper",20),2&M){e.\u0275\u0275nextContext();const o=e.\u0275\u0275reference(17),g=e.\u0275\u0275reference(15),V=e.\u0275\u0275nextContext();e.\u0275\u0275property("certificates",V.signParams.certificates)("docId",V.signParams.docId)("docModule",V.signParams.docModule)("docType",V.signParams.docType)("partSignTemplate",o)("successCustomMessage",V.data.successMessage)("successCustomTitle",V.data.successTitle)("successTemplate",g)("useMetibComponents",!0)}}function am(M,s){1&M&&e.\u0275\u0275elementContainer(0)}function Od(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,am,1,0,"ng-container",21),e.\u0275\u0275elementStart(2,"div",22)(3,"app-button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.acceptPartSign())}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&M){e.\u0275\u0275nextContext();const o=e.\u0275\u0275reference(17);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",o)}}function uu(M,s){1&M&&e.\u0275\u0275elementContainer(0)}function Ls(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,uu,1,0,"ng-container",21),e.\u0275\u0275elementContainerEnd()),2&M){e.\u0275\u0275nextContext();const o=e.\u0275\u0275reference(15);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",o)}}function rm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div")(1,"div",24),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",25),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementStart(7,"a",26),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Sent to the Bank",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,6,"Cash order sent description",o.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,9,"Power of attorney to receive money",o.lang))}}function Dp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div")(1,"div",27),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",25),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Partially signed",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,5,"Partially signed description",o.lang)," ")}}function jc(M,s){if(1&M&&e.\u0275\u0275element(0,"app-metib-info-block",28),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("data",o.data.bottomBlockInfo)}}function sm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"div",4),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275template(5,Rl,2,1,"span",5),e.\u0275\u0275template(6,Fl,6,8,"ng-container",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,du,4,2,"div",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",7)(9,"div",8),e.\u0275\u0275template(10,Ed,4,8,"div",9),e.\u0275\u0275template(11,od,1,9,"app-document-sign-with-wrapper",10),e.\u0275\u0275template(12,Od,4,1,"ng-container",5),e.\u0275\u0275template(13,Ls,2,1,"ng-container",5),e.\u0275\u0275template(14,rm,10,12,"ng-template",null,11,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(16,Dp,7,8,"ng-template",null,12,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(18,jc,1,1,"app-metib-info-block",13),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,9,o.documentTitle,o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.data.docNumber&&!o.data.documentTitle),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data.docDate&&!o.data.documentTitle),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data.cross),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.data.amount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.signParams&&"2"!==o.data.signStatus&&!("1"===o.data.signStatus&&!o.partSignAccepted)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","1"===o.data.signStatus&&!o.partSignAccepted),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","2"===o.data.signStatus||"send"===o.data.documentStatus),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",o.data.bottomBlockInfo)}}class Sd{constructor(){this.partSignAccepted=!1}get documentTitle(){return this.data.documentTitle?this.data.documentTitle:"request_receive_cash"===(this.signParams&&this.signParams.docType)?"Cash request title":""}acceptPartSign(){this.partSignAccepted=!0}routerLinkFromDataCross(s){return s&&"object"==typeof s&&"href"in s?s.href:void 0}paramsFromDataCross(s){return s&&"object"==typeof s&&"params"in s?s.params:void 0}static#e=this.\u0275fac=function(o){return new(o||Sd)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Sd,selectors:[["app-metib-document-info"]],inputs:{data:"data",signParams:"signParams"},decls:2,vars:1,consts:[["data-qa","1657876729830",1,"metib-document-info"],["class","metib-document-info-wrap","data-qa","1657876735434",4,"ngIf"],["data-qa","1657876735434",1,"metib-document-info-wrap"],[1,"metib-document-info__top-block"],[1,"metib-document-info__title"],[4,"ngIf"],["class","metib-document-info__cross-wrap",4,"ngIf"],[1,"metib-document-info__middle-block"],[1,"metib-document-info__sign-block"],["class","metib-document-info__big-numbers",4,"ngIf"],["class","document-sign","data-qa","1657876765368","documentSignMaxWidth","570px",3,"certificates","docId","docModule","docType","partSignTemplate","successCustomMessage","successCustomTitle","successTemplate","useMetibComponents",4,"ngIf"],["success",""],["partSign",""],["data-qa","1657876793182",3,"data",4,"ngIf"],[1,"metib-document-info__cross-wrap"],["class","cross","data-qa","1657876753495",3,"queryParams","routerLink",4,"ngIf","ngIfElse"],["emptyCross",""],["data-qa","1657876753495",1,"cross",3,"queryParams","routerLink"],["routerLink","../",1,"cross"],[1,"metib-document-info__big-numbers"],["data-qa","1657876765368","documentSignMaxWidth","570px",1,"document-sign",3,"certificates","docId","docModule","docType","partSignTemplate","successCustomMessage","successCustomTitle","successTemplate","useMetibComponents"],[4,"ngTemplateOutlet"],[1,"metib-document-info__accept-sign"],["data-qa","1657876774190","text","Sign","type","small",3,"click"],[1,"metib-document-info__sent-block-head","success"],[1,"metib-document-info__sent-block-description"],["data-qa","1657876780853","href","/uploads/typical-forms/doverennost_dlya_oper_zala.doc"],[1,"metib-document-info__sent-block-head"],["data-qa","1657876793182",3,"data"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,sm,19,12,"div",1),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data))},dependencies:[i.O5,i.tP,bi.rH,Xt.r,El.v,Ll.t,i.uU,yi.X$,js.G,Jc.H],styles:['@charset "UTF-8";.metib-document-info[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;position:relative;padding:30px 35px;background-color:#fff;margin-top:25px;box-shadow:0 0 40px #00000021;border-radius:2px}.metib-document-info__top-block[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid #dedede;padding-bottom:30px}.metib-document-info__title[_ngcontent-%COMP%]{font-weight:700;font-size:24px;line-height:33px;flex:1;color:#080708}.metib-document-info__title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:nowrap}.metib-document-info__cross-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.metib-document-info__middle-block[_ngcontent-%COMP%]{padding:40px 15px 10px;display:flex}.metib-document-info__big-numbers[_ngcontent-%COMP%]{font-size:44px;line-height:60px;color:#000;margin-bottom:40px}.metib-document-info__sent-block-head[_ngcontent-%COMP%]{font-size:28px;line-height:38px;font-weight:600;color:#88909b;margin-bottom:20px}.metib-document-info__sent-block-head.success[_ngcontent-%COMP%]{background:linear-gradient(270deg,#003ad2 0%,#0097ec 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.metib-document-info__sent-block-description[_ngcontent-%COMP%]{font-size:18px;color:#000;line-height:25px;word-break:initial}.metib-document-info__sent-block-description[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#003ad2;word-break:break-word}.metib-document-info__accept-sign[_ngcontent-%COMP%]{width:200px;margin-top:30px}.metib-document-info[_ngcontent-%COMP%]     .document-sign__message{font-size:16px;line-height:22px;color:#000;margin:0 0 32px}.metib-document-info[_ngcontent-%COMP%]     .panel-form__button.small{line-height:22px;font-size:16px;padding:13px;min-width:200px;background:#003ad2}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .dynamic-form-field{margin:0 0 40px}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form app-metib-input[ng-reflect-name=inputCode]{width:300px;margin-bottom:20px}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .dynamic-input__input{padding:16px 0 10px;font-size:24px;line-height:33px;letter-spacing:6px}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .dynamic-input__input::placeholder{font-size:16px;line-height:20px;letter-spacing:initial}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .ng-touched.ng-invalid .dynamic-input .dynamic-input__input:not(:focus){border-color:#ff2727!important;box-shadow:inset 0 -1px #ff2727!important;color:#ff2727}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .ng-touched.ng-invalid .dynamic-input .dynamic-input__input:not(:focus)::placeholder{color:#ff2727;opacity:1}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .ng-touched.ng-invalid .dynamic-input--active{border-color:#ff2727!important}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .ng-touched.ng-invalid .dynamic-input .append-icon{border-color:#ff2727;box-shadow:inset 0 -1px #ff2727}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .ng-touched.ng-invalid .dynamic-input__hint{color:#ff2727}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form .ng-touched.ng-invalid .dynamic-input__title{color:#ff2727}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form app-dynamic-form-select .selection-options{margin-top:5px;filter:drop-shadow(0 0 40px rgba(0,0,0,.129))}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form app-dynamic-form-select .selection-options__item{padding:15px 20px;font-size:14px;line-height:19px}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form app-dynamic-form-select .dynamic-select__fake{border-left:none;border-top:none;border-right:none;border-radius:0;box-shadow:none!important;border-color:#000!important;padding-left:0}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form app-dynamic-form-select .dynamic-select__icon>*{display:none}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form app-dynamic-form-select .select-icon-position{transform:initial}.metib-document-info[_ngcontent-%COMP%]     .dynamic-form app-dynamic-form-input .dynamic-input__input{border-left:none;border-top:none;border-right:none;border-radius:0;box-shadow:none!important;border-color:#000!important;padding:30px 12px 12px 0}.metib-document-info[_ngcontent-%COMP%]     .document-sign__error{margin-bottom:30px;padding:0;height:20px;font-size:16px;line-height:20px;color:#ff2727}.metib-document-info[_ngcontent-%COMP%]     .document-sign__error:empty{margin-bottom:0}']})}function cm(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-document-info",7),e.\u0275\u0275listener("fullDocSignEvent",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.updateDocInfo())}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("data",o.signPageData.data)("signParams",o.signPageData.signParams)("isNavigationAfterDone",o.isNavigateAfterDone)("showAdditionalButtons",o.showAdditionalButtons)}}function lm(M,s){if(1&M&&e.\u0275\u0275element(0,"app-metib-document-info",8),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("data",o.signPageData.data)("signParams",o.signPageData.signParams)}}function Zm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",4),e.\u0275\u0275template(1,cm,1,4,"app-document-info",5),e.\u0275\u0275template(2,lm,1,2,"app-metib-document-info",6),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","request_receive_cash"!==o.docType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","request_receive_cash"===o.docType)}}function Rs(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}function ds(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}(0,Wi.gn)([(0,yi.SQ)()],Sd.prototype,"lang",void 0);let Ru=(()=>{class M extends im.H{constructor(o,g,V){super(),this.signPageService=o,this.activatedRoute=g,this.documentService=V,this.pathData=[{capture:"Payments",href:"/desktop",bold:!0},{capture:"Sign operation"}],this.inProgress=!1}get docType(){return this.signPageData&&this.signPageData.signParams?this.signPageData.signParams.docType:""}get isNavigateAfterDone(){return"doc_sbp_transferbyqrcode_ul"!==this.docType}get showAdditionalButtons(){return"doc_sbp_transferbyqrcode_ul"===this.docType&&2==this.signPageData.data.signStatus}ngOnInit(){const o=this.activatedRoute.snapshot.queryParams?.backUrl;o&&"one-window"===o&&(this.pathData=[{capture:"Payments",href:"/ved",bold:!0,params:{tab:om.e5.ONE_WINDOW}},{capture:"Sign operation"}]),this.enableLoader(!0),this.signPageService.getSignPageData().pipe((0,zn.R)(this.$unsubscribe)).subscribe({next:g=>{this.signPageData=g,this.getPathData(this.signPageData.signParams.docType),this.enableLoader(!1)},error:g=>{console.error("getSignPageData ERROR:",g),this.enableLoader(!1)}})}getPathData(o){"change_tariff_ul_req"===o?this.pathData=[{capture:"Settings page title",href:"/settings",bold:!0},{capture:"Tariff switching"}]:"request_receive_cash"===o&&(this.signPageData.data.documentTitle="",this.pathData=[{capture:"Get Cash",href:"/zakaz_nalichnyh",bold:!0}])}updateDocInfo(){"doc_sbp_transferbyqrcode_ul"===this.docType&&(this.inProgress=!0,(0,Gi.H)(2e3).pipe((0,Fi.w)(()=>this.documentService.getDocumentById(this.signPageData.signParams.docModule,this.docType,this.signPageData.signParams.docId))).subscribe(o=>{switch(this.signPageData.data.signStatus=o.sbpTransferByQrCodeDocument.signStatus,this.signPageData.data.additionalButtonRedirectUrl=o.sbpTransferByQrCodeDocument.sbpRedirectUrl,this.signPageData.data.additionalButtonRedirectText="Back to shop",o.sbpTransferByQrCodeDocument.status){case"decline":this.signPageData.data.successTitle="\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0435\u0443\u0441\u043f\u0435\u0448\u043d\u0430",this.signPageData.data.hideIcon=!0,this.signPageData.data.resultSignTitleColor="#dd1c1a",this.signPageData.data.leftRows.push({capture:"SBP Status",value:"\u041e\u0442\u043a\u0430\u0437\u0430\u043d"});break;case"end":this.signPageData.data.successTitle="\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d",this.signPageData.data.hideIcon=!0,this.signPageData.data.resultSignTitleColor="#00a843",this.signPageData.data.leftRows.push({capture:"SBP Status",value:"\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d"})}this.inProgress=!1}))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(id),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(Ao.Z))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-sign-page"]],features:[e.\u0275\u0275ProvidersFeature([id]),e.\u0275\u0275InheritDefinitionFeature],decls:5,vars:8,consts:[["data-qa","1657876561280",3,"pathData"],["data-qa","1657876639973",1,"sign-page"],["class","sign-page__content",4,"ngIf"],[4,"ngIf"],[1,"sign-page__content"],["data-qa","1657876569033",3,"data","signParams","isNavigationAfterDone","showAdditionalButtons","fullDocSignEvent",4,"ngIf"],["data-qa","1657876575329",3,"data","signParams",4,"ngIf"],["data-qa","1657876569033",3,"data","signParams","isNavigationAfterDone","showAdditionalButtons","fullDocSignEvent"],["data-qa","1657876575329",3,"data","signParams"]],template:function(g,V){1&g&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275template(2,Zm,3,2,"div",2),e.\u0275\u0275template(3,Rs,1,0,"app-loader",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,ds,1,0,"app-loader",3)),2&g&&(e.\u0275\u0275property("pathData",V.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("section-shadow",V.loadingFlag)("sign-page_loader",V.loadingFlag),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.signPageData&&!V.loadingFlag),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.loadingFlag),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.inProgress))},dependencies:[i.O5,aa.l,xa.R,Ms.a,Sd],styles:[".sign-page[_ngcontent-%COMP%]{position:relative}.sign-page_loader[_ngcontent-%COMP%]{margin-top:20px;min-height:400px}"]})}return M})();var Jm=t(78372);const Td=[{capture:"\u0420\u0443\u0431\u043b\u0435\u0432\u044b\u0435",value:Qr.o.DocPlatpor},{capture:"\u0412\u0430\u043b\u044e\u0442\u043d\u044b\u0435",value:Qr.o.DocPlatporCurr}],qm={size:20,number:0,total:1},Pp=[10,20,100],Bl=[{name:"create",matIcon:"add",description:"Create based"},{name:"change",matIcon:"edit",matStyleOutlined:!0,description:"Edit"},{name:"delete",matIcon:"delete",matStyleOutlined:!0,description:"Delete"}];var Id=t(23439);const Ep=["menuSelect"];function eh(M,s){if(1&M&&e.\u0275\u0275element(0,"app-tab",10),2&M){const g=s.index;e.\u0275\u0275property("label",s.$implicit.capture),e.\u0275\u0275attribute("data-qa","1657968463059"+g)}}const Op=function(){return{new:!0}};function Sp(M,s){if(1&M&&e.\u0275\u0275element(0,"app-button",11),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("queryParams",e.\u0275\u0275pureFunction0(3,Op))("disabled",o.isDisableNewTemplateButton)("routerLink",o.isDisableNewTemplateButton?null:"/template")}}class Nl{constructor(s,o,g,V,me,yt,Zt,Pn){this.documentService=s,this.translation=o,this.router=g,this.modalService=V,this.configUtilService=me,this.userDataService=yt,this.appConfigService=Zt,this.toast=Pn,this._destroyed$=new co.x,this.pagePath=[{capture:"Favorite",bold:!0}],this.search="",this.isDisableNewTemplateButton=!0,this.tabs=Td,this.currentPage=qm,this.sizeList=Pp,this.actionList=Bl,this.filteredTemplateList=[],this.pending=!0,this.isLoading=!1,this.destroyed$=new co.x,this.selectedTab=Qr.o.DocPlatpor,this.isCurrencyList=!1,this.searchSubject=new co.x}patchTemplateList(){this.templateList.forEach(s=>{"inq_conf_181"===s.docType?this.documentService.requestTemplateById(s.id).subscribe(()=>{s.amount=this.translation.translate("SPD")}):"inq_curr_181"===s.docType&&(s.amount=this.translation.translate("Currency Information"))})}ngOnInit(){this.getFavoriteList(),this.userDataService.getClientInfoOrganization().subscribe(s=>this.org=s),this.appConfigService.settings$.pipe((0,uo.h)(s=>s.isLoaded),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.isDisableNewTemplateButton=0===s.ulSettings["OTHER/CREATE_TEMPLATE"]}),this.searchSubject.pipe((0,Jm.b)(300),(0,zn.R)(this._destroyed$)).subscribe(s=>{this.getFavoriteList(null,s)})}onSearchChange(s){"string"==typeof s&&this.searchSubject.next(s)}onSelectTab(s){this.selectedTab=this.tabs[s].value,this.selectedTab===Qr.o.DocPlatpor&&(this.isCurrencyList=!1),this.selectedTab===Qr.o.DocPlatporCurr&&(this.isCurrencyList=!0),this.getFavoriteList()}onChangeEvent(s){const o=s.document;switch(s.name){case"change":this.performChangeAction(o);break;case"create":this.performCreateAction(o);break;case"delete":this.performDeleteAction(o)}}performChangeAction(s){switch(s.docType){case"doc_platpor":this.router.navigate(["/template"],{queryParams:{templateName:s.name,templateId:s.id}});break;case"doc_platpor_curr":this.router.navigate(["/ved/transfer-curr"],{queryParams:{action:"editTemplate",id:s.id,name:s.name}});break;default:this.toast.show("\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u0430","error")}}performCreateAction(s){switch(s.docType){case"doc_platpor":this.documentService.changeDocumentTemplate(s.id).subscribe(o=>{delete o.id,this.documentService.paymentData$.next(o),this.router.navigate(["/transfer-rur"],{queryParams:{prefill:!0}})});break;case"doc_platpor_curr":this.router.navigate(["/ved/transfer-curr"],{queryParams:{action:"createBased",id:s.id}});break;default:this.toast.show("\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u0430","error")}}performDeleteAction(s){this.documentService.deleteDocumentTemplate(s.id).subscribe(()=>{this.getFavoriteList(),this.toast.show("\u0428\u0430\u0431\u043b\u043e\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d","success")},o=>{this.toast.show(o.errorText,"error")})}getFavoriteList(s,o){const g=s?.showMore;this.pending=!0,s&&(this.currentPage=s),this.favoriteSubscription&&this.favoriteSubscription.unsubscribe(),this.favoriteSubscription=this.documentService.getFavoritesListNew({page:this.currentPage,searchTerm:o,currencyList:this.isCurrencyList}).subscribe(V=>{if(this.currentPage=V.page,V.documents){const yt=(Array.isArray(V.documents)?V.documents:[V.documents]).map(Zt=>{const Pn=Zt.templateData;let Fn="";return Pn.docType===Qr.o.DocPlatpor&&(Fn=`${Pn?.corrFullname}, \u0418\u041d\u041d:${Pn?.corrInn||""}, \u0441\u0447\u0435\u0442:${Pn?.corrAccNumber||""}`),Pn.docType===Qr.o.DocPlatporCurr&&(Fn=`${Pn?.corrFullname}, ${Pn?.country||""}`),{...Pn,title:Pn.name,description:Fn,amount:`${Pn.amount} ${Pn.accCurrIso}`,actions:this.actionList,statusCaption:null}});this.pending=!1,g?(this.templateList=[...this.templateList,...yt],this.filteredTemplateList=[...this.filteredTemplateList,...yt]):(this.templateList=yt,this.filteredTemplateList=yt),this.patchTemplateList()}else this.pending=!1,this.templateList=[],this.filteredTemplateList=[]})}getFavoriteListUpdate(s){this.favoriteSubscriptionUpdate&&this.favoriteSubscriptionUpdate.unsubscribe(),this.isLoading=!0,this.favoriteSubscriptionUpdate=this.documentService.getFavoritesList({with_image_link:!0}).subscribe(o=>{o.forEach(g=>{Object.keys(g).forEach(V=>{this.templateList.find(me=>me.id===g.id)[V]=g[V]})}),s&&delete s.image,this.isLoading=!1})}onActionDone(s){}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}static#e=this.\u0275fac=function(o){return new(o||Nl)(e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(as._),e.\u0275\u0275directiveInject(jo.j))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Nl,selectors:[["app-favorite-payments"]],viewQuery:function(o,g){if(1&o&&e.\u0275\u0275viewQuery(Ep,5),2&o){let V;e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(g.menuSelect=V.first)}},decls:11,vars:14,consts:[["data-qa","1685956183",3,"pathData"],["data-qa","1685956190",1,"favorite-payments",3,"withCloseButton","withTitle","loading"],["data-qa","1685956195",1,"tabs-container"],[3,"initialIndex","selectTab"],[3,"label",4,"ngFor","ngForOf"],["class","new-template-button","data-qa","1657962396324","text","Create template","type","small header",3,"queryParams","disabled","routerLink",4,"ngIf"],[1,"favorite-payments__content-inputs"],["data-qa","1657962388851","inputClass","no-description","matIcon","search","placeholder","Search","typeClass","flex-input-filter",3,"valueChange"],[1,"document-list"],["customDocumentListItemIcon","template","rightBlockVerticalPositionFlex","center","data-qa","1657968472224",3,"documentList","currentPage","sizeList","isLoading","noDocumentsTitle","changePaginationEmit","actionDone","changeEvent"],[3,"label"],["data-qa","1657962396324","text","Create template","type","small header",1,"new-template-button",3,"queryParams","disabled","routerLink"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1)(2,"div",2)(3,"app-tabs",3),e.\u0275\u0275listener("selectTab",function(me){return g.onSelectTab(me)}),e.\u0275\u0275template(4,eh,1,2,"app-tab",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Sp,1,4,"app-button",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",6)(7,"app-input",7),e.\u0275\u0275listener("valueChange",function(me){return g.onSearchChange(me)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",8)(9,"app-alt-document-list",9),e.\u0275\u0275listener("changePaginationEmit",function(me){return g.getFavoriteList(me)})("actionDone",function(me){return g.onActionDone(me)})("changeEvent",function(me){return g.onChangeEvent(me)}),e.\u0275\u0275pipe(10,"async"),e.\u0275\u0275elementEnd()()()),2&o&&(e.\u0275\u0275property("pathData",g.pagePath),e.\u0275\u0275advance(1),e.\u0275\u0275property("withCloseButton",!1)("withTitle",!1)("loading",!1),e.\u0275\u0275advance(2),e.\u0275\u0275property("initialIndex",0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",g.tabs),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","doc_platpor"===g.selectedTab),e.\u0275\u0275advance(4),e.\u0275\u0275property("documentList",g.filteredTemplateList)("currentPage",g.currentPage)("sizeList",g.sizeList)("isLoading",g.isLoading)("noDocumentsTitle",e.\u0275\u0275pipeBind1(10,12,g.searchSubject)?"Not found":"Empty templates"))},dependencies:[bi.rH,Id.c,nr.n,Ra.i,Qs.a,i.sg,i.O5,aa.l,Xt.r,ls.I,i.Ov],styles:['@charset "UTF-8";.favorite-payments[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede;margin-bottom:24px}.favorite-payments[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]   .new-template-button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;max-width:152px;height:47px}.favorite-payments__content-inputs[_ngcontent-%COMP%]{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #dedede}app-path[_ngcontent-%COMP%]{display:block;margin-bottom:24px}']})}(0,Wi.gn)([(0,yi.SQ)()],Nl.prototype,"lang",void 0);const Uc=[{capture:"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438",value:"personal",sections:[{id:"user-manual",caption:"User manual"},{id:"documents",caption:"Requested documents"},{id:"contur",caption:"Acquiring docs for currency control services"},{id:"currency-deal",caption:"Currency deals guide"},{id:"sbp",caption:"Service 'SBP Salary'"},{id:"sbp-qr",caption:"QR payments"},{id:"acquiring",caption:"Trade acquiring SoftPOS"},{id:"new-mail",caption:"New mail service"},{id:"change-phone-number",caption:"Changing the phone number for signature"},{id:"change-contacts-167-fz",caption:"Changing the contacts 167-FZ"},{id:"disconnecting_user_from_SCB",caption:"Disconnecting user from SCB"}]},{capture:"\u0422\u0438\u043f\u043e\u0432\u044b\u0435 \u0444\u043e\u0440\u043c\u044b \u0411\u0430\u043d\u043a\u0430",value:"typical-forms",sections:[]}],wd=[{name:"User manual",path:"/uploads/client_manual_2024.pdf",tab:"personal",section:"user-manual",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \xab\u041a\u043b\u0438\u0435\u043d\u0442-\u0411\u0430\u043d\u043a\xbb \u041f\u0410\u041e \u0410\u041a\u0411 \xab\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\xbb (\u042d\u0414\u041e \u0421\u041a\u0411 4.0)"},{name:"Requested information",path:"../../../assets/docsmanual.pdf",section:"documents",tab:"personal",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438\u0437 \u0411\u0430\u043d\u043a\u0430"},{name:"Currency deals guide",path:"../../../assets/currencydealsmanual.pdf",tab:"personal",section:"currency-deal",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0441\u0434\u0435\u043b\u043e\u043a \u043f\u043e \u043a\u0443\u043f\u043b\u0435/\u043f\u0440\u043e\u0434\u0430\u0436e \u0432\u0430\u043b\u044e\u0442\u044b \u0437\u0430 \u0440\u0443\u0431\u043b\u0438 \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u0438 (\u0432\u0430\u043b\u044e\u0442\u0430/\u0432\u0430\u043b\u044e\u0442\u0430)"},{name:"Contur Diadoc manual",path:"../../../assets/conturdiadocmanual.pdf",tab:"personal",section:"contur",description:'\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044e \u0441\u0447\u0435\u0442-\u0444\u0430\u043a\u0442\u0443\u0440 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0447\u0435\u0440\u0435\u0437 \u042d\u0414\u041e "\u041a\u043e\u043d\u0442\u0443\u0440.\u0414\u0438\u0430\u0434\u043e\u043a"'},{name:"Reliable business service",path:"../../../assets/reliablebusinessmanual.pdf",tab:"personal",section:"reliable-business",description:'\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043f\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0440\u0438\u0441\u043a\u043e\u0432 "\u041d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0431\u0438\u0437\u043d\u0435\u0441"'},{name:"Conclusion of an agreement",path:"/sbp-how-to-conclude-contract.pdf",tab:"personal",isNeedConfigPath:!0,section:"sbp",description:'\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 "\u0421\u0411\u041f \u0417\u0430\u0440\u043f\u043b\u0430\u0442\u0430"'},{name:"Loading and processing registries",path:"/sbp-user-manual.pdf",tab:"personal",isNeedConfigPath:!0,section:"sbp",description:'\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c "\u0421\u0411\u041f \u0417\u0430\u0440\u043f\u043b\u0430\u0442\u0430"'},{name:"User guide for concluding an agreement, registering merchants and cash registers in RBS",path:"/uploads/sbp-how-to-conclude-agreement-and-register-cashier.pdf",tab:"personal",section:"sbp-qr",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0422\u0421\u041f \u0438 \u041a\u0430\u0441\u0441 \u0432 \u0414\u0411\u041e"},{name:"MP TSP User Manual",path:"/uploads/sbp-users-guide-mp-tsp.pdf",tab:"personal",section:"sbp-qr",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u041c\u041f \u0422\u0421\u041f"},{name:"User Guide for payment via SBP to a legal entity or individual entrepreneur",path:"/uploads/Pay_B2B_SBP.pdf",tab:"personal",section:"sbp-qr",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u043e\u043f\u043b\u0430\u0442\u0435 \u043f\u043e \u0421\u0411\u041f \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043b\u0438\u0446\u0443 \u0438\u043b\u0438 \u0418\u041f"},{name:"User Guide for accepting payment via SBP from a legal entity or individual entrepreneur",path:"/uploads/Form_QR_B2B.pdf",tab:"personal",section:"sbp-qr",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u043f\u0440\u0438\u0435\u043c\u0443 \u043e\u043f\u043b\u0430\u0442\u044b \u043f\u043e \u0421\u0411\u041f \u043e\u0442 \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043b\u0438\u0446\u0430 \u0438\u043b\u0438 \u0418\u041f"},{name:"Guidelines for using Rutoken EDS 2.0",path:"/uploads/user-guide-rutoken-eds-2.0.pdf",tab:"personal",section:"user-manual",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0420\u0443\u0442\u043e\u043a\u0435\u043d \u042d\u0426\u041f 2.0 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \xab\u041a\u043b\u0438\u0435\u043d\u0442-\u0411\u0430\u043d\u043a\xbb \u041f\u0410\u041e \u0410\u041a\u0411 \xab\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\xbb (\u042d\u0414\u041e \u0421\u041a\u0411 4.0)"},{name:"User's guide for concluding an agreement, registering merchant outlets and terminals",path:"/uploads/trade-acquiring-SoftPOS.pdf",tab:"personal",section:"acquiring",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044e \u0422\u0421\u041f \u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u0432"},{name:"SoftPOS Operator Instructions",path:"/uploads/softPOS-operator-instructions.pdf",tab:"personal",section:"acquiring",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 SoftPOS"},{name:"Memo of new mail",path:"/uploads/memo-new-mail.pdf",tab:"personal",section:"new-mail",description:'\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u0430\u043c\u044f\u0442\u043a\u0430 \u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443 "\u041d\u043e\u0432\u0430\u044f \u043f\u043e\u0447\u0442\u0430"'},{name:"Memo of changing the phone number for signature",path:"/uploads/Changing_the_signature_number.pdf",tab:"personal",section:"change-phone-number",description:'\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u0430\u043c\u044f\u0442\u043a\u0430 \u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443 "\u0421\u043c\u0435\u043d\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438"'},{name:"Memo of changing the contacts 167-FZ",path:"/uploads/changing-167-fz-phone.pdf",tab:"personal",section:"change-contacts-167-fz",description:"\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 161-\u0424\u0417"},{name:"Memo of disconnecting user from SCB",path:"/uploads/disconnecting_user_from_SCB.pdf",tab:"personal",section:"disconnecting_user_from_SCB",description:'\u0412\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u0430\u043c\u044f\u0442\u043a\u0430 \u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443 "\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f"'}],dm=[{capture:"\u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u044b\u0439 \u0446\u0435\u043d\u0442\u0440",bold:!0}];var Fu=t(70234),Bu=t(43557);function Nu(M,s){if(1&M&&e.\u0275\u0275element(0,"app-arrow-toggle",5),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275styleMap("thin-gray"),e.\u0275\u0275property("hide",o.hide)}}const um=["*"];class pu{constructor(s,o){this.translation=s,this.router=o,this.hideArrow=!1,this.toggleAccordtion=new e.EventEmitter,this.hide=!0}accordionToggle(){this.hide=!this.hide}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||pu)(e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:pu,selectors:[["app-help-docs-accordion"]],inputs:{title:"title",hideArrow:"hideArrow"},outputs:{toggleAccordtion:"toggleAccordtion"},ngContentSelectors:um,decls:8,vars:8,consts:[[1,"accordion-page"],[1,"accordion-page__header",3,"click"],[1,"accordion-page__title"],["class","accordion-page__arrow-toggle",3,"hide","style",4,"ngIf"],[1,"accordion-page__content"],[1,"accordion-page__arrow-toggle",3,"hide"]],template:function(o,g){1&o&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return g.accordionToggle()}),e.\u0275\u0275elementStart(2,"span",2),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Nu,1,3,"app-arrow-toggle",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",4),e.\u0275\u0275projection(7),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275classProp("opened",!g.hide),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,5,g.title,g.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!g.hideArrow),e.\u0275\u0275advance(1),e.\u0275\u0275property("@accordion",g.hide?"hide":"show"))},dependencies:[i.O5,Bu.V,yi.X$],styles:['@charset "UTF-8";.help-docs-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.help-docs-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{width:100%;background-color:#f4f6f9}.help-docs-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{width:9.3%}.help-docs-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:9px 20px 9px 15px}.help-docs-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{background-color:#fff}.help-docs-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-bottom:solid 1px #dadada}.help-docs-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:25px;font-size:16px}.accordion-page[_ngcontent-%COMP%]{margin-bottom:10px}.accordion-page__header[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;-webkit-user-select:none;user-select:none;cursor:pointer;font-size:16px;color:#444;background-color:#f1f2f2;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;font-weight:400;margin-top:10px;border-radius:4px}.accordion-page__arrow-toggle[_ngcontent-%COMP%]{display:block;padding-bottom:3px;padding-right:3px}'],data:{animation:[Fu.U]}})}(0,Wi.gn)([(0,yi.SQ)()],pu.prototype,"lang",void 0);let Ad=(()=>{class M{constructor(o,g){this.apiService=o,this.configUtilService=g}getTypicalFormsList(){return this.apiService.publicGetDefault("cust/dictionary/typical-forms").pipe((0,lo.U)(o=>this.configUtilService.getArray(o?.data)))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(gc.s),e.\u0275\u0275inject(Ko.Pj))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();function kd(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.onTypicalFormClick(me.code))}),e.\u0275\u0275element(1,"mat-icon",6),e.\u0275\u0275elementStart(2,"div",7),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.caption)}}function th(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,kd,4,1,"div",4),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.typicalFormsList)}}function yc(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275text(1,"\u0422\u0438\u043f\u043e\u0432\u044b\u0435 \u0444\u043e\u0440\u043c\u044b \u0431\u0430\u043d\u043a\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442"),e.\u0275\u0275elementEnd())}function Vc(M,s){1&M&&e.\u0275\u0275element(0,"app-loader",9)}class Ds{constructor(s,o,g,V){this.translation=s,this.modalService=o,this.typicalFormsService=g,this.toastCustomService=V,this._destroyed$=new co.x,this.typicalFormsList=[],this.isLoading=!0}loadTypicalFormsList(){this.typicalFormsService.getTypicalFormsList().pipe((0,zn.R)(this._destroyed$)).subscribe({next:s=>{this.typicalFormsList=s,this.isLoading=!1},error:()=>{this.isLoading=!1,this.toastCustomService.show("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u044b","error")}})}ngOnInit(){this.loadTypicalFormsList()}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}onTypicalFormClick(s){this.modalService.open(ml.O,{header:"Print document",styleMode:"forSign",inputs:{operation:{bodyInfo:"",fileName:s}}})}static#e=this.\u0275fac=function(o){return new(o||Ds)(e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(Ad),e.\u0275\u0275directiveInject(jo.j))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ds,selectors:[["app-help-typical-forms-list"]],decls:4,vars:3,consts:[[1,"help-typical-forms-list"],[4,"ngIf"],["class","help-typical-forms-list__empty",4,"ngIf"],["class","help-typical-forms-list__loader",4,"ngIf"],["class","help-typical-forms-list__item",3,"click",4,"ngFor","ngForOf"],[1,"help-typical-forms-list__item",3,"click"],["svgIcon","file-new",1,"typical-forms-list-item__icon"],[1,"typical-forms-list-item__title"],[1,"help-typical-forms-list__empty"],[1,"help-typical-forms-list__loader"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,th,2,1,"ng-container",1),e.\u0275\u0275template(2,yc,2,0,"div",2),e.\u0275\u0275template(3,Vc,1,0,"app-loader",3),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isLoading&&!g.typicalFormsList.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isLoading))},dependencies:[i.sg,i.O5,xa.R,m.Hw],styles:['@charset "UTF-8";.help-typical-forms-list[_ngcontent-%COMP%]{position:relative}.help-typical-forms-list__item[_ngcontent-%COMP%]{border-top:1px solid #dedede;display:flex;align-items:center;padding:20px;column-gap:16px;cursor:pointer}.help-typical-forms-list__item[_ngcontent-%COMP%]:last-child{border-bottom:1px solid #dedede}.help-typical-forms-list__loader[_ngcontent-%COMP%]{display:block;min-height:200px}.help-typical-forms-list__empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:200px;font-size:18px;font-family:Open Sans,Source Sans Pro,sans-serif;color:#88909b}.help-typical-forms-list[_ngcontent-%COMP%]   .typical-forms-list-item__icon[_ngcontent-%COMP%]{height:24px;width:24px;font-size:24px;color:#88909b}.help-typical-forms-list[_ngcontent-%COMP%]   .typical-forms-list-item__title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:16px;color:#080708}']})}function pm(M,s){1&M&&e.\u0275\u0275element(0,"app-tab",7),2&M&&e.\u0275\u0275property("label",s.$implicit.capture)}function mm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",13)(1,"span",14),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"a",15),e.\u0275\u0275element(4,"mat-icon",16),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.description),e.\u0275\u0275advance(1),e.\u0275\u0275property("href",o.path,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,3,o.name,g.lang)," ")}}function hm(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,mm,7,6,"div",12),e.\u0275\u0275elementContainerEnd()),2&M){const o=s.$implicit,g=e.\u0275\u0275nextContext(2).$implicit,V=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.tab===V.selectedTab&&o.section===g.id)}}function fm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"app-help-docs-accordion",10),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementStart(2,"div",11),e.\u0275\u0275template(3,hm,2,1,"ng-container",6),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("title",e.\u0275\u0275pipeBind2(1,2,o.caption,g.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",g.files)}}function ju(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,fm,4,5,"app-help-docs-accordion",9),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.value===g.currentTab)}}function Tp(M,s){1&M&&e.\u0275\u0275element(0,"app-help-typical-forms-list")}function Ip(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ju,2,1,"ng-container",6),e.\u0275\u0275template(2,Tp,1,0,"app-help-typical-forms-list",8),e.\u0275\u0275elementContainerEnd()),2&M){const o=s.$implicit,g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.sections),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","typical-forms"===g.currentTab&&"typical-forms"===o.value)}}(0,Wi.gn)([(0,yi.SQ)()],Ds.prototype,"lang",void 0);class Ld{constructor(s,o,g,V,me){this.router=s,this.configUtilService=o,this.cdr=g,this.httpClient=V,this.serverSettingsService=me,this.destroyed$=new co.x,this.tabs=[],this.files=wd,this.pathData=dm,this.adminConfigPath="/assets/config/admin.json"}get currentTab(){return this.selectedTab}onTabSelect(s){this.selectedTab=s.value}ngOnInit(){this.httpClient.get(this.adminConfigPath,{headers:this.configUtilService.noCacheHeaders}).pipe((0,lo.U)(s=>{this.files.map(o=>(o.isNeedConfigPath&&(o.path=`${s.fileStorage}${o.path}`),o)),this.cdr.markForCheck()})).subscribe(),this.serverSettingsService.getBooleanSettings(this.serverSettingsService.servicesCommon,["STANDARD_FORMS"]).pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{this.tabs=s.STANDARD_FORMS?Uc:Uc.filter(g=>"typical-forms"!==g.value),this.selectedTab=this.tabs[0].value})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(o){return new(o||Ld)(e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(d.eN),e.\u0275\u0275directiveInject(ws.l))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ld,selectors:[["app-help-page"]],decls:7,vars:4,consts:[[3,"pathData"],[3,"withTitle"],[1,"help-page__tabs"],[3,"selectTab"],[3,"label",4,"ngFor","ngForOf"],[1,"help-docs__list"],[4,"ngFor","ngForOf"],[3,"label"],[4,"ngIf"],[3,"title",4,"ngIf"],[3,"title"],[1,"help-docs__list-wrapper"],["class","help-docs__list-item",4,"ngIf"],[1,"help-docs__list-item"],[1,"help-docs__list-item-text"],["target","_blank",1,"help-docs__list-link",3,"href"],["svgIcon","file-new",1,"help-docs__attachment-icon"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1)(2,"div",2)(3,"app-tabs",3),e.\u0275\u0275listener("selectTab",function(me){return g.onTabSelect(g.tabs[me])}),e.\u0275\u0275template(4,pm,1,1,"app-tab",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",5),e.\u0275\u0275template(6,Ip,3,2,"ng-container",6),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("withTitle",!1),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",g.tabs),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",g.tabs))},dependencies:[i.sg,i.O5,nr.n,Ra.i,ls.I,aa.l,m.Hw,pu,Ds,yi.X$],styles:['@charset "UTF-8";.title-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;color:#080708;font-weight:700;font-size:24px}.help-docs__list[_ngcontent-%COMP%] > app-help-docs-accordion[_ngcontent-%COMP%]:not(:first-child){margin-top:12px;display:block}.help-docs__list-wrapper[_ngcontent-%COMP%]{display:flex;row-gap:24px;flex-direction:column;padding:20px 20px 8px}.help-docs__list-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;letter-spacing:.01em}.help-docs__list-item-text[_ngcontent-%COMP%]{color:#080708}.help-docs__list-link[_ngcontent-%COMP%]{display:flex;margin-top:8px;color:#2f54eb;text-decoration:none;font-weight:400;letter-spacing:.01em;column-gap:4px;align-items:center}.help-docs__list-icon[_ngcontent-%COMP%]{height:22px;width:11px}.help-docs__attachment-icon[_ngcontent-%COMP%]{color:#2f54eb;height:20px;width:20px;font-size:20px}.help-page__tabs[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;margin-bottom:32px}']})}(0,Wi.gn)([(0,yi.SQ)()],Ld.prototype,"lang",void 0);var Ar=t(57677),jl=t(36738),mu=t(54409),Rd=t(38889),ad=t(66630);const D=/^(\d{5}|\d{10}|\d{12})$/;function v(M){return{field:{name:`employee_${M}`,validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0424\u0418\u041e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u0438 \u0435\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",title:"\u0424\u0418\u041e, \u0434\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c",type:Si.j.Input},visual:{hide:!1,close:M>1},dataQa:"1660030064743",isModalDesign:!0}}const N=[{field:{name:"numberOfScore",validators:[l.Validators.required,l.Validators.minLength(20)],value:""},mask:{TextMask:Wa.Ax},component:{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u2116 \u0441\u0447\u0435\u0442\u0430",title:"\u2116 \u0441\u0447\u0435\u0442\u0430",type:Si.j.Input,maxlength:20},visual:{hide:!1},dataQa:"1660030066818",isModalDesign:!0},{field:{name:"companyName",validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438",title:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438",type:Si.j.Input},visual:{hide:!1},dataQa:"1660030069187",isModalDesign:!0},{field:{name:"headOfEnterprise",validators:[l.Validators.required],value:""},mask:{TextMask:(0,ad.TK)(ad.SE),stripMask:!0},component:{placeholder:"\u0412\u0435\u0434\u0438\u0442\u0435 \u0424\u0418\u041e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f",title:"\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f",type:Si.j.Input},visual:{hide:!1},dataQa:"1660030076353",isModalDesign:!0},{field:{name:"chiefAccountant",validators:[l.Validators.required],value:""},component:{placeholder:"\u0412\u0435\u0434\u0438\u0442\u0435 \u0424\u0418\u041e \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0430",title:"\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440",type:Si.j.Input},mask:{TextMask:(0,ad.TK)(ad.SE)},visual:{hide:!1},dataQa:"1660030176497",isModalDesign:!0},{field:{name:"phones",validators:[l.Validators.required,l.Validators.minLength(11)],value:""},mask:{TextMask:["+","7"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/]},component:{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b",title:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b",type:Si.j.Input},visual:{cssClass:"",hide:!1},dataQa:"1660030196368",isModalDesign:!0},v(1),{field:{name:"employeeCount"},component:{type:Si.j.Button,title:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430"},visual:{buttonType:"submit",hide:!1,visualDisabled:!1},dataQa:"1660030198989",isModalDesign:!0}],K=[{field:{name:"bankPartner",validators:[l.Validators.required]},component:{placeholder:"\u0411\u0430\u043d\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c",title:"\u0411\u0430\u043d\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c",type:Si.j.Autocomplete},select:{items:[],filterByOpt:["caption"]},visual:{hide:!1,cssClass:"auto-width",svgIcon:"arrow-up"},dataQa:"1660030203476",isModalDesign:!0},{field:{name:"sectionId",validators:[l.Validators.required]},component:{placeholder:"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f",title:"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f",type:Si.j.Autocomplete},select:{items:[],filterByOpt:["name"]},visual:{hide:!1,cssClass:"auto-width",svgIcon:"arrow-up"},dataQa:"1660030201147",isModalDesign:!0},{field:{name:"mailType",validators:[l.Validators.required]},component:{placeholder:"\u0422\u0435\u043c\u0430 \u043f\u0438\u0441\u044c\u043c\u0430",title:"\u0422\u0435\u043c\u0430 \u043f\u0438\u0441\u044c\u043c\u0430",type:Si.j.Autocomplete},select:{items:[],filterByOpt:["caption"]},visual:{hide:!1,cssClass:"auto-width",svgIcon:"arrow-up"},dataQa:"1660030203476",isModalDesign:!0}],te=[{field:{name:"radio"},component:{type:Si.j.Input},visual:{hide:!0},isModalDesign:!0},{field:{name:"corrAccNumber",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"\u041d\u043e\u043c\u0435\u0440 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",placeholder:"\u041d\u043e\u043c\u0435\u0440 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",maxlength:20},mask:{TextMask:Wa.VU,stripMask:!0},visual:{hide:!0},isModalDesign:!0},{field:{name:"corrFullName",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",placeholder:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432"},visual:{hide:!0},isModalDesign:!0},{field:{name:"corrInn",validators:[l.Validators.required,l.Validators.pattern(D),l.Validators.minLength(10)]},component:{type:Si.j.Input,title:"\u0418\u041d\u041d (\u041a\u0418\u041e) \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",placeholder:"\u0418\u041d\u041d (\u041a\u0418\u041e) \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432",maxlength:12},mask:{TextMask:Wa.Ax},visual:{hide:!0},isModalDesign:!0},{field:{name:"additionalBody",validators:[l.Validators.required]},component:{type:Si.j.TextArea,title:"\u0422\u0435\u043a\u0441\u0442",maxlength:210},visual:{hide:!0},isModalDesign:!0}],re=[{field:{name:"checkBox08",value:!1,validators:[l.Validators.required]},component:{type:Si.j.Checkbox,title:"\u0422\u0435\u043a\u0441\u0442 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435",maxlength:210},visual:{hide:!1},isModalDesign:!0},{field:{name:"additionalBody",validators:[l.Validators.required]},component:{type:Si.j.TextArea,title:"\u0422\u0435\u043a\u0441\u0442",maxlength:210},visual:{hide:!0},isModalDesign:!0},{field:{name:"code_60",validators:[l.Validators.required,l.Validators.pattern(D)]},component:{type:Si.j.Input,title:"payerInn",placeholder:"corrInn",maxlength:12},visual:{hide:!0},isModalDesign:!0,mask:{TextMask:Wa.Ax}},{field:{name:"code_61",validators:[l.Validators.required,l.Validators.pattern(D)]},component:{type:Si.j.Input,title:"connInnKio",placeholder:"Enter data",maxlength:12},visual:{hide:!0},isModalDesign:!0,mask:{TextMask:Wa.Ax}},{field:{name:"code_101",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"Stat 101",placeholder:"Enter data"},visual:{hide:!0},isModalDesign:!0,select:{items:[]}},{field:{name:"code_104",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"Stat 104",placeholder:"Enter data"},select:{items:[]},visual:{hide:!0},isModalDesign:!0},{field:{name:"code_102",validators:[l.Validators.required,l.Validators.minLength(9)]},component:{type:Si.j.Input,title:"payerKpp",placeholder:"Enter data",maxlength:9},visual:{hide:!0},isModalDesign:!0,mask:{TextMask:Wa.S0}},{field:{name:"code_103",validators:[l.Validators.required,l.Validators.minLength(9)]},component:{type:Si.j.Input,title:"corrKpp",placeholder:"Enter data",maxlength:9},visual:{hide:!0},isModalDesign:!0,mask:{TextMask:Wa.S0}},{field:{name:"code_105",validators:[l.Validators.required,l.Validators.minLength(8)]},component:{type:Si.j.Input,title:"Stat 105",placeholder:"Enter data",maxlength:8},visual:{hide:!0},isModalDesign:!0,mask:{TextMask:Wa.S0}},{field:{name:"code_106",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"\u041a\u043e\u0434 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430",placeholder:"Enter data"},select:{items:[]},visual:{hide:!0},isModalDesign:!0},{field:{name:"code_107",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"Stat 107",placeholder:"Enter data"},visual:{cssClass:"three-inline",hide:!0},isModalDesign:!0,select:{items:[]}},{field:{name:"tax2",validators:[l.Validators.required,l.Validators.pattern(/^(1[0-2]|[1-9])$/)]},component:{type:Si.j.Input,title:"Enter month",placeholder:"Enter data",maxlength:2},visual:{cssClass:"three-inline",hide:!0},isModalDesign:!0,mask:{TextMask:Wa.S0}},{field:{name:"tax3",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Enter year",placeholder:"Enter data",maxlength:4},visual:{cssClass:"three-inline",hide:!0},isModalDesign:!0,mask:{TextMask:Wa.Ax}},{field:{name:"code_108",validators:[l.Validators.required,l.Validators.pattern("^(0|((0[1-9]|1[1-4]|2[245689]|30)[;])?[\u0430-\u044f\u0410-\u042f0-9-/]{2,})$")]},component:{type:Si.j.Input,title:"Stat 108",placeholder:"Enter data",maxlength:15},visual:{hide:!0},isModalDesign:!0},{field:{name:"code_109",validators:[l.Validators.required]},component:{type:Si.j.DatePicker,title:"Stat 109",placeholder:"Enter data"},visual:{hide:!0,matIcon:"calendar_today",matStyleOutlined:!0},isModalDesign:!0,mask:{TextMask:Wa.X8}},{field:{name:"code_110",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Type payment",placeholder:"Enter data",maxlength:1},visual:{hide:!0},isModalDesign:!0,mask:{TextMask:Wa.Ax}}];var he=t(39349);function Fe(M,s){if(1&M&&e.\u0275\u0275element(0,"app-path",18),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("pathData",o.pathData)}}function _t(M,s){1&M&&e.\u0275\u0275element(0,"div",24)}function Lt(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",19)(1,"div",20),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",21)(5,"div",22),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.closeOrSave())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,_t,1,0,"ng-template",null,23,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,1,o.title,o.lang)," ")}}function un(M,s){if(1&M&&e.\u0275\u0275element(0,"app-dynamic-form",25),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("config",o.selectConfig)("formGroup",o.selectForm)}}function _n(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",26)(1,"div",27),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",28)(4,"div",29),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.user),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.patternText)}}function Cn(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-dynamic-form",30),e.\u0275\u0275listener("event",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onEvent(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("config",o.piConfig)("formGroup",o.permissionInformationForm)}}function Un(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",38),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.chosenRadio=V.radioSections.One)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",o.chosenRadio===o.radioSections.One)("label",o.isRefundableAmountTitle)("isModalDesign",!0)}}function qn(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",39),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.chosenRadio=V.radioSections.Four)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",o.chosenRadio===o.radioSections.Four)("isModalDesign",!0)("label",o.isDuplicationRequisitesTitle)}}function ri(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",40),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.chosenRadio=V.radioSections.Two)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",o.chosenRadio===o.radioSections.Two)("isModalDesign",!0)}}function fi(M,s){if(1&M&&e.\u0275\u0275element(0,"app-dynamic-form",41),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("config",o.rConfig)("formGroup",o.rForm)}}function Li(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",42),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.chosenRadio=V.radioSections.Three)}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",o.chosenRadio===o.radioSections.Three)("isModalDesign",!0)("label",o.rCode===o.radioSections.Five?"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432":"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432")}}function Pi(M,s){if(1&M&&e.\u0275\u0275element(0,"app-dynamic-form",41),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("config",o.rConfig)("formGroup",o.rForm)}}function Ci(M,s){if(1&M&&e.\u0275\u0275element(0,"app-dynamic-form",41),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("config",o.fcConfig)("formGroup",o.fcForm)}}function ji(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"label",31),e.\u0275\u0275elementStart(2,"div",32),e.\u0275\u0275template(3,Un,1,3,"app-radio",33),e.\u0275\u0275template(4,qn,1,3,"app-radio",34),e.\u0275\u0275template(5,ri,1,2,"app-radio",35),e.\u0275\u0275template(6,fi,1,2,"app-dynamic-form",36),e.\u0275\u0275template(7,Li,1,3,"app-radio",37),e.\u0275\u0275template(8,Pi,1,2,"app-dynamic-form",36),e.\u0275\u0275template(9,Ci,1,2,"app-dynamic-form",36),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.rCode===o.radioSections.One||o.rCode===o.radioSections.Two||o.rCode===o.radioSections.Three),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.rCode===o.radioSections.Three),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.rCode===o.radioSections.One||o.rCode===o.radioSections.Two||o.rCode===o.radioSections.Three||o.rCode===o.radioSections.Five),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.rForm&&o.chosenRadio===o.radioSections.Two),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.rCode===o.radioSections.One||o.rCode===o.radioSections.Two||o.rCode===o.radioSections.Five),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.rForm&&o.chosenRadio===o.radioSections.Three),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.fcForm&&(o.rCode===o.radioSections.NinetyNine||o.rCode===o.radioSections.Eight))}}function Ni(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"textarea",48,49),e.\u0275\u0275listener("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.textareaValue=V)})("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.validTextAria(V))}),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(2,3,"Text",o.lang)),e.\u0275\u0275property("ngModel",o.textareaValue)("disabled",o.isDraft||o.isDisabledText)}}function ro(M,s){if(1&M&&e.\u0275\u0275element(0,"div",50),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("innerHTML",o.textareaValue,e.\u0275\u0275sanitizeHtml)}}function oo(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",51)(1,"div"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"date"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,o.answerMail.status,o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(6,5,o.answerMail.createStamp,"hh:mm"))}}const _a=function(){return[]};function Na(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",43)(1,"div",31),e.\u0275\u0275template(2,Ni,3,6,"textarea",44),e.\u0275\u0275template(3,ro,1,1,"div",45),e.\u0275\u0275template(4,oo,7,8,"div",46),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-input-files",47),e.\u0275\u0275listener("filesIsLargerThenMaximum",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onFilesSizeIsLargerThanMax(V))})("fileSizeIsOk",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.checkFileSize(V))})("removeAttachment",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.deleteFile(V))}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("wrong-border",o.isEmptyText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.isConsentText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isConsentText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isDraft),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabledInput",o.isDraft)("hidden",o.isDisabledText)("formControl",o.filesFormControl)("maxAmountFilesSizeByte",(null==o.attachmentSetup?null:o.attachmentSetup.totalFileMaxSize)||o.ATTACHMENTS_MAX_TOTAL_SIZE)("maxFileSizeByte",(null==o.attachmentSetup?null:o.attachmentSetup.totalFileMaxSize)||o.ATTACHMENTS_MAX_TOTAL_SIZE)("mimeTypesLabel",o.allowedFileExtensionsTitle)("mimeTypes",e.\u0275\u0275pureFunction0(14,_a))("fileFormats",o.allowedFileExtensions)("mailDesign",!0)}}function ga(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",52),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.save(!0,!1))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","dark-blue-large")}function kr(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",53),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.save(!1,!1))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","dark-blue-large")}function Xr(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",54),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.save(!0,!1))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","medium-for-sign-mail")}function Go(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",55),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.editDraft())}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","medium-for-sign-mail")}function Wr(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",56),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.save(!1,!0))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","medium-for-sign-mail")}function Zr(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",54),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.save(!0,!1,!0))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","medium-for-sign-mail")}function rd(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",56),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.save(!1,!0,!0))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","medium-for-sign-mail")}function Uu(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",57),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.deleteDraft())}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("type","medium-for-sign-mail")}const $c=function(M){return{"margin-none":M}};let fl=class iC{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo,Uo,bo,wo,ba,or){this.mailService=s,this.dynamicFormService=o,this.serverSettingsService=g,this.configUtilService=V,this.translation=me,this.activatedRoute=yt,this.documentService=Zt,this.router=Pn,this.userDataService=Fn,this.toast=Di,this.transferRurService=Ti,this.attachmentService=vo,this.formatFileSizePipe=Uo,this.modalService=bo,this.currencySymbolPipe=wo,this.datePipe=ba,this.cdr=or,this.editFromInfo=!1,this.isEditMail=!1,this.loading=new e.EventEmitter,this.pathData=[{capture:"Mail",href:"/mail",bold:!0}],this.data={cross:{href:"/mail"}},this.filesFormControl=new l.FormControl([]),this.selectConfig=K,this.piConfig=N,this.fcConfig=[],this.rCode=0,this.isConsentText=!1,this.isInitCheckBox=!1,this.isDisabledSaveDraft=!1,this.categoriesAndTopics=[],this.isRequestResponse=!1,this.selectForm=this.dynamicFormService.generateFormGroup(this.selectConfig),this.permissionInformationForm=this.dynamicFormService.generateFormGroup(this.piConfig),this.textareaValue="",this.currentTotalSize=0,this.finMail=!1,this.title="New mail in bank",this.allowedFileExtensions=[],this.allowedFileExtensionsTitle="",this.fileExtensionsForCurrencyControlDepartment="\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b: .pdf, .jpeg, .jpg, .tif, .tiff, .docx, .doc, .xlsx, .xls",this.fileExtensionsForCurrencyControlDepartmentAccepted=[],this.fileInputMimeTypesAccepted=Fa.rz,this.isCurrencyControlDepartment=!1,this.deleteAttachmentsObs=[],this.isRefundableAmountTitle=this.mailService.isRefundableAmountTitle,this.isDuplicationRequisitesTitle=this.mailService.isDuplicationRequisitesTitle,this.radioSections=ei.ph,this.isDefaultMail=!1,this.isDisabledText=!1,this.isSizeOk=!0,this.isPermissionInformation=!1,this.isDraft=!1,this.isEmptyText=!1,this.existDraft=!1,this.ATTACHMENTS_MAX_TOTAL_SIZE=33554432,this.selections={stat:[],kbk:[],ground:[],taxPeriod:[]},this.fieldFormBySettingsname=[],this.employeeCount=Ma(2),this.mail={},this.isCopy=!1,this.destroyed$=new co.x}get files(){return this.filesFormControl.value}get chosenRadio(){return this.rForm.get("radio").value}set chosenRadio(s){this.rForm.get("radio").setValue(s)}get checkbox08(){return this.fcForm.get(ei.Ww.CheckboxEight).value}ngOnInit(){this.dynamicFormService.getFormField(this.selectForm,"bankPartner").valueChanges.pipe((0,Vn.x)(),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.isDisabledText=!1,this.selectedPartner=this.allPartners?.find(o=>o.id.toString()===s),this.onChangeBankPartner(s)}),this.dynamicFormService.getFormField(this.selectForm,"sectionId").valueChanges.pipe((0,Vn.x)(),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.isDisabledText=!1,this.selectedCategory=s,this.onChangeSectionId(s)}),this.mailTypeControlHandle(),this.setTotalSizeSettings(),this.setMailFiles(),this.userDataService.employeeInfo$.subscribe(s=>{this.user=s?`${s.surname} ${s.name} ${s.patronymic}`:"\u041a\u043b\u0438\u0435\u043d\u0442"}),this.mailService.getMail2BankSetup().pipe((0,Fi.w)(s=>(this.mailService.getBankPartners().subscribe(o=>{this.allPartners=o,this.partnersForSelect=this.dynamicFormService.generateItemsForSelect(o,"id","displayName"),this.dynamicFormService.setSelectItems(this.selectConfig,"bankPartner",this.partnersForSelect)}),this.fieldFormBySettingsname.SET_MAIL_TYPE="mailType",this.fieldFormBySettingsname.USE_SECTION="sectionId",this.buildFormFieldsFromSetting(s,"SET_MAIL_TYPE"),this.buildFormFieldsFromSetting(s,"USE_SECTION"),this.mailService.getAttachmentWhiteList().pipe((0,Fi.w)(o=>(this.setupAttachmentsWhiteList(o),this.queryParamsHandle())),(0,zn.R)(this.destroyed$)))),(0,zn.R)(this.destroyed$)).subscribe(s=>{s&&(this.permissionInformationForm.get("companyName").setValue(s.name),this.permissionInformationForm.updateValueAndValidity())}),this.answer&&(this.title="Answer to mail"),(this.answerMail?.status===ei.Bg.Draft||this.answerMail?.status===ei.Bg.New)&&this.editFromInfo&&(this.textareaValue=this.answerMail.message),this.isRequestResponse||(this.dynamicFormService.setSelectItems(this.selectConfig,"mailType",[]),this.selectForm.get("mailType").setValidators([l.Validators.required,Rd.S.allowedValues([])]),this.selectForm.get("mailType").updateValueAndValidity({emitEvent:!1,onlySelf:!0})),this.existDraft=this.editFromInfo,this.isDraft=this.answerMail?.status===ei.Bg.Draft&&!this.editFromInfo}setTotalSizeSettings(){this.attachmentService.attachmentSetup$.pipe((0,uo.h)(s=>Boolean(s)),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.attachmentSetup=s})}chosenTopic(){const s=this.categoriesAndTopics?.find(g=>g.id===this.selectedCategory),o=Array.isArray(s?.topics)?s?.topics.find(g=>g.routeId===this.selectedTopic):s?.topics;return this.isDefaultMail=!o?.specialFormat,o}setMailFiles(){this.answer&&this.answerMail.attachments&&this.editFromInfo&&(this.answerMail.attachments&&!Array.isArray(this.answerMail.attachments)?this.setFiles([this.answerMail.attachments]):this.answerMail.attachments&&this.answerMail.attachments.length&&this.setFiles(this.answerMail.attachments))}mailTypeControlHandle(){return this.answerMail?this.setTemplateData(this.getCurrentTopic()?.specialFormat):(this.isDisabledText=!1,this.isConsentText=!1,this.fcConfig.length=0,this.rCode=null,this.fcForm=null,this.isDefaultMail=!0),this.selectForm.get("mailType").valueChanges.pipe((0,lo.U)(s=>{(s||""===s)&&(this.selectedTopic=s,this.isPermissionInformation=s===this.permissionInformation?.value,this.editFromInfo||(this.textareaValue=""),this.templateData=this.chosenTopic(),this.templateData?.specialFormat&&[ei.ph.One,ei.ph.Two,ei.ph.Three,ei.ph.Five,ei.ph.Eight,ei.ph.NinetyNine].some(o=>o.toString()===this.templateData?.specialFormat)?this.initResponse():(this.setTemplateData(this.chosenTopic()?.specialFormat),this.isDefaultMail=!0))}),(0,Fi.w)(()=>this.isPermissionInformation?(this.selectForm.updateValueAndValidity(),this.userDataService.getCompanyList().pipe((0,lo.U)(({company:s})=>s.find(o=>!0===o.active)))):(0,An.of)([])),(0,zn.R)(this.destroyed$))}changeCodeResponse(){8===this.rCode?(this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CodeSixty).field.value="",this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CodeSixty).visual.hide=!1,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CheckboxEight).field.value=!1,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CheckboxEight).visual.hide=!1,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.AdditionalBody).visual.hide=!0,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.AdditionalBody).field.validators=[l.Validators.required]):99===this.rCode&&(this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CodeSixty).field.value="",this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CodeSixty).visual.hide=!0,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CheckboxEight).field.value=!0,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CheckboxEight).visual.hide=!0,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.AdditionalBody).visual.hide=!1,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.AdditionalBody).field.validators=[l.Validators.required])}initParamsSettings(s){s&&"revoke"===s.operation&&this.documentService.getDocumentById("ibankul",s.docType,s.docId).pipe((0,lo.U)(o=>o.platporBpDocumentMetinv),(0,Fi.w)(o=>(this.dataForRevoke=o,this.specFormatByBik=o.bankBik===ei._4?ei.g$.OneHundredSixty:ei.g$.OneHundredFive,setTimeout(()=>{if(o&&this.categoriesAndTopics.length>0){let g=this.categoriesAndTopics.find(V=>"\u0412\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c"===V.name);this.selectForm.get("sectionId").setValue(g.id),this.selectForm.get("sectionId").updateValueAndValidity(),this.selectForm.get("sectionId").disable()}},300),this.mailTypeControlHandle()))).subscribe(),s&&"send_ul_documents"===s.operation&&this.mailService.categoriesAndTopics$.pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{o.length>0&&setTimeout(()=>{let g=o.find(V=>"\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u043e-\u043a\u0430\u0441\u0441\u043e\u0432\u043e\u0435 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435"===V.name);this.selectForm.get("sectionId").setValue(g.id),this.selectForm.get("sectionId").updateValueAndValidity(),setTimeout(()=>{const V=g.topics.find(me=>"\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 (\u0410\u043d\u043a\u0435\u0442\u0430, \u0412\u044b\u043f\u0438\u0441\u043a\u0430 \u0415\u0413\u0420\u042e\u041b \u0438 \u0442.\u043f.), \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0441 \u043e\u0431\u0440\u0430\u0437\u0446\u0430\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439"===me.name);this.selectForm.get("mailType").setValue(V.routeId),this.selectForm.get("mailType").updateValueAndValidity(),this.selectForm.updateValueAndValidity()})},300)}),s&&s.requestCode&&(this.bankRequest=s,this.answer=!0),this.bankRequest&&this.bankRequest.requestCode&&(this.bankRequest.requestSourceId=this.mailService.openedMail$.value.tariffGroupId,this.isRequestResponse=!0),this.initResponse(),s&&s.mailId&&(this.isCopy=!!s.copy,this.mailId=s.mailId,s.copy||(this.pathData=[{capture:"Mail",href:"/mail",bold:!0},{capture:"Editing letters"}],this.title="Editing letters"),this.templateId=s.mailId,this.documentService.getDocumentById("ibankul","post2bank",s.mailId).pipe((0,lo.U)(o=>o.postForBank),(0,Fi.w)(o=>(o&&(this.mail=o,this.selectForm.get("sectionId").setValue(o.categoryId),this.selectForm.updateValueAndValidity(),this.existMail=this.mail,this.finMail=!0,this.onChangeSectionId(o.categoryId),o.attachments&&!Array.isArray(o.attachments)?this.setFiles([o.attachments]):o.attachments&&o.attachments.length&&this.setFiles(o.attachments)),this.mailTypeControlHandle()))).subscribe())}queryParamsHandle(){return this.activatedRoute.queryParams.pipe((0,Fi.w)(s=>(s&&0!==Object.keys(s).length&&(this.selectForm.get("bankPartner").setValue(this.partnersForSelect.find(o=>!0===o.default).value),this.selectForm.get("bankPartner").updateValueAndValidity(),this.selectForm.get("bankPartner").disable(),this.setCategoryAndTopic(this.partnersForSelect.find(o=>!0===o.default).id,s)),this.loading.emit(!1),this.mailTypeControlHandle())),(0,zn.R)(this.destroyed$))}getCategoriesAndTopics(){return this.categoriesAndTopics}initResponse(){if(this.rCode=this.templateData?.specialFormat?parseInt(this.templateData.specialFormat):null,-1===[ei.ph.One,ei.ph.Two,ei.ph.Three,ei.ph.Five,ei.ph.Eight,ei.ph.NinetyNine].indexOf(this.rCode))return this.rCode=null,this.bankRequest={},this.isRequestResponse=!1,void this.loading.emit(!1);this.infoTextFromParent=this.mainMail?.message?.replace("\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u044e","").replace("\r"," ").replace("\n"," ").split(" "),this.infoTextFromParent=this.infoTextFromParent.splice(1,10).join(" "),this.patternText=`\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c! \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0417\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, ${this.infoTextFromParent}, \u043f\u0440\u043e\u0441\u0438\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0431\u0430\u043d\u043a-\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:\n\n`,this.initFieldsForm(),this.rConfig=te,this.rConfig.forEach(s=>s.visual.hide=!0),this.rForm=this.dynamicFormService.generateFormGroup(this.rConfig),this.rCode===ei.ph.NinetyNine?(this.configUtilService.setValidatorsAndUpdate(this.rForm.get("additionalBody"),[l.Validators.required]),this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!1):this.dynamicFormService.getFormField(this.rForm,"radio").valueChanges.subscribe(s=>{this.onChangeRadio(s)}),this.title="Answer to mail"}initFieldsForm(){var s=this;return(0,nn.Z)(function*(){const o=s.parseJsonFields();o.find(g=>[ei.g$.OneHundredOne,ei.g$.OneHundredFour,ei.g$.OneHundredSix,ei.g$.OneHundredSeven].indexOf(g.fieldCode)>-1)&&(yield s.getSelections()),o.forEach(g=>{const V=Array.isArray(g.fieldNameEng)?g.fieldNameEng[0]:g.fieldNameEng,me=Array.isArray(g.fieldNameRus)?g.fieldNameRus[0]:g.fieldNameRus,yt=re.find(Zt=>Zt.field.name==="code_"+g.fieldCode||Zt.field.name===V);if(yt&&(s.fcConfig.push(yt),yt.visual.hide=!1,yt.component.title=me,yt.field.name=V,[ei.g$.OneHundredOne,ei.g$.OneHundredFour,ei.g$.OneHundredSix,ei.g$.OneHundredSeven].indexOf(g.fieldCode)>-1)){let Zt=[];switch(g.fieldCode){case ei.g$.OneHundredOne:Zt=s.dynamicFormService.generateItemsForSelect(s.selections.stat,"id","name","name");break;case ei.g$.OneHundredFour:Zt=s.dynamicFormService.generateItemsForSelect(s.selections.kbk,"id","name","name");break;case ei.g$.OneHundredSix:Zt=s.dynamicFormService.generateItemsForSelect(s.selections.ground,"id","name","name");break;case ei.g$.OneHundredSeven:Zt=s.dynamicFormService.generateItemsForSelect(s.selections.taxPeriod,"id","name"),s.dynamicFormService.getConfigField(s.fcConfig,"tax3").visual.hide=!1,s.fcConfig.push(s.dynamicFormService.getConfigField(re,"tax2")),s.fcConfig[s.fcConfig.length-1].visual.hide=!1,s.fcConfig.push(s.dynamicFormService.getConfigField(re,"tax3")),s.fcConfig[s.fcConfig.length-1].visual.hide=!1}s.dynamicFormService.setSelectItems(s.fcConfig,yt.field.name,Zt)}}),s.isInitCheckBox?s.changeCodeResponse():s.rCode===ei.ph.Eight?s.addAdditionalBody(!1,!0):s.rCode===ei.ph.NinetyNine&&s.addAdditionalBody(!0,!1)})()}setTemplateData(s){if(this.isDisabledText=!1,this.isConsentText=!1,this.isDisabledSaveDraft=!1,this.isInfoTopic=!1,this.isDefaultMail=!0,!this.answer)switch(s){case"108":this.textareaValue="\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a \u043f\u043b\u0430\u0442\u0435\u0436\u0443 \u0432 \u0418\u0440\u0430\u043d.\n\u043d\u043e\u043c\u0435\u0440 \u0423\u041d\u041a \u0438\u043b\u0438 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u0438 \u0434\u0430\u0442\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 (\u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c): _______\n\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u0443\u0447\u0435\u0442 \u0432 \u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\u0435? \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0414\u0410/\u041d\u0415\u0422:__________________\n\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a? \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0414\u0410/\u041d\u0415\u0422:__________________\n\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u043e\u0434\u0435(\u0430\u0445) \u0422\u041d \u0412\u042d\u0414 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430: \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c____________\n\n\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a \u043f\u0438\u0441\u044c\u043c\u0443:\n\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043a \u043f\u043b\u0430\u0442\u0435\u0436\u0443 (\u043a\u043e\u043f\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u0438/\u0438\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0438/\u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0431\u0435\u0437 \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u043d\u0430 \u0443\u0447\u0435\u0442))\n\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441\u043e \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438.";break;case"107":this.textareaValue="\u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0441\u043b\u0443\u0433\u0443 \xab\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0412\u042d\u0414 \u043d\u0430 __3__\xbb (\u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 1, 3, 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432).\n\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u0434\u043e\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 15 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432): _________\n\u041a\u043e\u0434\u043e\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0443\u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0443\u0441\u043b\u0443\u0433\u0438.\n\n\u0421 \u0442\u0430\u0440\u0438\u0444\u0430\u043c\u0438 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d.";break;case"106":this.isDisabledText=!0,this.textareaValue="\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u041a\u043b\u0438\u0435\u043d\u0442:\n - \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043a \u041f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u041f\u0410\u041e \u0410\u041a\u0411 \xab\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\xbb \u0442\u0440\u0430\u043d\u0441\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432 \u0432 \u0418\u0441\u043b\u0430\u043c\u0441\u043a\u0443\u044e \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0443 \u0418\u0440\u0430\u043d \u0438 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u0438\u0440\u0430\u043d\u0441\u043a\u0438\u0445 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u043e\u0432, \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b Bank Melli Iran (\u041e\u0410\u042d), \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 428 \u0413\u0440\u0430\u0436\u0434\u0430\u043d\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0435\u043a\u0441\u0430 \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0439 \u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438, \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041a\u043b\u0438\u0435\u043d\u0442 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u041f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0434\u043b\u044f \u0421\u0442\u043e\u0440\u043e\u043d \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u043b\u0443.";break;case"105":case"116":this.textareaValue="\u0420\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u0442\u0437\u044b\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\n\u041a\u043b\u0438\u0435\u043d\u0442: "+this.dataForRevoke.fullname+"\n\u0418\u041d\u041d \u043a\u043b\u0438\u0435\u043d\u0442\u0430: "+this.dataForRevoke.inn+"\n\u0414\u0430\u0442\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: "+this.datePipe.transform(this.dataForRevoke.docDate,"dd.MM.yyyy")+"\n\u041d\u043e\u043c\u0435\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: "+this.dataForRevoke.docNumber+"\n\u0421\u0443\u043c\u043c\u0430: "+this.dataForRevoke.amount+" "+this.currencySymbolPipe.transform(this.dataForRevoke.currCode)+"\n",this.isDisabledText=!0;break;case"103":this.textareaValue='\u041f\u0440\u043e\u0448\u0443 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0431\u043e\u0440\u043e\u0442\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u043e\u0432-\u0444\u0430\u043a\u0442\u0443\u0440 \u043f\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u041a\u043e\u043d\u0442\u0443\u0440.\u0414\u0438\u0430\u0434\u043e\u043a \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0441 \u0423\u041a\u042d\u041f \u0411\u0430\u043d\u043a\u0430.\n\u0421\u043e\u0433\u043b\u0430\u0441\u0435\u043d \u0441 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u043e\u0432 \u0441\u0447\u0435\u0442\u043e\u0432-\u0444\u0430\u043a\u0442\u0443\u0440 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0431\u0435\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u043e\u0432-\u0444\u0430\u043a\u0442\u0443\u0440 \u043d\u0430 \u0431\u0443\u043c\u0430\u0436\u043d\u043e\u043c \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435.\n\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e, \u0447\u0442\u043e \u0441 \u0442\u0430\u0440\u0438\u0444\u0430\u043c\u0438 \u0411\u0430\u043d\u043a\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u0430 \u0441\u0447\u0435\u0442\u0430-\u0444\u0430\u043a\u0442\u0443\u0440\u044b \u043d\u0430 \u0431\u0443\u043c\u0430\u0436\u043d\u043e\u043c \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d.\n\u041d\u043e\u043c\u0435\u0440 \u0437\u0430\u044f\u0432\u043a\u0438 \u043d\u0430 \u0440\u043e\u0443\u043c\u0438\u043d\u0433: __________ (\u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u042d\u0414\u041e, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u043e\u0442 \u0410\u041e "\u041f\u0424 "\u0421\u041a\u0411 \u041a\u043e\u043d\u0442\u0443\u0440")';break;case"104":this.textareaValue="\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u041a\u043b\u0438\u0435\u043d\u0442:\n- \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043a \u041f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 \xab\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436\xbb \u0432 \u041f\u0410\u041e \u0410\u041a\u0411 \xab\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\xbb \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 428 \u0413\u0440\u0430\u0436\u0434\u0430\u043d\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0435\u043a\u0441\u0430 \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0439 \u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438, \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041a\u043b\u0438\u0435\u043d\u0442 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u041f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0434\u043b\u044f \u0421\u0442\u043e\u0440\u043e\u043d \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u043b\u0443,\n- \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d \u0441 \u0422\u0430\u0440\u0438\u0444\u0430\u043c\u0438, \u0432\u0437\u0438\u043c\u0430\u0435\u043c\u044b\u043c\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0443\u0441\u043b\u0443\u0433\u0438 \xab\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436\xbb \u0411\u0430\u043d\u043a\u043e\u043c \u0438 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u043e\u043c \u0411\u0430\u043d\u043a\u0430,\n- \u043e\u0431\u044f\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043d\u0430 \u0443\u0447\u0435\u0442 \u043a \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0443 \u0411\u0430\u043d\u043a\u0430,\n- \u0434\u0430\u0435\u0442 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u0435 \u0411\u0430\u043d\u043a\u0443 \u043d\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f. 3.2. \u041f\u0440\u0430\u0432\u0438\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432,\n- \u0434\u0430\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u0411\u0430\u043d\u043a\u0443 \u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0423\u0441\u043b\u0443\u0433\u0438 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0443 \u0411\u0430\u043d\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0432\u044b\u043f\u0438\u0441\u043a\u0438 \u0441\u043e \u0441\u0447\u0435\u0442\u0430, \u0438\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0443\u044e \u0438 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0430\u0439\u043d\u0443, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438,\n- \u0434\u0430\u0435\u0442 \u0411\u0430\u043d\u043a\u0443 \u043f\u0440\u0430\u0432\u043e \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0432\u044b\u043f\u0438\u0441\u043a\u0438 \u043f\u043e \u0441\u0447\u0435\u0442\u0443 \u043e\u0442 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0430 \u0411\u0430\u043d\u043a\u0430, \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0449\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0430, \u043e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436 \u0432 \u0412\u0435\u0434\u043e\u043c\u043e\u0441\u0442\u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f.3.2. \u041f\u0440\u0430\u0432\u0438\u043b;\n- \u0434\u0430\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u0411\u0430\u043d\u043a\u0443 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043e\u0442 \u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0430 \u0411\u0430\u043d\u043a\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0423\u0441\u043b\u0443\u0433\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043d\u043e\u043c\u0435\u0440\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u0432\u044b\u043f\u0438\u0441\u043a\u0438 \u0441\u043e \u0441\u0447\u0435\u0442\u0430, \u0438\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0447\u0435\u0440\u0435\u0437 \u0421\u0438\u0441\u0442\u0435\u043c\u0443.\n\n\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u042d\u041f \u0435\u0434\u0438\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 (\u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436) \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0423\u0441\u043b\u0443\u0433\u0438 \u041a\u043b\u0438\u0435\u043d\u0442 \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0441\u044f \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0421\u0435\u0440\u0432\u0438\u0441\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c\u0438 \u044d\u0442\u043e\u0439 \u0436\u0435 \u042d\u041f \u041a\u043b\u0438\u0435\u043d\u0442\u0430.",this.isDisabledText=!0,this.isDisabledSaveDraft=!0;break;case"276010":this.textareaValue="\u041f\u043e\u0440\u0443\u0447\u0430\u044e \u0411\u0430\u043d\u043a\u0443 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \xab\u041e\u0434\u043d\u043e \u043e\u043a\u043d\u043e\xbb \u0432 \u0441\u0444\u0435\u0440\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u0434\u0430\u043b\u0435\u0435 \u0418\u0421 \xab\u041e\u0434\u043d\u043e \u043e\u043a\u043d\u043e\xbb) \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0411\u0430\u043d\u043a\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0418\u0421 \xab\u041e\u0434\u043d\u043e \u043e\u043a\u043d\u043e\xbb.",this.isDisabledText=!0;break;case"109":this.isInfoTopic=!0,this.textareaValue="\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0438\n";break;case"102":this.textareaValue="\u041f\u0440\u043e\u0441\u0438\u043c \u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u0440\u043e\u0437\u044b\u0441\u043a\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441 \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u2116_____________\n\u043f\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u044e\n\u2116 _______________\n\u041e\u0442 ______________\n\u0421\u0443\u043c\u043c\u0430____________________\n\u0432 \u0430\u0434\u0440\u0435\u0441 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f _________________________________________(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f).\n\u041f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0434\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u0435\u0433\u043e \u0441\u0447\u0451\u0442 \u043d\u0435 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b\u0438.\n\u0421 \u0442\u0430\u0440\u0438\u0444\u0430\u043c\u0438 \u0411\u0430\u043d\u043a\u0430 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u044b.";break;case"115":this.selectForm.disable(),this.textareaValue=this.mail.message}this.answer&&"101"===s&&(this.isDisabledText=!0,this.isConsentText=!0,this.textareaValue="\u0414\u0410\u042e \u0421\u0412\u041e\u0415 \u0421\u041e\u0413\u041b\u0410\u0421\u0418\u0415\n"+this.answerMail.message)}onFilesSizeIsLargerThanMax(s){this.toast.show("\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 30\u041c\u0411","error")}checkFileSize(s){this.currentTotalSize=s}deleteFile(s){this.isSizeOk=!0,this.deleteAttachmentsObs.push(this.mailService.deleteFile(this.existMail?this.existMail.id:this.answerMail.id,s).pipe((0,zn.R)(this.destroyed$)))}deleteDraft(){this.documentService.deleteDocument(this.answerMail.id).subscribe(s=>{s.errorText&&this.toast.show(s.errorText,"error"),this.router.navigate(["mail"])})}buildFormFieldsFromSetting(s,o){if("1"===this.mailService.getSettingValue(s,o))switch(o){case"SET_MAIL_TYPE":this.getMailTypeField();break;case"USE_SECTION":this.getMailUnitField()}else this.selectConfig.find(V=>V.field.name===this.fieldFormBySettingsname[o]).visual.hide=!0,this.selectForm.get(this.fieldFormBySettingsname[o]).setValidators([]),this.selectForm.get(this.fieldFormBySettingsname[o]).updateValueAndValidity()}getCurrentTopic(s){return this.mailService.categoriesAndTopics$.value?.find(g=>g.id===(s?s.categoryId:this.answerMail.categoryId))?.topics.find(g=>g.id===(s?s.topicId:this.answerMail.topicId))}getCurrentFormat(){return this.categoriesAndTopics?.find(o=>o.id===this.answerMail.categoryId)?.topics.find(o=>o.id===this.answerMail.topicId)?.specialFormat}getMailTypeField(){this.mailService.getCategoriesAndTopics().pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{this.mailTypes=this.dynamicFormService.generateItemsForSelect(s,"id","name","name"),this.permissionInformation=this.mailTypes.find(o=>o.code===ei.g$.OneHundredOne)})}setCategoryAndTopic(s,o){this.mailService.getCategoriesAndTopics(s).pipe((0,zn.R)(this.destroyed$)).subscribe(g=>{if(this.categoriesAndTopics=g,this.categoriesAndTopics.forEach((V,me)=>{V.topics.some(yt=>"false"===yt.hidden)||(V.hidden="true")}),this.categoriesAndTopics.length&&this.mailService.categoriesAndTopics$.next(this.categoriesAndTopics),this.mailDeps=this.dynamicFormService.generateItemsForSelect(g,"id","name"),this.dynamicFormService.setSelectItems(this.selectConfig,"sectionId",this.mailDeps),this.selectForm.get("sectionId").setValidators([l.Validators.required,Rd.S.allowedValues(this.mailDeps.map(V=>V?.value))]),this.selectForm.get("sectionId").updateValueAndValidity({emitEvent:!1,onlySelf:!0}),this.isRequestResponse&&setTimeout(()=>{this.selectForm.get("sectionId").setValue("90344"),this.selectForm.get("sectionId").disable(),this.selectForm.get("sectionId").updateValueAndValidity()}),this.answer){let V;this.selectedCategory=this.answerMail.categoryId,this.selectedTopic=this.answerMail.topicId;const me=this.categoriesAndTopics?.find(yt=>yt.id===this.selectedCategory);V=Array.isArray(me?.topics)?me?.topics.find(yt=>yt.id===this.selectedTopic):me?.topics,V?.specialFormat?(this.rCode=parseInt(V.specialFormat),this.templateData=V,this.initResponse()):this.isDefaultMail=!0}o&&this.initParamsSettings(o)})}getMailUnitField(){this.answerMail||this.mailService.getBankPartners().subscribe(s=>{this.partnersForSelect=this.dynamicFormService.generateItemsForSelect(s,"id","displayName"),this.dynamicFormService.setSelectItems(this.selectConfig,"bankPartner",this.partnersForSelect),1===s.length&&(this.selectedPartner=s[0],setTimeout(()=>{this.selectForm.get("bankPartner").setValue(this.partnersForSelect[0].value),this.selectForm.get("bankPartner").updateValueAndValidity(),this.setCategoryAndTopic()},300))})}closeOrSave(){this.router.navigate(["mail"])}editDraft(){this.isDraft=!1,this.existDraft=!0}checkValidation(){if(this.isInfoTopic&&!this.permissionInformationForm.valid){this.permissionInformationForm.get("numberOfScore").markAsTouched(),this.permissionInformationForm.get("companyName").markAsTouched(),this.permissionInformationForm.get("headOfEnterprise").markAsTouched(),this.permissionInformationForm.get("chiefAccountant").markAsTouched(),this.permissionInformationForm.get("phones").markAsTouched();const s=this.employeeCount();for(let o=1;o<=s;o++){const g="employee_"+o;this.permissionInformationForm.get(g)&&this.permissionInformationForm.get(g).markAsTouched()}return this.showErrTost(),!1}return this.attachmentSetup?.totalFileMaxSize<this.currentTotalSize?(this.toast.show("\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 ","error"),!1):[this.rCode===ei.ph.NinetyNine&&!this.fcForm.get("additionalBody").value,this.rCode===ei.ph.Eight&&this.fcForm.invalid,(this.rCode===ei.ph.One||this.rCode===ei.ph.Two||this.rCode===ei.ph.Three||this.rCode===ei.ph.Five)&&(!this.chosenRadio||this.chosenRadio&&(this.chosenRadio===ei.ph.Two&&!this.rForm.get("additionalBody").value||this.chosenRadio===ei.ph.Three&&(this.rForm.get("corrAccNumber").invalid||this.rForm.get("corrFullName").invalid||this.rForm.get("corrInn").invalid)))].some(s=>!0===s)?(this.showErrTost(),!1):this.answer||this.selectForm.value.mailType?!(0===this.textareaValue.length&&!this.rCode&&!this.isInfoTopic&&(this.showErrTost(),this.isEmptyText=!0,1)):(0===this.textareaValue.length&&(this.isEmptyText=!0),this.selectForm.get("sectionId").markAsTouched(),this.selectForm.get("mailType").markAsTouched(),this.showErrTost(),!1)}showErrTost(){this.toast.show("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u043d\u0430 \u0444\u043e\u0440\u043c\u0435","error")}save(s=!1,o=!1,g){if(!this.checkValidation())return;if(this.answer){this.deleteAttachmentsObs.length&&(0,Jo.D)(this.deleteAttachmentsObs).subscribe();const me={routeId:this.getCurrentTopic().routeId,id:this.editFromInfo?this.answerMail.id:null,mailRequestId:this.editFromInfo?this.answerMail.mailRequestId?this.answerMail.mailRequestId:null:this.mainMail.id,responseForId:this.editFromInfo?this.answerMail.responseForId?this.answerMail.responseForId:null:this.answerMail.id,specialFormat:this.createResponseData(),message:this.textareaValue,draft:void 0,unitId:this.editFromInfo?this.answerMail.unitId:this.mainMail.unitId?this.mainMail.unitId:null};return void(o?this.mailService.saveDraftMail(me).subscribe(yt=>{this.existMail&&this.documentService.deleteDocument(this.existMail.id).subscribe(),this.mailService.openedMail$.next(yt),(0,Jo.D)(this.userDataService.postAttachment(yt.id,this.files)).subscribe(Zt=>{Zt[0].errorCode?(this.documentService.deleteDocument(yt.id).subscribe(),this.toast.show(this.convertErrText(Zt[0].errorText),"error")):(this.toast.show("\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a \u043f\u0438\u0441\u044c\u043c\u0430","success"),this.mailService.openedDraft$.next(!0),this.router.navigate(["mail"]))})}):(me.draft="false",this.mailService.postMailToBank(me).subscribe(yt=>{this.mailService.openedDraft$.next(!1),(0,Jo.D)(this.userDataService.postAttachment(yt.id,this.files)).subscribe(Zt=>{Zt[0].errorCode?(this.documentService.deleteDocument(yt.id).subscribe(),this.toast.show(Zt[0].errorText,"error")):this.openMail(yt,s)})})))}const V={routeId:this.selectForm.value.mailType,id:this.existMail?this.existMail.id:null,mailRequestId:null,responseForId:null,specialFormat:this.createResponseData(),message:this.textareaValue,unitId:this.selectedPartner.id};o?this.mailService.saveDraftMail(V).subscribe(me=>{this.mailService.openedMail$.next(me),this.mailService.mailOpenedTab$.next(1),this.mailService.openedDraft$.next(!0),(0,Jo.D)(this.userDataService.postAttachment(me.id,this.files)).subscribe(yt=>{yt[0].errorCode?(this.documentService.deleteDocument(me.id).subscribe(),this.toast.show(yt[0].errorText,"error")):(this.toast.show("\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a \u043f\u0438\u0441\u044c\u043c\u0430","success"),this.router.navigate(["mail"]))})}):this.mailService.postMailToBank(V).subscribe(me=>{this.mailService.openedDraft$.next(!1),this.existMail&&this.deleteAttachmentsObs.length&&(0,Jo.D)(this.deleteAttachmentsObs).subscribe(),(0,Jo.D)(this.userDataService.postAttachment(me.id,this.files)).subscribe(yt=>{yt[0].errorCode?(this.documentService.deleteDocument(me.id).subscribe(),this.toast.show(this.convertErrText(yt[0].errorText),"error")):(this.mailService.mailOpenedTab$.next(1),this.openMail(me,s))})})}convertErrText(s){return s.replace("{0}.","")}validTextAria(s){this.isEmptyText=!s.length}permissionInformationKeys(s){let o="";return this.piConfig.forEach(g=>{g.field.name===s&&(o=g.component.title)}),s.includes("employee")&&(o=`\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a ${s.split("employee_")[1]}`),o}createResponseData(){const s=[];let o={fieldName:null,fieldData:null,orderNum:0};if(this.isInfoTopic){let g=0;for(const[V,me]of Object.entries(this.permissionInformationForm.value)){const yt={fieldName:V,fieldData:me,orderNum:g};g+=1,this.textareaValue+=`${this.permissionInformationKeys(V)}: ${me}\n `,s.push(yt)}}if(this.rCode)if(this.rCode===ei.ph.One||this.rCode===ei.ph.Two)switch(this.chosenRadio){case 1:this.textareaValue=`${this.patternText}\u0421\u0443\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u043c\u0438 \u043f\u043e\u0434\u043b\u0435\u0436\u0438\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0443`,o.fieldName="isRefundableAmount",o.fieldData=ei.ph.One.toString(),o.orderNum=0,s.push(o);break;case 2:this.textareaValue=`${this.patternText}${this.rForm.get("additionalBody").value}`,o.orderNum=0,o.fieldName="additionalBody",o.fieldData=this.rForm.get("additionalBody").value,s.push(o);break;case 3:if(this.rForm.get("corrAccNumber").invalid||this.rForm.get("corrFullName").invalid||this.rForm.get("corrInn").invalid)this.textareaValue="",this.toast.show("\u041d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","error");else{this.textareaValue=`${this.patternText}\u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:\n${this.rForm.get("corrAccNumber").value.replace(/\s/g,"")}\n\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:\n${this.rForm.get("corrFullName").value}\n\u0418\u041d\u041d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:\n${this.rForm.get("corrInn").value}`;let g={orderNum:0,fieldName:"corrAccNumber",fieldData:this.rForm.get("corrAccNumber").value.replace(/\s/g,"")},V={orderNum:1,fieldName:"corrFullName",fieldData:this.rForm.get("corrFullName").value},me={orderNum:2,fieldName:"corrInn",fieldData:this.rForm.get("corrInn").value};s.push(g,V,me)}}else if(this.rCode===ei.ph.NinetyNine)this.textareaValue=`${this.patternText}${this.fcForm.get("additionalBody").value}`,o.orderNum=0,o.fieldName="additionalBody",o.fieldData=this.fcForm.get("additionalBody").value,s.push(o);else if(this.rCode!==ei.ph.Eight||this.checkbox08){if(this.rCode===ei.ph.Eight&&this.checkbox08)this.textareaValue=`${this.patternText}${this.fcForm.get("additionalBody").value}`,o.orderNum=0,o.fieldName="additionalBody",o.fieldData=this.fcForm.get("additionalBody").value,s.push(o);else if(this.rCode===ei.ph.Three)switch(this.chosenRadio){case 2:o.orderNum=0,o.fieldName="additionalBody",o.fieldData=this.rForm.get("additionalBody").value,s.push(o),this.textareaValue=`${this.patternText}${this.rForm.get("additionalBody").value}`;break;case 1:o.orderNum=0,o.fieldName="isRefundableAmount",o.fieldData=1,s.push(o),this.textareaValue=`${this.patternText}\u0421\u0443\u043c\u043c\u0430 \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u043c\u0438 \u043f\u043e\u0434\u043b\u0435\u0436\u0438\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0443`;break;case 4:o.orderNum=0,o.fieldName="isDuplicationRequisites",o.fieldData=this.chosenRadio===ei.ph.Four?"0":ei.ph.One.toString(),s.push(o),this.textareaValue=`${this.patternText}\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u043c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u044e \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u043c\u0438.`}else if(this.rCode===ei.ph.Five)switch(this.chosenRadio){case 2:this.textareaValue=`${this.patternText}${this.rForm.get("additionalBody").value}`,o.orderNum=0,o.fieldName="additionalBody",o.fieldData=this.rForm.get("additionalBody").value,s.push(o);break;case 3:this.textareaValue=`${this.patternText}\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:\n${this.rForm.get("corrFullName").value}`,o.orderNum=0,o.fieldName="corrFullName",o.fieldData=this.rForm.get("corrFullName").value,s.push(o)}}else Object.keys(this.fcForm.controls).forEach(g=>{if("additionalBody"!==g)this.fcForm.get(g).value&&(this.textareaValue=`${this.patternText}\n              \u0418\u041d\u041d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:\n${this.fcForm.get(g).value}`,o.orderNum=0,o.fieldName="INN",o.fieldData=this.fcForm.get(g).value),s.push(o);else{const V=this.fcForm.get(g);V.value&&(o.orderNum=0,o.fieldName="additionalBody",o.fieldData=V.value),s.push(o)}});return s.length?s:[]}checkTotalSize(){return!(this.attachmentSetup?.totalFileMaxSize&&this.attachmentSetup.totalFileMaxSize<this.currentTotalSize&&(this.toast.show(`${this.translation.translate("Maximum attachment size")} ${this.formatFileSizePipe.transform(this.attachmentSetup.totalFileMaxSize,this.lang)}`,"error"),1))}openMail(s,o){s.registerStamp=this.configUtilService.formatDateStringDMYHM(s.registerStamp,void 0,","),s.createstamp=this.configUtilService.formatDateStringDMYHM(s.createstamp,void 0,",");const g={inputs:{confirmAction:()=>{this.router.navigate(["mail"])},cancelAction:()=>{!this.existMail&&!this.existDraft&&this.documentService.deleteDocument(s.id).subscribe()},document:{docIds:[s.id],docType:ei.CI.SenderClient,docModule:ei.nW},isMail:!0},isSign:!0,isMail:!0,isSignDesign:!0};this.selectForm.get("sectionId").markAsUntouched(),(!o||this.data.cross.href)&&this.modalService.open(jl.D,g)}onEvent(s){"employeeCount"===s.fieldName&&this.addEmployee(),"resetInput"===s.eventType&&this.removeEmployee(s.fieldName)}onChangeBankPartner(s){this.rCode=null,this.editFromInfo||(this.textareaValue=""),this.fcForm=null,(this.partnersForSelect||[]).find(g=>g.value===s)&&(this.selectForm.get("sectionId").value&&this.selectForm.get("sectionId").setValue(null),this.selectForm.get("mailType").value&&this.selectForm.get("mailType").setValue(null),this.setCategoryAndTopic(s))}onChangeSectionId(s){this.rCode=null,this.textareaValue="",this.fcForm=null,this.whiteListForCategory(s);const o=(this.mailDeps||[]).find(g=>g.value===s);o?(this.selectForm.get("mailType").value&&this.selectForm.get("mailType").setValue(null),this.mailTypes=Array.isArray(o.topics)?o.topics:[o.topics],this.mailTypes=this.mailTypes?.length?[...new Map(this.mailTypes.map(g=>[g.id,g])).values()]:this.mailTypes,this.mailTypes=this.mailTypes.map(g=>({value:g.routeId,caption:g.name,hidden:g.hidden,specialFormat:g.specialFormat,units:g.units})),this.dynamicFormService.setSelectItems(this.selectConfig,"mailType",this.mailTypes),this.selectForm.get("mailType").setValidators([l.Validators.required,Rd.S.allowedValues(this.mailTypes.map(g=>g?.value))]),this.selectForm.get("mailType").updateValueAndValidity({emitEvent:!1,onlySelf:!0}),1===this.mailTypes?.length&&setTimeout(()=>{this.selectForm.get("mailType").setValue(this.mailTypes[0].value),this.selectForm.get("mailType").updateValueAndValidity()})):(this.dynamicFormService.setSelectItems(this.selectConfig,"mailType",[]),this.selectForm.get("mailType").setValidators([l.Validators.required,Rd.S.allowedValues([])]),this.selectForm.get("mailType").setValue(null),this.selectForm.get("mailType").updateValueAndValidity({emitEvent:!1,onlySelf:!0})),this.dataForRevoke&&setTimeout(()=>{this.selectForm.get("mailType").setValue(this.mailTypes.find(g=>g.caption.includes("\u041e\u0442\u0437\u044b\u0432 \u0440\u0443\u0431\u043b\u0435\u0432\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0441 \u0421\u0412\u041e")&&g.specialFormat===this.specFormatByBik).value),this.selectForm.get("mailType").updateValueAndValidity(),this.selectForm.get("mailType").disable(),this.setTemplateData(this.specFormatByBik)}),this.finMail&&setTimeout(()=>{this.selectForm.get("mailType").setValue(this.mailTypes.find(g=>g.value===this.getCurrentTopic(this.mail).routeId).value),this.selectForm.get("mailType").updateValueAndValidity()},300)}addEmployee(){const s=this.employeeCount();this.piConfig.push(v(s)),this.permissionInformationForm.addControl(`employee_${s}`,new l.UntypedFormControl("",l.Validators.required)),this.permissionInformationForm.updateValueAndValidity()}mapPIData(){const s={staff:[]};return Object.entries(this.permissionInformationForm.value).forEach(o=>{-1===o[0].indexOf("employee_")?s[o[0]]=o[1]:s.staff.push({data:o[1]})}),s}removeEmployee(s){const o=this.piConfig.findIndex(g=>g.field.name===s);this.piConfig.splice(o,1),this.permissionInformationForm.removeControl(s),this.permissionInformationForm.updateValueAndValidity()}buttonDisable(){return this.selectForm.invalid||0===this.textareaValue.length&&!this.isPermissionInformation&&!this.isRequestResponse||this.isPermissionInformation&&this.permissionInformationForm.invalid||this.rForm&&this.rCode!==ei.ph.NinetyNine&&(this.rForm.invalid||!this.chosenRadio)||this.rForm&&this.rCode===ei.ph.NinetyNine&&this.rForm.invalid||this.fcForm&&this.fcForm.invalid}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}onChangeRadio(s){switch(this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("additionalBody")),this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("corrAccNumber")),this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("corrFullName")),this.configUtilService.clearValidatorsAndUpdate(this.rForm.get("corrInn")),s){case 1:this.dynamicFormService.getConfigField(this.rConfig,"corrAccNumber").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrFullName").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrInn").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!0;break;case 2:this.configUtilService.setValidatorsAndUpdate(this.rForm.get("additionalBody"),[l.Validators.required]),this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!1,this.dynamicFormService.getConfigField(this.rConfig,"corrAccNumber").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrFullName").visual.hide=!0,this.dynamicFormService.getConfigField(this.rConfig,"corrInn").visual.hide=!0;break;case 3:this.dynamicFormService.getConfigField(this.rConfig,"additionalBody").visual.hide=!0,(1===this.rCode||2===this.rCode)&&(this.configUtilService.setValidatorsAndUpdate(this.rForm.get("corrAccNumber"),[l.Validators.required,l.Validators.minLength(20)]),this.configUtilService.setValidatorsAndUpdate(this.rForm.get("corrInn"),[l.Validators.required,l.Validators.pattern(D),l.Validators.minLength(10)]),this.dynamicFormService.getConfigField(this.rConfig,"corrAccNumber").visual.hide=!1,this.dynamicFormService.getConfigField(this.rConfig,"corrInn").visual.hide=!1),(1===this.rCode||2===this.rCode||5===this.rCode)&&(this.configUtilService.setValidatorsAndUpdate(this.rForm.get("corrFullName"),[l.Validators.required]),this.dynamicFormService.getConfigField(this.rConfig,"corrFullName").visual.hide=!1)}}onChangeCheckbox08(s){this.fcConfig.forEach(o=>{const g=this.dynamicFormService.getConfigField(re,o.field.name);o.field.name===ei.Ww.CheckboxEight||(o.field.name===ei.Ww.AdditionalBody?(this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.AdditionalBody).visual.hide=!s,this.configUtilService.setValidatorsAndUpdate(this.fcForm.get(ei.Ww.AdditionalBody),s?[l.Validators.required]:[])):s?(this.dynamicFormService.getConfigField(this.fcConfig,o.field.name).visual.hide=!0,this.configUtilService.clearValidatorsAndUpdate(this.fcForm.get(o.field.name))):(this.dynamicFormService.getConfigField(this.fcConfig,o.field.name).visual.hide=!1,this.configUtilService.setValidatorsAndUpdate(this.fcForm.get(o.field.name),g.field.validators)))}),this.fcForm.updateValueAndValidity()}parseJsonFields(){try{return JSON.parse(this.bankRequest.requestRequiredFields)}catch{return[]}}addAdditionalBody(s,o){this.fcConfig.push(this.dynamicFormService.getConfigField(re,ei.Ww.CodeSixty)),this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CodeSixty).field.value="",this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CodeSixty).visual.hide=!o,this.fcConfig.push(this.dynamicFormService.getConfigField(re,ei.Ww.CheckboxEight)),this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CheckboxEight).field.value=s,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.CheckboxEight).visual.hide=!o,this.fcConfig.push(this.dynamicFormService.getConfigField(re,ei.Ww.AdditionalBody)),this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.AdditionalBody).visual.hide=!s,this.dynamicFormService.getConfigField(this.fcConfig,ei.Ww.AdditionalBody).field.validators=s?[l.Validators.required]:[],this.isInitCheckBox=!0,this.fcForm=this.dynamicFormService.generateFormGroup(this.fcConfig),this.fcForm.get(ei.Ww.CheckboxEight).valueChanges.subscribe(g=>{this.onChangeCheckbox08(g)})}getSelections(){return new Promise(s=>{this.transferRurService.getLists().subscribe(([o,g,V,me])=>(this.selections.stat=o,this.selections.kbk=g,this.selections.ground=V,this.selections.taxPeriod=me,s(null)))})}setFiles(s){const o=s.map(g=>new _c.h(g));this.filesFormControl.setValue(o)}setupAttachmentsWhiteList(s){const o=s?.extension?.replace(/\n+/g,""),g=o?this.configUtilService.parseJson(o):void 0;g&&(this.topicExtensionBySection=g.section.map(V=>(V.extension=V.extension.replace(/\.+/g,""),V))),this.cdr.detectChanges()}whiteListForCategory(s){let o=this.categoriesAndTopics.find(V=>V.id===s),g=this.topicExtensionBySection.find(V=>V.topicName===o.name);this.allowedFileExtensions=g&&g?.extension?g.extension.split(","):[],this.allowedFileExtensionsTitle=g?g?.extension?"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b: "+g.extension.split(",").join(", "):"":null}static#e=this.\u0275fac=function(o){return new(o||iC)(e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(Ba.w),e.\u0275\u0275directiveInject(ws.l),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(wi.c),e.\u0275\u0275directiveInject(Ur.L),e.\u0275\u0275directiveInject(ir.x),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(js.G),e.\u0275\u0275directiveInject(i.uU),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:iC,selectors:[["app-mail-new"]],inputs:{answer:"answer",mainMail:"mainMail",parentId:"parentId",bankRequest:"bankRequest",answerMail:"answerMail",editFromInfo:"editFromInfo",isEditMail:"isEditMail"},outputs:{loading:"loading"},decls:20,vars:22,consts:[[3,"pathData",4,"ngIf"],[1,"mail-new"],[1,"card"],["class","card__top-block",4,"ngIf"],["data-qa","1657964623773",1,"card__content-block","mail-block"],["data-qa","1657964626503",3,"config","formGroup",4,"ngIf"],["class","info-message",4,"ngIf"],["data-qa","1657964630193",3,"config","formGroup","event",4,"ngIf"],[4,"ngIf"],["class","card__content-block__text",4,"ngIf"],[1,"wrapper-footer"],[1,"buttons",3,"ngClass"],["class","buttons-save","data-qa","1657964748155","text","Save",3,"type","click",4,"ngIf"],["data-qa","1657964750854","text","Send for signature",3,"type","click",4,"ngIf"],["data-qa","1657964750854","text","Sign",3,"type","click",4,"ngIf"],["data-qa","1657964750854","text","Edit",3,"type","click",4,"ngIf"],["data-qa","1657964750854","text","Save draft",3,"type","click",4,"ngIf"],["data-qa","1657964753221","text","Delete",3,"type","click",4,"ngIf"],[3,"pathData"],[1,"card__top-block"],[1,"card__title","section-title"],[1,"close"],["data-qa","1657964612480",1,"title-row-mail-new__close",3,"click"],["emptyCross",""],[1,"cross"],["data-qa","1657964626503",3,"config","formGroup"],[1,"info-message"],[1,"info-message__client"],[1,"info-message__block"],[1,"info-message__text"],["data-qa","1657964630193",3,"config","formGroup","event"],[1,"recall-order__cause"],[1,"radio-wrap"],["name","radio","value","1","class","radio",3,"chosen","label","isModalDesign","changed",4,"ngIf"],["name","radio","value","4","class","radio",3,"chosen","isModalDesign","label","changed",4,"ngIf"],["label","\u0422\u0435\u043a\u0441\u0442 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435","name","radio","value","2",3,"chosen","isModalDesign","changed",4,"ngIf"],["class","reForm",3,"config","formGroup",4,"ngIf"],["name","radio","value","3",3,"chosen","isModalDesign","label","changed",4,"ngIf"],["name","radio","value","1",1,"radio",3,"chosen","label","isModalDesign","changed"],["name","radio","value","4",1,"radio",3,"chosen","isModalDesign","label","changed"],["label","\u0422\u0435\u043a\u0441\u0442 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435","name","radio","value","2",3,"chosen","isModalDesign","changed"],[1,"reForm",3,"config","formGroup"],["name","radio","value","3",3,"chosen","isModalDesign","label","changed"],[1,"card__content-block__text"],["cdkTextareaAutosize","","class","recall-order__textarea","data-qa","1657964635634",3,"ngModel","disabled","placeholder","ngModelChange",4,"ngIf"],["class","recall-order__block",3,"innerHTML",4,"ngIf"],["class","draft-data",4,"ngIf"],[3,"disabledInput","hidden","formControl","maxAmountFilesSizeByte","maxFileSizeByte","mimeTypesLabel","mimeTypes","fileFormats","mailDesign","filesIsLargerThenMaximum","fileSizeIsOk","removeAttachment"],["cdkTextareaAutosize","","data-qa","1657964635634",1,"recall-order__textarea",3,"ngModel","disabled","placeholder","ngModelChange"],["cause",""],[1,"recall-order__block",3,"innerHTML"],[1,"draft-data"],["data-qa","1657964748155","text","Save",1,"buttons-save",3,"type","click"],["data-qa","1657964750854","text","Send for signature",3,"type","click"],["data-qa","1657964750854","text","Sign",3,"type","click"],["data-qa","1657964750854","text","Edit",3,"type","click"],["data-qa","1657964750854","text","Save draft",3,"type","click"],["data-qa","1657964753221","text","Delete",3,"type","click"]],template:function(o,g){1&o&&(e.\u0275\u0275template(0,Fe,1,1,"app-path",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,Lt,8,4,"div",3),e.\u0275\u0275elementStart(4,"div",4),e.\u0275\u0275template(5,un,1,2,"app-dynamic-form",5),e.\u0275\u0275template(6,_n,6,2,"div",6),e.\u0275\u0275template(7,Cn,1,2,"app-dynamic-form",7),e.\u0275\u0275template(8,ji,10,7,"div",8),e.\u0275\u0275template(9,Na,6,15,"div",9),e.\u0275\u0275elementStart(10,"div",10)(11,"div",11),e.\u0275\u0275template(12,ga,1,1,"app-button",12),e.\u0275\u0275template(13,kr,1,1,"app-button",13),e.\u0275\u0275template(14,Xr,1,1,"app-button",14),e.\u0275\u0275template(15,Go,1,1,"app-button",15),e.\u0275\u0275template(16,Wr,1,1,"app-button",16),e.\u0275\u0275template(17,Zr,1,1,"app-button",14),e.\u0275\u0275template(18,rd,1,1,"app-button",16),e.\u0275\u0275template(19,Uu,1,1,"app-button",17),e.\u0275\u0275elementEnd()()()()()),2&o&&(e.\u0275\u0275property("ngIf",!g.answer),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("answer",g.answer),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("answer",g.answer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.answer),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!g.answer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.rCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isInfoTopic),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.rCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isPermissionInformation&&!g.isRequestResponse&&!g.rCode&&!g.isInfoTopic&&g.isDefaultMail),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(20,$c,"draft"===(null==g.answerMail?null:g.answerMail.status))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.mailId&&g.answer&&!g.isDraft),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isDraft&&"draft"!==(null==g.answerMail?null:g.answerMail.status)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isDraft&&g.answerMail&&"new"!==(null==g.answerMail?null:g.answerMail.status)&&!g.answer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isDraft),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isDraft&&"draft"!==(null==g.answerMail?null:g.answerMail.status)&&!g.isDisabledSaveDraft),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.existDraft&&"new"!==g.answerMail.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.existDraft&&"new"!==g.answerMail.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isDraft))},dependencies:[l.DefaultValueAccessor,l.NgControlStatus,l.NgControlStatusGroup,l.NgModel,he.IC,qo.U,fe.s,l.FormControlDirective,l.FormGroupDirective,i.mk,i.O5,ye.r,aa.l,Xt.r,yi.X$,i.uU],styles:['@charset "UTF-8";.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.metib-full-width[_ngcontent-%COMP%]{width:100%;margin-right:0}.metib-one-inline[_ngcontent-%COMP%]{width:calc(100% - 10px)}.metib-three-quarters-inline[_ngcontent-%COMP%]{width:calc(75% - 10px)}.metib-half-inline[_ngcontent-%COMP%]{width:calc(50% - 10px)}.metib-three-inline[_ngcontent-%COMP%]{width:calc(33.33% - 10px)}.metib-two-thirds-inline[_ngcontent-%COMP%]{width:calc(66.66% - 10px)}.metib-quarter[_ngcontent-%COMP%]{width:calc(25% - 10px)}.metib-five-inline[_ngcontent-%COMP%]{width:calc(19% - 5px)}.dynamic-select__icon[_ngcontent-%COMP%]{display:block;height:5px;width:10px;fill:#88909b;cursor:pointer}.mdc-dialog[_ngcontent-%COMP%]   .mdc-dialog__surface[_ngcontent-%COMP%]{overflow:visible}.mat-dialog-container.cdk-dialog-container[_ngcontent-%COMP%]{background:#fff;padding:0}.cdk-overlay-container[_ngcontent-%COMP%]{z-index:1101}pre.info[_ngcontent-%COMP%]{background-color:#fafad2;color:#444;width:500px;font-size:12px;z-index:99999}html[_ngcontent-%COMP%]{box-sizing:border-box;overflow-y:scroll}*[_ngcontent-%COMP%]{box-sizing:inherit}body[_ngcontent-%COMP%]{background-color:#f1f2f2}body.freeze[_ngcontent-%COMP%]{overflow:hidden}ul[_ngcontent-%COMP%], li[_ngcontent-%COMP%]{margin:0;padding:0;display:block}.new-mail__message_text[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .new-mail__message_text[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding-inline-start:40px}.new-mail__message_text[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:1em;padding:0;display:list-item}a[_ngcontent-%COMP%]{word-wrap:break-word;word-break:break-all}app-svg-icon[_ngcontent-%COMP%]{font-size:0;display:block}svg[_ngcontent-%COMP%], svg[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:hover, svg[_ngcontent-%COMP%]:active{outline:none;border:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#iqchannels-widget-container[_ngcontent-%COMP%]{z-index:9999!important}#iqchannels-widget-icon[_ngcontent-%COMP%]{z-index:9998!important;width:45px!important;height:45px!important;box-shadow:0 0 10px #4446!important;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%)}#iqchannels-widget-icon[_ngcontent-%COMP%]:hover{width:45px!important;height:45px!important;margin-right:2px!important;margin-bottom:2px!important}#iqchannels-widget-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#fff!important;padding:0!important;margin:11px;width:24px!important;height:24px!important}#iqchannels-widget-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]:hover{width:24px!important;height:24px!important;padding:0!important}@media (max-width: 768px){#iqchannels-widget[_ngcontent-%COMP%]{width:280px!important}#iqchannels-widget-container[_ngcontent-%COMP%]{width:280px!important;height:100%!important}}@media (max-width: 640px){#iqchannels-widget-icon[_ngcontent-%COMP%]{opacity:.5!important}}@media (max-width: 360px){#iqchannels-widget[_ngcontent-%COMP%]{width:100%!important}#iqchannels-widget-container[_ngcontent-%COMP%]{width:100%!important;height:100%!important}}.container[_ngcontent-%COMP%]{margin-top:25px;background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:0 30px 20px;position:relative;min-height:400px}.container.inline[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]{height:100px;width:100%;border-bottom:1px solid #dedede;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;color:#080708;padding-top:40px;padding-bottom:20px;font-weight:700}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .item.clickable[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;text-decoration:underline}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:first-child{margin-right:20px}@media (min-width: 1280px){.container[_ngcontent-%COMP%]{max-width:1200px}}.arrow-icon[_ngcontent-%COMP%]{width:11px;height:7px;fill:#2f54eb;cursor:pointer}.rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-button-focus-overlay[_ngcontent-%COMP%], mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-button-ripple-round[_ngcontent-%COMP%], mat-datepicker-toggle[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:none}mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-mdc-button-persistent-ripple[_ngcontent-%COMP%]{display:none}.mat-form-field-suffix[_ngcontent-%COMP%]{top:6px}.my-period-dates-calendar[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-wrapper[_ngcontent-%COMP%]{padding:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{padding:0;border:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-underline[_ngcontent-%COMP%]{height:0;bottom:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-input-element[_ngcontent-%COMP%]{color:#7180b9;text-decoration:underline;cursor:pointer;font-weight:700;font-size:24px;font-family:Open Sans,Source Sans Pro,sans-serif}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-input-element.disabled[_ngcontent-%COMP%]{opacity:1;text-decoration:unset;color:#080708}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{width:132px;font-size:24px}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-suffix[_ngcontent-%COMP%], .my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-suffix[_ngcontent-%COMP%]   .mat-datepicker-toggle[_ngcontent-%COMP%]{position:absolute;inset:0}.my-period-dates-calendar[_ngcontent-%COMP%]   .mat-form-field-suffix[_ngcontent-%COMP%]   .mat-datepicker-toggle[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;inset:0;opacity:0}.my-period-dates[_ngcontent-%COMP%]{line-height:33px;display:flex;margin-top:2px}.my-period-dates[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}.my-period-dates.static[_ngcontent-%COMP%]{pointer-events:none}.my-period-dates.static[_ngcontent-%COMP%]     .mat-form-field-infix input{text-decoration:none}.mat-form-field-underline[_ngcontent-%COMP%]{height:0!important}.mat-datepicker-popup[_ngcontent-%COMP%] > .mat-datepicker-content[_ngcontent-%COMP%]{border-radius:8px}.mat-calendar-body-selected[_ngcontent-%COMP%]{background-color:#2f54eb}.my-payment-menu-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:40px;height:40px;padding:0;border:none;background:none;outline:none;transition:opacity .2s ease;opacity:.6;cursor:pointer}.my-payment-menu-btn[_ngcontent-%COMP%]:hover{opacity:1}.my-payment-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .my-payment-menu-btn[_ngcontent-%COMP%]:before, .my-payment-menu-btn[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:5px;height:5px;border-radius:50%;background-color:#88909b;left:calc(50% - 3px)}.my-payment-menu-btn[_ngcontent-%COMP%]:before{top:10px}.my-payment-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{top:20px}.my-payment-menu-btn[_ngcontent-%COMP%]:after{top:30px}.my-reference-menu-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:40px;height:40px;padding:0;border:none;background:none;outline:none;transition:opacity .2s ease;opacity:.6;cursor:pointer}.my-reference-menu-btn[_ngcontent-%COMP%]:hover{opacity:1}.my-reference-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .my-reference-menu-btn[_ngcontent-%COMP%]:before, .my-reference-menu-btn[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:3px;height:3px;border-radius:50%;background-color:#88909b;left:calc(50% - 3px)}.my-reference-menu-btn[_ngcontent-%COMP%]:before{top:10px}.my-reference-menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{top:16px}.my-reference-menu-btn[_ngcontent-%COMP%]:after{top:22px}@media (max-width: 768px){.my-reference-menu-btn[_ngcontent-%COMP%]{width:24px;height:24px}}.highlighted[_ngcontent-%COMP%]{color:#2f54eb}.section-shadow[_ngcontent-%COMP%], .card[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px}.card[_ngcontent-%COMP%]{position:relative;background-color:#fff;padding:35px 30px 40px}.section-title[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;color:#080708;font-weight:700}@media only screen and (min-width: 1500px){.section-title[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%]{font-size:24px}}.section-title_with-padding[_ngcontent-%COMP%]{padding:0 16px}@media only screen and (min-width: 1500px){.section-title_with-padding[_ngcontent-%COMP%]{padding:0}}.section-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#2f54eb;text-decoration:underline;cursor:pointer;-webkit-user-select:none;user-select:none}.block-title[_ngcontent-%COMP%]{font-size:22px;color:#284681;font-weight:600}.card-title[_ngcontent-%COMP%]{padding-bottom:34px;border-bottom:1px solid #dedede}.w100[_ngcontent-%COMP%]{width:100%}.cross-wrap[_ngcontent-%COMP%]{position:absolute;right:30px;top:35px}.cross[_ngcontent-%COMP%]{width:18px;height:18px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.cross[_ngcontent-%COMP%]:before, .cross[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.cross[_ngcontent-%COMP%]:before{height:2px;width:100%}.cross[_ngcontent-%COMP%]:after{width:2px;height:100%}.cross.small[_ngcontent-%COMP%]{width:15px;height:15px}.cross-close.mat-icon[_ngcontent-%COMP%]{font-size:20px;width:18px}.cross-close-sign[_ngcontent-%COMP%]{width:18px;height:18px}.document-icon[_ngcontent-%COMP%]{height:24px;width:24px}.cross-close[_ngcontent-%COMP%]{height:22px;width:22px}.small-cross[_ngcontent-%COMP%]{width:16px;height:16px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.small-cross[_ngcontent-%COMP%]:before, .small-cross[_ngcontent-%COMP%]:after{content:"";position:absolute;background-color:#88909b}.small-cross[_ngcontent-%COMP%]:before{height:2px;width:100%}.small-cross[_ngcontent-%COMP%]:after{width:2px;height:100%}.small-cross.small[_ngcontent-%COMP%]{width:15px;height:15px}.small-cross.orange[_ngcontent-%COMP%]:before, .small-cross.orange[_ngcontent-%COMP%]:after{background:linear-gradient(90deg,#f39034 0%,#ff2727 100%)}.tab-number[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#2f54eb;border-radius:100px;display:flex;justify-content:center;color:#fff;align-items:center;transform:translateY(-17px);font-size:.8em;padding:10px}.tab-number.top-right-position[_ngcontent-%COMP%]{position:absolute;top:50%;right:-17px}.no-operations[_ngcontent-%COMP%]{margin:35px 0;text-align:center;font-size:22px}.shield-icon[_ngcontent-%COMP%]{width:27px;height:27px}.shield-icon.icon-green[_ngcontent-%COMP%]{fill:#28b26d}.shield-icon.icon-grey[_ngcontent-%COMP%]{fill:#88909b}.shield-icon.icon-red[_ngcontent-%COMP%]{fill:#d9291e}.shield-icon.icon-yellow[_ngcontent-%COMP%]{fill:#ffe142}.type-icon.favorite[_ngcontent-%COMP%]{width:32px;height:32px}.type-icon.corr[_ngcontent-%COMP%]{width:50px;height:50px}.type-icon.self[_ngcontent-%COMP%]{fill:#2f54eb}.type-icon.ul[_ngcontent-%COMP%]{fill:#53b8d8}.type-icon.fl[_ngcontent-%COMP%]{fill:#53d880}.type-icon.ip[_ngcontent-%COMP%]{fill:#4080a4}.type-icon.bf[_ngcontent-%COMP%]{fill:#53b8d8}.type-icon.nalog[_ngcontent-%COMP%]{fill:#d85353}.type-icon.tamozh[_ngcontent-%COMP%]{fill:#d89353}.rotate-icon[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_rotating360 3s linear infinite normal}@keyframes _ngcontent-%COMP%_rotating360{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tab-number[_ngcontent-%COMP%]{background-color:#d64040}.import-modal[_ngcontent-%COMP%]   mat-dialog-container[_ngcontent-%COMP%]{overflow:visible}.link_underline[_ngcontent-%COMP%]{color:#2f54eb;cursor:pointer;text-decoration:underline}.flex[_ngcontent-%COMP%]{display:flex}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(8,7,8,.6)}mat-paginator[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{background:none}.bottom-panel[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";width:20px;height:20px;background-color:#1a2a40;top:-6px;left:50%;transform:rotate(45deg)}.top-panel[_ngcontent-%COMP%]   article[_ngcontent-%COMP%]:before{position:absolute;display:block;content:"";width:20px;height:20px;background-color:#1a2a40;bottom:-6px;left:50%;transform:rotate(45deg)}app-datepicker.disabled[_ngcontent-%COMP%]   mat-datepicker-toggle[_ngcontent-%COMP%]{pointer-events:none}.mail-new[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 32px 40px;border-radius:2px;box-shadow:#0807080d 0 4px 15px}.mail-new[_ngcontent-%COMP%]   .card__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede;display:flex;justify-content:space-between}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]{margin-top:22px;width:100%}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__cause[_ngcontent-%COMP%]{max-width:660px;width:100%;border-radius:12px;border:1px solid #88909b;min-height:97px;margin-bottom:20px}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__label[_ngcontent-%COMP%]{cursor:pointer;margin:12px 13px;font-size:12px;border-radius:12px;color:#88909b}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__block[_ngcontent-%COMP%]{padding:20px}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]{width:626px;max-height:600px;margin:16px;min-height:56px;outline:none;border:none;font-size:16px;color:#444;resize:vertical;font-family:Source Sans Pro,sans-serif;box-sizing:border-box;padding:0}@media screen and (min-width: 375px) and (max-width: 768px){.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]{width:90%}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]::placeholder{font-size:12px}}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dedede;border-radius:4px}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:253px;background-color:#f1f2f2}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .recall-order__textarea[_ngcontent-%COMP%]::placeholder{color:#88909b}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{background-color:#f1f2f2;min-height:168px;width:300px;margin:11px 0 11px -12px;z-index:2}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .attachment__text[_ngcontent-%COMP%]{display:flex;padding:13px 17px;color:#88909b;cursor:pointer}.mail-new[_ngcontent-%COMP%]   .card__content-block__text[_ngcontent-%COMP%]   .attachment__text[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:10px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:17px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left[_ngcontent-%COMP%]{color:#88909b;display:flex;font-size:18px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__date[_ngcontent-%COMP%]{padding-right:5px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__text[_ngcontent-%COMP%]{color:#444}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-title[_ngcontent-%COMP%]{font-size:22px;margin-top:8px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-description[_ngcontent-%COMP%]{font-size:20px;margin-top:17px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;margin-top:47px;justify-content:space-between}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:20px}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:first-child{margin-left:0}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons-save[_ngcontent-%COMP%]{margin-right:0}.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons-text[_ngcontent-%COMP%]{color:#2f54eb;font-weight:600;margin:auto auto auto 48px;cursor:pointer}@media screen and (min-width: 375px) and (max-width: 768px){.mail-new[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .wrapper-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:block;width:100%}}.mail-new[_ngcontent-%COMP%]   .answer[_ngcontent-%COMP%]{box-shadow:unset}[_nghost-%COMP%]     .mail-new-attachment-icon{width:11px;height:22px;fill:#88909b}[_nghost-%COMP%]     .mail-new-file-icon{width:16px;height:20px;fill:#88909b}@media screen and (min-width: 375px) and (max-width: 768px){.mail-new[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{padding:16px 16px 28px}.mail-new[_ngcontent-%COMP%]   .card__top-block[_ngcontent-%COMP%]{padding-bottom:16px}}.import__button[_ngcontent-%COMP%]{cursor:pointer}.import__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:30px}.import__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.import__button-label__input[_ngcontent-%COMP%]{display:none}.import__button.view[_ngcontent-%COMP%]{margin-right:20px}.import__button.load[_ngcontent-%COMP%]{width:170px}.files[_ngcontent-%COMP%]{padding:13px 21px;min-height:100px;overflow:hidden;overflow-y:scroll;scrollbar-width:none}.files[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.files__item[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}.files__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.files__item[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:12px}.files__item-name[_ngcontent-%COMP%]{color:#444}.files__item-cross[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:15px}  .radio-wrap{margin-top:1em}  .radio-wrap .radio{padding:.3em 0}.mail-new-wrapper[_ngcontent-%COMP%]{background:#ffffff;box-shadow:none;border-radius:2px;display:flex;flex-direction:column;padding:32px}.mail-new-wrapper[_ngcontent-%COMP%]   .wrapper-form-new-mail[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:660px}.mail-new-wrapper[_ngcontent-%COMP%]   .wrapper-form-new-mail[_ngcontent-%COMP%]     .dynamic-input__title{padding:12px 0 0}.mail-new-wrapper[_ngcontent-%COMP%]   .wrapper-form-new-mail[_ngcontent-%COMP%]   .wrapper-persons-inputs[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative}.mail-new-wrapper[_ngcontent-%COMP%]   .wrapper-form-new-mail[_ngcontent-%COMP%]   .wrapper-persons-inputs[_ngcontent-%COMP%]     .remove-person{position:absolute;right:-23px;bottom:15px;width:23px;height:23px;fill:#e23428;cursor:pointer;padding:4px}.mail-new-wrapper[_ngcontent-%COMP%]   .wrapper-form-new-mail[_ngcontent-%COMP%]   .add-new-person-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;margin-top:30px;cursor:pointer}.mail-new-wrapper[_ngcontent-%COMP%]   .wrapper-form-new-mail[_ngcontent-%COMP%]   .add-new-person-wrapper[_ngcontent-%COMP%]     .icon-new-person{width:9px;height:9px;transform:rotate(-45deg);fill:#2f54eb}.mail-new-wrapper[_ngcontent-%COMP%]   .wrapper-form-new-mail[_ngcontent-%COMP%]   .add-new-person-wrapper[_ngcontent-%COMP%]   .text-new-person[_ngcontent-%COMP%]{margin-left:12px;font-family:Open Sans;font-style:normal;font-weight:600;font-size:14px;line-height:19px;color:#2f54eb}.mail-new-wrapper[_ngcontent-%COMP%]   .action-wrapper-chat[_ngcontent-%COMP%]{margin-top:48px;display:flex;align-items:center}.title-block[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:24px;line-height:33px;color:#444;margin-bottom:22px}.title-block[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600}.title-block.mt30[_ngcontent-%COMP%]{margin-top:30px}.btn[_ngcontent-%COMP%]{background:#2f54eb;border-radius:4px;display:flex;justify-content:center;align-content:center;height:max-content;width:max-content;cursor:pointer}.btn[_ngcontent-%COMP%]   .text-btn[_ngcontent-%COMP%]{padding:14px 28px;font-family:Open Sans;font-style:normal;font-weight:700;font-size:14px;line-height:19px;text-align:center;color:#fff}.btn.white[_ngcontent-%COMP%]{border:1px solid #2f54eb;border-radius:4px;background:#fff}.btn.white[_ngcontent-%COMP%]   .text-btn[_ngcontent-%COMP%]{color:#2f54eb}.btn.mr16[_ngcontent-%COMP%]{margin-right:16px}.mail-block[_ngcontent-%COMP%]{max-width:660px;margin-top:22px}.answer[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{padding:0}.wrong-text[_ngcontent-%COMP%]{color:#e23428;padding:6px 0;font-size:14px}.wrong-border[_ngcontent-%COMP%]{border-color:#e23428!important}.margin-none[_ngcontent-%COMP%]{margin-top:12px!important}.draft-data[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:#444;font-size:14px;padding:0 12px 12px}.close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer;margin-top:3px}.title-row-mail-new[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:0 0 32px;border-bottom:1px solid #dedede}.title-row-mail-new__close[_ngcontent-%COMP%]{height:32px;width:32px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.title-row-mail-new[_ngcontent-%COMP%]   .text-title-row-mail-new[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:24px;line-height:33px;color:#080708}.title-row-mail-new[_ngcontent-%COMP%]     .close{cursor:pointer;width:17px;height:17px;fill:#88909b}.info-message[_ngcontent-%COMP%]{max-width:660px;width:100%}.info-message__client[_ngcontent-%COMP%]{width:100%;text-align:end;font-family:Open Sans,Source Sans Pro,sans-serif;color:#88909b;font-size:14px;padding:4px 0 8px;font-weight:600}.info-message__block[_ngcontent-%COMP%]{border-radius:12px 0 12px 12px;background-color:#dae0f2;padding:20px}.info-message__text[_ngcontent-%COMP%]{font-size:15px;font-weight:400;line-height:140%;color:#080708}']})};function Fd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",25),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"date"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,o.mail.changeDialogDate?o.mail.changeDialogDate:o.mail.createStamp,"dd.MM.yyyy, HH:mm")," ")}}function hu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",26),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.currentCategory.name)}}function fu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.mail.unit.displayName)}}function Vu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",28),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("\u2116 \u041e\u0411\u0420\u0410\u0429\u0415\u041d\u0418\u042f: ",null==o.mail?null:o.mail.id,"")}}function Ul(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",29),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"Fixed",o.lang))}}function df(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",30),e.\u0275\u0275text(1,"\u0412\u0430\u0436\u043d\u043e"),e.\u0275\u0275elementEnd())}function uf(M,s){1&M&&e.\u0275\u0275element(0,"div",31)}function O0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",32),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"maxStringLength"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,o.currentTopic.name,100))}}function T_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",33),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.closeOrSave())}),e.\u0275\u0275elementEnd()}}function wp(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",34),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.getAttach(me.id,me.fileName,yt.mail.id))}),e.\u0275\u0275elementStart(1,"div",35),e.\u0275\u0275element(2,"div",36),e.\u0275\u0275elementStart(3,"div",37),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",38),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",39),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"formatFileSize"),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(2);e.\u0275\u0275attribute("data-qa","1657964918115"+g),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(V.returnNameOrFormat(o.fileName,0)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(".",V.returnNameOrFormat(o.fileName,1),""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,4,o.fileSize,V.lang))}}function I_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.getAllAttachments(V.mail.id))}),e.\u0275\u0275elementStart(1,"mat-icon",41),e.\u0275\u0275text(2,"save_alt"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,1,"Download all attachments",o.lang)," ")}}function $u(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,o.mailService.returnStatusText(o.mail),o.lang))}}function Ap(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"date"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,o.messageTime(o.mail,!0),"dd.MM.yyyy HH:mm")," ")}}function w_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",47),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"date"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().index,g=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,g.dateMailReturn(o),"dd.MM.yyyy"))}}(0,Wi.gn)([(0,yi.SQ)()],fl.prototype,"lang",void 0),fl=(0,Wi.gn)([Mr()],fl);const _m=function(M){return{"new-mail__sender-client":M}};function A_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,_m,(null==o?null:o.docType)===g.sender.SenderClient)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",g.senderName(o)," ")}}function gm(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",34),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext().$implicit,Zt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Zt.getAttach(me.id,me.fileName,yt.id))}),e.\u0275\u0275elementStart(1,"div",49),e.\u0275\u0275element(2,"div",36),e.\u0275\u0275elementStart(3,"div",37),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",39),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"formatFileSize"),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657964918115"+g),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(o.fileName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(7,3,o.fileSize,V.lang))}}function pf(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(me.getAllAttachments(V.id))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"Download all attachments",o.lang))}}function mf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,g.mailService.returnStatusText(o),g.lang)," ")}}const hf=function(M,s){return{"new-mail__message-client":M,"new-mail__empty-title":s}};function vm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275template(1,w_,3,4,"div",44),e.\u0275\u0275template(2,A_,2,4,"div",45),e.\u0275\u0275elementStart(3,"div",46),e.\u0275\u0275element(4,"div",19),e.\u0275\u0275template(5,gm,8,6,"div",20),e.\u0275\u0275template(6,pf,3,4,"div",21),e.\u0275\u0275elementStart(7,"div",22)(8,"div"),e.\u0275\u0275template(9,mf,3,4,"span",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div"),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"date"),e.\u0275\u0275elementEnd()()()()),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("hidden",V.childrenMails.length-1===g&&V.draftEdit)("id",o.id),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.dateMailReturn(g)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.prevType(g)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(13,hf,(null==o?null:o.docType)===V.sender.SenderClient,!V.prevType(g))),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",V.findLinks(o),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==o?null:o.attachments),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o||null==o.attachments?null:o.attachments.length)>1),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.docType===V.sender.SenderClient),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(12,10,V.messageTime(o),"dd.MM.yyyy HH:mm")," ")}}function nh(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,vm,13,16,"div",42),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.childrenMails)}}function k_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",52)(1,"app-button",56),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.answer())}),e.\u0275\u0275elementEnd()()}2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("type","medium-for-sign-mail"))}function ih(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",50),e.\u0275\u0275template(1,k_,2,1,"div",51),e.\u0275\u0275elementStart(2,"div",52)(3,"app-button",53),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.pin())}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",54)(5,"mat-icon",55),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.printMail())}),e.\u0275\u0275text(6,"local_printshop"),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"!==(null==o.focusMail?null:o.focusMail.isInformation)),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("text",o.mail.fixed===o.fixedMail.True?"Unpin":"Pin"),e.\u0275\u0275property("type","medium-for-sign-mail"),e.\u0275\u0275advance(2),e.\u0275\u0275property("fontSet","material-icons-outlined")}}function kp(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",52)(1,"app-button",58),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.signMail())}),e.\u0275\u0275elementEnd()()}2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("type","medium-for-sign-mail"))}function L_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",52)(1,"app-button",53),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.answer(!0))}),e.\u0275\u0275elementEnd()()}2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("text","Edit"),e.\u0275\u0275property("type","medium-for-sign-mail"))}function R_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",53),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.deleteMail())}),e.\u0275\u0275elementEnd()}2&M&&(e.\u0275\u0275propertyInterpolate("text","Delete"),e.\u0275\u0275property("type","medium-for-sign-mail"))}function F_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",53),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.deleteSign())}),e.\u0275\u0275elementEnd()}2&M&&(e.\u0275\u0275propertyInterpolate("text","Delete sign"),e.\u0275\u0275property("type","medium-for-sign-mail"))}function B_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",50),e.\u0275\u0275template(1,kp,2,1,"div",51),e.\u0275\u0275template(2,L_,2,2,"div",51),e.\u0275\u0275elementStart(3,"div",52),e.\u0275\u0275template(4,R_,1,2,"app-button",57),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",52),e.\u0275\u0275template(6,F_,1,2,"app-button",57),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.focusMail.status!==o.mailStatus.Draft),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","1"!==o.focusMail.signStatus),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.focusMail.signStatus!==o.signStatus.PartiallySigned),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.focusMail.signStatus===o.signStatus.PartiallySigned)}}function ff(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-mail-new",59),e.\u0275\u0275listener("loading",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.loader=V)}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("answer",!0)("mainMail",o.mail)("isEditMail","new"===o.focusMail.status||"2"!==o.focusMail.signStatus)("editFromInfo",o.draftEdit)("answerMail",o.focusMail)("bankRequest",o.request)("parentId",o.mail.id)}}const _f=function(M,s){return{"new-mail__message-client":M,"new-mail__draft":s}};function gf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),e.\u0275\u0275template(4,Fd,3,4,"div",6),e.\u0275\u0275elementStart(5,"div",7),e.\u0275\u0275template(6,hu,2,1,"div",8),e.\u0275\u0275template(7,fu,2,1,"div",9),e.\u0275\u0275template(8,Vu,2,1,"div",10),e.\u0275\u0275template(9,Ul,3,4,"div",11),e.\u0275\u0275template(10,df,2,0,"div",12),e.\u0275\u0275template(11,uf,1,0,"div",13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(12,O0,3,4,"div",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(13,T_,1,0,"div",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",16)(15,"div",17),e.\u0275\u0275text(16),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div",18),e.\u0275\u0275element(18,"div",19),e.\u0275\u0275template(19,wp,10,7,"div",20),e.\u0275\u0275template(20,I_,5,4,"div",21),e.\u0275\u0275elementStart(21,"div",22)(22,"div"),e.\u0275\u0275template(23,$u,3,4,"span",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(24,Ap,3,4,"div",23),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(25,nh,2,1,"ng-container",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(26,ih,7,4,"div",24),e.\u0275\u0275template(27,B_,7,4,"div",24),e.\u0275\u0275template(28,ff,2,7,"div",23),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",o.mail.createStamp),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.currentCategory),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.mail.unit&&"false"===o.mail.unit.isDefault),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","post2client"!==o.mail.docType&&"draft"!==o.mail.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.mail.fixed===o.fixedMail.True),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"===(null==o.mail?null:o.mail.isRequiredReading)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.checkAttachments()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.currentTopic),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data.cross.href),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(23,_m,o.mail.docType===o.sender.SenderClient))("hidden",o.answerValue&&o.mail.status===o.mailStatus.Draft),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.senderName(o.mail)," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(25,_f,o.mail.docType===o.sender.SenderClient,(o.mail.status===o.mailStatus.Draft||"0"===o.mail.signStatus)&&o.mail.docType===o.sender.SenderClient))("hidden",o.answerValue&&(o.mail.status===o.mailStatus.Draft||"0"===o.mail.signStatus)&&o.mail.docType===o.sender.SenderClient),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",o.findLinks(o.mail),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mail.attachments),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o.mail||null==o.mail.attachments?null:o.mail.attachments.length)>1),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.mail.docType===o.sender.SenderClient),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.mail.registerStamp||o.mail.createStamp),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o.childrenMails?null:o.childrenMails.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(o.isShowButtonAnswer()||(null==o.focusMail?null:o.focusMail.docType)===o.sender.SenderBank||(null==o.focusMail?null:o.focusMail.docType)===o.sender.Post2Client)&&!o.answerValue),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isShowButton()&&o.focusMail.docType===o.sender.SenderClient),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.answerValue)}}class Vl{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo){this.mailService=s,this.documentService=o,this.translation=g,this.router=V,this.toast=me,this.appConfigService=yt,this.activatedRoute=Zt,this.modalService=Pn,this.datePipe=Fn,this.util=Di,this.configUtilService=Ti,this.userDataService=vo,this.pathData=[],this.title="",this.answerValue=!1,this.draftEdit=!1,this.signStatus=ei.ok,this.mailStatus=ei.Bg,this.sender=ei.CI,this.fixedMail=ei.NJ,this.childrenMails=[],this.data={cross:{href:"/mail",params:null}}}get loader(){return this.mailService.loader$.getValue()}set loader(s){this.mailService.loader$.next(s)}get isDisableAnswerAction(){return this.mailService.isDisableAnswerAction(this.mail)}ngOnInit(){this.mailService.getBankPartners().subscribe(s=>{this.bankPartners=s}),this.userDataService.employeeInfo$.subscribe(s=>{this.user=s?`${s.surname} ${s.name} ${s.patronymic}`:"\u041a\u043b\u0438\u0435\u043d\u0442"}),this.activatedRoute.queryParams.subscribe(s=>{s&&(this.loader=!0,this.answerValue="answer"===s.mailType,this.queryParams=s.operationsTab?{operationsTab:s.operationsTab}:{},s.from&&(this.data.cross.href="/"===s.from.substr(1,1)?s.from:"/"+s.from,this.data.cross.params=this.queryParams))}),this.mailService.openedMail$.subscribe(s=>{s?(this.takeTopics(s),this.mail=s,this.mail.attachments&&(this.mail.attachments=Array.isArray(this.mail.attachments)?this.mail.attachments:[this.mail.attachments]),s.docType===this.sender.SenderBank||s.docType===this.sender.SenderClient?(this.pathData=[{capture:"Mail",href:"/mail",bold:!0}],this.title=this.translation.translate("Mail from bank"),s.registerStamp&&(this.request={id:s.id,caption:s.message,requestCode:s.placeId,body:s.message,sectionId:s.categoryId,mailType:s.docType,requestRequiredFields:""})):(this.pathData=[{capture:"Mail",href:"/mail",bold:!0}],this.title=this.translation.translate("Mail to bank")),this.loader=this.answerValue):this.router.navigate(["mail"])}),this.mailService.operationAlert$.subscribe(s=>{s&&(this.operationAlert=s,"success"===s.errorType&&setTimeout(()=>{this.operationAlert=void 0,this.mailService.operationAlert$.next(void 0),this.router.navigate(["mail"])},2e3))}),this.mailService.deleteMail$.subscribe(s=>{s&&(this.router.navigate(["mail"]),this.mailService.deleteMail$.next(null))}),this.mail&&this.takeChildrenMails()}ngOnDestroy(){this.mailService.action$.next({mail:void 0,action:void 0})}takeChildrenMails(){const s={afterDate:this.mail.docDate,beforeDate:`${this.datePipe.transform(Date.now(),"yyyy-MM-dd")}T23:59:59+3:00`,searchText:"",byCreatedTimeStampDesc:!0};this.mailService.takeChildrenMails(this.mail.id,s).subscribe(o=>{this.childrenMails=o,this.childrenMails=this.childrenMails.filter(g=>g.status!==this.mailStatus.Delete),this.childrenMails.length>0?(this.childrenMails.forEach((g,V)=>{g.attachments&&(g.attachments=Array.isArray(g.attachments)?g.attachments:[g.attachments]),"draft"===g.status&&V!==this.childrenMails.length-1&&(this.childrenMails.splice(V,1),this.childrenMails.push(g)),"false"===g.clientRead&&this.mailService.readMail(g.id).subscribe()}),this.focusMail=this.childrenMails[this.childrenMails.length-1],setTimeout(()=>document.getElementById(this.focusMail.id).scrollIntoView(),600)):(this.focusMail=this.mail,this.categoriesAndTopics||this.takeTopics(this.mail))})}takeTopics(s){this.mailService.getCategoriesAndTopics().subscribe(o=>{this.categoriesAndTopics=o,o.forEach(g=>{g.id===s.categoryId&&(this.currentCategory=g,g.topics.forEach(V=>{V.id===s.topicId&&(this.currentTopic=V)}))})})}dateMailReturn(s){let o=s>1?this.childrenMails[s-1]?new Date(this.childrenMails[s-1].createStamp):null:new Date(this.mail.createStamp),g=this.childrenMails[s]?new Date(this.childrenMails[s].createStamp):null;if(o&&g)return o.setHours(0,0,0,0),g.setHours(0,0,0,0),o<g?this.childrenMails[s].createStamp:null}getCategories(){this.mailService.getCategoriesAndTopics().subscribe(s=>{this.categoriesAndTopics=s})}printMail(){this.mailsForPrint=this.mail,this.childrenMails.length&&this.childrenMails.forEach(s=>{this.mailsForPrint.id.includes(s.id)||(this.mailsForPrint.id+=`,${s.id}`)}),this.mailService.printMail(this.mailsForPrint)}getAttach(s,o,g){this.appConfigService.settings.roles.has("ROLE_ATTACHMENT_WITH_STAMP")?this.mailService.getAttachmentWithStamp(g,s).subscribe(V=>{this.mailService.extractAttachment(V,o)}):this.mailService.getAttachment(g,s).subscribe(V=>{this.mailService.extractAttachment(V,o)})}getAllAttachments(s){this.mailService.getAllAttachmentsZip(s).subscribe(o=>{this.mailService.extractAttachment(o,"zip")})}pin(){const s=!JSON.parse(this.mail.fixed);this.mailService.pinMail(this.mail.id,s).subscribe(()=>{this.mail.fixed=(!JSON.parse(this.mail.fixed)).toString()})}prevType(s){return!(this.childrenMails?.length>0)||s<1||!this.childrenMails?.length||!s||this.childrenMails[s].docType!==this.childrenMails[s-1].docType}answer(s=!1){"110"===this.categoriesAndTopics?.find(g=>g.id===this.mail.categoryId)?.topics.find(g=>g.id===this.mail.topicId)?.specialFormat&&this.mailService.goToCreditMonitoring(),this.loader=!0,this.answerValue=!0,this.draftEdit=s}closeOrSave(){this.answerValue&&this.mailNewComponent?.textareaValue.length>0&&this.mailNewComponent?.existDraft&&!this.mailNewComponent?.isDraft?this.modalService.open(mu.e,{header:"Save draft",inputs:{confirmAction:()=>{this.mailNewComponent.save(!1,!0,!0)},cancelAction:()=>{this.router.navigate(["mail"])},isDraft:!0,isDeleting:!0,confirmBtnText:"Save",cancelBtnText:"No, don't need"}}):this.router.navigate(["mail"])}findLinks(s){if(s.docType===this.sender.SenderClient)return s.message;{let o=s.message;o=o?.replace("\n"," ");let g=o?.split(" ");return g?.forEach((V,me)=>{if(2===this.configUtilService.linkValidator(V)){let yt=V.indexOf('href="'),Zt=V.indexOf('">'),Pn=V.substring(yt,Zt);g[me]=`${V.replace(Pn,Pn+'" target="blank')}`}}),g?.join(" ")}}returnNameOrFormat(s,o){return s?.split(".")[o]}senderName(s){return"post2bank"===s.docType?this.user:s.unit?s.unit.displayName:"\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a"}messageTime(s,o=!1){return o?s.createStamp:s?.changeStamp?s.changeStamp:s.createStamp}isShowButton(){return(this.focusMail?.status===this.mailStatus.New||this.focusMail?.status===this.mailStatus.Draft)&&!this.answerValue&&this.focusMail?.signStatus!==this.signStatus.Signed}isShowButtonAnswer(){return(this.focusMail?.status!==this.mailStatus.New&&this.focusMail?.status!==this.mailStatus.Draft&&!this.answerValue||this.focusMail?.signStatus===this.signStatus.Signed)&&!this.answerValue}doAction(s){this.mailService.operationActionChange(s,this.mail)}deleteSign(){const s={isModalDesign:!0,isMail:!0,operation:{...this.focusMail,docId:this.focusMail.id,docIds:this.focusMail.id},deletionDone:()=>{this.takeChildrenMails()}};this.modalService.open(Ar.n,{header:"Delete sign",inputs:s,noScroll:!0,overflow:"initial"})}deleteMail(){this.modalService.open(mu.e,{header:"Delete draft",styleMode:"forSign",inputs:{confirmBtnText:"Yes, delete",cancelBtnText:"No",btnConfirmType:"primary",additionalText:"\u0412\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a \u043f\u0438\u0441\u044c\u043c\u0430",confirmAction:()=>{this.documentService.deleteDocument(this.focusMail.id).subscribe(()=>{this.toast.show("\u0427\u0435\u0440\u043d\u043e\u0432\u0438\u043a \u043f\u0438\u0441\u044c\u043c\u0430 \u0431\u044b\u043b \u0443\u0434\u0430\u043b\u0435\u043d","success"),this.focusMail.id===this.mail.id?(this.mailService.mailOpenedTab$.next(1),this.mailService.openedDraft$.next(!0),this.router.navigate(["mail"])):this.takeChildrenMails()})},cancelAction:()=>{this.modalService.close()}}})}buttonsType(){return this.childrenMails.length>0?this.childrenMails[length-1].status===this.mailStatus.New:this.mail.status===this.mailStatus.New}checkAttachments(){return this.mail.attachments||this.childrenMails.some(s=>s.attachments)}signMail(){this.answerValue=!1;const s={confirmAction:()=>{this.router.navigate(["mail-sign"])},cancelAction:()=>{this.router.navigate(["mail"])},inputs:{document:{docIds:[parseInt(this.focusMail.id)],docType:this.sender.SenderClient,docModule:ei.nW},isMail:!0},isSign:!0,isMail:!0,isSignDesign:!0};this.focusMail.status===this.mailStatus.Draft?this.mailService.postMailToBank({id:this.focusMail.id,routeId:this.currentTopic.routeId,mailRequestId:null,responseForId:null,message:this.focusMail.message}).subscribe(g=>{this.modalService.open(jl.D,s)}):this.modalService.open(jl.D,s)}static#e=this.\u0275fac=function(o){return new(o||Vl)(e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(as._),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(i.uU),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Da.M))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Vl,selectors:[["app-mail-info"]],viewQuery:function(o,g){if(1&o&&e.\u0275\u0275viewQuery(fl,5),2&o){let V;e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(g.mailNewComponent=V.first)}},decls:2,vars:2,consts:[["data-qa","1657964763798",3,"pathData"],["class","new-mail",4,"ngIf"],[1,"new-mail"],[1,"new-mail__header"],[1,"new-mail__header_left"],[1,"new-mail__header_info"],["class","new-mail__header_date",4,"ngIf"],[1,"new-mail__header_statuses"],["class","new-mail__header_status",4,"ngIf"],["class","new-mail__header_partner",4,"ngIf"],["class","new-mail__header_mailid",4,"ngIf"],["class","new-mail__header_pin",4,"ngIf"],["class","new-mail__header_important",4,"ngIf"],["class","attaches",4,"ngIf"],["class","new-mail__header_title",4,"ngIf"],["class","new-mail__header_right",3,"click",4,"ngIf"],[1,"chain"],[1,"new-mail__sender",3,"ngClass","hidden"],[1,"new-mail__message",3,"ngClass","hidden"],[1,"new-mail__message_text",3,"innerHTML"],["class","new-mail__message_file",3,"click",4,"ngFor","ngForOf"],["class","new-mail__sava-all",3,"click",4,"ngIf"],[1,"new-mail__time-status"],[4,"ngIf"],["class","new-mail__buttons",4,"ngIf"],[1,"new-mail__header_date"],[1,"new-mail__header_status"],[1,"new-mail__header_partner"],[1,"new-mail__header_mailid"],[1,"new-mail__header_pin"],[1,"new-mail__header_important"],[1,"attaches"],[1,"new-mail__header_title"],[1,"new-mail__header_right",3,"click"],[1,"new-mail__message_file",3,"click"],[1,"new-mail__message_flex"],[1,"attach"],[1,"new-mail__message_file-name"],[1,"new-mail__message_file-format"],[1,"new-mail__message_size"],[1,"new-mail__sava-all",3,"click"],[1,"new-mail__sava-all_icon"],[3,"hidden","id",4,"ngFor","ngForOf"],[3,"hidden","id"],["class","date-mail",4,"ngIf"],["class","new-mail__sender",3,"ngClass",4,"ngIf"],[1,"new-mail__message",3,"ngClass"],[1,"date-mail"],[1,"new-mail__sender",3,"ngClass"],[1,"flex"],[1,"new-mail__buttons"],["class","new-mail__buttons_margin",4,"ngIf"],[1,"new-mail__buttons_margin"],[3,"type","text","click"],[1,"new-mail__buttons_button"],[1,"new-mail__buttons_print",3,"fontSet","click"],["text","Answer",3,"type","click"],[3,"type","text","click",4,"ngIf"],["text","Sign",3,"type","clicked"],["data-qa","1657965197470",3,"answer","mainMail","isEditMail","editFromInfo","answerMail","bankRequest","parentId","loading"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275template(1,gf,29,28,"div",1)),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.mail))},dependencies:[i.mk,i.sg,i.O5,aa.l,Xt.r,m.Hw,fl,yi.X$,Ss.R,ir.x,i.uU],styles:['@charset "UTF-8";.mail-info[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 32px 40px;box-shadow:none;border-radius:2px}.mail-info[_ngcontent-%COMP%]   .card__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede;white-space:pre-line}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:17px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left[_ngcontent-%COMP%]{color:#88909b;display:flex;font-size:18px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__date[_ngcontent-%COMP%]{padding-right:5px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__header__left__text[_ngcontent-%COMP%]{color:#444}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-title[_ngcontent-%COMP%]{font-size:22px;margin-top:8px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-description[_ngcontent-%COMP%]{font-size:20px;margin-top:17px}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-answer[_ngcontent-%COMP%]{font-size:inherit;margin:1em}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content__text-answer[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{display:list-item}.mail-info[_ngcontent-%COMP%]   .card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]   app-alert[_ngcontent-%COMP%]{display:block;margin-top:10px}.mail-info[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{margin-top:25px;padding-bottom:30px;border-bottom:1px solid #dedede}.mail-info[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]{display:flex;margin-bottom:17px}.mail-info[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.mail-info[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]{color:#2f54eb}.mail-info[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.mail-info[_ngcontent-%COMP%]   .bottom-content[_ngcontent-%COMP%]{display:flex;margin-top:40px}.mail-info[_ngcontent-%COMP%]   .bottom-content[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:165px;margin-right:50px}.mail-info[_ngcontent-%COMP%]   .bottom-content__button[_ngcontent-%COMP%]{display:flex;margin:auto 40px auto 0}.mail-info[_ngcontent-%COMP%]   .bottom-content__button[_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%]     .mail-info-file-icon{font-size:22px;color:#2f54eb}[_nghost-%COMP%]     .mail-info-delete-icon{width:14px;height:18px;fill:#88909b}[_nghost-%COMP%]     .mail-info-printer-icon{width:20px;height:18px;fill:#88909b}.mail-info-action-icon[_ngcontent-%COMP%]{margin-right:15px;width:18px;height:20px;color:#88909b;font-size:18px;display:flex;justify-content:center;align-items:center}.new-mail[_ngcontent-%COMP%]{box-shadow:#0807080d 0 4px 15px;background-color:#fff;border-radius:2px;padding:0 32px 32px;font-family:Open Sans,Source Sans Pro,sans-serif;margin-top:24px}.new-mail__empty-title[_ngcontent-%COMP%]{margin-top:24px}.new-mail__sava-all[_ngcontent-%COMP%]{color:#2f54eb;font-size:14px;font-weight:600;margin-top:12px;cursor:pointer}.new-mail__sava-all_icon[_ngcontent-%COMP%]{margin:-11px 0;font-size:16px}.new-mail__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede;padding:32px 0;margin-bottom:32px}.new-mail__header_info[_ngcontent-%COMP%]{display:flex;padding-bottom:4px}.new-mail__header_date[_ngcontent-%COMP%]{color:#444;font-size:16px;line-height:22px}.new-mail__header_title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#080708}.new-mail__header_status[_ngcontent-%COMP%]{color:#2f54eb;background-color:#f1f2f2;padding:4px 8px;margin-left:8px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase}.new-mail__header_important[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:10px;line-height:14px;text-transform:uppercase;color:#fff;padding:4px 8px;margin-left:8px;border-radius:4px;margin-right:8px;background:#f86624}.new-mail__header_pin[_ngcontent-%COMP%]{background-color:#53b3cb;padding:4px 8px;margin-left:8px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;color:#fff}.new-mail__header_partner[_ngcontent-%COMP%]{background-color:#9448bc;padding:4px 8px;margin-left:8px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;color:#fff}.new-mail__header_mailid[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:4px 8px;margin-left:8px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;color:#444}.new-mail__header_right[_ngcontent-%COMP%]{height:32px;width:40px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;cursor:pointer}.new-mail__header_statuses[_ngcontent-%COMP%]{display:flex}.new-mail__sender[_ngcontent-%COMP%]{color:#88909b;font-size:14px;padding:24px 0 8px;font-weight:600}.new-mail__sender-client[_ngcontent-%COMP%]{text-align:end;width:660px}.new-mail__message-client[_ngcontent-%COMP%]{border-radius:12px 0 12px 12px!important;background-color:#dae0f2!important}.new-mail__draft[_ngcontent-%COMP%]{background-color:#fff!important;border:1px solid #444444}.new-mail__message[_ngcontent-%COMP%]{padding:20px;background-color:#f1f2f2;width:660px;border-radius:0 12px 12px}.new-mail__message_flex[_ngcontent-%COMP%]{display:flex}.new-mail__message_text[_ngcontent-%COMP%]{font-size:15px;font-weight:400;line-height:140%;color:#080708;padding-bottom:20px;overflow-wrap:break-word}.new-mail__message_file[_ngcontent-%COMP%]{color:#444;cursor:pointer;font-size:14px;font-weight:400;padding-bottom:13px;display:flex;justify-content:space-between}.new-mail__message_file-name[_ngcontent-%COMP%], .new-mail__message_file-format[_ngcontent-%COMP%]{color:#2f54eb}.new-mail__message_file-icon[_ngcontent-%COMP%]{height:14px;width:14px;min-width:14px;font-size:14px}.new-mail__message_size[_ngcontent-%COMP%]{color:#88909b;font-size:12px;padding-left:12px;padding-top:2px}.new-mail__buttons[_ngcontent-%COMP%]{display:flex;margin:20px 0}.new-mail__buttons_button[_ngcontent-%COMP%]{margin-right:12px;padding:14px 28px;color:#2f54eb;border-radius:4px;border:1px solid #2f54eb;font-weight:600;font-size:14px;align-items:center;display:flex;cursor:pointer}.new-mail__buttons_margin[_ngcontent-%COMP%]{margin-right:12px}.new-mail__buttons_print[_ngcontent-%COMP%]{height:18px;width:18px;font-size:18px}.new-mail__time[_ngcontent-%COMP%]{display:flex;justify-content:end;font-size:14px;color:#444;padding-top:5px}.new-mail__time-status[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:14px;color:#444;padding-top:5px}@media screen and (min-width: 375px) and (max-width: 768px){.new-mail[_ngcontent-%COMP%]{margin-top:16px;padding:0 16px 16px}.new-mail__buttons[_ngcontent-%COMP%]{display:block;margin:24px 0 0}.new-mail__buttons_button[_ngcontent-%COMP%]{margin-right:0;justify-content:center}.new-mail__buttons_margin[_ngcontent-%COMP%]{margin-right:0;margin-bottom:16px}.new-mail__message[_ngcontent-%COMP%]{width:100%}.new-mail__message_file-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-mail__message_flex[_ngcontent-%COMP%]{width:75%}.new-mail__message_text[_ngcontent-%COMP%]{font-size:16px}.new-mail__sender-client[_ngcontent-%COMP%]{width:100%}.new-mail__header[_ngcontent-%COMP%]{padding:16px 0}.new-mail__header_left[_ngcontent-%COMP%]{max-width:87%}.new-mail__header_title[_ngcontent-%COMP%]{font-size:20px}.new-mail__header_statuses[_ngcontent-%COMP%]{display:flex}.new-mail__header_info[_ngcontent-%COMP%]{display:block}.new-mail__header_date[_ngcontent-%COMP%]{margin-bottom:8px}.new-mail__header_status[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-left:0;margin-right:8px}}.attach[_ngcontent-%COMP%]{mask:url(file-attach.471326d8a8ac2508.svg) no-repeat;-webkit-mask:url(file-attach.471326d8a8ac2508.svg) no-repeat;background-color:#2f54eb;width:20px;height:20px;min-width:20px}.chain[_ngcontent-%COMP%]{max-height:1000px;overflow-y:scroll;width:672px}.chain[_ngcontent-%COMP%]::placeholder{color:#88909b}@media screen and (min-width: 375px) and (max-width: 768px){.chain[_ngcontent-%COMP%]{width:100%}}.attaches[_ngcontent-%COMP%]{background:url(pin.c9c23109b78334a1.svg) no-repeat;width:20px;height:20px}.date-mail[_ngcontent-%COMP%]{width:660px;text-align:center;color:#444;font-size:14px;padding-top:24px}']})}(0,Wi.gn)([(0,yi.SQ)()],Vl.prototype,"lang",void 0);const $l={items:[{value:"1",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 1"},{value:"2",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 2"},{value:"3",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 3"},{value:"4",caption:"\u041a\u0432\u0430\u0440\u0442\u0430\u043b 4"}]};function vf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o)}}function N_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275element(1,"mat-icon",13),e.\u0275\u0275elementStart(2,"div",14),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"maxStringLength"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",15),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",16),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.removeFile(me))}),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,2,o.name,20)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("",g.getFileSize(o)," Mb")}}function S0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275template(1,N_,8,5,"div",11),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.files)}}class bm{constructor(s,o,g){this.translation=s,this.router=o,this.configUtilService=g,this.uploadChanged=new e.EventEmitter,this.files=[]}onFileInput(s){const o=s.target.files;o.length&&(this.files=[...this.files,...this.toArray(o)],this.uploadChanged.emit({fileUpload:this.files,type:this.blockInfo.type}))}toArray(s){return Array.from(s)}removeFile(s){this.files=this.files.filter(o=>o!==s),this.uploadChanged.emit({fileUpload:this.files,type:this.blockInfo.type})}getFileSize(s){return(s.size/1024/1024).toFixed(1)}static#e=this.\u0275fac=function(o){return new(o||bm)(e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ko.Pj))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:bm,selectors:[["app-upload-block"]],inputs:{blockInfo:"blockInfo"},outputs:{uploadChanged:"uploadChanged"},decls:14,vars:4,consts:[[1,"block-upload-finance-report"],[1,"info-block-upload"],[1,"title-block-upload"],[1,"description-block-upload"],[4,"ngFor","ngForOf"],[1,"btn-upload"],[1,"icon-btn-upload"],["data-qa","1657964649463","multiple","","type","file",1,"import__button-label__input",3,"accept","input"],[1,"text-btn-upload"],["class","upload-files-name",4,"ngIf"],[1,"upload-files-name"],["class","item-upload-file",4,"ngFor","ngForOf"],[1,"item-upload-file"],["svgIcon","file-new",1,"icon"],[1,"text"],[1,"text","memory"],[1,"remove-file",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275text(5," \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b: "),e.\u0275\u0275template(6,vf,2,1,"span",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",5)(8,"mat-icon",6),e.\u0275\u0275text(9,"attach_file"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"input",7),e.\u0275\u0275listener("input",function(me){return g.onFileInput(me)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",8),e.\u0275\u0275text(12,"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(13,S0,2,1,"div",9),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",g.blockInfo.description," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",g.blockInfo.formats),e.\u0275\u0275advance(4),e.\u0275\u0275property("accept",g.blockInfo.formats),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",g.files))},dependencies:[i.sg,i.O5,m.Hw,Ss.R],styles:['@charset "UTF-8";.block-upload-finance-report[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background:#ffffff;border:1px dashed #88909b;border-radius:4px;padding:20px 24px;box-sizing:border-box;margin-bottom:20px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]{display:flex;flex-direction:column}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .title-block-upload[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-weight:600;font-size:16px;line-height:22px;color:#080708;margin-bottom:12px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .description-block-upload[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:19px;letter-spacing:.01em;color:#444;margin-bottom:24px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .description-block-upload[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:2px;padding-left:2px}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]{position:relative;border:1px solid #2f54eb;border-radius:4px;padding:9px 12px;display:flex;width:max-content}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]   .icon-btn-upload[_ngcontent-%COMP%]{font-size:20px;height:20px;color:#2f54eb}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]   .text-btn-upload[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#2f54eb}.block-upload-finance-report[_ngcontent-%COMP%]   .info-block-upload[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;opacity:0;top:0;left:0;cursor:pointer}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:end}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:14px}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#444;width:18px;height:18px}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-left:7px;margin-right:12px;font-weight:400;font-size:14px;line-height:19px;letter-spacing:.01em;color:#444;font-family:Open Sans,sans-serif}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .text.memory[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:16px;letter-spacing:.01em;color:#88909b;margin-right:7px;margin-left:0}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]{width:16px;height:16px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:before, .block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:before{height:2px;width:100%}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:after{width:2px;height:100%}.block-upload-finance-report[_ngcontent-%COMP%]   .upload-files-name[_ngcontent-%COMP%]   .item-upload-file[_ngcontent-%COMP%]   .remove-file.small[_ngcontent-%COMP%]{width:15px;height:15px}']})}function bf(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-upload-block",14),e.\u0275\u0275listener("uploadChanged",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.setFile(V))}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("blockInfo",s.$implicit)}function oh(M,s){if(1&M&&e.\u0275\u0275element(0,"app-attachment-size-info",15),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("maxValue",o.attachmentSetup.totalFileMaxSize)("value",o.currentTotalSize)}}(0,Wi.gn)([(0,yi.SQ)()],bm.prototype,"lang",void 0);class Wu{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di){this.translation=s,this.router=o,this.configUtilService=g,this.mailService=V,this.userDataService=me,this.toast=yt,this.documentService=Zt,this.fb=Pn,this.attachmentService=Fn,this.formatFileSizePipe=Di,this.pathData=[{capture:"Mail",href:"/mail",bold:!0},{capture:"Financial reporting full"}],this.mailInfo={description:"",message:""},this.data={cross:{href:"/mail"}},this.uploadMail=[{description:"\u0411\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0441\u043a\u0438\u0439 \u0431\u0430\u043b\u0430\u043d\u0441 (\u041e\u041a\u0423\u0414 0710001) \u0438 \u041e\u0442\u0447\u0435\u0442 \u043e \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 (\u041e\u041a\u0423\u0414 07002)",formats:[".rtf",".pdf",".xls",".xlsx",".doc",".docx"],type:"balances",files:[]},{description:"\u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u043a \u043e\u0442\u0447\u0435\u0442\u0430\u043c",formats:[".rtf",".pdf",".xls",".xlsx",".doc",".docx"],type:"reports",files:[]},{description:"\u041d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u0438",formats:[".pdf",".xls",".xlsx",".doc",".docx"],type:"declaration",files:[]},{description:"\u0421\u043f\u0440\u0430\u0432\u043a\u0438 \u0438\u0437 \u0411\u0430\u043d\u043a\u043e\u0432",formats:[".doc",".docx",".pdf",".rtf",".xls",".xlsx"],type:"references",files:[]},{description:'\u0410\u0440\u0445\u0438\u0432\u044b "No_BUHOTCH"',formats:[".zip",".xls",".xlsx",".doc",".docx"],type:"archive",files:[]},{description:"\u041f\u0440\u043e\u0447\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b (\u043f\u043e\u044f\u0441\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u043a\u0438, \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0441\u043a\u0438\u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0442.\u043f)",formats:[".rtf",".pdf",".jpg",".jpeg",".png",".tiff",".bmp",".gif",".xls",".xlsx",".doc",".docx"],type:"other",files:[]}],this.mailConfig=$l,this.finTopic="",this.finCategory="",this.currentTotalSize=0,this.allFiles={files:[],descriptions:""},this.loader=!1,this.destroyed$=new co.x,this.mailReportForm=Pn.group({date:new l.UntypedFormControl("",[l.Validators.required]),quarter:new l.UntypedFormControl(null,[l.Validators.required])})}ngOnInit(){this.setTotalSizeSettings(),this.getPrefillData(),this.mailService.getCategoriesAndTopics().subscribe(s=>{this.categoryAndTopics=s,s.forEach(o=>{o.name.includes("\u041a\u0440\u0435\u0434\u0438\u0442\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438")&&o.topics.forEach(g=>{"115"===g.specialFormat&&(this.topicId=g.routeId,this.finTopic=g.name)})})}),this.mailReportForm.valueChanges.subscribe(s=>{let o=null;s.date&&(o=new Date(s.date).getFullYear()),o&&s.quarter&&(this.mailInfo.message="\u0413\u043e\u0434: "+o+", \u041a\u0432\u0430\u0440\u0442\u0430\u043b: "+s.quarter+". ")})}getPrefillData(){this.userDataService.getClientInfoOrganization().pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{this.prefillData=s})}setFile(s){this.allFiles.files=[],this.uploadMail.find(o=>o.type===s.type).files=s.fileUpload;for(let o=0;o<this.uploadMail.length;o++)this.allFiles.files=this.allFiles.files.concat(this.uploadMail[o].files),this.uploadMail[o].files.length&&-1===this.allFiles.descriptions.indexOf(this.uploadMail[o].description)&&(this.allFiles.descriptions=this.allFiles.descriptions+this.uploadMail[o].description+".         ");this.calculateTotalFilesSize(),this.checkTotalSize()||this.toast.show(`${this.translation.translate("Maximum attachment file size")} ${this.formatFileSizePipe.transform(this.attachmentSetup.totalFileMaxSize,this.lang)}`,"error")}postMail(s=!1){if(!this.checkTotalSize()||this.loader)return;this.loader=!0;const o=this.mailInfo;o.routeId=this.topicId,o.id=null,o.mailRequestId=null,o.responseForId=null,o.message+=`\u0424\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u0430\u044f \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c. ${this.allFiles.descriptions}\n ${this.prefillData?.shortName} \u0418\u041d\u041d ${this.prefillData?.INN}`,this.mailService.postMailToBank(o).pipe((0,zn.R)(this.destroyed$),(0,Fi.w)(g=>(0,Jo.D)([(0,An.of)(g),...this.userDataService.postAttachment(g.id,this.allFiles.files)])),(0,Fi.w)(g=>{const[V,...me]=g;return me.find(yt=>yt.errorText)&&me.forEach(yt=>{yt.errorText&&this.toast.show(yt.errorText,"error")}),this.getDocument(s,V)})).subscribe(g=>{this.files=this.configUtilService.getArray(g?.attachments),this.files.forEach(V=>V.name=V.fileName),g.mailTypeCaption=this.finTopic,g.caption=this.finCategory,this.openMail(g,s),this.loader=!1,s&&this.toast.show("Letter saved","success")},g=>{this.loader=!1,this.toast.show(g.errorText,"error")})}getDocument(s,o){return this.documentService.getDocumentById("ibankul","post2bank",o.id).pipe((0,lo.U)(g=>g.postForBank))}setTotalSizeSettings(){this.attachmentService.attachmentSetup$.pipe((0,uo.h)(s=>Boolean(s)),(0,zn.R)(this.destroyed$)).subscribe(s=>{this.attachmentSetup=s})}calculateTotalFilesSize(){let s=0;this.allFiles.files.forEach(o=>{o instanceof File&&(s+=o.size)}),this.currentTotalSize=s}checkTotalSize(){return this.attachmentSetup.totalFileMaxSize>this.currentTotalSize}openMail(s,o){s.registerStamp=this.configUtilService.formatDateStringDMYHM(s.registerStamp,void 0,","),s.createstamp=this.configUtilService.formatDateStringDMYHM(s.createstamp,void 0,","),this.mailService.openedMail$.next(s),o?this.data.cross.href&&this.router.navigate([this.data.cross.href]):this.router.navigate(["mail-sign"])}buttonDisable(){return!(this.mailReportForm.valid&&this.uploadMail.find(s=>s.files.length>0)&&this.attachmentSetup?.totalFileMaxSize>this.currentTotalSize)}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(o){return new(o||Wu)(e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(l.UntypedFormBuilder),e.\u0275\u0275directiveInject(Ur.L),e.\u0275\u0275directiveInject(ir.x))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Wu,selectors:[["app-mail-report"]],decls:18,vars:22,consts:[[3,"pathData"],[1,"finance-report"],[1,"wrapper-cross"],["routerLink","/mail",1,"cross"],[1,"title-finance-report"],[1,"description-actions-finance-report"],[1,"wrapper-actions-finance-report",3,"formGroup"],["formControlName","date",1,"form-datepicker__datepicker",3,"autosize","filter","placeholder","readOnly","startView","title"],["formControlName","quarter",3,"appearance","items","placeholder","title"],[1,"descriptions-finance-report"],[3,"blockInfo","uploadChanged",4,"ngFor","ngForOf"],[3,"maxValue","value",4,"ngIf"],[1,"buttons"],["text","Send for signature",3,"click"],[3,"blockInfo","uploadChanged"],[3,"maxValue","value"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",4),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",5),e.\u0275\u0275text(7,"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0435\u0440\u0438\u043e\u0434 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0411\u0430\u043d\u043a."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275element(9,"app-metib-datepicker",7)(10,"app-metib-select",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",9),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"formatFileSize"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,bf,1,1,"app-upload-block",10),e.\u0275\u0275template(15,oh,1,2,"app-attachment-size-info",11),e.\u0275\u0275elementStart(16,"div",12)(17,"app-button",13),e.\u0275\u0275listener("click",function(){return g.postMail(!1)}),e.\u0275\u0275elementEnd()()()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate2("\u0424\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u0430\u044f \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c ",null==g.prefillData?null:g.prefillData.shortName,", \u0418\u041d\u041d ",null==g.prefillData?null:g.prefillData.INN,""),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",g.mailReportForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("autosize",!1)("filter","none")("placeholder","\u0413\u043e\u0434")("readOnly",!0)("startView","multi-year")("title",""),e.\u0275\u0275advance(1),e.\u0275\u0275property("appearance","dcb")("items",g.mailConfig.items)("placeholder","\u041a\u0432\u0430\u0440\u0442\u0430\u043b")("title","\u041a\u0432\u0430\u0440\u0442\u0430\u043b"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" \u041e\u0431\u0449\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 ",e.\u0275\u0275pipeBind2(13,19,null==g.attachmentSetup?null:g.attachmentSetup.totalFileMaxSize,"ru"),". "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",g.uploadMail),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.attachmentSetup),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("disabled",g.buttonDisable()))},dependencies:[l.NgControlStatus,l.NgControlStatusGroup,bi.rH,Ql.A,ys.A,Ml.J,l.FormGroupDirective,l.FormControlName,i.sg,i.O5,aa.l,Xt.r,bm,ir.x],styles:['@charset "UTF-8";.finance-report[_ngcontent-%COMP%]{margin-top:30px;max-width:1200px;width:100%;background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:2px;padding:32px;box-sizing:border-box;position:relative}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]{position:absolute;top:40px;right:35px}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]{width:16px;height:16px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:before, .finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:before{height:2px;width:100%}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross[_ngcontent-%COMP%]:after{width:2px;height:100%}.finance-report[_ngcontent-%COMP%]   .wrapper-cross[_ngcontent-%COMP%]   .cross.small[_ngcontent-%COMP%]{width:15px;height:15px}.finance-report[_ngcontent-%COMP%]   .title-finance-report[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-weight:700;font-size:24px;line-height:33px;color:#080708;padding-bottom:32px;box-sizing:border-box;width:100%;padding-right:21px;border-bottom:1px solid #dedede}.finance-report[_ngcontent-%COMP%]   .description-actions-finance-report[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:24px;font-style:normal;font-weight:400;font-family:Open Sans,sans-serif;font-size:16px;line-height:22px;color:#000}.finance-report[_ngcontent-%COMP%]   .wrapper-actions-finance-report[_ngcontent-%COMP%]{width:560px;display:flex}.finance-report[_ngcontent-%COMP%]   .descriptions-finance-report[_ngcontent-%COMP%]{font-weight:600;font-family:Open Sans,sans-serif;font-size:14px;line-height:19px;color:#88909b;margin-top:32px;padding-bottom:12px}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:#ffffff;border:1px dashed #88909b;border-radius:4px;padding:20px 24px;box-sizing:border-box}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .title-block-upload[_ngcontent-%COMP%]{font-weight:600;font-size:16px;line-height:22px;color:#080708;margin-bottom:12px}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .description-block-upload[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:14px;line-height:19px;letter-spacing:.01em;color:#444;margin-bottom:24px}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]{border:1px solid #2f54eb;border-radius:4px;padding:9px 12px;display:flex;width:max-content}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]     .icon-btn-upload{height:20px;width:24px;fill:#2f54eb}.finance-report[_ngcontent-%COMP%]   .block-upload-finance-report[_ngcontent-%COMP%]   .btn-upload[_ngcontent-%COMP%]   .text-btn-upload[_ngcontent-%COMP%]{font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#2f54eb}.finance-report[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;margin-top:20px}.finance-report[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:last-child{margin-left:20px}.finance-report[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]:first-child{margin-left:0}.finance-report[_ngcontent-%COMP%]   .buttons-save[_ngcontent-%COMP%]{margin-right:0}.finance-report[_ngcontent-%COMP%]   .buttons-text[_ngcontent-%COMP%]{color:#2f54eb;font-weight:600;margin:auto auto auto 48px;cursor:pointer}app-metib-select[_ngcontent-%COMP%]{width:230px;margin:5px 10px 0 30px}app-metib-select[_ngcontent-%COMP%]     .dynamic-select__title{color:#88909b;font-family:Open Sans,sans-serif}  .form-datepicker__datepicker mat-datepicker-toggle .mat-mdc-icon-button svg{display:block}']})}function Cf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",10)(1,"div",11),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.title," ")}}function j_(M,s){if(1&M&&e.\u0275\u0275element(0,"div",15),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("queryParams",o.data.cross.params)("routerLink",o.data.cross.href)}}function yf(M,s){1&M&&e.\u0275\u0275element(0,"div",16)}function U_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275template(1,j_,1,2,"div",13),e.\u0275\u0275template(2,yf,1,0,"ng-template",null,14,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275reference(3),g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.cross.href)("ngIfElse",o)}}function V_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-document-sign-with-wrapper",17),e.\u0275\u0275listener("resultEvent",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.changeResult(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("docIds",o.docIds)("docModule",o.signParams.docModule)("docType",o.signParams.docType)}}function _l(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",18)(1,"app-button-actions",19),e.\u0275\u0275listener("buttonPending",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.pending=V)}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("buttons",o.mails[0].buttonActions)}}function $_(M,s){if(1&M&&e.\u0275\u0275element(0,"app-mail-answer-block",33),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("mail",o)}}function xf(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",36)(1,"mat-icon",37),e.\u0275\u0275text(2,"insert_drive_file"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",38),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(yt.getAttach(me.id,me.fileName))}),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275advance(3),e.\u0275\u0275attribute("data-qa","1663066641658"+g),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.fileName," ")}}function W_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",34),e.\u0275\u0275template(1,xf,5,2,"div",35),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.attachments)}}function z_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",22)(1,"div",23)(2,"div",24)(3,"div",25)(4,"div",26),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",27),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",28)(9,"div",29),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",30),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(13,$_,1,1,"app-mail-answer-block",31),e.\u0275\u0275template(14,W_,2,1,"div",32),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit;e.\u0275\u0275attribute("data-qa","1663066638454"+s.index),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(o.createstamp),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.mailTypeCaption),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.caption," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.message," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.requestCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.attachments&&0!==o.attachments.length)}}function Cm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,z_,15,7,"div",21),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.mails)}}function Y_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275template(1,Cf,3,1,"div",3),e.\u0275\u0275template(2,U_,4,2,"div",4),e.\u0275\u0275elementStart(3,"div",5)(4,"div",6),e.\u0275\u0275template(5,V_,1,3,"app-document-sign-with-wrapper",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,_l,2,1,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,Cm,2,1,"div",9),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.isMultiSigns),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.data.cross&&!o.isMultiSigns),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.signParams),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.isMultiSigns&&o.mails.length&&o.mails[0].buttonActions),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.mails.length)}}(0,Wi.gn)([(0,yi.SQ)()],Wu.prototype,"lang",void 0);let ah=(()=>{class M{constructor(o,g,V,me){this.mailService=o,this.translation=g,this.router=V,this.configUtilService=me,this.pathData=[{capture:"Mail",href:"/mail",bold:!0},{capture:"New mail"}],this.data={cross:{href:"/mail",params:null},buttons:[{type:"print"}]},this.actions=["copy","update","print","delete","sign_on_client"],this.mails=[],this.title="",this.isLoading=!1,this.isMultiSigns=!1,this.docIds=[],this.destroyed$=new co.x}ngOnInit(){null!==this.mailService.openedMail$.getValue()?(this.isMultiSigns=!1,this.docIds=[],this.mailService.openedMail$.pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{o?(this.mail=o,this.mail.attachments&&(this.mail.attachments=this.configUtilService.getArray(this.mail.attachments)),this.mail.buttonActions=this.parseMailActionsToButtonType(this.mail.actions?this.mail.actions:this.actions),this.title=`${this.translation.translate("Signature of the letter to the bank")}`,this.signParams={},this.docIds.push(o.id),this.signParams.docType=o.docType,this.signParams.docModule=o.docModule,this.isDuplicate(this.mails,this.mail)||this.mails.push(this.mail)):this.router.navigate(["mail"])})):(this.isMultiSigns=!1,this.docIds=[],this.mailService.sighMails$.pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{o?o.forEach(g=>{const V=g;V.attachments&&(V.attachments=this.configUtilService.getArray(V.attachments)),V.buttonActions=this.parseMailActionsToButtonType(V.actions?V.actions:this.actions),this.signParams={},this.signParams.docType=V.docType,this.signParams.docModule=V.docModule,this.mails.push(V),this.docIds.push(V.id)}):this.router.navigate(["mail"])}))}isDuplicate(o,g){return!!o.find(V=>V.id===g.id)}getAttach(o,g){this.mailService.getAttachment(this.mail.id,o).pipe((0,zn.R)(this.destroyed$)).subscribe(V=>{this.mailService.extractAttachment(V,g)})}changeResult(o){2===o.signStatus&&(this.mail.buttonActions.forEach(g=>{"edit"===g.type&&(g.data.disabled=!0),"delete"===g.type&&(g.data.disabled=!0)}),this.isMultiSigns?(this.mailService.openedMail$.next(null),this.mailService.sighMails$.next(o.document)):(this.mailService.openedMail$.next(o.document),this.mailService.sighMails$.next([])))}parseMailActionsToButtonType(o){let g=[];return o.forEach(V=>{switch(V){case"copy":g.push({type:"createCopy",data:{mail:this.mail,disabled:!1}});break;case"update":g.push({type:"edit",data:{mail:this.mail,disabled:!1}});break;case"sign_on_client":g.push({type:"sign",data:{mail:this.mail,disabled:!0}});break;case"print":g.push({type:"print",data:{mail:this.mail,disabled:!1}});break;case"delete":g.push({type:"delete",data:{mail:this.mail,disabled:!1}})}}),g}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ko.Pj))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-mail-sign"]],decls:2,vars:2,consts:[["data-qa","1657964365838",3,"pathData"],["class","card","data-qa","1657964371043",4,"ngIf"],["data-qa","1657964371043",1,"card"],["class","card__top-block",4,"ngIf"],["class","cross-wrap",4,"ngIf"],[1,"sign-page-wrapper"],[1,"sign-page"],["class","document-sign","data-qa","1657964387287",3,"docIds","docModule","docType","resultEvent",4,"ngIf"],["class","card__middle-block-right",4,"ngIf"],["data-qa","1657964399128",4,"ngIf"],[1,"card__top-block"],[1,"card__title","section-title"],[1,"cross-wrap"],["class","cross","data-qa","1657964379638",3,"queryParams","routerLink",4,"ngIf","ngIfElse"],["emptyCross",""],["data-qa","1657964379638",1,"cross",3,"queryParams","routerLink"],[1,"cross"],["data-qa","1657964387287",1,"document-sign",3,"docIds","docModule","docType","resultEvent"],[1,"card__middle-block-right"],["data-qa","1657964391447",3,"buttons","buttonPending"],["data-qa","1657964399128"],["class","card__content-block",4,"ngFor","ngForOf"],[1,"card__content-block"],[1,"top-content"],[1,"top-content__header"],[1,"top-content__header__left"],[1,"top-content__header__left__date"],[1,"top-content__header__left__text"],[1,"top-content__text"],[1,"top-content__text-title"],[1,"top-content__text-description"],[3,"mail",4,"ngIf"],["class","attachment",4,"ngIf"],[3,"mail"],[1,"attachment"],["class","attachment__item",4,"ngFor","ngForOf"],[1,"attachment__item"],[1,"card-file-icon"],[1,"attachment__item-name",3,"click"]],template:function(g,V){1&g&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275template(1,Y_,8,5,"div",1)),2&g&&(e.\u0275\u0275property("pathData",V.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.mails))},dependencies:[bi.rH,Xl.n,i.sg,i.O5,El.v,aa.l,m.Hw],styles:['@charset "UTF-8";.card[_ngcontent-%COMP%]{position:relative;margin-top:20px;background-color:#fff;padding:35px 30px 40px;box-shadow:0 4px 15px #0807080d;border-radius:2px}.card__top-block[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.card__content-block[_ngcontent-%COMP%]{background-color:#f1f2f2;padding:30px;margin-bottom:20px}.card__content-block[_ngcontent-%COMP%]   .top-content[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #dedede}.card__content-block[_ngcontent-%COMP%]   .top-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.card__content-block[_ngcontent-%COMP%]   .top-content__header__left[_ngcontent-%COMP%]{color:#88909b;display:flex;font-size:18px}.card__content-block[_ngcontent-%COMP%]   .top-content__header__left__date[_ngcontent-%COMP%]{padding-right:5px}.card__content-block[_ngcontent-%COMP%]   .top-content__header__left__text[_ngcontent-%COMP%]{color:#444}.card__content-block[_ngcontent-%COMP%]   .top-content__text-title[_ngcontent-%COMP%]{font-size:22px;margin-top:8px}.card__content-block[_ngcontent-%COMP%]   .top-content__text-description[_ngcontent-%COMP%]{font-size:20px;margin-top:17px}.card[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{margin-top:25px;padding-bottom:30px}.card[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]{display:flex;margin-bottom:17px}.card[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.card[_ngcontent-%COMP%]   .attachment__item[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:12px}.card[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]{color:#2f54eb}.card[_ngcontent-%COMP%]   .attachment__item-name[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.card__middle-block-right[_ngcontent-%COMP%]{margin:30px 0 30px auto}.card[_ngcontent-%COMP%]   .sign-page-wrapper[_ngcontent-%COMP%]{display:flex}.card[_ngcontent-%COMP%]   .sign-page[_ngcontent-%COMP%]{width:50%;display:block;margin:30px 0}.card-file-icon[_ngcontent-%COMP%]{line-height:20px;color:#2f54eb}[_nghost-%COMP%]     .card-action-icon{width:19px;height:19px;fill:#88909b}.bottom-content[_ngcontent-%COMP%]{display:flex;margin-top:40px}.bottom-content[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{width:165px;margin-right:50px}.bottom-content__button[_ngcontent-%COMP%]{display:flex;margin:auto 50px auto 0}.bottom-content__button[_ngcontent-%COMP%]:hover{cursor:pointer}.bottom-content__button[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-right:15px}']})}return M})();var Mf=t(47136),zu=t(17263),Df=t(6561);function Yo(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-tab",35),e.\u0275\u0275pipe(1,"translate")),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext();e.\u0275\u0275propertyInterpolate("label",e.\u0275\u0275pipeBind2(1,3,o.capture,V.lang)),e.\u0275\u0275property("number",o.number),e.\u0275\u0275attribute("data-qa","1657786925923"+g)}}function rh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span",36),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==o.selectedOptions[o.selectionIndex]?null:o.selectedOptions[o.selectionIndex].counter)}}const ym=function(M){return{"active-text":M}};function Pf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",42),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(),g=o.index,V=o.$implicit,me=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,ym,g===me.selectionIndex)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",V.counter," ")}}function H_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",39),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).index,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.changeTabStatusBySelect(me))}),e.\u0275\u0275elementStart(1,"div",40),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,Pf,2,4,"div",41),e.\u0275\u0275elementEnd()}if(2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,ym,g===V.selectionIndex)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,o.name,V.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==o?null:o.counter)&&"0"!==o.counter)}}function K_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",37),e.\u0275\u0275template(1,H_,5,8,"div",38),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.selectedOptions)}}const Bd=function(M){return{"text-sub-tab-item__counter_active":M}};function xm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=s.ngIf,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,Bd,"unread"===g.currentStatusTab)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.unread," ")}}const Mm=function(M,s){return{active:M,"border-left":s}};function G_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.changeTabStatus("unread"))}),e.\u0275\u0275elementStart(1,"div",18)(2,"div"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,xm,2,4,"div",20),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(8,Mm,"unread"===o.currentStatusTab,"all"===o.currentStatusTab)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,3,"Unread",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(6,6,o.mailService.allCounters$))}}function sh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,Bd,"draft"===o.currentStatusTab)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.mailService.unreadMailNumber$.value.draft," ")}}function Ef(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.changeTabStatus("draft"))}),e.\u0275\u0275elementStart(1,"div",18)(2,"div"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,sh,2,4,"div",20),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(6,Mm,"draft"===o.currentStatusTab,"all"===o.currentStatusTab)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,3,"Drafts",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","0"!==o.mailService.unreadMailNumber$.value.draft)}}function ch(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,Bd,"fixed"===o.currentStatusTab)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.mailService.unreadMailNumber$.value.fixedIncoming," ")}}function Of(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,Bd,"fixed"===o.currentStatusTab)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.mailService.unreadMailNumber$.value.fixedOutgoing," ")}}function Nd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",44),e.\u0275\u0275element(1,"app-metib-periodpicker",45),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("name",o.periodPickerName)("defaultPeriod","month")("restorePeriod",!0)("allowedPeriods",o.mailAllowedPeriods)}}function Q_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",46)(1,"app-select",47),e.\u0275\u0275listener("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.changeFilterCategory(V))})("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.filterByCategory=V)}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",o.filterByCategory)("defaultValue","0")("inlineMode",!0)("items",o.categoriesForFilter)("label","caption")("autoHideTitle",!0)("styleNew",!0)("returnValue","code")}}function lh(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275text(1,"\u041f\u0438\u0441\u0435\u043c \u043d\u0435\u0442"),e.\u0275\u0275elementEnd())}function dh(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",53)(1,"div",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.signMails())}),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,"Sign",o.lang))}}function X_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",49)(1,"div",50)(2,"app-checkbox",51),e.\u0275\u0275listener("checkboxChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onSelectAllDocs(V))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div"),e.\u0275\u0275text(4,"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0438\u0441\u044c\u043c\u0430"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div"),e.\u0275\u0275template(6,dh,4,4,"div",52),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275attribute("data-qa","1663066463703"),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",o.selectedDocs.size>0)}}function Z_(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",54),e.\u0275\u0275element(1,"app-loader"),e.\u0275\u0275elementEnd())}function J_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-checkbox",81),e.\u0275\u0275listener("checkboxChange",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2).$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onSelectDocs(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2),g=o.$implicit,V=o.index,me=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",me.selectedDocs.has(g)),e.\u0275\u0275attribute("data-qa","1663066463703"+V)}}function q_(M,s){1&M&&e.\u0275\u0275element(0,"div",82)}const eg=function(M){return{"item-letter__checkbox_chat-active":M}};function Sf(M,s){if(1&M&&e.\u0275\u0275element(0,"div",83),2&M){const o=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(1,eg,"true"!==(null==o?null:o.clientRead)))}}function gl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",84),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2).$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",g.takeCategories(null==o?null:o.categoryId)," ")}}function tg(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",85),e.\u0275\u0275text(1,"\u0412\u0430\u0436\u043d\u043e"),e.\u0275\u0275elementEnd())}function sd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",86),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==o||null==o.unit?null:o.unit.displayName)}}function _u(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",87),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("\u2116 \u041e\u0411\u0420\u0410\u0429\u0415\u041d\u0418\u042f: ",null==o?null:o.id,"")}}function Zo(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",88),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"Fixed",o.lang))}}function Dm(M,s){1&M&&e.\u0275\u0275element(0,"div",89)}const xc=function(M,s){return{done:M,confirm:s}};function us(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span",90),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"maxStringLength"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2).$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(8,xc,"2"===(null==o?null:o.signStatus),"end"===o.status)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,2,e.\u0275\u0275pipeBind2(3,5,g.mailService.returnStatusText(o),g.lang),100)," ")}}function Tf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",91),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"maxStringLength"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2).$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(8,xc,"2"===(null==o?null:o.signStatus),"end"===o.status)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,2,e.\u0275\u0275pipeBind2(3,5,g.mailService.returnStatusText(o),g.lang),100)," ")}}function jd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",58)(1,"div",59),e.\u0275\u0275template(2,J_,1,2,"app-checkbox",60),e.\u0275\u0275elementStart(3,"div",61),e.\u0275\u0275template(4,q_,1,0,"div",62),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Sf,1,3,"div",63),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",64)(7,"div",65)(8,"div",66),e.\u0275\u0275template(9,gl,2,1,"div",67),e.\u0275\u0275template(10,tg,2,0,"div",68),e.\u0275\u0275template(11,sd,2,1,"div",69),e.\u0275\u0275template(12,_u,2,1,"div",70),e.\u0275\u0275template(13,Zo,3,4,"div",71),e.\u0275\u0275template(14,Dm,1,0,"div",72),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"div",73),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"date"),e.\u0275\u0275template(18,us,4,11,"span",74),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"div",75)(20,"div",76)(21,"div",77),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"maxStringLength"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"div",78),e.\u0275\u0275element(25,"div",79),e.\u0275\u0275template(26,Tf,4,11,"div",80),e.\u0275\u0275elementEnd()()()()()),2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",("1"===(null==o?null:o.signStatus)||"0"===(null==o?null:o.signStatus))&&"post2bank"===o.docType&&"draft"!==o.status&&"all"!==g.currentStatusTab),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","true"!==(null==o?null:o.clientRead)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"===o.hasDialog),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",null==o?null:o.categoryId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"===(null==o?null:o.isRequiredReading)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.unit&&"false"===o.unit.isDefault),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","post2client"!==o.docType&&"draft"!==o.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"===(null==o?null:o.fixed)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o.attachments?null:o.attachments.length)>0||"true"===o.hasAttach),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(17,16,null!=o&&o.changeDialogDate?o.changeDialogDate:o.changeStamp,"dd.MM.yyyy, HH:mm")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==o?null:o.status)&&"post2client"!==o.docType),e.\u0275\u0275advance(3),e.\u0275\u0275classProp("title-msg__uread","true"!==(null==o?null:o.clientRead)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(23,19,g.takeTopics(null==o?null:o.categoryId,null==o?null:o.topicId),100)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",g.convertHtmlText(o),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o?null:o.status)&&"post2client"!==o.docType&&0!==g.selectedTabIndex)}}const ng=function(M){return{"last-letter":M}};function ig(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",56),e.\u0275\u0275listener("click",function(V){const yt=e.\u0275\u0275restoreView(o).$implicit,Zt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Zt.openMail(V,yt))}),e.\u0275\u0275template(1,jd,27,22,"div",57),e.\u0275\u0275elementEnd()}if(2&M){const o=s.$implicit,g=s.last;e.\u0275\u0275property("id",o.id)("ngClass",e.\u0275\u0275pureFunction1(3,ng,g)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o)}}function og(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ig,2,5,"div",55),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.filteredMails)}}function If(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",92),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.getLetters(!0))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"Show more",o.lang))}}const wf=function(M){return{"disabled-arrow":M}},Pm=function(M){return{active:M}},Af=function(M){return{"filter-non":M}};class Mc{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo){this.lastOperationService=s,this.mailService=o,this.mailingService=g,this.modalService=V,this.router=me,this.translation=yt,this.operationService=Zt,this.documentService=Pn,this.vedService=Fn,this.util=Di,this.selectedPeriodSerice=Ti,this.sanitizer=vo,this._sessionKey="currency-exchange-period",this.mailAllowedPeriods=lu.d0,this.tabs=[{capture:"Inbox"},{capture:"Out"},{capture:"Archive",routerLink:"/archive"}],this.icons=new Tr.R(this.translation).getIcons(),this.actions=[],this.chosenTab=this.tabs[0],this.lettersType="incoming",this.load=!0,this.search="",this.chosenIndex=0,this.isAllMails=!0,this.selectedStatus="All",this.selectionsOptions=[[{value:"all",name:"All",counter:0},{value:"unread",name:"Unread",counter:0},{value:"fixed",name:"Pined",counter:0}],[{value:"all",name:"All",counter:0},{value:"draft",name:"Draft",counter:0},{value:"fixed",name:"Fixed",counter:0}]],this.selectedOptions=this.selectionsOptions[0],this.selectionIndex=0,this.unsubscribe$=new co.x,this.onSearchChange=Ja.Ds(this.onSearch.bind(this),500),this.documents=[],this.countOnPage=5,this.currentStatusTab="all",this.allAlreadyLoaded=!1,this.selectedDocs=new Set,this.filterValue="",this.selectedTabIndex=0,this.datePickerPeriods=["month","day","week","year","period"],this.filteredMails=[],this.categoriesForFilter=[],this.lastDocument=null,this.periodPickerName="upper",this.filterByCategory="0",this.searchText="",this.isOpenTabSelect=!1,this._datesPeriod=this.lastOperationService.chosenPeriod$.value}get datesPeriod(){return this._datesPeriod}set datesPeriod(s){this._datesPeriod=s,this.lastOperationService.chosenPeriod$.next(s)}ngOnInit(){this.mailService.getBankPartners().subscribe(s=>{this.bankPartners=s}),this.mailService.mailOpenedTab$.pipe((0,zn.R)(this.unsubscribe$)).subscribe(s=>{this.chosenIndex=s,this.selectedOptions=this.selectionsOptions[s],this.mailService.openedMailOption$.pipe((0,zn.R)(this.unsubscribe$)).subscribe(o=>{o&&(this.selectedOptions.forEach((g,V)=>{g.value===o&&(this.selectionIndex=V)}),this.onSelectTab(s),this.currentStatusTab=o,this.getLetters(!1,!0)),this.selectedPeriodSerice.chosenPeriod$.pipe((0,So.D)(()=>(0,Gi.H)(500)),(0,uo.h)(g=>g&&g.name===this.periodPickerName),(0,zn.R)(this.unsubscribe$)).subscribe(g=>{g&&g!==this.selectedPeriod&&(this.selectedPeriod=Object.assign(g),this.getEntities(),g&&this.dataPeriodPicker(g))}),this.mailService.getCategoriesAndTopics().subscribe(g=>{this.categories=g,this.mailService.categoriesAndTopics$.next(this.categories),this.categoriesForFilter=this.categories.map(V=>({id:+V.id,code:V.id,caption:V.name})),this.categoriesForFilter.unshift({id:0,code:"0",caption:"\u0412\u0441\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043f\u0438\u0441\u0435\u043c"})}),this.mailService.deleteMail$.subscribe(g=>{g&&(this.getLetters(),this.mailService.deleteMail$.next(null))})}).unsubscribe()}).unsubscribe(),this.actionsSubscription$=this.mailService.action$.subscribe(s=>{s&&(void 0===s.mail?this.actionsSubscription$&&this.actionsSubscription$.unsubscribe():this.operationActionChange(s.action,s.mail))}),this.returnCounter()}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}takeCategories(s){const o=this.categories?.find(g=>g.id===s);return o?o.name:""}takeTopics(s,o){const V=this.categories?.find(me=>me.id===s)?.topics.find(me=>me.id===o);return V?V.name:""}openTabSelect(){this.isOpenTabSelect=!this.isOpenTabSelect}changePeriod(s){this.datesPeriod="period"!==s.period?this.lastOperationService.changePeriod(s,this.datesPeriod.endDate,this.datesPeriod.beginDate):{...this.datesPeriod,currentPeriod:s}}lastDocumentReturn(s){this.lastDocument=10===s?.length?s[9].id:null}returnPartnerName(s){return this.bankPartners.find(o=>o.id===s)?.displayName}changeMobileTabStatus(s,o=!1){this.selectionIndex+=s?1:-1,this.changeTabStatus(this.selectedOptions[this.selectionIndex].value,!!this.lastOperationService.mailTab)}changeTabStatusBySelect(s){s!==this.selectionIndex&&(this.selectionIndex=s,this.changeTabStatus(this.selectedOptions[this.selectionIndex].value,!!this.lastOperationService.mailTab),this.isOpenTabSelect=!this.isOpenTabSelect)}returnCounter(){this.selectionsOptions[0][1].counter=this.mailService.allCounters$.getValue().unread,this.selectionsOptions[0][2].counter=this.mailService.allCounters$.getValue().fixedIncoming,this.selectionsOptions[1][1].counter=this.mailService.allCounters$.getValue().draft,this.selectionsOptions[1][2].counter=this.mailService.allCounters$.getValue().fixedOutgoing}openFilterCategory(){document.getElementById("mob-select").click()}changeTabStatus(s,o=!1){this.load=!0,this.lastDocument=null,this.currentStatusTab=s,this.lettersType="",this.mailService.openedMailOption$.next(s),this.lettersType=s===ei.Bg.All?this.lastOperationService.mailTab?"outgoing":"incoming":s,this.mailService.getLetters(s===ei.Bg.All?this.datesPeriod:null,this.lettersType,this.search,null,[],o).subscribe(g=>{this.isAllMails=s===ei.Bg.All,this.updateMails(g)})}updateMails(s){this.load=!1,this.filteredMails=s,this.mails=s,this.lastDocumentReturn(this.filteredMails)}datePickersChanged(s,o){this.load=!0,this.datesPeriod={...this.datesPeriod,[o]:s},"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(me=>"period"===me.period));const g=Ri()(this.datesPeriod.endDate),V=Ri()(this.datesPeriod.beginDate);g.diff(V,"days")>365||(this.datesPeriod=Ja.d9(this.datesPeriod))}dataPeriodPicker(s){if(s.beginDate){this.datesPeriod={...this.datesPeriod,beginDate:s.beginDate,endDate:s.endDate},"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(V=>"period"===V.period));const o=Ri()(this.datesPeriod.endDate),g=Ri()(this.datesPeriod.beginDate);o.diff(g,"days")>365||(this.datesPeriod=Ja.d9(this.datesPeriod)),this.getLetters()}}operationActionChange(s,o){this.mailService.operationActionChange(s,o)}openMail(s,o){s.target.className&&typeof s.target.className.includes<"u"&&(s.target.className.includes("checkbox")||s.target.className.includes("background")||s.target.className.includes("alert"))||"object"!=typeof s.target.className&&(this.mailService.openedMail$.next(o),("false"===o.clientRead||"send"===o.status)&&this.mailService.readMail(o.id).subscribe(()=>{const g=this.mailService.unreadMailNumber$.value.unread;this.mailService.unreadMailIds$.next(0!==g?g:0),this.refreshCounters()}),this.router.navigate(["mail-info"]))}convertHtmlText(s){return this.sanitizer.bypassSecurityTrustHtml((s.childMessage?s.childMessage:s.message).replace(/<[^>]+>/gm,"").replace("&nbsp",""))}refreshCounters(){this.mailService.completeLoadCounter$.getValue()&&(this.mailService.completeLoadCounter$.next(!1),(0,Jo.D)(this.mailService.getMailUnreadNumber(),this.mailingService.getMailUnreadNumber()).subscribe(s=>{this.mailService.completeLoadCounter$.next(!0),this.mailService.allCounters$.next(s[0])}))}onSelectTab(s){this.selectedTabIndex=s,this.chosenTab=this.tabs[s],this.currentStatusTab="all",s<2&&this.chosenIndex!==s&&(this.selectedOptions=this.selectionsOptions[s],this.selectionIndex=0,this.mailService.mailOpenedTab$.next(s),this.mailService.openedMailOption$.next(this.currentStatusTab)),this.isAllMails=!0,this.chosenTab.routerLink&&this.router.navigate([this.chosenTab.routerLink]),this.lastOperationService.mailTab=+s,this.getEntities(),this.getLetters(),this.selectedDocs.clear()}getEntities(){2===this.lastOperationService.mailTab&&this.showAccept()}showAccept(){let s;this.documents.length&&(s=this.documents[this.documents.length-1].id);const o={docTypes:[{docModule:ei.nW,docType:ei.xs.RequestAdvanceAccept},{docModule:ei.nW,docType:ei.xs.AcceptEdit},{docModule:ei.nW,docType:ei.xs.AcceptCancellation}]};this.datesPeriod&&(this.datesPeriod.beginDate&&(o.dateFrom=Ri()(this.datesPeriod.beginDate).format("YYYYMMDD")),this.datesPeriod.endDate&&(o.dateTo=Ri()(this.datesPeriod.endDate).format("YYYYMMDD"))),(0,Jo.D)([this.vedService.requestDocuments(this.countOnPage,s,o),this.vedService.requestDocumentsWithAvailableActions(this.countOnPage,s,o)]).pipe((0,lo.U)(([g,V])=>this.parseDocuments(g,V))).subscribe(g=>{g.length<this.countOnPage&&(this.allAlreadyLoaded=!0),this.documents=[...this.documents,...g],this.datesPeriod&&this.datesPeriod.beginDate&&this.datesPeriod.endDate&&(this.documents=this.documents.filter(V=>{if(Ri()(V.info,"DD.MM.YYYY").isBetween(this.datesPeriod.beginDate,this.datesPeriod.endDate))return V}))})}parseDocuments(s,o){const g=s.map(V=>{V.dots={};const me=o.find(Zt=>Zt.document.id===V.id).actions,yt=o.find(Zt=>Zt.document.id===V.id).document.signStatus;return me&&(V.dots.availableButtonActions=me),yt&&(V.signStatus=yt),V});return this.util.objectsParser(g,{id:"id",title:"name",description:V=>`\u2116${V.docNumber}${V.description?`, ${V.description}`:""}`,status:"status",signStatus:"signStatus",declineInfo:"declineInfo",info:"docDate",docType:"docType",statusColor:V=>{switch(V.systemStatus){case"end":case"processed_vk":return"green";case"decline":return"red";default:return""}},dots:V=>V.dots,additionalData:V=>({id:V.id,docModule:V.docModule||"",docType:V.docType,actionsLoaded:!1,docNumber:V.docNumber||"",docDate:V.docDate||"",description:V.description})})}loadActions(s){s.additionalData.actionsLoaded||(s.additionalData.actionsLoaded=!0,s.dots.buttonActions=[{type:"print",data:{docId:s.id,inPopup:!0}}],("0"===s.signStatus.toString()||"1"===s.signStatus.toString())&&s.dots.buttonActions.push({type:"sign",data:{docId:s.id,docType:s.docType,docModule:"ibankul"}}))}showMoreDocuments(){this.showAccept()}onSearch(s){this.search="string"==typeof s?s:s.target.value,this.getLetters()}getLetters(s,o){s||(this.load=!0,this.lettersType=this.lastOperationService.mailTab?"outgoing":"incoming",this.lettersType="all"!==this.currentStatusTab?this.currentStatusTab:this.lettersType),this.incomeMails=this.mailService.getLetters("all"===this.currentStatusTab?this.datesPeriod:null,this.lettersType,this.search,s?this.lastDocument:null,"0"!==this.filterByCategory?[this.filterByCategory]:[]).subscribe(g=>{if(this.documentsMail=g,this.load=!1,this.mails=s?[...this.mails,...g?.length?g:[]]:g,this.filteredMails=this.mails,this.filteredMails?.length>0&&this.filteredMails.forEach(me=>{me?.attachments&&(me.attachments=Array.isArray(me.attachments)?me.attachments:[me.attachments])}),this.mails?.length)for(let me of this.mails.slice().reverse())if("false"===me.clientRead&&"true"===me.isMustRead&&"false"===me.hasDialog){this.openMail(null,me);break}this.lastDocument=10===g?.length?g[9].id:null,this.searchText&&this.searchMail(this.searchText),this.mailService.openedMail$.getValue()&&setTimeout(()=>{document.getElementById(this.mailService.openedMail$.getValue().id)?.scrollIntoView({behavior:"smooth",inline:"center",block:"center"})},500)})}signMails(){const s=[];this.selectedDocs.forEach(g=>{s.push(parseInt(g.id))}),this.modalService.open(jl.D,{inputs:{confirmAction:()=>{this.selectedDocs.clear(),"all"!==this.currentStatusTab?this.changeTabStatus(this.currentStatusTab):this.getLetters()},cancelAction:()=>{},document:{docIds:s,docType:ei.CI.SenderClient,docModule:ei.nW},isMail:!0},isSign:!0,isMail:!0,isSignDesign:!0})}onSelectAllDocs(s){const o=this.filteredMails.filter(g=>"0"===g.signStatus||"1"===g.signStatus);this.selectedDocs.size!==o.length?o.forEach(g=>{this.selectedDocs.add(g)}):this.selectedDocs.clear()}onSelectDocs(s){this.selectedDocs.has(s)?this.selectedDocs.delete(s):this.selectedDocs.add(s)}newMail(){this.mailService.openedMail$.next(null),this.router.navigate(["mail-new"])}getUnreadMails(){this.mailService.getMailUnreadNumber().subscribe(s=>{this.returnCounter();const o=s.unread;0!==o&&(this.mailService.unreadMailIds$.next(o),this.mailService.unreadMailNumber$.next(s))}),this.mailingService.getMailUnreadNumber().subscribe(s=>{this.oldCounters=s})}signDocuments(){1===this.selectedDocs.size?(this.mailService.openedMail$.next(Array.from(this.selectedDocs)[0]),this.mailService.sighMails$.next([])):(this.mailService.openedMail$.next(null),this.mailService.sighMails$.next(Array.from(this.selectedDocs))),this.router.navigate(["/mail-sign"])}checkSome(){return this.filteredMails?.length>0&&this.filteredMails.some(s=>(s?.actions||[]).includes("sign_on_client"))}searchMail(s){this.searchText=s,s=s.toLowerCase();let o=[],g=[];this.filteredMails=this.mails,s?(g=this.mails.filter(V=>V.message?.toLowerCase().includes(s)),this.mails.forEach(V=>{(this.takeCategories(V?.categoryId).toLowerCase().includes(s)||this.takeTopics(V?.categoryId,V?.topicId).toLowerCase().includes(s))&&!g.some(me=>me.id===V.id)&&o.push(V)}),this.filteredMails=[...g,...o],this.lastDocument=10===this.filteredMails.length?this.filteredMails[9].id:null):(this.filteredMails=this.mails,this.lastDocument=10===this.filteredMails.length?this.filteredMails[9].id:null),this.filteredMails=this.filteredMails.sort((V,me)=>(V.changeDialogDate?V.changeDialogDate:V.createStamp)>(me.changeDialogDate?me.changeDialogDate:me.createStamp)?-1:1),this.lastDocument=10===this.filteredMails.length?this.filteredMails[9].id:this.lastDocument=null}changeFilterCategory(s){this.filterByCategory=s,this.getLetters()}static#e=this.\u0275fac=function(o){return new(o||Mc)(e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(Nr.r),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(Gs.f),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(jr.$),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Mf.A),e.\u0275\u0275directiveInject(n.DomSanitizer))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Mc,selectors:[["app-mail"]],decls:51,vars:63,consts:[[1,"title-block"],[1,"tabs-block-wrapper"],[1,"tabs-control-wrapper"],[1,"tabs-control"],["data-qa","1657964004571",3,"initialIndex","selectTab"],[3,"label","number",4,"ngFor","ngForOf"],[1,"btn"],[1,"text-btn",3,"click"],[1,"sub-tabs-mobile"],[1,"sub-tabs-mobile__left-block",3,"click"],[1,"sub-tabs-mobile__arrow","sub-tabs-mobile__arrow_left",3,"ngClass"],[1,"sub-tabs-mobile__options",3,"click"],["class","sub-tabs-mobile__options_counter",4,"ngIf"],["class","sub-tabs-mobile__select",4,"ngIf"],[1,"sub-tabs-mobile__right-block",3,"click"],[1,"sub-tabs-mobile__arrow","sub-tabs-mobile__arrow_right",3,"ngClass"],[1,"sub-tabs-wrapper"],[1,"sub-tab-item",3,"ngClass","click"],[1,"text-sub-tab-item"],["class","sub-tab-item",3,"ngClass","click",4,"ngIf"],["class","text-sub-tab-item__counter",3,"ngClass",4,"ngIf"],[1,"letters-wrapper"],[1,"line-control",3,"hidden"],["class","my-period-dates",4,"ngIf"],[1,"line-control__input"],["data-qa","1657789495619","inputClass","no-description w100","typeClass","flex-input-filter",3,"matIcon","value","placeholder","valueChange"],[1,"line-control__mob-cat"],["id","mob-select",3,"ngModel","defaultValue","inlineMode","items","label","isMobCat","autoHideTitle","styleNew","returnValue","ngModelChange"],["class","line-control__input line-control__desk",4,"ngIf"],[1,"list-letters",3,"ngClass"],["class","list-letters__exist",4,"ngIf"],["class","item-letter__check",4,"ngIf"],["class","list-letters__loader",4,"ngIf"],[4,"ngIf"],["class","pagination",3,"click",4,"ngIf"],[3,"label","number"],[1,"sub-tabs-mobile__options_counter"],[1,"sub-tabs-mobile__select"],["class","sub-tabs-mobile__select_option",3,"click",4,"ngFor","ngForOf"],[1,"sub-tabs-mobile__select_option",3,"click"],[3,"ngClass"],["class","sub-tabs-mobile__select_counter",3,"ngClass",4,"ngIf"],[1,"sub-tabs-mobile__select_counter",3,"ngClass"],[1,"text-sub-tab-item__counter",3,"ngClass"],[1,"my-period-dates"],["placeholder","\u0414\u0430\u0442\u0430 \u043f\u043e\u0447\u0442\u044b","minAllowedDate","1993-01-01",3,"name","defaultPeriod","restorePeriod","allowedPeriods"],[1,"line-control__input","line-control__desk"],[3,"ngModel","defaultValue","inlineMode","items","label","autoHideTitle","styleNew","returnValue","ngModelChange"],[1,"list-letters__exist"],[1,"item-letter__check"],[1,"item-letter__center-box"],[3,"checkboxChange"],["class","btn gray mr16",4,"ngIf"],[1,"btn","gray","mr16"],[1,"list-letters__loader"],["class","item-letter",3,"id","ngClass","click",4,"ngFor","ngForOf"],[1,"item-letter",3,"id","ngClass","click"],["class","item-letter__box",4,"ngIf"],[1,"item-letter__box"],[1,"item-letter__checkbox"],[3,"chosen","checkboxChange",4,"ngIf"],[1,"wrapper-dot"],["class","dot-unread",4,"ngIf"],["class","item-letter__checkbox_chat",3,"ngClass",4,"ngIf"],[1,"item-letter__right"],[1,"status-line-letter"],[1,"status-msg-wrapper"],["class","title-status",4,"ngIf"],["class","status important",4,"ngIf"],["class","status partner",4,"ngIf"],["class","status mailid",4,"ngIf"],["class","status fixed",4,"ngIf"],["class","attach",4,"ngIf"],[1,"date"],["class","date__status-mob",3,"ngClass",4,"ngIf"],[1,"info-line-letter"],[1,"info-msg-wrapper"],[1,"title-msg"],[1,"description-msg"],[1,"description-msg__text",3,"innerHTML"],["class","description-msg__status-text",3,"ngClass",4,"ngIf"],[3,"chosen","checkboxChange"],[1,"dot-unread"],[1,"item-letter__checkbox_chat",3,"ngClass"],[1,"title-status"],[1,"status","important"],[1,"status","partner"],[1,"status","mailid"],[1,"status","fixed"],[1,"attach"],[1,"date__status-mob",3,"ngClass"],[1,"description-msg__status-text",3,"ngClass"],[1,"pagination",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275text(1,"\u041f\u043e\u0447\u0442\u0430"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",1)(3,"div",2)(4,"div",3)(5,"app-tabs",4),e.\u0275\u0275listener("selectTab",function(me){return g.onSelectTab(me)}),e.\u0275\u0275template(6,Yo,2,6,"app-tab",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",6)(8,"div",7),e.\u0275\u0275listener("click",function(){return g.newMail()}),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(11,"div",8)(12,"div",9),e.\u0275\u0275listener("click",function(){return g.selectionIndex>0&&g.changeMobileTabStatus(!1)}),e.\u0275\u0275element(13,"div",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",11),e.\u0275\u0275listener("click",function(){return g.openTabSelect()}),e.\u0275\u0275text(15),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275template(17,rh,2,1,"span",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(18,K_,2,1,"div",13),e.\u0275\u0275elementStart(19,"div",14),e.\u0275\u0275listener("click",function(){return g.selectionIndex<2&&g.changeMobileTabStatus(!0)}),e.\u0275\u0275element(20,"div",15),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"div",16)(22,"div",17),e.\u0275\u0275listener("click",function(){return g.changeTabStatus("all")}),e.\u0275\u0275elementStart(23,"div",18),e.\u0275\u0275text(24),e.\u0275\u0275pipe(25,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(26,G_,7,11,"div",19),e.\u0275\u0275template(27,Ef,6,9,"div",19),e.\u0275\u0275elementStart(28,"div",17),e.\u0275\u0275listener("click",function(){return g.changeTabStatus("fixed","Out"===g.chosenTab.capture)}),e.\u0275\u0275elementStart(29,"div",18)(30,"div"),e.\u0275\u0275text(31),e.\u0275\u0275pipe(32,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(33,ch,2,4,"div",20),e.\u0275\u0275template(34,Of,2,4,"div",20),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(35,"div",21)(36,"div",22)(37,"div"),e.\u0275\u0275template(38,Nd,2,4,"div",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(39,"div",24)(40,"app-input",25),e.\u0275\u0275listener("valueChange",function(me){return g.searchMail(me)}),e.\u0275\u0275pipe(41,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"div",26)(43,"app-select",27),e.\u0275\u0275listener("ngModelChange",function(me){return g.changeFilterCategory(me)})("ngModelChange",function(me){return g.filterByCategory=me}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(44,Q_,2,8,"div",28),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"div",29),e.\u0275\u0275template(46,lh,2,0,"div",30),e.\u0275\u0275template(47,X_,7,2,"div",31),e.\u0275\u0275template(48,Z_,2,0,"div",32),e.\u0275\u0275template(49,og,2,1,"div",33),e.\u0275\u0275template(50,If,3,4,"div",34),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275advance(5),e.\u0275\u0275property("initialIndex",g.lastOperationService.mailTab),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",g.tabs),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(10,37,"New mail",g.lang)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(52,wf,0===g.selectionIndex)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(16,40,null==g.selectedOptions[g.selectionIndex]?null:g.selectedOptions[g.selectionIndex].name,g.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",null==g.selectedOptions[g.selectionIndex]?null:g.selectedOptions[g.selectionIndex].counter),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isOpenTabSelect),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(54,wf,2===g.selectionIndex)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(56,Pm,"all"===g.currentStatusTab)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(25,43,"All",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","Inbox"===g.chosenTab.capture),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Out"===g.chosenTab.capture),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(58,Mm,"fixed"===g.currentStatusTab,"unread"===g.currentStatusTab||"draft"===g.currentStatusTab)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(32,46,"Pined",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","Inbox"===g.chosenTab.capture),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Out"===g.chosenTab.capture),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",!g.isAllMails),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","today"!==g.datesPeriod.currentPeriod.period&&"yesterday"!==g.datesPeriod.currentPeriod.period),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(41,49,"Search",g.lang)),e.\u0275\u0275property("matIcon",g.filterValue?"close":"search")("value",g.filterValue),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",g.filterByCategory)("defaultValue","0")("inlineMode",!0)("items",g.categoriesForFilter)("label","caption")("isMobCat",!0)("autoHideTitle",!0)("styleNew",!0)("returnValue","code"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.categoriesForFilter.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(61,Af,"all"!==g.currentStatusTab)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(g.filteredMails&&0!==(null==g.filteredMails?null:g.filteredMails.length)||g.load)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.selectedDocs.size>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.load),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==g.filteredMails?null:g.filteredMails.length)>0&&!g.load),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.lastDocument&&!1))},dependencies:[l.NgControlStatus,l.NgModel,rc.b,xa.R,zu.H,nr.n,Ra.i,Qs.a,i.mk,i.sg,i.O5,Df.k,yi.X$,Ss.R,i.Ov,i.uU],styles:['@charset "UTF-8";.title-block[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:24px;line-height:33px;color:#444;margin-bottom:22px}.title-block[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600}.title-block.mt30[_ngcontent-%COMP%]{margin-top:30px}[_nghost-%COMP%]     app-loader .loader__wrap{position:relative!important;margin-top:92px}.tabs-block-wrapper[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-direction:column;background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:2px}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile[_ngcontent-%COMP%]{display:none}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__select[_ngcontent-%COMP%]{position:absolute;width:100%;background-color:#fff;top:50px;box-shadow:0 4px 15px #0807081a;padding:4px;z-index:1000}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__select_option[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:12px;color:#88909b;font-size:14px}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__select_counter[_ngcontent-%COMP%]{background-color:#f1f2f1;color:#88909b;padding:2px 8px;border-radius:16px;margin-left:8px}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__select[_ngcontent-%COMP%]   .active-text[_ngcontent-%COMP%]{color:#2f54eb}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__select[_ngcontent-%COMP%]   .active-counter[_ngcontent-%COMP%]{background-color:#e0e6fc;color:#2f54eb}@media screen and (min-width: 375px) and (max-width: 768px){.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile[_ngcontent-%COMP%]{display:flex;border:1px solid #2f54eb;border-radius:4px;margin:32px 16px;justify-content:space-between;position:relative}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__left-block[_ngcontent-%COMP%]{border-right:1px solid #2f54eb}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__right-block[_ngcontent-%COMP%]{border-left:1px solid #2f54eb}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__arrow[_ngcontent-%COMP%]{height:20px;width:20px;margin:14px;cursor:pointer;background-color:#2f54eb;mask-image:url(/assets/icons/chevron_active.svg)}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__arrow.disabled-arrow[_ngcontent-%COMP%]{background-color:#2f54eb80}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__arrow_right[_ngcontent-%COMP%]{transform:scaleX(-1)}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__arrow.disabled-arrow[_ngcontent-%COMP%]{background-image:url(/assets/icons/chevron_disabled.svg)}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__options[_ngcontent-%COMP%]{padding:14px;font-weight:600;font-size:14px;color:#2f54eb}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-mobile__options_counter[_ngcontent-%COMP%]{background-color:#e0e6fc;color:#2f54eb;padding:2px 8px;border-radius:16px;margin-left:8px}}.tabs-block-wrapper[_ngcontent-%COMP%]   .tabs-control-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede;margin:0 32px}@media screen and (min-width: 375px) and (max-width: 768px){.tabs-block-wrapper[_ngcontent-%COMP%]   .tabs-control-wrapper[_ngcontent-%COMP%]{flex-direction:column-reverse;margin:0 16px}}.tabs-block-wrapper[_ngcontent-%COMP%]   .tabs-control-wrapper[_ngcontent-%COMP%]   .tabs-control[_ngcontent-%COMP%]{display:flex}@media screen and (min-width: 375px) and (max-width: 768px){.tabs-block-wrapper[_ngcontent-%COMP%]   .tabs-control-wrapper[_ngcontent-%COMP%]   .tabs-control[_ngcontent-%COMP%]{width:100%;overflow:auto}.tabs-block-wrapper[_ngcontent-%COMP%]   .tabs-control-wrapper[_ngcontent-%COMP%]   .tabs-control[_ngcontent-%COMP%]::-webkit-scrollbar{height:0;width:0}}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;padding:32px}@media screen and (min-width: 375px) and (max-width: 768px){.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]{display:none}}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:max-content;cursor:pointer;border-bottom:1px solid #88909b;border-top:1px solid #88909b;border-left:1px solid #88909b}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item[_ngcontent-%COMP%]:first-of-type{border-bottom-left-radius:4px;border-top-left-radius:4px}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item[_ngcontent-%COMP%]:last-of-type{border-bottom-right-radius:4px;border-top-right-radius:4px;border-right:1px solid #88909b}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item[_ngcontent-%COMP%]   .text-sub-tab-item[_ngcontent-%COMP%]{display:flex;padding:14px 28px;font-family:Open Sans;font-style:normal;font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#88909b;height:47px}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item[_ngcontent-%COMP%]   .text-sub-tab-item__counter[_ngcontent-%COMP%]{background-color:#f1f2f1;min-width:24px;height:20px;border-radius:16px;margin-left:8px;padding:0 4px}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item[_ngcontent-%COMP%]   .text-sub-tab-item__counter_active[_ngcontent-%COMP%]{background-color:#2f54eb1a}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item.active[_ngcontent-%COMP%]{border-color:#2f54eb}.tabs-block-wrapper[_ngcontent-%COMP%]   .sub-tabs-wrapper[_ngcontent-%COMP%]   .sub-tab-item.active[_ngcontent-%COMP%]   .text-sub-tab-item[_ngcontent-%COMP%]{color:#2f54eb}.letters-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:2px;margin-top:24px;font-family:Open Sans,Source Sans Pro,sans-serif}.letters-wrapper[_ngcontent-%COMP%]   .line-control[_ngcontent-%COMP%]{display:flex;align-items:center;margin:32px}.letters-wrapper[_ngcontent-%COMP%]   .line-control__mob-cat[_ngcontent-%COMP%]{display:none}.letters-wrapper[_ngcontent-%COMP%]   .line-control__input[_ngcontent-%COMP%]{margin-left:22px;width:100%}.letters-wrapper[_ngcontent-%COMP%]   .filter-non[_ngcontent-%COMP%]{padding-top:32px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-bottom:48px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters__loader[_ngcontent-%COMP%]{min-height:216px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters__exist[_ngcontent-%COMP%]{margin:100px 32px;color:#88909b;font-size:18px;text-align:center}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .last-letter[_ngcontent-%COMP%]{border-bottom:1px solid #dedede}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]{cursor:pointer;display:flex;flex-direction:column;padding:20px;margin:0 32px;border-top:1px solid #dedede}@media screen and (min-width: 375px) and (max-width: 768px){.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]{margin:0 16px}}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__center-box[_ngcontent-%COMP%]{display:flex;align-items:center}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__check[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:12px 20px;background-color:#f1f2f2;border-radius:2px;margin:0 32px 20px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__right[_ngcontent-%COMP%]{width:calc(100% - 24px)}@media screen and (min-width: 375px) and (max-width: 768px){.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__right[_ngcontent-%COMP%]{width:100%}}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__checkbox[_ngcontent-%COMP%]{width:24px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__checkbox_chat[_ngcontent-%COMP%]{background-color:#88909b;mask:url(chat.83fe8d3fd2f6f925.svg);-webkit-mask-image:url(chat.83fe8d3fd2f6f925.svg);width:24px;height:24px;margin-top:24px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__checkbox_chat-active[_ngcontent-%COMP%]{background-color:#2f54eb}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__box[_ngcontent-%COMP%]{display:flex}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .wrapper-dot[_ngcontent-%COMP%]{width:24px;display:flex;justify-content:center;align-items:center}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .wrapper-dot[_ngcontent-%COMP%]   .dot-unread[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#2f54eb}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .wrapper-dot[_ngcontent-%COMP%]   .dot-unread.read[_ngcontent-%COMP%]{background:transparent}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .title-status[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;text-transform:uppercase;font-weight:700;font-size:10px;line-height:16px;color:#2f54eb;background:#f1f2f2;border-radius:4px;padding:4px 8px;margin-left:10px;margin-right:8px}@media screen and (min-width: 375px) and (max-width: 768px){.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .title-status[_ngcontent-%COMP%]{margin-left:0}}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:10px;line-height:14px;text-transform:uppercase;color:#fff;padding:4px 8px;border-radius:4px;margin-right:8px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .status.important[_ngcontent-%COMP%]{background:#f86624}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .status.fixed[_ngcontent-%COMP%]{background:#53b3cb}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .status.partner[_ngcontent-%COMP%]{background:#9448bc}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .status-msg-wrapper[_ngcontent-%COMP%]   .status.mailid[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;text-transform:uppercase;font-weight:700;font-size:10px;line-height:16px;color:#444;background:#f1f2f2;border-radius:4px;padding:4px 8px;margin-right:8px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;text-align:right;color:#444}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .date__status-mob[_ngcontent-%COMP%]{display:none}@media screen and (min-width: 375px) and (max-width: 768px){.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]{justify-content:unset;flex-direction:column-reverse}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{text-align:left;margin-bottom:12px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .status-line-letter[_ngcontent-%COMP%]   .date__status-mob[_ngcontent-%COMP%]{display:unset;margin-left:12px}}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]{display:flex}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .wrapper-icon-msg[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:24px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .wrapper-icon-msg[_ngcontent-%COMP%]     .icon-msg{width:24px;height:24px;fill:#88909b}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:10px;margin-left:10px;width:100%}@media screen and (min-width: 375px) and (max-width: 768px){.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]{margin-left:0}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .title-msg[_ngcontent-%COMP%]{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .description-msg__status-text[_ngcontent-%COMP%]{display:none}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .description-msg__status-mob[_ngcontent-%COMP%]{display:unset}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .description-msg__text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .title-msg[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;margin-bottom:4px;color:#080708;display:flex}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .title-msg__uread[_ngcontent-%COMP%]{font-weight:700}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .title-msg[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;top:3px;position:relative;margin-left:10px}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .title-msg[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]     .attach-mail{width:8px;height:18px;fill:#88909b}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .description-msg[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#76767b;display:flex;justify-content:space-between}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]   .info-line-letter[_ngcontent-%COMP%]   .info-msg-wrapper[_ngcontent-%COMP%]   .description-msg__text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:5px}@media screen and (min-width: 375px) and (max-width: 768px){.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter[_ngcontent-%COMP%]{padding:20px 0}.letters-wrapper[_ngcontent-%COMP%]   .list-letters[_ngcontent-%COMP%]   .item-letter__checkbox[_ngcontent-%COMP%]{display:none}}@media screen and (min-width: 375px) and (max-width: 768px){.letters-wrapper[_ngcontent-%COMP%]   .line-control[_ngcontent-%COMP%]{margin:16px;display:block}.letters-wrapper[_ngcontent-%COMP%]   .line-control__mob-cat[_ngcontent-%COMP%]{display:block;border-radius:5px;height:48px;width:48px;margin-left:16px}.letters-wrapper[_ngcontent-%COMP%]   .line-control__mob-cat_icon[_ngcontent-%COMP%]{color:#88909b}.letters-wrapper[_ngcontent-%COMP%]   .line-control__desk[_ngcontent-%COMP%]{display:none!important}.letters-wrapper[_ngcontent-%COMP%]   .line-control__input[_ngcontent-%COMP%]{margin-left:0;display:flex;margin-top:16px}.letters-wrapper[_ngcontent-%COMP%]   .line-control__input[_ngcontent-%COMP%]   app-select[_ngcontent-%COMP%], .letters-wrapper[_ngcontent-%COMP%]   .line-control__input[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]{width:100%}}.chat-wrapper[_ngcontent-%COMP%]{background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:2px;display:flex;flex-direction:column}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]{margin:32px 32px 0;padding-bottom:32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedede}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]   .info-line-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]   .info-line-wrapper[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%], .chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]   .info-line-wrapper[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:18px;line-height:25px;color:#444}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]   .info-line-wrapper[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:10px;line-height:14px;text-transform:uppercase;color:#fff;padding:4px 8px;border-radius:4px;margin-left:8px}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]   .info-line-wrapper[_ngcontent-%COMP%]   .type.important[_ngcontent-%COMP%]{background:#f86624}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]   .info-line-wrapper[_ngcontent-%COMP%]   .type.notify[_ngcontent-%COMP%]{background:#f1f2f2;color:#2f54eb}.chat-wrapper[_ngcontent-%COMP%]   .info-chat-line[_ngcontent-%COMP%]   .info-chat-content[_ngcontent-%COMP%]   .title-chat[_ngcontent-%COMP%]{margin-top:4px;font-family:Open Sans;font-style:normal;font-weight:700;font-size:24px;line-height:33px;color:#080708}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:740px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .title-msg[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:14px;color:#88909b;padding-left:32px;padding-top:32px;margin-bottom:4px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .title-msg.right[_ngcontent-%COMP%]{text-align:right}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .wrapper-date-msg[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;margin-left:32px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .wrapper-date-msg[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{background:rgba(241,242,242,.5);border-radius:20px;padding:8px 32px;width:max-content;font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#444}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .msg-chat[_ngcontent-%COMP%]{background:#f1f2f2;border-radius:0 12px 12px;display:flex;flex-direction:column;margin:8px 0 32px 32px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .msg-chat.outgoing[_ngcontent-%COMP%]{background:rgba(218,224,242,.5);border-radius:12px 0 12px 12px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .msg-chat[_ngcontent-%COMP%]   .text-msg[_ngcontent-%COMP%]{padding:20px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:15px;line-height:20px;color:#080708}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .msg-chat[_ngcontent-%COMP%]   .time-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 20px 20px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .msg-chat[_ngcontent-%COMP%]   .time-wrapper[_ngcontent-%COMP%]   .text-additional-info[_ngcontent-%COMP%], .chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .msg-chat[_ngcontent-%COMP%]   .time-wrapper[_ngcontent-%COMP%]   .time-msg[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#444}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]{border:1px solid #88909b;border-radius:12px;margin-left:32px;padding:20px 0 20px 20px;margin-bottom:40px;position:relative}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]     .attach-new-file{position:absolute;right:26px;top:21px;width:11px;height:22px;fill:#88909b;cursor:pointer}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .area-input[_ngcontent-%COMP%]{padding-right:25px;border:none;outline:none;resize:none;width:100%;height:63px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:15px;color:#080708;border-radius:12px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]{margin-top:30px;display:flex;flex-direction:column}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:14px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]     .icon{width:20px;height:20px;fill:#444}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]     .icon{fill:#444;width:14px;height:17px}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]     .icon svg{fill:#444}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-left:7px;margin-right:12px;font-weight:400;font-size:14px;line-height:19px;letter-spacing:.01em;color:#444;font-family:Open Sans,sans-serif}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .text.memory[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:16px;letter-spacing:.01em;color:#88909b;margin-right:7px;margin-left:0}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]{width:16px;height:16px;position:relative;transform:rotate(45deg);display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none;flex-shrink:0}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:before, .chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:before{height:2px;width:100%}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .remove-file[_ngcontent-%COMP%]:after{width:2px;height:100%}.chat-wrapper[_ngcontent-%COMP%]   .chats-list[_ngcontent-%COMP%]   .text-field-wrapper[_ngcontent-%COMP%]   .upload-files-name-msg[_ngcontent-%COMP%]   .item-upload-file-msg[_ngcontent-%COMP%]   .remove-file.small[_ngcontent-%COMP%]{width:15px;height:15px}.chat-wrapper[_ngcontent-%COMP%]   .action-wrapper-chat[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:32px;padding-bottom:50px}.mail-new-wrapper[_ngcontent-%COMP%]{background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:2px;display:flex;flex-direction:column}.mail-new-wrapper[_ngcontent-%COMP%]   .title-row-mail-new[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.mail-new-wrapper[_ngcontent-%COMP%]   .title-row-mail-new[_ngcontent-%COMP%]   .text-title-row-mail-new[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:700;font-size:24px;line-height:33px;color:#080708}.mail-new-wrapper[_ngcontent-%COMP%]   .action-wrapper-chat[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:32px;padding-bottom:50px}.btn[_ngcontent-%COMP%]{background:#2f54eb;border-radius:4px;display:flex;justify-content:center;align-content:center;height:max-content;width:max-content;cursor:pointer}@media screen and (min-width: 375px) and (max-width: 768px){.btn[_ngcontent-%COMP%]{width:100%;margin:16px 16px 4px}}.btn[_ngcontent-%COMP%]   .text-btn[_ngcontent-%COMP%]{padding:14px 28px;font-family:Open Sans;font-style:normal;font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#fff}.btn.white[_ngcontent-%COMP%]{border:1px solid #2f54eb;border-radius:4px;background:#fff}.btn.white[_ngcontent-%COMP%]   .text-btn[_ngcontent-%COMP%]{color:#2f54eb}.btn.gray[_ngcontent-%COMP%]{border:1px solid #2f54eb;border-radius:4px;background:#f1f2f2}.btn.gray[_ngcontent-%COMP%]   .text-btn[_ngcontent-%COMP%]{color:#2f54eb}.btn.mr16[_ngcontent-%COMP%]{margin-right:16px}.line-control__input[_ngcontent-%COMP%]     .panel-form__input input{border-color:#88909b;color:#88909b;height:48px}.done[_ngcontent-%COMP%]{color:#2f54eb}.confirm[_ngcontent-%COMP%]{color:#00a843}.pagination[_ngcontent-%COMP%]{height:46px;font-size:16px;text-align:center;background-color:#f1f2f1;color:#88909b;padding:12px 0;margin:-1px 32px 0;cursor:pointer}@media screen and (min-width: 375px) and (max-width: 768px){.pagination[_ngcontent-%COMP%]{margin:16px 16px 0}}@media screen and (min-width: 375px) and (max-width: 768px){.my-period-dates[_ngcontent-%COMP%]   app-metib-periodpicker[_ngcontent-%COMP%]{width:100%}}.my-period-dates[_ngcontent-%COMP%]     .period-picker__overlay{margin-left:0!important;width:278px!important}@media screen and (min-width: 375px) and (max-width: 768px){.my-period-dates[_ngcontent-%COMP%]     .period-picker{width:100%!important}.my-period-dates[_ngcontent-%COMP%]     .period-picker__overlay{margin-left:0!important;width:100%!important}.my-period-dates[_ngcontent-%COMP%]     .period-picker__button-period{width:100%!important}}.my-period-dates[_ngcontent-%COMP%]     .period-picker__buttons-wrap{margin-left:0!important;height:48px}.attach[_ngcontent-%COMP%]{background:url(pin.c9c23109b78334a1.svg) no-repeat;-webkit-mask:url(pin.c9c23109b78334a1.svg) no-repeat;width:20px;height:20px}.border-left[_ngcontent-%COMP%]{border-left:1px solid #2f54eb!important}.mail__title[_ngcontent-%COMP%]{color:#fff;font-size:33px;font-weight:600;margin-bottom:25px}.mail__content[_ngcontent-%COMP%]{box-shadow:0 4px 15px #0807080d;border-radius:2px;background-color:#fff;padding:32px}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;display:flex;align-items:center;padding-bottom:35px;border-bottom:1px solid #dedede}.mail[_ngcontent-%COMP%]   .header__title.filters[_ngcontent-%COMP%]   .title-item[_ngcontent-%COMP%]{color:#fff}@media screen and (min-width: 720px) and (max-width: 835px){.mail[_ngcontent-%COMP%]   .header__title.filters[_ngcontent-%COMP%]{flex-direction:column}}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]   .title-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;padding-right:8px;color:#080708}.mail[_ngcontent-%COMP%]   .header__title[_ngcontent-%COMP%]   .title-item.clickable[_ngcontent-%COMP%]{cursor:pointer;color:#7180b9;text-decoration:underline}@media screen and (min-width: 720px) and (max-width: 980px){.mail[_ngcontent-%COMP%]   .header__title.product[_ngcontent-%COMP%]{flex-direction:column}}.mail__content[_ngcontent-%COMP%]{margin-top:20px}.mail__content[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__tabs[_ngcontent-%COMP%]{flex-wrap:wrap}}.mail__content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]{display:flex;height:48px;margin:auto 0 auto auto}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__inputs[_ngcontent-%COMP%]{margin-right:auto;width:100%}}.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{margin-right:20px}@media screen and (max-width: 999px){.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{min-width:380px}}@media screen and (max-width: 667px){.mail__content[_ngcontent-%COMP%]   .content__inputs__input[_ngcontent-%COMP%]{min-width:250px}}.mail-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mail-content.empty[_ngcontent-%COMP%]{font-size:22px;line-height:28px;color:#88909b;min-height:472px;justify-content:center;align-items:center}.mail-content__item[_ngcontent-%COMP%]{min-height:128px;padding:20px;border-bottom:1px solid #dedede;display:flex;flex-wrap:wrap;justify-content:space-between;cursor:pointer}.mail-content__item[_ngcontent-%COMP%]:last-child{border:none}.mail-content__item-alert[_ngcontent-%COMP%]{flex-basis:100%;padding-left:50px;padding-top:10px}.mail-content__item__text[_ngcontent-%COMP%]{display:flex;flex:1}.mail-content__item__text[_ngcontent-%COMP%]   app-checkbox[_ngcontent-%COMP%]{margin-top:4px;margin-right:20px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text[_ngcontent-%COMP%]{max-width:800px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__mail-type[_ngcontent-%COMP%]{font-size:20px;margin-bottom:15px;display:flex}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__mail-type[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{margin-left:12px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__caption[_ngcontent-%COMP%]{font-size:16px}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__description[_ngcontent-%COMP%]{font-size:14px;color:#88909b}.mail-content__item__text[_ngcontent-%COMP%]   .item-text__from[_ngcontent-%COMP%]{font-size:18px;color:#444;margin-bottom:5px}.mail-content__item__time[_ngcontent-%COMP%]{font-size:20px;font-weight:600;display:flex;align-self:center}.mail-content__item__time[_ngcontent-%COMP%]   app-menu-select[_ngcontent-%COMP%]{height:25px;display:flex;margin:auto auto auto 25px}.mail-content__item__time[_ngcontent-%COMP%]   app-menu-select[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{cursor:pointer}.mail-content__item__time-info[_ngcontent-%COMP%]{text-align:right;font-weight:400}.mail-content__item__time-info__caption-sign[_ngcontent-%COMP%]{font-size:16px;color:#444;margin-top:12px}.mail-content__item__time-info__caption-status[_ngcontent-%COMP%]{font-size:14px;color:#88909b}.mail-content__item__time-info__decline[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#d9291e;margin-top:10px;text-align:left}.mail-content__item.unread[_ngcontent-%COMP%]{font-weight:600}.mail-footer[_ngcontent-%COMP%]{height:50px;line-height:50px;background:#f1f2f2;display:flex;flex-direction:row;align-items:center;text-align:center;justify-content:center;color:#88909b;cursor:pointer}[_nghost-%COMP%]     .mail-search{width:100%}.mail-attachment-icon[_ngcontent-%COMP%]{height:22px;font-size:22px;color:#88909b}[_nghost-%COMP%]     .mail-actions{width:5px;height:20px;fill:#88909b}[_nghost-%COMP%]     .mail-actions-wrapper{margin:auto;width:20px;display:flex;justify-content:center}.docs-for-sign__select[_ngcontent-%COMP%]{background:linear-gradient(251.59deg,#1162a1 0,#0e83df 99.45%);display:flex;justify-content:space-between;height:71px;padding:10px 20px;align-items:center;margin-bottom:20px;color:#fff}.wrapper-dot[_ngcontent-%COMP%]{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.wrapper-dot[_ngcontent-%COMP%]   .dot-unread[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#2f54eb}.wrapper-dot[_ngcontent-%COMP%]   .dot-unread.read[_ngcontent-%COMP%]{background:transparent}']})}(0,Wi.gn)([(0,yi.SQ)()],Mc.prototype,"lang",void 0);var Yu=t(37185);function cd(M,s){1&M&&e.\u0275\u0275element(0,"mat-icon",11)}function Jr(M,s){1&M&&e.\u0275\u0275element(0,"mat-icon",12)}function ps(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(o).$implicit,yt=e.\u0275\u0275nextContext().$implicit,Zt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Zt.onLinkClick(me,yt.notifType))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&M){const o=s.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o," ")}}function gu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",1)(1,"div",2),e.\u0275\u0275elementContainerStart(2,3),e.\u0275\u0275template(3,cd,1,0,"mat-icon",4),e.\u0275\u0275template(4,Jr,1,0,"mat-icon",5),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",6)(6,"div",7),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",9),e.\u0275\u0275template(10,ps,2,1,"div",10),e.\u0275\u0275elementEnd()()),2&M){const o=s.$implicit;e.\u0275\u0275property("ngClass",o.style),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngSwitch",o.style),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","orange"),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",o.title," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",o.message,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",o.actions)}}let Em=(()=>{class M{constructor(o){this.router=o}onLinkClick(o,g){switch(g){case"QUARTERLY_CRED_NOTIFICATION_SUCCESS":case"QUARTERLY_CRED_NOTIFICATION_ACCEPT":case"QUARTERLY_CRED_NOTIFICATION_REQUEST":this.router.navigate(["/credit"],{queryParams:{monitoring:!0}});break;case"PHONE_CHANGE_NOTIFICATION_SUCCESS":case"PHONE_CHANGE_NOTIFICATION_REQUEST":case"PHONE_CHANGE_NOTIFICATION_EIO_REQUEST":case"CONTACT_167_CHANGE_REQUEST":this.router.navigate(["settings"],{queryParams:{tab:"requests"}})}}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(bi.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-notify-main"]],inputs:{notifications:"notifications"},decls:1,vars:1,consts:[["class","wrapper-notify-main",3,"ngClass",4,"ngFor","ngForOf"],[1,"wrapper-notify-main",3,"ngClass"],[1,"wrapper-icon-notify-main"],[3,"ngSwitch"],["class","icon","svgIcon","error-rounded",4,"ngSwitchCase"],["class","icon","svgIcon","notify-tablet",4,"ngSwitchDefault"],[1,"content-notify-main"],[1,"title-content-notify-main"],[1,"description-content-notify-main",3,"innerHTML"],[1,"link-notify-main-wrapper"],["class","btn-link-notify-main",3,"click",4,"ngFor","ngForOf"],["svgIcon","error-rounded",1,"icon"],["svgIcon","notify-tablet",1,"icon"],[1,"btn-link-notify-main",3,"click"]],template:function(g,V){1&g&&e.\u0275\u0275template(0,gu,11,6,"div",0),2&g&&e.\u0275\u0275property("ngForOf",V.notifications)},dependencies:[i.mk,i.sg,i.RF,i.n9,i.ED,m.Hw],styles:['@charset "UTF-8";.wrapper-notify-main[_ngcontent-%COMP%]{margin-bottom:16px;display:flex;align-items:center;font-family:Open Sans;padding:16px 32px;border:1px solid #2F54EB;border-radius:8px;background:#fff}.wrapper-notify-main.red[_ngcontent-%COMP%]{background:rgba(226,52,40,.15);border-color:#e23428}.wrapper-notify-main.red[_ngcontent-%COMP%]   .wrapper-icon-notify-main[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#e23428}.wrapper-notify-main.orange[_ngcontent-%COMP%]{border-color:#f86624}.wrapper-notify-main.orange[_ngcontent-%COMP%]   .wrapper-icon-notify-main[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#f86624;width:19px;height:19px}.wrapper-notify-main[_ngcontent-%COMP%]   .wrapper-icon-notify-main[_ngcontent-%COMP%]{height:50px;min-width:32px;display:flex;align-items:center}.wrapper-notify-main[_ngcontent-%COMP%]   .wrapper-icon-notify-main[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#2f54eb;width:17px}.wrapper-notify-main[_ngcontent-%COMP%]   .content-notify-main[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}.wrapper-notify-main[_ngcontent-%COMP%]   .content-notify-main[_ngcontent-%COMP%]   .wrapper-title[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-notify-main[_ngcontent-%COMP%]   .content-notify-main[_ngcontent-%COMP%]   .wrapper-title[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{background:#F1F2F2;padding:3px 8px;margin-left:16px;font-family:Open Sans;font-size:12px;font-weight:600;line-height:16px;letter-spacing:0em;text-align:left;color:#2f54eb}.wrapper-notify-main[_ngcontent-%COMP%]   .content-notify-main[_ngcontent-%COMP%]   .title-content-notify-main[_ngcontent-%COMP%], .wrapper-notify-main[_ngcontent-%COMP%]   .content-notify-main[_ngcontent-%COMP%]   .description-content-notify-main[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:24px;letter-spacing:0em;text-align:left;color:#080708}.wrapper-notify-main[_ngcontent-%COMP%]   .content-notify-main[_ngcontent-%COMP%]   .description-content-notify-main[_ngcontent-%COMP%]{margin-top:6px;font-size:14px;font-weight:400;line-height:20px}.wrapper-notify-main[_ngcontent-%COMP%]   .link-notify-main-wrapper[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;display:flex}.wrapper-notify-main[_ngcontent-%COMP%]   .link-notify-main-wrapper[_ngcontent-%COMP%]   .btn-link-notify-main[_ngcontent-%COMP%]{margin-left:14px;font-size:14px;font-weight:600;line-height:19px;text-align:left;color:#2f54eb;border-bottom:1px solid;white-space:nowrap}']})}return M})();var uh=t(17489),vu=t(41795),ag=t(39841),Om=t(8226),Lp=t(29148),bu=t(72695),Ud=t(39916),ld=t(54331),Rp=t(89258),Cu=t(74565),Fp=t(69718);let sc=(()=>{class M{constructor(o){this.modalService=o}ngOnInit(){}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(La.Z))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-balance-info-modal"]],inputs:{text:"text"},decls:3,vars:1,consts:[[2,"width","600px"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"div")(1,"div",0),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&g&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(V.text))},encapsulation:2})}return M})();const Vd=["input"],ph=["saveButton"];function kf(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.showBalanceInfo())}),e.\u0275\u0275elementStart(1,"span",14),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"appCurrency"),e.\u0275\u0275pipe(4,"currencySymbol"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(5," - \u0431\u0430\u043b\u0430\u043d\u0441 \u043a\u0430\u0440\u0442\u044b "),e.\u0275\u0275elementStart(6,"sup"),e.\u0275\u0275text(7,"*"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(3,2,o.cardBalance)," ",e.\u0275\u0275pipeBind1(4,4,o.currency),"")}}function mh(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",9),e.\u0275\u0275text(2),e.\u0275\u0275elementStart(3,"app-svg-icon",10),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.editAlias(!0))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",11),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"appCurrency"),e.\u0275\u0275pipe(7,"currencySymbol"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,kf,8,6,"div",12),e.\u0275\u0275elementContainerEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.alias," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(6,4,o.balance)," ",e.\u0275\u0275pipeBind1(7,6,o.currency),""),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.cards&&o.cards.length)}}class Hu{constructor(s,o){this.productsService=s,this.modalService=o,this.editedAlias=new e.EventEmitter}get cardBalance(){return this.cards.reduce((s,o)=>s+parseFloat(o.balance),0).toFixed(2)}get input(){return this.inputRef.nativeElement}ngOnInit(){this.editProductAliasSub=this.productsService.editProductAlias$.subscribe(s=>this.editAlias(s))}ngOnDestroy(){this.unsubscribeFromCurrentSub(),this.editProductAliasSub&&this.editProductAliasSub.unsubscribe()}ngOnChanges(s){s.alias&&this.editAliasFlag&&(this.editableAlias=s.alias.currentValue,this.moveCarriageToEnd())}focusout(s){const{relatedTarget:o}=s;o!==this.saveButtonRef.nativeElement&&this.editAlias(!1)}editAlias(s){this.editAliasFlag=s,s?this.editableAlias=this.alias:this.unsubscribeFromCurrentSub(),setTimeout(o=>this.setFocus(s))}setFocus(s){s&&this.moveCarriageToEnd(),s?this.input.focus():this.input.blur()}moveCarriageToEnd(){const s=this.editableAlias.length;this.input.setSelectionRange(s,s)}save(){this.enableLoader(!0),this.currentSub=this.productsService.changeProductAlias(this.id,this.editableAlias).pipe((0,Fi.w)(s=>s?this.productsService.getProducts(!0).pipe((0,Fp.h)(s)):(0,An.of)(s))).subscribe(s=>{this.enableLoader(!1),this.editAlias(!1),s&&this.editedAlias.emit(this.editableAlias)})}enableLoader(s){this.loader=s}unsubscribeFromCurrentSub(){this.currentSub&&!this.currentSub.closed&&this.currentSub.unsubscribe()}showBalanceInfo(){this.modalService.open(sc,{inputs:{text:"* \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0434\u0435\u043d\u0435\u0433 \u043d\u0430 \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043f\u043e \u043a\u0430\u0440\u0442\u0435/\u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443"},size:"normal"})}static#e=this.\u0275fac=function(o){return new(o||Hu)(e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(La.Z))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Hu,selectors:[["app-product-alias-and-balance"]],viewQuery:function(o,g){if(1&o&&(e.\u0275\u0275viewQuery(Vd,7),e.\u0275\u0275viewQuery(ph,7,e.ElementRef)),2&o){let V;e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(g.inputRef=V.first),e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(g.saveButtonRef=V.first)}},inputs:{id:"id",balance:"balance",currency:"currency",alias:"alias",cards:"cards",productType:"productType"},outputs:{editedAlias:"editedAlias"},features:[e.\u0275\u0275NgOnChangesFeature],decls:11,vars:12,consts:[[4,"ngIf"],[1,"edit-alias",3,"hidden"],["data-qa","1657875148438","maxlength","35","type","text",1,"edit-alias__input",3,"ngModel","focusout","ngModelChange"],["input",""],[1,"edit-alias__buttons"],["data-qa","1657875162791","tabindex","-1","type","small",1,"edit-alias__button",3,"text","click"],["saveButton",""],["data-qa","1657875165824","type","small-bordered",1,"edit-alias__button",3,"text"],[3,"hidden"],[1,"product-alias-and-balance__title"],["data-qa","1657875068042","icon","pencil","svgClass","product-alias-and-balance__icon",3,"click"],[1,"product-alias-and-balance__balance"],["class","product-alias-and-balance__balance-card","data-qa","1657875078636",3,"click",4,"ngIf"],["data-qa","1657875078636",1,"product-alias-and-balance__balance-card",3,"click"],[1,"balance"]],template:function(o,g){1&o&&(e.\u0275\u0275template(0,mh,9,8,"ng-container",0),e.\u0275\u0275elementStart(1,"div",1)(2,"input",2,3),e.\u0275\u0275listener("focusout",function(me){return g.focusout(me)})("ngModelChange",function(me){return g.editableAlias=me}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",4)(5,"app-button",5,6),e.\u0275\u0275listener("click",function(){return g.save()}),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"app-button",7),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"app-loader",8),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275property("ngIf",!g.editAliasFlag),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!g.editAliasFlag),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",g.editableAlias),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(7,6,"Save",g.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(9,9,"Cancel",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",!g.loader))},dependencies:[l.DefaultValueAccessor,l.NgControlStatus,l.MaxLengthValidator,l.NgModel,Hr.b,xa.R,i.O5,Xt.r,yi.X$,js.G,Jc.H],styles:['@charset "UTF-8";.product-alias-and-balance__title[_ngcontent-%COMP%]{margin-bottom:15px;font-size:22px;color:#88909b;display:flex;align-items:center}.product-alias-and-balance__balance[_ngcontent-%COMP%]{white-space:nowrap;font-size:64px}.product-alias-and-balance__balance-card[_ngcontent-%COMP%]{font-size:22px;color:#004785}.product-alias-and-balance__balance-card[_ngcontent-%COMP%]   .balance[_ngcontent-%COMP%]{font-size:28px}.product-alias-and-balance__add-balance[_ngcontent-%COMP%]{cursor:pointer;color:#284681}[_nghost-%COMP%]     .product-alias-and-balance__icon{width:14px;height:14px;opacity:.5;margin-left:10px;cursor:pointer}.edit-alias[_ngcontent-%COMP%]{position:relative}.edit-alias__input[_ngcontent-%COMP%]{border:none;padding:0;font-size:22px;font-family:Source Sans Pro;color:#88909b;outline:none;width:300px;margin-bottom:34px}.edit-alias__buttons[_ngcontent-%COMP%]{display:flex;height:48px}.edit-alias__button[_ngcontent-%COMP%]{margin-right:18px;outline:none}.edit-alias__button[_ngcontent-%COMP%]:last-child{margin-right:0}']})}(0,Wi.gn)([(0,yi.SQ)()],Hu.prototype,"lang",void 0);var rg=t(83e3),hh=t(55324);function dd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",15)(1,"div",16),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",17),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"appCurrency"),e.\u0275\u0275pipe(7,"currencySymbol"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("font-weight","bold"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,7,"Card-file balance",o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275styleProp("font-weight","bold"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(6,10,+o.data.restAmountCatalog1+ +o.data.restAmountCatalog2)," ",e.\u0275\u0275pipeBind1(7,12,o.data.currency)," ")}}function ta(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",15)(1,"div",16),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",17),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"currencySymbol"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,3,"Documents awaiting acceptance or permission of the payer",o.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",o.data.restAmountCatalog1," ",e.\u0275\u0275pipeBind1(6,6,o.data.currency),"")}}function fh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",15)(1,"div",16),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",17),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"currencySymbol"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,3,"Documents not paid due to lack of or insufficient funds",o.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",o.data.restAmountCatalog2," ",e.\u0275\u0275pipeBind1(6,6,o.data.currency),"")}}function il(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",22)(1,"app-operation",23),e.\u0275\u0275listener("infoToggled",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.operationClick(V))}),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(2);e.\u0275\u0275attribute("data-qa","1657875272574"+g),e.\u0275\u0275advance(1),e.\u0275\u0275property("config",V.operationConfig)("operation",o),e.\u0275\u0275attribute("data-qa","1657875293025"+g)}}function Lf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",18)(1,"div",19)(2,"div",20),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(4,il,2,4,"div",21),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit;e.\u0275\u0275attribute("data-qa","1657875254737"+s.index),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.dateCapture),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.operations)}}function Wc(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"Operations not found",o.lang)," ")}}class ja{constructor(s,o){this.datePipe=s,this.userDataService=o,this.allOperations=[],this.filteredOperations=[],this.mask=null,this.filters={search:"",amountFrom:null,amountTo:null,chosenTypes:["All card files","Waiting acceptance","Not enough money for payment"]},this.operationConfig={hideCheckbox:!0,hideSvetofor:!0,isOpenable:!0},this.checkboxesForSelect=[{label:"All card files",all:!0,chosen:!0,value:"'waiting', 'not-enough'"},{label:"Waiting acceptance",chosen:!0,value:"'waiting'"},{label:"Not enough money for payment",chosen:!0,value:"'not-enough'"}]}get data(){return this._data}set data(s){this._data=s,this.allOperations=s.cardIndexDocument.map(o=>({isOpen:!!o.isOpen&&o.isOpen,id:o.id,accountId:s.accountId,counterpartName:o.corrFullname,label:"2"===o.cardIndexType?"Not enough money for payment":"Waiting acceptance",details:o.description,status:"Unpaid sum",amount:o.amount,currency:s.currency,unpaidAmount:o.unpaidAmount,date:o.dateAddDoc?o.dateAddDoc:o.docDate,info:{rows:(0,rg.aT)(o),buttons:[{type:"print",data:{url:`print/pdf?doc_ids=${o.id}`}}],learnMoreButton:{show:!0,link:"/payment-info",queryParams:{accountId:s.accountId,id:o.id}}},docType:"cardDoc"}))}ngOnInit(){this.filteredOperations=this.allOperations,this.fillDateBlocksWithOperations(),this.dateBlocks.sort((s,o)=>new Date(o.date)-new Date(s.date)),this.data.cardFileScroll&&window.scrollTo(this.data.cardFileScroll,this.data.cardFileScroll)}fillDateBlocksWithOperations(){this.dateBlocks=[],this.filteredOperations.forEach(s=>{const o=this.dateBlocks.find(g=>g.date===s.date);o?o.operations.push(s):this.dateBlocks.push({date:s.date,dateCapture:this.datePipe.transform(s.date,"dd MMMM yyyy",null,this.lang),operations:[s]})})}onSearchInput(s){this.filters.search=s.target.value,this.filterOperations()}onAmountInput(s,o){this.filters[o]=s.target.value||null,this.filterOperations()}onSelectType(s){this.filters.chosenTypes=s.filter(o=>o.chosen).map(o=>o.label),this.filterOperations()}operationClick(s){this.openedOperation&&this.openedOperation.info&&(this.openedOperation.isOpen=!1),this.openedOperation=s===this.openedOperation?null:s}filterOperations(){this.filteredOperations=[],this.filterSearch(),this.filterAmount(),this.filterTypes(),this.fillDateBlocksWithOperations()}filterTypes(){this.filteredOperations=this.filteredOperations.filter(s=>this.filters.chosenTypes.indexOf(s.label)>-1).sort((s,o)=>new Date(o.date).getTime()-new Date(s.date).getTime())}filterAmount(){const s=this.filters.amountFrom?+this.filters.amountFrom:Number.MIN_SAFE_INTEGER,o=this.filters.amountTo?+this.filters.amountTo:Number.MAX_SAFE_INTEGER;this.filteredOperations=this.filteredOperations.filter(g=>Math.abs(+g?.amount)>=s&&Math.abs(+g?.amount)<=o)}filterSearch(){const s=["corrInn","corrKpp","description","corrFullname","corrBankName","corrBankBik"];this.data.cardIndexDocument.forEach((o,g)=>{for(let V=0;V<s.length;V++){const me=this.filters.search.toLowerCase();if((o[s[V]]||"").toLowerCase().indexOf(me)>-1){this.filteredOperations.push(this.allOperations[g]);break}}})}saveScrollState(){this.data.cardFileScroll=window.scrollY,this.userDataService.cardFileInfo$.next(this.data)}static#e=this.\u0275fac=function(o){return new(o||ja)(e.\u0275\u0275directiveInject(i.uU),e.\u0275\u0275directiveInject(Da.M))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:ja,selectors:[["app-card-file"]],hostBindings:function(o,g){1&o&&e.\u0275\u0275listener("scroll",function(me){return g.saveScrollState(me)},!1,e.\u0275\u0275resolveWindow)},inputs:{data:"data"},features:[e.\u0275\u0275ProvidersFeature([i.uU])],decls:21,vars:18,consts:[["data-qa","1657875202601",1,"card-file","section-shadow"],["data-qa","1657875208051",1,"card-file__content"],["class","card-file__row",4,"ngIf"],[1,"card-file__inputs-group"],[1,"card-file__input-wrap","card-file__search"],["data-qa","1657875217927","type","text",1,"card-file__input",3,"placeholder","input"],[1,"card-file__icon-wrap"],["icon","search","svgClass","card-file__icon",1,"card-file__icon"],[1,"card-file__input-wrap","card-file__select"],["data-qa","1657875225538",3,"checkboxList","multiSelectChange"],[1,"card-file__input-wrap"],["data-qa","1663145688238","type","text","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');",1,"card-file__input",3,"placeholder","input"],["data-qa","1657875222399","type","text","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');",1,"card-file__input",3,"placeholder","input"],["class","card-file__operation-container",4,"ngFor","ngForOf"],["class","no-operations","data-qa","1657875303235",4,"ngIf"],[1,"card-file__row"],[1,"card-file__row-title"],[1,"card-file__row-value"],[1,"card-file__operation-container"],[1,"card-file__operation-title-wrap"],[1,"card-file__operation-title"],["class","card-file__operation",4,"ngFor","ngForOf"],[1,"card-file__operation"],[3,"config","operation","infoToggled"],["data-qa","1657875303235",1,"no-operations"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,dd,8,14,"div",2),e.\u0275\u0275template(3,ta,7,8,"div",2),e.\u0275\u0275template(4,fh,7,8,"div",2),e.\u0275\u0275elementStart(5,"div",3)(6,"label",4)(7,"input",5),e.\u0275\u0275listener("input",function(me){return g.onSearchInput(me)}),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"span",6),e.\u0275\u0275element(10,"app-svg-icon",7),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",8)(12,"app-multi-select",9),e.\u0275\u0275listener("multiSelectChange",function(me){return g.onSelectType(me)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div",10)(14,"input",11),e.\u0275\u0275listener("input",function(me){return g.onAmountInput(me,"amountFrom")}),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"div",10)(17,"input",12),e.\u0275\u0275listener("input",function(me){return g.onAmountInput(me,"amountTo")}),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(19,Lf,5,3,"div",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(20,Wc,3,4,"div",14),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.data.restAmountCatalog1&&g.data.restAmountCatalog2),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.restAmountCatalog1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.restAmountCatalog2),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(8,9,"Search",g.lang)),e.\u0275\u0275advance(5),e.\u0275\u0275property("checkboxList",g.checkboxesForSelect),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(15,12,"Amount from",g.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind2(18,15,"Amount to",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",g.dateBlocks),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===g.dateBlocks.length))},dependencies:[Hr.b,tu.O,hh.i,i.sg,i.O5,yi.X$,js.G,Jc.H],styles:['@charset "UTF-8";.card-file[_ngcontent-%COMP%]{margin-top:30px;padding:0 16px 20px}@media only screen and (min-width: 1500px){.card-file[_ngcontent-%COMP%]{margin-top:20px;padding:0 30px 20px}}.card-file__content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.card-file__row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #dedede;height:82px;align-items:center}.card-file__row-title[_ngcontent-%COMP%]{font-size:18px;color:#88909b;padding-right:15px}.card-file__row-value[_ngcontent-%COMP%]{font-size:18px;white-space:nowrap}.card-file__input-wrap[_ngcontent-%COMP%]{margin-right:11px;width:calc((75% - 290px)/2);position:relative}.card-file__input-wrap[_ngcontent-%COMP%]:last-child{margin-right:0}.card-file__input-wrap[_ngcontent-%COMP%]:nth-child(3){margin-right:12px}@media only screen and (min-width: 992px){.card-file__input-wrap[_ngcontent-%COMP%]{margin-right:16px;width:calc((75% - 305px)/2)}}.card-file__search[_ngcontent-%COMP%]{width:65%}.card-file__input[_ngcontent-%COMP%]{width:100%;outline:none;border:1px solid #dedede;border-radius:5px;font-size:16px;color:#000;padding:15px}.card-file__input[_ngcontent-%COMP%]::placeholder{color:#88909b}.card-file__inputs-group[_ngcontent-%COMP%]{display:flex;margin-top:30px;margin-bottom:30px}.card-file__select[_ngcontent-%COMP%]{min-width:257px}.card-file__icon-wrap[_ngcontent-%COMP%]{display:block;position:absolute;top:50%;transform:translateY(-50%);right:12px;cursor:pointer}[_nghost-%COMP%]     .card-file__icon{width:12px;height:12px}.card-file__operation-title-wrap[_ngcontent-%COMP%]{height:50px;line-height:50px;background:#f1f2f2;padding:0 20px}.card-file__operation-title[_ngcontent-%COMP%]{font-size:1.1em;color:#88909b}.card-file__operation[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid #dedede}.card-file__operation[_ngcontent-%COMP%]:last-child{border-bottom:none}.card-file__operation[_ngcontent-%COMP%]   app-operation[_ngcontent-%COMP%]{width:100%}']})}(0,Wi.gn)([(0,yi.SQ)()],ja.prototype,"lang",void 0);var _h=t(53065);function sg(M){if(M.value){const s=/\d+/;return!M.value.split(".").pop().match(s)&&M.value.split(".").pop().length<=6?null:{validateIsNoNumber:{valid:!1}}}return null}const gh=["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/];class Gu{constructor(s,o,g,V,me){this.dynamicFormService=s,this.documentService=o,this.configUtilService=g,this.translation=V,this.toast=me,this.phoneMask=gh,this.sendingRequisitesFormConfig=(({emailMask:M,phoneMask:s})=>[{field:{name:"phoneNumber",validators:[l.Validators.required,l.Validators.pattern(/\+7 \(\d\d\d\) \d\d\d \d\d \d\d/)]},component:{type:Si.j.Input,title:"Settings phone",placeholder:"Enter phone"},mask:{TextMask:s},visual:{},dataQa:"1660030616127"},{field:{name:"email",validators:[l.Validators.required,l.Validators.email,sg]},component:{type:Si.j.Input,title:"Email",placeholder:"Enter email"},mask:{TextMask:M},visual:{},dataQa:"1660030617804"}])({emailMask:_h.emailMask,phoneMask:gh}),this.sendingRequisitesForm=this.dynamicFormService.generateFormGroup(this.sendingRequisitesFormConfig)}handleEvent(s){const o=this.sendingRequisitesForm.get("phoneNumber");"focus"===s.eventType&&"phoneNumber"===s.fieldName&&(o.value||this.sendingRequisitesForm.get("phoneNumber").setValue(" ")),"blur"===s.eventType&&"phoneNumber"===s.fieldName&&(" "===o.value||""===o.value)&&this.sendingRequisitesForm.get("phoneNumber").setValue("")}ngOnInit(){this.sendingRequisitesForm.get("email").patchValue(this.defaultEmail)}send(){if(!this.phoneOrEmailValid)return;this.clearAlert(),this.enableLoader(!0);let{email:s}=this.sendingRequisitesForm.value,o=this.sendingRequisitesForm.value.phoneNumber;o=o&&this.configUtilService.phoneValidator(o)?parseInt(o.replace(/\D+/g,""),10):null,s&&this.configUtilService.emailValidator(s)||(s=null),this.documentService.sendRequisites(this.id,s,o).subscribe(()=>{this.toast.show("Requisites successfully sent","success"),this.enableLoader(!1)},g=>{this.toast.show(g.errorText,"error"),this.enableLoader(!1)})}get phoneOrEmailValid(){return this.configUtilService.isAtLeastOneValid(this.sendingRequisitesForm)}enableLoader(s){this.loader=s}clearAlert(){this.alert=null}get alertData(){return{items:[this.alert]}}static#e=this.\u0275fac=function(o){return new(o||Gu)(e.\u0275\u0275directiveInject(Ba.w),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(jo.j))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Gu,selectors:[["app-sending-requisites"]],inputs:{id:"id",defaultEmail:"defaultEmail",defaultPhoneNumber:"defaultPhoneNumber"},decls:6,vars:8,consts:[["data-qa","1657874548082",1,"sending-requisites"],["data-qa","1657874543972",1,"sending-requisites__form",3,"config","formGroup","event"],[1,"sending-requisites__buttons"],["data-qa","1657874552501","type","small",1,"sending-requisites__button",3,"disabled","text","click"],[3,"hidden"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"app-dynamic-form",1),e.\u0275\u0275listener("event",function(me){return g.handleEvent(me)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",2)(3,"app-button",3),e.\u0275\u0275listener("click",function(){return g.send()}),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(5,"app-loader",4),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("config",g.sendingRequisitesFormConfig)("formGroup",g.sendingRequisitesForm),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(4,5,"Send requisites",g.lang)),e.\u0275\u0275property("disabled",!g.phoneOrEmailValid),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",!g.loader))},dependencies:[l.NgControlStatusGroup,xa.R,l.FormGroupDirective,ye.r,Xt.r,yi.X$],styles:['@charset "UTF-8";.sending-requisites[_ngcontent-%COMP%]{position:relative;padding-bottom:15px;margin-bottom:15px}.sending-requisites__form[_ngcontent-%COMP%]{display:block;margin:-15px 0 15px}.sending-requisites__button[_ngcontent-%COMP%]{display:block;height:60px;margin-bottom:30px}.sending-requisites__button[_ngcontent-%COMP%]:last-child{margin-bottom:0}.sending-requisites__alert[_ngcontent-%COMP%]{display:block;margin-top:30px}.sending-requisites__inputs-wrap[_ngcontent-%COMP%]{position:relative}.sending-requisites__input[_ngcontent-%COMP%]{width:100%;border:1px solid #dedede;outline:none;padding:30px 12px 12px;background:none;font-size:16px;border-radius:5px;box-sizing:border-box;margin:15px 0}.sending-requisites__top-desc[_ngcontent-%COMP%]{position:absolute}[_nghost-%COMP%]     .dynamicFieldError .dynamic-input__input{border:1px solid #d9291e;box-shadow:inset 0 0 0 1px #d9291e;border-radius:5px}']})}function cg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",55),e.\u0275\u0275element(1,"app-path",56),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",o.pagePath)}}function lg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",57)(1,"span",45),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,"My fin",o.lang))}}function Rf(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",58)}function dg(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",59)}function ug(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",60)}function vh(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",61)}(0,Wi.gn)([(0,yi.SQ)()],Gu.prototype,"lang",void 0);const pg=function(M){return{"multi-symbol":M}};function mg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",62),e.\u0275\u0275pipe(1,"currencySymbol"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"currencySymbol"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,pg,e.\u0275\u0275pipeBind1(1,2,o.product.currency).length>1)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,4,o.product.currency)," ")}}function hg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Till",o.lang)," ",o.configUtilService.formatDateString(o.product.endDate)," ")}}function fg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Till",o.lang)," ",o.configUtilService.formatDateString(o.product.endDate)," ")}}function _g(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"NextPayAmount",o.lang)," ")}}function ol(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"currencySymbol"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate3(" ",o.configUtilService.formatDateDMStrng(o.product.creditInformation.nextPayDate)," ",o.product.creditInformation.nextPaymentAmount," ",e.\u0275\u0275pipeBind1(2,3,o.product.currency)," ")}}function bh(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",64),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.openRestrictionsModal())}),e.\u0275\u0275element(1,"div",65),e.\u0275\u0275elementStart(2,"span",66),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Suspended, view restrictions",o.lang))}}function Ch(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",67),e.\u0275\u0275element(1,"div",68),e.\u0275\u0275elementStart(2,"span",69),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Account to close",o.lang))}}function gg(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",70),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.openRestrictionsModal())}),e.\u0275\u0275element(1,"app-svg-icon",71),e.\u0275\u0275elementStart(2,"span",72),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Blocked, view restrictions",o.lang))}}function Ff(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",73),e.\u0275\u0275element(1,"app-svg-icon",74),e.\u0275\u0275elementStart(2,"span",75),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Blocked, can not view restrictions",o.lang))}}function vg(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",76)}function Ws(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",77)}function wc(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",78)}function yh(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",79)}function bg(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",80),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.changeTabMode("requisites"))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("active","requisites"===o.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,"Requisites",o.lang)," ")}}function Cg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span",83),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.cardFileData.cardIndexDocument.length," ")}}function Bp(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",81),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.changeTabMode("cardfile"))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275template(3,Cg,2,1,"span",82),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("active","cardfile"===o.activeMode)("disabled",o.isCardFileTabDisabled||!o.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,6,"Card file",o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.cardFileData&&!o.isCardFileTabDisabled&&o.isShowOperationsBlock&&o.isShowCardIndex)}}function Sm(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-button",84),e.\u0275\u0275pipe(1,"translate")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Add credit payment",o.lang))}}function Tm(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",85),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.openExportCardFileDocumentsModal())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Register of card file documents",o.lang))}}function T0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275element(1,"app-svg-icon",86),e.\u0275\u0275elementStart(2,"span",66),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Attention! There are restrictions",o.lang))}}function Im(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-button",87),e.\u0275\u0275pipe(1,"translate")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Refill",o.lang))}}function I0(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-button",88),e.\u0275\u0275pipe(1,"translate")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Add credit payment",o.lang))}}function Bf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",99)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657788804809"+g),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,o.title,V.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.value)}}function Nf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",97),e.\u0275\u0275template(1,Bf,6,6,"div",98),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.productRequisites)}}function xh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",105)(1,"div",108),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",108),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",108),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&M){const o=s.$implicit;e.\u0275\u0275attribute("data-qa","1657788871896"+s.index),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.corrBankName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.corrBankSwift),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.corrBankAccount)}}function Mh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",102)(1,"div",103),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",104)(6,"div",105)(7,"div",106),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",106),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",106),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(16,xh,7,4,"div",107),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate3(" ",e.\u0275\u0275pipeBind2(3,7,"Corr bank list",o.lang)," ",o.product.currency," . ",e.\u0275\u0275pipeBind2(4,10,"You can use any of the list",o.lang),": "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,13,"Correspondent bank name",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(12,16,"SWIFT code",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(15,19,"Account bank \u2116",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",o.product.swiftBankingInformation.corrBankInfo)}}function Dh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",89)(1,"div",90)(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",91)(6,"div",92),e.\u0275\u0275template(7,Nf,2,1,"div",93),e.\u0275\u0275elementStart(8,"div",94),e.\u0275\u0275element(9,"app-sending-requisites",95),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(10,Mh,17,22,"div",96),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,6,"Requisites",o.lang)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",o.productRequisites),e.\u0275\u0275advance(2),e.\u0275\u0275property("defaultEmail",null==o.employeeInfo?null:o.employeeInfo.email)("defaultPhoneNumber",null==o.employeeInfo?null:o.employeeInfo.phoneNumber)("id",o.product.id),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==o.product.swiftBankingInformation?null:o.product.swiftBankingInformation.corrBankInfo)}}function ud(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",99)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract from",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateString(o.product.beginDate))}}function wm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",129)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract to",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.configUtilService.formatDateString(o.isDeposit||"account"===o.product.productType?o.product.closeDate:o.product.endDate)," ")}}function Am(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",130)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract from",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateString(o.contractCardFrom))}}function vl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",131)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract to",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateString(o.contractCardEnd))}}function yg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",132)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Additional info",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.product.info)}}function jf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",133)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Deposit percent",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.product.interestRate)}}function Uf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",134)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"appCurrency"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Amount of balance",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,5,o.product.balance))}}function xg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",135)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"SMS notification",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.smsPhone)}}function Mg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",136)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101)(5,"span",137),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,4,"Status card",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275classProp("active",o.isActiveCard),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.isActiveCard?"\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f":"\u041d\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f")}}function yu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",138)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Actual time of balance",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateStringDMYHM(o.product.actual,!0))}}function Ph(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",139)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Deposit limit",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.product.limit)}}function w0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",140),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about deposit",o.lang),' "',o.product.alias||o.product.info,'" ')}}function Dg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",141),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about credit",o.lang),' "',o.product.alias||o.product.info,'" ')}}function Pg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",142),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about account",o.lang),' "',o.product.alias||o.product.info,'" ')}}function Eg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",143),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about card",o.lang),' "',o.product.formattedNumber,'" ')}}function Og(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",144)(1,"div",145),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",146),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.cardNumber),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e ",o.cardExpireDate,"")}}const Sg=function(M){return{"card-product":M}};function Tg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",109)(1,"div",90)(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",110)(6,"div",111),e.\u0275\u0275template(7,ud,6,5,"div",112),e.\u0275\u0275template(8,wm,6,5,"div",113),e.\u0275\u0275template(9,Am,6,5,"div",114),e.\u0275\u0275template(10,vl,6,5,"div",115),e.\u0275\u0275template(11,yg,6,5,"div",116),e.\u0275\u0275template(12,jf,6,5,"div",117),e.\u0275\u0275template(13,Uf,7,7,"div",118),e.\u0275\u0275template(14,xg,6,5,"div",119),e.\u0275\u0275template(15,Mg,7,7,"div",120),e.\u0275\u0275template(16,yu,6,5,"div",121),e.\u0275\u0275template(17,Ph,6,5,"div",122),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",123),e.\u0275\u0275template(19,w0,3,5,"div",124),e.\u0275\u0275template(20,Dg,3,5,"div",125),e.\u0275\u0275template(21,Pg,3,5,"div",126),e.\u0275\u0275template(22,Eg,3,5,"div",127),e.\u0275\u0275template(23,Og,5,2,"div",128),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,18,"Information",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(21,Sg,o.isAccountCard)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.product.beginDate&&!o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.isAccountCard&&(o.isDeposit||"account"===o.product.productType?o.product.closeDate:o.product.endDate)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(o.isAccount||o.isDeposit)&&o.product.info),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","account"!==o.product.productType&&"card"!==o.product.productType&&!o.isDeposit&&o.product.interestRate),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(o.isAccount||o.isDeposit)&&o.product.balance),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.smsInformationEnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.product.actual),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","account"===o.product.productType&&o.product.limit),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isCredit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard)}}function Vf(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",151)(1,"div")(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-datepicker",152),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(me.datePickersChanged(V,"beginDate"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div")(7,"span",45),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"app-datepicker",153),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(me.datePickersChanged(V,"endDate"))}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,"From",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.beginDate),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,7,"To",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.endDate)}}function $f(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",147)(1,"div")(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-no-input-select",148),e.\u0275\u0275listener("periodChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.changePeriod(V))}),e.\u0275\u0275elementStart(6,"span",149),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"lowercase"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(9,Vf,11,10,"div",150),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,"Dynamic of operations",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("items",o.periods),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,7,o.datesPeriod.currentPeriod.description)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","today"!==o.datesPeriod.currentPeriod.period&&"yesterday"!==o.datesPeriod.currentPeriod.period)}}function Eh(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-analytics",154),e.\u0275\u0275pipe(1,"async")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("activeType",e.\u0275\u0275pipeBind1(1,3,o.operationsService.currencyType$))("datesPeriod",o.datesPeriod)("updateChartProducts",o.updateChartProducts)}}function Ig(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",155)(1,"span",45),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(4,"app-operations",156)),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Operations",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("productIdForStatement",null==o.product?null:o.product.id)("showOperationsControlsBlock",!o.isPartnerAcc)}}function Oh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",157)(1,"div",158),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"app-card-file",159),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,2,"Card file documents",o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("data",o.cardFileData)}}function wg(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275element(1,"app-notify-main",3),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275template(3,cg,2,1,"div",4),e.\u0275\u0275template(4,lg,4,4,"ng-template",null,5,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementStart(6,"div",6)(7,"div",7),e.\u0275\u0275template(8,Rf,1,0,"app-svg-icon",8),e.\u0275\u0275template(9,dg,1,0,"app-svg-icon",9),e.\u0275\u0275template(10,ug,1,0,"app-svg-icon",10),e.\u0275\u0275template(11,vh,1,0,"app-svg-icon",11),e.\u0275\u0275template(12,mg,4,8,"div",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",13)(14,"div",14)(15,"div",15)(16,"app-product-alias-and-balance",16),e.\u0275\u0275listener("editedAlias",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.changeAlias(V))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"div",17)(18,"div",18),e.\u0275\u0275text(19),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(21,hg,3,5,"div",19),e.\u0275\u0275template(22,fg,3,5,"div",19),e.\u0275\u0275template(23,_g,3,4,"div",19),e.\u0275\u0275template(24,ol,3,5,"div",19),e.\u0275\u0275template(25,bh,5,4,"div",20),e.\u0275\u0275template(26,Ch,5,4,"div",21),e.\u0275\u0275template(27,gg,5,4,"div",22),e.\u0275\u0275template(28,Ff,5,4,"div",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",24),e.\u0275\u0275template(30,vg,1,0,"app-svg-icon",25),e.\u0275\u0275template(31,Ws,1,0,"app-svg-icon",26),e.\u0275\u0275template(32,wc,1,0,"app-svg-icon",27),e.\u0275\u0275template(33,yh,1,0,"app-svg-icon",28),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(34,"div",29)(35,"div",30)(36,"div",31)(37,"div",32),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.changeTabMode("finance"))}),e.\u0275\u0275text(38),e.\u0275\u0275pipe(39,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(40,bg,3,6,"div",33),e.\u0275\u0275elementStart(41,"div",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.changeTabMode("information"))}),e.\u0275\u0275text(42),e.\u0275\u0275pipe(43,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(44,Bp,4,9,"div",35),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(45,"div",36)(46,"div",37),e.\u0275\u0275template(47,Sm,2,4,"app-button",38),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"div",37),e.\u0275\u0275template(49,Tm,2,4,"app-button",39),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(50,"div",40),e.\u0275\u0275text(51),e.\u0275\u0275pipe(52,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(53,T0,5,4,"div",41),e.\u0275\u0275template(54,Im,2,4,"app-button",42),e.\u0275\u0275template(55,I0,2,4,"app-button",43),e.\u0275\u0275elementStart(56,"div",44),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.mobileRequisites=!V.mobileRequisites)}),e.\u0275\u0275elementStart(57,"span",45),e.\u0275\u0275text(58),e.\u0275\u0275pipe(59,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(60,"app-svg-icon",46),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(61,Dh,11,9,"div",47),e.\u0275\u0275elementStart(62,"div",48),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.mobileInformation=!V.mobileInformation)}),e.\u0275\u0275elementStart(63,"span",45),e.\u0275\u0275text(64),e.\u0275\u0275pipe(65,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(66,"app-svg-icon",46),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(67,Tg,24,23,"div",49),e.\u0275\u0275elementStart(68,"div",50),e.\u0275\u0275template(69,$f,10,9,"div",51),e.\u0275\u0275template(70,Eh,2,5,"app-analytics",52),e.\u0275\u0275template(71,Ig,5,6,"ng-template",53),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(72,Oh,5,5,"div",54),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275reference(5),g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("notifications",e.\u0275\u0275pipeBind1(2,54,g.userDataService.notifications$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!g.productsService.isSingleAccount$.value)("ngIfElse",o),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",g.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isCredit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isAccount),e.\u0275\u0275advance(4),e.\u0275\u0275property("alias",g.product.alias||g.product.info)("balance",g.product.balance)("cards",g.product.linkedCards)("currency",g.product.currency)("id",g.product.id)("productType",g.product.productType),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" \u2116 ",e.\u0275\u0275pipeBind2(20,56,"accounts",g.lang)," ",g.product.formattedNumberMask?g.product.formattedNumberMask:g.product.formattedNumber," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","credit"===g.product.productType&&"information"!==g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","card"===g.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","credit"===g.product.productType&&"information"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","credit"===g.product.productType&&"information"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.product.stays&&"block"!==g.product.status&&g.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.product.subtype===g.CLOSED_ACCOUNT_SUBTYPE),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","block"===g.product.status&&g.product.stays&&g.product.stays.length&&g.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","block"===g.product.status&&(!g.product.stays||!g.product.stays.length)&&g.isShowOperationsBlock),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isCredit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","account"===g.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","card"===g.product.productType),e.\u0275\u0275advance(4),e.\u0275\u0275classProp("active","finance"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(39,59,"Finance",g.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isShowRequisitesTab),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("active","information"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(43,62,"Information",g.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","account"===g.product.productType&&g.isShowCardIndex),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",g.isCredit),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.cardFileData&&!g.isCardFileTabDisabled&&g.isShowOperationsBlock&&g.isShowCardIndex),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" \u2116 ",e.\u0275\u0275pipeBind2(52,65,"accounts",g.lang)," ",g.product.formattedNumber," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","account"===g.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","credit"===g.product.productType),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(59,68,"Requisites",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("svgClass",g.getArrowClasses(g.mobileRequisites)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","requisites"===g.activeMode||g.mobileRequisites),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(65,71,"Information",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("svgClass",g.getArrowClasses(g.mobileInformation)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","information"===g.activeMode||g.mobileInformation),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden","finance"!==g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isPartnerAcc),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isPartnerAcc),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","cardfile"===g.activeMode)}}function Ag(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",160),e.\u0275\u0275element(1,"app-loader"),e.\u0275\u0275elementEnd())}class Qu{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti){this.configUtilService=s,this.userDataService=o,this.router=g,this.lastOperationService=V,this.translation=me,this.route=yt,this.modalService=Zt,this.productsService=Pn,this.toast=Fn,this.serverSettingsService=Di,this.operationsService=Ti,this.pagePath=[{capture:"Main",href:"/",bold:!0}],this.isCardFileTabDisabled=!0,this.activeMode="finance",this.mobileRequisites=!1,this.mobileInformation=!1,this.allProducts=[],this.CLOSED_ACCOUNT_SUBTYPE=Om._7,this.isShowOperationsBlock=!1,this.isShowCardIndex=!1,this.isShowRequisitesTab=!1,this.destroyed$=new co.x,this._datesPeriod=JSON.parse(sessionStorage.getItem("filter-period"))||this.lastOperationService.chosenPeriod$.value,this.periods=this.lastOperationService.periods.filter(vo=>"quater"!==vo.period)}get datesPeriod(){return this._datesPeriod}set datesPeriod(s){const o=this.lastOperationService.setPeriodInRange(this.datesPeriod,s);o.hasError&&this.toast.show("Year dates error","error"),this._datesPeriod=o.period,sessionStorage.setItem("filter-period",JSON.stringify(o.period)),this.lastOperationService.chosenPeriod$.next(o.period)}get isAccountCard(){return 7===parseInt(this.product.type.trim(),10)}get isPartnerRurAcc(){return Om.zN.includes(this.product?.subtype)&&this.product?.currencyCode===Om.$3}get isPartnerAcc(){return Om.zN.includes(this.product?.subtype)}get isAccount(){return"account"===this.product.productType&&!this.isAccountCard}get isNewAccount(){return this.isAccount&&"new"===this.product.status}get isRurAccount(){return["810","643"].includes(this.product.currencyCode)}get isDeposit(){return"deposit"===this.product.productType}get isCredit(){return"credit"===this.product.productType}get smsInformationEnabled(){const s=this.product.linkedCards;return this.isAccountCard&&s.length&&"true"===s[0].smsInformOn}get smsPhone(){if(this.smsInformationEnabled){const o=this.product.linkedCards[0].smsPhone.match(/^(\d)(\d{3})(\d{3})(\d{2})(\d{2})$/);return`+${o[1]} (${o[2]}) ${o[3]}-**-${o[5]}`}}get contractCardFrom(){return this.isAccountCard?this.product.linkedCards[0].beginDate:void 0}get contractCardEnd(){return this.isAccountCard?this.product.linkedCards[0].endDate:void 0}get cardNumber(){return this.isAccountCard?this.product.linkedCards[0].formattedNumber:void 0}get cardExpireDate(){return this.isAccountCard?this.product.linkedCards[0].expire:void 0}get isActiveCard(){if(this.isAccountCard)return"new"===this.product.linkedCards[0].status}get cardFileInfo(){return this.userDataService.cardFileInfo$.value}set cardFileInfo(s){this.userDataService.cardFileInfo$.next(s)}ngOnInit(){this.route.params.pipe((0,zn.R)(this.destroyed$),(0,Fi.w)(s=>(this.productsService.currentProductId$.next(s.id),(0,ag.a)([this.productsService.getProduct(s.id),this.userDataService.getClientInfoOrganization()]))),(0,uo.h)(Boolean)).subscribe(([s,o])=>{this.organizationInfo=o,this.pagePath[1]={capture:`${s?.productType||""}s`},this.activeMode="finance",this.product=s,this.operationsService.products=[s],this.product.swiftBankingInformation&&this.product.swiftBankingInformation.corrBankInfo&&(this.product.swiftBankingInformation.corrBankInfo=this.configUtilService.getArray(this.product.swiftBankingInformation.corrBankInfo)),this.userDataService.currentProduct$.next(this.product),this.product&&("card"===this.product.productType&&(this.product.formattedNumber=this.product.formattedNumber.split("X").join("*"),this.product.formattedNumber=this.product.formattedNumber.split("-").join("  "),this.product.formattedNumberMask=(0,Br.xm)(this.product.number,this.configUtilService.accountNumberMask,{guide:!1}).conformedValue),this.lastOperationService.currentPerformOperationFilters={accountNums:[this.product.number],currencyType:this.product.currency},this.allProducts.push(this.product),this.operationsService.currentTab$.next(vu.d$.Performed),this.operationsService.performedTab$.next(vu.Os.All),this.operationsService.currencyType$.next(this.product.currency),this.getCardFileData(),this.getProductRequisites(this.product),this.serverSettingsService.getResource("SERVICES/UL").pipe((0,zn.R)(this.destroyed$)).subscribe(g=>{this.isShowRequisitesTab=1===g["OTHER/REQUISITE_OPERATIONS"],this.isShowOperationsBlock=1===g["SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"]&&1===g["OTHER/ACCOUNTS_STAY_LIST"],this.isShowCardIndex=1===g["SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"]&&1===g["OTHER/CARD_INDEX"]&&0===g["SERVICE_SECTIONS/CARD_INDEX"]}))}),this.userDataService.employeeInfo$.pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{this.employeeInfo=s}),this.queryParamsSub=this.route.queryParams.pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{"cardfile"===s.tab&&this.cardFileInfo&&(this.isCardFileTabDisabled=!1,this.activeMode=s.tab,this.cardFileData=this.cardFileInfo)}),this.operationsService.currencyType$.pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{const g=this.operationsService.products.filter(V=>V.currency===s).map(V=>V.id);(!this.updateChartProducts||!uh.isEqual(this.updateChartProducts,g))&&setTimeout(()=>{this.updateChartProducts=g})})}getCardFileData(){if("account"===this.product.productType){if(this.cardFileInfo)return this.cardFileData=this.cardFileInfo,void(this.isCardFileTabDisabled=!1);this.userDataService.getCardFileData(this.product.id).pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{s&&(s.hasOwnProperty("cardIndexDocument")?(this.isCardFileTabDisabled=!1,this.cardFileData=s,this.cardFileData.cardIndexDocument=this.configUtilService.getArray(this.cardFileData.cardIndexDocument),this.cardFileData.currency=this.userDataService.currentProduct$.value.currency,this.cardFileInfo=this.cardFileData):("cardfile"===this.activeMode&&(this.activeMode="finance"),this.isCardFileTabDisabled=!0))})}}changeTabMode(s){this.mobileRequisites=!1,this.mobileInformation=!1,this.activeMode=s}getArrowClasses(s){return s?"mobile__arrow-icon rotated":"mobile__arrow-icon"}datePickersChanged(s,o){this.datesPeriod={...this.datesPeriod,[o]:s},"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(g=>"period"===g.period)),this.operationsService.periodChanged()}changePeriod(s){"period"!==s.period?(this.datesPeriod=this.lastOperationService.changePeriod(s,this.datesPeriod.endDate,this.datesPeriod.beginDate),this.operationsService.periodChanged()):this.datesPeriod={...this.datesPeriod,currentPeriod:s}}openRestrictionsModal(){this.modalService.open(Ud.x,{inputs:{product:this.product},size:"big"})}changeAlias(s){this.product.alias=s}getProductRequisites(s){this.productRequisites=(0,bu.V)(s,this.organizationInfo)}openExportCardFileDocumentsModal(){this.modalService.open(Lp.J,{header:"Register of card file documents",styleMode:"forSign"})}ngOnDestroy(){this.paramsSub&&this.paramsSub.unsubscribe(),this.queryParamsSub&&this.queryParamsSub.unsubscribe(),this.editProductSub&&this.editProductSub.unsubscribe(),this.userDataService.currentProduct$.next(null),this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(o){return new(o||Qu)(e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(ws.l),e.\u0275\u0275directiveInject(ld.$))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Qu,selectors:[["app-product"]],decls:2,vars:2,consts:[["class","last-operations-container","data-qa","1657788528016",4,"ngIf"],["class","product__loader-wrap card",4,"ngIf"],["data-qa","1657788528016",1,"last-operations-container"],[3,"notifications"],["class","last-operations-container__title filters product__title","data-qa","1657788531977",4,"ngIf","ngIfElse"],["singleComponentTitle",""],["data-qa","1657788547628",1,"product__info"],["data-qa","1657788552267",1,"product__info-icon"],["icon","deposit","svgClass","product__info-icon-svg",4,"ngIf"],["icon","percent","svgClass","product__info-icon-svg",4,"ngIf"],["icon","account","svgClass","product__info-icon-svg no-opacity",4,"ngIf"],["icon","card_sidebar","svgClass","product__info-icon-svg card-svg",4,"ngIf"],["class","product__info-icon-currency",3,"ngClass",4,"ngIf"],["data-qa","1657788560966",1,"product__info-container"],[1,"product__info-header"],["data-qa","1657788577744",1,"product__info-header__content","left"],["data-qa","1657788571134",3,"alias","balance","cards","currency","id","productType","editedAlias"],["data-qa","1657788580467",1,"product__info-header__content","right"],[1,"product__info-header__content__title"],["class","product__info-header__content__value",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788590132",3,"click",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788590132",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788600902",3,"click",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788613051",4,"ngIf"],["data-qa","1657788621860",1,"product__info-icon","mobile__default"],["icon","deposit","svgClass","product__info-icon-svg-mobile",4,"ngIf"],["icon","percent","svgClass","product__info-icon-svg-mobile",4,"ngIf"],["icon","account","svgClass","product__info-icon-svg-mobile no-opacity",4,"ngIf"],["icon","card","svgClass","product__info-icon-svg-mobile",4,"ngIf"],["data-qa","1657788628721",1,"product__info-footer"],[1,"last-operations-content__filters","desktop__flex-tablet"],[1,"period-filter","desktop__flex-tablet"],["data-qa","1657788642382",1,"period-filter__item","product-item",2,"padding","0","margin-left","0",3,"click"],["class","period-filter__item product-item","data-qa","1657788647557","style","padding: 0",3,"active","click",4,"ngIf"],["data-qa","1657788652907",1,"period-filter__item","product-item",2,"padding","0",3,"click"],["class","period-filter__item product-item","data-qa","1657788657451","style","padding: 0",3,"active","disabled","click",4,"ngIf"],[1,"button-group"],[1,"button-group__row"],["btnClass","product__info-footer__button","class","controls__item_action","data-qa","1657788674508","style","width: 175px","type","small-bordered",3,"text",4,"ngIf"],["btnClass","product__info-footer__button","class","controls__item_action","style","width: 231px; margin-right: 21px","type","small-bordered",3,"text","click",4,"ngIf"],[1,"product__info-header__content__title","mobile__formattedNumber"],["class","product__info-header__content__title mobile__formattedNumber",4,"ngIf"],["class","controls__item_action mobile__refill","data-qa","1657788704057","type","small-bordered",3,"text",4,"ngIf"],["class","controls__item_action mobile__refill","data-qa","1657788709337","type","small-bordered",3,"text",4,"ngIf"],["data-qa","1657788716008",1,"last-operations-container__title","mobile__tablet",3,"click"],[1,"title-item"],["icon","arrow",3,"svgClass"],["class","tab","data-qa","1657788746226",4,"ngIf"],["data-qa","1657788891371",1,"last-operations-container__title","mobile__tablet",3,"click"],["class","tab","data-qa","1657788899108",4,"ngIf"],["data-qa","1657789064346",1,"tab",3,"hidden"],["class","last-operations-container-title product","data-qa","1657789076963",4,"ngIf"],["data-qa","1657790159775",3,"activeType","datesPeriod","updateChartProducts",4,"ngIf"],[3,"ngIf"],["class","tab","data-qa","1657789146460",4,"ngIf"],["data-qa","1657788531977",1,"last-operations-container__title","filters","product__title"],[3,"pathData"],[1,"last-operations-container__title","filters","product__title"],["icon","deposit","svgClass","product__info-icon-svg"],["icon","percent","svgClass","product__info-icon-svg"],["icon","account","svgClass","product__info-icon-svg no-opacity"],["icon","card_sidebar","svgClass","product__info-icon-svg card-svg"],[1,"product__info-icon-currency",3,"ngClass"],[1,"product__info-header__content__value"],["data-qa","1657788590132",1,"product__info-header__content__value",3,"click"],[1,"warning-icon"],[1,"product__info-header__content__value","account-error"],["data-qa","1657788590132",1,"product__info-header__content__value"],[1,"account-to-close-icon"],[1,"product__info-header__content__value","account-close"],["data-qa","1657788600902",1,"product__info-header__content__value",3,"click"],["icon","stop","svgClass","product__info-icon-error blocked",2,"display","inline"],[1,"product__info-header__content__value","account-error","blocked"],["data-qa","1657788613051",1,"product__info-header__content__value"],["icon","stop","svgClass","product__info-icon-error blocked stays",2,"display","inline"],[1,"product__info-header__content__value","account-error","blocked","no-stays"],["icon","deposit","svgClass","product__info-icon-svg-mobile"],["icon","percent","svgClass","product__info-icon-svg-mobile"],["icon","account","svgClass","product__info-icon-svg-mobile no-opacity"],["icon","card","svgClass","product__info-icon-svg-mobile"],["data-qa","1657788647557",1,"period-filter__item","product-item",2,"padding","0",3,"click"],["data-qa","1657788657451",1,"period-filter__item","product-item",2,"padding","0",3,"click"],["class","tab-number top-right-position",4,"ngIf"],[1,"tab-number","top-right-position"],["btnClass","product__info-footer__button","data-qa","1657788674508","type","small-bordered",1,"controls__item_action",2,"width","175px",3,"text"],["btnClass","product__info-footer__button","type","small-bordered",1,"controls__item_action",2,"width","231px","margin-right","21px",3,"text","click"],["icon","attention","svgClass","product__info-icon-error"],["data-qa","1657788704057","type","small-bordered",1,"controls__item_action","mobile__refill",3,"text"],["data-qa","1657788709337","type","small-bordered",1,"controls__item_action","mobile__refill",3,"text"],["data-qa","1657788746226",1,"tab"],[1,"last-operations-container__title","desktop__tablet"],[1,"product__information"],[1,"product__information__container"],["class","product__information__data","data-qa","1657788755184",4,"ngIf"],[1,"product__information__email"],["data-qa","1657788829242",3,"defaultEmail","defaultPhoneNumber","id"],["class","product__information__corr","data-qa","1657788839372",4,"ngIf"],["data-qa","1657788755184",1,"product__information__data"],["class","product__information__data__text",4,"ngFor","ngForOf"],[1,"product__information__data__text"],[1,"product__information__data__text__title"],[1,"product__information__data__text__value"],["data-qa","1657788839372",1,"product__information__corr"],[1,"product__information__corr__title"],["data-qa","1657788847370",1,"product__information__corr__list"],[1,"product__information__corr__row"],[1,"product__information__corr__cell","title"],["class","product__information__corr__row",4,"ngFor","ngForOf"],[1,"product__information__corr__cell"],["data-qa","1657788899108",1,"tab"],["data-qa","1657788950595",1,"product__information",3,"ngClass"],["data-qa","1657789031802",1,"product__information__data"],["class","product__information__data__text",4,"ngIf"],["class","product__information__data__text","data-qa","1657793291285",4,"ngIf"],["class","product__information__data__text","data-qa","1657793285565",4,"ngIf"],["class","product__information__data__text","data-qa","1657793282957",4,"ngIf"],["class","product__information__data__text","data-qa","1657793276029",4,"ngIf"],["class","product__information__data__text","data-qa","1657793271194",4,"ngIf"],["class","product__information__data__text","data-qa","1657793241420",4,"ngIf"],["class","product__information__data__text","data-qa","1657793238690",4,"ngIf"],["class","product__information__data__text","data-qa","1657793235570",4,"ngIf"],["class","product__information__data__text","data-qa","1657793257131",4,"ngIf"],["class","product__information__data__text","data-qa","1657793260673",4,"ngIf"],["data-qa","1657789038807",1,"product__information__reference"],["class","product__information__reference__text","data-qa","1657789043985",4,"ngIf"],["class","product__information__reference__text","data-qa","1657789047628",4,"ngIf"],["class","product__information__reference__text","data-qa","1657789050648",4,"ngIf"],["class","product__information__reference__text","data-qa","1657789054106",4,"ngIf"],["class","product__information__card__visa","data-qa","1657789058359",4,"ngIf"],["data-qa","1657793291285",1,"product__information__data__text"],["data-qa","1657793285565",1,"product__information__data__text"],["data-qa","1657793282957",1,"product__information__data__text"],["data-qa","1657793276029",1,"product__information__data__text"],["data-qa","1657793271194",1,"product__information__data__text"],["data-qa","1657793241420",1,"product__information__data__text"],["data-qa","1657793238690",1,"product__information__data__text"],["data-qa","1657793235570",1,"product__information__data__text"],[1,"status"],["data-qa","1657793257131",1,"product__information__data__text"],["data-qa","1657793260673",1,"product__information__data__text"],["data-qa","1657789043985",1,"product__information__reference__text"],["data-qa","1657789047628",1,"product__information__reference__text"],["data-qa","1657789050648",1,"product__information__reference__text"],["data-qa","1657789054106",1,"product__information__reference__text"],["data-qa","1657789058359",1,"product__information__card__visa"],[1,"card-number"],[1,"card_date"],["data-qa","1657789076963",1,"last-operations-container-title","product"],["data-qa","1657789071503",3,"items","periodChange"],[1,"title-item","clickable"],["class","my-period-dates","data-qa","1657789086521",4,"ngIf"],["data-qa","1657789086521",1,"my-period-dates"],["data-qa","1657789093037",3,"value","dateChange"],["data-qa","1657789104172",3,"value","dateChange"],["data-qa","1657790159775",3,"activeType","datesPeriod","updateChartProducts"],[1,"last-operations-container-title"],["data-qa","1657789141923",3,"productIdForStatement","showOperationsControlsBlock"],["data-qa","1657789146460",1,"tab"],[1,"section-title","section-title_with-padding"],["data-qa","1657789151993",3,"data"],[1,"product__loader-wrap","card"]],template:function(o,g){1&o&&(e.\u0275\u0275template(0,wg,73,74,"div",0),e.\u0275\u0275template(1,Ag,2,0,"div",1)),2&o&&(e.\u0275\u0275property("ngIf",g.product&&g.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.product))},dependencies:[ic.Q,Hr.b,xa.R,Xs.S,Rp.d,i.mk,i.sg,i.O5,Cu._,aa.l,Xt.r,Em,Hu,ja,Gu,yi.X$,js.G,Jc.H,i.Ov,i.i8],styles:['@charset "UTF-8";.product-card,.product__information,.product__info{background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;margin-bottom:50px;margin-top:25px;display:flex}.product__info .warning-icon{background:url(warning.8b0fd70711b5bb20.svg) no-repeat;width:20px;height:20px;margin-left:10px;margin-top:6px}.product__info .account-to-close-icon{background:url(account-to-close.74b8ebf294040cee.png) no-repeat;width:20px;height:20px;margin-left:10px;margin-top:2px}.product__info-icon{background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%);width:175px;flex-shrink:0;display:block;position:relative}@media screen and (max-width: 1024px){.product__info-icon{display:none}}.product__info-icon-currency{position:absolute;font-size:340px;top:-53px;left:18px;color:#fff;opacity:.3}.product__info-icon-error{display:inline;width:20px;height:18px;position:relative;top:2px;fill:#2f54eb}.product__info-icon-error.blocked{fill:#d9291e}.product__info-icon-svg{width:140px;height:100px;color:#fff;fill:#fff;opacity:.25;position:relative;top:100px}.product__info-icon-svg.card-svg{width:178px}.product__info-icon-svg-mobile{width:457px;height:140px;top:50px;left:-16px;color:#fff;fill:#fff;opacity:.25;position:relative}.product__info-container{display:flex;flex-direction:column;width:100%;padding-left:30px}@media screen and (max-width: 768px){.product__info-container{padding-left:20px}}.product__info-header{display:flex;justify-content:space-between}@media screen and (max-width: 625px){.product__info-header{position:relative}}.product__info-header__content{margin:30px auto auto}.product__info-header__content__title{margin-bottom:15px;font-size:22px;color:#88909b;display:flex;align-items:center}.product__info-header__content__title-icon{width:14px;height:14px;opacity:.5;margin-left:10px}.product__info-header__content__value{font-size:22px;display:flex}.product__info-header__content__value.blocked{color:#d9291e}.product__info-header__content__value.blocked.no-stays:hover{text-decoration:none;cursor:default}.product__info-header__content__value span:hover{text-decoration:underline;cursor:pointer}.product__info-header__content__value-error{color:#d9291e}.product__info-header__content__value.account-close{font-size:16px;align-items:center;font-family:Open Sans,Source Sans Pro,sans-serif;color:#444;margin-left:8px}.product__info-header__content__value.account-close:hover{cursor:default;text-decoration:none}.product__info-header .left{margin-left:0}.product__info-header .right{margin-right:48px;text-align:right}.product__info-footer{display:flex;justify-content:space-between;padding-right:20px}.product__info-footer .button-group__row{display:flex;flex-direction:row;justify-content:flex-end;margin-top:29px;height:22px}.product__info-footer .button-group__row app-button{margin:auto 10px auto auto}.product__info-footer .button-group__row app-button:last-child{margin:auto 0}.product__info-footer .button-group__row:last-child{margin-top:3px}.product__info-footer .panel-form__button.small-bordered{padding:0 13px!important}.product__info-footer .last-operations-content__filters{height:80px!important;width:auto!important;padding-bottom:24px}@media screen and (max-width: 768px){.product__info-footer .last-operations-content__filters{width:inherit;padding-bottom:0}}.product__info-footer .last-operations-content__filters .period-filter__item{line-height:80px!important}.product__info-footer .period-filter__item{border-bottom:3px solid transparent;font-size:1.3em;cursor:pointer;margin-right:25px;color:#88909b;height:100%;line-height:100px;text-align:center}.product__info-footer .period-filter__item:first-child{padding-left:0}@media screen and (max-width: 1780px) and (min-width: 1365px){.product__info-footer .period-filter__item{padding:0 20px;font-size:1.1em;white-space:nowrap}}@media screen and (max-width: 1280px) and (min-width: 1025px){.product__info-footer .period-filter__item{padding:0 10px;font-size:1em;white-space:nowrap}}@media screen and (max-width: 1024px){.product__info-footer .period-filter__item{padding:0 15px;font-size:1.1em;white-space:nowrap}}.product__info-footer .period-filter__item.active{border-bottom:3px solid #2f54eb;color:#444;box-sizing:border-box}.product__title{font-size:24px;flex-direction:row!important}.product-item_action{padding:0}.product__information{display:flex}.product__information:not(.card-product){flex-wrap:wrap}.product__information__container{display:flex;flex-shrink:0;width:100%}@media screen and (max-width: 768px){.product__information__container{flex-direction:column}}.product__information__card__visa{background-image:url(card_visa.5f98c60fbeaf4e46.png);position:relative;width:330px;height:213px;margin:70px auto 0}.product__information__card__visa .card-number{color:#fff;position:absolute;bottom:100px;left:40px;font-family:Source Sans Pro;font-style:normal;font-weight:300;font-size:24px}.product__information__card__visa .card_date{position:absolute;bottom:10px;left:20px;color:#fff;font-family:Source Sans Pro;font-size:14px}.product__information__data{padding:0 30px;margin-top:10px;width:100%;box-sizing:border-box}.product__information__data__text{display:flex;justify-content:space-between;padding:30px 0;border-bottom:1px solid #dedede}.product__information__data__text:last-child{border:none}.product__information__data__text__title{font-size:18px;color:#88909b;margin-right:8px}.product__information__data__text__value{font-size:18px;text-align:right;word-break:break-word}.product__information__data__text__value .status{font-weight:700;color:#d9291e;font-family:Source Sans Pro}.product__information__data__text__value .status.active{color:#318f4b}@media screen and (max-width: 768px){.product__information__data{width:inherit}}.product__information__reference{padding:30px;min-width:328px;border-left:1px solid #dedede;color:#88909b;box-sizing:border-box}.product__information__reference__text{font-size:18px}@media screen and (max-width: 768px){.product__information__reference__text{margin-left:30px;margin-bottom:46px}}@media screen and (max-width: 768px){.product__information__reference{border-left:none;border-top:1px solid #dedede}}.product__information__email{min-width:328px;box-sizing:border-box;border-left:1px solid #dedede;padding:30px 40px}@media screen and (max-width: 768px){.product__information__email{border-left:none;border-top:1px solid #dedede;padding:30px 30px 0}}.product__information__corr{padding:40px 40px 40px 30px;font-size:18px;width:100%}@media screen and (max-width: 768px){.product__information__corr{padding:40px 30px}}.product__information__corr__title{margin-bottom:30px;font-weight:600;color:#284681}.product__information__corr__list{display:table;border-collapse:collapse;width:100%}.product__information__corr__row{display:table-row}.product__information__corr__cell{display:table-cell;padding:15px;border:1px solid #dedede}.product__information__corr__cell.title{color:#88909b}.period-filter__item{position:relative}@media screen and (min-width: 768px){.mobile__tablet{display:none!important}}@media screen and (min-width: 626px){.mobile__default{display:none}}@media screen and (min-width: 626px){.mobile__formattedNumber{display:none}}@media screen and (min-width: 626px){.mobile__refill{display:none}}.mobile__arrow-icon{width:16px;height:10px;fill:#2f54eb}@media screen and (min-width: 768px){.desktop__tablet{display:block!important}}@media screen and (min-width: 768px){.desktop__flex-tablet{display:flex!important}}@media screen and (max-width: 1024px){.desktop__flex-tablet .period-filter__item{width:inherit!important}}.rotated{transform:rotate(180deg)}.no-opacity{opacity:1}.account-error{white-space:nowrap;margin-left:5px;color:#2f54eb}.product__loader-wrap{position:relative;height:250px}.last-operations-container-title{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;font-weight:700;display:flex;align-items:center}@media screen and (min-width: 720px) and (max-width: 835px){.last-operations-container-title.filters{flex-direction:column}}.last-operations-container-title .title-item{padding-right:8px;color:#444}.last-operations-container-title .title-item.clickable{color:#7180b9;text-decoration:underline;cursor:pointer}.product__info-icon{background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%)}.product__info-icon-currency{font-size:256px;left:3px}.product__info-icon-currency.multi-symbol{top:20%;font-size:100px;left:0}\n'],encapsulation:2})}function kg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",55),e.\u0275\u0275element(1,"app-path",56),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",o.pagePath)}}function Lg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",57)(1,"span",45),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,1,"My fin",o.lang))}}function Wf(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",58)}function zf(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",59)}function Yf(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",60)}function Hf(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",61)}(0,Wi.gn)([(0,yi.SQ)()],Qu.prototype,"lang",void 0);const Rg=function(M){return{"multi-symbol":M}};function A0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",62),e.\u0275\u0275pipe(1,"currencySymbol"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"currencySymbol"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,Rg,e.\u0275\u0275pipeBind1(1,2,o.product.currency).length>1)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,4,o.product.currency)," ")}}function Kf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Till",o.lang)," ",o.configUtilService.formatDateString(o.product.endDate)," ")}}function k0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Till",o.lang)," ",o.configUtilService.formatDateString(o.product.endDate)," ")}}function Xu(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"NextPayAmount",o.lang)," ")}}function Gf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",63),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"currencySymbol"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate3(" ",o.configUtilService.formatDateDMStrng(o.product.creditInformation.nextPayDate)," ",o.product.creditInformation.nextPaymentAmount," ",e.\u0275\u0275pipeBind1(2,3,o.product.currency)," ")}}function Qf(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",64),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.openRestrictionsModal())}),e.\u0275\u0275element(1,"div",65),e.\u0275\u0275elementStart(2,"span",66),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Suspended, view restrictions",o.lang))}}function Sh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",67),e.\u0275\u0275element(1,"div",68),e.\u0275\u0275elementStart(2,"span",69),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Account to close",o.lang))}}function Xf(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",70),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.openRestrictionsModal())}),e.\u0275\u0275element(1,"app-svg-icon",71),e.\u0275\u0275elementStart(2,"span",72),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Blocked, view restrictions",o.lang))}}function Wl(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",73),e.\u0275\u0275element(1,"app-svg-icon",74),e.\u0275\u0275elementStart(2,"span",75),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Blocked, can not view restrictions",o.lang))}}function xu(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",76)}function cc(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",77)}function Mu(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",78)}function km(M,s){1&M&&e.\u0275\u0275element(0,"app-svg-icon",79)}function Lr(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",80),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.changeTabMode("requisites"))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("active","requisites"===o.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,3,"Requisites",o.lang)," ")}}function Np(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span",83),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.cardFileData.cardIndexDocument.length," ")}}function Zu(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",81),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.changeTabMode("cardfile"))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275template(3,Np,2,1,"span",82),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("active","cardfile"===o.activeMode)("disabled",o.isCardFileTabDisabled||!o.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,6,"Card file",o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.cardFileData&&!o.isCardFileTabDisabled&&o.isShowOperationsBlock&&o.isShowCardIndex)}}function Ju(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-button",84),e.\u0275\u0275pipe(1,"translate")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Add credit payment",o.lang))}}function qu(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",85),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.openExportCardFileDocumentsModal())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Register of card file documents",o.lang))}}function ep(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275element(1,"app-svg-icon",86),e.\u0275\u0275elementStart(2,"span",66),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,1,"Attention! There are restrictions",o.lang))}}function $d(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-button",87),e.\u0275\u0275pipe(1,"translate")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Refill",o.lang))}}function tp(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-button",88),e.\u0275\u0275pipe(1,"translate")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(1,1,"Add credit payment",o.lang))}}function Wd(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",99)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(4);e.\u0275\u0275attribute("data-qa","1657788804809"+g),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,o.title,V.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.value)}}function np(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",97),e.\u0275\u0275template(1,Wd,6,6,"div",98),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.productRequisites)}}function ip(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",105)(1,"div",108),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",108),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",108),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&M){const o=s.$implicit;e.\u0275\u0275attribute("data-qa","1657788871896"+s.index),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.corrBankName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.corrBankSwift),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.corrBankAccount)}}function Th(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",102)(1,"div",103),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",104)(6,"div",105)(7,"div",106),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",106),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",106),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(16,ip,7,4,"div",107),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate3(" ",e.\u0275\u0275pipeBind2(3,7,"Corr bank list",o.lang)," ",o.product.currency," . ",e.\u0275\u0275pipeBind2(4,10,"You can use any of the list",o.lang),": "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,13,"Correspondent bank name",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(12,16,"SWIFT code",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(15,19,"Account bank \u2116",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",o.product.swiftBankingInformation.corrBankInfo)}}function Ih(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",89)(1,"div",90)(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",91)(6,"div",92),e.\u0275\u0275template(7,np,2,1,"div",93),e.\u0275\u0275elementStart(8,"div",94),e.\u0275\u0275element(9,"app-sending-requisites",95),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(10,Th,17,22,"div",96),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,6,"Requisites",o.lang)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",o.productRequisites),e.\u0275\u0275advance(2),e.\u0275\u0275property("defaultEmail",null==o.employeeInfo?null:o.employeeInfo.email)("defaultPhoneNumber",null==o.employeeInfo?null:o.employeeInfo.phoneNumber)("id",o.product.id),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==o.product.swiftBankingInformation?null:o.product.swiftBankingInformation.corrBankInfo)}}function Lm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",99)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract from",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateString(o.product.beginDate))}}function wh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",129)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract to",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.configUtilService.formatDateString(o.isDeposit||"account"===o.product.productType?o.product.closeDate:o.product.endDate)," ")}}function Ah(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",130)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract from",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateString(o.contractCardFrom))}}function kh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",131)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Contract to",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateString(o.contractCardEnd))}}function jp(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",132)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Additional info",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.product.info)}}function Up(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",133)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Deposit percent",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.product.interestRate)}}function Lh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",134)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"appCurrency"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Amount of balance",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,5,o.product.balance))}}function Zf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",135)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"SMS notification",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.smsPhone)}}function Fg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",136)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101)(5,"span",137),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,4,"Status card",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275classProp("active",o.isActiveCard),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.isActiveCard?"\u0410\u043a\u0442\u0438\u0432\u043d\u0430\u044f":"\u041d\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f")}}function Jf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",138)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Actual time of balance",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.configUtilService.formatDateStringDMYHM(o.product.actual,!0))}}function qf(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",139)(1,"div",100),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",101),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Deposit limit",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.product.limit)}}function e_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",140),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about deposit",o.lang),' "',o.product.alias||o.product.info,'" ')}}function Rh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",141),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about credit",o.lang),' "',o.product.alias||o.product.info,'" ')}}function Fh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",142),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about account",o.lang),' "',o.product.alias||o.product.info,'" ')}}function Bg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",143),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(2,2,"Reference information about card",o.lang),' "',o.product.formattedNumber,'" ')}}function Rm(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",144)(1,"div",145),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",146),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.cardNumber),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e ",o.cardExpireDate,"")}}const Fm=function(M){return{"card-product":M}};function Bh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",109)(1,"div",90)(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",110)(6,"div",111),e.\u0275\u0275template(7,Lm,6,5,"div",112),e.\u0275\u0275template(8,wh,6,5,"div",113),e.\u0275\u0275template(9,Ah,6,5,"div",114),e.\u0275\u0275template(10,kh,6,5,"div",115),e.\u0275\u0275template(11,jp,6,5,"div",116),e.\u0275\u0275template(12,Up,6,5,"div",117),e.\u0275\u0275template(13,Lh,7,7,"div",118),e.\u0275\u0275template(14,Zf,6,5,"div",119),e.\u0275\u0275template(15,Fg,7,7,"div",120),e.\u0275\u0275template(16,Jf,6,5,"div",121),e.\u0275\u0275template(17,qf,6,5,"div",122),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",123),e.\u0275\u0275template(19,e_,3,5,"div",124),e.\u0275\u0275template(20,Rh,3,5,"div",125),e.\u0275\u0275template(21,Fh,3,5,"div",126),e.\u0275\u0275template(22,Bg,3,5,"div",127),e.\u0275\u0275template(23,Rm,5,2,"div",128),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,18,"Information",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(21,Fm,o.isAccountCard)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.product.beginDate&&!o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.isAccountCard&&(o.isDeposit||"account"===o.product.productType?o.product.closeDate:o.product.endDate)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(o.isAccount||o.isDeposit)&&o.product.info),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","account"!==o.product.productType&&"card"!==o.product.productType&&!o.isDeposit&&o.product.interestRate),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(o.isAccount||o.isDeposit)&&o.product.balance),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.smsInformationEnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.product.actual),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","account"===o.product.productType&&o.product.limit),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isCredit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isAccountCard)}}function Ng(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",151)(1,"div")(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-datepicker",152),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(me.datePickersChanged(V,"beginDate"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div")(7,"span",45),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"app-datepicker",153),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(me.datePickersChanged(V,"endDate"))}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,"From",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.beginDate),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,7,"To",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.endDate)}}function Bm(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",147)(1,"div")(2,"span",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-no-input-select",148),e.\u0275\u0275listener("periodChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.changePeriod(V))}),e.\u0275\u0275elementStart(6,"span",149),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"lowercase"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(9,Ng,11,10,"div",150),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,"Dynamic of operations",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("items",o.periods),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,7,o.datesPeriod.currentPeriod.description)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","today"!==o.datesPeriod.currentPeriod.period&&"yesterday"!==o.datesPeriod.currentPeriod.period)}}function Nm(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-analytics",154),e.\u0275\u0275pipe(1,"async")),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("activeType",e.\u0275\u0275pipeBind1(1,3,o.operationsService.currencyType$))("datesPeriod",o.datesPeriod)("updateChartProducts",o.updateChartProducts)}}function Nh(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",155)(1,"span",45),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(4,"app-operations",156)),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Operations",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("productIdForStatement",null==o.product?null:o.product.id)("showOperationsControlsBlock",!o.isPartnerAcc)}}function t_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",157)(1,"div",158),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"app-card-file",159),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,2,"Card file documents",o.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("data",o.cardFileData)}}function jh(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275element(1,"app-notify-main",3),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275template(3,kg,2,1,"div",4),e.\u0275\u0275template(4,Lg,4,4,"ng-template",null,5,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementStart(6,"div",6)(7,"div",7),e.\u0275\u0275template(8,Wf,1,0,"app-svg-icon",8),e.\u0275\u0275template(9,zf,1,0,"app-svg-icon",9),e.\u0275\u0275template(10,Yf,1,0,"app-svg-icon",10),e.\u0275\u0275template(11,Hf,1,0,"app-svg-icon",11),e.\u0275\u0275template(12,A0,4,8,"div",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",13)(14,"div",14)(15,"div",15)(16,"app-product-alias-and-balance",16),e.\u0275\u0275listener("editedAlias",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.changeAlias(V))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"div",17)(18,"div",18),e.\u0275\u0275text(19),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(21,Kf,3,5,"div",19),e.\u0275\u0275template(22,k0,3,5,"div",19),e.\u0275\u0275template(23,Xu,3,4,"div",19),e.\u0275\u0275template(24,Gf,3,5,"div",19),e.\u0275\u0275template(25,Qf,5,4,"div",20),e.\u0275\u0275template(26,Sh,5,4,"div",21),e.\u0275\u0275template(27,Xf,5,4,"div",22),e.\u0275\u0275template(28,Wl,5,4,"div",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",24),e.\u0275\u0275template(30,xu,1,0,"app-svg-icon",25),e.\u0275\u0275template(31,cc,1,0,"app-svg-icon",26),e.\u0275\u0275template(32,Mu,1,0,"app-svg-icon",27),e.\u0275\u0275template(33,km,1,0,"app-svg-icon",28),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(34,"div",29)(35,"div",30)(36,"div",31)(37,"div",32),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.changeTabMode("finance"))}),e.\u0275\u0275text(38),e.\u0275\u0275pipe(39,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(40,Lr,3,6,"div",33),e.\u0275\u0275elementStart(41,"div",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.changeTabMode("information"))}),e.\u0275\u0275text(42),e.\u0275\u0275pipe(43,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(44,Zu,4,9,"div",35),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(45,"div",36)(46,"div",37),e.\u0275\u0275template(47,Ju,2,4,"app-button",38),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"div",37),e.\u0275\u0275template(49,qu,2,4,"app-button",39),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(50,"div",40),e.\u0275\u0275text(51),e.\u0275\u0275pipe(52,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(53,ep,5,4,"div",41),e.\u0275\u0275template(54,$d,2,4,"app-button",42),e.\u0275\u0275template(55,tp,2,4,"app-button",43),e.\u0275\u0275elementStart(56,"div",44),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.mobileRequisites=!V.mobileRequisites)}),e.\u0275\u0275elementStart(57,"span",45),e.\u0275\u0275text(58),e.\u0275\u0275pipe(59,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(60,"app-svg-icon",46),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(61,Ih,11,9,"div",47),e.\u0275\u0275elementStart(62,"div",48),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.mobileInformation=!V.mobileInformation)}),e.\u0275\u0275elementStart(63,"span",45),e.\u0275\u0275text(64),e.\u0275\u0275pipe(65,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(66,"app-svg-icon",46),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(67,Bh,24,23,"div",49),e.\u0275\u0275elementStart(68,"div",50),e.\u0275\u0275template(69,Bm,10,9,"div",51),e.\u0275\u0275template(70,Nm,2,5,"app-analytics",52),e.\u0275\u0275template(71,Nh,5,6,"ng-template",53),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(72,t_,5,5,"div",54),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275reference(5),g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("notifications",e.\u0275\u0275pipeBind1(2,54,g.userDataService.notifications$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!g.productsService.isSingleAccount$.value)("ngIfElse",o),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",g.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isCredit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isAccountCard),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isAccount),e.\u0275\u0275advance(4),e.\u0275\u0275property("alias",g.product.alias||g.product.info)("balance",g.product.balance)("cards",g.product.linkedCards)("currency",g.product.currency)("id",g.product.id)("productType",g.product.productType),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" \u2116 ",e.\u0275\u0275pipeBind2(20,56,"accounts",g.lang)," ",g.product.formattedNumberMask?g.product.formattedNumberMask:g.product.formattedNumber," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","credit"===g.product.productType&&"information"!==g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","card"===g.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","credit"===g.product.productType&&"information"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","credit"===g.product.productType&&"information"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.product.stays&&"block"!==g.product.status&&g.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.product.subtype===g.CLOSED_ACCOUNT_SUBTYPE),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","block"===g.product.status&&g.product.stays&&g.product.stays.length&&g.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","block"===g.product.status&&(!g.product.stays||!g.product.stays.length)&&g.isShowOperationsBlock),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isCredit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","account"===g.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","card"===g.product.productType),e.\u0275\u0275advance(4),e.\u0275\u0275classProp("active","finance"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(39,59,"Finance",g.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isShowRequisitesTab),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("active","information"===g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(43,62,"Information",g.lang)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","account"===g.product.productType&&g.isShowCardIndex),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",g.isCredit),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.cardFileData&&!g.isCardFileTabDisabled&&g.isShowOperationsBlock&&g.isShowCardIndex),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" \u2116 ",e.\u0275\u0275pipeBind2(52,65,"accounts",g.lang)," ",g.product.formattedNumber," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","account"===g.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isDeposit),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","credit"===g.product.productType),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(59,68,"Requisites",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("svgClass",g.getArrowClasses(g.mobileRequisites)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","requisites"===g.activeMode||g.mobileRequisites),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(65,71,"Information",g.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("svgClass",g.getArrowClasses(g.mobileInformation)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","information"===g.activeMode||g.mobileInformation),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden","finance"!==g.activeMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isPartnerAcc),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.isPartnerAcc),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isShowOperationsBlock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","cardfile"===g.activeMode)}}function n_(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",160),e.\u0275\u0275element(1,"app-loader"),e.\u0275\u0275elementEnd())}let i_=(()=>{class M extends Qu{constructor(o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo){super(o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo)}set singleAccount(o){this.product=o,this.initSingleProduct()}ngOnInit(){this.activeMode="finance",this.operationsService.currencyType$.pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{const V=this.operationsService.products.filter(me=>me.currency===o).map(me=>me.id);(!this.updateChartProducts||!uh.isEqual(this.updateChartProducts,V))&&setTimeout(()=>{this.updateChartProducts=V})}),this.serverSettingsService.getResource("SERVICES/UL").pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{this.isShowRequisitesTab=1===o["OTHER/REQUISITE_OPERATIONS"],this.isShowOperationsBlock=1===o["SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"]&&1===o["OTHER/ACCOUNTS_STAY_LIST"],this.isShowCardIndex=1===o["SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"]&&1===o["OTHER/CARD_INDEX"]&&0===o["SERVICE_SECTIONS/CARD_INDEX"]})}initSingleProduct(){this.userDataService.currentProduct$.next(this.product),this.product&&("card"===this.product.productType&&(this.product.formattedNumberMask=(0,Br.xm)(this.product.number,this.configUtilService.accountNumberMask,{guide:!1}).conformedValue),this.allProducts.push(this.product),this.lastOperationService.currentPerformOperationFilters={accountNums:[this.product.number],currencyType:this.product.currency},this.operationsService.products=[this.product],this.operationsService.currentTab$.next(vu.d$.Performed),this.operationsService.performedTab$.next(vu.Os.All),this.operationsService.currencyType$.next(this.product.currency),this.getCardFileData(),this.userDataService.getClientInfoOrganization().subscribe(o=>{this.organizationInfo=o,this.getProductRequisites(this.product)})),this.userDataService.employeeInfo$.subscribe(o=>{this.employeeInfo=o}),this.queryParamsSub=this.route.queryParams.subscribe(o=>{"cardfile"===o.tab&&this.cardFileInfo&&(this.isCardFileTabDisabled=!1,this.activeMode=o.tab,this.cardFileData=this.cardFileInfo)}),setTimeout(()=>this.productsService.getProducts(!0).subscribe())}ngOnDestroy(){super.ngOnDestroy()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(ws.l),e.\u0275\u0275directiveInject(ld.$))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-product-single"]],inputs:{singleAccount:"singleAccount"},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:2,consts:[["class","last-operations-container","data-qa","1657788528016",4,"ngIf"],["class","product__loader-wrap card",4,"ngIf"],["data-qa","1657788528016",1,"last-operations-container"],[3,"notifications"],["class","last-operations-container__title filters product__title","data-qa","1657788531977",4,"ngIf","ngIfElse"],["singleComponentTitle",""],["data-qa","1657788547628",1,"product__info"],["data-qa","1657788552267",1,"product__info-icon"],["icon","deposit","svgClass","product__info-icon-svg",4,"ngIf"],["icon","percent","svgClass","product__info-icon-svg",4,"ngIf"],["icon","account","svgClass","product__info-icon-svg no-opacity",4,"ngIf"],["icon","card_sidebar","svgClass","product__info-icon-svg card-svg",4,"ngIf"],["class","product__info-icon-currency",3,"ngClass",4,"ngIf"],["data-qa","1657788560966",1,"product__info-container"],[1,"product__info-header"],["data-qa","1657788577744",1,"product__info-header__content","left"],["data-qa","1657788571134",3,"alias","balance","cards","currency","id","productType","editedAlias"],["data-qa","1657788580467",1,"product__info-header__content","right"],[1,"product__info-header__content__title"],["class","product__info-header__content__value",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788590132",3,"click",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788590132",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788600902",3,"click",4,"ngIf"],["class","product__info-header__content__value","data-qa","1657788613051",4,"ngIf"],["data-qa","1657788621860",1,"product__info-icon","mobile__default"],["icon","deposit","svgClass","product__info-icon-svg-mobile",4,"ngIf"],["icon","percent","svgClass","product__info-icon-svg-mobile",4,"ngIf"],["icon","account","svgClass","product__info-icon-svg-mobile no-opacity",4,"ngIf"],["icon","card","svgClass","product__info-icon-svg-mobile",4,"ngIf"],["data-qa","1657788628721",1,"product__info-footer"],[1,"last-operations-content__filters","desktop__flex-tablet"],[1,"period-filter","desktop__flex-tablet"],["data-qa","1657788642382",1,"period-filter__item","product-item",2,"padding","0","margin-left","0",3,"click"],["class","period-filter__item product-item","data-qa","1657788647557","style","padding: 0",3,"active","click",4,"ngIf"],["data-qa","1657788652907",1,"period-filter__item","product-item",2,"padding","0",3,"click"],["class","period-filter__item product-item","data-qa","1657788657451","style","padding: 0",3,"active","disabled","click",4,"ngIf"],[1,"button-group"],[1,"button-group__row"],["btnClass","product__info-footer__button","class","controls__item_action","data-qa","1657788674508","style","width: 175px","type","small-bordered",3,"text",4,"ngIf"],["btnClass","product__info-footer__button","class","controls__item_action","style","width: 231px; margin-right: 21px","type","small-bordered",3,"text","click",4,"ngIf"],[1,"product__info-header__content__title","mobile__formattedNumber"],["class","product__info-header__content__title mobile__formattedNumber",4,"ngIf"],["class","controls__item_action mobile__refill","data-qa","1657788704057","type","small-bordered",3,"text",4,"ngIf"],["class","controls__item_action mobile__refill","data-qa","1657788709337","type","small-bordered",3,"text",4,"ngIf"],["data-qa","1657788716008",1,"last-operations-container__title","mobile__tablet",3,"click"],[1,"title-item"],["icon","arrow",3,"svgClass"],["class","tab","data-qa","1657788746226",4,"ngIf"],["data-qa","1657788891371",1,"last-operations-container__title","mobile__tablet",3,"click"],["class","tab","data-qa","1657788899108",4,"ngIf"],["data-qa","1657789064346",1,"tab",3,"hidden"],["class","last-operations-container-title product","data-qa","1657789076963",4,"ngIf"],["data-qa","1657790159775",3,"activeType","datesPeriod","updateChartProducts",4,"ngIf"],[3,"ngIf"],["class","tab","data-qa","1657789146460",4,"ngIf"],["data-qa","1657788531977",1,"last-operations-container__title","filters","product__title"],[3,"pathData"],[1,"last-operations-container__title","filters","product__title"],["icon","deposit","svgClass","product__info-icon-svg"],["icon","percent","svgClass","product__info-icon-svg"],["icon","account","svgClass","product__info-icon-svg no-opacity"],["icon","card_sidebar","svgClass","product__info-icon-svg card-svg"],[1,"product__info-icon-currency",3,"ngClass"],[1,"product__info-header__content__value"],["data-qa","1657788590132",1,"product__info-header__content__value",3,"click"],[1,"warning-icon"],[1,"product__info-header__content__value","account-error"],["data-qa","1657788590132",1,"product__info-header__content__value"],[1,"account-to-close-icon"],[1,"product__info-header__content__value","account-close"],["data-qa","1657788600902",1,"product__info-header__content__value",3,"click"],["icon","stop","svgClass","product__info-icon-error blocked",2,"display","inline"],[1,"product__info-header__content__value","account-error","blocked"],["data-qa","1657788613051",1,"product__info-header__content__value"],["icon","stop","svgClass","product__info-icon-error blocked stays",2,"display","inline"],[1,"product__info-header__content__value","account-error","blocked","no-stays"],["icon","deposit","svgClass","product__info-icon-svg-mobile"],["icon","percent","svgClass","product__info-icon-svg-mobile"],["icon","account","svgClass","product__info-icon-svg-mobile no-opacity"],["icon","card","svgClass","product__info-icon-svg-mobile"],["data-qa","1657788647557",1,"period-filter__item","product-item",2,"padding","0",3,"click"],["data-qa","1657788657451",1,"period-filter__item","product-item",2,"padding","0",3,"click"],["class","tab-number top-right-position",4,"ngIf"],[1,"tab-number","top-right-position"],["btnClass","product__info-footer__button","data-qa","1657788674508","type","small-bordered",1,"controls__item_action",2,"width","175px",3,"text"],["btnClass","product__info-footer__button","type","small-bordered",1,"controls__item_action",2,"width","231px","margin-right","21px",3,"text","click"],["icon","attention","svgClass","product__info-icon-error"],["data-qa","1657788704057","type","small-bordered",1,"controls__item_action","mobile__refill",3,"text"],["data-qa","1657788709337","type","small-bordered",1,"controls__item_action","mobile__refill",3,"text"],["data-qa","1657788746226",1,"tab"],[1,"last-operations-container__title","desktop__tablet"],[1,"product__information"],[1,"product__information__container"],["class","product__information__data","data-qa","1657788755184",4,"ngIf"],[1,"product__information__email"],["data-qa","1657788829242",3,"defaultEmail","defaultPhoneNumber","id"],["class","product__information__corr","data-qa","1657788839372",4,"ngIf"],["data-qa","1657788755184",1,"product__information__data"],["class","product__information__data__text",4,"ngFor","ngForOf"],[1,"product__information__data__text"],[1,"product__information__data__text__title"],[1,"product__information__data__text__value"],["data-qa","1657788839372",1,"product__information__corr"],[1,"product__information__corr__title"],["data-qa","1657788847370",1,"product__information__corr__list"],[1,"product__information__corr__row"],[1,"product__information__corr__cell","title"],["class","product__information__corr__row",4,"ngFor","ngForOf"],[1,"product__information__corr__cell"],["data-qa","1657788899108",1,"tab"],["data-qa","1657788950595",1,"product__information",3,"ngClass"],["data-qa","1657789031802",1,"product__information__data"],["class","product__information__data__text",4,"ngIf"],["class","product__information__data__text","data-qa","1657793291285",4,"ngIf"],["class","product__information__data__text","data-qa","1657793285565",4,"ngIf"],["class","product__information__data__text","data-qa","1657793282957",4,"ngIf"],["class","product__information__data__text","data-qa","1657793276029",4,"ngIf"],["class","product__information__data__text","data-qa","1657793271194",4,"ngIf"],["class","product__information__data__text","data-qa","1657793241420",4,"ngIf"],["class","product__information__data__text","data-qa","1657793238690",4,"ngIf"],["class","product__information__data__text","data-qa","1657793235570",4,"ngIf"],["class","product__information__data__text","data-qa","1657793257131",4,"ngIf"],["class","product__information__data__text","data-qa","1657793260673",4,"ngIf"],["data-qa","1657789038807",1,"product__information__reference"],["class","product__information__reference__text","data-qa","1657789043985",4,"ngIf"],["class","product__information__reference__text","data-qa","1657789047628",4,"ngIf"],["class","product__information__reference__text","data-qa","1657789050648",4,"ngIf"],["class","product__information__reference__text","data-qa","1657789054106",4,"ngIf"],["class","product__information__card__visa","data-qa","1657789058359",4,"ngIf"],["data-qa","1657793291285",1,"product__information__data__text"],["data-qa","1657793285565",1,"product__information__data__text"],["data-qa","1657793282957",1,"product__information__data__text"],["data-qa","1657793276029",1,"product__information__data__text"],["data-qa","1657793271194",1,"product__information__data__text"],["data-qa","1657793241420",1,"product__information__data__text"],["data-qa","1657793238690",1,"product__information__data__text"],["data-qa","1657793235570",1,"product__information__data__text"],[1,"status"],["data-qa","1657793257131",1,"product__information__data__text"],["data-qa","1657793260673",1,"product__information__data__text"],["data-qa","1657789043985",1,"product__information__reference__text"],["data-qa","1657789047628",1,"product__information__reference__text"],["data-qa","1657789050648",1,"product__information__reference__text"],["data-qa","1657789054106",1,"product__information__reference__text"],["data-qa","1657789058359",1,"product__information__card__visa"],[1,"card-number"],[1,"card_date"],["data-qa","1657789076963",1,"last-operations-container-title","product"],["data-qa","1657789071503",3,"items","periodChange"],[1,"title-item","clickable"],["class","my-period-dates","data-qa","1657789086521",4,"ngIf"],["data-qa","1657789086521",1,"my-period-dates"],["data-qa","1657789093037",3,"value","dateChange"],["data-qa","1657789104172",3,"value","dateChange"],["data-qa","1657790159775",3,"activeType","datesPeriod","updateChartProducts"],[1,"last-operations-container-title"],["data-qa","1657789141923",3,"productIdForStatement","showOperationsControlsBlock"],["data-qa","1657789146460",1,"tab"],[1,"section-title","section-title_with-padding"],["data-qa","1657789151993",3,"data"],[1,"product__loader-wrap","card"]],template:function(g,V){1&g&&(e.\u0275\u0275template(0,jh,73,74,"div",0),e.\u0275\u0275template(1,n_,2,0,"div",1)),2&g&&(e.\u0275\u0275property("ngIf",V.product&&V.product.productType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!V.product))},dependencies:[ic.Q,Hr.b,xa.R,Xs.S,Rp.d,i.mk,i.sg,i.O5,Cu._,aa.l,Xt.r,Em,Hu,ja,Gu,yi.X$,js.G,Jc.H,i.Ov,i.i8],styles:['@charset "UTF-8";.product-card,.product__information,.product__info{background:#fff;box-shadow:0 4px 15px #0807080d;border-radius:2px;margin-bottom:50px;margin-top:25px;display:flex}.product__info .warning-icon{background:url(warning.8b0fd70711b5bb20.svg) no-repeat;width:20px;height:20px;margin-left:10px;margin-top:6px}.product__info .account-to-close-icon{background:url(account-to-close.74b8ebf294040cee.png) no-repeat;width:20px;height:20px;margin-left:10px;margin-top:2px}.product__info-icon{background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%);width:175px;flex-shrink:0;display:block;position:relative}@media screen and (max-width: 1024px){.product__info-icon{display:none}}.product__info-icon-currency{position:absolute;font-size:340px;top:-53px;left:18px;color:#fff;opacity:.3}.product__info-icon-error{display:inline;width:20px;height:18px;position:relative;top:2px;fill:#2f54eb}.product__info-icon-error.blocked{fill:#d9291e}.product__info-icon-svg{width:140px;height:100px;color:#fff;fill:#fff;opacity:.25;position:relative;top:100px}.product__info-icon-svg.card-svg{width:178px}.product__info-icon-svg-mobile{width:457px;height:140px;top:50px;left:-16px;color:#fff;fill:#fff;opacity:.25;position:relative}.product__info-container{display:flex;flex-direction:column;width:100%;padding-left:30px}@media screen and (max-width: 768px){.product__info-container{padding-left:20px}}.product__info-header{display:flex;justify-content:space-between}@media screen and (max-width: 625px){.product__info-header{position:relative}}.product__info-header__content{margin:30px auto auto}.product__info-header__content__title{margin-bottom:15px;font-size:22px;color:#88909b;display:flex;align-items:center}.product__info-header__content__title-icon{width:14px;height:14px;opacity:.5;margin-left:10px}.product__info-header__content__value{font-size:22px;display:flex}.product__info-header__content__value.blocked{color:#d9291e}.product__info-header__content__value.blocked.no-stays:hover{text-decoration:none;cursor:default}.product__info-header__content__value span:hover{text-decoration:underline;cursor:pointer}.product__info-header__content__value-error{color:#d9291e}.product__info-header__content__value.account-close{font-size:16px;align-items:center;font-family:Open Sans,Source Sans Pro,sans-serif;color:#444;margin-left:8px}.product__info-header__content__value.account-close:hover{cursor:default;text-decoration:none}.product__info-header .left{margin-left:0}.product__info-header .right{margin-right:48px;text-align:right}.product__info-footer{display:flex;justify-content:space-between;padding-right:20px}.product__info-footer .button-group__row{display:flex;flex-direction:row;justify-content:flex-end;margin-top:29px;height:22px}.product__info-footer .button-group__row app-button{margin:auto 10px auto auto}.product__info-footer .button-group__row app-button:last-child{margin:auto 0}.product__info-footer .button-group__row:last-child{margin-top:3px}.product__info-footer .panel-form__button.small-bordered{padding:0 13px!important}.product__info-footer .last-operations-content__filters{height:80px!important;width:auto!important;padding-bottom:24px}@media screen and (max-width: 768px){.product__info-footer .last-operations-content__filters{width:inherit;padding-bottom:0}}.product__info-footer .last-operations-content__filters .period-filter__item{line-height:80px!important}.product__info-footer .period-filter__item{border-bottom:3px solid transparent;font-size:1.3em;cursor:pointer;margin-right:25px;color:#88909b;height:100%;line-height:100px;text-align:center}.product__info-footer .period-filter__item:first-child{padding-left:0}@media screen and (max-width: 1780px) and (min-width: 1365px){.product__info-footer .period-filter__item{padding:0 20px;font-size:1.1em;white-space:nowrap}}@media screen and (max-width: 1280px) and (min-width: 1025px){.product__info-footer .period-filter__item{padding:0 10px;font-size:1em;white-space:nowrap}}@media screen and (max-width: 1024px){.product__info-footer .period-filter__item{padding:0 15px;font-size:1.1em;white-space:nowrap}}.product__info-footer .period-filter__item.active{border-bottom:3px solid #2f54eb;color:#444;box-sizing:border-box}.product__title{font-size:24px;flex-direction:row!important}.product-item_action{padding:0}.product__information{display:flex}.product__information:not(.card-product){flex-wrap:wrap}.product__information__container{display:flex;flex-shrink:0;width:100%}@media screen and (max-width: 768px){.product__information__container{flex-direction:column}}.product__information__card__visa{background-image:url(card_visa.5f98c60fbeaf4e46.png);position:relative;width:330px;height:213px;margin:70px auto 0}.product__information__card__visa .card-number{color:#fff;position:absolute;bottom:100px;left:40px;font-family:Source Sans Pro;font-style:normal;font-weight:300;font-size:24px}.product__information__card__visa .card_date{position:absolute;bottom:10px;left:20px;color:#fff;font-family:Source Sans Pro;font-size:14px}.product__information__data{padding:0 30px;margin-top:10px;width:100%;box-sizing:border-box}.product__information__data__text{display:flex;justify-content:space-between;padding:30px 0;border-bottom:1px solid #dedede}.product__information__data__text:last-child{border:none}.product__information__data__text__title{font-size:18px;color:#88909b;margin-right:8px}.product__information__data__text__value{font-size:18px;text-align:right;word-break:break-word}.product__information__data__text__value .status{font-weight:700;color:#d9291e;font-family:Source Sans Pro}.product__information__data__text__value .status.active{color:#318f4b}@media screen and (max-width: 768px){.product__information__data{width:inherit}}.product__information__reference{padding:30px;min-width:328px;border-left:1px solid #dedede;color:#88909b;box-sizing:border-box}.product__information__reference__text{font-size:18px}@media screen and (max-width: 768px){.product__information__reference__text{margin-left:30px;margin-bottom:46px}}@media screen and (max-width: 768px){.product__information__reference{border-left:none;border-top:1px solid #dedede}}.product__information__email{min-width:328px;box-sizing:border-box;border-left:1px solid #dedede;padding:30px 40px}@media screen and (max-width: 768px){.product__information__email{border-left:none;border-top:1px solid #dedede;padding:30px 30px 0}}.product__information__corr{padding:40px 40px 40px 30px;font-size:18px;width:100%}@media screen and (max-width: 768px){.product__information__corr{padding:40px 30px}}.product__information__corr__title{margin-bottom:30px;font-weight:600;color:#284681}.product__information__corr__list{display:table;border-collapse:collapse;width:100%}.product__information__corr__row{display:table-row}.product__information__corr__cell{display:table-cell;padding:15px;border:1px solid #dedede}.product__information__corr__cell.title{color:#88909b}.period-filter__item{position:relative}@media screen and (min-width: 768px){.mobile__tablet{display:none!important}}@media screen and (min-width: 626px){.mobile__default{display:none}}@media screen and (min-width: 626px){.mobile__formattedNumber{display:none}}@media screen and (min-width: 626px){.mobile__refill{display:none}}.mobile__arrow-icon{width:16px;height:10px;fill:#2f54eb}@media screen and (min-width: 768px){.desktop__tablet{display:block!important}}@media screen and (min-width: 768px){.desktop__flex-tablet{display:flex!important}}@media screen and (max-width: 1024px){.desktop__flex-tablet .period-filter__item{width:inherit!important}}.rotated{transform:rotate(180deg)}.no-opacity{opacity:1}.account-error{white-space:nowrap;margin-left:5px;color:#2f54eb}.product__loader-wrap{position:relative;height:250px}.last-operations-container-title{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;font-weight:700;display:flex;align-items:center}@media screen and (min-width: 720px) and (max-width: 835px){.last-operations-container-title.filters{flex-direction:column}}.last-operations-container-title .title-item{padding-right:8px;color:#444}.last-operations-container-title .title-item.clickable{color:#7180b9;text-decoration:underline;cursor:pointer}.product__info-icon{background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%)}.product__info-icon-currency{font-size:256px;left:3px}.product__info-icon-currency.multi-symbol{top:20%;font-size:100px;left:0}\n'],encapsulation:2})}return M})();var jm=t(54244),A=t(83026),Y=t(93379);const le=["togglearrow"];function He(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span",10),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"My finance",o.lang))}}function kt(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span",10),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,1,"Money dynamics",o.lang))}}function ln(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11)(1,"div")(2,"span",10),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-datepicker",12),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.datePickersChanged(V,"beginDate"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div")(7,"span",10),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"app-datepicker",13),e.\u0275\u0275listener("dateChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.datePickersChanged(V,"endDate"))}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,"From",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.beginDate),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,7,"To",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",o.datesPeriod.endDate)}}const Ln=function(M){return{account:M}};function $n(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div")(1,"div",20),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",21),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"appCurrency"),e.\u0275\u0275elementStart(7,"span",22),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()()),2&M){const o=e.\u0275\u0275nextContext(2),g=o.index,V=o.$implicit,me=e.\u0275\u0275nextContext(3);e.\u0275\u0275attribute("data-qa","1657793073944"+g),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind3(3,4,"On account",me.lang,e.\u0275\u0275pureFunction1(10,Ln,V.currTemplateName))),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,8,V.amount)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(V.currSymbolCode)}}function Jn(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div")(1,"div",20),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",21),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext(2).index,g=e.\u0275\u0275nextContext(3);e.\u0275\u0275attribute("data-qa","1657793073944"+o),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,3,"Operations",g.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(6,6,"On all accounts",g.lang))}}function xi(M,s){if(1&M&&(e.\u0275\u0275template(0,$n,9,12,"div",18),e.\u0275\u0275template(1,Jn,7,9,"ng-template",null,19,e.\u0275\u0275templateRefExtractor)),2&M){const o=e.\u0275\u0275reference(2),g=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("ngIf","all"!==g.currTemplateName)("ngIfElse",o)}}function Mi(M,s){1&M&&(e.\u0275\u0275elementStart(0,"mat-tab"),e.\u0275\u0275template(1,xi,3,2,"ng-template",17),e.\u0275\u0275elementEnd())}function Oi(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-tab-group",15),e.\u0275\u0275listener("selectedTabChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.setMatTabActive(V))}),e.\u0275\u0275template(1,Mi,2,0,"mat-tab",16),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("selectedIndex",o.currentFinanceTab),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.finance.currencies)}}function Hi(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Oi,2,2,"mat-tab-group",14),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.finance&&o.finance.currencies)}}function mo(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",23)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",10),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Money dynamics",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind3(6,5,"On account",o.lang,e.\u0275\u0275pureFunction1(9,Ln,o.dinamycTitle)))}}function ko(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",23)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",10),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(7,"app-operations",24)),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,"Operations",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind3(6,5,"At account",o.lang,e.\u0275\u0275pureFunction1(9,Ln,o.dinamycTitleAt)))}}class Ho{constructor(s,o,g,V,me,yt,Zt,Pn,Fn){this.configUtilService=s,this.userDataService=o,this.lastOperationService=g,this.translation=V,this.productsService=me,this.operationsService=yt,this.toast=Zt,this.forSignOperationService=Pn,this.appConfigService=Fn,this._destroyed$=new co.x,this._datesPeriod=JSON.parse(sessionStorage.getItem("filter-period"))||this.lastOperationService.chosenPeriod$.value,this.sumProducts=null,this.isSingleCurrencyBalances=!0,this.datesError={errorText:this.translation.translate("Year dates error"),alertTitle:"Error",value:!1},this.multiCurr=!1,this.currentFinanceTab=1,this.currenciesNumber=1,this.maxDate=Ri()().toDate(),this.isShowLastOperationsSection=!1,this.periods=this.lastOperationService.periods}initLastOperations(){this.lastOperationService.getSumProducts().pipe((0,zn.R)(this._destroyed$)).subscribe(s=>{s&&(this.operationsService.products=this.productsService.products,this.sumProducts=s,this.lastOperationService.getMyFinanceFullInfo().pipe((0,zn.R)(this._destroyed$)).subscribe(o=>{if(this.finance=o,this.finance&&this.finance.balances){const g=this.configUtilService.getArray(this.finance.balances).map(V=>V.currISOCode);this.currenciesNumber=g.filter((V,me,yt)=>yt.indexOf(V)===me).length}this.currentFinanceTab=1,this.operationsService.currentTab$.next(vu.d$.Performed),this.operationsService.performedTab$.next(vu.Os.All),this.operationsService.currencyType$.next("RUR")}))})}setDynamicCurrencyTitles(s){return"RUR"===s&&"ru"===this.lang?(this.dinamycTitle="\u0440\u0443\u0431\u043b\u0435\u0432\u044b\u0445",void(this.dinamycTitleAt="\u0440\u0443\u0431\u043b\u0435\u0432\u044b\u043c")):"all"===s&&"ru"===this.lang?(this.dinamycTitle="\u0432\u0441\u0435\u0445",void(this.dinamycTitleAt="\u0432\u0441\u0435\u043c")):(this.dinamycTitle=s,void(this.dinamycTitleAt=s))}get datesPeriod(){return this._datesPeriod}set datesPeriod(s){const o=this.lastOperationService.setPeriodInRange(this.datesPeriod,s);o.hasError&&this.toast.show("Year dates error","error"),this._datesPeriod=o.period,sessionStorage.setItem("filter-period",JSON.stringify(o.period)),this.lastOperationService.chosenPeriod$.next(o.period)}ngAfterContentInit(){this.userDataService.activeOrganizationChanged$.pipe((0,zn.R)(this._destroyed$)).subscribe(()=>{this.initLastOperations(),this.forSignOperationService.getForSignOperationsAll({filter:[{docModule:"ibankul",docType:Qr.o.DocPlatpor},{docModule:"ibankul",docType:Qr.o.DocPlatporSBP}]}).subscribe()})}ngOnInit(){this.operationsService.currencyType$.pipe((0,zn.R)(this._destroyed$)).subscribe(s=>{this.setDynamicCurrencyTitles(s);const g=this.operationsService.products.filter(V=>V.currency===s).map(V=>V.id);if((!this.updateChartProducts||!uh.isEqual(this.updateChartProducts,g))&&setTimeout(()=>{this.updateChartProducts=g}),this.multiCurr=!1,"all"===s){const V=this.operationsService.products[0].currencyCode;this.operationsService.products.some(me=>(this.multiCurr=me.currencyCode!==V,this.multiCurr))}}),this.appConfigService.settings$.pipe((0,jm.n)(s=>!1===s.isLoaded),(0,zn.R)(this._destroyed$)).subscribe(s=>{this.isShowLastOperationsSection=s.ulSettings["SERVICE_SECTIONS/ACCOUNT_OPERATIONS_SECTION"]})}ngOnDestroy(){this.changedSubscription&&this.changedSubscription.unsubscribe(),this.lastOperationService.highlightingProducts$.next(void 0),this.datesError.value=!1,this._destroyed$.next(null),this._destroyed$.complete()}setMatTabActive(s){if(this.currentFinanceTab===s.index)return;this.currentFinanceTab=s.index;const o=this.finance.currencies[s.index];this.operationsService.currencyType$.next(o?o.currISOCode:"RUR")}datePickersChanged(s,o){this.datesPeriod={...this.datesPeriod,[o]:s},"period"!==this.datesPeriod.currentPeriod.period&&this.changePeriod(this.lastOperationService.periods.find(g=>"period"===g.period)),this.operationsService.periodChanged(),this.datesError.value=!1}changePeriod(s){"period"!==s.period?(this.datesPeriod=this.lastOperationService.changePeriod(s,this.datesPeriod.endDate,this.datesPeriod.beginDate),this.operationsService.periodChanged()):this.datesPeriod={...this.datesPeriod,currentPeriod:s}}static#e=this.\u0275fac=function(o){return new(o||Ho)(e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(ld.$),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(ou.l),e.\u0275\u0275directiveInject(as._))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ho,selectors:[["app-last-operations"]],viewQuery:function(o,g){if(1&o&&e.\u0275\u0275viewQuery(le,5),2&o){let V;e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(g.types=V.first)}},decls:15,vars:19,consts:[["data-qa","1657790050490",1,"last-operations-container"],["data-qa","1657790062358",1,"last-operations-container-title","filters"],["class","title-item",4,"ngIf"],["data-qa","1657790067436",3,"items","periodChange"],[1,"title-item","clickable"],["class","my-period-dates","data-qa","1657790072581",4,"ngIf"],[4,"appSkeleton","appSkeletonWidth","appSkeletonHeight","appSkeletonMargin"],["class","last-operations-container-title",4,"ngIf"],["data-qa","1657790159775",3,"activeType","datesPeriod","multiCurr","updateChartProducts"],[3,"ngIf"],[1,"title-item"],["data-qa","1657790072581",1,"my-period-dates"],["data-qa","1657790078248",3,"value","dateChange"],["data-qa","1657790085239",3,"value","dateChange"],["data-qa","1657790094386","id","tabs",3,"selectedIndex","selectedTabChange",4,"ngIf"],["data-qa","1657790094386","id","tabs",3,"selectedIndex","selectedTabChange"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[4,"ngIf","ngIfElse"],["allOperation",""],[1,"last-operations-type__title"],[1,"last-operations-type__value"],[1,"currency"],[1,"last-operations-container-title"],["data-qa","1657790166647"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div"),e.\u0275\u0275template(3,He,3,4,"span",2),e.\u0275\u0275template(4,kt,3,4,"span",2),e.\u0275\u0275elementStart(5,"app-no-input-select",3),e.\u0275\u0275listener("periodChange",function(me){return g.changePeriod(me)}),e.\u0275\u0275elementStart(6,"span",4),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"lowercase"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(9,ln,11,10,"div",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,Hi,2,1,"ng-container",6),e.\u0275\u0275template(11,mo,7,11,"div",7),e.\u0275\u0275element(12,"app-analytics",8),e.\u0275\u0275pipe(13,"async"),e.\u0275\u0275template(14,ko,8,11,"ng-template",9),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",1!==g.currenciesNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===g.currenciesNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("items",g.periods),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,15,g.datesPeriod.currentPeriod.description)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","today"!==g.datesPeriod.currentPeriod.period&&"yesterday"!==g.datesPeriod.currentPeriod.period),e.\u0275\u0275advance(1),e.\u0275\u0275property("appSkeleton",!(g.finance&&g.finance.currencies))("appSkeletonWidth","100%")("appSkeletonHeight","120px")("appSkeletonMargin","25px 0"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1!==g.currenciesNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("activeType",e.\u0275\u0275pipeBind1(13,17,g.operationsService.currencyType$))("datesPeriod",g.datesPeriod)("multiCurr",g.multiCurr)("updateChartProducts",g.updateChartProducts),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isShowLastOperationsSection))},dependencies:[ic.Q,A.SK,A.gz,A.R7,Xs.S,Rp.d,Y.e,i.sg,i.O5,Cu._,yi.X$,Jc.H,i.Ov,i.i8],styles:['@charset "UTF-8";#tabs{background:transparent;height:120px;margin:25px auto 30px;position:relative}#tabs *{font-family:Source Sans Pro!important}#tabs:before{content:"";display:block;position:absolute;height:100px;left:0;right:0;box-shadow:0 4px 15px #0807080d;border-radius:2px}#tabs .mat-tab-label{width:100%;min-width:270px;opacity:1;height:100px;justify-content:flex-start;background-color:#fff;overflow:visible;position:relative}@media screen and (max-width: 1570px){#tabs .mat-tab-label{width:300px}}@media screen and (max-width: 1366px){#tabs .mat-tab-label{width:310px}}#tabs .mat-tab-label-active{background:#2f54eb;color:#fff}#tabs .mat-tab-label-active:before{z-index:1;content:"";position:absolute;display:block;margin:0 auto;top:98px;left:50%;width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-top:18px solid #2f61eb;transform:translate(-50%)}#tabs .mat-tab-label-active .last-operations-type__title{color:#fff}#tabs .mat-tab-label:first-child{padding-left:32px;border-top-left-radius:2px;border-bottom-left-radius:2px}#tabs .mat-tab-label:last-child{padding-right:32px;border-top-right-radius:2px;border-bottom-right-radius:2px}#tabs .mat-tab-label-content{flex-direction:column;align-items:flex-start;position:relative;z-index:2}#tabs .mat-tab-labels{height:120px}#tabs .mat-tab-header{border-bottom:none;height:120px;overflow:visible;position:relative}#tabs .mat-tab-header:before{content:"";display:block;position:absolute;left:0;top:0;width:100%;height:60px;background:#fff;border-radius:2px}#tabs .mat-tab-header-pagination{height:100px;position:relative;box-shadow:none;background-color:#fff;overflow:visible}#tabs .mat-tab-header-pagination-before{padding-left:32px}#tabs .mat-tab-header-pagination-after{padding-right:32px}#tabs .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:translateY(-50%) rotate(45deg)}#tabs .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#88909b}#tabs .mat-ripple-element{display:none!important}#tabs .mat-tab-header-pagination-chevron{border-color:#080708;height:20px;width:20px;border-width:3px 3px 0 0;position:absolute;top:50%;transform:translateY(-50%) rotate(-135deg)}#tabs .mat-tab-body-wrapper,#tabs .mat-ink-bar{display:none!important}#tabs .last-operations-type__title{font-family:Open Sans!important;font-size:18px;font-weight:400;line-height:22px;color:#88909b;text-align:left}#tabs .last-operations-type__title:first-letter{text-transform:capitalize}#tabs .last-operations-type__value{font-family:Source Sans Pro;font-size:25px;font-weight:400;letter-spacing:.03em;line-height:33px;padding-top:5px;color:#080708;text-align:left}#tabs .last-operations-type__value .currency{color:#88909b}.last-operations-container{position:relative;width:100%;font-family:Source Sans Pro}.last-operations-container-title{font-family:Open Sans,Source Sans Pro,sans-serif;font-size:24px;font-weight:700;display:flex;align-items:center}@media screen and (min-width: 720px) and (max-width: 835px){.last-operations-container-title.filters{flex-direction:column}}.last-operations-container-title .title-item{padding-right:8px;color:#444}.last-operations-container-title .title-item.clickable{color:#7180b9;text-decoration:underline;cursor:pointer}.last-operation{box-sizing:border-box;width:100%;display:flex;flex-direction:column;border-bottom:1px solid #f1f2f2}.last-operation:last-child{border-bottom:none}.last-operation__operations-wrap{position:relative;min-height:50px}.last-operation__left-block{display:flex}.last-operation__info{margin-right:15px;overflow:hidden}.last-operation__info .info-title{width:100%;display:flex}@media screen and (max-width: 920px){.last-operation__info .info-title{display:initial}}.last-operation__info .info-title__type{padding:2px 12px;background:#f1f2f2;border-radius:20px;margin-left:4px;font-size:14px;line-height:19px;color:#2f54eb;height:22px;white-space:nowrap}.last-operation__info .info-title__type.loan-agreement{color:#444}@media screen and (max-width: 920px){.last-operation__info .info-title__type{display:none}}.last-operation__info .info-title-wrapper{min-width:200px}.last-operation__info .info-description{word-break:break-all;padding-top:5px;color:#88909b}@media screen and (max-width: 920px){.last-operation__info .info-description{max-width:450px}}.last-operation__sum.empty{display:flex;justify-self:center;align-self:center}.last-operation__sum .value{font-family:Source Sans Pro;font-weight:400;font-size:20px;line-height:25px;letter-spacing:.03em;white-space:nowrap;text-align:right}.last-operation__sum .value.inc{color:#28b26d}@media screen and (max-width: 768px){.last-operation__sum .value.inc{text-align:right}}.last-operation__sum .value.out{color:#d9291e}@media screen and (max-width: 768px){.last-operation__sum .value.out{text-align:right}}.last-operation__sum .status{padding-top:5px;color:#444;text-align:right;white-space:nowrap}.last-operation__sum .status_paid{color:#444}.last-operation__sum .status_unpaid{color:#88909b}.show-more{height:50px;line-height:50px;background:#f1f2f2;display:flex;flex-direction:row;align-items:center;text-align:center;justify-content:center;color:#88909b;cursor:pointer}#tabs .mat-tab-label-active:before{border-left:20px solid transparent;border-right:20px solid transparent;border-top:18px solid #2f54eb}#tabs .mat-tab-label-active .mat-tab-label-content .last-operations-type__value,#tabs .mat-tab-label-active .mat-tab-label-content .last-operations-type__value .currency{color:#fff}\n'],encapsulation:2})}function Lo(M,s){if(1&M&&(e.\u0275\u0275element(0,"app-notify-main",4),e.\u0275\u0275pipe(1,"async")),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("notifications",e.\u0275\u0275pipeBind1(1,1,o.userDataService.notifications$))}}function va(M,s){1&M&&e.\u0275\u0275element(0,"app-last-operations")}function Oa(M,s){if(1&M&&e.\u0275\u0275element(0,"app-product-single",5),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("singleAccount",o.singleAccount)}}(0,Wi.gn)([(0,yi.SQ)()],Ho.prototype,"lang",void 0);let lc=(()=>{class M{constructor(o,g,V,me,yt,Zt){this.userDataService=o,this.productsService=g,this.toast=V,this.appConfigService=me,this.router=yt,this.ngZone=Zt,this._destroyed$=new co.x,this.singleAccount=null,this.showLoader=!0}ngOnInit(){this.initMain(),this.userDataService.activeOrganizationChanged$.pipe((0,zn.R)(this._destroyed$)).subscribe(o=>{o&&this.initMain(),this.userDataService.setDicSmsNotifi().pipe((0,zn.R)(this._destroyed$)).subscribe(),this.userDataService.partiallyBlockCheck().pipe((0,zn.R)(this._destroyed$)).subscribe(g=>{g.forEach(V=>{this.toast.show(V.blockText,"error")})})}),this.appConfigService.isRoleOnlyEmail$.pipe((0,zn.R)(this._destroyed$)).subscribe(o=>{o&&this.ngZone.run(()=>{this.router.navigate(["/mail"])})})}initMain(){this.productsService.getProducts().pipe((0,zn.R)(this._destroyed$)).subscribe(o=>{this.singleAccount=o instanceof Array&&1===o.length?o[0]:null,this.productsService.isSingleAccount$.next(!!this.singleAccount),this.showLoader=!1})}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}checkTerm(){this.userDataService.checkTermOffice().pipe((0,zn.R)(this._destroyed$)).subscribe(o=>{o&&this.toast.show(o,"warning")})}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(as._),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(e.NgZone))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-main"]],decls:6,vars:3,consts:[[1,"main-content"],[3,"notifications",4,"ngIf"],[4,"ngIf","ngIfElse"],["showSingleAccount",""],[3,"notifications"],[3,"singleAccount"]],template:function(g,V){if(1&g&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Lo,2,3,"app-notify-main",1),e.\u0275\u0275template(2,va,1,0,"app-last-operations",2),e.\u0275\u0275template(3,Oa,1,1,"ng-template",null,3,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275element(5,"app-fz-alert"),e.\u0275\u0275elementEnd()),2&g){const me=e.\u0275\u0275reference(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!V.singleAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!V.singleAccount)("ngIfElse",me)}},dependencies:[Yu.y,i.O5,Em,i_,Ho,i.Ov],styles:['@charset "UTF-8";.main-content{position:relative}\n'],encapsulation:2})}return M})(),ms=(()=>{class M{constructor(o){this.userDataService=o}canActivate(){return this.userDataService.activeCompany$.pipe((0,uo.h)(o=>null!==o),(0,lo.U)(o=>o.resident&&"\u0418\u041f"!==o.clientTypeBank))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(Da.M))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();var Dc=t(26306);const hs=[{field:{name:"fullName",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Payer name",placeholder:"Enter data",maxlength:160},visual:{visualDisabled:!0,close:!0},dataQa:"1660030659352"},{field:{name:"inn",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"INN",placeholder:"Enter data",maxlength:10},visual:{visualDisabled:!0,cssClass:"half-inline"},dataQa:"1660030661173"},{field:{name:"accNumber",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Account",placeholder:"Enter data",maxlength:20},visual:{visualDisabled:!0,cssClass:"half-inline"},dataQa:"1660030664660"},{field:{name:"docNumber",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Payment request",placeholder:"Enter data",maxlength:5},visual:{visualDisabled:!0,cssClass:"three-inline"},dataQa:"1660030670233"},{field:{name:"docDate",validators:[l.Validators.required]},component:{type:Si.j.DatePicker,title:"By"},visual:{visualDisabled:!0,matIcon:"calendar_today",cssClass:"three-inline"},dataQa:"1660030675375"},{field:{name:"amount",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Amount"},visual:{visualDisabled:!0,cssClass:"three-inline"},dataQa:"1660030678252"},{field:{name:"endAcceptDate",validators:[l.Validators.required]},component:{type:Si.j.DatePicker,title:"Acceptance end date"},visual:{visualDisabled:!0,matIcon:"calendar_today",cssClass:"three-inline"},dataQa:"1660030680184"},{field:{name:"corrFullName",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Recipient",maxlength:160},visual:{visualDisabled:!0},dataQa:"1660030691739"},{field:{name:"corrAccNumber",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Account",maxlength:20},visual:{visualDisabled:!0},dataQa:"1660030694213"},{field:{name:"corrBankName",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Corr bank name",maxlength:80},visual:{visualDisabled:!0},dataQa:"1660030696770"},{field:{name:"corrBankCorrAccount",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Requisites Corr Account",maxlength:20},visual:{visualDisabled:!0,cssClass:"half-inline"},dataQa:"1660030699170"},{field:{name:"corrBankBik",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"BIK",maxlength:9},visual:{visualDisabled:!0,cssClass:"half-inline"},dataQa:"1660030701143"},{field:{name:"acceptAmount",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Accept in amount",maxlength:9},visual:{cssClass:"half-inline"},mask:{TextMask:(0,Wa.z3)(2),type:"amount",decimalSymbol:".",stripMask:!0},dataQa:"1660030703230"},{field:{name:"refuseAmount",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Refuse acceptance full or partial",maxlength:9},visual:{visualDisabled:!0,hide:!0},dataQa:"1660030705395"},{field:{name:"cause",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Motive of refusal"},visual:{hide:!0},dataQa:"1660030707314"}];var Pc=t(49284),dc=t(15654);function Um(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",17)(1,"app-button",18),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.accept())}),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"app-button",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.cancel())}),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind2(2,2,o.acceptText,o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind2(4,5,"Cancel",o.lang))}}function x1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-alert",20),e.\u0275\u0275listener("close",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.result={})}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("text",o.result.data.errorText)("type",o.result.type)}}function jg(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",8)(7,"div",9)(8,"div",10)(9,"app-select",11),e.\u0275\u0275listener("ngModelChange",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.changeAcceptType())})("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.acceptType=V)}),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(11,"div",12)(12,"form",13),e.\u0275\u0275element(13,"app-dynamic-form",14),e.\u0275\u0275template(14,Um,5,8,"div",15),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(15,x1,1,2,"app-alert",16),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(5,14,o.nameStatement,o.lang)),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",o.acceptType)("defaultValue",o.acceptType)("inlineMode",!0)("items",o.acceptTypeList)("label","caption")("returnValue","code")("title",e.\u0275\u0275pipeBind2(10,17,"Type statement",o.lang)),e.\u0275\u0275advance(4),e.\u0275\u0275classProp("sended",o.sendFlag),e.\u0275\u0275property("config",o.formConfig)("formGroup",o.payerForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.accId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.result&&"error"===o.result.type)}}function oC(M,s){if(1&M&&e.\u0275\u0275element(0,"app-document-info",21),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("data",o.documentInfo)("signParams",o.signParams)}}class o_{constructor(s,o,g,V,me,yt){this.documentService=s,this.dynamicFormService=o,this.activatedRouter=g,this.paymentRequestService=V,this.productService=me,this.router=yt,this.sendFlag=!1,this.pathData=[{capture:"Payments",href:"/",bold:!0},{capture:"Acceptance statement"}],this.docNum={visible:!0,value:""},this.result={},this.acceptTypeList=[{id:1,code:"ACCEPT",caption:"\u0430\u043a\u0446\u0435\u043f\u0442"},{id:2,code:"DECLINE",caption:"\u043e\u0442\u043a\u0430\u0437 \u043e\u0442 \u0430\u043a\u0446\u0435\u043f\u0442\u0430"}],this.formConfig=hs,this.payerForm=this.dynamicFormService.generateFormGroup(hs)}get showDocumentInfo(){return this.result&&this.result.data&&"success"===this.result.type}ngOnInit(){this.activatedRouter.queryParams.subscribe(({acceptType:s})=>{this.acceptType=s,this.paymentReqSubscription=this.documentService.paymentData$.subscribe(o=>{if(o){if(this.paymentReq=o,this.paymentReq.endAcceptDate=this.getEndAcceptDate(new Date(this.paymentReq.docDate),Number(this.paymentReq.acceptTerm)),"DECLINE"===this.acceptType){this.paymentReq.acceptAmount=0,this.paymentReq.refuseAmount=this.paymentReq.amount;const g=this.dynamicFormService.getFieldConfig(this.formConfig,"cause"),V=this.dynamicFormService.getFieldConfig(this.formConfig,"refuseAmount");g.visual.hide=!1,V.visual.hide=!1,this.nameStatement="Refuse acceptance statement",this.acceptText="Refuse acceptance",this.valueSubscribe=this.payerForm.get("acceptAmount").valueChanges.subscribe(me=>{Number(me)<=Number(this.paymentReq.amount)&&this.payerForm.controls.refuseAmount.setValue(this.paymentReq.amount-me)})}else this.paymentReq.acceptAmount=this.paymentReq.amount,this.nameStatement="Acceptance statement",this.acceptText="To accept";this.payerForm.patchValue(o),this.payerForm.controls.endAcceptDate.setValue(Ri()(this.paymentReq.endAcceptDate).format("DD.MM.YYYY")),this.payerForm.controls.docDate.setValue(Ri()(this.paymentReq.docDate).format("DD.MM.YYYY")),this.productService.getProductIdByNumber(this.paymentReq.accNumber).subscribe(g=>{g&&(this.accId=g.id)})}})})}getEndAcceptDate(s,o){const g=s;for(o=o||5;o;)g.setDate(g.getDate()+1),0!==g.getDay()&&6!==g.getDay()&&o--;return g}changeAcceptType(){const s=this.dynamicFormService.getFieldConfig(this.formConfig,"cause"),o=this.dynamicFormService.getFieldConfig(this.formConfig,"refuseAmount");"DECLINE"===this.acceptType?(this.payerForm.controls.acceptAmount.setValue(0),this.payerForm.controls.refuseAmount.setValue(this.paymentReq.amount),s.visual.hide=!1,o.visual.hide=!1,this.nameStatement="Refuse acceptance statement",this.acceptText="Refuse acceptance",Number(this.payerForm.value.acceptAmount)<=Number(this.paymentReq.amount)&&this.payerForm.controls.refuseAmount.setValue(this.paymentReq.amount-this.payerForm.value.acceptAmount),this.valueSubscribe=this.payerForm.get("acceptAmount").valueChanges.subscribe(g=>{Number(g)<=Number(this.paymentReq.amount)&&this.payerForm.controls.refuseAmount.setValue(this.paymentReq.amount-g)})):(this.valueSubscribe.unsubscribe(),s.visual.hide=!0,o.visual.hide=!0,this.payerForm.controls.acceptAmount.setValue(this.paymentReq.amount),this.nameStatement="Acceptance statement",this.acceptText="To accept")}accept(){if(!this.payerForm.disabled&&Number(this.payerForm.value.acceptAmount)<=this.paymentReq.amount){"DECLINE"===this.acceptType&&Number(this.payerForm.value.acceptAmount)>0&&(this.acceptType="PARTLY_ACCEPT");const s={accId:this.accId,paymentRequestDocId:this.paymentReq.id,acceptType:this.acceptType,acceptAmount:this.payerForm.value.acceptAmount,endAcceptDate:Ri()(this.paymentReq.endAcceptDate).format("YYYY-MM-DD"),cause:this.payerForm.value.cause};this.paymentRequestService.createAccept(s).subscribe(o=>{this.documentService.getDocumentById(o.docModule,o.docType,o.id).subscribe(g=>{this.documentInfo=g.requestAcceptNoAcceptUlDocumentMetinv,this.signParams={docId:+o.id,docType:o.docType,docModule:o.docModule},this.result={type:o.id?"success":"error",data:o.id?this.documentInfo:o}})},o=>{this.result.type="error",this.result.data={alertTitle:"Error",errorText:o.errorText}})}}cancel(){this.router.navigate(["desktop"])}ngOnDestroy(){this.paymentReqSubscription.unsubscribe(),this.documentService.paymentData$.next(null)}static#e=this.\u0275fac=function(o){return new(o||o_)(e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(Ba.w),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(Pc.g),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(bi.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:o_,selectors:[["app-accept"]],decls:4,vars:3,consts:[["data-qa","1657968948983",1,"payment-req-out"],["data-qa","1657968968592",3,"pathData"],["class","container","data-qa","1657968973515",4,"ngIf"],["data-qa","1657969008537",3,"data","signParams",4,"ngIf"],["data-qa","1657968973515",1,"container"],[1,"payment-req-out__header","container-title"],[1,"payment-req-out__header__title"],[1,"item"],[1,"payment-req-out__header__filters"],[1,"payment-req-out__field","inline"],[1,"accept-inline-item"],["data-qa","1657968978937",3,"ngModel","defaultValue","inlineMode","items","label","returnValue","title","ngModelChange"],[1,"container-content","inline"],["data-qa","1657968982954",1,"payment-req-out__form"],["data-qa","1657968986563",3,"config","formGroup"],["class","payment-req-out__controls",4,"ngIf"],["data-qa","1657968998523",3,"text","type","close",4,"ngIf"],[1,"payment-req-out__controls"],["data-qa","1657968990358",3,"text","click"],["data-qa","1657968993646",3,"text","click"],["data-qa","1657968998523",3,"text","type","close"],["data-qa","1657969008537",3,"data","signParams"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"app-path",1),e.\u0275\u0275template(2,jg,16,20,"div",2),e.\u0275\u0275template(3,oC,1,2,"app-document-info",3),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.result||g.result&&"success"!==g.result.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.showDocumentInfo))},dependencies:[l.\u0275NgNoValidate,l.NgControlStatus,l.NgControlStatusGroup,l.NgModel,l.NgForm,zu.H,dc.w,l.FormGroupDirective,i.O5,ye.r,Ms.a,aa.l,Xt.r,yi.X$],styles:['@charset "UTF-8";.payment-req-out__header__title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;font-weight:600;font-family:Source Sans Pro}.payment-req-out__header__title[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{color:#284681;padding-right:5px}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.clickable[_ngcontent-%COMP%]{cursor:pointer;color:#2f54eb;text-decoration:underline}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.clickable[_ngcontent-%COMP%]:last-child   app-datepicker[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{display:block}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.edit[_ngcontent-%COMP%]{width:10%;margin-right:5px}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.edit[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;outline:none;border-bottom:3px solid #2f54eb;background:transparent;border-left:none;border-top:none;border-right:none;color:#2f54eb;font-size:inherit;font-family:Source Sans Pro;font-weight:600}.payment-req-out__header__filters[_ngcontent-%COMP%]{width:40%}.payment-req-out__field[_ngcontent-%COMP%]{width:100%;margin:25px 0}.payment-req-out__field.short[_ngcontent-%COMP%]{width:50%}.payment-req-out__field.inline[_ngcontent-%COMP%]{display:flex;flex-direction:row}.payment-req-out__field.inline[_ngcontent-%COMP%]   .accept-inline-item[_ngcontent-%COMP%]{margin-right:15px;width:100%}.payment-req-out__field.inline[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%], .payment-req-out__field.inline[_ngcontent-%COMP%]   app-select[_ngcontent-%COMP%], .payment-req-out__field.inline[_ngcontent-%COMP%]   .inline-item[_ngcontent-%COMP%]{margin-right:15px;width:50%}.payment-req-out__field.inline[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]:first-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   app-select[_ngcontent-%COMP%]:first-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   .inline-item[_ngcontent-%COMP%]:first-child{width:50%}.payment-req-out__field.inline[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]:last-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   app-select[_ngcontent-%COMP%]:last-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   .inline-item[_ngcontent-%COMP%]:last-child{margin-right:0;width:40%}.payment-req-out__field.inline[_ngcontent-%COMP%]   .transfer-rur__field__button[_ngcontent-%COMP%]{margin-left:auto}.payment-req-out__field.inline[_ngcontent-%COMP%]   .custom-select[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]{margin:0}.payment-req-out__field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]{display:block;position:relative;padding-left:35px;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:Source Sans Pro}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:20px;width:20px;background-color:#fff;border:1px solid #dedede;box-sizing:border-box}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]:hover   input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#ccc}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:#2f54eb}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{left:5px;top:2px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.payment-req-out__controls[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;margin-bottom:10px;height:60px;margin-top:15px}.payment-req-out__controls[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:15px}.payment-req-out__form[_ngcontent-%COMP%]   .form-title[_ngcontent-%COMP%]{color:#004785;font-weight:600;font-family:Source Sans Pro;font-size:22px;margin:10px 0}  .dynamic-textarea{display:block;position:relative}  .dynamic-textarea.active .dynamic-textarea__placeholder{color:#2f54eb;transition:color .1s ease}  .dynamic-textarea.active textarea{border-color:#2f54eb!important;border:1px solid #dedede;box-shadow:inset 0 0 0 1px #2f54eb!important;transition:border .1s ease,box-shadow .1s ease,transform .2s ease-in-out}  .dynamic-textarea.ng-invalid textarea{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}.document-radio[_ngcontent-%COMP%]{margin-bottom:5px}']})}(0,Wi.gn)([(0,yi.SQ)()],o_.prototype,"lang",void 0);const D1=(0,_h.createNumberMask)({prefix:"",allowDecimal:!0,thousandsSeparatorSymbol:" "}),a_=(0,_h.createNumberMask)({prefix:"",allowDecimal:!1,thousandsSeparatorSymbol:""}),L0=[{field:{name:"corrFullname",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Payer name",placeholder:"Enter data",maxlength:160},visual:{close:!0},dataQa:"1660031303884"},{field:{name:"corrInn",validators:[l.Validators.minLength(10)]},component:{type:Si.j.Svetofor,title:"Payer INN",placeholder:"Enter data",maxlength:12},visual:{hide:!1},mask:{TextMask:a_},dataQa:"1660031307953"},{field:{name:"corrKpp"},component:{type:Si.j.Input,title:"payerKpp",placeholder:"Enter data",maxlength:9},visual:{cssClass:"",hide:!1},mask:{TextMask:a_},dataQa:"1660031310633"},{field:{name:"corrBankBik",validators:[l.Validators.required]},component:{type:Si.j.Biksearch,title:"payerBik",placeholder:"Enter data",maxlength:9},visual:{hide:!1},dataQa:"1660031313609"},{field:{name:"corrAccNumber",validators:[l.Validators.required]},component:{type:Si.j.Autocomplete,title:"Payer account",placeholder:"Enter data",maxlength:20},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:[/\d/,/\d/,/\d/,/\d/,/\d/," ",/\d/,/\d/,/\d/," ",/\d/," ",/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],stripMask:!0},select:{items:[]},dataQa:"1660031316084"},{field:{name:"uin"},component:{type:Si.j.Input,title:"UIP",placeholder:"Enter data",maxlength:25},visual:{cssClass:"",hide:!0},dataQa:"1660031318205"}],zs=[{field:{name:"accId",validators:[l.Validators.required]},component:{type:Si.j.Select,title:"Corr account",placeholder:"Enter data"},select:{items:[]},dataQa:"1660031320060"},{field:{name:"kpp",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"corrKpp",placeholder:"Enter data",maxlength:9},visual:{cssClass:"half-inline",hide:!1},mask:{TextMask:a_},dataQa:"1660031323047"}],Ug=[{field:{name:"amount",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Amount and symbol",placeholder:"Enter data"},visual:{cssClass:"three-inline"},mask:{TextMask:D1,type:"amount",decimalSymbol:".",stripMask:!0},dataQa:"1660031325217"},{field:{name:"ndsTypeId",validators:[l.Validators.required]},component:{type:Si.j.Select,title:"NDS type",placeholder:"Enter data"},visual:{cssClass:"three-inline"},select:{items:[]},dataQa:"1660031327442"},{field:{name:"description",validators:[l.Validators.required]},component:{type:Si.j.Input,title:"Description",placeholder:"Enter data"},hint:{text:""},dataQa:"1660031331437"}];var R0=t(42873),P1=t(94938);function F0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",25)(1,"div",26)(2,"div",27)(3,"app-select",28),e.\u0275\u0275listener("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.selected.priority=V)}),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",27)(6,"app-select",29),e.\u0275\u0275listener("ngModelChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.selected.urgenttype=V)}),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",o.selected.priority)("defaultValue",o.preselectedPriority)("inlineMode",!0)("items",o.lists.sendType)("label","caption")("returnValue","code")("title",e.\u0275\u0275pipeBind2(4,14,"Send types",o.lang)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",o.selected.urgenttype)("defaultValue",o.preselected)("inlineMode",!0)("items",o.lists.priority)("label","code")("returnValue","code")("title",e.\u0275\u0275pipeBind2(7,17,"Priorities",o.lang))}}function E1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",26)(1,"app-input",30),e.\u0275\u0275listener("change",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.changeAcceptTerm(V))}),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind2(2,4,"Enter data",o.lang))("title",e.\u0275\u0275pipeBind2(3,7,"Deadline for acceptance",o.lang))("type","number")("value",o.acceptTerm)}}function B0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-alert",31),e.\u0275\u0275listener("close",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.result={})}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("text",o.result.data)("type",o.result.type)}}function N0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4)(1,"div",5)(2,"div",6)(3,"app-line-with-number-and-date",7),e.\u0275\u0275listener("dateChanged",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.docDate=V)})("numberChanged",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.docNum.value=V)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(4,F0,8,20,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",9)(6,"form",10)(7,"div",11),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"app-dynamic-form",12),e.\u0275\u0275elementStart(11,"div",11),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(14,"app-dynamic-form",13)(15,"hr")(16,"app-dynamic-form",14)(17,"hr"),e.\u0275\u0275elementStart(18,"div")(19,"div",15)(20,"label",16)(21,"input",17),e.\u0275\u0275listener("change",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.accept=!V.accept)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(22,"span",18),e.\u0275\u0275elementStart(23,"span",19),e.\u0275\u0275text(24),e.\u0275\u0275pipe(25,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(26,E1,4,10,"div",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",21)(28,"app-button",22),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.create())}),e.\u0275\u0275pipe(29,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"app-button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.cancel())}),e.\u0275\u0275pipe(31,"translate"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(32,B0,1,2,"app-alert",24),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("date",o.docDate)("numberMaxLength",o.docNum.maxlength)("number",o.docNum.value),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.lists),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,24,"Payer",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("sended",o.sendFlag),e.\u0275\u0275property("config",o.payerFormConfig)("formGroup",o.payerForm),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(13,27,"Recipient",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("sended",o.sendFlag),e.\u0275\u0275property("config",o.recipientFormConfig)("formGroup",o.recipientForm),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("sended",o.sendFlag),e.\u0275\u0275property("config",o.amountFormConfig)("formGroup",o.amountForm),e.\u0275\u0275advance(5),e.\u0275\u0275property("checked",o.accept),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(25,30,"With accept",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.accept),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(29,33,"Create",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("text",e.\u0275\u0275pipeBind2(31,36,"Cancel",o.lang)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",o.result&&"error"===o.result.type)}}function Vm(M,s){if(1&M&&e.\u0275\u0275element(0,"app-document-info",32),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("data",o.documentInfo)("signParams",o.signParams)}}class Uh{constructor(s,o,g,V,me,yt,Zt){this.util=s,this.prefillService=o,this.paymentRequestService=g,this.dynamicFormService=V,this.router=me,this.documentService=yt,this.activatedRouter=Zt,this.pathData=[{capture:"Payments",href:"/",bold:!0},{capture:"Create payment request"}],this.docNum={visible:!0,value:""},this.selected={priority:"",urgenttype:""},this.preselected="5",this.sendFlag=!1,this.accept=!1,this.result={},this.payerFormConfig=L0,this.payerForm=this.dynamicFormService.generateFormGroup(L0),this.recipientFormConfig=zs,this.recipientForm=this.dynamicFormService.generateFormGroup(zs),this.amountFormConfig=Ug,this.amountForm=this.dynamicFormService.generateFormGroup(Ug),this.needToPrefill=!0}get showDocumentInfo(){return this.result&&this.result.data&&"success"===this.result.type&&!this.documentInfoLoader}ngOnInit(){this.activatedRouter.queryParams.subscribe(({prefill:s})=>{"false"===s&&(this.needToPrefill=!1),this.needToPrefill&&this.getPrefillData(),this.getLists(),this.getAccountList(),this.getDocData()})}getLists(){this.paymentRequestService.getLists().subscribe(([s,o,g])=>{this.lists={priority:s,sendType:o,ndsType:g};const V=this.dynamicFormService.generateItemsForSelect(this.lists.ndsType,"id","caption");this.dynamicFormService.setSelectItems(this.amountFormConfig,"ndsTypeId",V),1===this.lists.sendType.length&&(this.selected.priority="\u0441\u0440\u043e\u0447\u043d\u043e"),""===this.selected.urgenttype&&(this.selected.urgenttype="5")})}getAccountList(){this.paymentRequestService.getAvailableAcc().subscribe(s=>{this.lists.accList=s;const o=this.dynamicFormService.generateItemsForSelect(this.lists.accList,"id","number");this.dynamicFormService.setSelectItems(this.recipientFormConfig,"accId",o)})}getDocData(){this.paymentRequestService.getOrgData().subscribe(s=>{this.payerData=s,this.recipientForm.controls.kpp.setValue(this.payerData.KPP)})}getPrefillData(){this.prefillService.initDocument().subscribe(s=>{this.prefillData=s,this.setPrefillData(s)})}setPrefillData(s){this.docNum.value=s.docNumber,this.docNum.visible=!1,this.docDate=new Date(s.docDate)}ngAfterContentInit(){this.editProductSubscription=this.documentService.paymentData$.subscribe(s=>{s&&(this.needToPrefill=!1,this.addDataToForm(s))})}addDataToForm(s){this.payerForm.patchValue(s),this.recipientForm.patchValue(s),this.recipientForm.get("accId").patchValue(s.accId),this.amountForm.patchValue(s),this.setPrefillData(s),this.accept=s.acceptTerm>0,this.acceptTerm=s.acceptTerm,this.documentId=s.id,this.selected.priority=s.sendtype,this.selected.urgenttype=s.urgenttype,this.preselected=s.urgenttype,this.preselectedPriority=s.sendtype}changeAcceptTerm(s){"string"==typeof s&&(this.acceptTerm=s)}getDocumentInfo(s,o,g,V){this.paymentRequestService.getDocumentInfoData(s,o,g,V).subscribe(me=>{this.documentInfo=me,this.signParams={docId:+s,docType:o,docModule:g},this.documentInfoLoader=!1})}create(){const s=Object.assign({},this.recipientForm.value,this.payerForm.value,this.amountForm.value);s.amount&&(s.amount=s.amount.replace(/\s/g,"")),this.selected.urgenttype&&(s.urgenttype=this.selected.urgenttype),this.selected.priority&&(s.sendtype=this.selected.priority),this.docNum.value&&(s.docNumber=this.docNum.value),s.docDate=Ri()(this.docDate).format("YYYY-MM-DD"),this.accept?(s.payCondition=2,s.acceptTerm=this.acceptTerm):s.payCondition=1,this.documentId&&(s.id=this.documentId),this.paymentRequestService.createPayReqOut(s).subscribe(o=>{this.result={type:o.id?"success":"error",data:o.id?s:o},this.getDocumentInfo(o.id,o.docType,o.docModule,s.accId+"")},o=>{this.result.type="error",this.result.data={alertTitle:"Error",errorText:o.errorText}})}cancel(){this.router.navigate(["desktop"])}ngOnDestroy(){this.editProductSubscription.unsubscribe(),this.documentService.paymentData$.next(null)}static#e=this.\u0275fac=function(o){return new(o||Uh)(e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(R0.F),e.\u0275\u0275directiveInject(Pc.g),e.\u0275\u0275directiveInject(Ba.w),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(bi.gz))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Uh,selectors:[["app-payment-req-out"]],decls:4,vars:3,consts:[["data-qa","1657969277964",1,"payment-req-out"],["data-qa","1657969285769",3,"pathData"],["class","container","data-qa","1657969281709",4,"ngIf"],["data-qa","1657969342773",3,"data","signParams",4,"ngIf"],["data-qa","1657969281709",1,"container"],[1,"payment-req-out__header","container-title"],[1,"payment-req-out__header__title"],["data-qa","1657971821931","text","New payment request",3,"date","numberMaxLength","number","dateChanged","numberChanged"],["class","payment-req-out__header__filters",4,"ngIf"],[1,"container-content","inline"],["data-qa","1657969307603",1,"payment-req-out__form"],[1,"form-title"],["data-qa","1657969310659",3,"config","formGroup"],["data-qa","1657969313701",3,"config","formGroup"],["data-qa","1663160820296",3,"config","formGroup"],[1,"payment-req-out__field","checkbox",2,"margin","25px 0"],["data-qa","1663160829276","for","checkbox",1,"checkbox-label"],["data-qa","1657969324813","id","checkbox","type","checkbox",3,"checked","change"],[1,"checkmark"],[1,"checbox-text"],["class","payment-req-out__field inline",4,"ngIf"],[1,"payment-req-out__controls"],["data-qa","1657969332735",3,"text","click"],["data-qa","1657969338028",3,"text","click"],[3,"text","type","close",4,"ngIf"],[1,"payment-req-out__header__filters"],[1,"payment-req-out__field","inline"],[1,"inline-item"],["data-qa","1657969300024",3,"ngModel","defaultValue","inlineMode","items","label","returnValue","title","ngModelChange"],["data-qa","1657969302969",3,"ngModel","defaultValue","inlineMode","items","label","returnValue","title","ngModelChange"],["data-qa","1657969321262",3,"placeholder","title","type","value","change"],[3,"text","type","close"],["data-qa","1657969342773",3,"data","signParams"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"app-path",1),e.\u0275\u0275template(2,N0,33,39,"div",2),e.\u0275\u0275template(3,Vm,1,2,"app-document-info",3),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.result||g.result&&"success"!==g.result.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.showDocumentInfo))},dependencies:[l.\u0275NgNoValidate,l.NgControlStatus,l.NgControlStatusGroup,l.NgModel,l.NgForm,zu.H,Qs.a,dc.w,l.FormGroupDirective,i.O5,ye.r,Ms.a,aa.l,Xt.r,P1.K,yi.X$],styles:['@charset "UTF-8";.payment-req-out__header__title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;font-weight:600;font-family:Source Sans Pro}.payment-req-out__header__title[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{color:#284681;padding-right:5px}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.clickable[_ngcontent-%COMP%]{cursor:pointer;color:#2f54eb;text-decoration:underline}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.clickable[_ngcontent-%COMP%]:last-child   app-datepicker[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{display:block}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.edit[_ngcontent-%COMP%]{width:10%;margin-right:5px}.payment-req-out__header__title[_ngcontent-%COMP%]   .item.edit[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;outline:none;border-bottom:3px solid #2f54eb;background:transparent;border-left:none;border-top:none;border-right:none;color:#2f54eb;font-size:inherit;font-family:Source Sans Pro;font-weight:600}.payment-req-out__header__filters[_ngcontent-%COMP%]{width:40%}.payment-req-out__field[_ngcontent-%COMP%]{width:100%;margin:25px 0}.payment-req-out__field.short[_ngcontent-%COMP%]{width:50%}.payment-req-out__field.inline[_ngcontent-%COMP%]{display:flex;flex-direction:row}.payment-req-out__field.inline[_ngcontent-%COMP%]   .accept-inline-item[_ngcontent-%COMP%]{margin-right:15px;width:100%}.payment-req-out__field.inline[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%], .payment-req-out__field.inline[_ngcontent-%COMP%]   app-select[_ngcontent-%COMP%], .payment-req-out__field.inline[_ngcontent-%COMP%]   .inline-item[_ngcontent-%COMP%]{margin-right:15px;width:50%}.payment-req-out__field.inline[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]:first-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   app-select[_ngcontent-%COMP%]:first-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   .inline-item[_ngcontent-%COMP%]:first-child{width:50%}.payment-req-out__field.inline[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]:last-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   app-select[_ngcontent-%COMP%]:last-child, .payment-req-out__field.inline[_ngcontent-%COMP%]   .inline-item[_ngcontent-%COMP%]:last-child{margin-right:0;width:40%}.payment-req-out__field.inline[_ngcontent-%COMP%]   .transfer-rur__field__button[_ngcontent-%COMP%]{margin-left:auto}.payment-req-out__field.inline[_ngcontent-%COMP%]   .custom-select[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]{margin:0}.payment-req-out__field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]{display:block;position:relative;padding-left:35px;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:Source Sans Pro}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:20px;width:20px;background-color:#fff;border:1px solid #dedede;box-sizing:border-box}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]:hover   input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#ccc}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:#2f54eb}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.payment-req-out__field.checkbox[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{left:5px;top:2px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.payment-req-out__controls[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;margin-bottom:10px;height:60px;margin-top:15px}.payment-req-out__controls[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:15px}.payment-req-out__form[_ngcontent-%COMP%]   .form-title[_ngcontent-%COMP%]{color:#004785;font-weight:600;font-family:Source Sans Pro;font-size:22px;margin:10px 0}  .dynamic-textarea{display:block;position:relative}  .dynamic-textarea.active .dynamic-textarea__placeholder{color:#2f54eb;transition:color .1s ease}  .dynamic-textarea.active textarea{border-color:#2f54eb!important;border:1px solid #dedede;box-shadow:inset 0 0 0 1px #2f54eb!important;transition:border .1s ease,box-shadow .1s ease,transform .2s ease-in-out}  .dynamic-textarea.ng-invalid textarea{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}.document-radio[_ngcontent-%COMP%]{margin-bottom:5px}']})}(0,Wi.gn)([(0,yi.SQ)()],Uh.prototype,"lang",void 0);var j0=t(84005),$m=t(74471),U0=t(9522),Vg=t(78895),r_=t(71702),Vp=t(88044),s_=t(97271),pd=t(66439),Wm=t(54215),V0=t(28746),zl=t(62843),Ec=t(70262),md=t(32076),$0=t(24351),W0=t(64307),c_=t(95404),O1=t(79468),S1=t(31193),T1=t(65909),$g=t(81620),Vh=t(1830);const I1=function(M){return{invalid:M}};function z0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-form-block",10)(1,"app-metib-select",11),e.\u0275\u0275listener("selectionChange",function(V){const yt=e.\u0275\u0275restoreView(o).$implicit,Zt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Zt.onChangeSelect(V,yt))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"app-grey-block",12),e.\u0275\u0275elementEnd()}if(2&M){const o=s.$implicit,g=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("title",o.isRur?"\u041f\u043b\u0430\u0442\u0451\u0436\u043d\u043e\u0435 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u0435":"\u0412\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434"),e.\u0275\u0275advance(1),e.\u0275\u0275property("items",o.payerAccountsList)("selected",o.payerAccount)("ngClass",e.\u0275\u0275pureFunction1(5,I1,!o.payerAccountIsValid)),e.\u0275\u0275advance(1),e.\u0275\u0275property("pieces",g.getGreyBlock(o))}}function w1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-form-block",13)(1,"app-performer-block",14),e.\u0275\u0275listener("formChanged",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onPerformerFormChanged(V))}),e.\u0275\u0275elementEnd()()}2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("returnControls",!0)("isUseFirstPerformer",!0))}function A1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,z0,3,7,"app-form-block",5),e.\u0275\u0275template(2,w1,2,2,"app-form-block",6),e.\u0275\u0275elementStart(3,"div",7)(4,"app-button",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.submit())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-button",9),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.payments),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.isForeignCurrencyExists),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",o.isDisableSubmitButton)}}function Y0(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}function H0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(o.error)}}const zm=["RUR","RUB","810","643"],Wg="document/create/metinv",l_="metinv/curr/transfer";class $p{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo,Uo,bo){this.router=s,this.risdaService=o,this.documentService=g,this.activatedRoute=V,this.risdaMappingService=me,this.productService=yt,this.dynamicFormService=Zt,this.translation=Pn,this.apiService=Fn,this.currencyPipe=Di,this.toast=Ti,this.util=vo,this.vedService=Uo,this.cdr=bo,this.title="Payment",this.loader=!0,this.payments=[],this.isForeignCurrencyExists=!1,this.isDisableSubmitButton=!0,this.pathData=[],this.destroyed$=new co.x,this.accountNumberPipe=new pd.k,this.products=[],this.validationErrors=[],this.currencies=[]}ngOnInit(){const s=this.activatedRoute.snapshot.queryParams;(s.docId?this.getSettingsFromDeal(s):this.getSettingsFromPaymentsList()).pipe((0,V0.x)(()=>{this.loader=!1}),(0,bc.q)(1),(0,zn.R)(this.destroyed$)).subscribe({next:([g,V,me,yt,Zt])=>{this.loader=!1,this.products=V,this.currencies=yt,this.payerAddress=Zt,this.setBankAccountInfo(me),Array.isArray(g)?this.setPaymentsFromPaymentsList(g):(this.pathData=this.getPathData(g?.docType),this.setPayments(g),this.title=this.getTitle(g)),this.isDisableSubmitButton=!this.validatePayments(),this.validationErrors.length&&this.toast.show(this.validationErrors,"error"),this.cdr.detectChanges()},error:g=>{this.showError(g)}})}submit(){this.clearValidationErrors();const s=this.validatePayerAccount(),o=this.validatePayments(),g=!this.isForeignCurrencyExists||this.validatePerformerForm();if(!s||!o||!g)return this.toast.show(this.validationErrors,"error"),void this.scrollToInvalidElement();this.loader=!0,this.sendPayments().pipe((0,zn.R)(this.destroyed$)).subscribe({next:V=>{const me={docIds:V.join(","),crossHref:"risda/documents-list"};this.router.navigate(["/package-sign"],{queryParams:me}).then()},error:V=>{this.loader=!1,this.showError(V),this.cdr.detectChanges()}})}getSettingsFromPaymentsList(){return this.documentService.paymentsList$.pipe((0,Fi.w)(s=>s?.length>0?(0,An.of)(s):(0,zl._)(()=>new Error(this.translation.translate("An error has occurred. Please try again later.")))),(0,Fi.w)(s=>(0,Jo.D)([(0,An.of)(s),this.getProductsByPaymentsList(s),this.productService.getBankAccountByCode(ks.Nd),this.vedService.getSortedByIsoCodeCurrencyCatalog(),this.vedService.getAddressInSwiftFormat()])),(0,Ec.K)(s=>(0,zl._)(()=>s)))}getSettingsFromDeal(s){return this.getDocumentDataFromUrl(s).pipe((0,Fi.w)(o=>(0,Jo.D)([(0,An.of)(o),this.getProducts(o),this.productService.getBankAccountByCode(ks.Nd),this.vedService.getSortedByIsoCodeCurrencyCatalog(),this.vedService.getAddressInSwiftFormat()])))}onChangeSelect(s,o){o.payerAccount=s,o.payerAccountIsValid=!!o.payerAccount}onPerformerFormChanged(s){this.performerBlock=s}getGreyBlock(s){return[{type:"titleWithDesc",data:{title:"Payment date",desc:this.util.formatDateString(s.paymentDate||"")}},{type:"titleWithDesc",data:{title:"Debit amount",desc:`${this.currencyPipe.transform(s.payAmount)} ${s.payCurrency}`}},{type:"titleWithDesc",data:{title:"Corr Account",desc:this.accountNumberPipe.transform(s.corrAccount||"")}},{type:"titleWithDesc",data:{title:"Recipient",desc:s.corrFullName}},{type:"titleWithDesc",data:{title:"Description",desc:s.description}}]}onClose(){const s=this.pathData.length-2;this.router.navigate([this.pathData[s]?.href||""],{queryParams:this.pathData[s]?.params||{}})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}getPathData(s){return"confirm_cash_placement"===s?[{capture:"deposits and nso",href:"/deposits",params:{tab:"depositsConfirm"},bold:!0},{capture:"To pay"}]:[{capture:"Treasury",href:"/treasury/other",bold:!0},{capture:this.risdaService.clientType$.value===c_.J$.bank?"Risda for role bank":"Risda",href:"/risda"},{capture:"To pay"}]}getDocumentDataFromUrl(s){return this.documentService.getDocumentById(s.docModule,s.docType,s.docId).pipe((0,lo.U)(o=>{const g=o?Object.keys(o)[0]:"",V=o&&g?o[g]:null;return V?this.risdaMappingService.mapRisdaDocuments(V):null}))}getProducts(s){if(!s)return(0,An.of)([]);const o=this.getPaymentsFromRisdaDeal(s).filter(V=>!!V).find(V=>V.isRur),g=[this.apiService.post(l_,{})];return o&&g.push(this.apiService.post(Wg,{})),(0,Jo.D)(g).pipe((0,lo.U)(V=>V.map(me=>me.corrAccIdProducts?.accounts||me.debitAccounts).flat()))}getProductsByPaymentsList(s){const o=[];return s.some(g=>g.currCode&&zm.includes(g.currCode))&&o.push(this.apiService.post(Wg,{})),s.some(g=>g.currCode&&!zm.includes(g.currCode))&&o.push(this.apiService.post(l_,{})),0===o.length?(0,An.of)([]):(0,Jo.D)(o).pipe((0,lo.U)(g=>g.map(V=>V.corrAccIdProducts?.accounts||V.debitAccounts).flat()))}setBankAccountInfo(s){if(s){this.bankAccountInfo=s;const o=s.internationalAddress.split(",");this.bankAccountInfo.internationalAddress=s.internationalAddress.substring(0,s.internationalAddress.lastIndexOf(",")).trim(),this.bankAccountInfo.internationalPlace=o[o.length-1]?.trim(),this.bankAccountInfo.internationalShortName=s.internationalShortName.replace(/"/g,""),this.bankAccountInfo.inn=s.inn,this.bankAccountInfo.countryCode=O1.$7}}setPayments(s){s&&(this.payments="confirm_cash_placement"===s.docType?this.getPaymentFromConfirmCashPlacement(s):this.getPaymentsFromRisdaDeal(s).filter(o=>!!o)),this.payments.length?this.isForeignCurrencyExists=this.payments.some(o=>!o.isRur):this.showError(this.translation.translate("An error has occurred. Please try again later."))}getPayerAccounts(s){const o=this.productService.isRurCurrencyCode(s),g=this.products.filter(V=>{const me=[V.currency,V.currencyCode];return o?this.productService.isRurCurrencyCode(V.currency):me.includes(s)});return this.dynamicFormService.generateProductItemsForSelect(g)}getCorrAccountFromBankDetails(s,o){if(!s)return"";const g=/^47408\d{15}/,V=s.find(me=>me.sideALine_1?.startsWith(o));return V?.sideALine_3&&g.test(V.sideALine_3)?V.sideALine_3.substring(0,20):V?.sideALine_2&&g.test(V.sideALine_2)?V.sideALine_2.substring(0,20):""}getDescription(s,o){const g=o?s.contractNumber:this.util.swiftTransliteration(s.contractNumber||"");switch(s.docType){case"pay_initial_margin":case"pay_floating_margin":return o?`\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0414\u043e\u0433\u043e\u0432\u043e\u0440\u0443 \u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0443\u043f\u043b\u0430\u0442\u044b \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0445 \u043c\u0430\u0440\u0436\u0435\u0432\u044b\u0445 \u0441\u0443\u043c\u043c \u2116 ${g} \u043e\u0442 ${s.contractDate}. \u0411\u0435\u0437 \u041d\u0414\u0421`:`Collateral under the Contract on the procedure for payment of floating margin amounts ${g} dated ${s.contractDate}`;case"doc_netting":return o?`\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0437\u0430\u0447\u0435\u0442\u0430 \u043f\u043e \u0441\u0434\u0435\u043b\u043a\u0430\u043c ${s.paymentDate}, \u0413\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u2116 ${g} \u043e\u0442 ${s.contractDate}. \u0411\u0435\u0437 \u041d\u0414\u0421`:`Result of netting under transactions ${s.paymentDate}, General Agreement ${g} dated ${s.contractDate}`;default:return o?`\u041e\u043f\u043b\u0430\u0442\u0430 \u043f\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0434\u0435\u043b\u043a\u0435 \u043e\u0442 ${s.dateDeal}, \u0413\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u2116 ${g} \u043e\u0442 ${s.contractDate}. \u0411\u0435\u0437 \u041d\u0414\u0421`:`Payment under forex transaction dated ${s.dateDeal}, General Agreement ${g} dated ${s.contractDate}`}}sendPayments(){return(0,md.D)(this.payments).pipe((0,$0.b)(s=>{const o=s.isRur?Wg:l_,g={...this.getCommonData(s),...this.getCorrData(s),...this.getSpecificData(s)};return this.apiService.post(o,g)}),(0,lo.U)(s=>s.id),(0,W0.q)())}getCommonData(s){return{accId:s.payerAccount?.value,corrAccNumber:s.corrAccount,description:s.description,docDate:s.paymentDate,corrInn:s.corrInn,parentId:s.parentId}}getCorrData(s){return s.isRur?{corrFullName:this.bankAccountInfo.name,corrBankBik:this.bankAccountInfo.bik}:{corrFullName:this.bankAccountInfo.internationalShortName,corrAddress:(s.payCurrency===ks.OI.CNY?Ko.BM:"")+this.bankAccountInfo.internationalAddress,corrPlace:this.bankAccountInfo.internationalPlace,corrBankBik:this.bankAccountInfo.bik,corrBankSwift:this.bankAccountInfo.swift,corrBankName:this.bankAccountInfo.internationalShortName,corrBankAddress:this.bankAccountInfo.internationalAddress,corrCountryCode:this.bankAccountInfo.countryCode}}getSpecificData(s){return s.isRur?{amount:s.payAmount}:{payAmount:s.payAmount,chargesType:"OUR",chargesAccId:s.payerAccount?.value,employeeFio:this.performerBlock.employee.value,employeePhone:this.performerBlock.phone.value,...this.payerAddress?{address:this.payerAddress}:{}}}setPaymentsFromPaymentsList(s){this.payments=s.map(o=>{const g=this.productService.isRurCurrencyCode(o.currCode);g||(this.isForeignCurrencyExists=!0);const V=this.util.revertFormatDateDMY(new Date(o.docDate),"-"),me=o.currCode?this.getPayerAccounts(o.currCode):[],yt=this.currencies.find(Zt=>Zt.code===o.currCode);return{docType:o.docType,payAmount:o.payAmount,payCurrency:yt?.isoCode,corrAccount:o.corrAccount,corrFullName:g?this.bankAccountInfo.name:this.bankAccountInfo.internationalShortName,description:o.description,payerAccount:1===me.length?me[0]:void 0,payerAccountIsValid:!0,paymentDate:V,docDate:V,payerAccountsList:me,isRur:g}})}getPaymentsFromRisdaDeal(s){const o=this.util.formatDateStringBySeparator(s.paymentDate||"",".");let g;g=s.docType===c_.u6.nettingDocument?s.payList:s.fixAmount?[`${s.fixAmount} ${s.calcCurrency||""}`]:[`${s.sellAmountNumber} ${s.sellCurrency||s.nominalCurrCode||""}`];const V=[];return g&&g.forEach(me=>{const yt=this.risdaMappingService.getParsedPaymentRequisites(me),Zt=yt.currency?this.getPayerAccounts(yt.currency):[],Pn=zm.includes(yt.currency);+yt.amount>0&&V.push({docType:s.docType,parentId:s.docId,payAmount:yt.amount,payCurrency:yt.currency,corrAccount:(s.docType===c_.u6.nettingDocument?this.getCorrAccountFromBankDetails(s.bankDetails,yt.currency):s.corrAccount)?.trim(),corrFullName:Pn?this.bankAccountInfo?.name:this.bankAccountInfo?.internationalShortName,corrInn:this.bankAccountInfo?.inn,dealNumber:s.dealNumber,dealDate:s.dateDeal,paymentDate:this.util.revertFormatDateDMY(o?new Date(o):new Date,"-"),description:this.getDescription(s,Pn),payerAccount:1===Zt.length?Zt[0]:void 0,payerAccountIsValid:!0,payerAccountsList:Zt,isRur:Pn})}),V}getPaymentFromConfirmCashPlacement(s){if(!s)return[];const o=this.productService.isRurCurrencyCode(s.currCode||""),g=s.currCode?this.getPayerAccounts(s.currCode):[],V=this.currencies.find(Pn=>Pn.code===s.currCode),me=o?s.depositNumber:this.util.swiftTransliteration(s.depositNumber||""),yt=this.util.formatDateDMY(new Date(s.depositDate||""),"/"),Zt=this.util.formatDateDMY(new Date(s.docDate||""),"/");return[{docType:s.docType,parentId:s.docId,payAmount:s.amount,payCurrency:V?.isoCode,corrAccount:s.accNumber,corrFullName:o?this.bankAccountInfo.name:this.bankAccountInfo.internationalShortName,dealNumber:s.depositNumber,dealDate:s.depositDate,paymentDate:this.util.revertFormatDateDMY(new Date,"-"),description:`DEPO DEAL N${s.docNumber} DD${Zt} according agreement N${me?.toUpperCase()} DD${yt}`,payerAccount:1===g.length?g[0]:void 0,payerAccountIsValid:!0,payerAccountsList:g,isRur:o}]}clearValidationErrors(){this.toast.closeAllErrorToasts(),this.validationErrors=[]}validatePayerAccount(){let s=!0;return this.payments.forEach(o=>{o.payerAccountIsValid=!!o.payerAccount,o.payerAccountIsValid||(s=!1)}),s||this.validationErrors.push("Choose account"),s}validatePerformerForm(){let s=!0;return this.performerBlock.employee.updateValueAndValidity(),this.performerBlock.phone.updateValueAndValidity(),(this.performerBlock.employee.invalid||this.performerBlock.phone.invalid)&&(this.performerBlock.employee.markAsTouched(),this.performerBlock.phone.markAsTouched(),this.validationErrors.push("Choose performer"),s=!1),s}validatePayments(){const s=[],o={paymentDate:"Payment date",payAmount:"Debit amount",payCurrency:"Currency",corrAccount:"Corr Account",corrFullName:"Recipient",description:"Description"};return this.payments.forEach(g=>{const V=this.translation.translate("Failed to define");Object.keys(o).forEach(me=>{g[me]||s.push(`${V} ${this.translation.translate(o[me])}`)})}),this.validationErrors=[...this.validationErrors,...s],!s.length}scrollToInvalidElement(){const s=document.getElementsByTagName("app-page")?.item(0);setTimeout(()=>{const o=s?.querySelector(".invalid")||s?.querySelector(".ng-invalid .ng-touched");o&&o.scrollIntoView({behavior:"smooth",block:"center"})})}getTitle(s){const o=(s.dealNumber?` \u2116 ${s.dealNumber}`:"")+(s.dealDate?` \u043e\u0442 ${s.dealDate}`:"");switch(s.docType){case"conversion_deal":return`\u041f\u043b\u0430\u0442\u0451\u0436 \u043f\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0434\u0435\u043b\u043a\u0435${o}`;case"staging_exchange_forward":return`\u041f\u043b\u0430\u0442\u0451\u0436 \u043f\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u043e\u0447\u043d\u043e\u043c\u0443 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u043c\u0443 \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0443${o}`;case"settlement_exchange_forward":return`\u041f\u043b\u0430\u0442\u0451\u0436 \u043f\u043e \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u043e\u043c\u0443 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u043c\u0443 \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0443${o}`;case"doc_netting":return`\u041f\u043b\u0430\u0442\u0451\u0436 \u043f\u043e \u043d\u0435\u0442\u0442\u0438\u043d\u0433\u0443${o}`;case"pay_initial_margin":return`\u041f\u043b\u0430\u0442\u0451\u0436 \u043f\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044e \u043e\u0431 \u0443\u043f\u043b\u0430\u0442\u0435 \u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0435\u0432\u043e\u0439 \u0441\u0443\u043c\u043c\u044b${o}`;case"pay_floating_margin":return`\u041f\u043b\u0430\u0442\u0451\u0436 \u043f\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044e \u043e\u0431 \u0443\u043f\u043b\u0430\u0442\u0435 \u041f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u043c\u0430\u0440\u0436\u0435\u0432\u043e\u0439 \u0441\u0443\u043c\u043c\u044b${o}`;case"return_floating_margin":return`\u041f\u043b\u0430\u0442\u0451\u0436 \u043f\u043e \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044e \u043e\u0431 \u0443\u043f\u043b\u0430\u0442\u0435 \u041f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u043c\u0430\u0440\u0436\u0435\u0432\u043e\u0439 \u0441\u0443\u043c\u043c\u044b${o}`;default:return"Payment"}}showError(s){this.error=s.errorText||s.message||s,this.error=gc.t.includes(`${s.status}`)?this.translation.translate("An error has occurred. Please try again later."):this.error.replace("Error: ",""),this.toast.show(this.error,"error")}static#e=this.\u0275fac=function(o){return new(o||$p)(e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(c_.jp),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(S1.U),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(Ba.w),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(gc.s),e.\u0275\u0275directiveInject(Jc.H),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(jr.$),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:$p,selectors:[["app-payments"]],standalone:!0,features:[e.\u0275\u0275StandaloneFeature],decls:6,vars:7,consts:[[3,"pathData"],[3,"withTitle","close"],[3,"title","closeButton","closeEvent"],[4,"ngIf"],["class","error",4,"ngIf"],[3,"title",4,"ngFor","ngForOf"],["title","Authorized Person",4,"ngIf"],[1,"buttons"],["data-qa","1675075988638","text","Send for signature",1,"button",3,"disabled","click"],["data-qa","1675075979537","text","Cancel","type","bordered",1,"button",3,"click"],[3,"title"],["title","Write-off Account",3,"items","selected","ngClass","selectionChange"],[1,"grey-block",3,"pieces"],["title","Authorized Person"],[3,"returnControls","isUseFirstPerformer","formChanged"],[1,"error"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1),e.\u0275\u0275listener("close",function(){return g.onClose()}),e.\u0275\u0275elementStart(2,"app-page-title",2),e.\u0275\u0275listener("closeEvent",function(){return g.onClose()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,A1,6,3,"div",3),e.\u0275\u0275template(4,Y0,1,0,"app-loader",3),e.\u0275\u0275template(5,H0,2,1,"div",4),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("withTitle",!1),e.\u0275\u0275advance(1),e.\u0275\u0275property("title",g.title)("closeButton",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==g.payments?null:g.payments.length)&&!g.loader&&!g.error),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.error))},dependencies:[i.ez,i.mk,i.sg,i.O5,$m.h,Xt.r,U0.b,T1.I,Vg.q,xa.R,j0.n,ys.A,r_.B,ls.I,Al.T,Vp.u,aa.l,s_.F,$g.d,Wm.m,Vh.Q],styles:['@charset "UTF-8";app-metib-select[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{width:100%}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:10px;margin-top:15px;height:60px}.buttons[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-right:15px}.error[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:2em;font-size:1.5em;line-height:1.5em;color:#d9291e}app-metib-select.invalid[_ngcontent-%COMP%]     .dynamic-select__fake{border-color:#d9291e!important;color:#d9291e!important;box-shadow:inset 0 0 0 1px #d9291e}app-metib-select.invalid[_ngcontent-%COMP%]     .dynamic-select__icon{fill:#d9291e!important}app-metib-select.invalid[_ngcontent-%COMP%]     .dynamic-select__title{color:#d9291e!important}'],changeDetection:0})}(0,Wi.gn)([(0,yi.SQ)()],$p.prototype,"lang",void 0);var d_=t(73390),$h=t(42761);const zg=[{title:"Full name of the recipient",formControlName:"fullName",class:"metib-full-width",cols:12},{title:"Birth date",formControlName:"birthDate",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/]}},{title:"Phone number to contact",formControlName:"phoneNumber",class:"metib-full-width",cols:6,mask:{TextMask:["+","7"," ","(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/]}},{title:"Passport series",formControlName:"passportSeries",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/," ",/\d/,/\d/]}},{title:"Passport number",formControlName:"passportNumber",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/]}},{title:"Date of issue of the passport",formControlName:"passportIssuedDate",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,".",/\d/,/\d/,".",/\d/,/\d/,/\d/,/\d/]}},{title:"Division code",formControlName:"passportIssuedCode",class:"metib-full-width",cols:6,mask:{TextMask:[/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/]}},{title:"Issued by",formControlName:"passportIssuedBy",class:"metib-full-width",cols:12}];var u_=t(67209),Yg=t(16304),Wh=t(90782);function Hg(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"mat-grid-tile",27),e.\u0275\u0275element(1,"app-metib-input",28),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit;e.\u0275\u0275property("colspan",o.cols),e.\u0275\u0275advance(1),e.\u0275\u0275classMap(o.class),e.\u0275\u0275property("formControlName",o.formControlName)("mask",o.mask)("title",o.title)}}const Kg=function(M){return{active:M}},Gg=function(M){return{show:M}},G0=function(M){return{error:M}},Q0=function(){return[]},p_="DD.MM.YYYY";class op{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di){this.route=s,this.router=o,this.toast=g,this.translation=V,this.attachmentService=me,this.powerOfAttorneyService=yt,this.modalService=Zt,this.fb=Pn,this.activatedRoute=Fn,this.userDataService=Di,this.unsubscribe$=new co.x,this.isSizeOk=!0,this.currentTotalSize=0,this.editId="",this.isCopy=!1,this.isPowerCreated=!1,this.isErrorRequiredUpload=!1,this.deleteAttachmentsObs=[],this.filesFormControl=new l.FormControl([]),this.fileExtensionsForCurrencyControlDepartmentAccepted=["pdf","jpeg","jpg","png","tif","tiff"],this.tiles=zg,this.minDate=d_.$,this.maxDate=new Date((new Date).getFullYear(),12,31),this.errorDateText="",this.isOpenAccordion=!0,this.numberInput="",this.formEndDate=this.fb.group({endDate:["",[l.Validators.required]]}),this.getConfidantForm()}ngOnInit(){this.setTotalSizeSettings(),this.activatedRoute.queryParams.pipe((0,zn.R)(this.unsubscribe$)).subscribe(s=>{s?.id&&(this.editId=s.id),s?.copy&&(this.isCopy=s?.copy)}),this.powerOfAttorneyService.saveDataForEdit.pipe((0,zn.R)(this.unsubscribe$)).subscribe(s=>{if(!s&&this.editId&&this.router.navigate(["/power-of-attorney"]),s&&this.editId){if(this.dataForEdit=s.find(o=>o.id===this.editId),this.dataForEdit.docExpDate){let o=Ri()(new Date(this.dataForEdit.docExpDate),"DD.MM.YYYY");Ri()(new Date).isAfter(Ri()(new Date(this.dataForEdit.docExpDate),"DD.MM.YYYY").toDate())&&(o=Ri()(new Date,"DD.MM.YYYY")),this.formEndDate.controls.endDate.patchValue(o)}this.confidantForm.controls.fullName.patchValue(this.dataForEdit.confidantFullName),this.confidantForm.controls.phoneNumber.patchValue(this.dataForEdit.confidantPhone),this.confidantForm.controls.birthDate.patchValue(this.dataForEdit.confidantBirth?Ri()(this.dataForEdit.confidantBirth).format("DD.MM.YYYY"):""),this.confidantForm.controls.passportSeries.patchValue(this.dataForEdit.passportSeries),this.confidantForm.controls.passportNumber.patchValue(this.dataForEdit.passportNumber),this.confidantForm.controls.passportIssuedDate.patchValue(this.dataForEdit.passportReleaseDate?Ri()(this.dataForEdit.passportReleaseDate).format("DD.MM.YYYY"):""),this.confidantForm.controls.passportIssuedCode.patchValue(this.dataForEdit.passportDepCode),this.confidantForm.controls.passportIssuedBy.patchValue(this.dataForEdit.passportDepName),this.numberInput=this.dataForEdit.docNumber,this.dataForEdit.attach&&!Array.isArray(this.dataForEdit.attach)?this.setFiles([this.dataForEdit.attach]):this.dataForEdit.attach&&this.dataForEdit.attach.length&&this.setFiles(this.dataForEdit.attach)}})}setTotalSizeSettings(){this.attachmentService.attachmentSetup$.pipe((0,uo.h)(s=>Boolean(s)),(0,zn.R)(this.unsubscribe$)).subscribe(s=>{this.attachmentSetup=s})}onFilesSizeIsLargerThanMax(s){this.toast.show("\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432","error")}checkFileSize(s){this.isErrorRequiredUpload=!1,this.currentTotalSize=s}deleteFile(s){this.isSizeOk=!0,this.deleteAttachmentsObs.push(this.powerOfAttorneyService.deleteFile(this.editId,s).pipe((0,zn.R)(this.unsubscribe$)))}onFilesTypesIsNotValid(s){s.forEach(o=>{this.toast.show(`${this.translation.translate(`\u0424\u0430\u0439\u043b \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0430 -${o}`)}`,"error")})}get files(){return this.filesFormControl.value}setFiles(s){const o=s.map(g=>new _c.h(g));this.filesFormControl.patchValue(o)}getConfidantForm(){const s=Pn=>Ri()(Pn,p_).isValid(),o=Pn=>{if(Pn){const Fn=Ri()(Pn,p_).format("YYYY.MM.DD");return Ri()(Fn).toDate()}},g=l.Validators.compose([Pn=>{!Pn?.value.match(/^(?=.{1,40}$)[\u0430-\u044f\u0451\u0410-\u042f\u0401\s]+(?:[-' \][\u0430-\u044f\u0451\u0410-\u042f\u0401\s]+)*$/)&&Pn?.value?.length&&this.confidantForm.controls.fullName.setValue(Pn.value.slice(0,-1));const Fn=(Pn.value||"").replace(/\s+/g," ").trim().split(" ");return Fn.length>6||Fn.length<2||!Fn[0]||!Fn[1]?[{}]:[]}]),V=l.Validators.compose([Pn=>(Pn.value||"").replace(/\D/g,"").length<11?[{}]:[]]),me=l.Validators.compose([Pn=>(Pn.value||"").replace(" ","").trim().length<4?[{}]:[]]),yt=l.Validators.compose([Pn=>{if(!s(Pn.value))return{invalidDate:!0};const Fn=Ri()().set({hour:0,minute:0,second:0}).subtract(100,"years").toDate(),Di=Ri()().set({hour:0,minute:0,second:1}).subtract(14,"years").toDate(),Ti=o(Pn.value);return Ti<Fn||Ti>Di?{invalidDate:!0}:[]}]);this.confidantForm=new l.UntypedFormGroup({fullName:new l.UntypedFormControl("",[l.Validators.required,g]),phoneNumber:new l.UntypedFormControl("",[l.Validators.required,V]),birthDate:new l.UntypedFormControl("",[l.Validators.required,yt]),passportSeries:new l.UntypedFormControl("",[l.Validators.required,me]),passportNumber:new l.UntypedFormControl("",[l.Validators.required,l.Validators.minLength(6)]),passportIssuedDate:new l.UntypedFormControl(""),passportIssuedCode:new l.UntypedFormControl("",[l.Validators.required,l.Validators.minLength(7)]),passportIssuedBy:new l.UntypedFormControl("",[l.Validators.required,l.Validators.maxLength(255)])});const Zt=l.Validators.compose([Pn=>{if(!s(Pn.value))return{invalidDate:!0};const Fn=o(Pn.value),Di=o(this.confidantForm?.get("birthDate")?.value),Ti=Fn>Ri()().toDate(),vo=Di&&Ri()(Di).add(14,"years").toDate()>Fn;return Ti||vo?{invalidDate:!0}:[]}]);this.confidantForm.controls.passportIssuedDate.setValidators([l.Validators.required,Zt])}get isFormValid(){return this.confidantForm.valid&&this.formEndDate.valid&&this.files.length}getFormData(){const s={...this.confidantForm.value};return s.phoneNumber=s?.phoneNumber?s.phoneNumber.replace(/[\s()-]/g,""):"",s.birthDate=this.dateToISO(s.birthDate),s.passportSeries=s?.passportSeries?s.passportSeries.replace(/\s/g,""):"",s.passportIssuedDate=this.dateToISO(s.passportIssuedDate),s}dateToISO(s){return s?Ri()(s,p_).format("YYYY-MM-DD"):""}handleSubmit(s){if(this.isCopy&&(this.editId=""),this.showValidateFormFields(s))if(s)if(this.confidantForm.get("fullName")?.valid){const o=Object.assign(this.getFormData(),this.formEndDate.getRawValue());this.requestSubmit(this.formatDatForSubmit(o,s),s)}else this.toast.show("Fill FIO","error");else if(this.isFormValid){const o=Object.assign(this.getFormData(),this.formEndDate.getRawValue());this.requestSubmit(this.formatDatForSubmit(o))}}showValidateFormFields(s){let o=!0,g=!1,V=!1,yt=!1;return s?(this.confidantForm.get("fullName")?.hasError("required")&&(g=!0),(!this.formEndDate.get("endDate")?.hasError("required")&&this.formEndDate.get("endDate")?.hasError("invalidDate")||!this.confidantForm.get("birthDate")?.hasError("required")&&this.confidantForm.get("birthDate")?.hasError("invalidDate")||!this.confidantForm.get("passportIssuedDate")?.hasError("required")&&this.confidantForm.get("passportIssuedDate")?.hasError("invalidDate"))&&(V=!0)):(Object.keys(this.confidantForm.controls).forEach(Zt=>{const Pn=this.confidantForm.get(Zt);Pn.hasError("required")?g=!0:!Pn.hasError("required")&&Pn.hasError("invalidDate")&&(V=!0)}),Object.keys(this.formEndDate.controls).forEach(Zt=>{const Pn=this.formEndDate.get(Zt);Pn.hasError("required")?(Pn.setErrors({error:!0}),Pn.markAsTouched(),g=!s):!Pn.hasError("required")&&Pn.hasError("invalidDate")&&(V=!0)}),this.confidantForm.invalid&&(g=!0)),!this.confidantForm.get("passportIssuedBy")?.hasError("required")&&this.confidantForm.get("passportIssuedBy").hasError("maxlength")&&(yt=!0),!this.files.length&&!s&&(g=!0,this.isErrorRequiredUpload=!0),yt&&(this.toast.show("Passport issued by field error","error"),o=!1),g&&!yt&&(this.toast.show(s?"Fill FIO":"Fill all form fields","error"),s?this.confidantForm.get("fullName")?.markAsTouched():this.confidantForm.markAllAsTouched(),o=!1),V&&(this.toast.show("Incorrect date","error"),o=!1),this.isErrorRequiredUpload&&!s&&(this.toast.show("Fill upload","error"),o=!1),o}formatDatForSubmit(s,o){let g=this.files;return g.length&&(g=g.filter(V=>V?.id).map(V=>V.id)),{confidantFullName:s.fullName,confidantPhone:s.phoneNumber,confidantBirth:s.birthDate,passportSeries:s.passportSeries,passportNumber:s.passportNumber,passportReleaseDate:s.passportIssuedDate,passportDepCode:s.passportIssuedCode,passportDepName:s.passportIssuedBy,docExpDate:s.endDate,docNumber:this.numberInput,draft:o||!1,id:this.editId?this.editId:"",attachIds:this.isCopy?g:null}}requestSubmit(s,o){for(const g in s)""===s[g]&&(s[g]=null);this.powerOfAttorneyService.sendRequestPowerOfAttorney(s).pipe((0,zn.R)(this.unsubscribe$)).subscribe({next:g=>{this.isPowerCreated=!0,this.editId=g.id,this.deleteAttachmentsObs.length&&(0,Jo.D)(this.deleteAttachmentsObs).subscribe(),this.files.length?(0,Jo.D)(this.userDataService.postAttachment(g.id,this.files)).pipe((0,zn.R)(this.unsubscribe$)).subscribe(V=>{V.find(me=>me.errorText)?V.forEach(me=>{me.errorText&&this.toast.show(me.errorText,"error")}):this.resultCreateDocument(g.id,o)}):this.resultCreateDocument(g.id,o)},error:g=>{this.toast.show(g.errorText?g.errorText:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438","error")}})}resultCreateDocument(s,o){o?(this.toast.show("Success create draft power of attorney","success"),this.router.navigate(["power-of-attorney"])):this.optionsModalSign(s)}optionsModalSign(s){this.modalService.open($h.h,{header:"Document sign",styleMode:"forSign",overflow:"initial",size:"medium-sign",returnToOnClose:"power-of-attorney",inputs:{isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,printDocs:[],documents:[{docId:this.editId?this.editId:s,docType:"power_of_attorney",docModule:ei.nW}],done:o=>{o.length&&this.toast.show(o,"success"),this.closeEdit()}}})}closeEdit(){this.router.navigate(["/power-of-attorney"])}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(o){return new(o||op)(e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(Ur.L),e.\u0275\u0275directiveInject(u_.j),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(l.FormBuilder),e.\u0275\u0275directiveInject(bi.gz),e.\u0275\u0275directiveInject(Da.M))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:op,selectors:[["app-power-of-attorney-edit"]],decls:40,vars:35,consts:[[1,"wrapper-power-of-attorney"],[1,"title-page-power-of-attorney"],[1,"wrapper-power-of-attorney-edit"],[1,"title-row-attorney"],[1,"wrapper-title-attorney"],[1,"title-attorney"],["type","text","placeholder","\u0411/\u041d",1,"input-number",3,"ngModel","ngModelChange"],[1,"close",3,"click"],[1,"wrapper-form-width"],[1,"description-form-attorney"],[1,"accordion-attorney"],[1,"row-accordion"],[1,"wrapper-title-accordion",3,"click"],[1,"text-row-title-accordion"],[1,"icon-arrow-accordion",3,"ngClass"],[1,"content-accordion",3,"ngClass"],[1,"title-form-attorney"],[1,"wrapper-passport",3,"formGroup"],["cols","12","gutterSize","20px","rowHeight","57px"],[3,"colspan",4,"ngFor","ngForOf"],[1,"wrapper-period",3,"formGroup"],[1,"flex-field"],["formControlName","endDate",1,"form-datepicker","mr0",3,"ngClass","title","hideTitle","autosize","minDate","placeholder","startView","filter","readOnly"],[1,"wrapper-input-files"],[3,"formControl","maxAmountFilesSizeByte","maxFileSizeByte","mimeTypesLabel","mimeTypes","fileFormats","mailDesign","isErrorRequired","filesIsLargerThenMaximum","filesIsNotValidMimeType","fileSizeIsOk","removeAttachment"],[1,"wrapper-flex-btns"],[3,"text","type","clicked"],[3,"colspan"],["appearance","dcb",1,"dcb",3,"formControlName","mask","title"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275text(2,"\u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),e.\u0275\u0275text(7," \u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u2116 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"input",6),e.\u0275\u0275listener("ngModelChange",function(me){return g.numberInput=me}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"mat-icon",7),e.\u0275\u0275listener("click",function(){return g.closeEdit()}),e.\u0275\u0275text(10,"close"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",8)(12,"div",9),e.\u0275\u0275text(13," \u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430 \u043a\u043e \u0432\u0441\u0435\u043c \u0441\u0447\u0435\u0442\u0430\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0432 \u041f\u0410\u041e \u0410\u041a\u0411 \xab\u041c\u0435\u0442\u0430\u043b\u043b\u0438\u043d\u0432\u0435\u0441\u0442\u0431\u0430\u043d\u043a\xbb "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",10)(15,"div",11)(16,"div",12),e.\u0275\u0275listener("click",function(){return g.isOpenAccordion=!g.isOpenAccordion}),e.\u0275\u0275elementStart(17,"div",13),e.\u0275\u0275text(18," \u041f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u044f \u043f\u043e \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"mat-icon",14),e.\u0275\u0275text(20,"keyboard_arrow_down"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"div",15),e.\u0275\u0275text(22," \u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432 \u0411\u0430\u043d\u043a\u0435 \u0432\u044b\u043f\u0438\u0441\u043a\u0438 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a \u043d\u0438\u043c, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439/\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438, \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f/\u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b \u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439, \u043a\u0440\u0435\u0434\u0438\u0442\u043d\u044b\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b, \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u043b\u043e\u0433\u0430 \u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432\u0435\u043a\u0441\u0435\u043b\u0435\u0439, \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u0432\u0435\u043a\u0441\u0435\u043b\u0435\u0439 \u0432 \u0437\u0430\u043b\u043e\u0433, \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b \u0437\u0430\u043b\u043e\u0433\u0430 (\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432\u0435\u043a\u0441\u0435\u043b\u0435\u0439), \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b \u043f\u043e\u0440\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u044b \u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0435\u0441\u044f \u043a \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0411\u0430\u043d\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u0432 \u043a\u0430\u0441\u0441\u0443 \u0431\u0430\u043d\u043a\u0430 \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043d\u0430 \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0435 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0422\u0430\u0440\u0438\u0444\u043d\u044b\u043c \u043f\u043b\u0430\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0442\u0430\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438). "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(23,"div",16),e.\u0275\u0275text(24," \u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"form",17)(26,"mat-grid-list",18),e.\u0275\u0275template(27,Hg,2,6,"mat-grid-tile",19),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(28,"form",20)(29,"div",21),e.\u0275\u0275element(30,"app-metib-datepicker",22),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(31,"div",16),e.\u0275\u0275text(32," \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439 \u043b\u0438\u0447\u043d\u043e\u0441\u0442\u044c "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"div",9),e.\u0275\u0275text(34," \u0414\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u0438\u043b\u043e\u0436\u0438\u0442\u0435 \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442 \u043f\u0430\u0441\u043f\u043e\u0440\u0442\u0430 \u0420\u0424 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u0444\u043e\u0442\u043e \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u043b\u0438\u0446\u0430 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"div",23)(36,"app-input-files",24),e.\u0275\u0275listener("filesIsLargerThenMaximum",function(me){return g.onFilesSizeIsLargerThanMax(me)})("filesIsNotValidMimeType",function(me){return g.onFilesTypesIsNotValid(me)})("fileSizeIsOk",function(me){return g.checkFileSize(me)})("removeAttachment",function(me){return g.deleteFile(me)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(37,"div",25)(38,"app-button",26),e.\u0275\u0275listener("clicked",function(){return g.handleSubmit(!1)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(39,"app-button",26),e.\u0275\u0275listener("clicked",function(){return g.handleSubmit(!0)}),e.\u0275\u0275elementEnd()()()()),2&o&&(e.\u0275\u0275advance(8),e.\u0275\u0275property("ngModel",g.numberInput),e.\u0275\u0275attribute("maxlength",10),e.\u0275\u0275advance(11),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(28,Kg,g.isOpenAccordion)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(30,Gg,g.isOpenAccordion)),e.\u0275\u0275advance(4),e.\u0275\u0275property("formGroup",g.confidantForm),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",g.tiles),e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",g.formEndDate),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(32,G0,g.formEndDate.get("endDate").touched&&g.formEndDate.get("endDate").invalid))("title","\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0434\u043e")("hideTitle",!0)("autosize",!0)("minDate",g.minDate)("placeholder","\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0434\u043e")("startView","month")("filter","future")("readOnly",!0),e.\u0275\u0275advance(6),e.\u0275\u0275property("formControl",g.filesFormControl)("maxAmountFilesSizeByte",null==g.attachmentSetup?null:g.attachmentSetup.totalFileMaxSize)("maxFileSizeByte",null==g.attachmentSetup?null:g.attachmentSetup.totalFileMaxSize)("mimeTypesLabel","")("mimeTypes",e.\u0275\u0275pureFunction0(34,Q0))("fileFormats",g.fileExtensionsForCurrencyControlDepartmentAccepted)("mailDesign",!0)("isErrorRequired",g.isErrorRequiredUpload),e.\u0275\u0275advance(2),e.\u0275\u0275property("text","\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c")("type","dark-blue-medium"),e.\u0275\u0275advance(1),e.\u0275\u0275property("text","\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a")("type","medium-for-sign-white"))},dependencies:[Ql.A,Yg.w,fe.s,i.mk,i.sg,l.\u0275NgNoValidate,l.DefaultValueAccessor,l.NgControlStatus,l.NgControlStatusGroup,l.MaxLengthValidator,l.FormControlDirective,l.FormGroupDirective,l.FormControlName,l.NgModel,Xt.r,m.Hw,Wh.Il,Wh.DX],styles:['@charset "UTF-8";.wrapper-power-of-attorney[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal}.wrapper-power-of-attorney[_ngcontent-%COMP%]   .title-page-power-of-attorney[_ngcontent-%COMP%]{margin-top:12px;font-weight:700;font-size:24px;line-height:33px;color:#444;margin-bottom:24px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-family:Open Sans;background:#fff;padding:32px;border-radius:2px;box-shadow:#0807080d 0 4px 15px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .wrapper-form-width[_ngcontent-%COMP%]{width:100%;max-width:660px;display:flex;flex-direction:column}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .wrapper-passport[_ngcontent-%COMP%]{margin-bottom:10px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .wrapper-input-files[_ngcontent-%COMP%]{margin-bottom:30px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-row-attorney[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid #DEDEDE;padding-bottom:32px;margin-bottom:32px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-row-attorney[_ngcontent-%COMP%]   .wrapper-title-attorney[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-row-attorney[_ngcontent-%COMP%]   .wrapper-title-attorney[_ngcontent-%COMP%]   .title-attorney[_ngcontent-%COMP%]{font-size:24px;font-weight:700;line-height:32px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-row-attorney[_ngcontent-%COMP%]   .wrapper-title-attorney[_ngcontent-%COMP%]   .input-number[_ngcontent-%COMP%]{margin-left:8px;text-decoration:underline;font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:700;font-size:24px;width:max-content;border:none;background:none;outline:none;height:23px;padding:0;text-align:left;color:#7180b9}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-row-attorney[_ngcontent-%COMP%]   .wrapper-title-attorney[_ngcontent-%COMP%]   .input-number[_ngcontent-%COMP%]::placeholder{color:#7180b9}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-row-attorney[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{cursor:pointer;color:#88909b;font-size:26px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .description-form-attorney[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:22px;margin-bottom:20px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-form-attorney[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:24px;margin-bottom:12px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .title-form-attorney.mb0[_ngcontent-%COMP%]{margin-bottom:0}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:40px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]   .row-accordion[_ngcontent-%COMP%]{display:flex;flex-direction:column}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]   .row-accordion[_ngcontent-%COMP%]   .wrapper-title-accordion[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]   .row-accordion[_ngcontent-%COMP%]   .text-row-title-accordion[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:24px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]   .row-accordion[_ngcontent-%COMP%]   .icon-arrow-accordion[_ngcontent-%COMP%]{color:#88909b;font-size:24px}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]   .row-accordion[_ngcontent-%COMP%]   .icon-arrow-accordion.active[_ngcontent-%COMP%]{transform:rotate(180deg)}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]   .row-accordion[_ngcontent-%COMP%]   .content-accordion[_ngcontent-%COMP%]{margin-top:12px;font-size:14px;font-weight:400;line-height:19px;padding:12px;background:#F1F2F2;border-radius:4px;border:1px solid #DEDEDE;display:none}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .accordion-attorney[_ngcontent-%COMP%]   .row-accordion[_ngcontent-%COMP%]   .content-accordion.show[_ngcontent-%COMP%]{display:block}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .form-wrapper-confidant[_ngcontent-%COMP%]{display:flex;flex-direction:column}.wrapper-power-of-attorney-edit[_ngcontent-%COMP%]   .form-wrapper-confidant[_ngcontent-%COMP%]   .wrapper-row[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-period[_ngcontent-%COMP%]{display:flex;margin-bottom:48px}.flex-field[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}.wrapper-flex-btns[_ngcontent-%COMP%]{display:flex}.wrapper-flex-btns[_ngcontent-%COMP%]   app-button[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%]     app-metib-input{margin:0!important}[_nghost-%COMP%]     .dynamic-input__input.ng-touched.ng-dirty:not(:focus){border-bottom:1px solid #88909b!important}[_nghost-%COMP%]     .dynamic-input__input.ng-pristine.ng-untouched.ng-valid:not(:focus){border-bottom:1px solid #88909b!important}[_nghost-%COMP%]     .dynamic-input__input.ng-pristine.ng-touched.ng-valid:not(:focus){border-bottom:1px solid #88909b!important}[_nghost-%COMP%]     .dynamic-input__input{box-shadow:none;border-bottom:1px solid #2f54eb!important}[_nghost-%COMP%]     app-metib-datepicker.ng-touched.ng-invalid .mat-datepicker-input::-webkit-input-placeholder{color:#e23428!important}[_nghost-%COMP%]     app-metib-datepicker.ng-touched.ng-invalid .mat-datepicker-input::-moz-placeholder{color:#e23428!important}[_nghost-%COMP%]     app-metib-datepicker.ng-touched.ng-invalid .mat-datepicker-input:-moz-placeholder{color:#e23428!important}[_nghost-%COMP%]     app-metib-datepicker.ng-touched.ng-invalid .mat-datepicker-input:-ms-input-placeholder{color:#e23428!important}[_nghost-%COMP%]     .mat-form-field-underline:before{height:1px!important}']})}(0,Wi.gn)([(0,yi.SQ)()],op.prototype,"lang",void 0);const Qg={size:20,number:0,total:0},X0=[10,20,100];function Z0(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}const J0=function(M){return{"extra-margin":M}};class ap{constructor(s,o,g,V,me){this.powerOfAttorneyService=s,this.router=o,this.modalService=g,this.toast=V,this.datePipe=me,this.pathData=[{capture:"Power of attorney",bold:!0}],this.currentPage=Qg,this.sizeList=X0,this._powerOfAttorneyList=new Nc.X(null),this.powerOfAttorneyList$=this._powerOfAttorneyList.asObservable(),this.isPowerOfAttorneyListLoading$=this.powerOfAttorneyService.isLoading$,this.powerOfAttorneyList=[],this.isLoading=!1,this.destroyed$=new co.x,this.unsubscribe$=new co.x}ngOnInit(){this.initPowerOfAttorneyList()}initPowerOfAttorneyList(){this.powerOfAttorneyService.powerOfAttorneyList$.pipe((0,zn.R)(this.destroyed$),(0,uo.h)(s=>null!==s)).subscribe(s=>{this.powerOfAttorneyList=s?.documents,this.currentPage=s?.page,this.currentPage||(this.currentPage=Qg,this.getPowerOfAttorneyList(this.currentPage))}),this.getPowerOfAttorneyList(this.currentPage)}getPowerOfAttorneyList(s){this.router.navigate(["/power-of-attorney"],{queryParams:{page:s?.number?+s.number+1:1,size:s?.size?s.size:10}}),this.powerOfAttorneyService.loadPowerOfAttorneyList(s)}createClicked(){this.router.navigate(["/power-of-attorney/edit"])}onActionDone(s){("delete"===s||"delete_sign"===s)&&this.getPowerOfAttorneyList(this.currentPage),"edit"===s&&this.powerOfAttorneyService.setDataElem(this.powerOfAttorneyList),"sign"===s&&this.powerOfAttorneyService.saveDataForSign.pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{this.modalSignPowerOFAttorney(o)}),"createCopy"===s&&this.powerOfAttorneyService.setDataElem(this.powerOfAttorneyList),"sign_revoke_document"===s&&this.powerOfAttorneyService.saveDataForSign.pipe((0,Fi.w)(o=>(this.dataRevoke=o,this.powerOfAttorneyService.sendRequestRevokePowerOfAttorney({confidantFullName:o.confidantFullName,docExpDate:o.docExpDate,docDate:o.docDate,orgInn:o.orgInn,orgName:o.orgName,powerDocId:o.id,docNumber:o.docNumber}))),(0,zn.R)(this.destroyed$)).subscribe(o=>{o&&this.modalSignPowerOFAttorney(this.dataRevoke,o)})}modalSignPowerOFAttorney(s,o){this.modalService.open($h.h,{header:o?"Document recall":"Document sign",overflow:"initial",size:"medium-sign",styleMode:"forSign",inputs:{documents:[{docId:o?o?.id:s.id,docType:o?"power_of_attorney_revoke":"power_of_attorney",docModule:ei.nW}],isNavigationAfterDone:!1,isModalDesign:!0,isNewDesign:!0,action:o?"power_of_attorney_revoke":"power_of_attorney",descriptionHeader:"\u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0442 "+this.datePipe.transform(s.docDate,"dd.MM.YYYY")+", "+s.confidantFullName,done:g=>{this.toast.show(g,"success"),this.getPowerOfAttorneyList(this.currentPage),this.modalService.close()}}})}onActionData(s){this.powerOfAttorneyService.setRevokeDocument(s)}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(o){return new(o||ap)(e.\u0275\u0275directiveInject(u_.j),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(i.uU))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:ap,selectors:[["app-power-of-attorney"]],decls:16,vars:23,consts:[[3,"pathData"],[1,"power-of-attorney",3,"withCloseButton","withTitle","loading"],[1,"tabs-container"],["type","small header",1,"header-button",3,"text","clicked"],[1,"power-of-attorney-info"],[1,"power-of-attorney-info-wrapper"],["fontSet","material-icons-outlined",1,"power-of-attorney-info__icon"],[1,"power-of-attorney-info__text"],[1,"document-list"],[1,"power-of-attorney-list",3,"documentList","currentPage","sizeList","isLoading","noDocumentsTitle","ngClass","changePaginationEmit","actionDone","returnData"],[4,"ngIf"]],template:function(o,g){1&o&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1)(2,"div",2)(3,"app-button",3),e.\u0275\u0275listener("clicked",function(){return g.createClicked()}),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",4)(6,"div",5)(7,"mat-icon",6),e.\u0275\u0275text(8,"info"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",7),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(12,"div",8)(13,"app-alt-document-list",9),e.\u0275\u0275listener("changePaginationEmit",function(me){return g.getPowerOfAttorneyList(me)})("actionDone",function(me){return g.onActionDone(me)})("returnData",function(me){return g.onActionData(me)}),e.\u0275\u0275pipe(14,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(15,Z0,1,0,"app-loader",10),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("withCloseButton",!1)("withTitle",!1)("loading",!1),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind2(4,13,"Add new power of attorney",g.lang)),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(11,16,"Power ot attorney description",g.lang)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("documentList",g.powerOfAttorneyList)("currentPage",g.currentPage)("sizeList",g.sizeList)("isLoading",e.\u0275\u0275pipeBind1(14,19,g.isPowerOfAttorneyListLoading$))("noDocumentsTitle","Empty power of attorney")("ngClass",e.\u0275\u0275pureFunction1(21,J0,null==g.powerOfAttorneyList?null:g.powerOfAttorneyList.length)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isLoading))},dependencies:[xa.R,Id.c,i.mk,i.O5,aa.l,ls.I,Xt.r,m.Hw,yi.X$,i.Ov],styles:['@charset "UTF-8";.wrapper-references[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal}.wrapper-references[_ngcontent-%COMP%]   .title-page-reference[_ngcontent-%COMP%]{margin-top:12px;font-weight:700;font-size:24px;line-height:33px;color:#444}.wrapper-references[_ngcontent-%COMP%]   .description-page-reference[_ngcontent-%COMP%]{margin-top:12px;font-weight:400;font-size:16px;line-height:22px;color:#88909b}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-wrap:wrap;row-gap:20px;column-gap:18px}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]{width:calc(33% - 10px);cursor:pointer;display:flex;align-items:center;padding:20px;background:#ffffff;box-shadow:0 4px 15px #0807080d;border-radius:8px}@media (max-width: 1077px){.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]{width:calc(50% - 10px)}}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]   .text-reference[_ngcontent-%COMP%]{width:100%;margin-left:12px;font-weight:600;font-size:14px;line-height:19px;color:#080708}.wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]:hover   .text-reference[_ngcontent-%COMP%], .wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]:hover   .icon-reference[_ngcontent-%COMP%], .wrapper-references[_ngcontent-%COMP%]   .list-type-references[_ngcontent-%COMP%]   .item-reference[_ngcontent-%COMP%]:hover   .arrow-reference[_ngcontent-%COMP%]{color:#2f54eb}.wrapper-references[_ngcontent-%COMP%]   .foot-list-references[_ngcontent-%COMP%]{display:flex;align-items:center}.wrapper-references[_ngcontent-%COMP%]   .foot-list-references[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{width:89%;height:1px;background:#dedede;margin-right:12px}.wrapper-references[_ngcontent-%COMP%]   .foot-list-references[_ngcontent-%COMP%]   .btn-show-more[_ngcontent-%COMP%]{border:1px solid #2f54eb;border-radius:4px;align-items:center;padding:8px 12px;font-weight:600;font-size:14px;line-height:19px;text-align:center;color:#2f54eb;cursor:pointer}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:46px}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .title-history-references[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:27px;color:#444}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .title-history-references.refresh[_ngcontent-%COMP%]{cursor:pointer;margin-left:24px;font-weight:600;font-size:14px;line-height:19px;color:#88909b;padding:8px 12px;border:1px solid #88909b;border-radius:4px}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .title-history-references.refresh[_ngcontent-%COMP%]:hover{color:#444;border-color:#444}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .title-history-references.disabled[_ngcontent-%COMP%]{opacity:.5}.wrapper-references[_ngcontent-%COMP%]   .title-history-references-wrapper[_ngcontent-%COMP%]   .refresh-history[_ngcontent-%COMP%]{font-weight:600;font-size:14px;line-height:19px;color:#88909b}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:19px;background:#fff;padding:23px 32px 48px}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .empty-state-history-references[_ngcontent-%COMP%]{margin-top:124px;margin-bottom:80px;width:100%;font-weight:400;font-size:16px;line-height:22px;text-align:center;color:#88909b}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]{margin-top:33px;display:flex;flex-direction:column}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   app-references-item[_ngcontent-%COMP%]{background:#fff;border-bottom:1px solid #dedede}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   app-references-item[_ngcontent-%COMP%]:first-of-type{border-top:1px solid #dedede}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   app-references-item[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   .references-show-more-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border-radius:0 0 4px 4px;padding:20px}.wrapper-references[_ngcontent-%COMP%]   .history-references[_ngcontent-%COMP%]   .list-history[_ngcontent-%COMP%]   .references-show-more-wrapper[_ngcontent-%COMP%]   .references-show-more[_ngcontent-%COMP%]{padding:14px 25px;background:#f1f2f2;text-align:center;color:#88909b;cursor:pointer;font-size:16px;width:100%}.icon-reference[_ngcontent-%COMP%]{width:34px;height:34px;color:#88909b}.arrow-reference[_ngcontent-%COMP%]{color:transparent;font-size:16px;height:unset}.references-info[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:24px;border-radius:4px;background:#f1f2f2}.references-info-wrapper[_ngcontent-%COMP%]{padding:16px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;color:#444;display:flex;align-items:center;column-gap:10px}.references-info__text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.references-info__text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#2f54eb}.references-info__icon[_ngcontent-%COMP%]{display:block;color:#70b6f6;width:18px;height:17px;font-size:18px}.power-of-attorney[_ngcontent-%COMP%]{border-radius:2px;box-shadow:#0807080d 0 4px 15px}.power-of-attorney[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-direction:row-reverse;align-items:center;border-bottom:1px solid #dedede;padding-bottom:24px;padding-top:24px}.power-of-attorney[_ngcontent-%COMP%]   .tabs-container.extra-margin[_ngcontent-%COMP%]{margin-bottom:24px}.power-of-attorney[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]   .header-button[_ngcontent-%COMP%]{font-size:14px;font-weight:600;height:47px}.power-of-attorney-info[_ngcontent-%COMP%]{margin-top:32px;border-radius:4px;background:#f1f2f2}.power-of-attorney-info-wrapper[_ngcontent-%COMP%]{padding:16px;font-family:Open Sans,Source Sans Pro,sans-serif;font-size:14px;color:#444;display:flex;align-items:center;column-gap:10px}.power-of-attorney-info__text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.power-of-attorney-info__text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#2f54eb}.power-of-attorney-info__icon[_ngcontent-%COMP%]{display:block;color:#70b6f6;width:18px;min-width:18px;height:17px;font-size:18px}.power-of-attorney[_ngcontent-%COMP%]   .document-list[_ngcontent-%COMP%]{position:relative}.power-of-attorney[_ngcontent-%COMP%]   .document-list[_ngcontent-%COMP%]   .power-of-attorney-list[_ngcontent-%COMP%]{display:block}.power-of-attorney[_ngcontent-%COMP%]   .document-list[_ngcontent-%COMP%]   .power-of-attorney-list.extra-margin[_ngcontent-%COMP%]{margin-top:32px}app-path[_ngcontent-%COMP%]{display:block;margin-bottom:24px}']})}(0,Wi.gn)([(0,yi.SQ)()],ap.prototype,"lang",void 0);let Xg=(()=>{class M{constructor(o,g,V,me,yt){this.userDataService=o,this.activatedRoute=g,this.datePipe=V,this.configUtilService=me,this.productsService=yt,this.documentFileInfo$=new Nc.X(null),this.routeSub=this.activatedRoute.queryParams.subscribe(Zt=>{this.params=Zt,this.getDocumentInfoData()})}getDocumentInfoData(){let o;this.productsSub=this.productsService.productsFromServer$.subscribe(g=>{g&&(this.chosenAccount=g.accounts.find(V=>V.id===this.params.accountId),this.userDataService.cardFileInfo$.value?(o=this.parseCardFileInfo(this.userDataService.cardFileInfo$.value),this.documentFileInfo$.next(o)):this.userDataService.getCardFileData(this.params.accountId).subscribe(V=>{this.saveCardFileInfo(V),o=this.parseCardFileInfo(V),this.documentFileInfo$.next(o)}))})}parseCardFileInfo(o){const g=o.cardIndexDocument.find(V=>V.id===this.params.id);return{accountId:this.params.accountId,docNumber:g.docNumber,docDate:this.datePipe.transform(g.docDate,"dd.MM.yyyy"),amount:g.amount,accountName:this.chosenAccount.alias?this.chosenAccount.alias:this.chosenAccount.info,accountNum:this.chosenAccount.number,currency:this.chosenAccount.currency,path:[{capture:"Finance",href:"/desktop",bold:!0},{capture:"Account",href:`/product/${this.params.accountId}`,params:{tab:"cardfile"}},{capture:"Document on card file",href:""}],cross:{href:`/product/${this.params.accountId}`,params:{tab:"cardfile"}},buttons:[{type:"print",color:"primary",data:{url:`print/pdf?doc_ids=${this.params.id}`}}],...(0,Cd.c)(g)}}saveCardFileInfo(o){o.cardIndexDocument=this.configUtilService.getArray(o.cardIndexDocument),o.currency=this.chosenAccount.currency,this.userDataService.cardFileInfo$.next(o)}ngOnDestroy(){this.routeSub&&this.routeSub.unsubscribe(),this.productsSub&&this.productsSub.unsubscribe()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(Da.M),e.\u0275\u0275inject(bi.gz),e.\u0275\u0275inject(i.uU),e.\u0275\u0275inject(Ko.Pj),e.\u0275\u0275inject(ks.su))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();function q0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275element(1,"app-path",6),e.\u0275\u0275elementEnd()),2&M){const o=s.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("pathData",o.path)}}function ev(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"app-document-info",7),e.\u0275\u0275elementEnd()),2&M){const o=s.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("data",o)}}function tv(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}class Ym{constructor(s){this.paymentInfoService=s,this.documentInfoData$=this.paymentInfoService.documentFileInfo$}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||Ym)(e.\u0275\u0275directiveInject(Xg))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Ym,selectors:[["app-payment-info"]],features:[e.\u0275\u0275ProvidersFeature([Xg,i.uU])],decls:8,vars:7,consts:[["data-qa","1657875174944",1,"payment-info-wrap"],[1,"payment"],["class","payment__path",4,"ngIf"],[4,"ngIf","ngIfElse"],["loader",""],[1,"payment__path"],["data-qa","1657875178577",3,"pathData"],["data-qa","1657875183956",3,"data"]],template:function(o,g){if(1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,q0,2,1,"div",2),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275template(4,ev,2,1,"div",3),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275template(6,tv,1,0,"ng-template",null,4,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()),2&o){const V=e.\u0275\u0275reference(7);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,3,g.documentInfoData$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(5,5,g.documentInfoData$))("ngIfElse",V)}},dependencies:[xa.R,i.O5,Ms.a,aa.l,i.Ov]})}(0,Wi.gn)([(0,yi.SQ)()],Ym.prototype,"lang",void 0);var Zg=t(30334),m_=t(92054),ca=t(80534),zh=t(68753);let Qi=(()=>{class M{constructor(o,g){this.authService=o,this.configUtilService=g}canActivate(o,g){const V=()=>!g.url.includes("/ved")||!!this.configUtilService.adminConfig.data.ved;return-1!==g.url.indexOf("/qr-payment")&&(this.authService.redirectUrl=g.url),this.authService.isLoggedIn$.value&&!o.data.needToUpdatePing?V():this.authService.checkLogin().pipe((0,lo.U)(me=>200===me&&V()))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(zh.e),e.\u0275\u0275inject(Ko.Pj))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();var rp=t(9959),zd=t(36544),Jg=t(34385),qg=t(99045),e0=t(43270),h_=t(23785),Du=t(90042);let Yl=(()=>{class M{constructor(o,g){this.appConfig=o,this.router=g}static checkConditions(o,g){return o&&o.some(V=>{switch(V){case Du.Yc:return Du.iY.isUnifiedTariffBook(g.currentTariff);case Dc.wL:return qg.c.isSomeAccountTypeAvailableForCreation(g.ulSettings);case h_.uN:return e0._.isDocPlatporBpAvailableForCreation(g.ulSettings);case qs.X_:return Jg.c.isTransferRestsAvailableForCreation(g.ulSettings);default:return!1}})}canActivate(o,g){return this.appConfig.settings$.pipe((0,jm.n)(V=>!V.isLoaded),(0,lo.U)(V=>{let me=!1;return o.data.roles.forEach(yt=>me=V.roles.has(yt)),(!me||o.data.checkRoleWithCondition)&&(me=M.checkConditions(o.data.conditions,V)),me||this.router.navigate(["/"]),me}))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(as._),e.\u0275\u0275inject(bi.F0))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();var t0=t(94813);let f_=(()=>{class M{constructor(o,g){this.appConfig=o,this.router=g}canActivate(o,g){return this.appConfig.settings$.pipe((0,t0.j)("currentTariff"),(0,uo.h)(V=>!!V),(0,lo.U)(V=>V.forCash??!1),(0,Ji.b)(V=>{V||this.router.navigate(["../"])}))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(as._),e.\u0275\u0275inject(bi.F0))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();var Wp=t(25095);let n0=(()=>{class M{constructor(){this.showTariffPage$=new Nc.X("tariff-details")}getTariffTab(){return this.showTariffPage$}setTariffTab(o){this.showTariffPage$.next(o)}static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();var Pu=t(98202),zp=t(98900);let k1=(()=>{class M{constructor(){}ngOnInit(){}get applyStyles(){return{width:(this.value<=this.maxValue?Math.floor(this.value/this.maxValue*100):100)+"%","background-image":this.color}}static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-metib-progress-bar"]],inputs:{value:"value",maxValue:"maxValue",color:"color"},decls:2,vars:1,consts:[[1,"metib-progress-bar__background"],[1,"metib-progress-bar__filler",3,"ngStyle"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"div",1),e.\u0275\u0275elementEnd()),2&g&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",V.applyStyles))},dependencies:[i.PC],styles:['@charset "UTF-8";.metib-progress-bar__background[_ngcontent-%COMP%]{width:100%;height:4px;border-radius:4px;background-color:#c4c4c4;overflow-x:hidden}.metib-progress-bar__filler[_ngcontent-%COMP%]{height:4px;border-radius:4px}']})}return M})();var o0=t(34891);function L1(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"p",10),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngStyle",o.applyColor(o.colors.GRADIENT_GREEN)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.data.packageInfo," ")}}function nv(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"p",11)(1,"span",12),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.data.caption," ")}}function iv(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"p",13),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngStyle",o.applyColor(o.sliderUpColor)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.data.sliderUpValue," ")}}function R1(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"span",14),e.\u0275\u0275text(1," ? "),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("appMetibPopup",o.conditionsTipsTransform)}}const No=["*"];class Yh{constructor(){this.colors=Pu.wL}get sliderUpColor(){return"\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e"===this.data.sliderUpValue.toLowerCase()?this.colors.GRADIENT_ORANGE:this.colors.STATIC_BLACK}get accountNameSplit(){return this.data.account.split(":")}get conditionsTipsTransform(){return{messages:this.data.conditionsTips.split("\n"),title:""}}applyColor(s){return{"background-image":s}}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||Yh)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Yh,selectors:[["app-tariff-details-data-item"]],inputs:{data:"data"},ngContentSelectors:No,decls:16,vars:9,consts:[[1,"tariff-details-item"],["class","tariff-details-item__option-info",3,"ngStyle",4,"ngIf"],[1,"tariff-details-item__header-wrapper"],[1,"tariff-details-item__header","to__left",3,"ngStyle"],[3,"ngStyle"],["class","tariff-details-item__option-wrapper",4,"ngIf"],["class","tariff-details-item__header",3,"ngStyle",4,"ngIf"],[1,"tariff-details-item__info-wrapper"],["class","tariff-details-item__info",3,"appMetibPopup",4,"ngIf"],[1,"tariff-details-item__progress-wrapper"],[1,"tariff-details-item__option-info",3,"ngStyle"],[1,"tariff-details-item__option-wrapper"],[1,"tariff-details-item__option-description"],[1,"tariff-details-item__header",3,"ngStyle"],[1,"tariff-details-item__info",3,"appMetibPopup"]],template:function(o,g){1&o&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"article",0),e.\u0275\u0275template(1,L1,2,2,"p",1),e.\u0275\u0275elementStart(2,"div",2)(3,"h6",3),e.\u0275\u0275text(4),e.\u0275\u0275elementStart(5,"span",4),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(7,nv,3,1,"p",5),e.\u0275\u0275elementStart(8,"div",2),e.\u0275\u0275template(9,iv,2,2,"p",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",7),e.\u0275\u0275template(11,R1,2,1,"span",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275projection(12),e.\u0275\u0275elementStart(13,"div",9)(14,"span"),e.\u0275\u0275text(15),e.\u0275\u0275elementEnd()()()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.packageInfo),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngStyle",g.applyColor(g.colors.STATIC_BLACK)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",g.accountNameSplit[0]+":"," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",g.applyColor(g.colors.STATIC_BLUE)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",g.accountNameSplit[1]," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.data.caption),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.data.caption),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.data.conditionsTips),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",g.data.sliderDownValue," "))},dependencies:[i.O5,i.PC,o0.h],styles:['@charset "UTF-8";.tariff-details-item[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal}.tariff-details-item__header[_ngcontent-%COMP%]{margin:0;padding:0;font-weight:400;font-size:16px;line-height:22px;text-align:center;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.tariff-details-item__header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font:inherit;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.tariff-details-item__header-wrapper[_ngcontent-%COMP%]{margin-top:40px;display:flex;width:100%;margin-bottom:11px;justify-content:center}.tariff-details-item__info[_ngcontent-%COMP%]{display:block;width:18px;height:18px;position:absolute;right:11px;bottom:9px;border-radius:50%;background-color:#88909b;color:#d7dde7;text-align:center;line-height:18px;font-weight:600;font-size:14px;cursor:default;transition-duration:.15s;-webkit-user-select:none;user-select:none}.tariff-details-item__info[_ngcontent-%COMP%]:hover{background-color:#003ad2}.tariff-details-item__info-wrapper[_ngcontent-%COMP%]{width:100%;position:relative}.tariff-details-item__option-wrapper[_ngcontent-%COMP%]{margin-top:20px;width:100%;display:flex;justify-content:space-between}.tariff-details-item__option-info[_ngcontent-%COMP%]{margin:30px auto;text-align:center;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:transparent;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.tariff-details-item__option-description[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#000}.tariff-details-item__progress-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-top:10px}.to__left[_ngcontent-%COMP%]{margin-right:auto!important}']})}function F1(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-tariff-details-data-item",4),e.\u0275\u0275element(2,"app-metib-progress-bar",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("data",o),e.\u0275\u0275attribute("data-qa","1657785355432"+g),e.\u0275\u0275advance(1),e.\u0275\u0275property("color",V.colors.GRADIENT_ORANGE)("maxValue",100)("value",V.parse(o.sliderValue))}}(0,Wi.gn)([(0,yi.SQ)()],Yh.prototype,"lang",void 0);let B1=(()=>{class M{constructor(){this.colors=Pu.wL}parse(o){return parseFloat(o)}static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-tariff-details-data-container"]],inputs:{limitsData:"limitsData"},decls:5,vars:2,consts:[["data-qa","1657785107842",1,"tariff-details-container"],[1,"tariff-details-container__header"],[1,"tariff-details-container__header-title"],[4,"ngFor","ngForOf"],[3,"data"],[3,"color","maxValue","value"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"section",0)(1,"header",1)(2,"h4",2),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(4,F1,3,5,"ng-container",3),e.\u0275\u0275elementEnd()),2&g&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(V.limitsData.caption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",V.limitsData.value))},dependencies:[i.sg,k1,Yh],styles:['@charset "UTF-8";.tariff-details-container[_ngcontent-%COMP%]{width:90%;margin:60px auto 0}.tariff-details-container__header[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal}.tariff-details-container__header-title[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;font-weight:600;font-size:22px;line-height:30px;text-align:center}.tariff-details-container__header-content[_ngcontent-%COMP%]{margin:30px 0 0;padding:0;font-weight:400;font-size:16px;line-height:22px}.tariff-details-container__header-content-data[_ngcontent-%COMP%]:last-of-type{color:#003ad2;font-weight:600}']})}return M})(),Yd=(()=>{class M{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-tariff-description-item"]],inputs:{label:"label",value:"value"},decls:5,vars:2,consts:[[1,"card-content-item"],[1,"label"],[1,"value"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",2),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&g&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(V.label),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate("\u2800"===V.value?"":V.value))},styles:['@charset "UTF-8";.card-content-item[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:16px;line-height:22px;margin-top:20px}.card-content-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#88909b}.card-content-item[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{color:#000}']})}return M})();var __=t(57823);const Hh=function(M){return{hidden:M}};function g_(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"li",18),e.\u0275\u0275element(1,"app-tariff-description-item",19),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,Hh,!V.isExpandState&&g>0)),e.\u0275\u0275attribute("data-qa","1657785138409"+g),e.\u0275\u0275advance(1),e.\u0275\u0275property("label",o.caption)("value",o.description)}}function Ps(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-metib-button",20),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.tariffChange())}),e.\u0275\u0275text(1,"\u0421\u043c\u0435\u043d\u0438\u0442\u044c "),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("isDisabled",!o.tariffData.isShowPackage)("type","primary")}}let aC=(()=>{class M{constructor(o){this.tariffPageService=o,this.showChangeTariffButton=!1,this.isExpanded=!1}get applyStylesHeader(){return{"background-image":this.titleColor}}get isExpandState(){return this.isExpanded}get beginDate(){return this.tariffData.curTariffOpenDate||this.tariffData.beginDate||"\xa0"}get titleColor(){return this.tariffData.isOld?Pu.wL.GRADIENT_ORANGE:Pu.wL.STATIC_BLACK}tariffChange(){this.tariffPageService.setTariffTab("tariffs-and-packages")}getFormattedData(o){return o&&o.length?Ri()(o).format("DD.MM.YYYY"):o}toggleExpandMode(){this.isExpanded=!this.isExpanded}ngOnInit(){}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(n0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-tariff-details-header"]],inputs:{tariffData:"tariffData",showChangeTariffButton:"showChangeTariffButton"},decls:20,vars:15,consts:[["data-qa","1657785210535",1,"tariff-details-header"],["data-qa","1657785217697",1,"tariff-details-header__container"],[1,"tariff-details-header__title-wrapper"],[1,"tariff-details-header__title",3,"ngStyle"],[3,"hide","click"],["data-qa","1657785255289",1,"tariff-details-header__content-container"],["data-qa","1657787323017",1,"tariff-details-header__content","tariff-details-header__content_left"],[3,"ngClass",4,"ngFor","ngForOf"],["data-qa","1657785183282",1,"tariff-details-header__content","tariff-details-header__content_right"],[1,"vertical-flex-wrapper"],[1,"tariff-details-header__content-visible"],["data-qa","1657785266292",3,"label","value"],[1,"tariff-details-header__content-expand",3,"ngClass"],["data-qa","1657785189071",3,"label","value"],[1,"tariff-details-header__link-container"],["data-qa","1657787192111",1,"tariff-details-header__link",3,"href"],["data-qa","1657787179236",1,"tariff-details-header__button-container"],["data-qa","1657785196374",3,"isDisabled","type","clicked",4,"ngIf"],[3,"ngClass"],[3,"label","value"],["data-qa","1657785196374",3,"isDisabled","type","clicked"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"article",0)(1,"div",1)(2,"div",2)(3,"h3",3),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-arrow-toggle",4),e.\u0275\u0275listener("click",function(){return V.toggleExpandMode()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",5)(7,"ul",6),e.\u0275\u0275template(8,g_,2,6,"li",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",8)(10,"div",9)(11,"div",10),e.\u0275\u0275element(12,"app-tariff-description-item",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",12),e.\u0275\u0275element(14,"app-tariff-description-item",13),e.\u0275\u0275elementStart(15,"div",14)(16,"a",15),e.\u0275\u0275text(17," \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0430\u0440\u0438\u0444\u0430 "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(18,"div",16),e.\u0275\u0275template(19,Ps,2,2,"app-metib-button",17),e.\u0275\u0275elementEnd()()()()()()()),2&g&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngStyle",V.applyStylesHeader),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(V.tariffData.caption),e.\u0275\u0275advance(1),e.\u0275\u0275styleMap("red"),e.\u0275\u0275property("hide",!V.isExpandState),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",V.tariffData.conditions),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","\u0422\u0430\u0440\u0438\u0444 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441")("value",V.getFormattedData(V.beginDate)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(13,Hh,!V.isExpandState)),e.\u0275\u0275advance(1),e.\u0275\u0275property("label",V.tariffData.descriptionCondition)("value",V.tariffData.descriptionPay),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",V.tariffData.descriptionUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",V.tariffData.isShowPackage&&V.showChangeTariffButton))},dependencies:[i.mk,i.sg,i.O5,i.PC,Yd,__.n,Bu.V],styles:['@charset "UTF-8";.tariff-details-header[_ngcontent-%COMP%]{position:relative;font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;margin-top:40px;box-sizing:border-box;border:1px solid transparent;background:rgba(222,222,222,.5);border-radius:4px 0 0 4px}.tariff-details-header[_ngcontent-%COMP%]:before{position:absolute;content:"";display:block;top:30px;bottom:30px;left:60%;width:2px;background-image:linear-gradient(0deg,transparent,transparent 50%,#dedede 50%,#dedede 100%),linear-gradient(0deg,#cad4e5 0%,#88909b 100%);background-size:30px 3px,100% 100%}.tariff-details-header__container[_ngcontent-%COMP%]{width:90%;margin:0 auto}.tariff-details-header__title[_ngcontent-%COMP%]{margin:0;padding:0;font-weight:600;font-size:18px;line-height:25px;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.tariff-details-header__title-wrapper[_ngcontent-%COMP%]{margin:30px 0 0;display:flex;justify-content:space-between}.tariff-details-header__content-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:30px}.tariff-details-header__content_left[_ngcontent-%COMP%]{width:60%}.tariff-details-header__content_right[_ngcontent-%COMP%]{width:40%;padding-left:100px}.tariff-details-header__link[_ngcontent-%COMP%]{font-weight:600;font-size:16px;line-height:22px;text-decoration-line:underline;color:#003ad2}.tariff-details-header__link-container[_ngcontent-%COMP%]{margin-top:20px}.tariff-details-header__button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:160px;height:42px;background-color:#003ad2;color:#d7dde7;text-transform:capitalize;border:none;border-radius:4px;font-weight:600;font-size:14px;cursor:pointer}.tariff-details-header__button-container[_ngcontent-%COMP%]{margin-top:36px}.vertical-flex-wrapper[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-evenly}']})}return M})();function ov(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-tariff-details-data-container",6),e.\u0275\u0275elementContainerEnd()),2&M){const o=s.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("limitsData",o)}}function a0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"main"),e.\u0275\u0275template(1,ov,2,1,"ng-container",5),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.currentLimits)}}function N1(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"header"),e.\u0275\u0275element(2,"app-tariff-details-header",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,a0,2,1,"main",1),e.\u0275\u0275element(4,"app-empty-stub",4),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("tariffData",o.currentTariff)("showChangeTariffButton",o.showChangeTariffButton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.currentLimits&&o.currentLimits.length&&!o.currentTariff.isOld),e.\u0275\u0275advance(1),e.\u0275\u0275property("display",!(o.currentLimits&&o.currentLimits.length)||o.currentTariff.isOld)("text","Tariff usage unavailable")}}let av=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-tariff-options-tab"]],inputs:{currentTariff:"currentTariff",currentLimits:"currentLimits",showChangeTariffButton:"showChangeTariffButton"},decls:3,vars:2,consts:[["data-qa","1657787211892",1,"tariff-options__description"],[4,"ngIf"],[3,"display"],[3,"tariffData","showChangeTariffButton"],[3,"display","text"],[4,"ngFor","ngForOf"],[3,"limitsData"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"section",0),e.\u0275\u0275template(1,N1,5,5,"ng-container",1),e.\u0275\u0275element(2,"app-empty-stub",2),e.\u0275\u0275elementEnd()),2&g&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!!V.currentTariff),e.\u0275\u0275advance(1),e.\u0275\u0275property("display",!V.currentTariff))},dependencies:[i.sg,i.O5,zp.q,B1,aC],styles:["p[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:20px;line-height:27px;text-align:center}"]})}return M})();var r0=t(66518);function rv(M,s){if(1&M&&e.\u0275\u0275element(0,"app-tariff-description-item",11),2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275property("label",o.caption)("value",o.description),e.\u0275\u0275attribute("data-qa","1657784376754"+g)}}function sv(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5)(1,"div",6),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,rv,1,3,"app-tariff-description-item",7),e.\u0275\u0275elementStart(4,"div",8)(5,"div",9),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"app-metib-button",10),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.activatePackage())}),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.package.caption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.conditions),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.package.isCurrent?"\u041f\u0430\u043a\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e "+o.firstDateOfMonth:"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f "+o.package.connectionCost," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("isDisabled",o.button.isDisabled)("type",o.button.type),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(9,6,o.button.text,o.lang)," ")}}function j1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12)(1,"div",13)(2,"div",14),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",15)(5,"div",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",17)(7,"app-confirmation-block",18),e.\u0275\u0275listener("resultEvent",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.showResult(V))}),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.activationCaption),e.\u0275\u0275advance(4),e.\u0275\u0275property("additionalData",o.additionalData)("docId",o.docId)("docModule",o.docModule)("docType",o.docType)}}function U1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",19)(1,"div",13)(2,"div",14),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",15)(5,"div",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",21),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"app-metib-button",22),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.localStatus="confirmation")}),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.activationCaption),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ","\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \n\u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0431\u0430\u043d\u043a"," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("type",o.button.type),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(10,4,"Sign",o.lang)," ")}}function V1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",23)(1,"div",13)(2,"div",14),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",15)(5,"div",24),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",21),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(o.activationCaption),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ","\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \n\u0432 \u0431\u0430\u043d\u043a"," ")}}class Eu{constructor(s){this.tariffNewService=s,this.conditions=[],this.button={type:"primary",text:"Connect",isDisabled:!1},this.loader=!1,this.showProcess=!1}get activationCaption(){let s=this.package.caption;const o=s.indexOf("\u041f\u0430\u043a\u0435\u0442 ");return o>-1&&(s=s.substr(o+6,s.length-6)),"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 "+s}ngOnInit(){this.nextWorkingDay=this.getNextWorkingDay(),this.additionalData={accountNumber:this.account},this.localStatus="default",this.package.conditions.forEach(s=>{this.conditions.push(s)}),this.conditions.sort((s,o)=>s.order>o.order?1:-1),this.package.isCurrent?(this.button.type="secondary",this.button.text="Connected",this.button.isDisabled=!1,this.firstDateOfMonth=Ri()().add(1,"month").startOf("month").format("DD.MM.YYYY")):(this.package.isReadOnly||this.package.isNew)&&(this.button.type="disabled",this.button.text="Not available",this.button.isDisabled=!0)}activatePackage(){this.package.isCurrent||(this.showProcess=!0,this.loader=!0,this.tariffNewService.activatePackage(this.package.id,this.account,this.nextWorkingDay).subscribe(s=>{s&&s.id&&(this.docModule=s.docModule||"ibankul",this.docType=s.docType||"change_tariff_ul_req",this.docId=Number(s.id),this.localStatus="confirmation"),this.loader=!1}))}showResult(s){this.localStatus=2===s?"requestIsSent":1===s?"partlySigned":"default",this.loader=!1}isHoliday(s){return 6===s.getDay()||0===s.getDay()}onClose(){this.showProcess=!1,this.localStatus="default"}getNextWorkingDay(){let s=new Date;for(;this.isHoliday(s);)s=Ri()(s).add(1,"day").toDate();return Ri()(s).add(1,"day").format("YYYY-MM-DD")}static#e=this.\u0275fac=function(o){return new(o||Eu)(e.\u0275\u0275directiveInject(Du.iY))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Eu,selectors:[["app-package-card"]],inputs:{package:"package",account:"account"},decls:5,vars:4,consts:[["data-qa","1657784414616",1,"package-card"],["data-qa","1657787440148",4,"ngIf"],["class","package-content","data-qa","1657784435438",4,"ngIf"],["class","package-content","data-qa","1657784471167",4,"ngIf"],["class","package-content","data-qa","1657784513111",4,"ngIf"],["data-qa","1657787440148"],[1,"caption"],[3,"label","value",4,"ngFor","ngForOf"],[1,"bottom-block"],[1,"bottom-block-text"],["data-qa","1657784429177",3,"isDisabled","type","clicked"],[3,"label","value"],["data-qa","1657784435438",1,"package-content"],[1,"package-content-caption__wrap"],[1,"package-content-caption"],[1,"package-content-caption__cross-wrap"],["data-qa","1657784448261",1,"cross",3,"click"],[1,"package-content-body"],["data-qa","1657784441507",1,"package-content-body__confirmation",3,"additionalData","docId","docModule","docType","resultEvent"],["data-qa","1657784471167",1,"package-content"],["data-qa","1657784478788",1,"cross",3,"click"],[1,"package-content-body","package-content-body__text"],["data-qa","1657784490985",1,"package-content-body__btn",3,"type","clicked"],["data-qa","1657784513111",1,"package-content"],["data-qa","1663073993838",1,"cross",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,sv,10,9,"div",1),e.\u0275\u0275template(2,j1,8,5,"div",2),e.\u0275\u0275template(3,U1,11,7,"div",3),e.\u0275\u0275template(4,V1,8,2,"div",4),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&"default"===g.localStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&"confirmation"===g.localStatus&&g.showProcess),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&"partlySigned"===g.localStatus&&g.showProcess),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&"requestIsSent"===g.localStatus))},dependencies:[i.sg,i.O5,Yd,r0.B,__.n,yi.X$],styles:[".package-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:550px;height:auto;min-height:283px;box-shadow:0 4px 30px #0000001f;padding:30px 40px;flex-grow:1}.package-card[_ngcontent-%COMP%]   .caption[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:18px;line-height:25px;background:linear-gradient(270deg,#003ad2 0%,#0097ec 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.package-card[_ngcontent-%COMP%]   .card-content-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#000!important}.package-card[_ngcontent-%COMP%]   .bottom-block[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:35px}.package-card[_ngcontent-%COMP%]   .bottom-block-text[_ngcontent-%COMP%]{font-weight:600}.package-card[_ngcontent-%COMP%]   .bottom-block[_ngcontent-%COMP%]   .panel-form__button[_ngcontent-%COMP%]{background:#003ad2!important;width:160px!important;height:42px;border-radius:4px}.package-card[_ngcontent-%COMP%]   .package-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;flex-grow:1}.package-card[_ngcontent-%COMP%]   .package-content[_ngcontent-%COMP%]   .custom-select[_ngcontent-%COMP%]   .custom-select__fake[_ngcontent-%COMP%]{width:324px}.package-content-caption[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:18px;line-height:25px;color:#000;align-self:start;margin-right:auto}.package-content-caption__wrap[_ngcontent-%COMP%]{display:flex;width:100%}.package-content-caption__cross-wrap[_ngcontent-%COMP%]{display:flex;align-self:flex-start;padding:4px;align-items:center;justify-content:center}.package-content-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;flex-grow:1;white-space:pre-line;text-align:center;flex-wrap:wrap}.package-content-body__confirmation[_ngcontent-%COMP%]{max-width:360px}.package-content-body__text[_ngcontent-%COMP%]{justify-content:initial;margin:64px auto auto;flex-grow:0}.package-content-body__btn[_ngcontent-%COMP%]{margin-bottom:8px}.package-content-caption__cross-wrap[_ngcontent-%COMP%]{display:flex;align-self:flex-start;margin-left:15px}"]})}function $1(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"li"),e.\u0275\u0275element(1,"app-package-card",9),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext();e.\u0275\u0275attribute("data-qa","1657786566036"+g),e.\u0275\u0275advance(1),e.\u0275\u0275property("account",V.selectedAccountCode)("package",o)}}function W1(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}(0,Wi.gn)([(0,yi.SQ)()],Eu.prototype,"lang",void 0);let cv=(()=>{class M{constructor(o,g){this.tariffService=o,this.toastCustomService=g,this.packages=[],this.accounts=[],this.loader=!1,this.destroyed$=new co.x}ngOnInit(){this.tariffService.getAvailableAccountsForPackages().pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{this.accounts=o.map(g=>({id:g.id,code:g.number,caption:g.alias||g.info})),this.accounts.length>=1&&(this.selectedAccountCode=this.accounts[0].code,this.selectedItem={prop:"code",value:this.selectedAccountCode})})}onSelectAccount(){this.loader=!0,this.tariffService.getAvailablePackages(this.selectedAccountCode).pipe((0,Ec.K)(o=>(this.toastCustomService.errorHandle(o),(0,An.of)(null))),(0,Vn.x)(),(0,zn.R)(this.destroyed$)).subscribe(o=>{o&&(this.packages=o),this.loader=!1})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(Jl.M),e.\u0275\u0275directiveInject(jo.j))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-tariff-packages-tab"]],decls:14,vars:7,consts:[[1,"tariff-packages-tab__header"],[1,"tariff-packages-tab__title"],["data-qa","1657786498456"],[1,"select-account"],["data-qa","1657786502599",3,"ngModel","items","label","returnValue","selectedItem","selectionChange","ngModelChange"],["data-qa","1657786509259"],["data-qa","1657787299178"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"account","package"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"header",0)(1,"h3",1),e.\u0275\u0275text(2," \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u043c\u043e\u0436\u043d\u043e \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0434\u0435\u043d\u044c \u0411\u0430\u043d\u043a\u0430. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0434\u043d\u044f."),e.\u0275\u0275element(3,"br"),e.\u0275\u0275text(4,' \u041f\u0430\u043a\u0435\u0442\u044b "100 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439" \u0438 "\u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0431\u0435\u0437\u043b\u0438\u043c\u0438\u0442\u043d\u043e" \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. '),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"main",2)(6,"div",3)(7,"span"),e.\u0275\u0275text(8,"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u0447\u0435\u0442: "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"app-select",4),e.\u0275\u0275listener("selectionChange",function(){return V.onSelectAccount()})("ngModelChange",function(yt){return V.selectedAccountCode=yt}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",5)(11,"ul",6),e.\u0275\u0275template(12,$1,2,3,"li",7),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(13,W1,1,0,"app-loader",8),e.\u0275\u0275elementEnd()),2&g&&(e.\u0275\u0275advance(9),e.\u0275\u0275property("ngModel",V.selectedAccountCode)("items",V.accounts)("label","caption")("returnValue","code")("selectedItem",V.selectedItem),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",V.packages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.loader))},dependencies:[i.sg,i.O5,xa.R,zu.H,Eu,l.NgControlStatus,l.NgModel],styles:['@charset "UTF-8";.tariff-packages-tab[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal}.tariff-packages-tab__header[_ngcontent-%COMP%]{max-width:960px;margin:32px auto 40px}.tariff-packages-tab__title[_ngcontent-%COMP%]{margin:0;padding:0;font-weight:400;font-size:18px;line-height:25px;text-align:center;color:#444}ul[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto;padding:1em 0 0;display:grid;grid-column-gap:20px;grid-row-gap:35px;grid-template-columns:repeat(2,1fr)}@media screen and (max-width: 1110px){ul[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}.select-account[_ngcontent-%COMP%]{display:flex;align-items:baseline;max-width:640px;font-weight:600}.select-account[_ngcontent-%COMP%]     .custom-select .custom-select__fake{color:#003ad2;min-width:240px}  .custom-select .custom-select__fake{border-width:0 0 1px 0!important;box-shadow:none!important;border-style:solid;border-color:#000;border-radius:0}']})}return M})();var Kh=t(49167),lv=t(18545),dv=t(21676),uv=t(76042);function z1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"app-document-item",10),e.\u0275\u0275listener("actionDone",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onActionDone(V))}),e.\u0275\u0275elementEnd()()}if(2&M){const o=s.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("documentItem",o)("isShowSVGDoc",!0)("oneLineDescriptionWithEllipsis",!0)}}function Gh(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4)(1,"div",5)(2,"app-metib-paginator-custom",6),e.\u0275\u0275listener("changePaginationEmit",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onChangePagination(V))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(3,z1,2,3,"div",7),e.\u0275\u0275elementStart(4,"app-metib-paginator-custom",8),e.\u0275\u0275listener("changePaginationEmit",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.onChangePagination(V))}),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("currentPage",o.currentPage)("currentSize",o.currentSize)("currentTotal",o.currentTotal)("showSize",!0)("sizeList",o.sizeList)("scrollAfterNavigate",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.applications),e.\u0275\u0275advance(1),e.\u0275\u0275property("currentPage",o.currentPage)("currentSize",o.currentSize)("currentTotal",o.currentTotal)("showMoreVisible",!0)}}function Qh(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}function Y1(M,s){if(1&M&&e.\u0275\u0275element(0,"app-empty-stub",11),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("text","The tariff statement list is empty")("display",0===o.applications.length)}}class Xh{constructor(s,o,g,V,me,yt,Zt){this.vedService=s,this.documentService=o,this.toastCustomService=g,this.configUtilService=V,this.changeDetectorRef=me,this.translation=yt,this.settingsService=Zt,this.pageData$=new Nc.X({total:0,number:0,size:20}),this.docTypesData={docTypes:[{docModule:"ibankul",docType:Qr.o.ChangeTariffUlReq},{docModule:"ibankul",docType:Qr.o.ChangePackageUl},{docModule:"ibankul",docType:Qr.o.RequestVedSupport}]},this.showMore=!1,this.isAvailableSupportVedService$=new Nc.X(null),this.isLoading=!1,this.applications=[],this.sizeList=Pp}get currentSize(){return+this.pageData$.getValue().size}get currentPage(){return+this.pageData$.getValue().number}get currentTotal(){return+this.pageData$.getValue().total}getStatusText(s,o){return this.vedService.getStatusText(s,o)}parseDocuments(s){return s.map(o=>({...o,actions:this.configUtilService.getArray(o.actions)})).map(o=>({dots:{buttonActions:this.configUtilService.makeButtonActions({actions:this.configUtilService.getArray(o.actions),...o,isAvailableSupportVed:o.docType===Qr.o.RequestVedSupport&&!this.isAvailableSupportVedService$.getValue()})},...o,declineInfo:"send"===o.status?"":o.declineInfo,title:this.translation.translate(this.returnTypeText(o)),info:Ri()(o.docDate,"YYYY-MM-DD").format("DD.MM.YYYY"),description:this.getDescription(o),statusCaption:"send"===o.status?lv.lG.IN_PROCESSING:this.getStatusText(o,Kh.u.STATUS_CAPTION),status:this.getStatusText(o,Kh.u.STATUS),statusInitial:o.status,icon:"decline"===o?.status?"close":"file-new",isOpen:"decline"===o?.status&&o?.declineInfo}))}getDocs(){this.isLoading=!0;const s={visual:!0,page:this.pageData$.getValue(),lastDocumentFilter:this.docTypesData,additionalFilter:null,listOfStatuses:"end,sign_in_bank,for_send,send,decline,processed_vk,accept,draft,for_send_abs,cancel_from_renew,cancel,wait_decline,new"};this.documentService.getLastDocumentsPageable(s).pipe((0,Ec.K)(o=>(this.isLoading=!1,this.toastCustomService.errorHandle(o,"fullRed"),(0,An.of)(o)))).subscribe(o=>{if(o?.page&&this.pageData$.next(o.page),o?.documents){const g=this.parseDocuments(this.configUtilService.getArray(o.documents));this.applications=this.showMore?[...this.applications,...g]:g}else this.applications=[];this.isLoading=!1,this.changeDetectorRef.detectChanges()})}getSupportVedService(){this.settingsService.getResource(this.settingsService.servicesUL).pipe((0,lo.U)(s=>1==s["REQUEST/REQUEST_VED_SUPPORT"])).subscribe(s=>this.isAvailableSupportVedService$.next(s))}ngOnInit(){this.getSupportVedService(),this.getDocs()}returnTypeText(s){switch(s.docType){case Qr.o.ChangeTariffUlReq:return`${this.translation.translate("Switching to tariff")} "${s.tariffCaption?s.tariffCaption:s.packageCaption}"`;case Qr.o.ChangePackageUl:return`${this.translation.translate("Connection")} "${s.tariffCaption?s.tariffCaption:s.packageCaption}"`;case Qr.o.RequestVedSupport:return"Activation of the service Personal support VED";default:return""}}getDescription(s){const o=this.translation.translate("Application \u2116",{docNum:s.docNumber,docDate:this.configUtilService.formatDateDMY(new Date(s.docDate),".")});return s.docType!==Qr.o.RequestVedSupport?o:`${o}, ${s.tariffDescription}`}onChangePagination(s){this.showMore=!!s.showMore,this.pageData$.next({number:s.number,size:s.size,total:s.total}),this.getDocs()}getStatus(s){let o="grey";if("decline"===s.status&&(o="error-color"),!s.status)return{class:o,text:""};let g=s.statusCaption;switch("1"===s.signStatus&&(g=s.signStatusCaption),g.toLowerCase()){case"\u043e\u0442\u043a\u0430\u0437\u0430\u043d":case"\u043e\u0442\u043c\u0435\u043d\u0435\u043d":o="error-color";break;case"\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435":case"\u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d":o="blue-color";break;case"\u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u043e":case"\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d":o="green-color"}return{class:o,text:g}}onActionDone(s){console.log(s)}static#e=this.\u0275fac=function(o){return new(o||Xh)(e.\u0275\u0275directiveInject(jr.$),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(ws.l))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Xh,selectors:[["app-tariff-requests-tab"]],decls:5,vars:3,consts:[[1,"tariff-requests"],["class","tariff-requests__list",4,"ngIf","ngIfElse"],[4,"ngIf"],["empty",""],[1,"tariff-requests__list"],["data-qa","1680266825",1,"tariff-requests__list_paginator"],[3,"currentPage","currentSize","currentTotal","showSize","sizeList","scrollAfterNavigate","changePaginationEmit"],["class","tariff-requests__list-item",4,"ngFor","ngForOf"],[3,"currentPage","currentSize","currentTotal","showMoreVisible","changePaginationEmit"],[1,"tariff-requests__list-item"],[1,"list__item",3,"documentItem","isShowSVGDoc","oneLineDescriptionWithEllipsis","actionDone"],[3,"text","display"]],template:function(o,g){if(1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Gh,5,11,"div",1),e.\u0275\u0275template(2,Qh,1,0,"app-loader",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Y1,1,2,"ng-template",null,3,e.\u0275\u0275templateRefExtractor)),2&o){const V=e.\u0275\u0275reference(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.applications.length)("ngIfElse",V),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isLoading)}},dependencies:[i.sg,i.O5,xa.R,dv.n,zp.q,uv._],styles:['@charset "UTF-8";.tariff-requests__top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:row}.tariff-requests__top_left[_ngcontent-%COMP%]{display:flex}.tariff-requests__top_icon[_ngcontent-%COMP%]{width:24px;margin:auto 16px auto 0}.tariff-requests__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:24px 15px}.tariff-requests__list_paginator[_ngcontent-%COMP%]{margin-bottom:24px}.tariff-requests__list-item[_ngcontent-%COMP%]{min-height:95px;border-top:1px solid #dbe5ec;padding:20px 20px 0;font-family:Open Sans,Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:16px}.tariff-requests__list-item[_ngcontent-%COMP%]:last-child{border-bottom:1px solid #dbe5ec}.tariff-requests__list-left-col[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-direction:column}.tariff-requests__list-right-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tariff-requests__list-text-dark[_ngcontent-%COMP%]{display:inline;color:#080708;padding-bottom:8px}.tariff-requests__list-text-grey[_ngcontent-%COMP%]{display:inline;line-height:22px;color:#88909b;color:#080708;padding-bottom:8px}.tariff-requests__list-text-grey[_ngcontent-%COMP%]{display:inline;line-height:22px;color:#88909b;padding-bottom:10px}.tariff-requests__date[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#444;padding-bottom:12px}.tariff-requests__error-text[_ngcontent-%COMP%]{padding:0 60px 0 40px;color:#d9291e;margin-bottom:20px;font-size:14px}.tariff-requests__error-text_exist[_ngcontent-%COMP%]{margin-top:24px}.tariff-requests__list-right-col[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{text-align:right}.green-color[_ngcontent-%COMP%]{color:#00a843}.error-color[_ngcontent-%COMP%]{color:#e23428}.blue-color[_ngcontent-%COMP%]{color:#2f54eb}.grey[_ngcontent-%COMP%]{color:#88909b}.attach[_ngcontent-%COMP%]{mask:url(file-attach.471326d8a8ac2508.svg) no-repeat;background-color:#88909b;width:24px;height:24px}.cross-denied[_ngcontent-%COMP%]{height:24px;width:24px;background:url(cross-new.50c5cb79b22b2db2.svg) no-repeat;background-size:contain}']})}function H1(M,s){if(1&M&&e.\u0275\u0275element(0,"app-tab",8),2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275property("label",o.capture)("number",o.number),e.\u0275\u0275attribute("data-qa","1657784987758"+g)}}function pv(M,s){if(1&M&&e.\u0275\u0275element(0,"app-tariff-options-tab",9),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("currentLimits",o.currentLimits)("currentTariff",o.currentTariff)("showChangeTariffButton",o.showChangeTariffButton)}}function mv(M,s){1&M&&e.\u0275\u0275element(0,"app-tariff-packages-tab",10)}function hv(M,s){1&M&&e.\u0275\u0275element(0,"app-tariff-requests-tab",11)}function K1(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}(0,Wi.gn)([(0,yi.SQ)()],Xh.prototype,"lang",void 0);let s0=(()=>{class M{constructor(o,g,V,me,yt){this.tariffService=o,this.tariffPageService=g,this.translate=V,this.router=me,this.serverSettingsService=yt,this.openTariffs=new e.EventEmitter,this.pathData=[{capture:"Tariffs management",href:"/tarif",bold:!0}],this.isLoading=!0,this.tabs=[{capture:"Main options",number:null,value:Pu.Nw.OPTIONS}],this.restrictedTariffs=["\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439","\u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439","\u0442\u0430\u0440\u0438\u0444 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439","\u0442\u0430\u0440\u0438\u0444 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439"],this.currentTab=this.tabs[0],this.noTariff=!1,this.showChangeTariffButton=!1,this.destroy$=new co.x}get title(){return"\u041e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u0442\u0430\u0440\u0438\u0444\u0443 \u0437\u0430 "+(new Date).toLocaleDateString(navigator.language,{month:"long",year:"numeric"})}get TABS(){return Pu.Nw}setLoading(o){this.isLoading=o}onSelectTab(o){this.tabs[o].value===Pu.Nw.PACKAGES&&this.openTariffs.emit(),this.currentTab=this.tabs[o]}closeTariffs(){this.router.navigate(["../"])}getTariffData(){(0,Jo.D)([this.tariffService.getCurrentTariff(),this.tariffService.getCurrentLimits(),this.serverSettingsService.getBooleanSettings(this.serverSettingsService.servicesUL,["REQUEST/CHANGE_TARIFF_UL","REQUEST/CHANGE_PACKAGE_UL"])]).subscribe(([o,g,V])=>{const me=V["REQUEST/CHANGE_TARIFF_UL"]&&V["REQUEST/CHANGE_PACKAGE_UL"];this.showChangeTariffButton=me,this.tabs.push({capture:"Requests",number:null,value:Pu.Nw.REQUESTS}),o.id?(this.tariffService.getTariffDocByTariffId(o.id).pipe((0,zn.R)(this.destroy$)).subscribe(yt=>{if(yt&&yt.changeTariffUlReqDocument){const Zt=Array.isArray(yt.changeTariffUlReqDocument)?yt.changeTariffUlReqDocument[0]:yt.changeTariffUlReqDocument;if(Zt){const Pn=Ri()(Zt.docDate).add(1,"M").startOf("month").format("DD.MM.YYYY");this.currentTariff={...this.currentTariff,beginDate:Pn}}}}),this.currentTariff=o,g&&(this.currentLimits=this.convertLimitsToIterable(g)),this.tariffService.isShowPackage$.next(o.isShowPackage),me&&(this.restrictedTariffs.includes(o.caption.toLowerCase())?this.currentTariff={...this.currentTariff,isOld:!0}:this.tabs.push({capture:this.tariffService.isShowPackage$.value?"Tariffs and packages":"Tariffs",number:null,value:Pu.Nw.PACKAGES})),this.isLoading=!1):(this.noTariff=!0,this.isLoading=!1)})}convertLimitsToIterable(o){const g=[];return Object.keys(o).forEach(V=>{g.push({caption:V,value:o[V]})}),g}ngOnInit(){this.setLoading(!0),this.getTariffData()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(Du.iY),e.\u0275\u0275directiveInject(n0),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(ws.l))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-tariff-details"]],outputs:{openTariffs:"openTariffs"},decls:9,vars:11,consts:[["data-qa","1657787102214",3,"pathData"],["data-qa","1657784939602",3,"title","useNewTitle","withCloseButton","withTitle","close"],["data-qa","1657786861467",3,"showBottomBorder","selectTab"],[3,"label","number",4,"ngFor","ngForOf"],["data-qa","1657784947445",3,"currentLimits","currentTariff","showChangeTariffButton",4,"ngIf"],["data-qa","1657784954528",4,"ngIf"],["data-qa","1657784964191",4,"ngIf"],[4,"ngIf"],[3,"label","number"],["data-qa","1657784947445",3,"currentLimits","currentTariff","showChangeTariffButton"],["data-qa","1657784954528"],["data-qa","1657784964191"]],template:function(g,V){1&g&&(e.\u0275\u0275element(0,"app-path",0),e.\u0275\u0275elementStart(1,"app-page",1),e.\u0275\u0275listener("close",function(){return V.closeTariffs()}),e.\u0275\u0275elementStart(2,"div")(3,"app-tabs",2),e.\u0275\u0275listener("selectTab",function(yt){return V.onSelectTab(yt)}),e.\u0275\u0275template(4,H1,1,3,"app-tab",3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,pv,1,3,"app-tariff-options-tab",4),e.\u0275\u0275template(6,mv,1,0,"app-tariff-packages-tab",5),e.\u0275\u0275template(7,hv,1,0,"app-tariff-requests-tab",6),e.\u0275\u0275template(8,K1,1,0,"app-loader",7),e.\u0275\u0275elementEnd()),2&g&&(e.\u0275\u0275property("pathData",V.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("title",V.title)("useNewTitle",!0)("withCloseButton",!0)("withTitle",!0),e.\u0275\u0275advance(2),e.\u0275\u0275property("showBottomBorder",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",V.tabs),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.currentTab.value===V.TABS.OPTIONS),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.currentTab.value===V.TABS.PACKAGES),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.currentTab.value===V.TABS.REQUESTS),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.isLoading))},dependencies:[i.sg,i.O5,xa.R,nr.n,Ra.i,ls.I,aa.l,av,cv,Xh]})}return M})();function G1(M,s){if(1&M&&e.\u0275\u0275element(0,"app-tariff-description-item",3),2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275propertyInterpolate("label",o.label),e.\u0275\u0275propertyInterpolate("value",o.value),e.\u0275\u0275attribute("data-qa","1657784575397"+g)}}function Q1(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"a",4),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("href",o.linkPdf,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(2,2,"Tariff description",o.lang))}}class v_{constructor(){this.connect=new e.EventEmitter}ngOnInit(){}onClick(){this.connect.emit()}static#e=this.\u0275fac=function(o){return new(o||v_)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:v_,selectors:[["app-tariff-card-activation"]],inputs:{description:"description",linkPdf:"linkPdf",isCurrent:"isCurrent"},outputs:{connect:"connect"},decls:5,vars:8,consts:[[3,"label","value",4,"ngFor","ngForOf"],["class","link-pdf","data-qa","1657784614268","target","_blank",3,"href",4,"ngIf"],["data-qa","1657784607021",3,"isDisabled","type","clicked"],[3,"label","value"],["data-qa","1657784614268","target","_blank",1,"link-pdf",3,"href"]],template:function(o,g){1&o&&(e.\u0275\u0275template(0,G1,1,3,"app-tariff-description-item",0),e.\u0275\u0275template(1,Q1,3,5,"a",1),e.\u0275\u0275elementStart(2,"app-metib-button",2),e.\u0275\u0275listener("clicked",function(){return g.onClick()}),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275property("ngForOf",g.description),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.linkPdf),e.\u0275\u0275advance(1),e.\u0275\u0275property("isDisabled",g.isCurrent)("type",g.isCurrent?"disabled":"primary"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,5,"Connect",g.lang)))},dependencies:[i.sg,i.O5,Yd,__.n,yi.X$],styles:[".link-pdf[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:16px;line-height:22px;text-decoration-line:underline;cursor:pointer;color:#003ad2;display:block;margin-top:20px}app-metib-button[_ngcontent-%COMP%]     button{margin-top:25px}"]})}function rC(M,s){if(1&M&&e.\u0275\u0275element(0,"app-tariff-description-item",13),2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275propertyInterpolate("label",o.caption),e.\u0275\u0275propertyInterpolate("value",o.description),e.\u0275\u0275attribute("data-qa","1657784116664"+g)}}function sC(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}function cC(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275element(1,"div",15),e.\u0275\u0275elementEnd()}}function fv(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-tariff-card-activation",16),e.\u0275\u0275listener("connect",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onConnect())}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("description",o.descriptionActivation)("isCurrent",o.tariff.isCurrent)("linkPdf",o.tariff.descriptionUrl)}}function b_(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-confirmation-block",17),e.\u0275\u0275listener("resultEvent",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.showResult(V))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("docId",o.docId)("docModule",o.docModule)("docType",o.docType)}}function X1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",18)(1,"div",2),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",19),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-metib-button",20),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.currentLocalStatus=V.LocalStatus.Confirmation)}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate("\u0417\u0430\u044f\u0432\u043a\u0430 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \n\u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0431\u0430\u043d\u043a"),e.\u0275\u0275advance(1),e.\u0275\u0275property("type","primary"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(7,4,"Sign",o.lang)," ")}}function Z1(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",21)(1,"div",2),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",19),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"app-metib-button",22),e.\u0275\u0275listener("clicked",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onRecall())}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate("\u0417\u0430\u044f\u0432\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0431\u0430\u043d\u043a"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ","\u0422\u0430\u0440\u0438\u0444 \u043d\u0430\u0447\u043d\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 "+o.lastDateOfMonth+"\n\u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043d\u0435 \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438 \u0431\u0430\u043d\u043a\u0443"," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("type","primary"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(7,4,"Cancel",o.lang)," ")}}function _v(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",23)(1,"div",19),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&M&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate("\u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043e\u0442\u0437\u044b\u0432 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0431\u0430\u043d\u043a"))}(0,Wi.gn)([(0,yi.SQ)()],v_.prototype,"lang",void 0);var bl=(()=>{return(M=bl||(bl={})).Default="default",M.Confirmation="confirmation",M.PartlySigned="partlySigned",M.RequestIsSent="requestIsSent",M.Recall="recall",M.RecallIsSent="recallIsSent",bl;var M})();class Zh{constructor(s,o,g){this.toast=s,this.documentRecallOrderService=o,this.tariffsNewService=g,this.conditions=[],this.LocalStatus=bl,this.currentLocalStatus=this.LocalStatus.Default,this.loader=!1,this.destroyed$=new co.x}get isCloseButton(){return this.currentLocalStatus===this.LocalStatus.Confirmation||this.currentLocalStatus===this.LocalStatus.Recall}ngOnInit(){this.caption=this.tariff.caption,this.tariff.conditions.forEach(s=>{this.conditions.push(s)}),this.conditions.sort((s,o)=>s.order>o.order?1:-1),this.descriptionActivation=[{label:"\u0422\u0430\u0440\u0438\u0444 \u043d\u0430\u0447\u043d\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441",value:this.lastDateOfMonth},{label:"\u041f\u043b\u0430\u0442\u0430 \u0437\u0430 \u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430",value:this.tariff.descriptionPay}],this.tariff.isNext&&(this.currentLocalStatus=this.LocalStatus.RequestIsSent),"1"===this.tariff.signStatus&&(this.currentLocalStatus=this.LocalStatus.PartlySigned,this.docId=+this.tariff.requestId,this.docModule="ibankul",this.docType="change_tariff_ul_req")}onConnect(){this.isExistSentRequest?this.toast.show("\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0430\u0440\u0438\u0444 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u0435 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0437\u0430\u044f\u0432\u043a\u0443","error"):(this.loader=!0,this.tariffsNewService.changeTariff(this.tariff.id,Ri()(this.lastDateOfMonth,"DD.MM.YYYY").format("YYYY-MM-DD")).pipe((0,zn.R)(this.destroyed$)).subscribe(s=>{s&&s.id&&(this.docModule=s.docModule||"ibankul",this.docType=s.docType||"change_tariff_ul_req",this.docId=Number(s.id),this.currentLocalStatus=this.LocalStatus.Confirmation),this.loader=!1},s=>{this.toast.show(s.errorText,"error"),this.loader=!1}))}onRecall(){this.loader=!0,this.tariffsNewService.getRequestsByTariffId(this.tariff.id).pipe((0,Fi.w)(s=>{if(s&&s.changeTariffUlReqDocument){const o=Array.isArray(s.changeTariffUlReqDocument)?s.changeTariffUlReqDocument[0]:s.changeTariffUlReqDocument;return this.documentRecallOrderService.sendForSignature({docDate:o.docDate,cancelDocId:o.id,cause:"\u041e\u0442\u0437\u044b\u0432 \u043f\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u0438\u0432\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430"})}return(0,An.of)()}),(0,zn.R)(this.destroyed$)).subscribe(s=>{s&&(this.docModule=s.docModule||"ibankul",this.docType=s.docType||"change_tariff_ul_req",this.docId=Number(s.id),this.currentLocalStatus=bl.Recall),this.loader=!1},s=>{this.toast.show(s.errorText,"error"),this.loader=!1})}showResult(s){this.currentLocalStatus=2===s?this.currentLocalStatus===bl.Recall?bl.RecallIsSent:bl.RequestIsSent:1===s?this.LocalStatus.PartlySigned:this.LocalStatus.Default}onClose(){this.currentLocalStatus=bl.Default}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(o){return new(o||Zh)(e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(xd),e.\u0275\u0275directiveInject(Du.iY))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Zh,selectors:[["app-tariff-card"]],inputs:{tariff:"tariff",lastDateOfMonth:"lastDateOfMonth",isExistSentRequest:"isExistSentRequest"},features:[e.\u0275\u0275ProvidersFeature([xd])],decls:14,vars:9,consts:[["data-qa","1657784328292",1,"tariff-card"],["data-qa","1657787397864",1,"left-block"],[1,"caption"],[3,"label","value",4,"ngFor","ngForOf"],[1,"vl"],["data-qa","1657784323208",1,"right-block"],[4,"ngIf"],["class","right-block__close","data-qa","1663163593398",3,"click",4,"ngIf"],["data-qa","1657784081149",3,"description","isCurrent","linkPdf","connect",4,"ngIf"],["class","right-block__inner","data-qa","1657784085657",3,"docId","docModule","docType","resultEvent",4,"ngIf"],["class","sign-result","data-qa","1657784313957",4,"ngIf"],["class","sign-result","data-qa","1657784302055",4,"ngIf"],["class","sign-result","data-qa","1657784295975",4,"ngIf"],[3,"label","value"],["data-qa","1663163593398",1,"right-block__close",3,"click"],[1,"cross"],["data-qa","1657784081149",3,"description","isCurrent","linkPdf","connect"],["data-qa","1657784085657",1,"right-block__inner",3,"docId","docModule","docType","resultEvent"],["data-qa","1657784313957",1,"sign-result"],[1,"text"],["data-qa","1657784093970",3,"type","clicked"],["data-qa","1657784302055",1,"sign-result"],["data-qa","1657784034844",3,"type","clicked"],["data-qa","1657784295975",1,"sign-result"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,rC,1,3,"app-tariff-description-item",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"div",4),e.\u0275\u0275elementStart(6,"div",5),e.\u0275\u0275template(7,sC,1,0,"app-loader",6),e.\u0275\u0275template(8,cC,2,0,"div",7),e.\u0275\u0275template(9,fv,1,3,"app-tariff-card-activation",8),e.\u0275\u0275template(10,b_,1,3,"app-confirmation-block",9),e.\u0275\u0275template(11,X1,8,7,"div",10),e.\u0275\u0275template(12,Z1,8,7,"div",11),e.\u0275\u0275template(13,_v,3,1,"div",12),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(g.caption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",g.conditions),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",g.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.isCloseButton&&!g.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&g.currentLocalStatus===g.LocalStatus.Default),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&(g.currentLocalStatus===g.LocalStatus.Confirmation||g.currentLocalStatus===g.LocalStatus.Recall)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&g.currentLocalStatus===g.LocalStatus.PartlySigned),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&g.currentLocalStatus===g.LocalStatus.RequestIsSent),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader&&g.currentLocalStatus===g.LocalStatus.RecallIsSent))},dependencies:[i.sg,i.O5,xa.R,Yd,v_,r0.B,__.n,yi.X$],styles:[".tariff-card[_ngcontent-%COMP%]{display:flex;width:100%;height:auto;box-shadow:0 4px 30px #0000001f;margin-top:1em;padding:38px 50px}@media screen and (max-width: 1024px){.tariff-card[_ngcontent-%COMP%]{padding:40px 20px 20px}}.tariff-card[_ngcontent-%COMP%]   .caption[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:18px;line-height:25px;background:linear-gradient(270deg,#003ad2 0%,#0097ec 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.tariff-card[_ngcontent-%COMP%]   .left-block[_ngcontent-%COMP%]{width:59.09%;padding-right:40px}@media screen and (max-width: 1024px){.tariff-card[_ngcontent-%COMP%]   .left-block[_ngcontent-%COMP%]{padding-right:20px}}.tariff-card[_ngcontent-%COMP%]   .right-block[_ngcontent-%COMP%]{width:40.91%;padding-left:40px;flex-direction:column;display:flex;flex-grow:1}@media screen and (max-width: 1024px){.tariff-card[_ngcontent-%COMP%]   .right-block[_ngcontent-%COMP%]{padding-left:20px}}.tariff-card[_ngcontent-%COMP%]   .right-block[_ngcontent-%COMP%]   app-confirmation-block[_ngcontent-%COMP%]{max-width:350px;width:100%;display:flex;justify-content:center;margin-top:55px;flex-grow:1;align-items:initial}.tariff-card[_ngcontent-%COMP%]   .right-block__close[_ngcontent-%COMP%]{display:flex;justify-content:end}.tariff-card[_ngcontent-%COMP%]   .right-block[_ngcontent-%COMP%]   .sign-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1}.tariff-card[_ngcontent-%COMP%]   .right-block[_ngcontent-%COMP%]   .sign-result[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin:30px 0;text-align:center;white-space:pre-line}.tariff-card[_ngcontent-%COMP%]   .right-block[_ngcontent-%COMP%]     .loader__wrap{position:initial}.tariff-card[_ngcontent-%COMP%]   .vl[_ngcontent-%COMP%]{width:2px;background-image:linear-gradient(0deg,transparent,transparent 50%,#fff 50%,#fff 100%),linear-gradient(0deg,#003ad2 0%,#0097ec 100%);background-size:30px 3px,100% 100%}"]})}function J1(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"li"),e.\u0275\u0275element(1,"app-tariff-card",5),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit,g=s.index,V=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("isExistSentRequest",V.isExistSentRequest)("lastDateOfMonth",V.firstDateOfMonth)("tariff",o),e.\u0275\u0275attribute("data-qa","1657786401465"+g)}}function q1(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"ul",3),e.\u0275\u0275template(1,J1,2,4,"li",4),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.tariffs)}}function eb(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}(0,Wi.gn)([(0,yi.SQ)()],Zh.prototype,"lang",void 0);let lC=(()=>{class M{constructor(o){this.tariffService=o,this.isExistSentRequest=!1,this.loader=!1}ngOnInit(){this.loader=!0,this.tariffService.getAvailableTariffs().subscribe(o=>{this.isExistSentRequest=!!o.find(g=>!0===g.isNext),this.tariffs=o,this.loader=!1}),this.firstDateOfMonth=Ri()().add(1,"month").startOf("month").format("DD.MM.YYYY")}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(Jl.M))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-tariffs-tab"]],decls:3,vars:2,consts:[["data-qa","1657786371738"],["data-qa","1657787280994",4,"ngIf"],[4,"ngIf"],["data-qa","1657787280994"],[4,"ngFor","ngForOf"],[3,"isExistSentRequest","lastDateOfMonth","tariff"]],template:function(g,V){1&g&&(e.\u0275\u0275elementStart(0,"main",0),e.\u0275\u0275template(1,q1,2,1,"ul",1),e.\u0275\u0275template(2,eb,1,0,"app-loader",2),e.\u0275\u0275elementEnd()),2&g&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!V.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.loader))},dependencies:[i.sg,i.O5,xa.R,Zh]})}return M})();function tb(M,s){if(1&M&&e.\u0275\u0275element(0,"app-tab",7),2&M){const o=s.$implicit,g=s.index;e.\u0275\u0275property("label",o.capture)("number",o.number),e.\u0275\u0275attribute("data-qa","1657786764336"+g)}}function gv(M,s){1&M&&e.\u0275\u0275element(0,"app-tariffs-tab",8)}function nb(M,s){1&M&&e.\u0275\u0275element(0,"app-tariff-packages-tab",9)}class Yp{constructor(s,o){this.router=s,this.tariffsNewService=o,this.onClose=new e.EventEmitter,this.title="Tariffs",this.pathData=[{capture:"Tariffs management",href:"/tarif",bold:!0}],this.tabs=[{capture:"Tariffs",number:null,value:"tariffs"}],this.currentTab=this.tabs[0]}ngOnInit(){this.tariffsNewService.isShowPackage$.value?(this.title="Tariffs and packages",this.tabs.push({capture:"Additional packages",number:null,value:"packages"}),this.pathData.push({capture:"Tariffs and packages"})):this.pathData.push({capture:"Tariffs"})}onSelectTab(s){this.currentTab=this.tabs[s]}closePage(){this.onClose.emit()}static#e=this.\u0275fac=function(o){return new(o||Yp)(e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Du.iY))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Yp,selectors:[["app-tariffs-and-packages"]],inputs:{isShowPackage:"isShowPackage"},outputs:{onClose:"onClose"},decls:7,vars:8,consts:[["data-qa","1657786784079",3,"pathData","click"],["data-qa","1657786726820",3,"title","useNewTitle","withCloseButton","withTitle","close"],[1,"tabs-block"],["data-qa","1657786735699",3,"selectTab"],[3,"label","number",4,"ngFor","ngForOf"],["data-qa","1657786713156",4,"ngIf"],["data-qa","1657786717542",4,"ngIf"],[3,"label","number"],["data-qa","1657786713156"],["data-qa","1657786717542"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"app-path",0),e.\u0275\u0275listener("click",function(){return g.closePage()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(1,"app-page",1),e.\u0275\u0275listener("close",function(){return g.closePage()}),e.\u0275\u0275elementStart(2,"div",2)(3,"app-tabs",3),e.\u0275\u0275listener("selectTab",function(me){return g.onSelectTab(me)}),e.\u0275\u0275template(4,tb,1,3,"app-tab",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,gv,1,0,"app-tariffs-tab",5),e.\u0275\u0275template(6,nb,1,0,"app-tariff-packages-tab",6),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275property("pathData",g.pathData),e.\u0275\u0275advance(1),e.\u0275\u0275property("title",g.title)("useNewTitle",!0)("withCloseButton",!0)("withTitle",!0),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",g.tabs),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","tariffs"===g.currentTab.value),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","packages"===g.currentTab.value))},dependencies:[i.sg,i.O5,nr.n,Ra.i,ls.I,aa.l,cv,lC],styles:['@charset "UTF-8";.tabs-block[_ngcontent-%COMP%]{border-bottom:1px solid #f1f2f2}']})}function Jh(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-tariff-details",2),e.\u0275\u0275listener("openTariffs",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.setCurrentPage("tariffs-and-packages"))}),e.\u0275\u0275elementEnd()}}function ib(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-tariffs-and-packages",3),e.\u0275\u0275listener("onClose",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.setCurrentPage("tariff-details"))}),e.\u0275\u0275elementEnd()}}(0,Wi.gn)([(0,yi.SQ)()],Yp.prototype,"lang",void 0);class Hp{constructor(s){this.tariffPageService=s,this.destroyed$=new co.x}ngOnInit(){this.tariffPageService.getTariffTab().pipe((0,zn.R)(this.destroyed$)).subscribe(s=>this.currentPage=s)}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}setCurrentPage(s){this.tariffPageService.setTariffTab(s)}static#e=this.\u0275fac=function(o){return new(o||Hp)(e.\u0275\u0275directiveInject(n0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Hp,selectors:[["app-tariffs"]],decls:2,vars:2,consts:[["data-qa","1657786698310",3,"openTariffs",4,"ngIf"],["data-qa","1657786694529",3,"onClose",4,"ngIf"],["data-qa","1657786698310",3,"openTariffs"],["data-qa","1657786694529",3,"onClose"]],template:function(o,g){1&o&&(e.\u0275\u0275template(0,Jh,1,0,"app-tariff-details",0),e.\u0275\u0275template(1,ib,1,0,"app-tariffs-and-packages",1)),2&o&&(e.\u0275\u0275property("ngIf","tariff-details"===g.currentPage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","tariffs-and-packages"===g.currentPage))},dependencies:[i.O5,s0,Yp],styles:['@charset "UTF-8";.container[_ngcontent-%COMP%]   .tariffs-header[_ngcontent-%COMP%]{height:100px;width:100%;border-bottom:1px solid #dedede;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.container[_ngcontent-%COMP%]   .tariffs-header__title[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0}.container[_ngcontent-%COMP%]   .tariffs-header__title__text[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:28px;line-height:38px;display:flex;align-items:center;color:#000}.container[_ngcontent-%COMP%]   .tariffs-header__cross[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0;width:24px;height:24px}  .cross-orange{display:flex;align-items:center;position:absolute;width:18px;height:18px;background:linear-gradient(89.69deg,#f39034 2.03%,#ff2727 99.73%)}']})}(0,Wi.gn)([(0,yi.SQ)()],Hp.prototype,"lang",void 0);let vv=(()=>{class M{constructor(o,g){this.productService=o,this.router=g}canActivate(o,g){return this.productService.hasPartnerRurAccount$.pipe((0,uo.h)(V=>null!==V),(0,Ji.b)(V=>{!1===V&&this.router.navigate(["/"])}))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(ks.su),e.\u0275\u0275inject(bi.F0))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();const bv=[{path:"auth",loadChildren:()=>t.e(754).then(t.bind(t,86754)).then(M=>M.AuthModule)},{path:"desktop",component:lc,canActivate:[Qi]},{path:"template",loadChildren:()=>Promise.all([t.e(952),t.e(889)]).then(t.bind(t,55889)).then(M=>M.TransferRurModule),canActivate:[Qi,ca.w,zd.W],data:{isTemplate:!0,allowedServices:["OTHER/CREATE_TEMPLATE"]}},{path:"transfer-rur",loadChildren:()=>Promise.all([t.e(952),t.e(889)]).then(t.bind(t,55889)).then(M=>M.TransferRurModule),canActivate:[Qi,ca.w,zd.W],data:{allowedServices:["PAY/PLATPOR","PAY/PLATPOR_UL","PAY/PLATPOR_NALOG","PAY/PLATPOR_TAMOZ","PAY/PLATPOR_SELF"]}},{path:"transfer-rur/counterpart",loadChildren:()=>Promise.all([t.e(952),t.e(889)]).then(t.bind(t,55889)).then(M=>M.TransferRurModule),canActivate:[Qi,ca.w],data:{allowedServices:["PAY/PLATPOR"]}},{path:"transfer-rur-cti",loadChildren:()=>Promise.all([t.e(166),t.e(19)]).then(t.bind(t,95019)).then(M=>M.TransferRurCtiModule),canActivate:[Qi,Yl,vv],data:{roles:["ROLE_CLIENTUL_USER"],conditions:[h_.uN],checkRoleWithCondition:!0}},{path:"balance-transfer",loadChildren:()=>t.e(165).then(t.bind(t,73165)).then(M=>M.BalanceTransferModule),canActivate:[Qi,pl.n,Yl,vv],data:{roles:["ROLE_CLIENTUL_USER"],conditions:[qs.X_],checkRoleWithCondition:!0}},{path:"favorite-payments",component:Nl,canActivate:[Qi]},{path:"payments",component:$p,canActivate:[Qi,ca.w],data:{allowedServices:["PAY/PLATPOR"]}},{path:"mail",component:Mc,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL20"]}},{path:"mail-info",component:Vl,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL20"]}},{path:"mail-new",component:fl,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL20"]}},{path:"mail-sign",component:ah,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL20"]}},{path:"mail-report",component:Wu,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL20"]}},{path:"mailing",component:bd,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL"]}},{path:"mailing-info",component:cl,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL"]}},{path:"mailing-new",component:Js,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL"]}},{path:"mailing-sign",component:di,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL"]}},{path:"mailing-report",component:Pl,canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/MAIL"]}},{path:"archive",component:rs,canActivate:[Qi]},{path:"recent",component:rs,canActivate:[Qi]},{path:"old-mail-info",component:To,canActivate:[Qi]},{path:"product/:id",component:Qu,canActivate:[Qi]},{path:"payment-info",component:Ym,canActivate:[Qi]},{path:"operation-details",component:Cp,canActivate:[Qi]},{path:"sign",component:Ru,canActivate:[Qi]},{path:"references",component:Zg.x,canActivate:[Qi,ca.w],data:{allowedServices:["SERVICE_SECTIONS/REFERENCES_SECTION"]}},{path:"references/:page/:size",component:Zg.x,canActivate:[Qi,ca.w],data:{allowedServices:["SERVICE_SECTIONS/REFERENCES_SECTION"]}},{path:"package-sign",component:kl,canActivate:[Qi]},{path:"recall-order",component:wl,canActivate:[Qi]},{path:"power-of-attorney",component:ap,canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/POWER_OF_ATTORNEY"]}},{path:"power-of-attorney/:page/:size",component:ap,canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/POWER_OF_ATTORNEY"]}},{path:"power-of-attorney/edit",component:op,canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/POWER_OF_ATTORNEY"]}},{path:"package-sign",component:kl,canActivate:[Qi]},{path:"recall-order",component:wl,canActivate:[Qi]},{path:"certificates",loadChildren:()=>t.e(699).then(t.bind(t,94699)).then(M=>M.CertificatesModule),canActivate:[Qi,m_.U],data:{allowedCommonServices:["GADGET/CERT_UTIL"]}},{path:"counterparts",loadChildren:()=>Promise.all([t.e(52),t.e(578)]).then(t.bind(t,22578)).then(M=>M.CounterpartsModule),canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/CONTRACTOR"]}},{path:"credit",component:Au,canActivate:[Qi,Yl,ca.w,zd.W],data:{roles:["ROLE_CLIENTUL_USER"],allowedServices:["OTHER/CREDIT_CABINET"]}},{path:"credit-redirect/:reference-type",component:Au,canActivate:[Qi,Yl,ca.w,zd.W],data:{roles:["ROLE_CLIENTUL_USER"],allowedServices:["OTHER/CREDIT_CABINET"]}},{path:"bill",loadChildren:()=>t.e(734).then(t.bind(t,30734)).then(M=>M.BillModule),canActivate:[Qi,Yl,ca.w],data:{roles:["ROLE_CLIENTUL_USER"],allowedServices:["PAY/AMOUNTS_BILLED"]}},{path:"inkasso",loadChildren:()=>t.e(516).then(t.bind(t,8516)).then(M=>M.InkassoModule),canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/COLLECTION_INSTRUCTION"]}},{path:"applications",loadChildren:()=>Promise.all([t.e(948),t.e(592),t.e(384)]).then(t.bind(t,2384)).then(M=>M.ApplicationsModule),canActivate:[Qi]},{path:"closing-curr",loadChildren:()=>t.e(862).then(t.bind(t,86862)).then(M=>M.ClosingCurrModule),canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/CLOSE_CURR"]}},{path:"new",loadChildren:()=>Promise.all([t.e(592),t.e(349)]).then(t.bind(t,89349)).then(M=>M.NewProductsModule),canActivate:[Qi],data:{needToUpdatePing:!0}},{path:"average-balances",loadChildren:()=>t.e(809).then(t.bind(t,1809)).then(M=>M.AverageBalancesModule),canActivate:[Qi,tm],data:{needToUpdatePing:!0}},{path:"settings",loadChildren:()=>Promise.resolve().then(t.bind(t,16221)).then(M=>M.SettingsModule),canActivate:[Qi,pl.n,m_.U],data:{allowedCommonServices:["SECURITY_SETTINGS","SIGNER_INFORMATION","PHONE_CHANGE_STATEMENT","CONTACT_167","VIEW_DISMISSAL_REQUEST"],needToUpdatePing:!0}},{path:"ved",loadChildren:()=>Promise.all([t.e(948),t.e(166),t.e(52),t.e(794),t.e(869),t.e(592),t.e(494)]).then(t.bind(t,43494)).then(M=>M.VEDModule),canActivate:[Qi]},{path:"interbank-credits",loadChildren:()=>Promise.all([t.e(592),t.e(620)]).then(t.bind(t,90620)).then(M=>M.InterbankCreditsModule),canActivate:[Qi]},{path:"currency-exchange",loadChildren:()=>Promise.resolve().then(t.bind(t,63697)).then(M=>M.CurrencyExchangeModule),canActivate:[Qi,Yl,rp.H,zd.W],data:{roles:["ROLE_CLIENTUL_USER"],blockTypes:[1]}},{path:"risda",loadChildren:()=>Promise.all([t.e(592),t.e(876)]).then(t.bind(t,13876)).then(M=>M.RisdaModule),canActivate:[Qi,ca.w],data:{allowedServices:["OTHER/HEDGING"]}},{path:"collection-order-list",component:hl,canActivate:[Qi]},{path:"document-details",component:Wp._,canActivate:[Qi]},{path:"payment-req-out",component:Uh,canActivate:[Qi]},{path:"accept",component:o_,canActivate:[Qi]},{path:"deposits",loadChildren:()=>Promise.resolve().then(t.bind(t,99611)).then(M=>M.DepositsModule),canActivate:[Qi,Yl,ca.w],data:{roles:["ROLE_CLIENTUL_USER"],allowedServices:["OTHER/DEPOSITS_NSO"]}},{path:"dealing",loadChildren:()=>Promise.resolve().then(t.bind(t,40249)).then(M=>M.DealingModule),canActivate:[Qi,Yl,ca.w],data:{roles:["ROLE_CLIENTUL_USER"],conditions:[Du.Yc],allowedServices:["OTHER/DOCUMENTS_NSO_AGREEMENT"]}},{path:"service-product",loadChildren:()=>Promise.all([t.e(592),t.e(914)]).then(t.bind(t,55914)).then(M=>M.ServiceProductModule),canActivate:[Qi]},{path:"revoke-document",loadChildren:()=>t.e(105).then(t.bind(t,87756)).then(M=>M.RevokeDocumentModule),canActivate:[Qi]},{path:"opening-currency-account",loadChildren:()=>Promise.resolve().then(t.bind(t,67046)).then(M=>M.OpeningCurrencyAccountModule),canActivate:[Qi,Yl,zd.W],data:{roles:["ROLE_CLIENTUL_USER"],conditions:[Dc.wL],checkRoleWithCondition:!0}},{path:"opening-currency-account-history",loadChildren:()=>Promise.resolve().then(t.bind(t,71441)).then(M=>M.OpeningCurrencyAccountHistoryModule),canActivate:[Qi,Yl,rp.H,zd.W],data:{roles:["ROLE_CLIENTUL_USER"],blockTypes:[1],conditions:[Dc.wL],checkRoleWithCondition:!0}},{path:"help",component:Ld,canActivate:[Qi],data:{needToUpdatePing:!0}},{path:"tarif",component:Hp,canActivate:[Qi,ca.w],data:{allowedServices:["SERVICE_SECTIONS/TARIFF_UL"]}},{path:"sms-info",loadChildren:()=>Promise.resolve().then(t.bind(t,31196)).then(M=>M.SmsInfoModule),canActivate:[Qi,ca.w],data:{}},{path:"card-index",loadChildren:()=>t.e(508).then(t.bind(t,50508)).then(M=>M.CardIndexModule),canActivate:[Qi,ca.w],data:{allowedServices:["SERVICE_SECTIONS/CARD_INDEX"]}},{path:"zakaz_nalichnyh",loadChildren:()=>Promise.resolve().then(t.bind(t,71328)).then(M=>M.CashOrderModule),canActivate:[Qi,f_,ca.w],data:{allowedServices:["REQUEST/REQUEST_RECEIVE_CASH"]}},{path:"reliable-business",loadChildren:()=>Promise.resolve().then(t.bind(t,70418)).then(M=>M.ReliableBusinessModule),canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/AML_SUBSCRIPTION"]}},{path:Iu.UK,canActivate:[Qi,ca.w],loadChildren:()=>Promise.all([t.e(948),t.e(794),t.e(592),t.e(233)]).then(t.bind(t,40233)).then(M=>M.AcquiringModule),data:{allowedServices:["OTHER/MERCHANT_ACQUIRING","SERVICE_SECTIONS/PRODUCTS"]}},{path:Iu.v_,canActivate:[Qi,ca.w],loadChildren:()=>Promise.all([t.e(948),t.e(794),t.e(592),t.e(233)]).then(t.bind(t,40233)).then(M=>M.AcquiringModule),data:{allowedServices:["OTHER/MERCHANT_ACQUIRING_HARD_POS","SERVICE_SECTIONS/PRODUCTS"]}},{path:"sbp",loadChildren:()=>Promise.all([t.e(869),t.e(592),t.e(107)]).then(t.bind(t,27107)).then(M=>M.SBPModule),canActivate:[Qi,ca.w,rp.H],data:{allowedServices:["OTHER/SBP_SALARY","SERVICE_SECTIONS/PRODUCTS"],blockTypes:[4]}},{path:"sbp-qr",loadChildren:()=>Promise.all([t.e(948),t.e(592),t.e(326)]).then(t.bind(t,326)).then(M=>M.SBPQRModule),canActivate:[Qi,ca.w,rp.H],data:{allowedServices:["OTHER/QR_PAYMENTS","SERVICE_SECTIONS/PRODUCTS"],blockTypes:[4]}},{path:"acceptance",loadChildren:()=>t.e(829).then(t.bind(t,57829)).then(M=>M.AcceptanceModule),canActivate:[Qi,ca.w],data:{allowedServices:["SERVICE_SECTIONS/ACCEPT_APPLICATIONS"]}},{path:"minimum-balances",loadChildren:()=>t.e(783).then(t.bind(t,27783)).then(M=>M.MinimumBalancesModule),canActivate:[Qi,ca.w,ms],data:{allowedServices:["SERVICE_SECTIONS/NSO"]}},{path:"treasury",loadChildren:()=>Promise.all([t.e(592),t.e(696)]).then(t.bind(t,89938)).then(M=>M.TreasuryModule),canActivate:[Qi,rp.H],data:{blockTypes:[1],needToUpdatePing:!0}},{path:"one-window",loadChildren:()=>Promise.all([t.e(592),t.e(242)]).then(t.bind(t,39242)).then(M=>M.OneWindowModule),canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/REQUEST_SINGLE_WINDOW_ON"]}},{path:"aml-compliance",loadChildren:()=>Promise.all([t.e(948),t.e(782)]).then(t.bind(t,12782)).then(M=>M.AmlModule),canActivate:[Qi,ca.w],data:{allowedServices:["REQUEST/INQUIRER_AML"]}},{path:"**",redirectTo:"/desktop"},{path:"",redirectTo:"/desktop",pathMatch:"full"}];let ob=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[bi.Bz.forRoot(bv,{}),bi.Bz]})}return M})(),qh=(()=>{class M{constructor(o,g){this.apiService=o,this.configUtilService=g,this.activeSurveyId$=new Nc.X(null),this.surveys$=new Nc.X([])}getAvailableItems(){return this.apiService.get("surveys").pipe((0,lo.U)(o=>{try{const g=this.parseSurveyData(o);return this.surveys$.next(g),g}catch(g){return console.error(g),[]}}))}getItems(){return(0,An.of)([])}getItemById(o){return this.getItems().pipe((0,lo.U)(g=>g.find(V=>V.id===o)))}putOnHold(o){return this.apiService.post("surveys/hold",{ids:o.join(";")})}sendResult(o){return this.apiService.post("surveys/result",o)}parseSurveyData(o){return this.configUtilService.getArray(o).filter(g=>!!g.survey).map(g=>({id:g.id||"0",surveyId:g.survey.id,active:!g.isHolded,surveyCaption:g.survey?.topic,docDate:Ri()(g.survey?.startDate).format("YYYY-MM-DD"),questions:this.parseQuestionData(g.questions),isHolded:null!==g.survey?.status,commentary:g.survey?.commentary,startDate:g.survey?.startDate,expirationDate:g.survey?.expirationDate,url:g.survey?.url}))}parseQuestionData(o){return o.map((g,V)=>({id:g.id,questionId:g.id||V+1,surveyId:g.surveyId,questionText:g.question,questionType:g.typeOfQuestion,answers:this.parseAnswerData(g.answers),questionAnswer:"rating"===g.typeOfQuestion||"text"===g.typeOfQuestion?g.answers[0]?.additionalAnswer:null,questionNumber:g.questionNumber||V+1,rating:"rating"===g.typeOfQuestion?+g.answers[0]?.answer:null}))}parseAnswerData(o){return o?o.map(g=>({id:g.id,answerId:g.id,answerText:g.answer,additionalAnswer:g.additionalAnswer,isChecked:g.chosen})):[]}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(gc.s),e.\u0275\u0275inject(Ko.Pj))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();var ab=t(12181);function c0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-checkbox",16),e.\u0275\u0275listener("checkboxChange",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2).$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.onCheckboxClicked(V,me))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("label",o.answerText)("chosen",o.isChecked)}}function rb(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-radio",17),e.\u0275\u0275listener("changed",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2).$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.onRadioButtonClicked(V,me))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext().$implicit,g=e.\u0275\u0275nextContext(2).$implicit,V=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("chosen",o.isChecked)("label",o.answerText)("name",g.questionId)("value",o.answerId)("isInvalid",V.isInvalidQuestion(g))}}function Cv(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275template(1,c0,1,2,"app-checkbox",14),e.\u0275\u0275template(2,rb,1,5,"app-radio",15),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","checkbox"===o.questionType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","radiobutton"===o.questionType)}}function yv(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275template(1,Cv,3,2,"div",12),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.answers)}}const ef=function(M){return{shine:M}};function sb(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",18)(1,"div",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onRatingClicked(V,1))}),e.\u0275\u0275elementStart(2,"mat-icon"),e.\u0275\u0275text(3,"star"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onRatingClicked(V,2))}),e.\u0275\u0275elementStart(5,"mat-icon"),e.\u0275\u0275text(6,"star"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onRatingClicked(V,3))}),e.\u0275\u0275elementStart(8,"mat-icon"),e.\u0275\u0275text(9,"star"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onRatingClicked(V,4))}),e.\u0275\u0275elementStart(11,"mat-icon"),e.\u0275\u0275text(12,"star"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.onRatingClicked(V,5))}),e.\u0275\u0275elementStart(14,"mat-icon"),e.\u0275\u0275text(15,"star"),e.\u0275\u0275elementEnd()()()}if(2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,ef,o.rating>=1)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(7,ef,o.rating>=2)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,ef,o.rating>=3)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,ef,o.rating>=4)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(13,ef,o.rating>=5))}}function cb(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-metib-textarea-alt",20),e.\u0275\u0275listener("valueChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext().$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.onTextChange(V,me))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("maxLength",255)("isDcbAppearance",!0)("placeholder","\u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435")("formControlName","q_"+o.id)}}function l0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-metib-textarea-alt",20),e.\u0275\u0275listener("valueChange",function(V){e.\u0275\u0275restoreView(o);const me=e.\u0275\u0275nextContext().$implicit,yt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(yt.onTextChange(V,me))}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("maxLength",255)("isDcbAppearance",!0)("placeholder","\u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435")("formControlName","q_"+o.id)}}function lb(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div")(1,"div",7),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,yv,2,1,"div",8),e.\u0275\u0275template(4,sb,16,15,"div",9),e.\u0275\u0275template(5,cb,1,4,"app-metib-textarea-alt",10),e.\u0275\u0275template(6,l0,1,4,"app-metib-textarea-alt",10),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275classMap(o.questionType),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",o.questionNumber,". ",o.questionText," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","rating"!==o.questionType&&"text"!==o.questionType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","rating"===o.questionType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","rating"===o.questionType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","text"===o.questionType)}}function xv(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"form",5),e.\u0275\u0275template(1,lb,7,8,"div",6),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("formGroup",o.surveyForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.survey.questions)}}function db(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",21)(1,"app-button",22),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.submit())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"app-button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.putOnHold())}),e.\u0275\u0275elementEnd()()}2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("text","\u041e\u0442\u0432\u0435\u0442\u0438\u0442\u044c"),e.\u0275\u0275advance(1),e.\u0275\u0275property("text","\u041d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u043e\u0437\u0436\u0435"))}function ub(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}let pb=(()=>{class M{constructor(o,g,V){this.surveyService=o,this.formBuilder=g,this.toastService=V,this.surveyForm=this.formBuilder.group({}),this.destroyed$=new co.x,this._isSubmitClicked=!1}ngOnInit(){const o={};this.survey.questions.forEach(g=>o["q_"+g.id]=["",[l.Validators.required]]),this.surveyForm=this.formBuilder.group(o),this.survey.questions.filter(g=>"text"===g.questionType||"rating"===g.questionType).forEach(g=>{this.surveyForm.get("q_"+g.id).patchValue(g.answers[0]?.additionalAnswer)}),this.survey.questions.filter(g=>"radiobutton"===g.questionType||"checkbox"===g.questionType).forEach(g=>{this.surveyForm.get("q_"+g.id).patchValue(g.answers[0]?.answerText)})}isInvalidQuestion(o){return"radiobutton"===o.questionType&&!o.questionAnswer&&this._isSubmitClicked}putOnHold(){this.loader=!0,this.surveyService.putOnHold([this.survey.id]).pipe((0,Ec.K)(()=>(0,An.of)(null)),(0,Fi.w)(()=>this.surveyService.getAvailableItems()),(0,zn.R)(this.destroyed$)).subscribe(()=>{this.loader=!1,this.surveyService.activeSurveyId$.next(null)})}submit(){this.loader=!0;const o=this.survey.questions.map(V=>{if("rating"===V.questionType)return{id:V.id,questionId:V.questionId,surveyId:V.surveyId,typeOfQuestion:V.questionType,question:V.questionText,answers:[{id:V.answers[0]?.id,questionId:V.questionId,answer:""+V.rating,additionalAnswer:V.questionAnswer}]};if("checkbox"!==V.questionType&&"radiobutton"!==V.questionType||!V.answers)return{id:V.id,questionId:V.questionId,surveyId:V.surveyId,typeOfQuestion:V.questionType,question:V.questionText,answers:[{id:V.answers[0]?.id,questionId:V.questionId,answer:V.questionAnswer||"",additionalAnswer:V.questionAnswer}]};{const me=V.answers.map(yt=>({id:yt.id,questionId:V.questionId,answer:yt.answerText,chosen:yt.isChecked}));return{id:V.id,questionId:V.questionId,surveyId:V.surveyId,typeOfQuestion:V.questionType,question:V.questionText,answers:me}}}),g={id:this.survey.id,topic:this.survey.surveyCaption,commentary:this.survey.commentary,startDate:this.survey.startDate,expirationDate:this.survey.expirationDate,url:this.survey.url,isHolded:this.survey.isHolded,questions:o,survey:{id:this.survey.surveyId}};this._isSubmitClicked=!0,this.survey.questions.forEach(V=>this.surveyForm.get("q_"+V.id).markAsTouched()),this.surveyForm.valid&&!this.radiobuttonQuestionsAreInvalid()?this.surveyService.sendResult(g).pipe((0,Ec.K)(()=>(this.loader=!1,(0,An.of)(null))),(0,bc.q)(1),(0,Fi.w)(()=>this.surveyService.getAvailableItems())).subscribe(()=>{this.loader=!1,this.toastService.show("\u041e\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0439\u0434\u0435\u043d! \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c","success"),this.surveyService.activeSurveyId$.next(null)}):this.loader=!1}radiobuttonQuestionsAreInvalid(){const o=this.survey.questions.filter(g=>"radiobutton"===g.questionType);return o.length>0&&o.findIndex(g=>g.answers.every(V=>!V.isChecked))>-1}getRadioButtonOptions(o){return o.answers.map(g=>({value:g.isChecked?"true":"false",title:g.answerText}))}onRadioButtonClicked(o,g){const V=this.survey.questions.find(me=>me.id===g.id);V&&(V.answers?.forEach(me=>me.isChecked=me.id===o.id),V.questionAnswer=o.answerText,this.surveyForm.get("q_"+g.questionId).patchValue(o.answerText))}onRatingClicked(o,g){const V=this.survey.questions.find(me=>me.id===o.id);V&&(V.rating=g)}onCheckboxClicked(o,g){const V=this.survey.questions.find(me=>me.id===g.id);this.surveyForm.get("q_"+g.id).patchValue(!0),V.answers.filter(me=>me.id===o.id).forEach(me=>me.isChecked=!me.isChecked)}onTextChange(o,g){this.survey.questions.find(me=>me.id===g.id).questionAnswer=o}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(qh),e.\u0275\u0275directiveInject(l.UntypedFormBuilder),e.\u0275\u0275directiveInject(jo.j))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-survey-item"]],inputs:{survey:"survey"},decls:7,vars:4,consts:[[1,"survey-sidebar__survey-item"],[1,"survey-sidebar__header"],["class","survey-sidebar__content",3,"formGroup",4,"ngIf","ngIfElse"],["class","survey-sidebar__buttons",4,"ngIf"],["loaderBlock",""],[1,"survey-sidebar__content",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"survey-sidebar__content-question"],["class","survey-sidebar__content-answers",4,"ngIf"],["class","survey-sidebar__content-rating",4,"ngIf"],["class","wide-control",3,"maxLength","isDcbAppearance","placeholder","formControlName","valueChange",4,"ngIf"],[1,"survey-sidebar__content-answers"],["class","survey-sidebar__content-answers-row",4,"ngFor","ngForOf"],[1,"survey-sidebar__content-answers-row"],[3,"label","chosen","checkboxChange",4,"ngIf"],[3,"chosen","label","name","value","isInvalid","changed",4,"ngIf"],[3,"label","chosen","checkboxChange"],[3,"chosen","label","name","value","isInvalid","changed"],[1,"survey-sidebar__content-rating"],[1,"rating-star",3,"ngClass","click"],[1,"wide-control",3,"maxLength","isDcbAppearance","placeholder","formControlName","valueChange"],[1,"survey-sidebar__buttons"],["type","medium-for-sign-survey-blue",3,"text","click"],["type","medium-for-sign-survey",3,"text","click"]],template:function(g,V){if(1&g&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,xv,2,2,"form",2),e.\u0275\u0275template(4,db,3,2,"div",3),e.\u0275\u0275template(5,ub,1,0,"ng-template",null,4,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&g){const me=e.\u0275\u0275reference(6);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(V.survey.surveyCaption),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!V.loader)("ngIfElse",me),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!V.loader)}},dependencies:[i.mk,i.sg,i.O5,l.\u0275NgNoValidate,l.NgControlStatus,l.NgControlStatusGroup,l.FormGroupDirective,l.FormControlName,Xt.r,m.Hw,qo.U,rc.b,ab.T,xa.R],styles:['@charset "UTF-8";.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__header[_ngcontent-%COMP%]{font-weight:700;font-size:20px;color:#080708;line-height:32px;padding-bottom:32px}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:40px;padding-bottom:40px}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__content-question[_ngcontent-%COMP%]{padding-bottom:20px}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__content-answers[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__content-rating[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;padding-bottom:20px}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__content-rating[_ngcontent-%COMP%]   .rating-star[_ngcontent-%COMP%]{color:#dedede;cursor:pointer}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__content-rating[_ngcontent-%COMP%]   .rating-star.shine[_ngcontent-%COMP%]{color:#f1c86a}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__content-rating[_ngcontent-%COMP%]   .rating-star[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.survey-sidebar__survey-item[_ngcontent-%COMP%]   .survey-sidebar__buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:16px}']})}return M})();function mb(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-survey-item",3),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("survey",o.activeSurvey)}}function hb(M,s){1&M&&(e.\u0275\u0275elementStart(0,"mat-icon",22),e.\u0275\u0275text(1,"task_alt"),e.\u0275\u0275elementEnd())}function fb(M,s){1&M&&(e.\u0275\u0275elementStart(0,"mat-icon",23),e.\u0275\u0275text(1,"help_outline"),e.\u0275\u0275elementEnd())}function _b(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",24)(1,"div",25),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",26)(4,"span",27)(5,"a",28),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext().$implicit,me=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(me.goToSurvey(V))}),e.\u0275\u0275text(6,"\u041f\u0440\u043e\u0439\u0442\u0438 \u043e\u043f\u0440\u043e\u0441"),e.\u0275\u0275elementEnd()()()()}if(2&M){const o=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.surveyCaption)}}function gb(M,s){1&M&&(e.\u0275\u0275elementStart(0,"div",24)(1,"div",25),e.\u0275\u0275text(2,"\u041e\u043f\u0440\u043e\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c"),e.\u0275\u0275elementEnd()())}function d0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275template(1,hb,2,0,"mat-icon",18),e.\u0275\u0275template(2,fb,2,0,"mat-icon",19),e.\u0275\u0275template(3,_b,7,1,"div",20),e.\u0275\u0275template(4,gb,3,0,"ng-template",null,21,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&M){const o=s.$implicit,g=e.\u0275\u0275reference(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.active),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.active),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.active)("ngIfElse",g)}}function u0(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",13)(1,"div",14),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",15),e.\u0275\u0275template(4,d0,6,4,"div",16),e.\u0275\u0275elementEnd()()),2&M){const o=s.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(o.dateTitle),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",o.surveys)}}function Mv(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275template(1,u0,5,2,"div",12),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.groupedSurveys)}}function Dv(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",31),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.putOnHold())}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("text","\u041d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u043e\u0437\u0436\u0435")}function p0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-button",31),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(V.close())}),e.\u0275\u0275elementEnd()}2&M&&e.\u0275\u0275property("text","\u0417\u0430\u043a\u0440\u044b\u0442\u044c")}function Pv(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",29),e.\u0275\u0275template(1,Dv,1,1,"app-button",30),e.\u0275\u0275template(2,p0,1,1,"app-button",30),e.\u0275\u0275elementEnd()),2&M){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.hasSomeActive&&!o.loader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.hasSomeActive&&!o.loader)}}function Ev(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}function vb(M,s){if(1&M&&(e.\u0275\u0275elementStart(0,"div",4)(1,"div",5),e.\u0275\u0275text(2,"\u041e\u0446\u0435\u043d\u043a\u0430 \u0443\u0441\u043b\u0443\u0433 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",6)(4,"mat-icon",7),e.\u0275\u0275text(5,"star"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(6,Mv,2,1,"div",8),e.\u0275\u0275template(7,Pv,3,2,"div",9),e.\u0275\u0275template(8,Ev,1,0,"ng-template",null,10,e.\u0275\u0275templateRefExtractor)),2&M){const o=e.\u0275\u0275reference(9),g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",!g.loader)("ngIfElse",o),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!g.loader)}}let m0=(()=>{class M{constructor(o,g){this.surveyService=o,this.modalService=g,this.surveyList$=new Nc.X([]),this._surveys=[],this.destroyed$=new co.x}get hasSomeActive(){return this._surveys.some(o=>o.active)}ngOnInit(){this.surveyService.activeSurveyId$.pipe((0,zn.R)(this.destroyed$)).subscribe(o=>this.activeSurveyId=o),this.loader=!0,this.surveyService.surveys$.pipe((0,zn.R)(this.destroyed$)).subscribe(o=>{o&&0!==o.length?(this.surveyList$.next(o),o&&o.length>0&&(this._surveys=o,this.groupedSurveys=this.groupByDate(o)),this.loader=!1):this.modalService.close()})}goToSurvey(o){this.activeSurvey=o,this.surveyService.activeSurveyId$.next(o.id)}putOnHold(){this.loader=!0;const o=this._surveys.map(g=>g.id);this.surveyService.putOnHold(o).pipe((0,Ec.K)(()=>(0,An.of)(null)),(0,Fi.w)(()=>this.surveyService.getAvailableItems())).subscribe(()=>{this.loader=!1})}close(){this.modalService.close()}groupByDate(o){if(null===o)return[];const g=o.reduce(function(me,yt){return(me[yt.docDate]=me[yt.docDate]||[]).push(yt),me},{}),V=[];for(const[me,yt]of Object.entries(g)){const Zt=Ri()(me,"YYYY-MM-DD");let Pn=Zt.format("DD.MM.YYYY");Zt.isSame(Ri()().startOf("day"),"day")?Pn="\u0421\u0435\u0433\u043e\u0434\u043d\u044f":Zt.isSame(Ri()().add(-1,"day"),"day")&&(Pn="\u0412\u0447\u0435\u0440\u0430"),V.push({docDate:me,dateTitle:Pn,surveys:yt})}return V.sort((me,yt)=>me.docDate<yt.docDate?1:-1)}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275directiveInject(qh),e.\u0275\u0275directiveInject(La.Z))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-survey-sidebar"]],inputs:{surveys$:"surveys$"},decls:4,vars:2,consts:[[1,"survey-sidebar-wrapper"],[4,"ngIf","ngIfElse"],["surveyList",""],[3,"survey"],[1,"survey-sidebar__header"],[1,"header-text"],[1,"header-star"],[1,"shine"],["class","survey-sidebar__list",4,"ngIf","ngIfElse"],["class","survey-sidebar__button",4,"ngIf"],["loaderBlock",""],[1,"survey-sidebar__list"],["class","survey-sidebar__list-item",4,"ngFor","ngForOf"],[1,"survey-sidebar__list-item"],[1,"survey-sidebar__list-item-date"],[1,"survey-sidebar__list-items-for-date"],["class","survey-sidebar__list-item-block",4,"ngFor","ngForOf"],[1,"survey-sidebar__list-item-block"],["class","survey-sidebar__list-item-icon green",4,"ngIf"],["class","survey-sidebar__list-item-icon",4,"ngIf"],["class","survey-sidebar__list-item-content",4,"ngIf","ngIfElse"],["thankYou",""],[1,"survey-sidebar__list-item-icon","green"],[1,"survey-sidebar__list-item-icon"],[1,"survey-sidebar__list-item-content"],[1,"survey-sidebar__list-item-title"],[1,"survey-sidebar__list-item-link"],[1,"link"],[3,"click"],[1,"survey-sidebar__button"],["type","medium-for-sign-survey",3,"text","click",4,"ngIf"],["type","medium-for-sign-survey",3,"text","click"]],template:function(g,V){if(1&g&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,mb,2,1,"ng-container",1),e.\u0275\u0275template(2,vb,10,3,"ng-template",null,2,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&g){const me=e.\u0275\u0275reference(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.activeSurveyId)("ngIfElse",me)}},dependencies:[i.sg,i.O5,Xt.r,m.Hw,xa.R,pb],styles:['@charset "UTF-8";.survey-sidebar-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:100%;overflow:hidden;background:#ffffff;position:relative;font-family:Open Sans,Source Sans Pro,sans-serif}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__header[_ngcontent-%COMP%]{font-weight:700;font-size:24px;color:#080708;line-height:32px;padding-bottom:32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{height:32px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:calc(100vw - 80px)}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__header[_ngcontent-%COMP%]   .header-star[_ngcontent-%COMP%]{width:48px;height:48px;background-color:#f1f2f2;border:1px solid #f1f2f2;border-radius:100px;padding:10px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__header[_ngcontent-%COMP%]   .shine[_ngcontent-%COMP%]{background:linear-gradient(0deg,rgb(253,123,45) 0%,rgb(255,255,107) 45%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke-color:rgb(253,183,45);-webkit-text-stroke-width:1px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:12px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-items-for-date[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:20px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item[_ngcontent-%COMP%]{row-gap:12px;display:flex;flex-direction:column}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-date[_ngcontent-%COMP%]{color:#444;font-size:14px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-block[_ngcontent-%COMP%]{border:lightgray 1px solid;border-radius:8px;padding:16px;display:flex;flex-direction:row}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:4px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-icon[_ngcontent-%COMP%]{width:36px;color:#89909b;font-size:22px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-icon.green[_ngcontent-%COMP%]{color:#00a843}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-title[_ngcontent-%COMP%]{font-weight:600;font-size:16px;line-height:22px}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-link[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:22px;color:#2f54eb;cursor:pointer;height:36px;display:flex;flex-direction:column;justify-content:center}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__list-item-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border-bottom:1px solid blue}.survey-sidebar-wrapper[_ngcontent-%COMP%]   .survey-sidebar__button[_ngcontent-%COMP%]{padding-top:32px;width:186px}.survey-sidebar-wrapper__product-list[_ngcontent-%COMP%]{width:320px;height:100%;overflow-y:scroll;scrollbar-width:none}.survey-sidebar-wrapper__product-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.survey-sidebar-wrapper__chat-client[_ngcontent-%COMP%]{position:sticky;bottom:16px;height:122px;border-radius:2px;background:#dae0f2;font-size:14px;padding:20px 16px 21px 24px;width:320px}.survey-sidebar-wrapper__chat-client_flex[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.survey-sidebar-wrapper__chat-client_flex[_ngcontent-%COMP%]   .cross-close[_ngcontent-%COMP%]{flex-shrink:0}.survey-sidebar-wrapper__text[_ngcontent-%COMP%]{color:#080708;font-weight:400;margin-bottom:16px}.survey-sidebar-wrapper__link[_ngcontent-%COMP%]{color:#2f54eb;text-decoration:underline;font-weight:600;cursor:pointer}']})}return M})();var h0=t(11520),Ov=t(69109),C_=t(40451),Sv=t(48389);let bb=(()=>{class M{constructor(o,g,V){this.http=o,this._pathIcons="/assets/icons/shared.svg",(0,i.PM)(g)&&(this._pathIcons=`${V.location.origin}${this._pathIcons}`)}prefetchSharedSvg(){return this.http.get(this._pathIcons,{responseType:"text"}).pipe((0,bc.q)(1))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(d.eN),e.\u0275\u0275inject(e.PLATFORM_ID),e.\u0275\u0275inject(i.K0))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();var y_=t(26759),Cb=t(83814),Tv=t(59042),Hm=t(30148),Iv=t(56470);function wv(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-page-title",5),e.\u0275\u0275listener("closeEvent",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275elementEnd()}if(2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("closeButton",o.modalService.withCloseButton)("styleType",o.titleStyleType)("sbpQr",o.isTitleSBPLogo)("title",o.modalService.header)("backgroundColor",o.titleColor)}}function yb(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",7)(1,"div",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(V.onClose())}),e.\u0275\u0275elementEnd()()}}function f0(M,s){if(1&M&&e.\u0275\u0275template(0,yb,2,0,"div",6),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",!o.modalService.isSign)}}class sp{constructor(s){this.modalService=s}get titleStyleType(){return"forSign"===this.modalService.styleMode?"gray-background":"secondary"}get titleColor(){return"forSign"===this.modalService.styleMode?"gray":"white"}get isTitleSBPLogo(){return this.modalService.sbpLogo}overlayClick(s){"modal-overlay"===s.target.id&&this.modalService.close()}onClose(){this.modalService.close()}static#e=this.\u0275fac=function(o){return new(o||sp)(e.\u0275\u0275directiveInject(La.Z))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:sp,selectors:[["app-modal"]],decls:6,vars:32,consts:[["data-qa","1658988539050","id","modal-overlay",1,"hidden",3,"click"],[1,"inner-block"],["id","modal-container",1,"hidden"],["data-qa","1658988531325",3,"closeButton","styleType","sbpQr","title","backgroundColor","closeEvent",4,"ngIf","ngIfElse"],["withoutHeader",""],["data-qa","1658988531325",3,"closeButton","styleType","sbpQr","title","backgroundColor","closeEvent"],["class","cross-wrap",4,"ngIf"],[1,"cross-wrap"],["data-qa","1658988534687",1,"cross",3,"click"]],template:function(o,g){if(1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(me){return g.overlayClick(me)}),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,wv,1,5,"app-page-title",3),e.\u0275\u0275template(4,f0,1,1,"ng-template",null,4,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()()),2&o){const V=e.\u0275\u0275reference(5);e.\u0275\u0275classProp("gray-overlay",g.modalService.isGrayOverlay)("dark-overlay",g.modalService.isDarkOverlay),e.\u0275\u0275advance(2),e.\u0275\u0275styleProp("overflow",g.modalService.overflow),e.\u0275\u0275classProp("modal-big","big"===g.modalService.size)("modal-center","center"===g.modalService.position)("modal-narrow","narrow"===g.modalService.size)("modal-medium","medium"===g.modalService.size)("modal-tall","tall"===g.modalService.size)("modal-medium-sign","medium-sign"===g.modalService.size)("modal-auto-width","auto-width"===g.modalService.size)("no-padding-top",g.modalService.header)("no-scroll",g.modalService.noScroll)("modal-for-sign","forSign"===g.modalService.styleMode)("modal-sidebar","sidebar"===g.modalService.styleMode)("sign",g.modalService.isSign),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.modalService.header)("ngIfElse",V)}},dependencies:[i.O5,Al.T],styles:['@charset "UTF-8";.hidden[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:block}#modal-container[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;background:white;z-index:1101;padding:32px 40px 30px;min-width:550px;border-radius:8px;overflow:scroll}@media screen and (min-width: 375px) and (max-width: 768px){#modal-container[_ngcontent-%COMP%]{width:calc(100% - 32px);margin:auto 16px;min-width:unset;padding:32px 16px 30px}}#modal-container.no-scroll[_ngcontent-%COMP%]{overflow:initial}#modal-container.sign[_ngcontent-%COMP%]{padding:0}#modal-container.modal-big[_ngcontent-%COMP%]{width:1200px}@media screen and (max-width: 1680px){#modal-container.modal-big[_ngcontent-%COMP%]{width:1160px}}@media (max-width: 1200px){#modal-container.modal-big[_ngcontent-%COMP%]{width:calc(100vw - 50px)}}#modal-container.modal-narrow[_ngcontent-%COMP%]{width:550px;min-width:unset;max-height:930px;display:flex}#modal-container.modal-medium[_ngcontent-%COMP%]{min-width:550px;box-shadow:0 4px 30px #0000001f;border-radius:4px}#modal-container.modal-medium-sign[_ngcontent-%COMP%]{width:624px}@media screen and (max-width: 656px){#modal-container.modal-medium-sign[_ngcontent-%COMP%]{width:calc(100% - 32px);min-width:343px}}#modal-container.modal-medium-refund[_ngcontent-%COMP%]{height:385px;width:624px}#modal-container.modal-tall[_ngcontent-%COMP%]{width:724px}#modal-container.modal-auto-width[_ngcontent-%COMP%]{min-width:auto}#modal-container.modal-center[_ngcontent-%COMP%]{top:50%;transform:translate(-50%,-50%)}#modal-container.no-padding-top[_ngcontent-%COMP%]{padding-top:0!important}#modal-container.modal-for-sign[_ngcontent-%COMP%]{padding:0!important;border-radius:8px}#modal-container.modal-sidebar[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:500px;height:auto;min-height:100vh;border-radius:0;padding:32px 32px 48px}@media screen and (min-width: 375px) and (max-width: 768px){#modal-container.modal-sidebar[_ngcontent-%COMP%]{min-width:100%;margin-right:0;width:auto;padding:32px 16px 48px}}@media screen and (min-width: 375px) and (max-width: 768px){#modal-container[_ngcontent-%COMP%]{min-width:auto}}#modal-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:1101;width:100%;min-height:100vh;overflow-y:auto;transition:opacity .2s ease;background:rgba(8,7,8,.6);display:flex;justify-content:center;align-items:center}#modal-overlay.gray-overlay[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}#modal-overlay.dark-overlay[_ngcontent-%COMP%]{background:var(--background-modaloverlay)}.modal-cross-wrap[_ngcontent-%COMP%]{position:absolute;right:30px;top:35px}.inner-block[_ngcontent-%COMP%]{padding:83px 0;width:100%;display:flex;justify-content:center;align-items:center;min-height:100vh}']})}function xb(M,s){if(1&M&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-header",2)(2,"app-sidebar",3),e.\u0275\u0275elementContainerEnd()),2&M){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275classProp("open",o.userDataService.sidebarOpen),e.\u0275\u0275property("load",o.isSidebarLoader)("products$",o.productsService.productsFromServer$)}}function _0(M,s){if(1&M){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const V=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(V.userDataService.sidebarOpen=!V.userDataService.sidebarOpen)}),e.\u0275\u0275elementEnd()}}function Mb(M,s){1&M&&e.\u0275\u0275element(0,"app-footer")}function Av(M,s){1&M&&e.\u0275\u0275element(0,"app-chat")}(0,Wi.gn)([(0,yi.SQ)()],sp.prototype,"lang",void 0);class Kp{constructor(s,o,g,V,me,yt,Zt,Pn,Fn,Di,Ti,vo,Uo,bo,wo,ba,or,fs,qr,Ys,Ou,Cl,Oc){this.authService=s,this.userDataService=o,this.productsService=g,this.modalService=V,this.translation=me,this.mailService=yt,this.title=Zt,this.util=Pn,this.serverSettingsService=Fn,this.tariffsService=Di,this.router=Ti,this.lastOperationService=vo,this.chatService=Uo,this.changeDetectorRef=bo,this.toastService=wo,this.certificatesService=ba,this.attachmentService=or,this.configUtilService=fs,this.surveyService=qr,this.svgPrefetchService=Ys,this.r2=Ou,this.routerService=Cl,this.document=Oc,this.subscriptionConfig$=null,this.destroy$=new co.x,this.companies$=new Nc.X([]),this.isLogged=!1,this.isSidebarLoader=!0,this.isChatEnabled=!0,this.countUnreadMail=0,this.router.events.pipe((0,uo.h)(zc=>zc instanceof bi.R9),(0,h0.G)(),(0,zn.R)(this.destroy$)).subscribe(zc=>{this.routerService.setPreviousUrl(zc[0]?.urlAfterRedirects)})}get isShowMainContent(){return this.isLogged}get isDemo(){return this.configUtilService.getConfigs().pipe((0,lo.U)(s=>!!s.data?.demoLabel))}loadUnreadMails(s){this.countUnreadMail=s.unread,this.mailService.unreadMailNumber$.next(s)}startComponent(){this.userDataService.userData.appStarted=!0,(0,Jo.D)([this.userDataService.getCompanyList(),this.userDataService.getClientInfoEmployee(),this.certificatesService.getCertificates(),this.attachmentService.getAttachmentSetup(),this.serverSettingsService.getResource(this.serverSettingsService.servicesCommon,!0),this.productsService.getProducts(),this.userDataService.getClientInfoOrganization(!0)]).subscribe({next:([s,o,g,V,me])=>{this.showRutokenExpireNotification(g),this.attachmentService.setAttachmentSetup(V),this.companies$.next(s.company),this.userDataService.employeeInfo$.next(o),this.isSidebarLoader=!1,this.isChatEnabled=1===me["GADGET/CHAT"]},error:s=>{this.isSidebarLoader=!1,console.error(s)}})}showRutokenExpireNotification(s){s.filter(g=>g.cryptoTypeCode===Ov.d.Rutoken).forEach(g=>{const V=Ri()(),me=Ri()(g.validTo),yt=me.diff(V,"days");(5===yt||10===yt||15===yt)&&setTimeout(()=>{this.toastService.show(this.translation.translate("Rutoken certificate status valid date",{date:me.format("DD.MM.YYYY")}),"warning",null,{disableTimeOut:!0})},2e3)})}ngOnInit(){this.title.setTitle(this.translation.translate("Title")),this.subTitle=this.translation.translationChanged().pipe((0,zn.R)(this.destroy$)).subscribe(()=>{this.title=this.translation.translate("Title")}),this.authSubscription=this.authService.isLoggedIn$.pipe((0,zn.R)(this.destroy$)).subscribe(s=>{this.authService.passwordExpired?this.router.navigate(["/auth"]):(this.isLogged=s,s?(this.userDataService.userData.appStarted||this.startComponent(),this.chatService.toggleIconVision("block")):(this.userDataService.userData.appStarted=!1,this.userDataService.allCompanies$.next([]),this.chatService.toggleIconVision("none"),this.subscriptionConfig$&&this.subscriptionConfig$.unsubscribe()))}),this.userDataService.activeOrganizationChanged$.pipe((0,zn.R)(this.destroy$),(0,Fi.w)(()=>this.authService.isLoggedIn$),(0,Fi.w)(s=>s?this.serverSettingsService.getBooleanSetting(this.serverSettingsService.servicesUL,"OTHER/SURVEYS"):(0,An.of)({})),(0,Fi.w)(s=>s["OTHER/SURVEYS"]?this.surveyService.getAvailableItems():(0,An.of)([]))).subscribe(s=>{s.length>0&&this.modalService.open(m0,{overflow:"initial",size:"auto-width",styleMode:"sidebar",isSign:!0})}),this.svgPrefetchService.prefetchSharedSvg().pipe((0,zn.R)(this.destroy$)).subscribe(s=>{const o=this.r2.createElement("div");o.style.display="none",o.innerHTML=s,this.r2.appendChild(this.document.body,o)})}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}static#e=this.\u0275fac=function(o){return new(o||Kp)(e.\u0275\u0275directiveInject(zh.e),e.\u0275\u0275directiveInject(Da.M),e.\u0275\u0275directiveInject(ks.su),e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(yi.D7),e.\u0275\u0275directiveInject(tr.Y),e.\u0275\u0275directiveInject(n.Title),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(ws.l),e.\u0275\u0275directiveInject(Jl.M),e.\u0275\u0275directiveInject(bi.F0),e.\u0275\u0275directiveInject(Ka.o),e.\u0275\u0275directiveInject(C_.a),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(jo.j),e.\u0275\u0275directiveInject(Sv.Z),e.\u0275\u0275directiveInject(Ur.L),e.\u0275\u0275directiveInject(Ko.Pj),e.\u0275\u0275directiveInject(qh),e.\u0275\u0275directiveInject(bb),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(y_.c),e.\u0275\u0275directiveInject(i.K0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Kp,selectors:[["app-root"]],decls:10,vars:16,consts:[[4,"ngIf"],["class","ul-sidebar-mask mobile","data-qa","1657795730194",3,"click",4,"ngIf"],[1,"header-container"],[1,"ul-sidebar",3,"load","products$"],["data-qa","1657795730194",1,"ul-sidebar-mask","mobile",3,"click"]],template:function(o,g){1&o&&(e.\u0275\u0275template(0,xb,3,4,"ng-container",0),e.\u0275\u0275template(1,_0,1,0,"div",1),e.\u0275\u0275elementStart(2,"div"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275elementStart(5,"div"),e.\u0275\u0275element(6,"router-outlet"),e.\u0275\u0275template(7,Mb,1,0,"app-footer",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(8,"app-modal"),e.\u0275\u0275template(9,Av,1,0,"app-chat",0)),2&o&&(e.\u0275\u0275property("ngIf",g.isShowMainContent),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.userDataService.sidebarOpen),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("padding-right",e.\u0275\u0275pipeBind1(3,12,g.modalService.additionalPadding$)),e.\u0275\u0275classProp("ul-router-outlet-wrapper",g.isShowMainContent)("is-demo",e.\u0275\u0275pipeBind1(4,14,g.isDemo)),e.\u0275\u0275advance(3),e.\u0275\u0275classProp("ul-router-outlet",g.isShowMainContent),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isShowMainContent),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",g.isShowMainContent&&g.isChatEnabled))},dependencies:[bi.lC,Cb.k,Tv.G,Hm.c,Iv.P,i.O5,sp,i.Ov],styles:["@charset \"UTF-8\";body{height:100vh}app-footer{margin-top:auto}.ul-router-outlet{box-sizing:border-box;width:1200px;margin:auto;height:100%;display:flex;flex-direction:column}@media screen and (max-width: 1680px){.ul-router-outlet{padding:0}}@media screen and (max-width: 1440px){.ul-router-outlet{width:auto;max-width:1200px}}@media screen and (max-width: 1279px){.ul-router-outlet{padding:0 32px;width:100%}}@media screen and (max-width: 999px){.ul-router-outlet{padding:0 20px}}@media screen and (min-width: 375px) and (max-width: 768px){.ul-router-outlet{padding:0 16px}}.ul-router-outlet-wrapper{margin-left:320px;padding-top:100px;width:calc(100% - 320px);box-sizing:border-box;background-color:#f1f2f2;height:100%}.ul-router-outlet-wrapper.is-demo{padding-top:136px}@media screen and (max-width: 1599px){.ul-router-outlet-wrapper{width:100%;left:0;margin-left:0}}.ul-sidebar{width:320px;transition:width .5s ease 0s;height:100%;position:fixed;box-sizing:border-box;left:0;top:0;z-index:1100;box-shadow:0 4px 15px #0807080d;font-family:Open Sans,Source Sans Pro,sans-serif;color:#444;overflow:hidden}@media screen and (max-width: 1599px){.ul-sidebar{width:0;top:0}}.ul-sidebar.open{width:320px}@media screen and (max-width: 360px){.ul-sidebar.open{width:320px}}@media screen and (max-width: 1599px){.ul-sidebar.open{top:0}}@media screen and (max-width: 1024px){.ul-sidebar.open .sidebar-wrapper__product-new{transition:width .5s ease 0s;width:320px!important}}.ul-sidebar.closed{width:0;transition:width .5s ease 0s}.ul-sidebar.blocked{z-index:1000}.ul-sidebar .ul-sb{position:absolute;inset:95px -17px 0 0;overflow-y:scroll}.ul-sidebar .ul-sb .ul-title{height:60px;text-transform:uppercase;line-height:60px;font-size:1.5em;position:fixed;width:325px;z-index:99}.ul-sidebar .ul-sb>div:nth-child(2){margin-top:60px}.survey-sidebar{width:500px;transition:width .5s ease 0s;height:100%;position:fixed;box-sizing:border-box;right:0;top:0;z-index:1110;box-shadow:0 4px 15px #0807080d;font-family:Open Sans,Source Sans Pro,sans-serif;color:#444;overflow:hidden}.survey-sidebar.closed{width:0;transition:width .5s ease 0s}@media screen and (max-width: 1024px){.main-content{width:100%;left:0;padding:0}}@media screen and (max-width: 1680px){.main-content{padding:0}}.ul-sidebar-mask{position:fixed;height:100%;width:100%;cursor:pointer;background:rgba(0,0,0,.3);z-index:1001}@media screen and (max-width: 360px){.ul-sidebar-mask{width:calc(100% - 320px);left:320px}}.ul-sidebar-mask.survey{pointer-events:none;opacity:1;position:absolute;top:0;left:0;z-index:1101;width:100%;min-height:100vh;overflow-y:auto;transition:opacity .2s ease;background:rgba(8,7,8,.6);display:flex;justify-content:center;align-items:center}app-input.ng-invalid.ng-touched .panel-form__input__placeholder{color:#d9291e}app-input.ng-invalid.ng-touched .panel-form__input input{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}app-autocomplete.ng-invalid app-input.ng-touched .panel-form__input__placeholder{color:#d9291e}app-autocomplete.ng-invalid app-input.ng-touched .panel-form__input input{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}app-select.ng-invalid app-input.ng-touched .panel-form__input__placeholder{color:#d9291e}app-select.ng-invalid app-input.ng-touched .panel-form__input input{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}.panel-form__input.ng-touched input.ng-touched.ng-invalid,.autocomplete.ng-touched .panel-form__input input.ng-touched.ng-invalid{border-color:#d9291e;box-shadow:inset 0 0 0 1px #d9291e}hr{height:2px;background-color:#88909b;border:none}app-circle-diagram{display:block;box-sizing:border-box}app-tablet-circle-diagram{display:flex;height:100%}.no-more-info:hover{cursor:initial!important}.right-up-arrow-before{left:0!important;right:unset!important}.right-up-arrow-before:before{left:18px!important;top:calc(100% - 10px)!important;right:initial!important}.left-up-arrow-before{left:unset!important;right:0!important}.left-up-arrow-before:before{right:18px!important;top:calc(100% - 10px)!important;left:initial!important}.left-down-arrow-before{left:unset!important;right:0!important}.left-down-arrow-before:before{right:18px!important;top:-9px!important;left:initial!important}.right-down-arrow-before{left:0!important;right:unset!important}.right-down-arrow-before:before{left:18px!important;top:-9px!important;right:initial!important}app-wide-tablet{display:flex;flex-grow:1}.docs-for-sign{position:relative;min-height:100px}.docs-for-sign__select{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;background:rgba(222,222,222,.5);border:1px solid rgba(222,222,222,.5);padding:14px 20px;font-weight:400;font-size:16px;line-height:22px;color:#000;border-radius:4px}.docs-for-sign__flex{display:flex;align-items:center}.docs-for-sign__btn{margin-right:14px}.docs-for-sign__total-text{margin:0}.docs-for-sign__select-all{display:flex;align-items:center;margin-bottom:20px;padding:14px 20px;font-weight:400;font-size:16px;line-height:22px;color:#000;border-radius:4px;min-height:71px}.canceled{color:#e23428!important}.canceled--border{border-color:#e23428!important}.process{color:#2f54eb!important}.process--border{border-color:#2f54eb!important}.untracked{color:#f39034!important}.untracked--border{border-color:#f39034!important}.send{color:#00a843!important}.send--border{border-color:#00a843!important}app-tracker-gpi-modal,app-rb-sign-up-modal,app-rb-sign-off-modal,app-rb-sign-up-modal{display:flex;flex-grow:1}mat-paginator .mat-icon-button{background:none}mat-paginator .mat-icon-button:hover{background:none!important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{display:none}.mat-mdc-button-ripple{display:none!important}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#2f54eb}.ng-scroll-content{padding:4px}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading{border-color:#88909b}.mat-primary .mat-mdc-option .mdc-list-item__primary-text{display:flex;padding:12px 0;width:100%}.mat-mdc-select-arrow svg{display:none}.mat-primary .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:#444}.mat-primary .mat-pseudo-checkbox{display:none}.mat-mdc-select-arrow-wrapper{background-size:20px 20px;background-repeat:no-repeat;width:20px;height:20px;background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.99964 13.5614C9.9163 13.5614 9.83991 13.5475 9.77047 13.5197C9.70103 13.4919 9.63158 13.4433 9.56214 13.3739L5.43714 9.24887C5.32603 9.13776 5.27394 8.98845 5.28089 8.80095C5.28783 8.61345 5.34686 8.46415 5.45797 8.35303C5.59686 8.21415 5.74616 8.15512 5.90589 8.17595C6.06561 8.19678 6.20797 8.26276 6.33297 8.37387L9.99964 12.0405L13.6663 8.37387C13.7774 8.26276 13.9267 8.20026 14.1142 8.18637C14.3017 8.17248 14.451 8.23498 14.5621 8.37387C14.701 8.48498 14.7601 8.63081 14.7392 8.81137C14.7184 8.99192 14.6524 9.1447 14.5413 9.2697L10.4371 13.3739C10.3677 13.4433 10.2982 13.4919 10.2288 13.5197C10.1594 13.5475 10.083 13.5614 9.99964 13.5614Z' fill='%2388909B'/%3E%3C/svg%3E%0A\")}.opened .mat-mdc-select-arrow-wrapper{background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45823 12.3535C5.33323 12.2285 5.26726 12.0827 5.26031 11.916C5.25337 11.7493 5.3124 11.6035 5.4374 11.4785L9.5624 7.35352C9.63184 7.28407 9.70129 7.23546 9.77073 7.20768C9.84018 7.1799 9.91656 7.16602 9.9999 7.16602C10.0832 7.16602 10.1596 7.1799 10.2291 7.20768C10.2985 7.23546 10.368 7.28407 10.4374 7.35352L14.5624 11.4577C14.6874 11.5688 14.7499 11.7112 14.7499 11.8848C14.7499 12.0584 14.6874 12.2077 14.5624 12.3327C14.4374 12.4577 14.2881 12.5202 14.1145 12.5202C13.9409 12.5202 13.7916 12.4577 13.6666 12.3327L9.9999 8.68685L6.33323 12.3743C6.22212 12.4993 6.07976 12.5584 5.90615 12.5514C5.73254 12.5445 5.58323 12.4785 5.45823 12.3535Z' fill='%232F54EB'/%3E%3C/svg%3E%0A\")}.opened .mdc-text-field--focused .mat-mdc-select-arrow-wrapper{transform:rotate(180deg);background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45823 12.3535C5.33323 12.2285 5.26726 12.0827 5.26031 11.916C5.25337 11.7493 5.3124 11.6035 5.4374 11.4785L9.5624 7.35352C9.63184 7.28407 9.70129 7.23546 9.77073 7.20768C9.84018 7.1799 9.91656 7.16602 9.9999 7.16602C10.0832 7.16602 10.1596 7.1799 10.2291 7.20768C10.2985 7.23546 10.368 7.28407 10.4374 7.35352L14.5624 11.4577C14.6874 11.5688 14.7499 11.7112 14.7499 11.8848C14.7499 12.0584 14.6874 12.2077 14.5624 12.3327C14.4374 12.4577 14.2881 12.5202 14.1145 12.5202C13.9409 12.5202 13.7916 12.4577 13.6666 12.3327L9.9999 8.68685L6.33323 12.3743C6.22212 12.4993 6.07976 12.5584 5.90615 12.5514C5.73254 12.5445 5.58323 12.4785 5.45823 12.3535Z' fill='%232F54EB'/%3E%3C/svg%3E%0A\")!important}.opened .mdc-text-field--invalid .mat-mdc-select-arrow-wrapper{transform:rotate(180deg);background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.0006 13.5633C9.91728 13.5633 9.84089 13.5494 9.77145 13.5217C9.702 13.4939 9.63256 13.4453 9.56311 13.3758L5.43811 9.25082C5.327 9.13971 5.27492 8.9904 5.28186 8.8029C5.28881 8.6154 5.34784 8.4661 5.45895 8.35499C5.59784 8.2161 5.74714 8.15707 5.90686 8.1779C6.06658 8.19874 6.20895 8.26471 6.33395 8.37582L10.0006 12.0425L13.6673 8.37582C13.7784 8.26471 13.9277 8.20221 14.1152 8.18832C14.3027 8.17443 14.452 8.23693 14.5631 8.37582C14.702 8.48693 14.761 8.63277 14.7402 8.81332C14.7194 8.99388 14.6534 9.14665 14.5423 9.27165L10.4381 13.3758C10.3687 13.4453 10.2992 13.4939 10.2298 13.5217C10.1603 13.5494 10.0839 13.5633 10.0006 13.5633Z' fill='%23DD1C1A'/%3E%3C/svg%3E%0A\")}.mat-mdc-form-field.mat-focused.mat-primary .mat-mdc-select-arrow,.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#2f54eb}.mat-mdc-select{font-family:Open Sans,Source Sans Pro,sans-serif}.mat-mdc-select-value{color:#444}.mat-mdc-select-arrow{color:#88909b}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border-bottom-color:#88909b}.mdc-text-field--filled .mdc-line-ripple:after{border-bottom-color:#2f54eb}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{padding:0;max-height:290px}.mat-mdc-radio-button .mdc-form-field{font-family:Open Sans,Source Sans Pro,sans-serif}.mat-mdc-option.mdc-list-item{font-family:Open Sans,Source Sans Pro,sans-serif;font-weight:400;font-size:14px}.mat-mdc-option.mdc-list-item:not(:last-of-type){border-bottom:1px solid #f1f2f2}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#e23428}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border-bottom-width:2px;border-bottom-color:#e23428}.mat-mdc-form-field,.mat-mdc-floating-label{font-family:Open Sans,Source Sans Pro,sans-serif}.mat-mdc-optgroup-label{min-height:32px!important}.mdc-list-item__primary-text,.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--disabled .mdc-floating-label{color:#88909b}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#d9291e}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border-bottom-width:2px;border-bottom-color:#d9291e}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple:after{border-bottom-color:#d9291e}.mat-mdc-form-field-error{color:#d9291e}.mat-mdc-select-arrow-wrapper{background-size:20px 20px;background-repeat:no-repeat;width:20px;height:20px;background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.99964 13.5614C9.9163 13.5614 9.83991 13.5475 9.77047 13.5197C9.70103 13.4919 9.63158 13.4433 9.56214 13.3739L5.43714 9.24887C5.32603 9.13776 5.27394 8.98845 5.28089 8.80095C5.28783 8.61345 5.34686 8.46415 5.45797 8.35303C5.59686 8.21415 5.74616 8.15512 5.90589 8.17595C6.06561 8.19678 6.20797 8.26276 6.33297 8.37387L9.99964 12.0405L13.6663 8.37387C13.7774 8.26276 13.9267 8.20026 14.1142 8.18637C14.3017 8.17248 14.451 8.23498 14.5621 8.37387C14.701 8.48498 14.7601 8.63081 14.7392 8.81137C14.7184 8.99192 14.6524 9.1447 14.5413 9.2697L10.4371 13.3739C10.3677 13.4433 10.2982 13.4919 10.2288 13.5197C10.1594 13.5475 10.083 13.5614 9.99964 13.5614Z' fill='%2388909B'/%3E%3C/svg%3E%0A\")}.opened .mat-mdc-select-arrow-wrapper{background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45823 12.3535C5.33323 12.2285 5.26726 12.0827 5.26031 11.916C5.25337 11.7493 5.3124 11.6035 5.4374 11.4785L9.5624 7.35352C9.63184 7.28407 9.70129 7.23546 9.77073 7.20768C9.84018 7.1799 9.91656 7.16602 9.9999 7.16602C10.0832 7.16602 10.1596 7.1799 10.2291 7.20768C10.2985 7.23546 10.368 7.28407 10.4374 7.35352L14.5624 11.4577C14.6874 11.5688 14.7499 11.7112 14.7499 11.8848C14.7499 12.0584 14.6874 12.2077 14.5624 12.3327C14.4374 12.4577 14.2881 12.5202 14.1145 12.5202C13.9409 12.5202 13.7916 12.4577 13.6666 12.3327L9.9999 8.68685L6.33323 12.3743C6.22212 12.4993 6.07976 12.5584 5.90615 12.5514C5.73254 12.5445 5.58323 12.4785 5.45823 12.3535Z' fill='%232F54EB'/%3E%3C/svg%3E%0A\")}.opened .mdc-text-field--focused .mat-mdc-select-arrow-wrapper{transform:rotate(180deg);background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45823 12.3535C5.33323 12.2285 5.26726 12.0827 5.26031 11.916C5.25337 11.7493 5.3124 11.6035 5.4374 11.4785L9.5624 7.35352C9.63184 7.28407 9.70129 7.23546 9.77073 7.20768C9.84018 7.1799 9.91656 7.16602 9.9999 7.16602C10.0832 7.16602 10.1596 7.1799 10.2291 7.20768C10.2985 7.23546 10.368 7.28407 10.4374 7.35352L14.5624 11.4577C14.6874 11.5688 14.7499 11.7112 14.7499 11.8848C14.7499 12.0584 14.6874 12.2077 14.5624 12.3327C14.4374 12.4577 14.2881 12.5202 14.1145 12.5202C13.9409 12.5202 13.7916 12.4577 13.6666 12.3327L9.9999 8.68685L6.33323 12.3743C6.22212 12.4993 6.07976 12.5584 5.90615 12.5514C5.73254 12.5445 5.58323 12.4785 5.45823 12.3535Z' fill='%232F54EB'/%3E%3C/svg%3E%0A\")!important}.opened .mdc-text-field--invalid .mat-mdc-select-arrow-wrapper{transform:rotate(180deg);background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.0006 13.5633C9.91728 13.5633 9.84089 13.5494 9.77145 13.5217C9.702 13.4939 9.63256 13.4453 9.56311 13.3758L5.43811 9.25082C5.327 9.13971 5.27492 8.9904 5.28186 8.8029C5.28881 8.6154 5.34784 8.4661 5.45895 8.35499C5.59784 8.2161 5.74714 8.15707 5.90686 8.1779C6.06658 8.19874 6.20895 8.26471 6.33395 8.37582L10.0006 12.0425L13.6673 8.37582C13.7784 8.26471 13.9277 8.20221 14.1152 8.18832C14.3027 8.17443 14.452 8.23693 14.5631 8.37582C14.702 8.48693 14.761 8.63277 14.7402 8.81332C14.7194 8.99388 14.6534 9.14665 14.5423 9.27165L10.4381 13.3758C10.3687 13.4453 10.2992 13.4939 10.2298 13.5217C10.1603 13.5494 10.0839 13.5633 10.0006 13.5633Z' fill='%23DD1C1A'/%3E%3C/svg%3E%0A\")}mat-checkbox.mat-checkbox-checked.mat-accent .mat-checkbox-background{background:#2f54eb}mat-checkbox .mat-checkbox-inner-container{border-radius:4px;width:20px;height:20px}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:none}\n"],encapsulation:2})}(0,Wi.gn)([(0,yi.SQ)()],Kp.prototype,"lang",void 0),t(89455);var Lv=t(42221),Rv=t(71328),x_=t(99762);let Db=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[i.ez,Wm.m,x_.N,$m.h]})}return M})();var Fv=t(63697),Pb=t(40249),Eb=t(99611),g0=t(17869),dC=t(99602);function Bv(M,s){1&M&&e.\u0275\u0275element(0,"app-loader")}class tf{constructor(s,o,g){this.modalService=s,this.documentService=o,this.toast=g,this.load=!1}ngOnInit(){}close(){this.modalService.close()}delete(){this.load=!0,this.documentService.deleteDocumentTemplate(this.id).subscribe(()=>{this.load=!1,this.onSuccessDeletion&&this.onSuccessDeletion(),this.close()},s=>{this.toast.errorHandle(s),this.load=!1})}static#e=this.\u0275fac=function(o){return new(o||tf)(e.\u0275\u0275directiveInject(La.Z),e.\u0275\u0275directiveInject(Ao.Z),e.\u0275\u0275directiveInject(jo.j))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:tf,selectors:[["app-template-delete-modal"]],inputs:{id:"id",onSuccessDeletion:"onSuccessDeletion"},decls:10,vars:7,consts:[["matDatepickerToggleIcon","",1,"template-delete-modal"],[1,"template-delete-modal__header-value"],[1,"template-delete-modal__wrapper"],[1,"template-delete-modal__button"],["data-qa","1657962629512","text","Yes, delete","type","large",3,"clicked"],["data-qa","1657962632574","text","Cancel","type","small-bordered",3,"clicked"],[4,"ngIf"]],template:function(o,g){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",2)(5,"div",3)(6,"app-button",4),e.\u0275\u0275listener("clicked",function(){return g.delete()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",3)(8,"app-button",5),e.\u0275\u0275listener("clicked",function(){return g.close()}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(9,Bv,1,0,"app-loader",6)),2&o&&(e.\u0275\u0275classProp("load",g.load),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,4,"Are you sure you want to delete the template?",g.lang)," "),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",g.load))},dependencies:[dC.Q0,xa.R,i.O5,Xt.r,yi.X$],styles:['@charset "UTF-8";.template-delete-modal.load[_ngcontent-%COMP%]{opacity:.4}.template-delete-modal__title[_ngcontent-%COMP%]{font-size:33px;font-weight:600;color:#284681;border-bottom:1px solid #dedede;padding-bottom:32px}.template-delete-modal__header-value[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:#444;padding-top:30px;padding-bottom:20px}@media only screen and (min-width: 768px){.template-delete-modal__header-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}}.template-delete-modal__buttons[_ngcontent-%COMP%]{font-family:Open Sans,Source Sans Pro,sans-serif;display:flex;flex-wrap:wrap;gap:16px;margin-top:20px}.template-delete-modal__wrapper[_ngcontent-%COMP%]{display:flex}.template-delete-modal__button[_ngcontent-%COMP%]{padding-top:20px}.template-delete-modal__button[_ngcontent-%COMP%]:first-child{margin-right:20px}.template-delete-modal__button-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:60px;background:linear-gradient(251.59deg,#2f54eb 0%,#0e83df 99.45%);border-radius:5px}.template-delete-modal__button-label[_ngcontent-%COMP%]:hover{cursor:pointer}.template-delete-modal__button-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.template-delete-modal__button-label__input[_ngcontent-%COMP%]{display:none}.template-delete-modal__button.view[_ngcontent-%COMP%]{margin-right:20px}.template-delete-modal__button.load[_ngcontent-%COMP%]{width:170px}.template-delete-modal__button.disabled[_ngcontent-%COMP%], .template-delete-modal__select[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}(0,Wi.gn)([(0,yi.SQ)()],tf.prototype,"lang",void 0);var Nv=t(27719);const uC=[];let Ob=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[bi.Bz.forChild(uC),bi.Bz]})}return M})(),jv=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[Ad],imports:[i.ez,Ob,Wm.m,_s,Nv.n,r_.B,Vp.u,m.Ps]})}return M})();var Uv=t(71441),Vv=t(67046),$v=t(47687),Wv=t(95495),M_=t(37413);const zv=[{path:"",pathMatch:"full",component:ap},{path:"edit",pathMatch:"full",component:op},{path:"edit/:id",pathMatch:"full",component:op},{path:"**",redirectTo:"/desktop"}];let Yv=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[bi.Bz.forChild(zv),bi.Bz]})}return M})(),Hv=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[Wv.l],imports:[Wm.m,i.ez,M_.D,Yv,x_.N,j0.n,l.ReactiveFormsModule,l.FormsModule,$v.yj,Vp.u,r_.B,$m.h,O.AV,m.Ps,Wh.N6]})}return M})();var Kv=t(60515);let Gv=(()=>{class M{constructor(o,g){this.authService=o,this.router=g}intercept(o,g){return g.handle(o).pipe((0,Ec.K)(V=>401!==V.status||this.router.url.includes("/auth")?(0,zl._)(()=>V):(this.authService.isLoggedIn$.next(!1),this.authService.isLoadingAuthorization$.next(!1),this.router.navigate(["/auth"]),this.authService.sessionEnd(),Kv.E)))}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(zh.e),e.\u0275\u0275inject(bi.F0))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})(),nf=(()=>{class M{intercept(o,g){const V=o.clone({headers:o.headers.set("Cache-Control","no-cache").set("Cache-control","no-store").set("Expires","0").set("Pragma","no-cache")});return g.handle(V)}static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac})}return M})();var Qv=t(3794),Xv=t(502),Zv=t(39292),Jv=t(10092),qv=t(36290),e1=t(46409);let Sb=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[Jv.F,qv.v,e1.y]})}return M})();var pC=t(65197),t1=t(71573),n1=t(89435),o1=t(2561),a1=t(46451),r1=t(9626),af=t(59336);let Tb=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[gc.s,zh.e,Qi,f_,Xv.$,Ko.Pj,Sv.Z,Ba.w,ed.V,wi.c,Da.M,a1.X,ks.su,ws.l,pC.x,R0.F,tr.Y,o1.t,af.t,qh,C_.a,jr.$,jo.j,i.uU,r1.O,Jl.M,Pc.g,Ur.L,pl.n,rp.H,zd.W,ca.w,Zv.G,m_.U,Qv.Y,n1.X,i.H9,y_.c,t1.g],imports:[Sb]})}return M})();var v0=t(16221),Hd=t(20691),rf=(t(28356),t(54198),t(58723)),kb=(t(91175),t(71912),t(15693)),P_=t(36561),E_=t(23962),Lb=t(83584),Rb=t(7277),s1=t(57639),c1=t(93555),b0=t(48038);let l1=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[i.ez,l.FormsModule,l.ReactiveFormsModule,b0.Y,$m.h,m.Ps,c1.d,s1.n,Lb.B,Rb.M,Vg.q]})}return M})();t(54);const y0=[{path:"",component:Hp,children:[{path:"",component:s0},{path:"tariffs-and-packages",component:Yp}]},{path:"tarify-i-pakety",component:Yp}];let d1=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[bi.Bz.forChild(y0),bi.Bz]})}return M})();var x0=t(88210);let M0=(()=>{class M{static#e=this.\u0275fac=function(g){return new(g||M)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[i.ez,d1,yi.qw,Wm.m,M_.D,l.FormsModule,r_.B,Vp.u,Nv.n,x0.S]})}return M})();t(96636),t(26654),t(84441),(0,i.qS)(h);const jb={locale:{languages:[{code:"ru",dir:"ltr"}],defaultLocale:{languageCode:"ru",countryCode:"RU"},currency:"RUB",language:"ru",storage:yi.Qv.Cookie},translation:{providers:[{type:yi.lP.Static,prefix:"./assets/config/locale-"}],caching:!0,missingValue:null}};function u1(M){return()=>M.load()}let m1=(()=>{class M{constructor(o){this.l10nLoader=o,this.l10nLoader.load()}static#e=this.\u0275fac=function(g){return new(g||M)(e.\u0275\u0275inject(yi.mU))};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:M,bootstrap:[Kp]});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[{provide:e.APP_INITIALIZER,useFactory:u1,deps:[yi.mU],multi:!0},{provide:d.TP,useClass:nf,multi:!0},{provide:d.TP,useClass:Gv,multi:!0},{provide:x.ye,useClass:Hd.V},E_.u],imports:[d.JF,l.FormsModule,ob,Wm.m,Tb,l.ReactiveFormsModule,Br.QA,_s,x_.N,g0._,U0.b,v0.SettingsModule,Db,s_.F,yi.qw.forRoot(jb),Ic.Rh.forRoot({toastComponent:kb.q,preventDuplicates:!0}),Eb.DepositsModule,Pb.DealingModule,Eo,jv,Vv.OpeningCurrencyAccountModule,Uv.OpeningCurrencyAccountHistoryModule,Bs.SmsInfoModule,Lv.U,M_.D,M0,Rv.CashOrderModule,Hv,Vp.u,$m.h,r_.B,rf.Y,P_.D,al.ReliableBusinessModule,Fv.CurrencyExchangeModule,l1,O.AV,os.p,nc.kb,m.Ps,is.E]})}return M})();(0,e.enableProdMode)(),n.platformBrowser().bootstrapModule(m1).catch(M=>console.error(M))},5103:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>h});var n=t(36895),e=t(51572),i=t(94650);function d(l,m){if(1&l&&(i.\u0275\u0275elementStart(0,"span",2),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&l){const x=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(x.text)}}function a(l,m){1&l&&i.\u0275\u0275element(0,"mat-spinner")}const u=["*"];let h=(()=>{class l{constructor(){this.loading=!1}get isLoading(){return this.loading}static#e=this.\u0275fac=function(O){return new(O||l)};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:l,selectors:[["button"],["button","size-l",""],["button","size-m",""],["button","size-s",""],["button","size-xs",""],["button","primary",""],["button","secondary",""],["button","plain-incolor",""],["button","secondary-mono",""],["button","plain-mono",""]],hostVars:2,hostBindings:function(O,L){2&O&&i.\u0275\u0275classProp("loading",L.isLoading)},inputs:{text:"text",loading:"loading"},standalone:!0,features:[i.\u0275\u0275StandaloneFeature],ngContentSelectors:u,decls:3,vars:2,consts:[["class","text",4,"ngIf"],[4,"ngIf"],[1,"text"]],template:function(O,L){1&O&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,d,2,1,"span",0),i.\u0275\u0275template(2,a,1,0,"mat-spinner",1)),2&O&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",L.text),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",L.loading))},dependencies:[e.Cq,e.Ou,n.O5],styles:["[_nghost-%COMP%]{border:none;cursor:pointer;display:flex;justify-content:center;align-items:center;font-family:Open Sans;border-radius:var(--border-radius-s);font-size:14px;font-weight:600}.loading[_nghost-%COMP%]{pointer-events:none;position:relative}.loading[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{opacity:0}.loading[_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{position:absolute}[disabled][_nghost-%COMP%]{cursor:not-allowed}[right-icon][_nghost-%COMP%]{flex-direction:row-reverse}@media screen and (max-width: 768px){[mobile-wide][_nghost-%COMP%]{width:100%}}[size-l][_nghost-%COMP%]{padding:17px 28px;height:56px}[size-l][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{width:var(--icon-size-24)!important;height:var(--icon-size-24)!important}[size-l][right-icon][_nghost-%COMP%]{padding:16px 20px 16px 28px}[size-l][right-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-right:8px}[size-l][left-icon][_nghost-%COMP%]{padding:16px 28px 16px 20px}[size-l][left-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-left:8px}[size-l][right-icon][_nghost-%COMP%]:not(:has(.text)), [size-l][left-icon][_nghost-%COMP%]:not(:has(.text)){padding:16px!important}[size-m][_nghost-%COMP%]{padding:14px 28px;height:48px}[size-m][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{width:var(--icon-size-20)!important;height:var(--icon-size-20)!important}[size-m][right-icon][_nghost-%COMP%]{padding:14px 20px 14px 28px}[size-m][right-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-right:8px}[size-m][left-icon][_nghost-%COMP%]{padding:14px 28px 14px 20px}[size-m][left-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-left:8px}[size-m][right-icon][_nghost-%COMP%]:not(:has(.text)), [size-m][left-icon][_nghost-%COMP%]:not(:has(.text)){padding:14px!important}[size-s][_nghost-%COMP%]{padding:11px 24px;height:42px}[size-s][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{width:var(--icon-size-18)!important;height:var(--icon-size-18)!important}[size-s][right-icon][_nghost-%COMP%]{padding:11px 16px 11px 24px}[size-s][right-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-right:8px}[size-s][left-icon][_nghost-%COMP%]{padding:11px 24px 11px 16px}[size-s][left-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-left:8px}[size-s][right-icon][_nghost-%COMP%]:not(:has(.text)), [size-s][left-icon][_nghost-%COMP%]:not(:has(.text)){padding:12px!important}[size-xs][_nghost-%COMP%]{padding:8px 16px;height:36px}[size-xs][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{width:var(--icon-size-18)!important;height:var(--icon-size-18)!important}[size-xs][right-icon][_nghost-%COMP%]{padding:8px 12px 8px 16px}[size-xs][right-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-right:4px}[size-xs][left-icon][_nghost-%COMP%]{padding:8px 16px 8px 12px}[size-xs][left-icon][_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding-left:4px}[size-xs][right-icon][_nghost-%COMP%]:not(:has(.text)), [size-xs][left-icon][_nghost-%COMP%]:not(:has(.text)){padding:9px!important}[primary][_nghost-%COMP%]{color:var(--text-white);background:var(--background-blue)}[primary][_nghost-%COMP%]:hover:not([disabled]){opacity:.88}[primary][disabled][_nghost-%COMP%]{opacity:.6}[primary][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: var(--icons-white)}[secondary][_nghost-%COMP%]{color:var(--text-blue);background:transparent;border:1px solid var(--borders-blue)}[secondary][_nghost-%COMP%]:hover:not([disabled]){background:var(--background-blue-15)}[secondary][disabled][_nghost-%COMP%]{opacity:.6}[secondary][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: var(--icons-blue)}[plain-incolor][_nghost-%COMP%]{color:var(--text-blue);background:transparent}[plain-incolor][_nghost-%COMP%]:hover:not([disabled]){background:var(--background-blue-15)}[plain-incolor][disabled][_nghost-%COMP%]{opacity:.6}[plain-incolor][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: var(--icons-blue)}[secondary-mono][_nghost-%COMP%]{color:var(--text-dark-gray);background:transparent;border:1px solid var(--borders-gray)}[secondary-mono][_nghost-%COMP%]:hover:not([disabled]){border:1px solid var(--borders-dark-gray)}[secondary-mono][disabled][_nghost-%COMP%]{opacity:.5}[secondary-mono][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: var(--icons-dark-gray)}[plain-mono][_nghost-%COMP%]{color:var(--text-dark-gray);background:transparent}[plain-mono][_nghost-%COMP%]:hover:not([disabled]){background:var(--background-light-gray)}[plain-mono][disabled][_nghost-%COMP%]{opacity:.6}[plain-mono][_nghost-%COMP%]   mat-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: var(--icons-dark-gray)}"],changeDetection:0})}return l})()},31450:(Ee,Q,t)=>{"use strict";t.d(Q,{M:()=>Sn});var n=t(36895),e=t(24006),i=t(94650),d=t(3238),a=t(4883),u=t(98184),h=t(12687),l=t(21281),m=t(83353),x=t(37340),O=t(50727),L=t(77579),w=t(49770),B=t(56451),_=t(39646),y=t(54968),$=t(29521),C=t(84080),T=t(59549),j=t(68675),I=t(63900),F=t(95698),z=t(39300),X=t(54004),p=t(18505),P=t(91005),E=t(40445);const R=["panel"];function ne(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd()),2&ke){const q=ge.id,J=i.\u0275\u0275nextContext();i.\u0275\u0275property("id",J.id)("ngClass",J._classList)("@panelAnimation",J.isOpen?"visible":"hidden"),i.\u0275\u0275attribute("aria-label",J.ariaLabel||null)("aria-labelledby",J._getPanelAriaLabelledby(q))}}const G=["*"],ce=(0,x.X$)("panelAnimation",[(0,x.SB)("void, hidden",(0,x.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,x.eR)(":enter, hidden => visible",[(0,x.ru)([(0,x.jt)("0.03s linear",(0,x.oB)({opacity:1})),(0,x.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,x.oB)({transform:"scaleY(1)"}))])]),(0,x.eR)(":leave, visible => hidden",[(0,x.jt)("0.075s linear",(0,x.oB)({opacity:0}))])]);let xe=0;class we{constructor(ge,q){this.source=ge,this.option=q}}const Ge=(0,d.Kr)(class{}),ct=new i.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:function pe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let Ce=(()=>{class ke extends Ge{get isOpen(){return this._isOpen&&this.showPanel}_setColor(q){this._color=q,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(q){this._autoActiveFirstOption=(0,l.Ig)(q)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(q){this._autoSelectActiveOption=(0,l.Ig)(q)}set classList(q){this._classList=q&&q.length?(0,l.du)(q).reduce((J,Oe)=>(J[Oe]=!0,J),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(q,J,Oe,je){super(),this._changeDetectorRef=q,this._elementRef=J,this._defaults=Oe,this._activeOptionChanges=O.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new i.EventEmitter,this.opened=new i.EventEmitter,this.closed=new i.EventEmitter,this.optionActivated=new i.EventEmitter,this._classList={},this.id="mat-autocomplete-"+xe++,this.inertGroups=je?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new h.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(q=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[q]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(q){this.panel&&(this.panel.nativeElement.scrollTop=q)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(q){const J=new we(this,q);this.optionSelected.emit(J)}_getPanelAriaLabelledby(q){return this.ariaLabel?null:this.ariaLabelledby?(q?q+" ":"")+this.ariaLabelledby:q}_setVisibilityClasses(q){q[this._visibleClass]=this.showPanel,q[this._hiddenClass]=!this.showPanel}_setThemeClasses(q){q["mat-primary"]="primary"===this._color,q["mat-warn"]="warn"===this._color,q["mat-accent"]="accent"===this._color}}return ke.\u0275fac=function(q){return new(q||ke)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(ct),i.\u0275\u0275directiveInject(m.t4))},ke.\u0275dir=i.\u0275\u0275defineDirective({type:ke,viewQuery:function(q,J){if(1&q&&(i.\u0275\u0275viewQuery(i.TemplateRef,7),i.\u0275\u0275viewQuery(R,5)),2&q){let Oe;i.\u0275\u0275queryRefresh(Oe=i.\u0275\u0275loadQuery())&&(J.template=Oe.first),i.\u0275\u0275queryRefresh(Oe=i.\u0275\u0275loadQuery())&&(J.panel=Oe.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.\u0275\u0275InheritDefinitionFeature]}),ke})(),U=(()=>{class ke extends Ce{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(q){this._hideSingleSelectionIndicator=(0,l.Ig)(q),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const q of this.options)q._changeDetectorRef.markForCheck()}}return ke.\u0275fac=function(){let ge;return function(J){return(ge||(ge=i.\u0275\u0275getInheritedFactory(ke)))(J||ke)}}(),ke.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["mat-autocomplete"]],contentQueries:function(q,J,Oe){if(1&q&&(i.\u0275\u0275contentQuery(Oe,d.K7,5),i.\u0275\u0275contentQuery(Oe,d.ey,5)),2&q){let je;i.\u0275\u0275queryRefresh(je=i.\u0275\u0275loadQuery())&&(J.optionGroups=je),i.\u0275\u0275queryRefresh(je=i.\u0275\u0275loadQuery())&&(J.options=je)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[i.\u0275\u0275ProvidersFeature([{provide:d.HF,useExisting:ke}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:G,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(q,J){1&q&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,ne,3,5,"ng-template"))},dependencies:[n.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[ce]},changeDetection:0}),ke})();const oe={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>Xe),multi:!0},Ie=new i.InjectionToken("mat-autocomplete-scroll-strategy"),Ht={provide:Ie,deps:[u.aV],useFactory:function pt(ke){return()=>ke.scrollStrategies.reposition()}};let Wt=(()=>{class ke{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(q){this._autocompleteDisabled=(0,l.Ig)(q)}constructor(q,J,Oe,je,Et,dt,rt,qe,ze,zt,vt){this._element=q,this._overlay=J,this._viewContainerRef=Oe,this._zone=je,this._changeDetectorRef=Et,this._dir=rt,this._formField=qe,this._document=ze,this._viewportRuler=zt,this._defaults=vt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=O.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new L.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,w.P)(()=>{const Rt=this.autocomplete?this.autocomplete.options:null;return Rt?Rt.changes.pipe((0,j.O)(Rt),(0,I.w)(()=>(0,B.T)(...Rt.map(gt=>gt.onSelectionChange)))):this._zone.onStable.pipe((0,F.q)(1),(0,I.w)(()=>this.optionSelections))}),this._scrollStrategy=dt}ngAfterViewInit(){const q=this._getWindow();typeof q<"u"&&this._zone.runOutsideAngular(()=>q.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(q){q.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const q=this._getWindow();typeof q<"u"&&q.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,B.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,z.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,z.h)(()=>this._overlayAttached)):(0,_.of)()).pipe((0,X.U)(q=>q instanceof d.rN?q:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,B.T)((0,y.R)(this._document,"click"),(0,y.R)(this._document,"auxclick"),(0,y.R)(this._document,"touchend")).pipe((0,z.h)(q=>{const J=(0,m.sA)(q),Oe=this._formField?this._formField._elementRef.nativeElement:null,je=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&J!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Oe||!Oe.contains(J))&&(!je||!je.contains(J))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(J)}))}writeValue(q){Promise.resolve(null).then(()=>this._assignOptionValue(q))}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this._element.nativeElement.disabled=q}_handleKeydown(q){const J=q.keyCode,Oe=(0,$.Vb)(q);if(J===$.hY&&!Oe&&q.preventDefault(),this.activeOption&&J===$.K5&&this.panelOpen&&!Oe)this.activeOption._selectViaInteraction(),this._resetActiveItem(),q.preventDefault();else if(this.autocomplete){const je=this.autocomplete._keyManager.activeItem,Et=J===$.LH||J===$.JH;J===$.Mf||Et&&!Oe&&this.panelOpen?this.autocomplete._keyManager.onKeydown(q):Et&&this._canOpen()&&this.openPanel(),(Et||this.autocomplete._keyManager.activeItem!==je)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(q){let J=q.target,Oe=J.value;"number"===J.type&&(Oe=""==Oe?null:parseFloat(Oe)),this._previousValue!==Oe&&(this._previousValue=Oe,this._pendingAutoselectedOption=null,this._onChange(Oe),this._canOpen()&&this._document.activeElement===q.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(q=!1){this._formField&&"auto"===this._formField.floatLabel&&(q?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const q=this._zone.onStable.pipe((0,F.q)(1)),J=this.autocomplete.options.changes.pipe((0,p.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,P.g)(0));return(0,B.T)(q,J).pipe((0,I.w)(()=>(this._zone.run(()=>{const Oe=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Oe!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,F.q)(1)).subscribe(Oe=>this._setValueAndClose(Oe))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(q){const J=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(q):q;this._updateNativeInputValue(J??"")}_updateNativeInputValue(q){this._formField?this._formField._control.value=q:this._element.nativeElement.value=q,this._previousValue=q}_setValueAndClose(q){const J=q?q.source:this._pendingAutoselectedOption;J&&(this._clearPreviousSelectedOption(J),this._assignOptionValue(J.value),this._onChange(J.value),this.autocomplete._emitSelectEvent(J),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(q){this.autocomplete.options.forEach(J=>{J!==q&&J.selected&&J.deselect()})}_attachOverlay(){let q=this._overlayRef;q?(this._positionStrategy.setOrigin(this._getConnectedElement()),q.updateSize({width:this._getPanelWidth()})):(this._portal=new C.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),q=this._overlay.create(this._getOverlayConfig()),this._overlayRef=q,this._handleOverlayEvents(q),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&q&&q.updateSize({width:this._getPanelWidth()})})),q&&!q.hasAttached()&&(q.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const J=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&J!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new u.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const q=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(q),this._positionStrategy=q,q}_setStrategyPositions(q){const J=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Oe=this._aboveClass,je=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Oe},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Oe}];let Et;Et="above"===this.position?je:"below"===this.position?J:[...J,...je],q.withPositions(Et)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const q=this.autocomplete;q.autoActiveFirstOption?q._keyManager.setFirstItemActive():q._keyManager.setActiveItem(-1)}_canOpen(){const q=this._element.nativeElement;return!q.readOnly&&!q.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(q){const J=this.autocomplete,Oe=(0,d.CB)(q,J.options,J.optionGroups);if(0===q&&1===Oe)J._setScrollTop(0);else if(J.panel){const je=J.options.toArray()[q];if(je){const Et=je._getHostElement(),dt=(0,d.jH)(Et.offsetTop,Et.offsetHeight,J._getScrollTop(),J.panel.nativeElement.offsetHeight);J._setScrollTop(dt)}}}_handleOverlayEvents(q){q.keydownEvents().subscribe(J=>{(J.keyCode===$.hY&&!(0,$.Vb)(J)||J.keyCode===$.LH&&(0,$.Vb)(J,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),J.stopPropagation(),J.preventDefault())}),q.outsidePointerEvents().subscribe()}}return ke.\u0275fac=function(q){return new(q||ke)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(u.aV),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(Ie),i.\u0275\u0275directiveInject(E.Is,8),i.\u0275\u0275directiveInject(T.G_,9),i.\u0275\u0275directiveInject(n.K0,8),i.\u0275\u0275directiveInject(a.rL),i.\u0275\u0275directiveInject(ct,8))},ke.\u0275dir=i.\u0275\u0275defineDirective({type:ke,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.\u0275\u0275NgOnChangesFeature]}),ke})(),Xe=(()=>{class ke extends Wt{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return ke.\u0275fac=function(){let ge;return function(J){return(ge||(ge=i.\u0275\u0275getInheritedFactory(ke)))(J||ke)}}(),ke.\u0275dir=i.\u0275\u0275defineDirective({type:ke,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(q,J){1&q&&i.\u0275\u0275listener("focusin",function(){return J._handleFocus()})("blur",function(){return J._onTouched()})("input",function(je){return J._handleInput(je)})("keydown",function(je){return J._handleKeydown(je)})("click",function(){return J._handleClick()}),2&q&&i.\u0275\u0275attribute("autocomplete",J.autocompleteAttribute)("role",J.autocompleteDisabled?null:"combobox")("aria-autocomplete",J.autocompleteDisabled?null:"list")("aria-activedescendant",J.panelOpen&&J.activeOption?J.activeOption.id:null)("aria-expanded",J.autocompleteDisabled?null:J.panelOpen.toString())("aria-owns",J.autocompleteDisabled||!J.panelOpen||null==J.autocomplete?null:J.autocomplete.id)("aria-haspopup",J.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[i.\u0275\u0275ProvidersFeature([oe]),i.\u0275\u0275InheritDefinitionFeature]}),ke})(),Qe=(()=>{class ke{}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({providers:[Ht],imports:[u.U8,d.Ng,d.BQ,n.ez,a.ZD,d.Ng,d.BQ]}),ke})();var Be=t(97392),at=t(284),lt=t(84385);const Dt=ke=>{const ge=ke.value,q=ke.hasValidator(e.Validators.required);return"string"==typeof ge&&(q||ge.length>0)?{incorrectAutocomplete:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430"}:null};var Yt=t(83135);const Tt=["autoCompleteInput"];function ot(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-label"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.label)}}function Gt(ke,ge){if(1&ke){const q=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"mat-icon",9),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(q);const Oe=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(Oe.formControl.reset())}),i.\u0275\u0275text(1,"close"),i.\u0275\u0275elementEnd()}}function wt(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-icon",10),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.suffixMatIcon)}}function Ze(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",14),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",q.description," ")}}function Ut(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-option",11)(1,"div",12),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,Ze,2,1,"div",13),i.\u0275\u0275elementEnd()),2&ke){const q=ge.$implicit;i.\u0275\u0275property("value",q),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",q.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",q.description)}}function vn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-option",15)(1,"div",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(q.emptyOptionTitle)}}function xn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-error"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=ge.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q)}}function bn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-hint"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.hint)}}function hn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-form-field"),i.\u0275\u0275template(1,ot,2,1,"mat-label",0),i.\u0275\u0275element(2,"input",1),i.\u0275\u0275template(3,Gt,2,0,"mat-icon",2),i.\u0275\u0275template(4,wt,2,1,"mat-icon",3),i.\u0275\u0275elementStart(5,"mat-autocomplete",4,5),i.\u0275\u0275template(7,Ut,4,3,"mat-option",6),i.\u0275\u0275pipe(8,"async"),i.\u0275\u0275template(9,vn,3,1,"mat-option",7),i.\u0275\u0275pipe(10,"async"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(11,xn,2,1,"mat-error",8),i.\u0275\u0275pipe(12,"async"),i.\u0275\u0275template(13,bn,2,1,"mat-hint",0),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275reference(6),J=i.\u0275\u0275nextContext();let Oe;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.label&&J.formControl.value),i.\u0275\u0275advance(1),i.\u0275\u0275property("placeholder",J.label)("formControl",J.formControl)("matAutocomplete",q),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.formControl.value),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.suffixMatIcon),i.\u0275\u0275advance(1),i.\u0275\u0275property("hideSingleSelectionIndicator",!0)("displayWith",J.displayValue)("autoActiveFirstOption",!1),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",i.\u0275\u0275pipeBind1(8,13,J.filteredOptions)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",!(null!=(Oe=i.\u0275\u0275pipeBind1(10,15,J.filteredOptions))&&Oe.length)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",i.\u0275\u0275pipeBind1(12,17,J.errors$)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",J.hint)}}function pn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-label"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.label)}}function In(ke,ge){if(1&ke){const q=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"mat-icon",9),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(q);const Oe=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(Oe.formControl.reset())}),i.\u0275\u0275text(1,"close"),i.\u0275\u0275elementEnd()}}function Dn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-icon",10),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.suffixMatIcon)}}function Tn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",22),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.titleRight)}}function mn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",25),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext(2).$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.descriptionRight)}}function Yn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",14)(1,"div",23),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,mn,2,1,"div",24),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(q.description),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",q.descriptionRight)}}function cn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-option",11)(1,"div",12)(2,"div",20),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(4,Tn,2,1,"div",21),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(5,Yn,4,2,"div",13),i.\u0275\u0275elementEnd()),2&ke){const q=ge.$implicit;i.\u0275\u0275property("value",q.value),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(q.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",q.titleRight),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",q.description||q.descriptionRight)}}function Nn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-optgroup",19),i.\u0275\u0275template(1,cn,6,4,"mat-option",6),i.\u0275\u0275elementEnd()),2&ke){const q=ge.$implicit,J=i.\u0275\u0275nextContext(2);i.\u0275\u0275classMap("optgroup-label-"+J.optionGroupColor),i.\u0275\u0275property("label",q.name),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",q.items)}}function Bt(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-option",15)(1,"div",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(q.emptyOptionTitle)}}function En(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-error"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=ge.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q)}}function Wn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-hint"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(q.hint)}}function rn(ke,ge){if(1&ke&&(i.\u0275\u0275elementStart(0,"mat-form-field"),i.\u0275\u0275template(1,pn,2,1,"mat-label",0),i.\u0275\u0275element(2,"input",1),i.\u0275\u0275template(3,In,2,0,"mat-icon",2),i.\u0275\u0275template(4,Dn,2,1,"mat-icon",3),i.\u0275\u0275elementStart(5,"mat-autocomplete",4,17),i.\u0275\u0275template(7,Nn,2,4,"mat-optgroup",18),i.\u0275\u0275pipe(8,"async"),i.\u0275\u0275template(9,Bt,3,1,"mat-option",7),i.\u0275\u0275pipe(10,"async"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(11,En,2,1,"mat-error",8),i.\u0275\u0275pipe(12,"async"),i.\u0275\u0275template(13,Wn,2,1,"mat-hint",0),i.\u0275\u0275elementEnd()),2&ke){const q=i.\u0275\u0275reference(6),J=i.\u0275\u0275nextContext();let Oe;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.label&&J.formControl.value),i.\u0275\u0275advance(1),i.\u0275\u0275property("placeholder",J.label)("formControl",J.formControl)("matAutocomplete",q),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.formControl.value),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.suffixMatIcon),i.\u0275\u0275advance(1),i.\u0275\u0275property("hideSingleSelectionIndicator",!0)("displayWith",J.displayValue)("autoActiveFirstOption",!1),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",i.\u0275\u0275pipeBind1(8,13,J.filteredGroupOptions)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",!(null!=(Oe=i.\u0275\u0275pipeBind1(10,15,J.filteredGroupOptions))&&Oe.length)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",i.\u0275\u0275pipeBind1(12,17,J.errors$)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",J.hint)}}let Sn=(()=>{class ke extends Yt.P{get options(){return this._options}get groupOptions(){return this._groupOptions}set options(q){this._options=q,this.setFilteredOptions()}set groupOptions(q){this._groupOptions=q,this.setFilteredGroupOptions()}filter(q){const J=q?.title,Oe=J?J.toLowerCase():String(q).toLowerCase();return this.options.filter(je=>`${je.value} ${je.title} ${je.description||""} ${je.additionalFilterValue||""}`.trim().toLowerCase().includes(Oe))}constructor(q,J,Oe){super(q,J),this.cdr=Oe,this._options=[],this._groupOptions=[],this.isGroupAutocomplete=!1,this.isRequireMatch=!0,this.optionGroupColor="gray",this.emptyOptionTitle="\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e"}setFilteredOptions(){this.formControl&&(this.filteredOptions=this.formControl.valueChanges.pipe((0,j.O)(""),(0,X.U)(q=>this.filter(q||""))))}setFilteredGroupOptions(){this.formControl&&(this.filteredGroupOptions=this.formControl.valueChanges.pipe((0,j.O)(""),(0,X.U)(q=>this.filterGroup(q))))}filterGroup(q){const J=q?.title,Oe=J?J.toLowerCase():String(q).toLowerCase();return q?this.groupOptions.map(je=>({name:je.name,items:this._filterGroupItems(je.items,Oe)})).filter(je=>je.items.length>0):this.groupOptions}_filterGroupItems(q,J){return q.filter(Oe=>`${Oe.value} ${Oe.title} ${Oe.description||""} ${Oe.additionalFilterValue||""}`.trim().toLowerCase().includes(J))}addError(){return this.formControl.errors?.incorrectAutocomplete&&this.formControl.errors?.required&&delete this.formControl.errors.required,super.addError()}ngAfterContentInit(){super.ngAfterContentInit(),this.formControl&&this.isRequireMatch&&this.formControl.addValidators(Dt),this.isGroupAutocomplete?this.setFilteredGroupOptions():this.setFilteredOptions()}displayValue(q){return q?.title??""}ngAfterViewChecked(){this.cdr.markForCheck()}static#e=this.\u0275fac=function(J){return new(J||ke)(i.\u0275\u0275directiveInject(e.NgControl,10),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["app-metib-autocomplete-lib"]],viewQuery:function(J,Oe){if(1&J&&i.\u0275\u0275viewQuery(Tt,5,Xe),2&J){let je;i.\u0275\u0275queryRefresh(je=i.\u0275\u0275loadQuery())&&(Oe.trigger=je.first)}},inputs:{options:"options",groupOptions:"groupOptions",isGroupAutocomplete:"isGroupAutocomplete",isRequireMatch:"isRequireMatch",optionGroupColor:"optionGroupColor",suffixMatIcon:"suffixMatIcon",emptyOptionTitle:"emptyOptionTitle"},standalone:!0,features:[i.\u0275\u0275ProvidersFeature([{provide:ct,useValue:{overlayPanelClass:"metib-select-overlay-panel-class"}},{provide:d.Y2,useValue:{disabled:!0}}]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275StandaloneFeature],decls:2,vars:2,consts:[[4,"ngIf"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],["fontSet","material-symbols-rounded","class","icon-22 close mr0","matSuffix","",3,"click",4,"ngIf"],["matSuffix","",4,"ngIf"],[3,"hideSingleSelectionIndicator","displayWith","autoActiveFirstOption"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disabled","",4,"ngIf"],[4,"ngFor","ngForOf"],["fontSet","material-symbols-rounded","matSuffix","",1,"icon-22","close","mr0",3,"click"],["matSuffix",""],[3,"value"],[1,"mat-option-title"],["class","mat-option-description",4,"ngIf"],[1,"mat-option-description"],["disabled",""],[1,"mat-option-title--empty"],["autoGroup","matAutocomplete"],[3,"label","class",4,"ngFor","ngForOf"],[3,"label"],[1,"mat-option-title-left"],["class","mat-option-title-right",4,"ngIf"],[1,"mat-option-title-right"],[1,"mat-option-description-left"],["class","mat-option-description-right",4,"ngIf"],[1,"mat-option-description-right"]],template:function(J,Oe){1&J&&(i.\u0275\u0275template(0,hn,14,19,"mat-form-field",0),i.\u0275\u0275template(1,rn,14,19,"mat-form-field",0)),2&J&&(i.\u0275\u0275property("ngIf",!Oe.isGroupAutocomplete),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Oe.isGroupAutocomplete))},dependencies:[T.lN,T.KE,T.hX,T.bx,T.TO,T.R9,e.ReactiveFormsModule,e.DefaultValueAccessor,e.NgControlStatus,e.FormControlDirective,Qe,U,d.ey,d.Nv,Xe,lt.LD,n.Ov,n.sg,at.c,at.Nt,n.O5,Be.Ps,Be.Hw],changeDetection:0})}return ke})()},83135:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>x});var n=t(24006),e=t(77579),i=t(39841),d=t(68675),a=t(71884),u=t(54004),h=t(82722),l=t(94650);class m{constructor(L){this.ngControl=L}isErrorState(L,w){return!(!this.ngControl||!this.ngControl.invalid&&!L?.invalid||!(this.ngControl.dirty||this.ngControl.touched||L?.dirty||L?.touched||w&&w.submitted))}}let x=(()=>{class O{constructor(w,B){this.ngControl=w,this.element=B,this._destroyed$=new e.x,this.hint="",this.formControl=new n.FormControl(""),null!=w&&(w.valueAccessor=this,this.customErrorStateMatcher=new m(w))}requiredMessage(){return"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c"}customErrorName(w,B){return!1}defaultErrorName(w,B){return"required"===B&&(w.push(this.requiredMessage()),!0)}addError(){const w=[];if(this.ngControl.control)for(const B in this.formControl.errors)!this.customErrorName(w,B)&&!this.defaultErrorName(w,B)&&w.push(this.formControl.errors[B]);return w}ngAfterContentInit(){const w=this.ngControl?.control;w&&(this.formControl=w,this.ngControl.control&&(this.errors$=(0,i.a)([this.formControl.statusChanges.pipe((0,d.O)(this.formControl.status))]).pipe((0,a.x)(),(0,u.U)(()=>this.addError()))))}writeValue(w){this.formControl&&w&&this.formControl.setValue(w,{emitEvent:!1,emitModelToViewChange:!1,emitViewToModelChange:!1})}registerOnChange(w){this.formControl&&this.formControl.valueChanges.pipe((0,h.R)(this._destroyed$)).subscribe(w)}registerOnTouched(w){this.onTouched=w}ngOnDestroy(){this._destroyed$.next(null),this._destroyed$.complete()}static#e=this.\u0275fac=function(B){return new(B||O)(l.\u0275\u0275directiveInject(n.NgControl,10),l.\u0275\u0275directiveInject(l.ElementRef))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:O,selectors:[["metib-base-component"]],inputs:{hint:"hint",label:"label",subLabel:"subLabel"},decls:0,vars:0,template:function(B,_){},encapsulation:2,changeDetection:0})}return O})()},83584:(Ee,Q,t)=>{"use strict";t.d(Q,{B:()=>T});var n=t(36895),e=t(80529),i=t(94650),d=t(24006),a=t(56709),u=t(97392),h=t(284),l=t(10266),m=t(83135),x=t(59549);const O=function(j,I){return{"control-disabled":j,"control-selected":I}};function L(j,I){if(1&j&&(i.\u0275\u0275elementStart(0,"mat-icon",12),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&j){const F=i.\u0275\u0275nextContext(3);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(5,O,F.formControl.disabled,F.formControl.value))("matTooltip",F.tooltipText)("matTooltipHideDelay",F.tooltipHideDelay)("matTooltipPosition",F.tooltipPosition),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(F.tooltipMatIconName)}}const w=function(j,I,F){return{"control-disabled":j,"control-selected":I,clickable:F}};function B(j,I){if(1&j){const F=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",9)(1,"div",10),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(F);const X=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(X.onCheckboxTextClick())}),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,L,2,8,"mat-icon",11),i.\u0275\u0275elementEnd()}if(2&j){const F=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction3(3,w,F.formControl.disabled,F.formControl.value,!F.url&&F.formControl.enabled)),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",F.label," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",F.tooltipText)}}function _(j,I){if(1&j&&(i.\u0275\u0275elementStart(0,"a",13),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&j){const F=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",F.linkSize)("href",F.url,i.\u0275\u0275sanitizeUrl),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(F.label)}}function y(j,I){if(1&j&&(i.\u0275\u0275elementStart(0,"div",14)(1,"mat-hint",1),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&j){const F=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(2,O,F.formControl.disabled,F.formControl.value)),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(F.hint)}}function $(j,I){if(1&j&&(i.\u0275\u0275elementStart(0,"div",5),i.\u0275\u0275template(1,B,4,7,"div",6),i.\u0275\u0275template(2,_,2,3,"a",7),i.\u0275\u0275template(3,y,3,5,"div",8),i.\u0275\u0275elementEnd()),2&j){const F=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",F.label&&!F.url),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",F.label&&F.url),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",F.hint)}}const C=function(j){return{"metib-checkbox-lib__padding":j}};let T=(()=>{class j extends m.P{constructor(F,z){super(F,z),this.checked=!1,this.indeterminate=!1,this.url="",this.linkSize="",this.tooltipText="",this.tooltipHideDelay=1500,this.tooltipMatIconName="help",this.tooltipPosition="below",this.checkboxChange=new i.EventEmitter}requiredMessage(){return"\u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0433\u0430\u043b\u043a\u0443"}handleChange(F){this.ngControl&&this.ngControl.viewToModelUpdate(F.checked),this.checkboxChange.emit(F)}onCheckboxTextClick(){if(this.ngControl&&!this.url&&this.ngControl.control?.enabled){const F=!!this.ngControl.control?.value;this.ngControl.control?.setValue(!F),this.ngControl.viewToModelUpdate(!F),this.checkboxChange.emit({source:this.matCheckbox,checked:!F})}}static#e=this.\u0275fac=function(z){return new(z||j)(i.\u0275\u0275directiveInject(d.NgControl,10),i.\u0275\u0275directiveInject(i.ElementRef))};static#t=this.\u0275cmp=i.\u0275\u0275defineComponent({type:j,selectors:[["app-metib-checkbox-lib"]],viewQuery:function(z,X){if(1&z&&i.\u0275\u0275viewQuery(a.oG,5),2&z){let p;i.\u0275\u0275queryRefresh(p=i.\u0275\u0275loadQuery())&&(X.matCheckbox=p.first)}},inputs:{checked:"checked",indeterminate:"indeterminate",url:"url",linkSize:"linkSize",tooltipText:"tooltipText",tooltipHideDelay:"tooltipHideDelay",tooltipMatIconName:"tooltipMatIconName",tooltipPosition:"tooltipPosition"},outputs:{checkboxChange:"checkboxChange"},standalone:!0,features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275StandaloneFeature],decls:5,vars:8,consts:[[1,"metib-checkbox-lib"],[3,"ngClass"],[3,"disableRipple","formControl","checked","indeterminate","change"],["checkboxSource",""],["class","metib-checkbox-lib-text",4,"ngIf"],[1,"metib-checkbox-lib-text"],["class","checkbox-label",4,"ngIf"],["class","checkbox-label-link metib-link solid blue","target","_blank",3,"ngClass","href",4,"ngIf"],["class","metib-checkbox-lib-text__hint",4,"ngIf"],[1,"checkbox-label"],[1,"checkbox-label__text",3,"ngClass","click"],["matTooltipClass","metib-tooltip small","fontSet","material-symbols-rounded","class","checkbox-label__icon icon-24",3,"ngClass","matTooltip","matTooltipHideDelay","matTooltipPosition",4,"ngIf"],["matTooltipClass","metib-tooltip small","fontSet","material-symbols-rounded",1,"checkbox-label__icon","icon-24",3,"ngClass","matTooltip","matTooltipHideDelay","matTooltipPosition"],["target","_blank",1,"checkbox-label-link","metib-link","solid","blue",3,"ngClass","href"],[1,"metib-checkbox-lib-text__hint"]],template:function(z,X){1&z&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"mat-checkbox",2,3),i.\u0275\u0275listener("change",function(P){return X.handleChange(P)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275template(4,$,4,3,"div",4),i.\u0275\u0275elementEnd()),2&z&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(6,C,X.label)),i.\u0275\u0275advance(1),i.\u0275\u0275property("disableRipple",!0)("formControl",X.formControl)("checked",X.checked)("indeterminate",X.indeterminate),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",X.label))},dependencies:[a.p9,a.oG,d.ReactiveFormsModule,d.NgControlStatus,d.FormControlDirective,h.c,x.bx,n.O5,n.mk,u.Ps,u.Hw,l.AV,l.gM,e.JF],styles:["[_nghost-%COMP%]   .metib-checkbox-lib[_ngcontent-%COMP%]{display:flex;gap:12px}[_nghost-%COMP%]   .metib-checkbox-lib__padding[_ngcontent-%COMP%]{padding-top:1px}[_nghost-%COMP%]   .metib-checkbox-lib-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}[_nghost-%COMP%]   .metib-checkbox-lib[_ngcontent-%COMP%]   .clickable[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0})}return j})()},61885:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>X});var n=t(36895),e=t(24006),i=t(3238),d=t(84385),a=t(83135),u=t(94650),h=t(59549);function l(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"mat-label"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(E.label)}}function m(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"div",8)(1,"div",9),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"div",9),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd()()),2&p){const E=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(E.selectFormControlTitle),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(E.selectFormControlSubTitle)}}function x(p,P){if(1&p&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275text(1),u.\u0275\u0275elementContainerEnd()),2&p){const E=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",E.selectFormControlTitle," ")}}function O(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"div"),u.\u0275\u0275template(1,m,5,2,"div",7),u.\u0275\u0275template(2,x,2,1,"ng-container",0),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",E.subTitle),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!E.subTitle)}}function L(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"span",12),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext().$implicit,R=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(R.getTitleByValue(E))}}function w(p,P){if(1&p&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275template(1,L,2,1,"span",11),u.\u0275\u0275elementContainerEnd()),2&p){const E=P.$implicit,R=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",E!==R.allValue)}}function B(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"div",10),u.\u0275\u0275template(1,w,2,1,"ng-container",6),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",E.formControl.value)}}function _(p,P){if(1&p){const E=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-option",13),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(E);const ne=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ne.selectAll())}),u.\u0275\u0275text(1,"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435"),u.\u0275\u0275elementEnd()}if(2&p){const E=u.\u0275\u0275nextContext();u.\u0275\u0275property("value",E.allValue)}}function y(p,P){1&p&&(u.\u0275\u0275elementStart(0,"mat-option",14),u.\u0275\u0275text(1,"\u041d\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430"),u.\u0275\u0275elementEnd())}function $(p,P){1&p&&(u.\u0275\u0275elementStart(0,"mat-option"),u.\u0275\u0275text(1,"--"),u.\u0275\u0275elementEnd())}function C(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"div",19),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(E.titleRight)}}function T(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"div",23),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext(2).$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(E.descriptionRight)}}function j(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"div",20)(1,"div",21),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(3,T,2,1,"div",22),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(E.description),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",E.descriptionRight)}}function I(p,P){if(1&p){const E=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-option",13),u.\u0275\u0275listener("click",function(){const G=u.\u0275\u0275restoreView(E).$implicit,ce=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ce.multiple?ce.clickCheckBox():ce.setValue(G.value))}),u.\u0275\u0275elementStart(1,"div",15)(2,"div",16),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(4,C,2,1,"div",17),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(5,j,4,2,"div",18),u.\u0275\u0275elementEnd()}if(2&p){const E=P.$implicit;u.\u0275\u0275property("value",E.value),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(E.title),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",E.titleRight),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",E.description||E.descriptionRight)}}function F(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"mat-error"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&p){const E=P.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(E)}}function z(p,P){if(1&p&&(u.\u0275\u0275elementStart(0,"mat-hint"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&p){const E=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(E.hint)}}let X=(()=>{class p extends a.P{constructor(E,R,ne){super(E,R),this.cdr=ne,this.allValue="all",this.selectOptions=[],this.emptyValue=!1,this.multiple=!1,this.isSelectOne=!1,this.selectFormControl=new e.FormControl([]),this.selectFormControlTitle="",this.selectFormControlSubTitle=""}requiredMessage(){return"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c"}selectAll(){if(Array.isArray(this.selectFormControl.value)&&this.selectFormControl.value.some(E=>E!==this.allValue)&&this.selectFormControl.value.length===this.selectOptions.length)this.selectFormControl.patchValue([]),this.formControl.setValue([],{emitEvent:!0,emitViewToModelChange:!1,emitModelToViewChange:!1});else{const E=this.selectOptions.map(R=>R.value);this.selectFormControl.patchValue([...E,this.allValue]),this.formControl.setValue(E,{emitEvent:!0,emitViewToModelChange:!1,emitModelToViewChange:!1})}}clickCheckBox(){if(Array.isArray(this.selectFormControl.value)&&this.selectFormControl.value.find(E=>E===this.allValue)&&this.selectFormControl.value.length-1!==this.selectOptions.length){const E=this.selectFormControl.value.filter((R,ne)=>ne>0);this.selectFormControl.patchValue(E)}else Array.isArray(this.selectFormControl.value)&&this.selectFormControl.value.length===this.selectOptions.length&&this.selectFormControl.patchValue([...this.selectFormControl.value,this.allValue]);Array.isArray(this.selectFormControl.value)&&this.setValue(this.selectFormControl.value.filter(E=>E!==this.allValue))}setValue(E){this.formControl.setValue(E,{emitEvent:!0,emitViewToModelChange:!1,emitModelToViewChange:!1});const R=this.selectOptions?.find(ne=>ne.value===this.selectFormControl.value);this.selectFormControlTitle=R?.title||"",this.subTitle&&(this.selectFormControlSubTitle=R[this.subTitle]||"")}setDisabledState(E){E?this.selectFormControl.disable():this.selectFormControl.enable()}getTitleByValue(E){return this.selectOptions.find(R=>R?.value===E)?.title??null}ngAfterViewChecked(){this.cdr.markForCheck()}ngAfterContentInit(){super.ngAfterContentInit(),this.formControl&&(this.selectFormControl.validator=this.formControl.validator),1===this.selectOptions.length&&this.isSelectOne&&this.writeValue(this.selectOptions[0].value)}writeValue(E){super.writeValue(E),this.selectFormControl.setValue(E),this.selectFormControlTitle=this.selectOptions?.find(R=>R.value===this.selectFormControl.value)?.title||""}static#e=this.\u0275fac=function(R){return new(R||p)(u.\u0275\u0275directiveInject(e.NgControl,10),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:p,selectors:[["app-metib-select-lib"]],inputs:{selectOptions:"selectOptions",emptyValue:"emptyValue",multiple:"multiple",subTitle:"subTitle",isSelectOne:"isSelectOne"},standalone:!0,features:[u.\u0275\u0275ProvidersFeature([{provide:i.Y2,useValue:{disabled:!0}},{provide:d.PG,useValue:{overlayPanelClass:"metib-select-overlay-panel-class"}}]),u.\u0275\u0275InheritDefinitionFeature,u.\u0275\u0275StandaloneFeature],decls:13,vars:15,consts:[[4,"ngIf"],["panelClass","metib-select-panel-class",3,"placeholder","multiple","formControl","errorStateMatcher"],["class","select-container",4,"ngIf"],[3,"value","click",4,"ngIf"],["disabled","","class","empty-option",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["class","container-labels",4,"ngIf"],[1,"container-labels"],[1,"label"],[1,"select-container"],["class","select-value",4,"ngIf"],[1,"select-value"],[3,"value","click"],["disabled","",1,"empty-option"],[1,"mat-option-title"],[1,"mat-option-title-left"],["class","mat-option-title-right",4,"ngIf"],["class","mat-option-description",4,"ngIf"],[1,"mat-option-title-right"],[1,"mat-option-description"],[1,"mat-option-description-left"],["class","mat-option-description-right",4,"ngIf"],[1,"mat-option-description-right"]],template:function(R,ne){1&R&&(u.\u0275\u0275elementStart(0,"mat-form-field"),u.\u0275\u0275template(1,l,2,1,"mat-label",0),u.\u0275\u0275elementStart(2,"mat-select",1)(3,"mat-select-trigger"),u.\u0275\u0275template(4,O,3,2,"div",0),u.\u0275\u0275template(5,B,2,1,"div",2),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,_,2,1,"mat-option",3),u.\u0275\u0275template(7,y,2,0,"mat-option",4),u.\u0275\u0275template(8,$,2,0,"mat-option",0),u.\u0275\u0275template(9,I,6,4,"mat-option",5),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(10,F,2,1,"mat-error",6),u.\u0275\u0275pipe(11,"async"),u.\u0275\u0275template(12,z,2,1,"mat-hint",0),u.\u0275\u0275elementEnd()),2&R&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ne.label&&ne.selectFormControl.value),u.\u0275\u0275advance(1),u.\u0275\u0275property("placeholder",ne.label)("multiple",ne.multiple)("formControl",ne.selectFormControl)("errorStateMatcher",ne.customErrorStateMatcher),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",!ne.multiple),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ne.multiple),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ne.multiple&&ne.selectOptions.length),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ne.multiple&&!ne.selectOptions.length),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ne.emptyValue),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",ne.selectOptions),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",u.\u0275\u0275pipeBind1(11,13,ne.errors$)),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",ne.hint))},dependencies:[d.LD,h.KE,h.hX,h.bx,h.TO,d.gD,d.$L,i.ey,e.ReactiveFormsModule,e.NgControlStatus,e.FormControlDirective,n.sg,n.O5,e.FormsModule,n.Ov],styles:[".select-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;grid-gap:8px}.select-value[_ngcontent-%COMP%]{border-radius:var(--border-radius-m);background:var(--background-light-gray);padding:1px 12px;font-size:14px;line-height:20px;font-weight:400;color:var(--text-dark-gray)}.container-labels[_ngcontent-%COMP%]{padding-right:16px;display:flex;justify-content:space-between;align-items:center}.empty-option[_ngcontent-%COMP%]     mat-pseudo-checkbox{display:none}mat-form-field[_ngcontent-%COMP%]{max-width:660px}"],changeDetection:0})}return p})()},91762:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>d});var n=t(36895),e=t(94650);const i=function(a,u){return{"caption-semibold":a,"overline-bold-10":u}};let d=(()=>{class a{constructor(){this.backgroundColor="var(--background-light-gray)",this.color="var(--text-blue)",this.size="normal",this.type="state-badge",this.title="",this.currType=!1}static#e=this.\u0275fac=function(l){return new(l||a)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-metib-badge-tag"]],inputs:{backgroundColor:"backgroundColor",color:"color",size:"size",type:"type",title:"title",currType:"currType"},standalone:!0,features:[e.\u0275\u0275StandaloneFeature],decls:3,vars:13,consts:[[1,"metib-badge-tag",3,"ngClass"]],template:function(l,m){1&l&&(e.\u0275\u0275elementStart(0,"div",0)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&l&&(e.\u0275\u0275classMap(m.type),e.\u0275\u0275styleProp("background",m.backgroundColor)("color",m.color),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(10,i,"normal"===m.size,"small"===m.size)),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("bold",m.currType),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",m.title," "))},dependencies:[n.mk],styles:[".metib-badge-tag[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:var(--border-radius-s);padding:3px 8px;width:max-content;font-family:Open Sans,sans-serif;box-sizing:border-box;font-size:12px;line-height:16px;font-weight:600;height:24px;min-width:23px}.metib-badge-tag[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:700;text-transform:uppercase;font-size:10px}.metib-badge-tag.small[_ngcontent-%COMP%]{padding:2px 8px}.metib-badge-tag.dot[_ngcontent-%COMP%]{min-width:unset;height:unset;padding:3px;border-radius:50%}.metib-badge-tag.dot[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:none}.metib-badge-tag.tag[_ngcontent-%COMP%]{font-size:10px;line-height:14px;font-weight:700;text-transform:uppercase;height:22px}.metib-badge-tag.tag[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-transform:uppercase}.metib-badge-tag.badge[_ngcontent-%COMP%]{font-size:12px;line-height:16px;font-weight:700;height:20px;border-radius:16px;padding:2px 8px}"],changeDetection:0})}return a})()},51329:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>l});var n=t(36895),e=t(94650);function i(m,x){if(1&m&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&m){const O=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(O.text)}}function d(m,x){1&m&&e.\u0275\u0275projection(0)}function a(m,x){if(1&m){const O=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(O);const w=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(w.collapseToggle())}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&m){const O=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",O.isCollapseOpen?"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435"," ")}}const u=function(m){return{cut:m}},h=["*"];let l=(()=>{class m{constructor(){this.isCollapseOpen=!1,this.disableToggleButton=!0,this.commentStyle="gray"}collapseToggle(){this.isCollapseOpen=!this.isCollapseOpen}static#e=this.\u0275fac=function(L){return new(L||m)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:m,selectors:[["app-metib-comment"]],inputs:{text:"text",isCollapseOpen:"isCollapseOpen",disableToggleButton:"disableToggleButton",commentStyle:"commentStyle"},standalone:!0,features:[e.\u0275\u0275StandaloneFeature],ngContentSelectors:h,decls:6,vars:7,consts:[[1,"metib-comment",3,"ngClass"],[1,"metib-comment__text",3,"ngClass"],[4,"ngIf","ngIfElse"],["contentTpl",""],["class","metib-comment__button",3,"click",4,"ngIf"],[1,"metib-comment__button",3,"click"]],template:function(L,w){if(1&L&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,i,2,1,"ng-container",2),e.\u0275\u0275template(3,d,1,0,"ng-template",null,3,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,a,2,1,"div",4),e.\u0275\u0275elementEnd()),2&L){const B=e.\u0275\u0275reference(4);e.\u0275\u0275property("ngClass",w.commentStyle),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,u,!w.isCollapseOpen&&!w.disableToggleButton)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",w.text)("ngIfElse",B),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!w.disableToggleButton)}},dependencies:[n.O5,n.mk],styles:['[_ngcontent-%COMP%]:root{--text-black: #080708;--text-dark-gray: #444444;--text-gray: #88909b;--text-white: #ffffff;--text-red-main: #e23428;--text-blue: #2f54eb;--text-green: #00a843;--text-light-gray: #f1f2f2;--text-medium-gray: #dedede;--icons-gray: #88909b;--icons-black: #080708;--icons-dark-gray: #444444;--icons-white: #ffffff;--icons-dark-green: #00916e;--icons-red-sec: #dd1c1a;--icons-yellow: #f1c84a;--icons-green: #00a843;--icons-red-main: #e23428;--icons-light-blue: #70b6f6;--icons-medium-gray: #dedede;--icons-blue: #2f54eb;--icons-dark-orange: #f86624;--tags-dark-green: #00916e;--tags-yellow: #f1c84a;--tags-mint: #53b3cb;--tags-dark-orange: #f86624;--tags-light-gray: #f1f2f2;--background-light-gray: #f1f2f2;--background-white: #ffffff;--background-lavender: #dae0f2;--background-glaucous: #7180b9;--background-black: #080708;--background-blue: #2f54eb;--background-green: #00a843;--background-red-main: #e23428;--background-orange: #f39034;--background-dark-blue: #1a2a40;--background-red-main-15: #fbe1df;--background-green-15: #d9f2e3;--background-blue-15: #e0e6fc;--background-yellow-15: #fdf7e4;--background-yellow: #f1c84a;--background-dark-orange-15: #fee8de;--background-modaloverlay: #6b6a6b;--background-medium-gray: #dedede;--background-darkorange: #f86624;--background-mint: #53b3cb;--background-purpur: #9448bc;--background-darkgreen: #00916e;--background-secondgray: #ebebeb;--borders-medium-gray: #dedede;--borders-gray: #88909b;--borders-dark-gray: #444444;--borders-blue: #2f54eb;--borders-red-main: #e23428;--borders-green: #00a843;--borders-dark-orange: #f86624;--border-radius-xs: 2px;--border-radius-s: 4px;--border-radius-m: 8px;--border-radius-l: 12px;--border-radius-xl: 16px;--padding-4: 4px;--padding-8: 8px;--padding-12: 12px;--padding-16: 16px;--padding-20: 20px;--padding-24: 24px;--padding-32: 32px;--padding-40: 40px;--padding-48: 48px;--padding-56: 56px;--padding-60: 60px;--icon-size-32: 32px;--icon-size-24: 24px;--icon-size-20: 20px;--icon-size-18: 18px;--shadow-primary: 0 4px 15px 0 rgba(8, 7, 8, .05);--shadow-dropdown: 0 5px 20px 0 rgba(8, 7, 8, .1);--shadow-notification: 0 2px 4px 0 rgba(8, 7, 8, .1);--shadow-main-warning-message: 0 4px 15px 0 rgba(8, 7, 8, .05);--font-family-main: "Open Sans";--line-height: 20px}.font-base[_ngcontent-%COMP%], [_nghost-%COMP%]   .metib-comment[_ngcontent-%COMP%], .font-base-regular[_ngcontent-%COMP%], .caption-regular[_ngcontent-%COMP%], .body-small-regular[_ngcontent-%COMP%], .body-norm-regular[_ngcontent-%COMP%], .font-base-semibold[_ngcontent-%COMP%], .overline-semibold[_ngcontent-%COMP%], .caption-semibold[_ngcontent-%COMP%], .body-small-semibold[_ngcontent-%COMP%], .body-norm-semibold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%], .subhead[_ngcontent-%COMP%], .h5-semibold[_ngcontent-%COMP%], .h4-semibold[_ngcontent-%COMP%], .h3-semibold[_ngcontent-%COMP%], .h2-semibold[_ngcontent-%COMP%], .h1-semibold[_ngcontent-%COMP%], .font-base-bold[_ngcontent-%COMP%], .overline-bold-10[_ngcontent-%COMP%], .overline-bold[_ngcontent-%COMP%], .caption-bold[_ngcontent-%COMP%], .body-small-bold[_ngcontent-%COMP%], .h5-bold[_ngcontent-%COMP%], .h4-bold[_ngcontent-%COMP%], .h3-bold[_ngcontent-%COMP%], .h2-bold[_ngcontent-%COMP%], .h1-bold[_ngcontent-%COMP%]{font-family:Open Sans;letter-spacing:0;text-align:left}.font-base-bold[_ngcontent-%COMP%], .overline-bold-10[_ngcontent-%COMP%], .overline-bold[_ngcontent-%COMP%], .caption-bold[_ngcontent-%COMP%], .body-small-bold[_ngcontent-%COMP%], .h5-bold[_ngcontent-%COMP%], .h4-bold[_ngcontent-%COMP%], .h3-bold[_ngcontent-%COMP%], .h2-bold[_ngcontent-%COMP%], .h1-bold[_ngcontent-%COMP%]{font-weight:700}.font-base-semibold[_ngcontent-%COMP%], .overline-semibold[_ngcontent-%COMP%], .caption-semibold[_ngcontent-%COMP%], .body-small-semibold[_ngcontent-%COMP%], .body-norm-semibold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%], .subhead[_ngcontent-%COMP%], .h5-semibold[_ngcontent-%COMP%], .h4-semibold[_ngcontent-%COMP%], .h3-semibold[_ngcontent-%COMP%], .h2-semibold[_ngcontent-%COMP%], .h1-semibold[_ngcontent-%COMP%]{font-weight:600}.font-base-regular[_ngcontent-%COMP%], .caption-regular[_ngcontent-%COMP%], .body-small-regular[_ngcontent-%COMP%], .body-norm-regular[_ngcontent-%COMP%]{font-weight:400}.font-base-h1[_ngcontent-%COMP%], .h1-bold[_ngcontent-%COMP%], .h1-semibold[_ngcontent-%COMP%]{font-size:36px;line-height:48px}.font-base-h2[_ngcontent-%COMP%], .h2-bold[_ngcontent-%COMP%], .h2-semibold[_ngcontent-%COMP%]{font-size:32px;line-height:44px}.font-base-h3[_ngcontent-%COMP%], .h3-bold[_ngcontent-%COMP%], .h3-semibold[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.font-base-h4[_ngcontent-%COMP%], .h4-bold[_ngcontent-%COMP%], .h4-semibold[_ngcontent-%COMP%]{font-size:20px;line-height:28px}.font-base-h5[_ngcontent-%COMP%], .h5-bold[_ngcontent-%COMP%], .h5-semibold[_ngcontent-%COMP%]{font-size:16px;line-height:22px}.h5-bold[_ngcontent-%COMP%], .subhead[_ngcontent-%COMP%]{font-size:18px;line-height:24px}.font-base-body-norm[_ngcontent-%COMP%], .body-norm-regular[_ngcontent-%COMP%], .body-norm-semibold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%]{font-size:16px;line-height:22px}.font-norm-bold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%]{font-size:16px;font-weight:700;line-height:22px}.font-base-body-small[_ngcontent-%COMP%], .body-small-bold[_ngcontent-%COMP%], .body-small-regular[_ngcontent-%COMP%], .body-small-semibold[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.font-base-caption[_ngcontent-%COMP%], .caption-bold[_ngcontent-%COMP%], .caption-regular[_ngcontent-%COMP%], .caption-semibold[_ngcontent-%COMP%]{font-size:12px;line-height:16px}.overline-bold[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.overline-semibold[_ngcontent-%COMP%]{font-size:12px;line-height:16px}.overline-bold-10[_ngcontent-%COMP%]{font-size:10px;line-height:14px}[_nghost-%COMP%]   .metib-comment[_ngcontent-%COMP%]{padding:12px;border-radius:4px;font-size:14px;font-style:normal;font-weight:400;line-height:20px}[_nghost-%COMP%]   .metib-comment.gray[_ngcontent-%COMP%]{border-left:2px solid var(--borders-gray);background:var(--background-light-gray)}[_nghost-%COMP%]   .metib-comment.yellow[_ngcontent-%COMP%]{border-left:2px solid var(--icons-yellow);background:var(--background-yellow-15)}[_nghost-%COMP%]   .metib-comment.red[_ngcontent-%COMP%]{border-left:2px solid var(--borders-red-main);background:var(--background-red-main-15)}[_nghost-%COMP%]   .metib-comment__text[_ngcontent-%COMP%]{color:var(--text-dark-gray)}@media screen and (max-width: 768px){[_nghost-%COMP%]   .metib-comment__text.cut[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}}[_nghost-%COMP%]   .metib-comment__button[_ngcontent-%COMP%]{display:none;margin-top:8px;color:var(--text-blue);border-bottom:1px solid var(--text-blue);cursor:pointer;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 768px){[_nghost-%COMP%]   .metib-comment__button[_ngcontent-%COMP%]{display:block}}'],changeDetection:0})}return m})()},4650:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>x});var n=t(36895),e=t(80529),i=t(97392),d=t(94650);function a(O,L){if(1&O&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275text(1),d.\u0275\u0275elementContainerEnd()),2&O){const w=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(w.text)}}function u(O,L){1&O&&d.\u0275\u0275projection(0)}function h(O,L){if(1&O){const w=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",7),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(w);const _=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(_.collapseToggle())}),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()}if(2&O){const w=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",w.isCollapseOpen?"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435"," ")}}const l=function(O){return{cut:O}},m=["*"];let x=(()=>{class O{constructor(){this.isCollapseOpen=!1,this.showToggleButton=!0,this.infoStyle="gray"}collapseToggle(){this.isCollapseOpen=!this.isCollapseOpen}static#e=this.\u0275fac=function(B){return new(B||O)};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:O,selectors:[["app-metib-info"]],inputs:{text:"text",isCollapseOpen:"isCollapseOpen",showToggleButton:"showToggleButton",infoStyle:"infoStyle"},standalone:!0,features:[d.\u0275\u0275StandaloneFeature],ngContentSelectors:m,decls:9,vars:8,consts:[[1,"metib-info",3,"ngClass"],[1,"metib-info-content"],["fontSet","material-symbols-rounded",1,"metib-info-content__icon",3,"ngClass"],[1,"metib-info-content__text",3,"ngClass"],[4,"ngIf","ngIfElse"],["contentTpl",""],["class","metib-info-button",3,"click",4,"ngIf"],[1,"metib-info-button",3,"click"]],template:function(B,_){if(1&B&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"mat-icon",2),d.\u0275\u0275text(3,"info"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(4,"div",3),d.\u0275\u0275template(5,a,2,1,"ng-container",4),d.\u0275\u0275template(6,u,1,0,"ng-template",null,5,d.\u0275\u0275templateRefExtractor),d.\u0275\u0275elementEnd()(),d.\u0275\u0275template(8,h,2,1,"div",6),d.\u0275\u0275elementEnd()),2&B){const y=d.\u0275\u0275reference(7);d.\u0275\u0275property("ngClass",_.infoStyle),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngClass",_.infoStyle),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction1(6,l,!_.isCollapseOpen&&_.showToggleButton)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",_.text)("ngIfElse",y),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",_.showToggleButton)}},dependencies:[n.O5,n.mk,i.Ps,i.Hw,e.JF],styles:['[_ngcontent-%COMP%]:root{--text-black: #080708;--text-dark-gray: #444444;--text-gray: #88909b;--text-white: #ffffff;--text-red-main: #e23428;--text-blue: #2f54eb;--text-green: #00a843;--text-light-gray: #f1f2f2;--text-medium-gray: #dedede;--icons-gray: #88909b;--icons-black: #080708;--icons-dark-gray: #444444;--icons-white: #ffffff;--icons-dark-green: #00916e;--icons-red-sec: #dd1c1a;--icons-yellow: #f1c84a;--icons-green: #00a843;--icons-red-main: #e23428;--icons-light-blue: #70b6f6;--icons-medium-gray: #dedede;--icons-blue: #2f54eb;--icons-dark-orange: #f86624;--tags-dark-green: #00916e;--tags-yellow: #f1c84a;--tags-mint: #53b3cb;--tags-dark-orange: #f86624;--tags-light-gray: #f1f2f2;--background-light-gray: #f1f2f2;--background-white: #ffffff;--background-lavender: #dae0f2;--background-glaucous: #7180b9;--background-black: #080708;--background-blue: #2f54eb;--background-green: #00a843;--background-red-main: #e23428;--background-orange: #f39034;--background-dark-blue: #1a2a40;--background-red-main-15: #fbe1df;--background-green-15: #d9f2e3;--background-blue-15: #e0e6fc;--background-yellow-15: #fdf7e4;--background-yellow: #f1c84a;--background-dark-orange-15: #fee8de;--background-modaloverlay: #6b6a6b;--background-medium-gray: #dedede;--background-darkorange: #f86624;--background-mint: #53b3cb;--background-purpur: #9448bc;--background-darkgreen: #00916e;--background-secondgray: #ebebeb;--borders-medium-gray: #dedede;--borders-gray: #88909b;--borders-dark-gray: #444444;--borders-blue: #2f54eb;--borders-red-main: #e23428;--borders-green: #00a843;--borders-dark-orange: #f86624;--border-radius-xs: 2px;--border-radius-s: 4px;--border-radius-m: 8px;--border-radius-l: 12px;--border-radius-xl: 16px;--padding-4: 4px;--padding-8: 8px;--padding-12: 12px;--padding-16: 16px;--padding-20: 20px;--padding-24: 24px;--padding-32: 32px;--padding-40: 40px;--padding-48: 48px;--padding-56: 56px;--padding-60: 60px;--icon-size-32: 32px;--icon-size-24: 24px;--icon-size-20: 20px;--icon-size-18: 18px;--shadow-primary: 0 4px 15px 0 rgba(8, 7, 8, .05);--shadow-dropdown: 0 5px 20px 0 rgba(8, 7, 8, .1);--shadow-notification: 0 2px 4px 0 rgba(8, 7, 8, .1);--shadow-main-warning-message: 0 4px 15px 0 rgba(8, 7, 8, .05);--font-family-main: "Open Sans";--line-height: 20px}.font-base[_ngcontent-%COMP%], [_nghost-%COMP%]   .metib-info[_ngcontent-%COMP%], .font-base-regular[_ngcontent-%COMP%], .caption-regular[_ngcontent-%COMP%], .body-small-regular[_ngcontent-%COMP%], .body-norm-regular[_ngcontent-%COMP%], .font-base-semibold[_ngcontent-%COMP%], .overline-semibold[_ngcontent-%COMP%], .caption-semibold[_ngcontent-%COMP%], .body-small-semibold[_ngcontent-%COMP%], .body-norm-semibold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%], .subhead[_ngcontent-%COMP%], .h5-semibold[_ngcontent-%COMP%], .h4-semibold[_ngcontent-%COMP%], .h3-semibold[_ngcontent-%COMP%], .h2-semibold[_ngcontent-%COMP%], .h1-semibold[_ngcontent-%COMP%], .font-base-bold[_ngcontent-%COMP%], .overline-bold-10[_ngcontent-%COMP%], .overline-bold[_ngcontent-%COMP%], .caption-bold[_ngcontent-%COMP%], .body-small-bold[_ngcontent-%COMP%], .h5-bold[_ngcontent-%COMP%], .h4-bold[_ngcontent-%COMP%], .h3-bold[_ngcontent-%COMP%], .h2-bold[_ngcontent-%COMP%], .h1-bold[_ngcontent-%COMP%]{font-family:Open Sans;letter-spacing:0;text-align:left}.font-base-bold[_ngcontent-%COMP%], .overline-bold-10[_ngcontent-%COMP%], .overline-bold[_ngcontent-%COMP%], .caption-bold[_ngcontent-%COMP%], .body-small-bold[_ngcontent-%COMP%], .h5-bold[_ngcontent-%COMP%], .h4-bold[_ngcontent-%COMP%], .h3-bold[_ngcontent-%COMP%], .h2-bold[_ngcontent-%COMP%], .h1-bold[_ngcontent-%COMP%]{font-weight:700}.font-base-semibold[_ngcontent-%COMP%], .overline-semibold[_ngcontent-%COMP%], .caption-semibold[_ngcontent-%COMP%], .body-small-semibold[_ngcontent-%COMP%], .body-norm-semibold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%], .subhead[_ngcontent-%COMP%], .h5-semibold[_ngcontent-%COMP%], .h4-semibold[_ngcontent-%COMP%], .h3-semibold[_ngcontent-%COMP%], .h2-semibold[_ngcontent-%COMP%], .h1-semibold[_ngcontent-%COMP%]{font-weight:600}.font-base-regular[_ngcontent-%COMP%], .caption-regular[_ngcontent-%COMP%], .body-small-regular[_ngcontent-%COMP%], .body-norm-regular[_ngcontent-%COMP%]{font-weight:400}.font-base-h1[_ngcontent-%COMP%], .h1-bold[_ngcontent-%COMP%], .h1-semibold[_ngcontent-%COMP%]{font-size:36px;line-height:48px}.font-base-h2[_ngcontent-%COMP%], .h2-bold[_ngcontent-%COMP%], .h2-semibold[_ngcontent-%COMP%]{font-size:32px;line-height:44px}.font-base-h3[_ngcontent-%COMP%], .h3-bold[_ngcontent-%COMP%], .h3-semibold[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.font-base-h4[_ngcontent-%COMP%], .h4-bold[_ngcontent-%COMP%], .h4-semibold[_ngcontent-%COMP%]{font-size:20px;line-height:28px}.font-base-h5[_ngcontent-%COMP%], .h5-bold[_ngcontent-%COMP%], .h5-semibold[_ngcontent-%COMP%]{font-size:16px;line-height:22px}.h5-bold[_ngcontent-%COMP%], .subhead[_ngcontent-%COMP%]{font-size:18px;line-height:24px}.font-base-body-norm[_ngcontent-%COMP%], .body-norm-regular[_ngcontent-%COMP%], .body-norm-semibold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%]{font-size:16px;line-height:22px}.font-norm-bold[_ngcontent-%COMP%], .body-norm-bold[_ngcontent-%COMP%]{font-size:16px;font-weight:700;line-height:22px}.font-base-body-small[_ngcontent-%COMP%], .body-small-bold[_ngcontent-%COMP%], .body-small-regular[_ngcontent-%COMP%], .body-small-semibold[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.font-base-caption[_ngcontent-%COMP%], .caption-bold[_ngcontent-%COMP%], .caption-regular[_ngcontent-%COMP%], .caption-semibold[_ngcontent-%COMP%]{font-size:12px;line-height:16px}.overline-bold[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.overline-semibold[_ngcontent-%COMP%]{font-size:12px;line-height:16px}.overline-bold-10[_ngcontent-%COMP%]{font-size:10px;line-height:14px}[_nghost-%COMP%]   .metib-info[_ngcontent-%COMP%]{padding:20px;border-radius:4px;font-size:14px;font-style:normal;font-weight:400;line-height:20px}@media screen and (max-width: 768px){[_nghost-%COMP%]   .metib-info[_ngcontent-%COMP%]{padding:12px}}[_nghost-%COMP%]   .metib-info.gray[_ngcontent-%COMP%]{background:var(--background-light-gray)}[_nghost-%COMP%]   .metib-info.yellow[_ngcontent-%COMP%]{background:var(--background-yellow-15)}[_nghost-%COMP%]   .metib-info-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;gap:16px}[_nghost-%COMP%]   .metib-info-content__text[_ngcontent-%COMP%]{color:var(--text-dark-gray)}@media screen and (max-width: 768px){[_nghost-%COMP%]   .metib-info-content__text.cut[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}}[_nghost-%COMP%]   .metib-info-content__icon[_ngcontent-%COMP%]{display:block;width:18px;height:18px;font-size:19px;min-width:18px;min-height:18px;font-weight:600}@media screen and (max-width: 768px){[_nghost-%COMP%]   .metib-info-content__icon[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .metib-info-content__icon.gray[_ngcontent-%COMP%]{color:var(--icons-light-blue)}[_nghost-%COMP%]   .metib-info-content__icon.yellow[_ngcontent-%COMP%]{color:var(--icons-yellow)}[_nghost-%COMP%]   .metib-info-button[_ngcontent-%COMP%]{display:none;margin-top:8px;color:var(--text-blue);border-bottom:1px solid var(--text-blue);cursor:pointer;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 768px){[_nghost-%COMP%]   .metib-info-button[_ngcontent-%COMP%]{display:block}}'],changeDetection:0})}return O})()},80627:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>i});var n=t(94650),e=t(5103);let i=(()=>{class d{constructor(){this.action1Text="",this.action2Text="",this.action1Event=new n.EventEmitter,this.action2Event=new n.EventEmitter}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["app-metib-modal-footer"]],inputs:{action1Text:"action1Text",action2Text:"action2Text"},outputs:{action1Event:"action1Event",action2Event:"action2Event"},standalone:!0,features:[n.\u0275\u0275StandaloneFeature],decls:2,vars:2,consts:[["mobile-wide","","size-m","","primary","",3,"text","click"],["mobile-wide","","size-m","","secondary","",3,"text","click"]],template:function(h,l){1&h&&(n.\u0275\u0275elementStart(0,"button",0),n.\u0275\u0275listener("click",function(){return l.action1Event.emit()}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(1,"button",1),n.\u0275\u0275listener("click",function(){return l.action2Event.emit()}),n.\u0275\u0275elementEnd()),2&h&&(n.\u0275\u0275propertyInterpolate("text",l.action1Text),n.\u0275\u0275advance(1),n.\u0275\u0275propertyInterpolate("text",l.action2Text))},dependencies:[e.n],styles:["[_nghost-%COMP%]{display:flex;margin:60px 32px 24px;grid-gap:16px}@media (max-width: 768px){[_nghost-%COMP%]{flex-direction:column;margin:60px 16px 24px}}"],changeDetection:0})}return d})()},45897:(Ee,Q,t)=>{"use strict";t.d(Q,{X:()=>i});var n=t(94650),e=t(97392);let i=(()=>{class d{constructor(){this.title="",this.closeEvent=new n.EventEmitter}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["app-metib-modal-header"]],inputs:{title:"title"},outputs:{closeEvent:"closeEvent"},standalone:!0,features:[n.\u0275\u0275StandaloneFeature],decls:4,vars:3,consts:[[1,"h4-bold","title"],["fontSet","material-symbols-rounded",1,"icon-32",3,"click"]],template:function(h,l){1&h&&(n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(2,"mat-icon",1),n.\u0275\u0275listener("click",function(){return l.closeEvent.emit()}),n.\u0275\u0275text(3,"close"),n.\u0275\u0275elementEnd()),2&h&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(l.title),n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("color","var(--icons-gray)"))},dependencies:[e.Ps,e.Hw],styles:["[_nghost-%COMP%]{display:flex;background:var(--background-light-gray);padding:24px 32px;width:100%;box-sizing:border-box;max-width:724px;justify-content:space-between;align-items:center;cursor:pointer}@media (max-width: 768px){[_nghost-%COMP%]{padding:24px 16px}}.title[_ngcontent-%COMP%]{color:var(--text-black);padding-right:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 44px)}"],changeDetection:0})}return d})()},6146:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>n});var n=(()=>{return(e=n||(n={})).DocPlatpor="doc_platpor",e.DocPlatporCurr="doc_platpor_curr",e.DocPlatporCurrTg="doc_platpor_curr_tg",e.DocPlatporCurrTgOv="doc_platpor_currbuy_tg",e.ServiceTransferTg="service_transfer_tg",e.DocPlatporSBP="doc_platpor_sbpzp",e.DocTransitPayDoc="doc_transit_pay_doc",e.DocCurrBuy="doc_currbuy",e.DocCurrSell="doc_currsell",e.DocDraftBuysell="doc_draft_buysell",e.DocPlatporConv="doc_platpor_conv",e.DocPlatporSBPSalary="doc_platpor_sbpzp",e.DocOnlineConversion="online_conversion_doc",e.DocPaymentRequest="doc_payment_request",e.DocPaymentRequestOutgoing="doc_payment_request_outgoing",e.RequestCancel="request_cancel",e.CashPlacement="cash_placement",e.RequestReceiveCash="request_receive_cash",e.PowerOfAttorney="power_of_attorney",e.IrreduciblBalance="irreducible_balance",e.IncomingIdentification="incoming_identification",e.RequestAcceptNoAccept="request_accept_no_accept",e.RequestAdvanceAccept="request_advance_accept",e.AcceptEdit="accept_edit",e.RequestKonturFocusOn="request_kontur_focus_on",e.AcceptCancellation="accept_cancellation",e.PrecheckConversion="precheck_conversion",e.SbpQrTsp="sbp_trade_service_enterprise",e.SpbQrRefund="sbp_qr_refund",e.SalarySbpQrAgreement="sbp_qr_agreement",e.SbpQrPaymentAgreement="sbp_qr_pay_agreement",e.SbpQrAccountAgreement="sbp_qr_account_agreement",e.SbpSalaryTransfer="sbp_salary_transfer",e.SbpQrCashbox="sbp_qr_cash_register",e.SbpTseBlock="sbp_tse_block",e.SbpQrReg="request_sbp_reg_qrc_b2b",e.SbpQrRegTSP="request_sbp_reg_qrc_tsp",e.SbpQrTransfer="doc_sbp_transferbyqrcode_ul",e.SalarySbpAgreement="salary_sbp_agreement",e.DocCurrAgentFactoring="doc_curr_agent_factoring",e.FixedRate="fixed_rate",e.BankAccountAgreement="bank_account_agreement",e.SmsNotif="sms_notif_agreement",e.DocClientCreation="doc_client_creation",e.DocPlatporCurrBp="doc_platpor_curr_bp",e.DocPlatporCurrComplex="doc_platpor_curr_complex",e.DocPlatporBp="doc_platpor_bp",e.DocSbpTransferByQrCode="doc_sbp_transferbyqrcode_ul",e.TransferRests="transfer_rests",e.DocInqCurr181="inq_curr_181",e.InqCurr181="inq_curr_181",e.InqCurrDeal181="deal_181",e.CollectionInstruction="collection_instruction",e.ConfirmCashPlacement="confirm_cash_placement",e.ConfirmIrreducibleBalance="confirm_irreducible_balance",e.InqStatement181="inq_statement_181",e.DealpassClose181="dealpass_close_181",e.DealpassContr181="dealpass_contr_181",e.DealpassCred181="dealpass_cred_181",e.DealpassRenew181="dealpass_renew_181",e.Dealpass="dealpass",e.DocRequestQuotes="doc_request_quotes",e.AcquiringAgreementSoftPOS="acquiring_agreement",e.AcquiringAgreementHardPOS="acquiring_agreement_hard_pos",e.TspRegistrSoftPOS="tsp_registr",e.TspRegistrHardPOS="tsp_registr_hard_pos",e.TspDeleteSoftPOS="tsp_delete",e.TspDeleteHardPOS="tsp_delete_hard_pos",e.TspDeviceSoftPOS="tsp_device",e.TspDeviceHardPOS="tsp_device_hard_pos",e.TspUpdateDeleteSoftPOS="tsp_update_delete",e.TspUpdateAddSoftPOS="tsp_update_add",e.TspUpdateDeleteHardPOS="tsp_update_delete_hard_pos",e.TspUpdateAddHardPOS="tsp_update_add_hard_pos",e.DocInterbnkCurrencyTransfer="doc_interbnk_currency_transfer",e.InqConf181="inq_conf_181",e.AverageRests="average_rests",e.ChangeTariffUlReq="change_tariff_ul_req",e.ChangePackageUl="change_package_ul",e.NotificationCrediting="notification_crediting",e.ClientCorr="client_corr",e.PhoneChange="phone_change",e.DocNso="doc_nso",e.DocNsoApplication="doc_nso_application",e.Compromise="compromise",e.Contact167ChangeAgreement="contact_167_change_agreement",e.IncomingQrPayments="incoming_transferbyqrcode_ul",e.RequestVedSupport="request_ved_support",e.InquirerAml="inquirer_aml",e.ReqRespAml="req_resp_aml",e.DocCurrBuyChildren="doc_currbuy_children",n;var e})()},34510:(Ee,Q,t)=>{"use strict";t.d(Q,{p:()=>u});var n=t(36895),e=t(97392);const i=["1c.01.svg","1c.02.svg","1c.03.svg","aml-contract.svg","aml-hands.svg","aml-man.svg","aml-shield-mark.svg","aml-shield.svg","aml_big_shield.svg","aml_chart.svg","aml_speed_big.svg","arrow-folder.svg","arrow-secondary.svg","article_shortcut.svg","bf.svg","card-recipient.svg","card_sidebar.svg","cash_register.svg","check.svg","circle-exclamation.svg","clock.svg","close.svg","computer.svg","contact-page.svg","credit-card.svg","delete-custom.svg","delete_caption.svg","deposit.svg","doc-arrow.svg","dot-menu.svg","edit-custom.svg","error-rounded.svg","error.svg","exclamation-point.svg","export.svg","eyeoff.svg","eyeon.svg","file-new.svg","fl.svg","gift.svg","graph.svg","greece-building.svg","info_speak_bubble.svg","ip.svg","mark.svg","mob-app.svg","nalog.svg","notify-tablet.svg","payment-for.svg","pdf-double.svg","pdf.svg","pending.svg","person_cancel.svg","pin-dcb.svg","places_phone.svg","places_pointer.svg","places_success.svg","places_wait.svg","qr-code.svg","question.svg","quick_reference.svg","rating.svg","recall.svg","receipt.svg","registry.svg","sbp-registry-canceled.svg","sbp-registry-draft.svg","sbp-registry-send.svg","sbp-registry.svg","sbp_qr.svg","self.svg","show_caption.svg","sign-new.svg","sign.svg","sms.svg","speed_hardtext.svg","support_ved.svg","svetofor.svg","svetofor_err.svg","svetofor_suc.svg","swift.svg","tamozh.svg","template.svg","timer.svg","turn.svg","ul.svg","upload-registry.svg","xlsx.svg"];var d=t(94650),a=t(11481);let u=(()=>{class h{constructor(m,x){this.matIconRegistry=m,this.domSanitizer=x,i.forEach(O=>{this.matIconRegistry.addSvgIcon(O.replace(".svg",""),this.domSanitizer.bypassSecurityTrustResourceUrl(`/assets/icons/${O}`))})}static#e=this.\u0275fac=function(x){return new(x||h)(d.\u0275\u0275inject(e.jv),d.\u0275\u0275inject(a.DomSanitizer))};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:h});static#n=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[n.ez,e.Ps]})}return h})()},16611:(Ee,Q,t)=>{"use strict";t.d(Q,{mU:()=>q,SQ:()=>Rt,lP:()=>Xe,Qv:()=>Wt,X$:()=>Qn,qw:()=>Me,D7:()=>ge});var n=t(94650),e=t(4707),i=t(77579),d=t(61135),a=t(54355),u=t(39841),h=t(69751),l=t(56451),m=t(97272);function $(Ae,bt,Le,Pt){return new(Le||(Le=Promise))(function(St,jt){function ht(It){try{Nt(Pt.next(It))}catch(Ot){jt(Ot)}}function on(It){try{Nt(Pt.throw(It))}catch(Ot){jt(Ot)}}function Nt(It){It.done?St(It.value):function dn(St){return St instanceof Le?St:new Le(function(jt){jt(St)})}(It.value).then(ht,on)}Nt((Pt=Pt.apply(Ae,bt||[])).next())})}t(44180),t(36895);var pe=t(39300),Ce=t(17414),U=t(54004),H=t(82722),Z=t(80529);t(24006),t(11481);class Ie{constructor(bt){this.injector=bt,this.translations=[],Ie.injector=this.injector}static get(bt,Le){return Ie.injector.get(bt,Le)}}Ie.\u0275fac=function(bt){return new(bt||Ie)(n.\u0275\u0275inject(n.Injector))},Ie.\u0275prov=n.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac}),Ie.injector=n.Injector.NULL;const pt=new n.InjectionToken("L10N_CONFIG");function Ht(Ae){return{locale:Ae.locale||{},translation:Ae.translation||{},logger:Ae.logger||{},localizedRouting:Ae.localizedRouting||{},search:Ae.search||{},localeInterceptor:Ae.localeInterceptor||{}}}const Wt={Session:0,Local:1,Cookie:2,Disabled:3};Wt[Wt.Session]="Session",Wt[Wt.Local]="Local",Wt[Wt.Cookie]="Cookie",Wt[Wt.Disabled]="Disabled";const Xe={Fallback:0,Static:1,WebAPI:2};Xe[Xe.Fallback]="Fallback",Xe[Xe.Static]="Static",Xe[Xe.WebAPI]="WebAPI";const lt={Decimal:0,Percent:1,Currency:2};lt[lt.Decimal]="Decimal",lt[lt.Percent]="Percent",lt[lt.Currency]="Currency";const Dt=/^(\d+)?\.((\d+)(\-(\d+))?)?$/,Yt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt={short:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},medium:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},long:{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},shortDate:{year:"numeric",month:"numeric",day:"numeric"},mediumDate:{year:"numeric",month:"short",day:"numeric"},longDate:{year:"numeric",month:"long",day:"numeric"},fullDate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},shortTime:{hour:"numeric",minute:"numeric"},mediumTime:{hour:"numeric",minute:"numeric",second:"numeric"}},ot={missingOnInit:"Missing 'ngOnInit' method: required by AoT compilation",missingOnDestroy:"Missing 'ngOnDestroy' method to cancel subscriptions: required by AoT compilation",missingLang:"Missing 'lang' parameter",missingDefaultLocale:"Missing 'defaultLocale' parameter",missingCurrency:"Missing 'currency' parameter",invalidNumberFormatAlias:"Invalid number format alias: the default format will be used",invalidDateFormatAlias:"Invalid date format alias: the default format will be used"};class Gt{constructor(bt){this.configuration=bt,Gt.level=this.configuration.logger.level||"off","off"!=Gt.level&&Gt.buffer.subscribe(Le=>{this.send(Le)})}static log(bt,Le){"off"!=Gt.level&&Gt.buffer.next({name:bt,message:Le})}send(bt){console[Gt.level](`angular-l10n (${bt.name}): ${ot[bt.message]}`)}}Gt.\u0275fac=function(bt){return new(bt||Gt)(n.\u0275\u0275inject(pt))},Gt.\u0275prov=n.\u0275\u0275defineInjectable({token:Gt,factory:Gt.\u0275fac}),Gt.level=null,Gt.buffer=new e.t;let wt=(()=>{class Ae{constructor(){this.cache={}}read(Le,Pt){const dn=this.cache[Le];if(dn)return dn;const St=new e.t(1);Pt.subscribe(ht=>St.next(ht),ht=>{St.error(ht),this.cache[Le]=void 0},()=>St.complete());const jt=St.asObservable();return this.cache[Le]=jt,jt}}return Ae.\u0275fac=function(Le){return new(Le||Ae)},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})();class Ze{static hasIntl(){return"object"==typeof Intl&&!!Intl}static hasDateTimeFormat(){return Ze.hasIntl()&&Intl.hasOwnProperty("DateTimeFormat")}static hasTimezone(){if(Ze.hasIntl()&&Ze.hasDateTimeFormat()){try{new Intl.DateTimeFormat("en-US",{timeZone:"America/Los_Angeles"}).format(new Date)}catch{return!1}return!0}return!1}static hasNumberFormat(){return Ze.hasIntl()&&Intl.hasOwnProperty("NumberFormat")}static hasCollator(){return Ze.hasIntl()&&Intl.hasOwnProperty("Collator")}}let In=(()=>{class Ae{}return Ae.\u0275fac=function(Le){return new(Le||Ae)},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),Dn=(()=>{class Ae{constructor(Le){this.configuration=Le,this.hasCookie=typeof navigator<"u"&&navigator.cookieEnabled,this.hasStorage=typeof Storage<"u"}read(Le){return $(this,void 0,void 0,function*(){let Pt=null;return this.configuration.locale.storage!=Wt.Disabled&&(this.configuration.locale.storage==Wt.Local&&this.hasStorage?Pt=function Ut(Ae){return localStorage.getItem(Ae)}(this.getName(Le)):this.configuration.locale.storage==Wt.Session&&this.hasStorage?Pt=function vn(Ae){return sessionStorage.getItem(Ae)}(this.getName(Le)):this.configuration.locale.storage==Wt.Cookie&&this.hasCookie&&(Pt=function xn(Ae){let bt=null;return typeof document<"u"&&(bt=new RegExp("(?:^|; )"+encodeURIComponent(Ae)+"=([^;]*)").exec(document.cookie)),bt?bt[1]:null}(this.getName(Le)))),Pt})}write(Le,Pt){return $(this,void 0,void 0,function*(){this.configuration.locale.storage!=Wt.Disabled&&(this.configuration.locale.storage==Wt.Local&&this.hasStorage?function bn(Ae,bt){localStorage.setItem(Ae,bt)}(this.getName(Le),Pt):this.configuration.locale.storage==Wt.Session&&this.hasStorage?function hn(Ae,bt){sessionStorage.setItem(Ae,bt)}(this.getName(Le),Pt):this.configuration.locale.storage==Wt.Cookie&&this.hasCookie&&function pn(Ae,bt,Le){let Pt="";if(null!=Le){const dn=new Date;dn.setTime(dn.getTime()+24*Le*60*60*1e3),Pt="; expires="+dn.toUTCString()}typeof document<"u"&&(document.cookie=Ae+"="+bt+Pt+"; path=/")}(this.getName(Le),Pt,this.configuration.locale.cookieExpiration))})}getName(Le){return this.configuration.locale.storageNames&&this.configuration.locale.storageNames[Le]||Le}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(pt))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})();class Tn{get value(){return this.formattedValue}set value(bt){this.formattedValue=bt,this.parseValue()}build(bt,Le,Pt,dn,St){this.languageCode=bt,this.scriptCode=Pt,this.countryCode=Le,this.numberingSystem=dn,this.calendar=St;let jt=bt;jt+=Pt?"-"+Pt:"",jt+=Le?"-"+Le:"",jt+=dn||St?"-u":"",jt+=dn?"-nu-"+dn:"",jt+=St?"-ca-"+St:"",this.formattedValue=jt}parseValue(){if(this.value){let bt=this.value;const Le=bt.search("-u");if(-1!=Le){const dn=bt.substring(Le+1).split("-");3===dn.length?"nu"==dn[1]?(this.numberingSystem=dn[2],this.calendar=void 0):"ca"==dn[1]&&(this.numberingSystem=void 0,this.calendar=dn[2]):(this.numberingSystem=dn[2],this.calendar=dn[4]),bt=bt.substring(0,Le)}const Pt=bt.split("-");switch(Pt.length){case 1:this.languageCode=Pt[0],this.scriptCode=void 0,this.countryCode=void 0;break;case 2:this.languageCode=Pt[0],this.scriptCode=void 0,this.countryCode=Pt[1];break;default:this.languageCode=Pt[0],this.scriptCode=Pt[1],this.countryCode=Pt[2]}}}}class mn{static formatNumber(bt,Le,Pt,dn,St,jt){return Ze.hasNumberFormat()?(bt="string"!=typeof bt||isNaN(+bt-parseFloat(bt))?bt:+bt,mn.numberFormatter(bt,Le,Pt,dn,St,jt)):St?bt+" "+St:bt}static formatDate(bt,Le,Pt,dn){if(!Ze.hasDateTimeFormat())return bt;let St;if("string"==typeof bt&&(bt=bt.trim()),mn.isDate(bt))St=bt;else if(isNaN(bt-parseFloat(bt)))if("string"==typeof bt&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(bt)){const[jt,ht,on]=bt.split("-").map(Nt=>parseInt(Nt,10));St=new Date(jt,ht-1,on)}else St=new Date(bt);else St=new Date(parseFloat(bt));if(!mn.isDate(St)){let jt;"string"==typeof bt&&(jt=bt.match(Yt))&&(St=mn.isoStringToDate(jt))}return mn.dateTimeFormatter(St,Le,Pt,dn)}static numberFormatter(bt,Le,Pt,dn,St,jt){let ht={};if(dn)if("string"==typeof dn){const on=function Yn(Ae){const bt=Ae.match(Dt);if(null==bt)return null;const Le={};return null!=bt[1]&&(Le.minimumIntegerDigits=parseInt(bt[1])),null!=bt[3]&&(Le.minimumFractionDigits=parseInt(bt[3])),null!=bt[5]&&(Le.maximumFractionDigits=parseInt(bt[5])),Le}(dn);null!=on?ht=on:Gt.log("IntlFormatter","invalidNumberFormatAlias")}else ht=dn;return ht.style=lt[Pt].toLowerCase(),Pt==lt.Currency&&(ht.currency=St,ht.currencyDisplay=jt),new Intl.NumberFormat(Le,ht).format(bt)}static dateTimeFormatter(bt,Le,Pt,dn){let St={};if(Pt)if("string"==typeof Pt){const jt=Tt[Pt];jt?St=jt:Gt.log("IntlFormatter","invalidDateFormatAlias")}else St=Pt;return St.timeZone=Ze.hasTimezone()?dn:"UTC",new Intl.DateTimeFormat(Le,St).format(bt).replace(/[\u200e\u200f]/g,"")}static isDate(bt){return bt instanceof Date&&!isNaN(bt.valueOf())}static isoStringToDate(bt){const Le=new Date(0);let Pt=0,dn=0;const jt=bt[8]?Le.setUTCHours:Le.setHours;bt[9]&&(Pt=+(bt[9]+bt[10]),dn=+(bt[9]+bt[11])),(bt[8]?Le.setUTCFullYear:Le.setFullYear).call(Le,+bt[1],+bt[2]-1,+bt[3]);const ht=+(bt[4]||"0")-Pt,on=+(bt[5]||"0")-dn,Nt=+(bt[6]||"0"),It=Math.round(1e3*parseFloat("0."+(bt[7]||0)));return jt.call(Le,ht,on,Nt,It),Le}}let cn=(()=>{class Ae{constructor(Le,Pt){this.configuration=Le,this.storage=Pt,this.languageCodeChanged=new i.x,this.defaultLocaleChanged=new i.x,this.currencyCodeChanged=new i.x,this.timezoneChanged=new i.x,this.defaultLocale=new Tn}getConfiguration(){return this.configuration.locale}init(){return $(this,void 0,void 0,function*(){yield this.initLanguage(),yield this.initDefaultLocale(),yield this.initCurrency(),yield this.initTimezone()})}getBrowserLanguage(){let Le=null;return typeof navigator<"u"&&navigator.language&&(Le=navigator.language),null!=Le&&(Le=Le.split("-")[0]),Le}getAvailableLanguages(){let Le=[];return this.configuration.locale.languages&&(Le=this.configuration.locale.languages.map(Pt=>Pt.code)),Le}getLanguageDirection(Le=this.defaultLocale.languageCode){const Pt=this.matchLanguage(Le);return Pt?Pt.dir:""}getCurrentLanguage(){return this.defaultLocale.languageCode}getCurrentCountry(){return this.defaultLocale.countryCode||""}getCurrentScript(){return this.defaultLocale.scriptCode||""}getCurrentLocale(){let Le=this.defaultLocale.languageCode;return Le+=this.defaultLocale.scriptCode?"-"+this.defaultLocale.scriptCode:"",Le+=this.defaultLocale.countryCode?"-"+this.defaultLocale.countryCode:"",Le}getCurrentNumberingSystem(){return this.defaultLocale.numberingSystem||""}getCurrentCalendar(){return this.defaultLocale.calendar||""}getDefaultLocale(){return this.defaultLocale.value}getCurrentCurrency(){return this.currencyCode}getCurrencySymbol(Le,Pt,dn){let St=this.currencyCode;if(Ze.hasNumberFormat()){const jt=this.formatDecimal(0,"1.0-0",Pt);St=this.formatCurrency(0,"1.0-0",Le,Pt,dn).replace(jt,""),St=St.trim()}return St}getCurrentTimezone(){return this.timezone}setCurrentLanguage(Le){this.defaultLocale.languageCode!=Le&&(this.rollbackLanguageCode=this.defaultLocale.languageCode,this.defaultLocale.build(Le),this.releaseLanguage())}setDefaultLocale(Le,Pt,dn,St,jt){(this.defaultLocale.languageCode!=Le||this.defaultLocale.countryCode!=Pt||this.defaultLocale.scriptCode!=dn||this.defaultLocale.numberingSystem!=St||this.defaultLocale.calendar!=jt)&&(this.rollbackDefaultLocale=this.defaultLocale.value,this.defaultLocale.build(Le,Pt,dn,St,jt),this.releaseDefaultLocale())}setCurrentCurrency(Le){this.currencyCode!=Le&&(this.rollbackCurrencyCode=this.currencyCode,this.currencyCode=Le,this.releaseCurrency())}setCurrentTimezone(Le){this.timezone!=Le&&(this.rollbackTimezone=this.timezone,this.timezone=Le,this.releaseTimezone())}formatDate(Le,Pt,dn,St){return mn.formatDate(Le,dn||this.defaultLocale.value,Pt||"mediumDate",St||this.timezone)}formatDecimal(Le,Pt,dn){return mn.formatNumber(Le,dn||this.defaultLocale.value,lt.Decimal,Pt)}formatPercent(Le,Pt,dn){return mn.formatNumber(Le,dn||this.defaultLocale.value,lt.Percent,Pt)}formatCurrency(Le,Pt,dn,St,jt){return mn.formatNumber(Le,St||this.defaultLocale.value,lt.Currency,Pt,jt||this.currencyCode,dn||"symbol")}composeLocale(Le){let Pt="";if(this.defaultLocale.languageCode)for(const dn of Le)switch(dn){case"scriptCode":Pt+="-"+this.defaultLocale.scriptCode;break;case"countryCode":Pt+="-"+this.defaultLocale.countryCode;break;default:Pt+=this.defaultLocale.languageCode}return Pt}rollback(){this.rollbackLanguageCode&&this.rollbackLanguageCode!=this.defaultLocale.languageCode&&(this.defaultLocale.value=this.rollbackLanguageCode,this.releaseLanguage()),this.rollbackDefaultLocale&&this.rollbackDefaultLocale!=this.defaultLocale.value&&(this.defaultLocale.value=this.rollbackDefaultLocale,this.releaseDefaultLocale()),this.rollbackCurrencyCode&&this.rollbackCurrencyCode!=this.currencyCode&&(this.currencyCode=this.rollbackCurrencyCode,this.releaseCurrency()),this.rollbackTimezone&&this.rollbackTimezone!=this.timezone&&(this.timezone=this.rollbackTimezone,this.releaseTimezone())}initLanguage(){return $(this,void 0,void 0,function*(){if(this.configuration.locale.language&&!this.defaultLocale.languageCode){const Le=yield this.storage.read("defaultLocale");if(Le)this.defaultLocale.value=Le;else{const Pt=this.getBrowserLanguage(),dn=this.matchLanguage(Pt);this.defaultLocale.build(Pt&&dn?Pt:this.configuration.locale.language),this.storage.write("defaultLocale",this.defaultLocale.value)}this.rollbackLanguageCode=this.defaultLocale.languageCode,this.sendLanguageEvents()}})}initDefaultLocale(){return $(this,void 0,void 0,function*(){if(this.configuration.locale.defaultLocale&&!this.defaultLocale.value){const Le=yield this.storage.read("defaultLocale");Le?this.defaultLocale.value=Le:(this.defaultLocale.build(this.configuration.locale.defaultLocale.languageCode,this.configuration.locale.defaultLocale.countryCode,this.configuration.locale.defaultLocale.scriptCode,this.configuration.locale.defaultLocale.numberingSystem,this.configuration.locale.defaultLocale.calendar),this.storage.write("defaultLocale",this.defaultLocale.value)),this.rollbackDefaultLocale=this.defaultLocale.value,this.sendDefaultLocaleEvents()}})}initCurrency(){return $(this,void 0,void 0,function*(){if(this.configuration.locale.currency&&!this.currencyCode){const Le=yield this.storage.read("currency");Le?this.currencyCode=Le:(this.currencyCode=this.configuration.locale.currency,this.storage.write("currency",this.currencyCode)),this.rollbackCurrencyCode=this.currencyCode,this.sendCurrencyEvents()}})}initTimezone(){return $(this,void 0,void 0,function*(){if(this.configuration.locale.timezone&&!this.timezone){const Le=yield this.storage.read("timezone");Le?this.timezone=Le:(this.timezone=this.configuration.locale.timezone,this.storage.write("timezone",this.timezone)),this.rollbackTimezone=this.timezone,this.sendTimezoneEvents()}})}matchLanguage(Le){let Pt;return this.configuration.locale.languages&&null!=Le&&(Pt=this.configuration.locale.languages.find(dn=>dn.code==Le)),Pt}releaseLanguage(){this.storage.write("defaultLocale",this.defaultLocale.value),this.sendLanguageEvents()}releaseDefaultLocale(){this.storage.write("defaultLocale",this.defaultLocale.value),this.sendDefaultLocaleEvents()}releaseCurrency(){this.storage.write("currency",this.currencyCode),this.sendCurrencyEvents()}releaseTimezone(){this.storage.write("timezone",this.timezone),this.sendTimezoneEvents()}sendLanguageEvents(){this.languageCodeChanged.next(this.defaultLocale.languageCode)}sendDefaultLocaleEvents(){this.defaultLocaleChanged.next(this.defaultLocale.value)}sendCurrencyEvents(){this.currencyCodeChanged.next(this.currencyCode)}sendTimezoneEvents(){this.timezoneChanged.next(this.timezone)}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(pt),n.\u0275\u0275inject(In))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),Bt=(()=>{class Ae{}return Ae.\u0275fac=function(Le){return new(Le||Ae)},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),En=(()=>{class Ae{constructor(Le,Pt,dn){this.http=Le,this.configuration=Pt,this.caching=dn,this.headers=new Z.WM({"Content-Type":"application/json"}),this.options={}}getTranslation(Le,Pt){this.setOptions();let dn="";return dn+=Pt.type===Xe.WebAPI?Pt.path+Le:Pt.prefix+Le+".json",this.getRequest(dn)}setOptions(){this.options={headers:this.headers,params:this.configuration.translation.version?(new Z.LE).set("ver",this.configuration.translation.version):void 0}}getRequest(Le){let Pt;return Pt=this.configuration.translation.timeout?this.http.get(Le,this.options).pipe((0,Ce.V)(this.configuration.translation.timeout)):this.http.get(Le,this.options),this.configuration.translation.caching?this.caching.read(Le,Pt):Pt}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(Z.eN,8),n.\u0275\u0275inject(pt),n.\u0275\u0275inject(wt))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),Wn=(()=>{class Ae{}return Ae.\u0275fac=function(Le){return new(Le||Ae)},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),rn=(()=>{class Ae{constructor(Le){this.configuration=Le}parseValue(Le,Pt,dn,St,jt){return null==dn?this.handleMissingValue(Le):St?this.handleArgs(dn,St):dn}handleMissingValue(Le){return null!=this.configuration.translation.missingValue?"function"==typeof this.configuration.translation.missingValue?this.configuration.translation.missingValue(Le):this.configuration.translation.missingValue:Le}handleArgs(Le,Pt){return Le.replace(/{{\s?([^{}\s]*)\s?}}/g,(St,jt)=>{const ht=Pt[jt];return typeof ht<"u"?ht:St})}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(pt))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})();function Sn(Ae){return"object"==typeof Ae&&!Array.isArray(Ae)}function ke(Ae,bt){const Le=Object.assign({},Ae);return Sn(Ae)&&Sn(bt)&&Object.keys(bt).forEach(Pt=>{Sn(bt[Pt])?Pt in Ae?Le[Pt]=ke(Ae[Pt],bt[Pt]):Object.assign(Le,{[Pt]:bt[Pt]}):Object.assign(Le,{[Pt]:bt[Pt]})}),Le}let ge=(()=>{class Ae{constructor(Le,Pt,dn,St,jt){this.configuration=Le,this.locale=Pt,this.translationProvider=dn,this.translationHandler=St,this.injector=jt,this.translationError=new i.x,this.translation=new d.X(""),this.translationData={},this.injector.translations.push(this)}getConfiguration(){return this.configuration.translation}init(){return $(this,void 0,void 0,function*(){(0,a.S)(this.locale.languageCodeChanged,this.locale.defaultLocaleChanged).subscribe(()=>{this.loadTranslation().catch(Le=>null)}),yield this.loadTranslation().catch(Le=>{throw Le})})}loadTranslation(){return $(this,void 0,void 0,function*(){let Le;Le=this.configuration.translation.composedLanguage?this.locale.composeLocale(this.configuration.translation.composedLanguage):this.locale.getCurrentLanguage(),Le&&(this.translationData={},this.configuration.translation.translationData&&this.getTranslation(Le),this.configuration.translation.providers&&(yield this.getTranslationAsync(Le).toPromise().catch(Pt=>{throw Pt})))})}translationChanged(){return this.translation.asObservable()}latestTranslation(){const Le=[];for(const Pt of this.injector.translations)Le.push(Pt.translationChanged());return(0,u.a)(Le).pipe((0,pe.h)(Pt=>Pt.length==Le.length&&Pt.every((dn,St,jt)=>dn==jt[0])),(0,U.U)(Pt=>Pt[0]))}translate(Le,Pt,dn){if(Array.isArray(Le)){const St={};for(const jt of Le)St[jt]=this.translateKey(jt,Pt,dn||this.translation.getValue());return St}return this.translateKey(Le,Pt,dn||this.translation.getValue())}translateAsync(Le,Pt,dn){return h.y.create(St=>{const jt=this.translate(Le,Pt,dn);St.next(jt),St.complete()})}translateKey(Le,Pt,dn){return this.configuration.translation.i18nPlural&&/^\d+\b/.exec(Le)?this.translateI18nPlural(Le,Pt,dn):this.getValue(Le,Pt,dn)}getValue(Le,Pt,dn){const St=Le;let jt=null,ht=this.translationData[dn];if(ht){if(this.configuration.translation.composedKeySeparator){const on=Le.split(this.configuration.translation.composedKeySeparator);for(Le=on.shift();on.length>0&&ht[Le];)ht=ht[Le],Le=on.shift()}jt=typeof ht[Le]>"u"?ht[this.configuration.translation.missingKey||""]:ht[Le]}return this.translationHandler.parseValue(St,Le,jt,Pt,dn)}translateI18nPlural(Le,Pt,dn){let St=Le.replace(/^\d+\b/,"");St=St.trim();const jt=parseFloat(Le);return isNaN(jt)||(Le=Le.replace(/^\d+/,this.locale.formatDecimal(jt))),Le.replace(St,this.getValue(St,Pt,dn))}getTranslation(Le){const Pt=this.configuration.translation.translationData.filter(dn=>dn.languageCode==Le);for(const dn of Pt)this.addData(dn.data,Le);this.configuration.translation.providers||this.releaseTranslation(Le)}getTranslationAsync(Le){return h.y.create(Pt=>{const dn=[],St=[];for(const ht of this.configuration.translation.providers)if(typeof ht.type<"u"&&ht.type==Xe.Fallback){let on=Le;ht.fallbackLanguage&&(on=this.locale.composeLocale(ht.fallbackLanguage)),dn.push(this.translationProvider.getTranslation(on,ht))}else St.push(this.translationProvider.getTranslation(Le,ht));const jt=(0,l.T)(...St);dn.push(jt),(0,m.z)(...dn).subscribe(ht=>{this.addData(ht,Le)},ht=>{this.handleError(ht,Le),Pt.error(ht),Pt.complete()},()=>{this.releaseTranslation(Le),Pt.next(null),Pt.complete()})})}addData(Le,Pt){this.translationData[Pt]=typeof this.translationData[Pt]<"u"?ke(this.translationData[Pt],Le):Le}releaseTranslation(Le){this.translation.next(Le)}handleError(Le,Pt){this.configuration.translation.rollbackOnError?this.locale.rollback():this.releaseTranslation(Pt),this.translationError.next(Le)}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(pt),n.\u0275\u0275inject(cn),n.\u0275\u0275inject(Bt),n.\u0275\u0275inject(Wn),n.\u0275\u0275inject(Ie))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),q=(()=>{class Ae{}return Ae.\u0275fac=function(Le){return new(Le||Ae)},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),J=(()=>{class Ae{constructor(Le,Pt){this.locale=Le,this.translation=Pt}load(){return $(this,void 0,void 0,function*(){yield this.locale.init(),yield this.translation.init().catch(Le=>{throw Le})})}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(cn),n.\u0275\u0275inject(ge))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),Oe=(()=>{class Ae{constructor(Le){this.translation=Le}load(){return $(this,void 0,void 0,function*(){yield this.translation.init().catch(Le=>{throw Le})})}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(ge))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})();function Rt(){return function Ae(bt,Le){const Pt=bt.ngOnInit;typeof Pt>"u"&&Gt.log(bt.constructor?bt.constructor.name:"Language decorator","missingOnInit"),bt.ngOnInit=function dn(){const St=Ie.get(ge);typeof Le<"u"&&St.latestTranslation().pipe(function Et(Ae){const bt=new i.x,Le=Ae.ngOnDestroy;return typeof Le>"u"&&Gt.log(Ae.constructor?Ae.constructor.name:"takeUntilDestroyed","missingOnDestroy"),Ae.ngOnDestroy=function Pt(){bt.next(!0),bt.complete(),Le&&Le.apply(this)},(0,H.R)(bt)}(this)).subscribe(jt=>{this[Le]=jt;const ht=Object.keys(this).find(on=>this[on]&&void 0!==this[on].markForCheck);ht&&this[ht].markForCheck()}),Pt&&Pt.apply(this)},typeof Le<"u"&&Object.defineProperty(bt,Le,{writable:!0,value:""})}}let Qn=(()=>{class Ae{constructor(Le){this.translation=Le}transform(Le,Pt,dn){return null==Le||""===Le?null:(typeof Pt>"u"&&Gt.log("TranslatePipe","missingLang"),this.translation.translate(Le,dn,Pt))}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275directiveInject(ge,16))},Ae.\u0275pipe=n.\u0275\u0275definePipe({name:"translate",type:Ae,pure:!0}),Ae})();class no{static getTargetNode(bt){return no.walk(bt)}static walk(bt){const Le=[];let Pt,dn=0,St=1;for(Le.push(bt);Le.length>0&&dn<=no.MAX_DEPTH;){if(Pt=Le.shift(),no.isTargetNode(Pt))return Pt;if(dn<no.MAX_DEPTH&&null!=Pt.childNodes)for(const jt of Pt.childNodes)no.isValidNode(jt)&&Le.push(jt);0==--St&&(dn++,St=Le.length)}return bt}static isTargetNode(bt){return typeof bt<"u"&&3==bt.nodeType&&null!=bt.nodeValue&&""!=bt.nodeValue.trim()}static isValidNode(bt){if(typeof bt<"u"&&1==bt.nodeType&&bt.attributes)for(const Le of bt.attributes)if(Le&&no.SELECTOR.test(Le.name))return!1;return!0}}function ve(Ae,bt){return[Ie,Gt,wt,{provide:pt,useValue:Ht(Ae)},cn,{provide:In,useClass:bt.localeStorage||Dn},ge,{provide:Bt,useClass:bt.translationProvider||En},{provide:Wn,useClass:bt.translationHandler||rn},{provide:q,useClass:J}]}function Se(Ae,bt){return[{provide:pt,useValue:Ht(Ae)},ge,{provide:Bt,useClass:bt.translationProvider||En},{provide:Wn,useClass:bt.translationHandler||rn},{provide:q,useClass:Oe}]}no.SELECTOR=new RegExp("^l10n|translate|locale"),no.MAX_DEPTH=10;let Me=(()=>{class Ae{constructor(Le,Pt){this.injector=Le,this.logger=Pt}static forRoot(Le,Pt={}){return{ngModule:Ae,providers:ve(Le,Pt)}}static forChild(Le,Pt={}){return{ngModule:Ae,providers:Se(Le,Pt)}}}return Ae.\u0275fac=function(Le){return new(Le||Ae)(n.\u0275\u0275inject(Ie),n.\u0275\u0275inject(Gt))},Ae.\u0275mod=n.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=n.\u0275\u0275defineInjector({}),Ae})()},67795:(Ee,Q,t)=>{"use strict";var e=t(94650),i=t(24006),d=t(11481),a=t(2243),u=t(94650);Q.wR={provide:i.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return m}),multi:!0};var m=function(){function L(w,B,_){this._renderer=w,this._elementRef=B,this._compositionMode=_,this.textMaskConfig={mask:[],guide:!0,placeholderChar:"_",pipe:void 0,keepCharPositions:!1},this.onChange=function(y){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function l(){var L=d.\u0275getDOM()?d.\u0275getDOM().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}return L.prototype.ngOnChanges=function(w){this._setupMask(!0),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(this.inputElement.value)},L.prototype.writeValue=function(w){this._setupMask(),this._renderer.setProperty(this.inputElement,"value",w??""),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(w)},L.prototype.registerOnChange=function(w){this.onChange=w},L.prototype.registerOnTouched=function(w){this.onTouched=w},L.prototype.setDisabledState=function(w){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",w)},L.prototype._handleInput=function(w){(!this._compositionMode||this._compositionMode&&!this._composing)&&(this._setupMask(),void 0!==this.textMaskInputElement&&(this.textMaskInputElement.update(w),this.onChange(w=this.inputElement.value)))},L.prototype._setupMask=function(w){void 0===w&&(w=!1),this.inputElement||(this.inputElement="INPUT"===this._elementRef.nativeElement.tagName.toUpperCase()?this._elementRef.nativeElement:this._elementRef.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&w&&(this.textMaskInputElement=a.createTextMaskInputElement(Object.assign({inputElement:this.inputElement},this.textMaskConfig)))},L.prototype._compositionStart=function(){this._composing=!0},L.prototype._compositionEnd=function(w){this._composing=!1,this._compositionMode&&this._handleInput(w)},L.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[i.COMPOSITION_BUFFER_MODE]}]}]},L.propDecorators={textMaskConfig:[{type:e.Input,args:["textMask"]}]},L.\u0275fac=function(B){return new(B||L)(u.\u0275\u0275directiveInject(u.Renderer2),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(i.COMPOSITION_BUFFER_MODE,8))},L.\u0275dir=u.\u0275\u0275defineDirective({type:L,selectors:[["","textMask",""]],hostBindings:function(B,_){1&B&&u.\u0275\u0275listener("input",function($){return _._handleInput($.target.value)})("blur",function(){return _.onTouched()})("compositionstart",function(){return _._compositionStart()})("compositionend",function($){return _._compositionEnd($.target.value)})},inputs:{textMaskConfig:["textMask","textMaskConfig"]},exportAs:["textMask"],features:[u.\u0275\u0275ProvidersFeature([Q.wR]),u.\u0275\u0275NgOnChangesFeature]}),L}();Q.hd=m;var x=function(){function L(){}return L.ctorParameters=function(){return[]},L.\u0275fac=function(B){return new(B||L)},L.\u0275mod=u.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=u.\u0275\u0275defineInjector({}),L}();Q.QA=x;var O=t(2243);Q.xm=O.conformToMask},71345:Ee=>{var Q=4,t=.001,n=1e-7,e=10,i=11,d=1/(i-1),a="function"==typeof Float32Array;function u(B,_){return 1-3*_+3*B}function h(B,_){return 3*_-6*B}function l(B){return 3*B}function m(B,_,y){return((u(_,y)*B+h(_,y))*B+l(_))*B}function x(B,_,y){return 3*u(_,y)*B*B+2*h(_,y)*B+l(_)}function w(B){return B}Ee.exports=function(_,y,$,C){if(!(0<=_&&_<=1&&0<=$&&$<=1))throw new Error("bezier x values must be in [0, 1] range");if(_===y&&$===C)return w;for(var T=a?new Float32Array(i):new Array(i),j=0;j<i;++j)T[j]=m(j*d,_,$);return function(z){return 0===z?0:1===z?1:m(function I(F){for(var z=0,X=1,p=i-1;X!==p&&T[X]<=F;++X)z+=d;--X;var E=z+(F-T[X])/(T[X+1]-T[X])*d,R=x(E,_,$);return R>=t?function L(B,_,y,$){for(var C=0;C<Q;++C){var T=x(_,y,$);if(0===T)return _;_-=(m(_,y,$)-B)/T}return _}(F,E,_,$):0===R?E:function O(B,_,y,$,C){var T,j,I=0;do{(T=m(j=_+(y-_)/2,$,C)-B)>0?y=j:_=j}while(Math.abs(T)>n&&++I<e);return j}(F,z,z+d,_,$)}(z),y,C)}}},77466:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(58319),t(9493),t(37865),t(53057),function(){var e=n,d=e.lib.BlockCipher,a=e.algo,u=[],h=[],l=[],m=[],x=[],O=[],L=[],w=[],B=[],_=[];!function(){for(var C=[],T=0;T<256;T++)C[T]=T<128?T<<1:T<<1^283;var j=0,I=0;for(T=0;T<256;T++){var F=I^I<<1^I<<2^I<<3^I<<4;u[j]=F=F>>>8^255&F^99,h[F]=j;var P,z=C[j],X=C[z],p=C[X];l[j]=(P=257*C[F]^16843008*F)<<24|P>>>8,m[j]=P<<16|P>>>16,x[j]=P<<8|P>>>24,O[j]=P,L[F]=(P=16843009*p^65537*X^257*z^16843008*j)<<24|P>>>8,w[F]=P<<16|P>>>16,B[F]=P<<8|P>>>24,_[F]=P,j?(j=z^C[C[C[p^z]]],I^=C[C[I]]):j=I=1}}();var y=[0,1,2,4,8,16,32,64,128,27,54],$=a.AES=d.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var T=this._keyPriorReset=this._key,j=T.words,I=T.sigBytes/4,z=4*((this._nRounds=I+6)+1),X=this._keySchedule=[],p=0;p<z;p++)p<I?X[p]=j[p]:(C=X[p-1],p%I?I>6&&p%I==4&&(C=u[C>>>24]<<24|u[C>>>16&255]<<16|u[C>>>8&255]<<8|u[255&C]):(C=u[(C=C<<8|C>>>24)>>>24]<<24|u[C>>>16&255]<<16|u[C>>>8&255]<<8|u[255&C],C^=y[p/I|0]<<24),X[p]=X[p-I]^C);for(var P=this._invKeySchedule=[],E=0;E<z;E++){if(p=z-E,E%4)var C=X[p];else C=X[p-4];P[E]=E<4||p<=4?C:L[u[C>>>24]]^w[u[C>>>16&255]]^B[u[C>>>8&255]]^_[u[255&C]]}}},encryptBlock:function(C,T){this._doCryptBlock(C,T,this._keySchedule,l,m,x,O,u)},decryptBlock:function(C,T){var j=C[T+1];C[T+1]=C[T+3],C[T+3]=j,this._doCryptBlock(C,T,this._invKeySchedule,L,w,B,_,h),j=C[T+1],C[T+1]=C[T+3],C[T+3]=j},_doCryptBlock:function(C,T,j,I,F,z,X,p){for(var P=this._nRounds,E=C[T]^j[0],R=C[T+1]^j[1],ne=C[T+2]^j[2],G=C[T+3]^j[3],ce=4,xe=1;xe<P;xe++){var we=I[E>>>24]^F[R>>>16&255]^z[ne>>>8&255]^X[255&G]^j[ce++],Ge=I[R>>>24]^F[ne>>>16&255]^z[G>>>8&255]^X[255&E]^j[ce++],ct=I[ne>>>24]^F[G>>>16&255]^z[E>>>8&255]^X[255&R]^j[ce++],pe=I[G>>>24]^F[E>>>16&255]^z[R>>>8&255]^X[255&ne]^j[ce++];E=we,R=Ge,ne=ct,G=pe}we=(p[E>>>24]<<24|p[R>>>16&255]<<16|p[ne>>>8&255]<<8|p[255&G])^j[ce++],Ge=(p[R>>>24]<<24|p[ne>>>16&255]<<16|p[G>>>8&255]<<8|p[255&E])^j[ce++],ct=(p[ne>>>24]<<24|p[G>>>16&255]<<16|p[E>>>8&255]<<8|p[255&R])^j[ce++],pe=(p[G>>>24]<<24|p[E>>>16&255]<<16|p[R>>>8&255]<<8|p[255&ne])^j[ce++],C[T]=we,C[T+1]=Ge,C[T+2]=ct,C[T+3]=pe},keySize:8});e.AES=d._createHelper($)}(),n.AES)},41302:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(58319),t(9493),t(37865),t(53057),function(){var e=n,d=e.lib.BlockCipher;const u=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],l=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var m={pbox:[],sbox:[]};function x(_,y){let I=_.sbox[0][y>>24&255]+_.sbox[1][y>>16&255];return I^=_.sbox[2][y>>8&255],I+=_.sbox[3][255&y],I}function O(_,y,$){let j,C=y,T=$;for(let I=0;I<u;++I)C^=_.pbox[I],T=x(_,C)^T,j=C,C=T,T=j;return j=C,C=T,T=j,T^=_.pbox[u],C^=_.pbox[u+1],{left:C,right:T}}var B=e.algo.Blowfish=d.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var _=this._keyPriorReset=this._key;!function w(_,y,$){for(let F=0;F<4;F++){_.sbox[F]=[];for(let z=0;z<256;z++)_.sbox[F][z]=l[F][z]}let C=0;for(let F=0;F<u+2;F++)_.pbox[F]=h[F]^y[C],C++,C>=$&&(C=0);let T=0,j=0,I=0;for(let F=0;F<u+2;F+=2)I=O(_,T,j),T=I.left,j=I.right,_.pbox[F]=T,_.pbox[F+1]=j;for(let F=0;F<4;F++)for(let z=0;z<256;z+=2)I=O(_,T,j),T=I.left,j=I.right,_.sbox[F][z]=T,_.sbox[F][z+1]=j;return!0}(m,_.words,_.sigBytes/4)}},encryptBlock:function(_,y){var $=O(m,_[y],_[y+1]);_[y]=$.left,_[y+1]=$.right},decryptBlock:function(_,y){var $=function L(_,y,$){let j,C=y,T=$;for(let I=u+1;I>1;--I)C^=_.pbox[I],T=x(_,C)^T,j=C,C=T,T=j;return j=C,C=T,T=j,T^=_.pbox[1],C^=_.pbox[0],{left:C,right:T}}(m,_[y],_[y+1]);_[y]=$.left,_[y+1]=$.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=d._createHelper(B)}(),n.Blowfish)},53057:function(Ee,Q,t){var e,i,d,a,u,h,l,x,L,w,_,y,$,T,I,z,X,P,E,n;Ee.exports=(n=t(67585),t(37865),void(n.lib.Cipher||(i=n,d=i.lib,a=d.Base,u=d.WordArray,h=d.BufferedBlockAlgorithm,l=i.enc,x=l.Base64,L=i.algo.EvpKDF,w=d.Cipher=h.extend({cfg:a.extend(),createEncryptor:function(R,ne){return this.create(this._ENC_XFORM_MODE,R,ne)},createDecryptor:function(R,ne){return this.create(this._DEC_XFORM_MODE,R,ne)},init:function(R,ne,G){this.cfg=this.cfg.extend(G),this._xformMode=R,this._key=ne,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){return R&&this._append(R),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(ne){return"string"==typeof ne?E:X}return function(ne){return{encrypt:function(G,ce,xe){return R(ce).encrypt(ne,G,ce,xe)},decrypt:function(G,ce,xe){return R(ce).decrypt(ne,G,ce,xe)}}}}()}),d.StreamCipher=w.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),_=i.mode={},y=d.BlockCipherMode=a.extend({createEncryptor:function(R,ne){return this.Encryptor.create(R,ne)},createDecryptor:function(R,ne){return this.Decryptor.create(R,ne)},init:function(R,ne){this._cipher=R,this._iv=ne}}),$=_.CBC=function(){var R=y.extend();function ne(G,ce,xe){var we,Ge=this._iv;Ge?(we=Ge,this._iv=e):we=this._prevBlock;for(var ct=0;ct<xe;ct++)G[ce+ct]^=we[ct]}return R.Encryptor=R.extend({processBlock:function(G,ce){var xe=this._cipher,we=xe.blockSize;ne.call(this,G,ce,we),xe.encryptBlock(G,ce),this._prevBlock=G.slice(ce,ce+we)}}),R.Decryptor=R.extend({processBlock:function(G,ce){var xe=this._cipher,we=xe.blockSize,Ge=G.slice(ce,ce+we);xe.decryptBlock(G,ce),ne.call(this,G,ce,we),this._prevBlock=Ge}}),R}(),T=(i.pad={}).Pkcs7={pad:function(R,ne){for(var G=4*ne,ce=G-R.sigBytes%G,xe=ce<<24|ce<<16|ce<<8|ce,we=[],Ge=0;Ge<ce;Ge+=4)we.push(xe);var ct=u.create(we,ce);R.concat(ct)},unpad:function(R){R.sigBytes-=255&R.words[R.sigBytes-1>>>2]}},d.BlockCipher=w.extend({cfg:w.cfg.extend({mode:$,padding:T}),reset:function(){var R;w.reset.call(this);var ne=this.cfg,G=ne.iv,ce=ne.mode;this._xformMode==this._ENC_XFORM_MODE?R=ce.createEncryptor:(R=ce.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,G&&G.words):(this._mode=R.call(ce,this,G&&G.words),this._mode.__creator=R)},_doProcessBlock:function(R,ne){this._mode.processBlock(R,ne)},_doFinalize:function(){var R,ne=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(ne.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),ne.unpad(R)),R},blockSize:4}),I=d.CipherParams=a.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),z=(i.format={}).OpenSSL={stringify:function(R){var G=R.ciphertext,ce=R.salt;return(ce?u.create([1398893684,1701076831]).concat(ce).concat(G):G).toString(x)},parse:function(R){var ne,G=x.parse(R),ce=G.words;return 1398893684==ce[0]&&1701076831==ce[1]&&(ne=u.create(ce.slice(2,4)),ce.splice(0,4),G.sigBytes-=16),I.create({ciphertext:G,salt:ne})}},X=d.SerializableCipher=a.extend({cfg:a.extend({format:z}),encrypt:function(R,ne,G,ce){ce=this.cfg.extend(ce);var xe=R.createEncryptor(G,ce),we=xe.finalize(ne),Ge=xe.cfg;return I.create({ciphertext:we,key:G,iv:Ge.iv,algorithm:R,mode:Ge.mode,padding:Ge.padding,blockSize:R.blockSize,formatter:ce.format})},decrypt:function(R,ne,G,ce){return ce=this.cfg.extend(ce),ne=this._parse(ne,ce.format),R.createDecryptor(G,ce).finalize(ne.ciphertext)},_parse:function(R,ne){return"string"==typeof R?ne.parse(R,this):R}}),P=(i.kdf={}).OpenSSL={execute:function(R,ne,G,ce,xe){if(ce||(ce=u.random(8)),xe)var we=L.create({keySize:ne+G,hasher:xe}).compute(R,ce);else we=L.create({keySize:ne+G}).compute(R,ce);var Ge=u.create(we.words.slice(ne),4*G);return we.sigBytes=4*ne,I.create({key:we,iv:Ge,salt:ce})}},E=d.PasswordBasedCipher=X.extend({cfg:X.cfg.extend({kdf:P}),encrypt:function(R,ne,G,ce){var xe=(ce=this.cfg.extend(ce)).kdf.execute(G,R.keySize,R.ivSize,ce.salt,ce.hasher);ce.iv=xe.iv;var we=X.encrypt.call(this,R,ne,xe.key,ce);return we.mixIn(xe),we},decrypt:function(R,ne,G,ce){ce=this.cfg.extend(ce),ne=this._parse(ne,ce.format);var xe=ce.kdf.execute(G,R.keySize,R.ivSize,ne.salt,ce.hasher);return ce.iv=xe.iv,X.decrypt.call(this,R,ne,xe.key,ce)}}))))},67585:function(Ee,Q,t){var n;Ee.exports=(n=n||function(e,i){var d;if(typeof window<"u"&&window.crypto&&(d=window.crypto),typeof self<"u"&&self.crypto&&(d=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(d=globalThis.crypto),!d&&typeof window<"u"&&window.msCrypto&&(d=window.msCrypto),!d&&typeof global<"u"&&global.crypto&&(d=global.crypto),!d)try{d=t(42480)}catch{}var a=function(){if(d){if("function"==typeof d.getRandomValues)try{return d.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof d.randomBytes)try{return d.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function C(){}return function(T){var j;return C.prototype=T,j=new C,C.prototype=null,j}}(),h={},l=h.lib={},m=l.Base={extend:function(C){var T=u(this);return C&&T.mixIn(C),(!T.hasOwnProperty("init")||this.init===T.init)&&(T.init=function(){T.$super.init.apply(this,arguments)}),T.init.prototype=T,T.$super=this,T},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var T in C)C.hasOwnProperty(T)&&(this[T]=C[T]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},x=l.WordArray=m.extend({init:function(C,T){C=this.words=C||[],this.sigBytes=null!=T?T:4*C.length},toString:function(C){return(C||L).stringify(this)},concat:function(C){var T=this.words,j=C.words,I=this.sigBytes,F=C.sigBytes;if(this.clamp(),I%4)for(var z=0;z<F;z++)T[I+z>>>2]|=(j[z>>>2]>>>24-z%4*8&255)<<24-(I+z)%4*8;else for(var p=0;p<F;p+=4)T[I+p>>>2]=j[p>>>2];return this.sigBytes+=F,this},clamp:function(){var C=this.words,T=this.sigBytes;C[T>>>2]&=4294967295<<32-T%4*8,C.length=e.ceil(T/4)},clone:function(){var C=m.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var T=[],j=0;j<C;j+=4)T.push(a());return new x.init(T,C)}}),O=h.enc={},L=O.Hex={stringify:function(C){for(var T=C.words,j=C.sigBytes,I=[],F=0;F<j;F++){var z=T[F>>>2]>>>24-F%4*8&255;I.push((z>>>4).toString(16)),I.push((15&z).toString(16))}return I.join("")},parse:function(C){for(var T=C.length,j=[],I=0;I<T;I+=2)j[I>>>3]|=parseInt(C.substr(I,2),16)<<24-I%8*4;return new x.init(j,T/2)}},w=O.Latin1={stringify:function(C){for(var T=C.words,j=C.sigBytes,I=[],F=0;F<j;F++)I.push(String.fromCharCode(T[F>>>2]>>>24-F%4*8&255));return I.join("")},parse:function(C){for(var T=C.length,j=[],I=0;I<T;I++)j[I>>>2]|=(255&C.charCodeAt(I))<<24-I%4*8;return new x.init(j,T)}},B=O.Utf8={stringify:function(C){try{return decodeURIComponent(escape(w.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return w.parse(unescape(encodeURIComponent(C)))}},_=l.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(C){"string"==typeof C&&(C=B.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var T,j=this._data,I=j.words,F=j.sigBytes,z=this.blockSize,p=F/(4*z),P=(p=C?e.ceil(p):e.max((0|p)-this._minBufferSize,0))*z,E=e.min(4*P,F);if(P){for(var R=0;R<P;R+=z)this._doProcessBlock(I,R);T=I.splice(0,P),j.sigBytes-=E}return new x.init(T,E)},clone:function(){var C=m.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0}),$=(l.Hasher=_.extend({cfg:m.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(T,j){return new C.init(j).finalize(T)}},_createHmacHelper:function(C){return function(T,j){return new $.HMAC.init(C,j).finalize(T)}}}),h.algo={});return h}(Math),n)},58319:function(Ee,Q,t){var n,d;Ee.exports=(n=t(67585),d=n.lib.WordArray,n.enc.Base64={stringify:function(l){var m=l.words,x=l.sigBytes,O=this._map;l.clamp();for(var L=[],w=0;w<x;w+=3)for(var $=(m[w>>>2]>>>24-w%4*8&255)<<16|(m[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|m[w+2>>>2]>>>24-(w+2)%4*8&255,C=0;C<4&&w+.75*C<x;C++)L.push(O.charAt($>>>6*(3-C)&63));var T=O.charAt(64);if(T)for(;L.length%4;)L.push(T);return L.join("")},parse:function(l){var m=l.length,x=this._map,O=this._reverseMap;if(!O){O=this._reverseMap=[];for(var L=0;L<x.length;L++)O[x.charCodeAt(L)]=L}var w=x.charAt(64);if(w){var B=l.indexOf(w);-1!==B&&(m=B)}return function h(l,m,x){for(var O=[],L=0,w=0;w<m;w++)if(w%4){var B=x[l.charCodeAt(w-1)]<<w%4*2,_=x[l.charCodeAt(w)]>>>6-w%4*2;O[L>>>2]|=(B|_)<<24-L%4*8,L++}return d.create(O,L)}(l,m,O)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},84410:function(Ee,Q,t){var n,d;Ee.exports=(n=t(67585),d=n.lib.WordArray,n.enc.Base64url={stringify:function(l,m){void 0===m&&(m=!0);var x=l.words,O=l.sigBytes,L=m?this._safe_map:this._map;l.clamp();for(var w=[],B=0;B<O;B+=3)for(var C=(x[B>>>2]>>>24-B%4*8&255)<<16|(x[B+1>>>2]>>>24-(B+1)%4*8&255)<<8|x[B+2>>>2]>>>24-(B+2)%4*8&255,T=0;T<4&&B+.75*T<O;T++)w.push(L.charAt(C>>>6*(3-T)&63));var j=L.charAt(64);if(j)for(;w.length%4;)w.push(j);return w.join("")},parse:function(l,m){void 0===m&&(m=!0);var x=l.length,O=m?this._safe_map:this._map,L=this._reverseMap;if(!L){L=this._reverseMap=[];for(var w=0;w<O.length;w++)L[O.charCodeAt(w)]=w}var B=O.charAt(64);if(B){var _=l.indexOf(B);-1!==_&&(x=_)}return function h(l,m,x){for(var O=[],L=0,w=0;w<m;w++)if(w%4){var B=x[l.charCodeAt(w-1)]<<w%4*2,_=x[l.charCodeAt(w)]>>>6-w%4*2;O[L>>>2]|=(B|_)<<24-L%4*8,L++}return d.create(O,L)}(l,x,L)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)},79012:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),function(){var d=n.lib.WordArray,a=n.enc;function h(l){return l<<8&4278255360|l>>>8&16711935}a.Utf16=a.Utf16BE={stringify:function(l){for(var m=l.words,x=l.sigBytes,O=[],L=0;L<x;L+=2)O.push(String.fromCharCode(m[L>>>2]>>>16-L%4*8&65535));return O.join("")},parse:function(l){for(var m=l.length,x=[],O=0;O<m;O++)x[O>>>1]|=l.charCodeAt(O)<<16-O%2*16;return d.create(x,2*m)}},a.Utf16LE={stringify:function(l){for(var m=l.words,x=l.sigBytes,O=[],L=0;L<x;L+=2){var w=h(m[L>>>2]>>>16-L%4*8&65535);O.push(String.fromCharCode(w))}return O.join("")},parse:function(l){for(var m=l.length,x=[],O=0;O<m;O++)x[O>>>1]|=h(l.charCodeAt(O)<<16-O%2*16);return d.create(x,2*m)}}}(),n.enc.Utf16)},37865:function(Ee,Q,t){var e,i,d,a,u,l,n;Ee.exports=(n=t(67585),t(75162),t(43764),a=(i=(e=n).lib).WordArray,l=(u=e.algo).EvpKDF=(d=i.Base).extend({cfg:d.extend({keySize:4,hasher:u.MD5,iterations:1}),init:function(m){this.cfg=this.cfg.extend(m)},compute:function(m,x){for(var O,L=this.cfg,w=L.hasher.create(),B=a.create(),_=B.words,y=L.keySize,$=L.iterations;_.length<y;){O&&w.update(O),O=w.update(m).finalize(x),w.reset();for(var C=1;C<$;C++)O=w.finalize(O),w.reset();B.concat(O)}return B.sigBytes=4*y,B}}),e.EvpKDF=function(m,x,O){return l.create(O).compute(m,x)},n.EvpKDF)},41847:function(Ee,Q,t){var n,a,h;Ee.exports=(n=t(67585),t(53057),a=n.lib.CipherParams,h=n.enc.Hex,n.format.Hex={stringify:function(x){return x.ciphertext.toString(h)},parse:function(x){var O=h.parse(x);return a.create({ciphertext:O})}},n.format.Hex)},43764:function(Ee,Q,t){var n,u;Ee.exports=(n=t(67585),u=n.enc.Utf8,void(n.algo.HMAC=n.lib.Base.extend({init:function(m,x){m=this._hasher=new m.init,"string"==typeof x&&(x=u.parse(x));var O=m.blockSize,L=4*O;x.sigBytes>L&&(x=m.finalize(x)),x.clamp();for(var w=this._oKey=x.clone(),B=this._iKey=x.clone(),_=w.words,y=B.words,$=0;$<O;$++)_[$]^=1549556828,y[$]^=909522486;w.sigBytes=B.sigBytes=L,this.reset()},reset:function(){var m=this._hasher;m.reset(),m.update(this._iKey)},update:function(m){return this._hasher.update(m),this},finalize:function(m){var x=this._hasher,O=x.finalize(m);return x.reset(),x.finalize(this._oKey.clone().concat(O))}})))},7206:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(70401),t(27412),t(79012),t(58319),t(84410),t(9493),t(75162),t(31817),t(68769),t(83351),t(6787),t(21971),t(34973),t(43764),t(98812),t(37865),t(53057),t(4424),t(16635),t(53592),t(99354),t(77934),t(4413),t(64630),t(187),t(81691),t(63237),t(41847),t(77466),t(57243),t(10486),t(28182),t(73544),t(41302),n)},27412:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),function(){if("function"==typeof ArrayBuffer){var d=n.lib.WordArray,a=d.init,u=d.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray<"u"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var l=h.byteLength,m=[],x=0;x<l;x++)m[x>>>2]|=h[x]<<24-x%4*8;a.call(this,m,l)}else a.apply(this,arguments)};u.prototype=d}}(),n.lib.WordArray)},9493:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),function(e){var i=n,d=i.lib,a=d.WordArray,u=d.Hasher,h=i.algo,l=[];!function(){for(var B=0;B<64;B++)l[B]=4294967296*e.abs(e.sin(B+1))|0}();var m=h.MD5=u.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(B,_){for(var y=0;y<16;y++){var $=_+y,C=B[$];B[$]=16711935&(C<<8|C>>>24)|4278255360&(C<<24|C>>>8)}var T=this._hash.words,j=B[_+0],I=B[_+1],F=B[_+2],z=B[_+3],X=B[_+4],p=B[_+5],P=B[_+6],E=B[_+7],R=B[_+8],ne=B[_+9],G=B[_+10],ce=B[_+11],xe=B[_+12],we=B[_+13],Ge=B[_+14],ct=B[_+15],pe=T[0],Ce=T[1],U=T[2],H=T[3];pe=x(pe,Ce,U,H,j,7,l[0]),H=x(H,pe,Ce,U,I,12,l[1]),U=x(U,H,pe,Ce,F,17,l[2]),Ce=x(Ce,U,H,pe,z,22,l[3]),pe=x(pe,Ce,U,H,X,7,l[4]),H=x(H,pe,Ce,U,p,12,l[5]),U=x(U,H,pe,Ce,P,17,l[6]),Ce=x(Ce,U,H,pe,E,22,l[7]),pe=x(pe,Ce,U,H,R,7,l[8]),H=x(H,pe,Ce,U,ne,12,l[9]),U=x(U,H,pe,Ce,G,17,l[10]),Ce=x(Ce,U,H,pe,ce,22,l[11]),pe=x(pe,Ce,U,H,xe,7,l[12]),H=x(H,pe,Ce,U,we,12,l[13]),U=x(U,H,pe,Ce,Ge,17,l[14]),pe=O(pe,Ce=x(Ce,U,H,pe,ct,22,l[15]),U,H,I,5,l[16]),H=O(H,pe,Ce,U,P,9,l[17]),U=O(U,H,pe,Ce,ce,14,l[18]),Ce=O(Ce,U,H,pe,j,20,l[19]),pe=O(pe,Ce,U,H,p,5,l[20]),H=O(H,pe,Ce,U,G,9,l[21]),U=O(U,H,pe,Ce,ct,14,l[22]),Ce=O(Ce,U,H,pe,X,20,l[23]),pe=O(pe,Ce,U,H,ne,5,l[24]),H=O(H,pe,Ce,U,Ge,9,l[25]),U=O(U,H,pe,Ce,z,14,l[26]),Ce=O(Ce,U,H,pe,R,20,l[27]),pe=O(pe,Ce,U,H,we,5,l[28]),H=O(H,pe,Ce,U,F,9,l[29]),U=O(U,H,pe,Ce,E,14,l[30]),pe=L(pe,Ce=O(Ce,U,H,pe,xe,20,l[31]),U,H,p,4,l[32]),H=L(H,pe,Ce,U,R,11,l[33]),U=L(U,H,pe,Ce,ce,16,l[34]),Ce=L(Ce,U,H,pe,Ge,23,l[35]),pe=L(pe,Ce,U,H,I,4,l[36]),H=L(H,pe,Ce,U,X,11,l[37]),U=L(U,H,pe,Ce,E,16,l[38]),Ce=L(Ce,U,H,pe,G,23,l[39]),pe=L(pe,Ce,U,H,we,4,l[40]),H=L(H,pe,Ce,U,j,11,l[41]),U=L(U,H,pe,Ce,z,16,l[42]),Ce=L(Ce,U,H,pe,P,23,l[43]),pe=L(pe,Ce,U,H,ne,4,l[44]),H=L(H,pe,Ce,U,xe,11,l[45]),U=L(U,H,pe,Ce,ct,16,l[46]),pe=w(pe,Ce=L(Ce,U,H,pe,F,23,l[47]),U,H,j,6,l[48]),H=w(H,pe,Ce,U,E,10,l[49]),U=w(U,H,pe,Ce,Ge,15,l[50]),Ce=w(Ce,U,H,pe,p,21,l[51]),pe=w(pe,Ce,U,H,xe,6,l[52]),H=w(H,pe,Ce,U,z,10,l[53]),U=w(U,H,pe,Ce,G,15,l[54]),Ce=w(Ce,U,H,pe,I,21,l[55]),pe=w(pe,Ce,U,H,R,6,l[56]),H=w(H,pe,Ce,U,ct,10,l[57]),U=w(U,H,pe,Ce,P,15,l[58]),Ce=w(Ce,U,H,pe,we,21,l[59]),pe=w(pe,Ce,U,H,X,6,l[60]),H=w(H,pe,Ce,U,ce,10,l[61]),U=w(U,H,pe,Ce,F,15,l[62]),Ce=w(Ce,U,H,pe,ne,21,l[63]),T[0]=T[0]+pe|0,T[1]=T[1]+Ce|0,T[2]=T[2]+U|0,T[3]=T[3]+H|0},_doFinalize:function(){var B=this._data,_=B.words,y=8*this._nDataBytes,$=8*B.sigBytes;_[$>>>5]|=128<<24-$%32;var C=e.floor(y/4294967296),T=y;_[15+($+64>>>9<<4)]=16711935&(C<<8|C>>>24)|4278255360&(C<<24|C>>>8),_[14+($+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),B.sigBytes=4*(_.length+1),this._process();for(var j=this._hash,I=j.words,F=0;F<4;F++){var z=I[F];I[F]=16711935&(z<<8|z>>>24)|4278255360&(z<<24|z>>>8)}return j},clone:function(){var B=u.clone.call(this);return B._hash=this._hash.clone(),B}});function x(B,_,y,$,C,T,j){var I=B+(_&y|~_&$)+C+j;return(I<<T|I>>>32-T)+_}function O(B,_,y,$,C,T,j){var I=B+(_&$|y&~$)+C+j;return(I<<T|I>>>32-T)+_}function L(B,_,y,$,C,T,j){var I=B+(_^y^$)+C+j;return(I<<T|I>>>32-T)+_}function w(B,_,y,$,C,T,j){var I=B+(y^(_|~$))+C+j;return(I<<T|I>>>32-T)+_}i.MD5=u._createHelper(m),i.HmacMD5=u._createHmacHelper(m)}(Math),n.MD5)},4424:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(53057),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function i(d,a,u,h){var l,m=this._iv;m?(l=m.slice(0),this._iv=void 0):l=this._prevBlock,h.encryptBlock(l,0);for(var x=0;x<u;x++)d[a+x]^=l[x]}return e.Encryptor=e.extend({processBlock:function(d,a){var u=this._cipher,h=u.blockSize;i.call(this,d,a,h,u),this._prevBlock=d.slice(a,a+h)}}),e.Decryptor=e.extend({processBlock:function(d,a){var u=this._cipher,h=u.blockSize,l=d.slice(a,a+h);i.call(this,d,a,h,u),this._prevBlock=l}}),e}(),n.mode.CFB)},53592:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(53057),n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function i(u){if(255==(u>>24&255)){var h=u>>16&255,l=u>>8&255,m=255&u;255===h?(h=0,255===l?(l=0,255===m?m=0:++m):++l):++h,u=0,u+=h<<16,u+=l<<8,u+=m}else u+=1<<24;return u}var a=e.Encryptor=e.extend({processBlock:function(u,h){var l=this._cipher,m=l.blockSize,x=this._iv,O=this._counter;x&&(O=this._counter=x.slice(0),this._iv=void 0),function d(u){return 0===(u[0]=i(u[0]))&&(u[1]=i(u[1])),u}(O);var L=O.slice(0);l.encryptBlock(L,0);for(var w=0;w<m;w++)u[h+w]^=L[w]}});return e.Decryptor=a,e}(),n.mode.CTRGladman)},16635:function(Ee,Q,t){var e,i,n;Ee.exports=(n=t(67585),t(53057),n.mode.CTR=(i=(e=n.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(d,a){var u=this._cipher,h=u.blockSize,l=this._iv,m=this._counter;l&&(m=this._counter=l.slice(0),this._iv=void 0);var x=m.slice(0);u.encryptBlock(x,0),m[h-1]=m[h-1]+1|0;for(var O=0;O<h;O++)d[a+O]^=x[O]}}),e.Decryptor=i,e),n.mode.CTR)},77934:function(Ee,Q,t){var e,n;Ee.exports=(n=t(67585),t(53057),n.mode.ECB=((e=n.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(i,d){this._cipher.encryptBlock(i,d)}}),e.Decryptor=e.extend({processBlock:function(i,d){this._cipher.decryptBlock(i,d)}}),e),n.mode.ECB)},99354:function(Ee,Q,t){var e,i,n;Ee.exports=(n=t(67585),t(53057),n.mode.OFB=(i=(e=n.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(d,a){var u=this._cipher,h=u.blockSize,l=this._iv,m=this._keystream;l&&(m=this._keystream=l.slice(0),this._iv=void 0),u.encryptBlock(m,0);for(var x=0;x<h;x++)d[a+x]^=m[x]}}),e.Decryptor=i,e),n.mode.OFB)},4413:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(53057),n.pad.AnsiX923={pad:function(e,i){var d=e.sigBytes,a=4*i,u=a-d%a,h=d+u-1;e.clamp(),e.words[h>>>2]|=u<<24-h%4*8,e.sigBytes+=u},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.pad.Ansix923)},64630:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(53057),n.pad.Iso10126={pad:function(e,i){var d=4*i,a=d-e.sigBytes%d;e.concat(n.lib.WordArray.random(a-1)).concat(n.lib.WordArray.create([a<<24],1))},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.pad.Iso10126)},187:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(53057),n.pad.Iso97971={pad:function(e,i){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,i)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},63237:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(53057),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},81691:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(53057),n.pad.ZeroPadding={pad:function(e,i){var d=4*i;e.clamp(),e.sigBytes+=d-(e.sigBytes%d||d)},unpad:function(e){var i=e.words,d=e.sigBytes-1;for(d=e.sigBytes-1;d>=0;d--)if(i[d>>>2]>>>24-d%4*8&255){e.sigBytes=d+1;break}}},n.pad.ZeroPadding)},98812:function(Ee,Q,t){var e,i,d,a,u,l,m,n;Ee.exports=(n=t(67585),t(31817),t(43764),a=(i=(e=n).lib).WordArray,l=(u=e.algo).HMAC,m=u.PBKDF2=(d=i.Base).extend({cfg:d.extend({keySize:4,hasher:u.SHA256,iterations:25e4}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,O){for(var L=this.cfg,w=l.create(L.hasher,x),B=a.create(),_=a.create([1]),y=B.words,$=_.words,C=L.keySize,T=L.iterations;y.length<C;){var j=w.update(O).finalize(_);w.reset();for(var I=j.words,F=I.length,z=j,X=1;X<T;X++){z=w.finalize(z),w.reset();for(var p=z.words,P=0;P<F;P++)I[P]^=p[P]}B.concat(j),$[0]++}return B.sigBytes=4*C,B}}),e.PBKDF2=function(x,O,L){return m.create(L).compute(x,O)},n.PBKDF2)},73544:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(58319),t(9493),t(37865),t(53057),function(){var e=n,d=e.lib.StreamCipher,u=[],h=[],l=[],m=e.algo.RabbitLegacy=d.extend({_doReset:function(){var O=this._key.words,L=this.cfg.iv,w=this._X=[O[0],O[3]<<16|O[2]>>>16,O[1],O[0]<<16|O[3]>>>16,O[2],O[1]<<16|O[0]>>>16,O[3],O[2]<<16|O[1]>>>16],B=this._C=[O[2]<<16|O[2]>>>16,4294901760&O[0]|65535&O[1],O[3]<<16|O[3]>>>16,4294901760&O[1]|65535&O[2],O[0]<<16|O[0]>>>16,4294901760&O[2]|65535&O[3],O[1]<<16|O[1]>>>16,4294901760&O[3]|65535&O[0]];this._b=0;for(var _=0;_<4;_++)x.call(this);for(_=0;_<8;_++)B[_]^=w[_+4&7];if(L){var y=L.words,$=y[0],C=y[1],T=16711935&($<<8|$>>>24)|4278255360&($<<24|$>>>8),j=16711935&(C<<8|C>>>24)|4278255360&(C<<24|C>>>8),I=T>>>16|4294901760&j,F=j<<16|65535&T;for(B[0]^=T,B[1]^=I,B[2]^=j,B[3]^=F,B[4]^=T,B[5]^=I,B[6]^=j,B[7]^=F,_=0;_<4;_++)x.call(this)}},_doProcessBlock:function(O,L){var w=this._X;x.call(this),u[0]=w[0]^w[5]>>>16^w[3]<<16,u[1]=w[2]^w[7]>>>16^w[5]<<16,u[2]=w[4]^w[1]>>>16^w[7]<<16,u[3]=w[6]^w[3]>>>16^w[1]<<16;for(var B=0;B<4;B++)u[B]=16711935&(u[B]<<8|u[B]>>>24)|4278255360&(u[B]<<24|u[B]>>>8),O[L+B]^=u[B]},blockSize:4,ivSize:2});function x(){for(var O=this._X,L=this._C,w=0;w<8;w++)h[w]=L[w];for(L[0]=L[0]+1295307597+this._b|0,L[1]=L[1]+3545052371+(L[0]>>>0<h[0]>>>0?1:0)|0,L[2]=L[2]+886263092+(L[1]>>>0<h[1]>>>0?1:0)|0,L[3]=L[3]+1295307597+(L[2]>>>0<h[2]>>>0?1:0)|0,L[4]=L[4]+3545052371+(L[3]>>>0<h[3]>>>0?1:0)|0,L[5]=L[5]+886263092+(L[4]>>>0<h[4]>>>0?1:0)|0,L[6]=L[6]+1295307597+(L[5]>>>0<h[5]>>>0?1:0)|0,L[7]=L[7]+3545052371+(L[6]>>>0<h[6]>>>0?1:0)|0,this._b=L[7]>>>0<h[7]>>>0?1:0,w=0;w<8;w++){var B=O[w]+L[w],_=65535&B,y=B>>>16;l[w]=((_*_>>>17)+_*y>>>15)+y*y^((4294901760&B)*B|0)+((65535&B)*B|0)}O[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,O[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,O[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,O[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,O[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,O[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,O[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,O[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}e.RabbitLegacy=d._createHelper(m)}(),n.RabbitLegacy)},28182:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(58319),t(9493),t(37865),t(53057),function(){var e=n,d=e.lib.StreamCipher,u=[],h=[],l=[],m=e.algo.Rabbit=d.extend({_doReset:function(){for(var O=this._key.words,L=this.cfg.iv,w=0;w<4;w++)O[w]=16711935&(O[w]<<8|O[w]>>>24)|4278255360&(O[w]<<24|O[w]>>>8);var B=this._X=[O[0],O[3]<<16|O[2]>>>16,O[1],O[0]<<16|O[3]>>>16,O[2],O[1]<<16|O[0]>>>16,O[3],O[2]<<16|O[1]>>>16],_=this._C=[O[2]<<16|O[2]>>>16,4294901760&O[0]|65535&O[1],O[3]<<16|O[3]>>>16,4294901760&O[1]|65535&O[2],O[0]<<16|O[0]>>>16,4294901760&O[2]|65535&O[3],O[1]<<16|O[1]>>>16,4294901760&O[3]|65535&O[0]];for(this._b=0,w=0;w<4;w++)x.call(this);for(w=0;w<8;w++)_[w]^=B[w+4&7];if(L){var y=L.words,$=y[0],C=y[1],T=16711935&($<<8|$>>>24)|4278255360&($<<24|$>>>8),j=16711935&(C<<8|C>>>24)|4278255360&(C<<24|C>>>8),I=T>>>16|4294901760&j,F=j<<16|65535&T;for(_[0]^=T,_[1]^=I,_[2]^=j,_[3]^=F,_[4]^=T,_[5]^=I,_[6]^=j,_[7]^=F,w=0;w<4;w++)x.call(this)}},_doProcessBlock:function(O,L){var w=this._X;x.call(this),u[0]=w[0]^w[5]>>>16^w[3]<<16,u[1]=w[2]^w[7]>>>16^w[5]<<16,u[2]=w[4]^w[1]>>>16^w[7]<<16,u[3]=w[6]^w[3]>>>16^w[1]<<16;for(var B=0;B<4;B++)u[B]=16711935&(u[B]<<8|u[B]>>>24)|4278255360&(u[B]<<24|u[B]>>>8),O[L+B]^=u[B]},blockSize:4,ivSize:2});function x(){for(var O=this._X,L=this._C,w=0;w<8;w++)h[w]=L[w];for(L[0]=L[0]+1295307597+this._b|0,L[1]=L[1]+3545052371+(L[0]>>>0<h[0]>>>0?1:0)|0,L[2]=L[2]+886263092+(L[1]>>>0<h[1]>>>0?1:0)|0,L[3]=L[3]+1295307597+(L[2]>>>0<h[2]>>>0?1:0)|0,L[4]=L[4]+3545052371+(L[3]>>>0<h[3]>>>0?1:0)|0,L[5]=L[5]+886263092+(L[4]>>>0<h[4]>>>0?1:0)|0,L[6]=L[6]+1295307597+(L[5]>>>0<h[5]>>>0?1:0)|0,L[7]=L[7]+3545052371+(L[6]>>>0<h[6]>>>0?1:0)|0,this._b=L[7]>>>0<h[7]>>>0?1:0,w=0;w<8;w++){var B=O[w]+L[w],_=65535&B,y=B>>>16;l[w]=((_*_>>>17)+_*y>>>15)+y*y^((4294901760&B)*B|0)+((65535&B)*B|0)}O[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,O[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,O[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,O[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,O[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,O[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,O[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,O[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}e.Rabbit=d._createHelper(m)}(),n.Rabbit)},10486:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(58319),t(9493),t(37865),t(53057),function(){var e=n,d=e.lib.StreamCipher,a=e.algo,u=a.RC4=d.extend({_doReset:function(){for(var m=this._key,x=m.words,O=m.sigBytes,L=this._S=[],w=0;w<256;w++)L[w]=w;w=0;for(var B=0;w<256;w++){var _=w%O,$=L[w];L[w]=L[B=(B+L[w]+(x[_>>>2]>>>24-_%4*8&255))%256],L[B]=$}this._i=this._j=0},_doProcessBlock:function(m,x){m[x]^=h.call(this)},keySize:8,ivSize:0});function h(){for(var m=this._S,x=this._i,O=this._j,L=0,w=0;w<4;w++){var B=m[x=(x+1)%256];m[x]=m[O=(O+m[x])%256],m[O]=B,L|=m[(m[x]+m[O])%256]<<24-8*w}return this._i=x,this._j=O,L}e.RC4=d._createHelper(u);var l=a.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var m=this.cfg.drop;m>0;m--)h.call(this)}});e.RC4Drop=d._createHelper(l)}(),n.RC4)},34973:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),function(e){var i=n,d=i.lib,a=d.WordArray,u=d.Hasher,h=i.algo,l=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),m=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),O=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),L=a.create([0,1518500249,1859775393,2400959708,2840853838]),w=a.create([1352829926,1548603684,1836072691,2053994217,0]),B=h.RIPEMD160=u.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(I,F){for(var z=0;z<16;z++){var X=F+z,p=I[X];I[X]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}var we,Ge,ct,pe,Ce,U,H,Z,oe,Pe,Ie,P=this._hash.words,E=L.words,R=w.words,ne=l.words,G=m.words,ce=x.words,xe=O.words;for(U=we=P[0],H=Ge=P[1],Z=ct=P[2],oe=pe=P[3],Pe=Ce=P[4],z=0;z<80;z+=1)Ie=we+I[F+ne[z]]|0,Ie+=z<16?_(Ge,ct,pe)+E[0]:z<32?y(Ge,ct,pe)+E[1]:z<48?$(Ge,ct,pe)+E[2]:z<64?C(Ge,ct,pe)+E[3]:T(Ge,ct,pe)+E[4],Ie=(Ie=j(Ie|=0,ce[z]))+Ce|0,we=Ce,Ce=pe,pe=j(ct,10),ct=Ge,Ge=Ie,Ie=U+I[F+G[z]]|0,Ie+=z<16?T(H,Z,oe)+R[0]:z<32?C(H,Z,oe)+R[1]:z<48?$(H,Z,oe)+R[2]:z<64?y(H,Z,oe)+R[3]:_(H,Z,oe)+R[4],Ie=(Ie=j(Ie|=0,xe[z]))+Pe|0,U=Pe,Pe=oe,oe=j(Z,10),Z=H,H=Ie;Ie=P[1]+ct+oe|0,P[1]=P[2]+pe+Pe|0,P[2]=P[3]+Ce+U|0,P[3]=P[4]+we+H|0,P[4]=P[0]+Ge+Z|0,P[0]=Ie},_doFinalize:function(){var I=this._data,F=I.words,z=8*this._nDataBytes,X=8*I.sigBytes;F[X>>>5]|=128<<24-X%32,F[14+(X+64>>>9<<4)]=16711935&(z<<8|z>>>24)|4278255360&(z<<24|z>>>8),I.sigBytes=4*(F.length+1),this._process();for(var p=this._hash,P=p.words,E=0;E<5;E++){var R=P[E];P[E]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8)}return p},clone:function(){var I=u.clone.call(this);return I._hash=this._hash.clone(),I}});function _(I,F,z){return I^F^z}function y(I,F,z){return I&F|~I&z}function $(I,F,z){return(I|~F)^z}function C(I,F,z){return I&z|F&~z}function T(I,F,z){return I^(F|~z)}function j(I,F){return I<<F|I>>>32-F}i.RIPEMD160=u._createHelper(B),i.HmacRIPEMD160=u._createHmacHelper(B)}(Math),n.RIPEMD160)},75162:function(Ee,Q,t){var e,i,d,a,h,l,n;Ee.exports=(n=t(67585),d=(i=(e=n).lib).WordArray,h=[],l=e.algo.SHA1=(a=i.Hasher).extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,x){for(var O=this._hash.words,L=O[0],w=O[1],B=O[2],_=O[3],y=O[4],$=0;$<80;$++){if($<16)h[$]=0|m[x+$];else{var C=h[$-3]^h[$-8]^h[$-14]^h[$-16];h[$]=C<<1|C>>>31}var T=(L<<5|L>>>27)+y+h[$];T+=$<20?1518500249+(w&B|~w&_):$<40?1859775393+(w^B^_):$<60?(w&B|w&_|B&_)-1894007588:(w^B^_)-899497514,y=_,_=B,B=w<<30|w>>>2,w=L,L=T}O[0]=O[0]+L|0,O[1]=O[1]+w|0,O[2]=O[2]+B|0,O[3]=O[3]+_|0,O[4]=O[4]+y|0},_doFinalize:function(){var m=this._data,x=m.words,O=8*this._nDataBytes,L=8*m.sigBytes;return x[L>>>5]|=128<<24-L%32,x[14+(L+64>>>9<<4)]=Math.floor(O/4294967296),x[15+(L+64>>>9<<4)]=O,m.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}}),e.SHA1=a._createHelper(l),e.HmacSHA1=a._createHmacHelper(l),n.SHA1)},68769:function(Ee,Q,t){var e,d,a,u,h,n;Ee.exports=(n=t(67585),t(31817),d=(e=n).lib.WordArray,h=(a=e.algo).SHA224=(u=a.SHA256).extend({_doReset:function(){this._hash=new d.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var l=u._doFinalize.call(this);return l.sigBytes-=4,l}}),e.SHA224=u._createHelper(h),e.HmacSHA224=u._createHmacHelper(h),n.SHA224)},31817:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),function(e){var i=n,d=i.lib,a=d.WordArray,u=d.Hasher,h=i.algo,l=[],m=[];!function(){function L(y){for(var $=e.sqrt(y),C=2;C<=$;C++)if(!(y%C))return!1;return!0}function w(y){return 4294967296*(y-(0|y))|0}for(var B=2,_=0;_<64;)L(B)&&(_<8&&(l[_]=w(e.pow(B,.5))),m[_]=w(e.pow(B,1/3)),_++),B++}();var x=[],O=h.SHA256=u.extend({_doReset:function(){this._hash=new a.init(l.slice(0))},_doProcessBlock:function(L,w){for(var B=this._hash.words,_=B[0],y=B[1],$=B[2],C=B[3],T=B[4],j=B[5],I=B[6],F=B[7],z=0;z<64;z++){if(z<16)x[z]=0|L[w+z];else{var X=x[z-15],P=x[z-2];x[z]=((X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3)+x[z-7]+((P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10)+x[z-16]}var ne=_&y^_&$^y&$,xe=F+((T<<26|T>>>6)^(T<<21|T>>>11)^(T<<7|T>>>25))+(T&j^~T&I)+m[z]+x[z];F=I,I=j,j=T,T=C+xe|0,C=$,$=y,y=_,_=xe+(((_<<30|_>>>2)^(_<<19|_>>>13)^(_<<10|_>>>22))+ne)|0}B[0]=B[0]+_|0,B[1]=B[1]+y|0,B[2]=B[2]+$|0,B[3]=B[3]+C|0,B[4]=B[4]+T|0,B[5]=B[5]+j|0,B[6]=B[6]+I|0,B[7]=B[7]+F|0},_doFinalize:function(){var L=this._data,w=L.words,B=8*this._nDataBytes,_=8*L.sigBytes;return w[_>>>5]|=128<<24-_%32,w[14+(_+64>>>9<<4)]=e.floor(B/4294967296),w[15+(_+64>>>9<<4)]=B,L.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var L=u.clone.call(this);return L._hash=this._hash.clone(),L}});i.SHA256=u._createHelper(O),i.HmacSHA256=u._createHmacHelper(O)}(Math),n.SHA256)},21971:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(70401),function(e){var i=n,d=i.lib,a=d.WordArray,u=d.Hasher,l=i.x64.Word,m=i.algo,x=[],O=[],L=[];!function(){for(var _=1,y=0,$=0;$<24;$++){x[_+5*y]=($+1)*($+2)/2%64;var T=(2*_+3*y)%5;_=y%5,y=T}for(_=0;_<5;_++)for(y=0;y<5;y++)O[_+5*y]=y+(2*_+3*y)%5*5;for(var j=1,I=0;I<24;I++){for(var F=0,z=0,X=0;X<7;X++){if(1&j){var p=(1<<X)-1;p<32?z^=1<<p:F^=1<<p-32}128&j?j=j<<1^113:j<<=1}L[I]=l.create(F,z)}}();var w=[];!function(){for(var _=0;_<25;_++)w[_]=l.create()}();var B=m.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var _=this._state=[],y=0;y<25;y++)_[y]=new l.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(_,y){for(var $=this._state,C=this.blockSize/2,T=0;T<C;T++){var j=_[y+2*T],I=_[y+2*T+1];j=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8),(F=$[T]).high^=I=16711935&(I<<8|I>>>24)|4278255360&(I<<24|I>>>8),F.low^=j}for(var z=0;z<24;z++){for(var X=0;X<5;X++){for(var p=0,P=0,E=0;E<5;E++)p^=(F=$[X+5*E]).high,P^=F.low;var R=w[X];R.high=p,R.low=P}for(X=0;X<5;X++){var ne=w[(X+4)%5],G=w[(X+1)%5],ce=G.high,xe=G.low;for(p=ne.high^(ce<<1|xe>>>31),P=ne.low^(xe<<1|ce>>>31),E=0;E<5;E++)(F=$[X+5*E]).high^=p,F.low^=P}for(var we=1;we<25;we++){var Ge=(F=$[we]).high,ct=F.low,pe=x[we];pe<32?(p=Ge<<pe|ct>>>32-pe,P=ct<<pe|Ge>>>32-pe):(p=ct<<pe-32|Ge>>>64-pe,P=Ge<<pe-32|ct>>>64-pe);var Ce=w[O[we]];Ce.high=p,Ce.low=P}var U=w[0],H=$[0];for(U.high=H.high,U.low=H.low,X=0;X<5;X++)for(E=0;E<5;E++){var Z=w[we=X+5*E],oe=w[(X+1)%5+5*E],Pe=w[(X+2)%5+5*E];(F=$[we]).high=Z.high^~oe.high&Pe.high,F.low=Z.low^~oe.low&Pe.low}var F,Ie=L[z];(F=$[0]).high^=Ie.high,F.low^=Ie.low}},_doFinalize:function(){var _=this._data,y=_.words,C=8*_.sigBytes,T=32*this.blockSize;y[C>>>5]|=1<<24-C%32,y[(e.ceil((C+1)/T)*T>>>5)-1]|=128,_.sigBytes=4*y.length,this._process();for(var j=this._state,I=this.cfg.outputLength/8,F=I/8,z=[],X=0;X<F;X++){var p=j[X],P=p.high,E=p.low;P=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),z.push(E=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8)),z.push(P)}return new a.init(z,I)},clone:function(){for(var _=u.clone.call(this),y=_._state=this._state.slice(0),$=0;$<25;$++)y[$]=y[$].clone();return _}});i.SHA3=u._createHelper(B),i.HmacSHA3=u._createHmacHelper(B)}(Math),n.SHA3)},6787:function(Ee,Q,t){var e,i,d,a,u,h,l,n;Ee.exports=(n=t(67585),t(70401),t(83351),d=(i=(e=n).x64).Word,a=i.WordArray,l=(u=e.algo).SHA384=(h=u.SHA512).extend({_doReset:function(){this._hash=new a.init([new d.init(3418070365,3238371032),new d.init(1654270250,914150663),new d.init(2438529370,812702999),new d.init(355462360,4144912697),new d.init(1731405415,4290775857),new d.init(2394180231,1750603025),new d.init(3675008525,1694076839),new d.init(1203062813,3204075428)])},_doFinalize:function(){var m=h._doFinalize.call(this);return m.sigBytes-=16,m}}),e.SHA384=h._createHelper(l),e.HmacSHA384=h._createHmacHelper(l),n.SHA384)},83351:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(70401),function(){var e=n,d=e.lib.Hasher,a=e.x64,u=a.Word,h=a.WordArray,l=e.algo;function m(){return u.create.apply(u,arguments)}var x=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],O=[];!function(){for(var w=0;w<80;w++)O[w]=m()}();var L=l.SHA512=d.extend({_doReset:function(){this._hash=new h.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(w,B){for(var _=this._hash.words,y=_[0],$=_[1],C=_[2],T=_[3],j=_[4],I=_[5],F=_[6],z=_[7],X=y.high,p=y.low,P=$.high,E=$.low,R=C.high,ne=C.low,G=T.high,ce=T.low,xe=j.high,we=j.low,Ge=I.high,ct=I.low,pe=F.high,Ce=F.low,U=z.high,H=z.low,Z=X,oe=p,Pe=P,Ie=E,pt=R,Ht=ne,Wt=G,Xe=ce,Qe=xe,Be=we,at=Ge,lt=ct,Dt=pe,Yt=Ce,Tt=U,ot=H,Gt=0;Gt<80;Gt++){var wt,Ze,Ut=O[Gt];if(Gt<16)Ze=Ut.high=0|w[B+2*Gt],wt=Ut.low=0|w[B+2*Gt+1];else{var vn=O[Gt-15],xn=vn.high,bn=vn.low,pn=(bn>>>1|xn<<31)^(bn>>>8|xn<<24)^(bn>>>7|xn<<25),In=O[Gt-2],Dn=In.high,Tn=In.low,Yn=(Tn>>>19|Dn<<13)^(Tn<<3|Dn>>>29)^(Tn>>>6|Dn<<26),cn=O[Gt-7],En=O[Gt-16],rn=En.low;Ut.high=Ze=(Ze=(Ze=((xn>>>1|bn<<31)^(xn>>>8|bn<<24)^xn>>>7)+cn.high+((wt=pn+cn.low)>>>0<pn>>>0?1:0))+((Dn>>>19|Tn<<13)^(Dn<<3|Tn>>>29)^Dn>>>6)+((wt+=Yn)>>>0<Yn>>>0?1:0))+En.high+((wt+=rn)>>>0<rn>>>0?1:0),Ut.low=wt}var ze,Sn=Qe&at^~Qe&Dt,ke=Be&lt^~Be&Yt,ge=Z&Pe^Z&pt^Pe&pt,Oe=(oe>>>28|Z<<4)^(oe<<30|Z>>>2)^(oe<<25|Z>>>7),dt=x[Gt],qe=dt.low,zt=Tt+((Qe>>>14|Be<<18)^(Qe>>>18|Be<<14)^(Qe<<23|Be>>>9))+((ze=ot+((Be>>>14|Qe<<18)^(Be>>>18|Qe<<14)^(Be<<23|Qe>>>9)))>>>0<ot>>>0?1:0),vt=Oe+(oe&Ie^oe&Ht^Ie&Ht);Tt=Dt,ot=Yt,Dt=at,Yt=lt,at=Qe,lt=Be,Qe=Wt+(zt=(zt=(zt=zt+Sn+((ze+=ke)>>>0<ke>>>0?1:0))+dt.high+((ze+=qe)>>>0<qe>>>0?1:0))+Ze+((ze+=wt)>>>0<wt>>>0?1:0))+((Be=Xe+ze|0)>>>0<Xe>>>0?1:0)|0,Wt=pt,Xe=Ht,pt=Pe,Ht=Ie,Pe=Z,Ie=oe,Z=zt+(((Z>>>28|oe<<4)^(Z<<30|oe>>>2)^(Z<<25|oe>>>7))+ge+(vt>>>0<Oe>>>0?1:0))+((oe=ze+vt|0)>>>0<ze>>>0?1:0)|0}p=y.low=p+oe,y.high=X+Z+(p>>>0<oe>>>0?1:0),E=$.low=E+Ie,$.high=P+Pe+(E>>>0<Ie>>>0?1:0),ne=C.low=ne+Ht,C.high=R+pt+(ne>>>0<Ht>>>0?1:0),ce=T.low=ce+Xe,T.high=G+Wt+(ce>>>0<Xe>>>0?1:0),we=j.low=we+Be,j.high=xe+Qe+(we>>>0<Be>>>0?1:0),ct=I.low=ct+lt,I.high=Ge+at+(ct>>>0<lt>>>0?1:0),Ce=F.low=Ce+Yt,F.high=pe+Dt+(Ce>>>0<Yt>>>0?1:0),H=z.low=H+ot,z.high=U+Tt+(H>>>0<ot>>>0?1:0)},_doFinalize:function(){var w=this._data,B=w.words,_=8*this._nDataBytes,y=8*w.sigBytes;return B[y>>>5]|=128<<24-y%32,B[30+(y+128>>>10<<5)]=Math.floor(_/4294967296),B[31+(y+128>>>10<<5)]=_,w.sigBytes=4*B.length,this._process(),this._hash.toX32()},clone:function(){var w=d.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:32});e.SHA512=d._createHelper(L),e.HmacSHA512=d._createHmacHelper(L)}(),n.SHA512)},57243:function(Ee,Q,t){var n;Ee.exports=(n=t(67585),t(58319),t(9493),t(37865),t(53057),function(){var e=n,i=e.lib,d=i.WordArray,a=i.BlockCipher,u=e.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],O=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],L=u.DES=a.extend({_doReset:function(){for(var $=this._key.words,C=[],T=0;T<56;T++){var j=h[T]-1;C[T]=$[j>>>5]>>>31-j%32&1}for(var I=this._subKeys=[],F=0;F<16;F++){var z=I[F]=[],X=m[F];for(T=0;T<24;T++)z[T/6|0]|=C[(l[T]-1+X)%28]<<31-T%6,z[4+(T/6|0)]|=C[28+(l[T+24]-1+X)%28]<<31-T%6;for(z[0]=z[0]<<1|z[0]>>>31,T=1;T<7;T++)z[T]=z[T]>>>4*(T-1)+3;z[7]=z[7]<<5|z[7]>>>27}var p=this._invSubKeys=[];for(T=0;T<16;T++)p[T]=I[15-T]},encryptBlock:function(y,$){this._doCryptBlock(y,$,this._subKeys)},decryptBlock:function(y,$){this._doCryptBlock(y,$,this._invSubKeys)},_doCryptBlock:function(y,$,C){this._lBlock=y[$],this._rBlock=y[$+1],w.call(this,4,252645135),w.call(this,16,65535),B.call(this,2,858993459),B.call(this,8,16711935),w.call(this,1,1431655765);for(var T=0;T<16;T++){for(var j=C[T],I=this._lBlock,F=this._rBlock,z=0,X=0;X<8;X++)z|=x[X][((F^j[X])&O[X])>>>0];this._lBlock=F,this._rBlock=I^z}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,w.call(this,1,1431655765),B.call(this,8,16711935),B.call(this,2,858993459),w.call(this,16,65535),w.call(this,4,252645135),y[$]=this._lBlock,y[$+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function w(y,$){var C=(this._lBlock>>>y^this._rBlock)&$;this._rBlock^=C,this._lBlock^=C<<y}function B(y,$){var C=(this._rBlock>>>y^this._lBlock)&$;this._lBlock^=C,this._rBlock^=C<<y}e.DES=a._createHelper(L);var _=u.TripleDES=a.extend({_doReset:function(){var $=this._key.words;if(2!==$.length&&4!==$.length&&$.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var C=$.slice(0,2),T=$.length<4?$.slice(0,2):$.slice(2,4),j=$.length<6?$.slice(0,2):$.slice(4,6);this._des1=L.createEncryptor(d.create(C)),this._des2=L.createEncryptor(d.create(T)),this._des3=L.createEncryptor(d.create(j))},encryptBlock:function(y,$){this._des1.encryptBlock(y,$),this._des2.decryptBlock(y,$),this._des3.encryptBlock(y,$)},decryptBlock:function(y,$){this._des3.decryptBlock(y,$),this._des2.encryptBlock(y,$),this._des1.decryptBlock(y,$)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(_)}(),n.TripleDES)},70401:function(Ee,Q,t){var d,a,u,h,n;Ee.exports=(n=t(67585),a=(d=n.lib).Base,u=d.WordArray,(h=n.x64={}).Word=a.extend({init:function(x,O){this.high=x,this.low=O}}),h.WordArray=a.extend({init:function(x,O){x=this.words=x||[],this.sigBytes=null!=O?O:8*x.length},toX32:function(){for(var x=this.words,O=x.length,L=[],w=0;w<O;w++){var B=x[w];L.push(B.high),L.push(B.low)}return u.create(L,this.sigBytes)},clone:function(){for(var x=a.clone.call(this),O=x.words=this.words.slice(0),L=O.length,w=0;w<L;w++)O[w]=O[w].clone();return x}}),n)},17489:function(Ee,Q,t){var n;Ee=t.nmd(Ee),function(){var e,d=200,u="Expected a function",l="__lodash_hash_undefined__",x="__lodash_placeholder__",O=1,L=2,w=4,B=1,_=2,y=1,$=2,C=4,T=8,j=16,I=32,F=64,z=128,X=256,p=512,R=800,ne=16,we=1/0,Ge=9007199254740991,ct=17976931348623157e292,pe=NaN,Ce=4294967295,U=Ce-1,H=Ce>>>1,Z=[["ary",z],["bind",y],["bindKey",$],["curry",T],["curryRight",j],["flip",p],["partial",I],["partialRight",F],["rearg",X]],oe="[object Arguments]",Pe="[object Array]",Ie="[object AsyncFunction]",pt="[object Boolean]",Ht="[object Date]",Wt="[object DOMException]",Xe="[object Error]",Qe="[object Function]",Be="[object GeneratorFunction]",at="[object Map]",lt="[object Number]",Dt="[object Null]",Yt="[object Object]",Tt="[object Promise]",ot="[object Proxy]",Gt="[object RegExp]",wt="[object Set]",Ze="[object String]",Ut="[object Symbol]",vn="[object Undefined]",xn="[object WeakMap]",hn="[object ArrayBuffer]",pn="[object DataView]",In="[object Float32Array]",Dn="[object Float64Array]",Tn="[object Int8Array]",mn="[object Int16Array]",Yn="[object Int32Array]",cn="[object Uint8Array]",Nn="[object Uint8ClampedArray]",Bt="[object Uint16Array]",En="[object Uint32Array]",Wn=/\b__p \+= '';/g,rn=/\b(__p \+=) '' \+/g,Sn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,ge=/[&<>"']/g,q=RegExp(ke.source),J=RegExp(ge.source),Oe=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,qe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ze=/[\\^$.*+?()[\]{}|]/g,zt=RegExp(ze.source),vt=/^\s+/,Rt=/\s/,gt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sn=/\{\n\/\* \[wrapped with (.+)\] \*/,wn=/,? & /,Qn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pi=/[()=,{}\[\]\/\s]/,Ei=/\\(\\)?/g,ki=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Co=/\w*$/,xo=/^[-+]0x[0-9a-f]+$/i,no=/^0b[01]+$/i,Qo=/^\[object .+?Constructor\]$/,Mo=/^0o[0-7]+$/i,po=/^(?:0|[1-9]\d*)$/,Io=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,en=/($^)/,Hn=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Me="\\u2700-\\u27bf",We="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",bt="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dn="["+tt+"]",St="["+Le+"]",jt="["+Se+"]",ht="\\d+",on="["+Me+"]",Nt="["+We+"]",It="[^"+tt+Le+ht+Me+We+Ae+"]",Ot="\\ud83c[\\udffb-\\udfff]",Xn="[^"+tt+"]",_i="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",Ui="["+Ae+"]",vi="(?:"+Nt+"|"+It+")",Zn="(?:"+Ui+"|"+It+")",gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Mt="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",$t="(?:"+jt+"|"+Ot+")?",kn="["+bt+"]?",Oo=kn+$t+"(?:\\u200d(?:"+[Xn,_i,ci].join("|")+")"+kn+$t+")*",Fo="(?:"+[on,_i,ci].join("|")+")"+Oo,Zi="(?:"+[Xn+jt+"?",jt,_i,ci,dn].join("|")+")",Wo=RegExp("['\u2019]","g"),na=RegExp(jt,"g"),qa=RegExp(Ot+"(?="+Ot+")|"+Zi+Oo,"g"),rr=RegExp([Ui+"?"+Nt+"+"+gn+"(?="+[St,Ui,"$"].join("|")+")",Zn+"+"+Mt+"(?="+[St,Ui+vi,"$"].join("|")+")",Ui+"?"+vi+"+"+gn,Ui+"+"+Mt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ht,Fo].join("|"),"g"),dr=RegExp("[\\u200d"+tt+Se+bt+"]"),sr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ks=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_r=-1,_o={};_o[In]=_o[Dn]=_o[Tn]=_o[mn]=_o[Yn]=_o[cn]=_o[Nn]=_o[Bt]=_o[En]=!0,_o[oe]=_o[Pe]=_o[hn]=_o[pt]=_o[pn]=_o[Ht]=_o[Xe]=_o[Qe]=_o[at]=_o[lt]=_o[Yt]=_o[Gt]=_o[wt]=_o[Ze]=_o[xn]=!1;var to={};to[oe]=to[Pe]=to[hn]=to[pn]=to[pt]=to[Ht]=to[In]=to[Dn]=to[Tn]=to[mn]=to[Yn]=to[at]=to[lt]=to[Yt]=to[Gt]=to[wt]=to[Ze]=to[Ut]=to[cn]=to[Nn]=to[Bt]=to[En]=!0,to[Xe]=to[Qe]=to[xn]=!1;var zr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cr=parseFloat,vr=parseInt,Pr="object"==typeof global&&global&&global.Object===Object&&global,Cs="object"==typeof self&&self&&self.Object===Object&&self,ia=Pr||Cs||Function("return this")(),Er=Q&&!Q.nodeType&&Q,yo=Er&&Ee&&!Ee.nodeType&&Ee,Yr=yo&&yo.exports===Er,Ya=Yr&&Pr.process,ma=function(){try{return yo&&yo.require&&yo.require("util").types||Ya&&Ya.binding&&Ya.binding("util")}catch{}}(),ur=ma&&ma.isArrayBuffer,Or=ma&&ma.isDate,es=ma&&ma.isMap,ts=ma&&ma.isRegExp,er=ma&&ma.isSet,pr=ma&&ma.isTypedArray;function Ua(Gn,ui,si){switch(si.length){case 0:return Gn.call(ui);case 1:return Gn.call(ui,si[0]);case 2:return Gn.call(ui,si[0],si[1]);case 3:return Gn.call(ui,si[0],si[1],si[2])}return Gn.apply(ui,si)}function Ca(Gn,ui,si,Yi){for(var Eo=-1,bi=null==Gn?0:Gn.length;++Eo<bi;){var Wi=Gn[Eo];ui(Yi,Wi,si(Wi),Gn)}return Yi}function Va(Gn,ui){for(var si=-1,Yi=null==Gn?0:Gn.length;++si<Yi&&!1!==ui(Gn[si],si,Gn););return Gn}function Rr(Gn,ui){for(var si=null==Gn?0:Gn.length;si--&&!1!==ui(Gn[si],si,Gn););return Gn}function ha(Gn,ui){for(var si=-1,Yi=null==Gn?0:Gn.length;++si<Yi;)if(!ui(Gn[si],si,Gn))return!1;return!0}function mr(Gn,ui){for(var si=-1,Yi=null==Gn?0:Gn.length,Eo=0,bi=[];++si<Yi;){var Wi=Gn[si];ui(Wi,si,Gn)&&(bi[Eo++]=Wi)}return bi}function Fr(Gn,ui){return!(null==Gn||!Gn.length)&&Pa(Gn,ui,0)>-1}function da(Gn,ui,si){for(var Yi=-1,Eo=null==Gn?0:Gn.length;++Yi<Eo;)if(si(ui,Gn[Yi]))return!0;return!1}function Ro(Gn,ui){for(var si=-1,Yi=null==Gn?0:Gn.length,Eo=Array(Yi);++si<Yi;)Eo[si]=ui(Gn[si],si,Gn);return Eo}function ya(Gn,ui){for(var si=-1,Yi=ui.length,Eo=Gn.length;++si<Yi;)Gn[Eo+si]=ui[si];return Gn}function oa(Gn,ui,si,Yi){var Eo=-1,bi=null==Gn?0:Gn.length;for(Yi&&bi&&(si=Gn[++Eo]);++Eo<bi;)si=ui(si,Gn[Eo],Eo,Gn);return si}function hr(Gn,ui,si,Yi){var Eo=null==Gn?0:Gn.length;for(Yi&&Eo&&(si=Gn[--Eo]);Eo--;)si=ui(si,Gn[Eo],Eo,Gn);return si}function fr(Gn,ui){for(var si=-1,Yi=null==Gn?0:Gn.length;++si<Yi;)if(ui(Gn[si],si,Gn))return!0;return!1}var br=Aa("length");function Za(Gn,ui,si){var Yi;return si(Gn,function(Eo,bi,Wi){if(ui(Eo,bi,Wi))return Yi=bi,!1}),Yi}function ns(Gn,ui,si,Yi){for(var Eo=Gn.length,bi=si+(Yi?1:-1);Yi?bi--:++bi<Eo;)if(ui(Gn[bi],bi,Gn))return bi;return-1}function Pa(Gn,ui,si){return ui==ui?function Tc(Gn,ui,si){for(var Yi=si-1,Eo=Gn.length;++Yi<Eo;)if(Gn[Yi]===ui)return Yi;return-1}(Gn,ui,si):ns(Gn,Sr,si)}function ar(Gn,ui,si,Yi){for(var Eo=si-1,bi=Gn.length;++Eo<bi;)if(Yi(Gn[Eo],ui))return Eo;return-1}function Sr(Gn){return Gn!=Gn}function ao(Gn,ui){var si=null==Gn?0:Gn.length;return si?Qt(Gn,ui)/si:pe}function Aa(Gn){return function(ui){return null==ui?e:ui[Gn]}}function Je(Gn){return function(ui){return null==Gn?e:Gn[ui]}}function Ke(Gn,ui,si,Yi,Eo){return Eo(Gn,function(bi,Wi,ei){si=Yi?(Yi=!1,bi):ui(si,bi,Wi,ei)}),si}function Qt(Gn,ui){for(var si,Yi=-1,Eo=Gn.length;++Yi<Eo;){var bi=ui(Gn[Yi]);bi!==e&&(si=si===e?bi:si+bi)}return si}function ti(Gn,ui){for(var si=-1,Yi=Array(Gn);++si<Gn;)Yi[si]=ui(si);return Yi}function qt(Gn){return Gn&&Gn.slice(0,yi(Gn)+1).replace(vt,"")}function it(Gn){return function(ui){return Gn(ui)}}function ae(Gn,ui){return Ro(ui,function(si){return Gn[si]})}function _e(Gn,ui){return Gn.has(ui)}function mt(Gn,ui){for(var si=-1,Yi=Gn.length;++si<Yi&&Pa(ui,Gn[si],0)>-1;);return si}function Vt(Gn,ui){for(var si=Gn.length;si--&&Pa(ui,Gn[si],0)>-1;);return si}var Rn=Je({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),ni=Je({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ii(Gn){return"\\"+zr[Gn]}function io(Gn){return dr.test(Gn)}function ka(Gn){var ui=-1,si=Array(Gn.size);return Gn.forEach(function(Yi,Eo){si[++ui]=[Eo,Yi]}),si}function Po(Gn,ui){return function(si){return Gn(ui(si))}}function Cr(Gn,ui){for(var si=-1,Yi=Gn.length,Eo=0,bi=[];++si<Yi;){var Wi=Gn[si];(Wi===ui||Wi===x)&&(Gn[si]=x,bi[Eo++]=si)}return bi}function _s(Gn){var ui=-1,si=Array(Gn.size);return Gn.forEach(function(Yi){si[++ui]=Yi}),si}function is(Gn){return io(Gn)?function nc(Gn){for(var ui=qa.lastIndex=0;qa.test(Gn);)++ui;return ui}(Gn):br(Gn)}function Br(Gn){return io(Gn)?function Ic(Gn){return Gn.match(qa)||[]}(Gn):function Ia(Gn){return Gn.split("")}(Gn)}function yi(Gn){for(var ui=Gn.length;ui--&&Rt.test(Gn.charAt(ui)););return ui}var os=Je({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Bs=function Gn(ui){var A,si=(ui=null==ui?ia:Bs.defaults(ia.Object(),ui,Bs.pick(ia,Ks))).Array,Yi=ui.Date,Eo=ui.Error,bi=ui.Function,Wi=ui.Math,ei=ui.Object,tr=ui.RegExp,Ao=ui.String,jo=ui.TypeError,as=si.prototype,xa=ei.prototype,aa=ui["__core-js_shared__"],pc=bi.prototype.toString,Xo=xa.hasOwnProperty,Ac=0,mc=(A=/[^.]+$/.exec(aa&&aa.keys&&aa.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",Re=xa.toString,Ct=pc.call(ei),$e=ia._,Kt=tr("^"+pc.call(Xo).replace(ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yn=Yr?ui.Buffer:e,ii=ui.Symbol,hi=ui.Uint8Array,Ki=yn?yn.allocUnsafe:e,ea=Po(ei.getPrototypeOf,ei),ra=ei.create,zo=xa.propertyIsEnumerable,To=as.splice,Ha=ii?ii.isConcatSpreadable:e,Ri=ii?ii.iterator:e,co=ii?ii.toStringTag:e,Jo=function(){try{var A=od(ei,"defineProperty");return A({},"",{}),A}catch{}}(),lo=ui.clearTimeout!==ia.clearTimeout&&ui.clearTimeout,Ja=Yi&&Yi.now!==ia.Date.now&&Yi.now,Tr=ui.setTimeout!==ia.setTimeout&&ui.setTimeout,Ka=Wi.ceil,Nr=Wi.floor,La=ei.getOwnPropertySymbols,Gs=yn?yn.isBuffer:e,jr=ui.isFinite,ic=as.join,rl=Po(ei.keys,ei),Ea=Wi.max,nr=Wi.min,Ra=Yi.now,Qs=ui.parseInt,Xs=Wi.random,Ss=as.reverse,Yc=od(ui,"DataView"),hc=od(ui,"Map"),yr=od(ui,"Promise"),kc=od(ui,"Set"),Zs=od(ui,"WeakMap"),Ts=od(ei,"create"),Lc=Zs&&new Zs,oc={},Kl=Vc(Yc),Hc=Vc(hc),fc=Vc(yr),Ir=Vc(kc),rs=Vc(Zs),xr=ii?ii.prototype:e,Ga=xr?xr.valueOf:e,Hr=xr?xr.toString:e;function Xt(A){if(ps(A)&&!Zo(A)&&!(A instanceof zn)){if(A instanceof Vn)return A;if(Xo.call(A,"__wrapped__"))return pm(A)}return new Vn(A)}var nn=function(){function A(){}return function(Y){if(!Jr(Y))return{};if(ra)return ra(Y);A.prototype=Y;var le=new A;return A.prototype=e,le}}();function An(){}function Vn(A,Y){this.__wrapped__=A,this.__actions__=[],this.__chain__=!!Y,this.__index__=0,this.__values__=e}function zn(A){this.__wrapped__=A,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ce,this.__views__=[]}function Ji(A){var Y=-1,le=null==A?0:A.length;for(this.clear();++Y<le;){var He=A[Y];this.set(He[0],He[1])}}function Is(A){var Y=-1,le=null==A?0:A.length;for(this.clear();++Y<le;){var He=A[Y];this.set(He[0],He[1])}}function Ns(A){var Y=-1,le=null==A?0:A.length;for(this.clear();++Y<le;){var He=A[Y];this.set(He[0],He[1])}}function Da(A){var Y=-1,le=null==A?0:A.length;for(this.__data__=new Ns;++Y<le;)this.add(A[Y])}function ir(A){var Y=this.__data__=new Is(A);this.size=Y.size}function Ne(A,Y){var le=Zo(A),He=!le&&_u(A),kt=!le&&!He&&jd(A),ln=!le&&!He&&!kt&&Vd(A),Ln=le||He||kt||ln,$n=Ln?ti(A.length,Ao):[],Jn=$n.length;for(var xi in A)(Y||Xo.call(A,xi))&&(!Ln||!("length"==xi||kt&&("offset"==xi||"parent"==xi)||ln&&("buffer"==xi||"byteLength"==xi||"byteOffset"==xi)||Rs(xi,Jn)))&&$n.push(xi);return $n}function st(A){var Y=A.length;return Y?A[Sl(0,Y-1)]:e}function Ft(A,Y){return kd(Ms(A),gs(Y,0,A.length))}function an(A){return kd(Ms(A))}function jn(A,Y,le){(le!==e&&!gl(A[Y],le)||le===e&&!(Y in A))&&Kr(A,Y,le)}function mi(A,Y,le){var He=A[Y];(!Xo.call(A,Y)||!gl(He,le)||le===e&&!(Y in A))&&Kr(A,Y,le)}function Vi(A,Y){for(var le=A.length;le--;)if(gl(A[le][0],Y))return le;return-1}function zi(A,Y,le,He){return vs(A,function(kt,ln,Ln){Y(He,kt,le(kt),Ln)}),He}function fa(A,Y){return A&&vc(Y,Ws(Y),A)}function Kr(A,Y,le){"__proto__"==Y&&Jo?Jo(A,Y,{configurable:!0,enumerable:!0,value:le,writable:!0}):A[Y]=le}function Us(A,Y){for(var le=-1,He=Y.length,kt=si(He),ln=null==A;++le<He;)kt[le]=ln?e:ol(A,Y[le]);return kt}function gs(A,Y,le){return A==A&&(le!==e&&(A=A<=le?A:le),Y!==e&&(A=A>=Y?A:Y)),A}function Qa(A,Y,le,He,kt,ln){var Ln,$n=Y&O,Jn=Y&L,xi=Y&w;if(le&&(Ln=kt?le(A,He,kt,ln):le(A)),Ln!==e)return Ln;if(!Jr(A))return A;var Mi=Zo(A);if(Mi){if(Ln=function sm(A){var Y=A.length,le=new A.constructor(Y);return Y&&"string"==typeof A[0]&&Xo.call(A,"index")&&(le.index=A.index,le.input=A.input),le}(A),!$n)return Ms(A,Ln)}else{var Oi=Ls(A),Hi=Oi==Qe||Oi==Be;if(jd(A))return tl(A,$n);if(Oi==Yt||Oi==oe||Hi&&!kt){if(Ln=Jn||Hi?{}:Sd(A),!$n)return Jn?function Cp(A,Y){return vc(A,uu(A),Y)}(A,function wr(A,Y){return A&&vc(Y,wc(Y),A)}(Ln,A)):function ku(A,Y){return vc(A,Od(A),Y)}(A,fa(Ln,A))}else{if(!to[Oi])return kt?A:{};Ln=function cm(A,Y,le){var He=A.constructor;switch(Y){case hn:return hl(A);case pt:case Ht:return new He(+A);case pn:return function Qr(A,Y){var le=Y?hl(A.buffer):A.buffer;return new A.constructor(le,A.byteOffset,A.byteLength)}(A,le);case In:case Dn:case Tn:case mn:case Yn:case cn:case Nn:case Bt:case En:return Au(A,le);case at:return new He;case lt:case Ze:return new He(A);case Gt:return function ks(A){var Y=new A.constructor(A.source,Co.exec(A));return Y.lastIndex=A.lastIndex,Y}(A);case wt:return new He;case Ut:return function wu(A){return Ga?ei(Ga.call(A)):{}}(A)}}(A,Oi,$n)}}ln||(ln=new ir);var mo=ln.get(A);if(mo)return mo;ln.set(A,Ln),Cu(A)?A.forEach(function(Lo){Ln.add(Qa(Lo,Y,le,Lo,A,ln))}):gu(A)&&A.forEach(function(Lo,va){Ln.set(va,Qa(Lo,Y,le,va,A,ln))});var Ho=Mi?e:(xi?Jn?Ll:id:Jn?wc:Ws)(A);return Va(Ho||A,function(Lo,va){Ho&&(Lo=A[va=Lo]),mi(Ln,va,Qa(Lo,Y,le,va,A,ln))}),Ln}function Vr(A,Y,le){var He=le.length;if(null==A)return!He;for(A=ei(A);He--;){var kt=le[He],Ln=A[kt];if(Ln===e&&!(kt in A)||!(0,Y[kt])(Ln))return!1}return!0}function Js(A,Y,le){if("function"!=typeof A)throw new jo(u);return Nu(function(){A.apply(e,le)},Y)}function Gc(A,Y,le,He){var kt=-1,ln=Fr,Ln=!0,$n=A.length,Jn=[],xi=Y.length;if(!$n)return Jn;le&&(Y=Ro(Y,it(le))),He?(ln=da,Ln=!1):Y.length>=d&&(ln=_e,Ln=!1,Y=new Da(Y));e:for(;++kt<$n;){var Mi=A[kt],Oi=null==le?Mi:le(Mi);if(Mi=He||0!==Mi?Mi:0,Ln&&Oi==Oi){for(var Hi=xi;Hi--;)if(Y[Hi]===Oi)continue e;Jn.push(Mi)}else ln(Y,Oi,He)||Jn.push(Mi)}return Jn}Xt.templateSettings={escape:Oe,evaluate:je,interpolate:Et,variable:"",imports:{_:Xt}},(Xt.prototype=An.prototype).constructor=Xt,(Vn.prototype=nn(An.prototype)).constructor=Vn,(zn.prototype=nn(An.prototype)).constructor=zn,Ji.prototype.clear=function Ta(){this.__data__=Ts?Ts(null):{},this.size=0},Ji.prototype.delete=function Mr(A){var Y=this.has(A)&&delete this.__data__[A];return this.size-=Y?1:0,Y},Ji.prototype.get=function Fa(A){var Y=this.__data__;if(Ts){var le=Y[A];return le===l?e:le}return Xo.call(Y,A)?Y[A]:e},Ji.prototype.has=function _c(A){var Y=this.__data__;return Ts?Y[A]!==e:Xo.call(Y,A)},Ji.prototype.set=function Ma(A,Y){var le=this.__data__;return this.size+=this.has(A)?0:1,le[A]=Ts&&Y===e?l:Y,this},Is.prototype.clear=function Si(){this.__data__=[],this.size=0},Is.prototype.delete=function Wa(A){var Y=this.__data__,le=Vi(Y,A);return!(le<0||(le==Y.length-1?Y.pop():To.call(Y,le,1),--this.size,0))},Is.prototype.get=function xl(A){var Y=this.__data__,le=Vi(Y,A);return le<0?e:Y[le][1]},Is.prototype.has=function Kc(A){return Vi(this.__data__,A)>-1},Is.prototype.set=function Zd(A,Y){var le=this.__data__,He=Vi(le,A);return He<0?(++this.size,le.push([A,Y])):le[He][1]=Y,this},Ns.prototype.clear=function Dr(){this.size=0,this.__data__={hash:new Ji,map:new(hc||Is),string:new Ji}},Ns.prototype.delete=function Rc(A){var Y=du(this,A).delete(A);return this.size-=Y?1:0,Y},Ns.prototype.get=function Fc(A){return du(this,A).get(A)},Ns.prototype.has=function Ba(A){return du(this,A).has(A)},Ns.prototype.set=function ws(A,Y){var le=du(this,A),He=le.size;return le.set(A,Y),this.size+=le.size==He?0:1,this},Da.prototype.add=Da.prototype.push=function wi(A){return this.__data__.set(A,l),this},Da.prototype.has=function Ur(A){return this.__data__.has(A)},ir.prototype.clear=function js(){this.__data__=new Is,this.size=0},ir.prototype.delete=function qo(A){var Y=this.__data__,le=Y.delete(A);return this.size=Y.size,le},ir.prototype.get=function fe(A){return this.__data__.get(A)},ir.prototype.has=function ye(A){return this.__data__.has(A)},ir.prototype.set=function se(A,Y){var le=this.__data__;if(le instanceof Is){var He=le.__data__;if(!hc||He.length<d-1)return He.push([A,Y]),this.size=++le.size,this;le=this.__data__=new Ns(He)}return le.set(A,Y),this.size=le.size,this};var vs=Jl(Vs),fd=Jl(Bc,!0);function Jd(A,Y){var le=!0;return vs(A,function(He,kt,ln){return le=!!Y(He,kt,ln)}),le}function Qc(A,Y,le){for(var He=-1,kt=A.length;++He<kt;){var ln=A[He],Ln=Y(ln);if(null!=Ln&&($n===e?Ln==Ln&&!sc(Ln):le(Ln,$n)))var $n=Ln,Jn=ln}return Jn}function qd(A,Y){var le=[];return vs(A,function(He,kt,ln){Y(He,kt,ln)&&le.push(He)}),le}function Gr(A,Y,le,He,kt){var ln=-1,Ln=A.length;for(le||(le=Zm),kt||(kt=[]);++ln<Ln;){var $n=A[ln];Y>0&&le($n)?Y>1?Gr($n,Y-1,le,He,kt):ya(kt,$n):He||(kt[kt.length]=$n)}return kt}var gd=xd(),sl=xd(!0);function Vs(A,Y){return A&&gd(A,Y,Ws)}function Bc(A,Y){return A&&sl(A,Y,Ws)}function cl(A,Y){return mr(Y,function(le){return Mc(A[le])})}function Xc(A,Y){for(var le=0,He=(Y=qc(Y,A)).length;null!=A&&le<He;)A=A[yc(Y[le++])];return le&&le==He?A:e}function Ql(A,Y,le){var He=Y(A);return Zo(A)?He:ya(He,le(A))}function ys(A){return null==A?A===e?vn:Dt:co&&co in ei(A)?function am(A){var Y=Xo.call(A,co),le=A[co];try{A[co]=e;var He=!0}catch{}var kt=Re.call(A);return He&&(Y?A[co]=le:delete A[co]),kt}(A):function Nl(A){return Re.call(A)}(A)}function Ml(A,Y){return A>Y}function dp(A,Y){return null!=A&&Xo.call(A,Y)}function up(A,Y){return null!=A&&Y in ei(A)}function ss(A,Y,le){for(var He=le?da:Fr,kt=A[0].length,ln=A.length,Ln=ln,$n=si(ln),Jn=1/0,xi=[];Ln--;){var Mi=A[Ln];Ln&&Y&&(Mi=Ro(Mi,it(Y))),Jn=nr(Mi.length,Jn),$n[Ln]=!le&&(Y||kt>=120&&Mi.length>=120)?new Da(Ln&&Mi):e}Mi=A[0];var Oi=-1,Hi=$n[0];e:for(;++Oi<kt&&xi.length<Jn;){var mo=Mi[Oi],ko=Y?Y(mo):mo;if(mo=le||0!==mo?mo:0,!(Hi?_e(Hi,ko):He(xi,ko,le))){for(Ln=ln;--Ln;){var Ho=$n[Ln];if(!(Ho?_e(Ho,ko):He(A[Ln],ko,le)))continue e}Hi&&Hi.push(ko),xi.push(mo)}}return xi}function Zc(A,Y,le){var He=null==(A=wd(A,Y=qc(Y,A)))?A:A[yc(un(Y))];return null==He?e:Ua(He,A,le)}function Pl(A){return ps(A)&&ys(A)==oe}function ll(A,Y,le,He,kt){return A===Y||(null==A||null==Y||!ps(A)&&!ps(Y)?A!=A&&Y!=Y:function dl(A,Y,le,He,kt,ln){var Ln=Zo(A),$n=Zo(Y),Jn=Ln?Pe:Ls(A),xi=$n?Pe:Ls(Y),Mi=(Jn=Jn==oe?Yt:Jn)==Yt,Oi=(xi=xi==oe?Yt:xi)==Yt,Hi=Jn==xi;if(Hi&&jd(A)){if(!jd(Y))return!1;Ln=!0,Mi=!1}if(Hi&&!Mi)return ln||(ln=new ir),Ln||Vd(A)?om(A,Y,le,He,kt,ln):function Xm(A,Y,le,He,kt,ln,Ln){switch(le){case pn:if(A.byteLength!=Y.byteLength||A.byteOffset!=Y.byteOffset)return!1;A=A.buffer,Y=Y.buffer;case hn:return!(A.byteLength!=Y.byteLength||!ln(new hi(A),new hi(Y)));case pt:case Ht:case lt:return gl(+A,+Y);case Xe:return A.name==Y.name&&A.message==Y.message;case Gt:case Ze:return A==Y+"";case at:var $n=ka;case wt:if($n||($n=_s),A.size!=Y.size&&!(He&B))return!1;var xi=Ln.get(A);if(xi)return xi==Y;He|=_,Ln.set(A,Y);var Mi=om($n(A),$n(Y),He,kt,ln,Ln);return Ln.delete(A),Mi;case Ut:if(Ga)return Ga.call(A)==Ga.call(Y)}return!1}(A,Y,Jn,le,He,kt,ln);if(!(le&B)){var mo=Mi&&Xo.call(A,"__wrapped__"),ko=Oi&&Xo.call(Y,"__wrapped__");if(mo||ko){var Ho=mo?A.value():A,Lo=ko?Y.value():Y;return ln||(ln=new ir),kt(Ho,Lo,le,He,ln)}}return!!Hi&&(ln||(ln=new ir),function lu(A,Y,le,He,kt,ln){var Ln=le&B,$n=id(A),Jn=$n.length;if(Jn!=id(Y).length&&!Ln)return!1;for(var Oi=Jn;Oi--;){var Hi=$n[Oi];if(!(Ln?Hi in Y:Xo.call(Y,Hi)))return!1}var mo=ln.get(A),ko=ln.get(Y);if(mo&&ko)return mo==Y&&ko==A;var Ho=!0;ln.set(A,Y),ln.set(Y,A);for(var Lo=Ln;++Oi<Jn;){var va=A[Hi=$n[Oi]],Oa=Y[Hi];if(He)var lc=Ln?He(Oa,va,Hi,Y,A,ln):He(va,Oa,Hi,A,Y,ln);if(!(lc===e?va===Oa||kt(va,Oa,le,He,ln):lc)){Ho=!1;break}Lo||(Lo="constructor"==Hi)}if(Ho&&!Lo){var ms=A.constructor,Dc=Y.constructor;ms!=Dc&&"constructor"in A&&"constructor"in Y&&!("function"==typeof ms&&ms instanceof ms&&"function"==typeof Dc&&Dc instanceof Dc)&&(Ho=!1)}return ln.delete(A),ln.delete(Y),Ho}(A,Y,le,He,kt,ln))}(A,Y,le,He,ll,kt))}function Ol(A,Y,le,He){var kt=le.length,ln=kt,Ln=!He;if(null==A)return!ln;for(A=ei(A);kt--;){var $n=le[kt];if(Ln&&$n[2]?$n[1]!==A[$n[0]]:!($n[0]in A))return!1}for(;++kt<ln;){var Jn=($n=le[kt])[0],xi=A[Jn],Mi=$n[1];if(Ln&&$n[2]){if(xi===e&&!(Jn in A))return!1}else{var Oi=new ir;if(He)var Hi=He(xi,Mi,Jn,A,Y,Oi);if(!(Hi===e?ll(Mi,xi,B|_,He,Oi):Hi))return!1}}return!0}function pa(A){return!(!Jr(A)||function qm(A){return!!mc&&mc in A}(A))&&(Mc(A)?Kt:Qo).test(Vc(A))}function ft(A){return"function"==typeof A?A:null==A?Lr:"object"==typeof A?Zo(A)?Bo(A[0],A[1]):So(A):Lm(A)}function tn(A){if(!Bl(A))return rl(A);var Y=[];for(var le in ei(A))Xo.call(A,le)&&"constructor"!=le&&Y.push(le);return Y}function di(A,Y){return A<Y}function Gi(A,Y){var le=-1,He=xc(A)?si(A.length):[];return vs(A,function(kt,ln,Ln){He[++le]=Y(kt,ln,Ln)}),He}function So(A){var Y=Ed(A);return 1==Y.length&&Y[0][2]?Ep(Y[0][0],Y[0][1]):function(le){return le===A||Ol(le,A,Y)}}function Bo(A,Y){return Ru(A)&&Id(Y)?Ep(yc(A),Y):function(le){var He=ol(le,A);return He===e&&He===Y?Ch(le,A):ll(Y,He,B|_)}}function $r(A,Y,le,He,kt){A!==Y&&gd(Y,function(ln,Ln){if(kt||(kt=new ir),Jr(ln))!function rc(A,Y,le,He,kt,ln,Ln){var $n=Fu(A,le),Jn=Fu(Y,le),xi=Ln.get(Jn);if(xi)jn(A,le,xi);else{var Mi=ln?ln($n,Jn,le+"",A,Y,Ln):e,Oi=Mi===e;if(Oi){var Hi=Zo(Jn),mo=!Hi&&jd(Jn),ko=!Hi&&!mo&&Vd(Jn);Mi=Jn,Hi||mo||ko?Zo($n)?Mi=$n:us($n)?Mi=Ms($n):mo?(Oi=!1,Mi=tl(Jn,!0)):ko?(Oi=!1,Mi=Au(Jn,!0)):Mi=[]:Ud(Jn)||_u(Jn)?(Mi=$n,_u($n)?Mi=Lf($n):(!Jr($n)||Mc($n))&&(Mi=Sd(Jn))):Oi=!1}Oi&&(Ln.set(Jn,Mi),kt(Mi,Jn,He,ln,Ln),Ln.delete(Jn)),jn(A,le,Mi)}}(A,Y,Ln,le,$r,He,kt);else{var $n=He?He(Fu(A,Ln),ln,Ln+"",A,Y,kt):e;$n===e&&($n=ln),jn(A,Ln,$n)}},wc)}function cs(A,Y){var le=A.length;if(le)return Rs(Y+=Y<0?le:0,le)?A[Y]:e}function Su(A,Y,le){Y=Y.length?Ro(Y,function(ln){return Zo(ln)?function(Ln){return Xc(Ln,1===ln.length?ln[0]:ln)}:ln}):[Lr];var He=-1;return Y=Ro(Y,it(go())),function Ue(Gn,ui){var si=Gn.length;for(Gn.sort(ui);si--;)Gn[si]=Gn[si].value;return Gn}(Gi(A,function(ln,Ln,$n){return{criteria:Ro(Y,function(xi){return xi(ln)}),index:++He,value:ln}}),function(ln,Ln){return function Cd(A,Y,le){for(var He=-1,kt=A.criteria,ln=Y.criteria,Ln=kt.length,$n=le.length;++He<Ln;){var Jn=Nc(kt[He],ln[He]);if(Jn)return He>=$n?Jn:Jn*("desc"==le[He]?-1:1)}return A.index-Y.index}(ln,Ln,le)})}function ul(A,Y,le){for(var He=-1,kt=Y.length,ln={};++He<kt;){var Ln=Y[He],$n=Xc(A,Ln);le($n,Ln)&&Tl(ln,qc(Ln,A),$n)}return ln}function eu(A,Y,le,He){var kt=He?ar:Pa,ln=-1,Ln=Y.length,$n=A;for(A===Y&&(Y=Ms(Y)),le&&($n=Ro(A,it(le)));++ln<Ln;)for(var Jn=0,xi=Y[ln],Mi=le?le(xi):xi;(Jn=kt($n,Mi,Jn,He))>-1;)$n!==A&&To.call($n,Jn,1),To.call(A,Jn,1);return A}function qp(A,Y){for(var le=A?Y.length:0,He=le-1;le--;){var kt=Y[le];if(le==He||kt!==ln){var ln=kt;Rs(kt)?To.call(A,kt,1):gc(A,kt)}}return A}function Sl(A,Y){return A+Nr(Xs()*(Y-A+1))}function Tu(A,Y){var le="";if(!A||Y<1||Y>Ge)return le;do{Y%2&&(le+=A),(Y=Nr(Y/2))&&(A+=A)}while(Y);return le}function sa(A,Y){return um(Uc(A,Y,Lr),A+"")}function em(A){return st(vl(A))}function xs(A,Y){var le=vl(A);return kd(le,gs(Y,0,le.length))}function Tl(A,Y,le,He){if(!Jr(A))return A;for(var kt=-1,ln=(Y=qc(Y,A)).length,Ln=ln-1,$n=A;null!=$n&&++kt<ln;){var Jn=yc(Y[kt]),xi=le;if("__proto__"===Jn||"constructor"===Jn||"prototype"===Jn)return A;if(kt!=Ln){var Mi=$n[Jn];(xi=He?He(Mi,Jn,$n):e)===e&&(xi=Jr(Mi)?Mi:Rs(Y[kt+1])?[]:{})}mi($n,Jn,xi),$n=$n[Jn]}return A}var hp=Lc?function(A,Y){return Lc.set(A,Y),A}:Lr,fp=Jo?function(A,Y){return Jo(A,"toString",{configurable:!0,enumerable:!1,value:xu(Y),writable:!0})}:Lr;function As(A){return kd(vl(A))}function $s(A,Y,le){var He=-1,kt=A.length;Y<0&&(Y=-Y>kt?0:kt+Y),(le=le>kt?kt:le)<0&&(le+=kt),kt=Y>le?0:le-Y>>>0,Y>>>=0;for(var ln=si(kt);++He<kt;)ln[He]=A[He+Y];return ln}function bd(A,Y){var le;return vs(A,function(He,kt,ln){return!(le=Y(He,kt,ln))}),!!le}function pl(A,Y,le){var He=0,kt=null==A?He:A.length;if("number"==typeof Y&&Y==Y&&kt<=H){for(;He<kt;){var ln=He+kt>>>1,Ln=A[ln];null!==Ln&&!sc(Ln)&&(le?Ln<=Y:Ln<Y)?He=ln+1:kt=ln}return kt}return Iu(A,Y,Lr,le)}function Iu(A,Y,le,He){var kt=0,ln=null==A?0:A.length;if(0===ln)return 0;for(var Ln=(Y=le(Y))!=Y,$n=null===Y,Jn=sc(Y),xi=Y===e;kt<ln;){var Mi=Nr((kt+ln)/2),Oi=le(A[Mi]),Hi=Oi!==e,mo=null===Oi,ko=Oi==Oi,Ho=sc(Oi);if(Ln)var Lo=He||ko;else Lo=xi?ko&&(He||Hi):$n?ko&&Hi&&(He||!mo):Jn?ko&&Hi&&!mo&&(He||!Ho):!mo&&!Ho&&(He?Oi<=Y:Oi<Y);Lo?kt=Mi+1:ln=Mi}return nr(ln,U)}function _p(A,Y){for(var le=-1,He=A.length,kt=0,ln=[];++le<He;){var Ln=A[le],$n=Y?Y(Ln):Ln;if(!le||!gl($n,Jn)){var Jn=$n;ln[kt++]=0===Ln?0:Ln}}return ln}function tm(A){return"number"==typeof A?A:sc(A)?pe:+A}function qs(A){if("string"==typeof A)return A;if(Zo(A))return Ro(A,qs)+"";if(sc(A))return Hr?Hr.call(A):"";var Y=A+"";return"0"==Y&&1/A==-we?"-0":Y}function ml(A,Y,le){var He=-1,kt=Fr,ln=A.length,Ln=!0,$n=[],Jn=$n;if(le)Ln=!1,kt=da;else if(ln>=d){var xi=Y?null:xp(A);if(xi)return _s(xi);Ln=!1,kt=_e,Jn=new Da}else Jn=Y?[]:$n;e:for(;++He<ln;){var Mi=A[He],Oi=Y?Y(Mi):Mi;if(Mi=le||0!==Mi?Mi:0,Ln&&Oi==Oi){for(var Hi=Jn.length;Hi--;)if(Jn[Hi]===Oi)continue e;Y&&Jn.push(Oi),$n.push(Mi)}else kt(Jn,Oi,le)||(Jn!==$n&&Jn.push(Oi),$n.push(Mi))}return $n}function gc(A,Y){return null==(A=wd(A,Y=qc(Y,A)))||delete A[yc(un(Y))]}function gp(A,Y,le,He){return Tl(A,Y,le(Xc(A,Y)),He)}function tu(A,Y,le,He){for(var kt=A.length,ln=He?kt:-1;(He?ln--:++ln<kt)&&Y(A[ln],ln,A););return le?$s(A,He?0:ln,He?ln+1:kt):$s(A,He?ln+1:0,He?kt:ln)}function nu(A,Y){var le=A;return le instanceof zn&&(le=le.value()),oa(Y,function(He,kt){return kt.func.apply(kt.thisArg,ya([He],kt.args))},le)}function ls(A,Y,le){var He=A.length;if(He<2)return He?ml(A[0]):[];for(var kt=-1,ln=si(He);++kt<He;)for(var Ln=A[kt],$n=-1;++$n<He;)$n!=kt&&(ln[kt]=Gc(ln[kt]||Ln,A[$n],Y,le));return ml(Gr(ln,1),Y,le)}function Jc(A,Y,le){for(var He=-1,kt=A.length,ln=Y.length,Ln={};++He<kt;)le(Ln,A[He],He<ln?Y[He]:e);return Ln}function Zl(A){return us(A)?A:[]}function vp(A){return"function"==typeof A?A:Lr}function qc(A,Y){return Zo(A)?A:Ru(A,Y)?[A]:th(ja(A))}var bp=sa;function el(A,Y,le){var He=A.length;return le=le===e?He:le,!Y&&le>=He?A:$s(A,Y,le)}var iu=lo||function(A){return ia.clearTimeout(A)};function tl(A,Y){if(Y)return A.slice();var le=A.length,He=Ki?Ki(le):new A.constructor(le);return A.copy(He),He}function hl(A){var Y=new A.constructor(A.byteLength);return new hi(Y).set(new hi(A)),Y}function Au(A,Y){var le=Y?hl(A.buffer):A.buffer;return new A.constructor(le,A.byteOffset,A.length)}function Nc(A,Y){if(A!==Y){var le=A!==e,He=null===A,kt=A==A,ln=sc(A),Ln=Y!==e,$n=null===Y,Jn=Y==Y,xi=sc(Y);if(!$n&&!xi&&!ln&&A>Y||ln&&Ln&&Jn&&!$n&&!xi||He&&Ln&&Jn||!le&&Jn||!kt)return 1;if(!He&&!ln&&!xi&&A<Y||xi&&le&&kt&&!He&&!ln||$n&&le&&kt||!Ln&&kt||!Jn)return-1}return 0}function ou(A,Y,le,He){for(var kt=-1,ln=A.length,Ln=le.length,$n=-1,Jn=Y.length,xi=Ea(ln-Ln,0),Mi=si(Jn+xi),Oi=!He;++$n<Jn;)Mi[$n]=Y[$n];for(;++kt<Ln;)(Oi||kt<ln)&&(Mi[le[kt]]=A[kt]);for(;xi--;)Mi[$n++]=A[kt++];return Mi}function au(A,Y,le,He){for(var kt=-1,ln=A.length,Ln=-1,$n=le.length,Jn=-1,xi=Y.length,Mi=Ea(ln-$n,0),Oi=si(Mi+xi),Hi=!He;++kt<Mi;)Oi[kt]=A[kt];for(var mo=kt;++Jn<xi;)Oi[mo+Jn]=Y[Jn];for(;++Ln<$n;)(Hi||kt<ln)&&(Oi[mo+le[Ln]]=A[kt++]);return Oi}function Ms(A,Y){var le=-1,He=A.length;for(Y||(Y=si(He));++le<He;)Y[le]=A[le];return Y}function vc(A,Y,le,He){var kt=!le;le||(le={});for(var ln=-1,Ln=Y.length;++ln<Ln;){var $n=Y[ln],Jn=He?He(le[$n],A[$n],$n,le,A):e;Jn===e&&(Jn=A[$n]),kt?Kr(le,$n,Jn):mi(le,$n,Jn)}return le}function yd(A,Y){return function(le,He){var kt=Zo(le)?Ca:zi,ln=Y?Y():{};return kt(le,A,go(He,2),ln)}}function bc(A){return sa(function(Y,le){var He=-1,kt=le.length,ln=kt>1?le[kt-1]:e,Ln=kt>2?le[2]:e;for(ln=A.length>3&&"function"==typeof ln?(kt--,ln):e,Ln&&ds(le[0],le[1],Ln)&&(ln=kt<3?e:ln,kt=1),Y=ei(Y);++He<kt;){var $n=le[He];$n&&A(Y,$n,He,ln)}return Y})}function Jl(A,Y){return function(le,He){if(null==le)return le;if(!xc(le))return A(le,He);for(var kt=le.length,ln=Y?kt:-1,Ln=ei(le);(Y?ln--:++ln<kt)&&!1!==He(Ln[ln],ln,Ln););return le}}function xd(A){return function(Y,le,He){for(var kt=-1,ln=ei(Y),Ln=He(Y),$n=Ln.length;$n--;){var Jn=Ln[A?$n:++kt];if(!1===le(ln[Jn],Jn,ln))break}return Y}}function Il(A){return function(Y){var le=io(Y=ja(Y))?Br(Y):e,He=le?le[0]:Y.charAt(0),kt=le?el(le,1).join(""):Y.slice(1);return He[A]()+kt}}function ql(A){return function(Y){return oa(Gf(Ph(Y).replace(Wo,"")),A,"")}}function Md(A){return function(){var Y=arguments;switch(Y.length){case 0:return new A;case 1:return new A(Y[0]);case 2:return new A(Y[0],Y[1]);case 3:return new A(Y[0],Y[1],Y[2]);case 4:return new A(Y[0],Y[1],Y[2],Y[3]);case 5:return new A(Y[0],Y[1],Y[2],Y[3],Y[4]);case 6:return new A(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5]);case 7:return new A(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5],Y[6])}var le=nn(A.prototype),He=A.apply(le,Y);return Jr(He)?He:le}}function Qm(A){return function(Y,le,He){var kt=ei(Y);if(!xc(Y)){var ln=go(le,3);Y=Ws(Y),le=function($n){return ln(kt[$n],$n,kt)}}var Ln=A(Y,le,He);return Ln>-1?kt[ln?Y[Ln]:Ln]:e}}function ru(A){return nl(function(Y){var le=Y.length,He=le,kt=Vn.prototype.thru;for(A&&Y.reverse();He--;){var ln=Y[He];if("function"!=typeof ln)throw new jo(u);if(kt&&!Ln&&"wrapper"==Fl(ln))var Ln=new Vn([],!0)}for(He=Ln?He:le;++He<le;){var $n=Fl(ln=Y[He]),Jn="wrapper"==$n?Rl(ln):e;Ln=Jn&&Td(Jn[0])&&Jn[1]==(z|T|I|X)&&!Jn[4].length&&1==Jn[9]?Ln[Fl(Jn[0])].apply(Ln,Jn[3]):1==ln.length&&Td(ln)?Ln[$n]():Ln.thru(ln)}return function(){var xi=arguments,Mi=xi[0];if(Ln&&1==xi.length&&Zo(Mi))return Ln.plant(Mi).value();for(var Oi=0,Hi=le?Y[Oi].apply(this,xi):Mi;++Oi<le;)Hi=Y[Oi].call(this,Hi);return Hi}})}function su(A,Y,le,He,kt,ln,Ln,$n,Jn,xi){var Mi=Y&z,Oi=Y&y,Hi=Y&$,mo=Y&(T|j),ko=Y&p,Ho=Hi?e:Md(A);return function Lo(){for(var va=arguments.length,Oa=si(va),lc=va;lc--;)Oa[lc]=arguments[lc];if(mo)var ms=ec(Lo),Dc=function On(Gn,ui){for(var si=Gn.length,Yi=0;si--;)Gn[si]===ui&&++Yi;return Yi}(Oa,ms);if(He&&(Oa=ou(Oa,He,kt,mo)),ln&&(Oa=au(Oa,ln,Ln,mo)),va-=Dc,mo&&va<xi){var hs=Cr(Oa,ms);return Lu(A,Y,su,Lo.placeholder,le,Oa,hs,$n,Jn,xi-va)}var Pc=Oi?le:this,dc=Hi?Pc[A]:A;return va=Oa.length,$n?Oa=function dm(A,Y){for(var le=A.length,He=nr(Y.length,le),kt=Ms(A);He--;){var ln=Y[He];A[He]=Rs(ln,le)?kt[ln]:e}return A}(Oa,$n):ko&&va>1&&Oa.reverse(),Mi&&Jn<va&&(Oa.length=Jn),this&&this!==ia&&this instanceof Lo&&(dc=Ho||Md(dc)),dc.apply(Pc,Oa)}}function wl(A,Y){return function(le,He){return function Dl(A,Y,le,He){return Vs(A,function(kt,ln,Ln){Y(He,le(kt),ln,Ln)}),He}(le,A,Y(He),{})}}function Dd(A,Y){return function(le,He){var kt;if(le===e&&He===e)return Y;if(le!==e&&(kt=le),He!==e){if(kt===e)return He;"string"==typeof le||"string"==typeof He?(le=qs(le),He=qs(He)):(le=tm(le),He=tm(He)),kt=A(le,He)}return kt}}function ed(A){return nl(function(Y){return Y=Ro(Y,it(go())),sa(function(le){var He=this;return A(Y,function(kt){return Ua(kt,He,le)})})})}function Al(A,Y){var le=(Y=Y===e?" ":qs(Y)).length;if(le<2)return le?Tu(Y,A):Y;var He=Tu(Y,Ka(A/is(Y)));return io(Y)?el(Br(He),0,A).join(""):He.slice(0,A)}function td(A){return function(Y,le,He){return He&&"number"!=typeof He&&ds(Y,le,He)&&(le=He=e),Y=dd(Y),le===e?(le=Y,Y=0):le=dd(le),function mp(A,Y,le,He){for(var kt=-1,ln=Ea(Ka((Y-A)/(le||1)),0),Ln=si(ln);ln--;)Ln[He?ln:++kt]=A,A+=le;return Ln}(Y,le,He=He===e?Y<le?1:-1:dd(He),A)}}function nd(A){return function(Y,le){return"string"==typeof Y&&"string"==typeof le||(Y=il(Y),le=il(le)),A(Y,le)}}function Lu(A,Y,le,He,kt,ln,Ln,$n,Jn,xi){var Mi=Y&T;Y|=Mi?I:F,(Y&=~(Mi?F:I))&C||(Y&=~(y|$));var Ho=[A,Y,kt,Mi?ln:e,Mi?Ln:e,Mi?e:ln,Mi?e:Ln,$n,Jn,xi],Lo=le.apply(e,Ho);return Td(A)&&Bu(Lo,Ho),Lo.placeholder=He,pu(Lo,A,Y)}function Pd(A){var Y=Wi[A];return function(le,He){if(le=il(le),(He=null==He?0:nr(ta(He),292))&&jr(le)){var kt=(ja(le)+"e").split("e");return+((kt=(ja(Y(kt[0]+"e"+(+kt[1]+He)))+"e").split("e"))[0]+"e"+(+kt[1]-He))}return Y(le)}}var xp=kc&&1/_s(new kc([,-0]))[1]==we?function(A){return new kc(A)}:Wd;function cu(A){return function(Y){var le=Ls(Y);return le==at?ka(Y):le==wt?function Os(Gn){var ui=-1,si=Array(Gn.size);return Gn.forEach(function(Yi){si[++ui]=[Yi,Yi]}),si}(Y):function $i(Gn,ui){return Ro(ui,function(si){return[si,Gn[si]]})}(Y,A(Y))}}function Cc(A,Y,le,He,kt,ln,Ln,$n){var Jn=Y&$;if(!Jn&&"function"!=typeof A)throw new jo(u);var xi=He?He.length:0;if(xi||(Y&=~(I|F),He=kt=e),Ln=Ln===e?Ln:Ea(ta(Ln),0),$n=$n===e?$n:ta($n),xi-=kt?kt.length:0,Y&F){var Mi=He,Oi=kt;He=kt=e}var Hi=Jn?e:Rl(A),mo=[A,Y,le,He,kt,Mi,Oi,ln,Ln,$n];if(Hi&&function Op(A,Y){var le=A[1],He=Y[1],kt=le|He;if(!(kt<(y|$|z))&&!(He==z&&le==T||He==z&&le==X&&A[7].length<=Y[8]||He==(z|X)&&Y[7].length<=Y[8]&&le==T))return A;He&y&&(A[2]=Y[2],kt|=le&y?0:C);var $n=Y[3];if($n){var Jn=A[3];A[3]=Jn?ou(Jn,$n,Y[4]):$n,A[4]=Jn?Cr(A[3],x):Y[4]}($n=Y[5])&&(A[5]=(Jn=A[5])?au(Jn,$n,Y[6]):$n,A[6]=Jn?Cr(A[5],x):Y[6]),($n=Y[7])&&(A[7]=$n),He&z&&(A[8]=null==A[8]?Y[8]:nr(A[8],Y[8])),null==A[9]&&(A[9]=Y[9]),A[0]=Y[0],A[1]=kt}(mo,Hi),A=mo[0],Y=mo[1],le=mo[2],He=mo[3],kt=mo[4],!($n=mo[9]=mo[9]===e?Jn?0:A.length:Ea(mo[9]-xi,0))&&Y&(T|j)&&(Y&=~(T|j)),Y&&Y!=y)ko=Y==T||Y==j?function Gm(A,Y,le){var He=Md(A);return function kt(){for(var ln=arguments.length,Ln=si(ln),$n=ln,Jn=ec(kt);$n--;)Ln[$n]=arguments[$n];var xi=ln<3&&Ln[0]!==Jn&&Ln[ln-1]!==Jn?[]:Cr(Ln,Jn);return(ln-=xi.length)<le?Lu(A,Y,su,kt.placeholder,e,Ln,xi,e,e,le-ln):Ua(this&&this!==ia&&this instanceof kt?He:A,this,Ln)}}(A,Y,$n):Y!=I&&Y!=(y|I)||kt.length?su.apply(e,mo):function nm(A,Y,le,He){var kt=Y&y,ln=Md(A);return function Ln(){for(var $n=-1,Jn=arguments.length,xi=-1,Mi=He.length,Oi=si(Mi+Jn),Hi=this&&this!==ia&&this instanceof Ln?ln:A;++xi<Mi;)Oi[xi]=He[xi];for(;Jn--;)Oi[xi++]=arguments[++$n];return Ua(Hi,kt?le:this,Oi)}}(A,Y,le,He);else var ko=function yp(A,Y,le){var He=Y&y,kt=Md(A);return function ln(){return(this&&this!==ia&&this instanceof ln?kt:A).apply(He?le:this,arguments)}}(A,Y,le);return pu((Hi?hp:Bu)(ko,mo),A,Y)}function Mp(A,Y,le,He){return A===e||gl(A,xa[le])&&!Xo.call(He,le)?Y:A}function kl(A,Y,le,He,kt,ln){return Jr(A)&&Jr(Y)&&(ln.set(Y,A),$r(A,Y,e,kl,ln),ln.delete(Y)),A}function im(A){return Ud(A)?e:A}function om(A,Y,le,He,kt,ln){var Ln=le&B,$n=A.length,Jn=Y.length;if($n!=Jn&&!(Ln&&Jn>$n))return!1;var xi=ln.get(A),Mi=ln.get(Y);if(xi&&Mi)return xi==Y&&Mi==A;var Oi=-1,Hi=!0,mo=le&_?new Da:e;for(ln.set(A,Y),ln.set(Y,A);++Oi<$n;){var ko=A[Oi],Ho=Y[Oi];if(He)var Lo=Ln?He(Ho,ko,Oi,Y,A,ln):He(ko,Ho,Oi,A,Y,ln);if(Lo!==e){if(Lo)continue;Hi=!1;break}if(mo){if(!fr(Y,function(va,Oa){if(!_e(mo,Oa)&&(ko===va||kt(ko,va,le,He,ln)))return mo.push(Oa)})){Hi=!1;break}}else if(ko!==Ho&&!kt(ko,Ho,le,He,ln)){Hi=!1;break}}return ln.delete(A),ln.delete(Y),Hi}function nl(A){return um(Uc(A,e,b),A+"")}function id(A){return Ql(A,Ws,Od)}function Ll(A){return Ql(A,wc,uu)}var Rl=Lc?function(A){return Lc.get(A)}:Wd;function Fl(A){for(var Y=A.name+"",le=oc[Y],He=Xo.call(oc,Y)?le.length:0;He--;){var kt=le[He],ln=kt.func;if(null==ln||ln==A)return kt.name}return Y}function ec(A){return(Xo.call(Xt,"placeholder")?Xt:A).placeholder}function go(){var A=Xt.iteratee||Np;return A=A===Np?ft:A,arguments.length?A(arguments[0],arguments[1]):A}function du(A,Y){var le=A.__data__;return function Jm(A){var Y=typeof A;return"string"==Y||"number"==Y||"symbol"==Y||"boolean"==Y?"__proto__"!==A:null===A}(Y)?le["string"==typeof Y?"string":"hash"]:le.map}function Ed(A){for(var Y=Ws(A),le=Y.length;le--;){var He=Y[le],kt=A[He];Y[le]=[He,kt,Id(kt)]}return Y}function od(A,Y){var le=function so(Gn,ui){return null==Gn?e:Gn[ui]}(A,Y);return pa(le)?le:e}var Od=La?function(A){return null==A?[]:(A=ei(A),mr(La(A),function(Y){return zo.call(A,Y)}))}:jp,uu=La?function(A){for(var Y=[];A;)ya(Y,Od(A)),A=ea(A);return Y}:jp,Ls=ys;function jc(A,Y,le){for(var He=-1,kt=(Y=qc(Y,A)).length,ln=!1;++He<kt;){var Ln=yc(Y[He]);if(!(ln=null!=A&&le(A,Ln)))break;A=A[Ln]}return ln||++He!=kt?ln:!!(kt=null==A?0:A.length)&&cd(kt)&&Rs(Ln,kt)&&(Zo(A)||_u(A))}function Sd(A){return"function"!=typeof A.constructor||Bl(A)?{}:nn(ea(A))}function Zm(A){return Zo(A)||_u(A)||!!(Ha&&A&&A[Ha])}function Rs(A,Y){var le=typeof A;return!!(Y=Y??Ge)&&("number"==le||"symbol"!=le&&po.test(A))&&A>-1&&A%1==0&&A<Y}function ds(A,Y,le){if(!Jr(le))return!1;var He=typeof Y;return!!("number"==He?xc(le)&&Rs(Y,le.length):"string"==He&&Y in le)&&gl(le[Y],A)}function Ru(A,Y){if(Zo(A))return!1;var le=typeof A;return!("number"!=le&&"symbol"!=le&&"boolean"!=le&&null!=A&&!sc(A))||rt.test(A)||!dt.test(A)||null!=Y&&A in ei(Y)}function Td(A){var Y=Fl(A),le=Xt[Y];if("function"!=typeof le||!(Y in zn.prototype))return!1;if(A===le)return!0;var He=Rl(le);return!!He&&A===He[0]}(Yc&&Ls(new Yc(new ArrayBuffer(1)))!=pn||hc&&Ls(new hc)!=at||yr&&Ls(yr.resolve())!=Tt||kc&&Ls(new kc)!=wt||Zs&&Ls(new Zs)!=xn)&&(Ls=function(A){var Y=ys(A),le=Y==Yt?A.constructor:e,He=le?Vc(le):"";if(He)switch(He){case Kl:return pn;case Hc:return at;case fc:return Tt;case Ir:return wt;case rs:return xn}return Y});var Pp=aa?Mc:Up;function Bl(A){var Y=A&&A.constructor;return A===("function"==typeof Y&&Y.prototype||xa)}function Id(A){return A==A&&!Jr(A)}function Ep(A,Y){return function(le){return null!=le&&le[A]===Y&&(Y!==e||A in ei(le))}}function Uc(A,Y,le){return Y=Ea(Y===e?A.length-1:Y,0),function(){for(var He=arguments,kt=-1,ln=Ea(He.length-Y,0),Ln=si(ln);++kt<ln;)Ln[kt]=He[Y+kt];kt=-1;for(var $n=si(Y+1);++kt<Y;)$n[kt]=He[kt];return $n[Y]=le(Ln),Ua(A,this,$n)}}function wd(A,Y){return Y.length<2?A:Xc(A,$s(Y,0,-1))}function Fu(A,Y){if(("constructor"!==Y||"function"!=typeof A[Y])&&"__proto__"!=Y)return A[Y]}var Bu=Ad(hp),Nu=Tr||function(A,Y){return ia.setTimeout(A,Y)},um=Ad(fp);function pu(A,Y,le){var He=Y+"";return um(A,function lm(A,Y){var le=Y.length;if(!le)return A;var He=le-1;return Y[He]=(le>1?"& ":"")+Y[He],Y=Y.join(le>2?", ":" "),A.replace(gt,"{\n/* [wrapped with "+Y+"] */\n")}(He,function Ds(A,Y){return Va(Z,function(le){var He="_."+le[0];Y&le[1]&&!Fr(A,He)&&A.push(He)}),A.sort()}(function Dp(A){var Y=A.match(sn);return Y?Y[1].split(wn):[]}(He),le)))}function Ad(A){var Y=0,le=0;return function(){var He=Ra(),kt=ne-(He-le);if(le=He,kt>0){if(++Y>=R)return arguments[0]}else Y=0;return A.apply(e,arguments)}}function kd(A,Y){var le=-1,He=A.length,kt=He-1;for(Y=Y===e?He:Y;++le<Y;){var ln=Sl(le,kt),Ln=A[ln];A[ln]=A[le],A[le]=Ln}return A.length=Y,A}var th=function eh(A){var Y=Bd(A,function(He){return 500===le.size&&le.clear(),He}),le=Y.cache;return Y}(function(A){var Y=[];return 46===A.charCodeAt(0)&&Y.push(""),A.replace(qe,function(le,He,kt,ln){Y.push(kt?ln.replace(Ei,"$1"):He||le)}),Y});function yc(A){if("string"==typeof A||sc(A))return A;var Y=A+"";return"0"==Y&&1/A==-we?"-0":Y}function Vc(A){if(null!=A){try{return pc.call(A)}catch{}try{return A+""}catch{}}return""}function pm(A){if(A instanceof zn)return A.clone();var Y=new Vn(A.__wrapped__,A.__chain__);return Y.__actions__=Ms(A.__actions__),Y.__index__=A.__index__,Y.__values__=A.__values__,Y}var ju=sa(function(A,Y){return us(A)?Gc(A,Gr(Y,1,us,!0)):[]}),Tp=sa(function(A,Y){var le=un(Y);return us(le)&&(le=e),us(A)?Gc(A,Gr(Y,1,us,!0),go(le,2)):[]}),Ip=sa(function(A,Y){var le=un(Y);return us(le)&&(le=e),us(A)?Gc(A,Gr(Y,1,us,!0),e,le):[]});function ad(A,Y,le){var He=null==A?0:A.length;if(!He)return-1;var kt=null==le?0:ta(le);return kt<0&&(kt=Ea(He+kt,0)),ns(A,go(Y,3),kt)}function D(A,Y,le){var He=null==A?0:A.length;if(!He)return-1;var kt=He-1;return le!==e&&(kt=ta(le),kt=le<0?Ea(He+kt,0):nr(kt,He-1)),ns(A,go(Y,3),kt,!0)}function b(A){return null!=A&&A.length?Gr(A,1):[]}function K(A){return A&&A.length?A[0]:e}var he=sa(function(A){var Y=Ro(A,Zl);return Y.length&&Y[0]===A[0]?ss(Y):[]}),Fe=sa(function(A){var Y=un(A),le=Ro(A,Zl);return Y===un(le)?Y=e:le.pop(),le.length&&le[0]===A[0]?ss(le,go(Y,2)):[]}),_t=sa(function(A){var Y=un(A),le=Ro(A,Zl);return(Y="function"==typeof Y?Y:e)&&le.pop(),le.length&&le[0]===A[0]?ss(le,e,Y):[]});function un(A){var Y=null==A?0:A.length;return Y?A[Y-1]:e}var Un=sa(qn);function qn(A,Y){return A&&A.length&&Y&&Y.length?eu(A,Y):A}var Li=nl(function(A,Y){var le=null==A?0:A.length,He=Us(A,Y);return qp(A,Ro(Y,function(kt){return Rs(kt,le)?+kt:kt}).sort(Nc)),He});function Ci(A){return null==A?A:Ss.call(A)}var $c=sa(function(A){return ml(Gr(A,1,us,!0))}),fl=sa(function(A){var Y=un(A);return us(Y)&&(Y=e),ml(Gr(A,1,us,!0),go(Y,2))}),Fd=sa(function(A){var Y=un(A);return Y="function"==typeof Y?Y:e,ml(Gr(A,1,us,!0),e,Y)});function Ul(A){if(!A||!A.length)return[];var Y=0;return A=mr(A,function(le){if(us(le))return Y=Ea(le.length,Y),!0}),ti(Y,function(le){return Ro(A,Aa(le))})}function df(A,Y){if(!A||!A.length)return[];var le=Ul(A);return null==Y?le:Ro(le,function(He){return Ua(Y,e,He)})}var uf=sa(function(A,Y){return us(A)?Gc(A,Y):[]}),O0=sa(function(A){return ls(mr(A,us))}),T_=sa(function(A){var Y=un(A);return us(Y)&&(Y=e),ls(mr(A,us),go(Y,2))}),wp=sa(function(A){var Y=un(A);return Y="function"==typeof Y?Y:e,ls(mr(A,us),e,Y)}),I_=sa(Ul),w_=sa(function(A){var Y=A.length,le=Y>1?A[Y-1]:e;return le="function"==typeof le?(A.pop(),le):e,df(A,le)});function _m(A){var Y=Xt(A);return Y.__chain__=!0,Y}function gm(A,Y){return Y(A)}var pf=nl(function(A){var Y=A.length,le=Y?A[0]:0,He=this.__wrapped__,kt=function(ln){return Us(ln,A)};return!(Y>1||this.__actions__.length)&&He instanceof zn&&Rs(le)?((He=He.slice(le,+le+(Y?1:0))).__actions__.push({func:gm,args:[kt],thisArg:e}),new Vn(He,this.__chain__).thru(function(ln){return Y&&!ln.length&&ln.push(e),ln})):this.thru(kt)}),L_=yd(function(A,Y,le){Xo.call(A,le)?++A[le]:Kr(A,le,1)}),B_=Qm(ad),ff=Qm(D);function $l(A,Y){return(Zo(A)?Va:vs)(A,go(Y,3))}function vf(A,Y){return(Zo(A)?Rr:fd)(A,go(Y,3))}var N_=yd(function(A,Y,le){Xo.call(A,le)?A[le].push(Y):Kr(A,le,[Y])}),bm=sa(function(A,Y,le){var He=-1,kt="function"==typeof Y,ln=xc(A)?si(A.length):[];return vs(A,function(Ln){ln[++He]=kt?Ua(Y,Ln,le):Zc(Ln,Y,le)}),ln}),bf=yd(function(A,Y,le){Kr(A,le,Y)});function oh(A,Y){return(Zo(A)?Ro:Gi)(A,go(Y,3))}var Cf=yd(function(A,Y,le){A[le?0:1].push(Y)},function(){return[[],[]]}),z_=sa(function(A,Y){if(null==A)return[];var le=Y.length;return le>1&&ds(A,Y[0],Y[1])?Y=[]:le>2&&ds(Y[0],Y[1],Y[2])&&(Y=[Y[0]]),Su(A,Gr(Y,1),[])}),Cm=Ja||function(){return ia.Date.now()};function ah(A,Y,le){return Y=le?e:Y,Cc(A,z,e,e,e,e,Y=A&&null==Y?A.length:Y)}function Mf(A,Y){var le;if("function"!=typeof Y)throw new jo(u);return A=ta(A),function(){return--A>0&&(le=Y.apply(this,arguments)),A<=1&&(Y=e),le}}var zu=sa(function(A,Y,le){var He=y;if(le.length){var kt=Cr(le,ec(zu));He|=I}return Cc(A,He,Y,le,kt)}),Df=sa(function(A,Y,le){var He=y|$;if(le.length){var kt=Cr(le,ec(Df));He|=I}return Cc(Y,He,A,le,kt)});function ym(A,Y,le){var He,kt,ln,Ln,$n,Jn,xi=0,Mi=!1,Oi=!1,Hi=!0;if("function"!=typeof A)throw new jo(u);function mo(hs){var Pc=He,dc=kt;return He=kt=e,xi=hs,Ln=A.apply(dc,Pc)}function Lo(hs){var Pc=hs-Jn;return Jn===e||Pc>=Y||Pc<0||Oi&&hs-xi>=ln}function va(){var hs=Cm();if(Lo(hs))return Oa(hs);$n=Nu(va,function Ho(hs){var Um=Y-(hs-Jn);return Oi?nr(Um,ln-(hs-xi)):Um}(hs))}function Oa(hs){return $n=e,Hi&&He?mo(hs):(He=kt=e,Ln)}function Dc(){var hs=Cm(),Pc=Lo(hs);if(He=arguments,kt=this,Jn=hs,Pc){if($n===e)return function ko(hs){return xi=hs,$n=Nu(va,Y),Mi?mo(hs):Ln}(Jn);if(Oi)return iu($n),$n=Nu(va,Y),mo(Jn)}return $n===e&&($n=Nu(va,Y)),Ln}return Y=il(Y)||0,Jr(le)&&(Mi=!!le.leading,ln=(Oi="maxWait"in le)?Ea(il(le.maxWait)||0,Y):ln,Hi="trailing"in le?!!le.trailing:Hi),Dc.cancel=function lc(){$n!==e&&iu($n),xi=0,He=Jn=kt=$n=e},Dc.flush=function ms(){return $n===e?Ln:Oa(Cm())},Dc}var Pf=sa(function(A,Y){return Js(A,1,Y)}),H_=sa(function(A,Y,le){return Js(A,il(Y)||0,le)});function Bd(A,Y){if("function"!=typeof A||null!=Y&&"function"!=typeof Y)throw new jo(u);var le=function(){var He=arguments,kt=Y?Y.apply(this,He):He[0],ln=le.cache;if(ln.has(kt))return ln.get(kt);var Ln=A.apply(this,He);return le.cache=ln.set(kt,Ln)||ln,Ln};return le.cache=new(Bd.Cache||Ns),le}function xm(A){if("function"!=typeof A)throw new jo(u);return function(){var Y=arguments;switch(Y.length){case 0:return!A.call(this);case 1:return!A.call(this,Y[0]);case 2:return!A.call(this,Y[0],Y[1]);case 3:return!A.call(this,Y[0],Y[1],Y[2])}return!A.apply(this,Y)}}Bd.Cache=Ns;var G_=bp(function(A,Y){var le=(Y=1==Y.length&&Zo(Y[0])?Ro(Y[0],it(go())):Ro(Gr(Y,1),it(go()))).length;return sa(function(He){for(var kt=-1,ln=nr(He.length,le);++kt<ln;)He[kt]=Y[kt].call(this,He[kt]);return Ua(A,this,He)})}),sh=sa(function(A,Y){var le=Cr(Y,ec(sh));return Cc(A,I,e,Y,le)}),Ef=sa(function(A,Y){var le=Cr(Y,ec(Ef));return Cc(A,F,e,Y,le)}),ch=nl(function(A,Y){return Cc(A,X,e,e,e,Y)});function gl(A,Y){return A===Y||A!=A&&Y!=Y}var tg=nd(Ml),sd=nd(function(A,Y){return A>=Y}),_u=Pl(function(){return arguments}())?Pl:function(A){return ps(A)&&Xo.call(A,"callee")&&!zo.call(A,"callee")},Zo=si.isArray,Dm=ur?it(ur):function Xl(A){return ps(A)&&ys(A)==hn};function xc(A){return null!=A&&cd(A.length)&&!Mc(A)}function us(A){return ps(A)&&xc(A)}var jd=Gs||Up,ng=Or?it(Or):function El(A){return ps(A)&&ys(A)==Ht};function Pm(A){if(!ps(A))return!1;var Y=ys(A);return Y==Xe||Y==Wt||"string"==typeof A.message&&"string"==typeof A.name&&!Ud(A)}function Mc(A){if(!Jr(A))return!1;var Y=ys(A);return Y==Qe||Y==Be||Y==Ie||Y==ot}function Yu(A){return"number"==typeof A&&A==ta(A)}function cd(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=Ge}function Jr(A){var Y=typeof A;return null!=A&&("object"==Y||"function"==Y)}function ps(A){return null!=A&&"object"==typeof A}var gu=es?it(es):function ac(A){return ps(A)&&Ls(A)==at};function bu(A){return"number"==typeof A||ps(A)&&ys(A)==lt}function Ud(A){if(!ps(A)||ys(A)!=Yt)return!1;var Y=ea(A);if(null===Y)return!0;var le=Xo.call(Y,"constructor")&&Y.constructor;return"function"==typeof le&&le instanceof le&&pc.call(le)==Ct}var ld=ts?it(ts):function ie(A){return ps(A)&&ys(A)==Gt},Cu=er?it(er):function be(A){return ps(A)&&Ls(A)==wt};function Fp(A){return"string"==typeof A||!Zo(A)&&ps(A)&&ys(A)==Ze}function sc(A){return"symbol"==typeof A||ps(A)&&ys(A)==Ut}var Vd=pr?it(pr):function Ye(A){return ps(A)&&cd(A.length)&&!!_o[ys(A)]},Hu=nd(di),rg=nd(function(A,Y){return A<=Y});function hh(A){if(!A)return[];if(xc(A))return Fp(A)?Br(A):Ms(A);if(Ri&&A[Ri])return function lr(Gn){for(var ui,si=[];!(ui=Gn.next()).done;)si.push(ui.value);return si}(A[Ri]());var Y=Ls(A);return(Y==at?ka:Y==wt?_s:vl)(A)}function dd(A){return A?(A=il(A))===we||A===-we?(A<0?-1:1)*ct:A==A?A:0:0===A?A:0}function ta(A){var Y=dd(A),le=Y%1;return Y==Y?le?Y-le:Y:0}function fh(A){return A?gs(ta(A),0,Ce):0}function il(A){if("number"==typeof A)return A;if(sc(A))return pe;if(Jr(A)){var Y="function"==typeof A.valueOf?A.valueOf():A;A=Jr(Y)?Y+"":Y}if("string"!=typeof A)return 0===A?A:+A;A=qt(A);var le=no.test(A);return le||Mo.test(A)?vr(A.slice(2),le?2:8):xo.test(A)?pe:+A}function Lf(A){return vc(A,wc(A))}function ja(A){return null==A?"":qs(A)}var _h=bc(function(A,Y){if(Bl(Y)||xc(Y))vc(Y,Ws(Y),A);else for(var le in Y)Xo.call(Y,le)&&mi(A,le,Y[le])}),sg=bc(function(A,Y){vc(Y,wc(Y),A)}),Ku=bc(function(A,Y,le,He){vc(Y,wc(Y),A,He)}),gh=bc(function(A,Y,le,He){vc(Y,Ws(Y),A,He)}),Gu=nl(Us),lg=sa(function(A,Y){A=ei(A);var le=-1,He=Y.length,kt=He>2?Y[2]:e;for(kt&&ds(Y[0],Y[1],kt)&&(He=1);++le<He;)for(var ln=Y[le],Ln=wc(ln),$n=-1,Jn=Ln.length;++$n<Jn;){var xi=Ln[$n],Mi=A[xi];(Mi===e||gl(Mi,xa[xi])&&!Xo.call(A,xi))&&(A[xi]=ln[xi])}return A}),Rf=sa(function(A){return A.push(e,kl),Ua(Bp,e,A)});function ol(A,Y,le){var He=null==A?e:Xc(A,Y);return He===e?le:He}function Ch(A,Y){return null!=A&&jc(A,Y,up)}var gg=wl(function(A,Y,le){null!=Y&&"function"!=typeof Y.toString&&(Y=Re.call(Y)),A[Y]=le},xu(Lr)),Ff=wl(function(A,Y,le){null!=Y&&"function"!=typeof Y.toString&&(Y=Re.call(Y)),Xo.call(A,Y)?A[Y].push(le):A[Y]=[le]},go),vg=sa(Zc);function Ws(A){return xc(A)?Ne(A):tn(A)}function wc(A){return xc(A)?Ne(A,!0):function Bn(A){if(!Jr(A))return function Sp(A){var Y=[];if(null!=A)for(var le in ei(A))Y.push(le);return Y}(A);var Y=Bl(A),le=[];for(var He in A)"constructor"==He&&(Y||!Xo.call(A,He))||le.push(He);return le}(A)}var Cg=bc(function(A,Y,le){$r(A,Y,le)}),Bp=bc(function(A,Y,le,He){$r(A,Y,le,He)}),Sm=nl(function(A,Y){var le={};if(null==A)return le;var He=!1;Y=Ro(Y,function(ln){return ln=qc(ln,A),He||(He=ln.length>1),ln}),vc(A,Ll(A),le),He&&(le=Qa(le,O|L|w,im));for(var kt=Y.length;kt--;)gc(le,Y[kt]);return le}),T0=nl(function(A,Y){return null==A?{}:function Jp(A,Y){return ul(A,Y,function(le,He){return Ch(A,He)})}(A,Y)});function Im(A,Y){if(null==A)return{};var le=Ro(Ll(A),function(He){return[He]});return Y=go(Y),ul(A,le,function(He,kt){return Y(He,kt[0])})}var xh=cu(Ws),Mh=cu(wc);function vl(A){return null==A?[]:ae(A,Ws(A))}var Mg=ql(function(A,Y,le){return Y=Y.toLowerCase(),A+(le?yu(Y):Y)});function yu(A){return Xu(ja(A).toLowerCase())}function Ph(A){return(A=ja(A))&&A.replace(Io,Rn).replace(na,"")}var Eg=ql(function(A,Y,le){return A+(le?"-":"")+Y.toLowerCase()}),Og=ql(function(A,Y,le){return A+(le?" ":"")+Y.toLowerCase()}),Sg=Il("toLowerCase"),wg=ql(function(A,Y,le){return A+(le?"_":"")+Y.toLowerCase()}),Qu=ql(function(A,Y,le){return A+(le?" ":"")+Xu(Y)}),k0=ql(function(A,Y,le){return A+(le?" ":"")+Y.toUpperCase()}),Xu=Il("toUpperCase");function Gf(A,Y,le){return A=ja(A),(Y=le?e:Y)===e?function $a(Gn){return sr.test(Gn)}(A)?function al(Gn){return Gn.match(rr)||[]}(A):function wa(Gn){return Gn.match(Qn)||[]}(A):A.match(Y)||[]}var Qf=sa(function(A,Y){try{return Ua(A,e,Y)}catch(le){return Pm(le)?le:new Eo(le)}}),Sh=nl(function(A,Y){return Va(Y,function(le){le=yc(le),Kr(A,le,zu(A[le],A))}),A});function xu(A){return function(){return A}}var Mu=ru(),km=ru(!0);function Lr(A){return A}function Np(A){return ft("function"==typeof A?A:Qa(A,O))}var qu=sa(function(A,Y){return function(le){return Zc(le,A,Y)}}),ep=sa(function(A,Y){return function(le){return Zc(A,le,Y)}});function $d(A,Y,le){var He=Ws(Y),kt=cl(Y,He);null==le&&(!Jr(Y)||!kt.length&&He.length)&&(le=Y,Y=A,A=this,kt=cl(Y,Ws(Y)));var ln=!(Jr(le)&&"chain"in le&&!le.chain),Ln=Mc(A);return Va(kt,function($n){var Jn=Y[$n];A[$n]=Jn,Ln&&(A.prototype[$n]=function(){var xi=this.__chain__;if(ln||xi){var Mi=A(this.__wrapped__);return(Mi.__actions__=Ms(this.__actions__)).push({func:Jn,args:arguments,thisArg:A}),Mi.__chain__=xi,Mi}return Jn.apply(A,ya([this.value()],arguments))})}),A}function Wd(){}var ip=ed(Ro),Th=ed(ha),Ih=ed(fr);function Lm(A){return Ru(A)?Aa(yc(A)):function pp(A){return function(Y){return Xc(Y,A)}}(A)}var Ah=td(),kh=td(!0);function jp(){return[]}function Up(){return!1}var Rh=Dd(function(A,Y){return A+Y},0),Fh=Pd("ceil"),Bg=Dd(function(A,Y){return A/Y},1),Rm=Pd("floor"),t_=Dd(function(A,Y){return A*Y},1),jh=Pd("round"),n_=Dd(function(A,Y){return A-Y},0);return Xt.after=function Y_(A,Y){if("function"!=typeof Y)throw new jo(u);return A=ta(A),function(){if(--A<1)return Y.apply(this,arguments)}},Xt.ary=ah,Xt.assign=_h,Xt.assignIn=sg,Xt.assignInWith=Ku,Xt.assignWith=gh,Xt.at=Gu,Xt.before=Mf,Xt.bind=zu,Xt.bindAll=Sh,Xt.bindKey=Df,Xt.castArray=function X_(){if(!arguments.length)return[];var A=arguments[0];return Zo(A)?A:[A]},Xt.chain=_m,Xt.chunk=function mm(A,Y,le){Y=(le?ds(A,Y,le):Y===e)?1:Ea(ta(Y),0);var He=null==A?0:A.length;if(!He||Y<1)return[];for(var kt=0,ln=0,Ln=si(Ka(He/Y));kt<He;)Ln[ln++]=$s(A,kt,kt+=Y);return Ln},Xt.compact=function hm(A){for(var Y=-1,le=null==A?0:A.length,He=0,kt=[];++Y<le;){var ln=A[Y];ln&&(kt[He++]=ln)}return kt},Xt.concat=function fm(){var A=arguments.length;if(!A)return[];for(var Y=si(A-1),le=arguments[0],He=A;He--;)Y[He-1]=arguments[He];return ya(Zo(le)?Ms(le):[le],Gr(Y,1))},Xt.cond=function Xf(A){var Y=null==A?0:A.length,le=go();return A=Y?Ro(A,function(He){if("function"!=typeof He[1])throw new jo(u);return[le(He[0]),He[1]]}):[],sa(function(He){for(var kt=-1;++kt<Y;){var ln=A[kt];if(Ua(ln[0],this,He))return Ua(ln[1],this,He)}})},Xt.conforms=function Wl(A){return function Gl(A){var Y=Ws(A);return function(le){return Vr(le,A,Y)}}(Qa(A,O))},Xt.constant=xu,Xt.countBy=L_,Xt.create=function cg(A,Y){var le=nn(A);return null==Y?le:fa(le,Y)},Xt.curry=function Yo(A,Y,le){var He=Cc(A,T,e,e,e,e,e,Y=le?e:Y);return He.placeholder=Yo.placeholder,He},Xt.curryRight=function rh(A,Y,le){var He=Cc(A,j,e,e,e,e,e,Y=le?e:Y);return He.placeholder=rh.placeholder,He},Xt.debounce=ym,Xt.defaults=lg,Xt.defaultsDeep=Rf,Xt.defer=Pf,Xt.delay=H_,Xt.difference=ju,Xt.differenceBy=Tp,Xt.differenceWith=Ip,Xt.drop=function Ld(A,Y,le){var He=null==A?0:A.length;return He?$s(A,(Y=le||Y===e?1:ta(Y))<0?0:Y,He):[]},Xt.dropRight=function Ar(A,Y,le){var He=null==A?0:A.length;return He?$s(A,0,(Y=He-(Y=le||Y===e?1:ta(Y)))<0?0:Y):[]},Xt.dropRightWhile=function jl(A,Y){return A&&A.length?tu(A,go(Y,3),!0,!0):[]},Xt.dropWhile=function mu(A,Y){return A&&A.length?tu(A,go(Y,3),!0):[]},Xt.fill=function Rd(A,Y,le,He){var kt=null==A?0:A.length;return kt?(le&&"number"!=typeof le&&ds(A,Y,le)&&(le=0,He=kt),function _d(A,Y,le,He){var kt=A.length;for((le=ta(le))<0&&(le=-le>kt?0:kt+le),(He=He===e||He>kt?kt:ta(He))<0&&(He+=kt),He=le>He?0:fh(He);le<He;)A[le++]=Y;return A}(A,Y,le,He)):[]},Xt.filter=function F_(A,Y){return(Zo(A)?mr:qd)(A,go(Y,3))},Xt.flatMap=function _f(A,Y){return Gr(oh(A,Y),1)},Xt.flatMapDeep=function gf(A,Y){return Gr(oh(A,Y),we)},Xt.flatMapDepth=function Vl(A,Y,le){return le=le===e?1:ta(le),Gr(oh(A,Y),le)},Xt.flatten=b,Xt.flattenDeep=function v(A){return null!=A&&A.length?Gr(A,we):[]},Xt.flattenDepth=function S(A,Y){return null!=A&&A.length?Gr(A,Y=Y===e?1:ta(Y)):[]},Xt.flip=function K_(A){return Cc(A,p)},Xt.flow=Mu,Xt.flowRight=km,Xt.fromPairs=function N(A){for(var Y=-1,le=null==A?0:A.length,He={};++Y<le;){var kt=A[Y];He[kt[0]]=kt[1]}return He},Xt.functions=function fg(A){return null==A?[]:cl(A,Ws(A))},Xt.functionsIn=function _g(A){return null==A?[]:cl(A,wc(A))},Xt.groupBy=N_,Xt.initial=function re(A){return null!=A&&A.length?$s(A,0,-1):[]},Xt.intersection=he,Xt.intersectionBy=Fe,Xt.intersectionWith=_t,Xt.invert=gg,Xt.invertBy=Ff,Xt.invokeMap=bm,Xt.iteratee=Np,Xt.keyBy=bf,Xt.keys=Ws,Xt.keysIn=wc,Xt.map=oh,Xt.mapKeys=function yh(A,Y){var le={};return Y=go(Y,3),Vs(A,function(He,kt,ln){Kr(le,Y(He,kt,ln),He)}),le},Xt.mapValues=function bg(A,Y){var le={};return Y=go(Y,3),Vs(A,function(He,kt,ln){Kr(le,kt,Y(He,kt,ln))}),le},Xt.matches=function Zu(A){return So(Qa(A,O))},Xt.matchesProperty=function Ju(A,Y){return Bo(A,Qa(Y,O))},Xt.memoize=Bd,Xt.merge=Cg,Xt.mergeWith=Bp,Xt.method=qu,Xt.methodOf=ep,Xt.mixin=$d,Xt.negate=xm,Xt.nthArg=function np(A){return A=ta(A),sa(function(Y){return cs(Y,A)})},Xt.omit=Sm,Xt.omitBy=function Tm(A,Y){return Im(A,xm(go(Y)))},Xt.once=function Mm(A){return Mf(2,A)},Xt.orderBy=function Wu(A,Y,le,He){return null==A?[]:(Zo(Y)||(Y=null==Y?[]:[Y]),Zo(le=He?e:le)||(le=null==le?[]:[le]),Su(A,Y,le))},Xt.over=ip,Xt.overArgs=G_,Xt.overEvery=Th,Xt.overSome=Ih,Xt.partial=sh,Xt.partialRight=Ef,Xt.partition=Cf,Xt.pick=T0,Xt.pickBy=Im,Xt.property=Lm,Xt.propertyOf=function wh(A){return function(Y){return null==A?e:Xc(A,Y)}},Xt.pull=Un,Xt.pullAll=qn,Xt.pullAllBy=function ri(A,Y,le){return A&&A.length&&Y&&Y.length?eu(A,Y,go(le,2)):A},Xt.pullAllWith=function fi(A,Y,le){return A&&A.length&&Y&&Y.length?eu(A,Y,e,le):A},Xt.pullAt=Li,Xt.range=Ah,Xt.rangeRight=kh,Xt.rearg=ch,Xt.reject=function U_(A,Y){return(Zo(A)?mr:qd)(A,xm(go(Y,3)))},Xt.remove=function Pi(A,Y){var le=[];if(!A||!A.length)return le;var He=-1,kt=[],ln=A.length;for(Y=go(Y,3);++He<ln;){var Ln=A[He];Y(Ln,He,A)&&(le.push(Ln),kt.push(He))}return qp(A,kt),le},Xt.rest=function Of(A,Y){if("function"!=typeof A)throw new jo(u);return sa(A,Y=Y===e?Y:ta(Y))},Xt.reverse=Ci,Xt.sampleSize=function _l(A,Y,le){return Y=(le?ds(A,Y,le):Y===e)?1:ta(Y),(Zo(A)?Ft:xs)(A,Y)},Xt.set=function Bf(A,Y,le){return null==A?A:Tl(A,Y,le)},Xt.setWith=function Nf(A,Y,le,He){return He="function"==typeof He?He:e,null==A?A:Tl(A,Y,le,He)},Xt.shuffle=function $_(A){return(Zo(A)?an:As)(A)},Xt.slice=function ji(A,Y,le){var He=null==A?0:A.length;return He?(le&&"number"!=typeof le&&ds(A,Y,le)?(Y=0,le=He):(Y=null==Y?0:ta(Y),le=le===e?He:ta(le)),$s(A,Y,le)):[]},Xt.sortBy=z_,Xt.sortedUniq=function kr(A){return A&&A.length?_p(A):[]},Xt.sortedUniqBy=function Xr(A,Y){return A&&A.length?_p(A,go(Y,2)):[]},Xt.split=function Ag(A,Y,le){return le&&"number"!=typeof le&&ds(A,Y,le)&&(Y=le=e),(le=le===e?Ce:le>>>0)?(A=ja(A))&&("string"==typeof Y||null!=Y&&!ld(Y))&&!(Y=qs(Y))&&io(A)?el(Br(A),0,le):A.split(Y,le):[]},Xt.spread=function Nd(A,Y){if("function"!=typeof A)throw new jo(u);return Y=null==Y?0:Ea(ta(Y),0),sa(function(le){var He=le[Y],kt=el(le,0,Y);return He&&ya(kt,He),Ua(A,this,kt)})},Xt.tail=function Go(A){var Y=null==A?0:A.length;return Y?$s(A,1,Y):[]},Xt.take=function Wr(A,Y,le){return A&&A.length?$s(A,0,(Y=le||Y===e?1:ta(Y))<0?0:Y):[]},Xt.takeRight=function Zr(A,Y,le){var He=null==A?0:A.length;return He?$s(A,(Y=He-(Y=le||Y===e?1:ta(Y)))<0?0:Y,He):[]},Xt.takeRightWhile=function rd(A,Y){return A&&A.length?tu(A,go(Y,3),!1,!0):[]},Xt.takeWhile=function Uu(A,Y){return A&&A.length?tu(A,go(Y,3)):[]},Xt.tap=function A_(A,Y){return Y(A),A},Xt.throttle=function Q_(A,Y,le){var He=!0,kt=!0;if("function"!=typeof A)throw new jo(u);return Jr(le)&&(He="leading"in le?!!le.leading:He,kt="trailing"in le?!!le.trailing:kt),ym(A,Y,{leading:He,maxWait:Y,trailing:kt})},Xt.thru=gm,Xt.toArray=hh,Xt.toPairs=xh,Xt.toPairsIn=Mh,Xt.toPath=function qf(A){return Zo(A)?Ro(A,yc):sc(A)?[A]:Ms(th(ja(A)))},Xt.toPlainObject=Lf,Xt.transform=function Dh(A,Y,le){var He=Zo(A),kt=He||jd(A)||Vd(A);if(Y=go(Y,4),null==le){var ln=A&&A.constructor;le=kt?He?new ln:[]:Jr(A)&&Mc(ln)?nn(ea(A)):{}}return(kt?Va:Vs)(A,function(Ln,$n,Jn){return Y(le,Ln,$n,Jn)}),le},Xt.unary=function lh(A){return ah(A,1)},Xt.union=$c,Xt.unionBy=fl,Xt.unionWith=Fd,Xt.uniq=function hu(A){return A&&A.length?ml(A):[]},Xt.uniqBy=function fu(A,Y){return A&&A.length?ml(A,go(Y,2)):[]},Xt.uniqWith=function Vu(A,Y){return Y="function"==typeof Y?Y:e,A&&A.length?ml(A,e,Y):[]},Xt.unset=function ud(A,Y){return null==A||gc(A,Y)},Xt.unzip=Ul,Xt.unzipWith=df,Xt.update=function wm(A,Y,le){return null==A?A:gp(A,Y,vp(le))},Xt.updateWith=function Am(A,Y,le,He){return He="function"==typeof He?He:e,null==A?A:gp(A,Y,vp(le),He)},Xt.values=vl,Xt.valuesIn=function yg(A){return null==A?[]:ae(A,wc(A))},Xt.without=uf,Xt.words=Gf,Xt.wrap=function dh(A,Y){return sh(vp(Y),A)},Xt.xor=O0,Xt.xorBy=T_,Xt.xorWith=wp,Xt.zip=I_,Xt.zipObject=function $u(A,Y){return Jc(A||[],Y||[],mi)},Xt.zipObjectDeep=function Ap(A,Y){return Jc(A||[],Y||[],Tl)},Xt.zipWith=w_,Xt.entries=xh,Xt.entriesIn=Mh,Xt.extend=sg,Xt.extendWith=Ku,$d(Xt,Xt),Xt.add=Rh,Xt.attempt=Qf,Xt.camelCase=Mg,Xt.capitalize=yu,Xt.ceil=Fh,Xt.clamp=function jf(A,Y,le){return le===e&&(le=Y,Y=e),le!==e&&(le=(le=il(le))==le?le:0),Y!==e&&(Y=(Y=il(Y))==Y?Y:0),gs(il(A),Y,le)},Xt.clone=function Z_(A){return Qa(A,w)},Xt.cloneDeep=function q_(A){return Qa(A,O|w)},Xt.cloneDeepWith=function eg(A,Y){return Qa(A,O|w,Y="function"==typeof Y?Y:e)},Xt.cloneWith=function J_(A,Y){return Qa(A,w,Y="function"==typeof Y?Y:e)},Xt.conformsTo=function Sf(A,Y){return null==Y||Vr(A,Y,Ws(Y))},Xt.deburr=Ph,Xt.defaultTo=function cc(A,Y){return null==A||A!=A?Y:A},Xt.divide=Bg,Xt.endsWith=function w0(A,Y,le){A=ja(A),Y=qs(Y);var He=A.length,kt=le=le===e?He:gs(ta(le),0,He);return(le-=Y.length)>=0&&A.slice(le,kt)==Y},Xt.eq=gl,Xt.escape=function Dg(A){return(A=ja(A))&&J.test(A)?A.replace(ge,ni):A},Xt.escapeRegExp=function Pg(A){return(A=ja(A))&&zt.test(A)?A.replace(ze,"\\$&"):A},Xt.every=function R_(A,Y,le){var He=Zo(A)?ha:Jd;return le&&ds(A,Y,le)&&(Y=e),He(A,go(Y,3))},Xt.find=B_,Xt.findIndex=ad,Xt.findKey=function dg(A,Y){return Za(A,go(Y,3),Vs)},Xt.findLast=ff,Xt.findLastIndex=D,Xt.findLastKey=function ug(A,Y){return Za(A,go(Y,3),Bc)},Xt.floor=Rm,Xt.forEach=$l,Xt.forEachRight=vf,Xt.forIn=function vh(A,Y){return null==A?A:gd(A,go(Y,3),wc)},Xt.forInRight=function pg(A,Y){return null==A?A:sl(A,go(Y,3),wc)},Xt.forOwn=function mg(A,Y){return A&&Vs(A,go(Y,3))},Xt.forOwnRight=function hg(A,Y){return A&&Bc(A,go(Y,3))},Xt.get=ol,Xt.gt=tg,Xt.gte=sd,Xt.has=function bh(A,Y){return null!=A&&jc(A,Y,dp)},Xt.hasIn=Ch,Xt.head=K,Xt.identity=Lr,Xt.includes=function S0(A,Y,le,He){A=xc(A)?A:vl(A),le=le&&!He?ta(le):0;var kt=A.length;return le<0&&(le=Ea(kt+le,0)),Fp(A)?le<=kt&&A.indexOf(Y,le)>-1:!!kt&&Pa(A,Y,le)>-1},Xt.indexOf=function te(A,Y,le){var He=null==A?0:A.length;if(!He)return-1;var kt=null==le?0:ta(le);return kt<0&&(kt=Ea(He+kt,0)),Pa(A,Y,kt)},Xt.inRange=function Uf(A,Y,le){return Y=dd(Y),le===e?(le=Y,Y=0):le=dd(le),function vd(A,Y,le){return A>=nr(Y,le)&&A<Ea(Y,le)}(A=il(A),Y,le)},Xt.invoke=vg,Xt.isArguments=_u,Xt.isArray=Zo,Xt.isArrayBuffer=Dm,Xt.isArrayLike=xc,Xt.isArrayLikeObject=us,Xt.isBoolean=function Tf(A){return!0===A||!1===A||ps(A)&&ys(A)==pt},Xt.isBuffer=jd,Xt.isDate=ng,Xt.isElement=function ig(A){return ps(A)&&1===A.nodeType&&!Ud(A)},Xt.isEmpty=function og(A){if(null==A)return!0;if(xc(A)&&(Zo(A)||"string"==typeof A||"function"==typeof A.splice||jd(A)||Vd(A)||_u(A)))return!A.length;var Y=Ls(A);if(Y==at||Y==wt)return!A.size;if(Bl(A))return!tn(A).length;for(var le in A)if(Xo.call(A,le))return!1;return!0},Xt.isEqual=function If(A,Y){return ll(A,Y)},Xt.isEqualWith=function wf(A,Y,le){var He=(le="function"==typeof le?le:e)?le(A,Y):e;return He===e?ll(A,Y,e,le):!!He},Xt.isError=Pm,Xt.isFinite=function Af(A){return"number"==typeof A&&jr(A)},Xt.isFunction=Mc,Xt.isInteger=Yu,Xt.isLength=cd,Xt.isMap=gu,Xt.isMatch=function Em(A,Y){return A===Y||Ol(A,Y,Ed(Y))},Xt.isMatchWith=function uh(A,Y,le){return le="function"==typeof le?le:e,Ol(A,Y,Ed(Y),le)},Xt.isNaN=function vu(A){return bu(A)&&A!=+A},Xt.isNative=function ag(A){if(Pp(A))throw new Eo("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return pa(A)},Xt.isNil=function Lp(A){return null==A},Xt.isNull=function Om(A){return null===A},Xt.isNumber=bu,Xt.isObject=Jr,Xt.isObjectLike=ps,Xt.isPlainObject=Ud,Xt.isRegExp=ld,Xt.isSafeInteger=function Rp(A){return Yu(A)&&A>=-Ge&&A<=Ge},Xt.isSet=Cu,Xt.isString=Fp,Xt.isSymbol=sc,Xt.isTypedArray=Vd,Xt.isUndefined=function ph(A){return A===e},Xt.isWeakMap=function kf(A){return ps(A)&&Ls(A)==xn},Xt.isWeakSet=function mh(A){return ps(A)&&"[object WeakSet]"==ys(A)},Xt.join=function Lt(A,Y){return null==A?"":ic.call(A,Y)},Xt.kebabCase=Eg,Xt.last=un,Xt.lastIndexOf=function _n(A,Y,le){var He=null==A?0:A.length;if(!He)return-1;var kt=He;return le!==e&&(kt=(kt=ta(le))<0?Ea(He+kt,0):nr(kt,He-1)),Y==Y?function Fs(Gn,ui,si){for(var Yi=si+1;Yi--;)if(Gn[Yi]===ui)return Yi;return Yi}(A,Y,kt):ns(A,Sr,kt,!0)},Xt.lowerCase=Og,Xt.lowerFirst=Sg,Xt.lt=Hu,Xt.lte=rg,Xt.max=function Fm(A){return A&&A.length?Qc(A,Lr,Ml):e},Xt.maxBy=function Bh(A,Y){return A&&A.length?Qc(A,go(Y,2),Ml):e},Xt.mean=function Ng(A){return ao(A,Lr)},Xt.meanBy=function Bm(A,Y){return ao(A,go(Y,2))},Xt.min=function Nm(A){return A&&A.length?Qc(A,Lr,di):e},Xt.minBy=function Nh(A,Y){return A&&A.length?Qc(A,go(Y,2),di):e},Xt.stubArray=jp,Xt.stubFalse=Up,Xt.stubObject=function Lh(){return{}},Xt.stubString=function Zf(){return""},Xt.stubTrue=function Fg(){return!0},Xt.multiply=t_,Xt.nth=function Cn(A,Y){return A&&A.length?cs(A,ta(Y)):e},Xt.noConflict=function tp(){return ia._===this&&(ia._=$e),this},Xt.noop=Wd,Xt.now=Cm,Xt.pad=function Tg(A,Y,le){A=ja(A);var He=(Y=ta(Y))?is(A):0;if(!Y||He>=Y)return A;var kt=(Y-He)/2;return Al(Nr(kt),le)+A+Al(Ka(kt),le)},Xt.padEnd=function Vf(A,Y,le){A=ja(A);var He=(Y=ta(Y))?is(A):0;return Y&&He<Y?A+Al(Y-He,le):A},Xt.padStart=function $f(A,Y,le){A=ja(A);var He=(Y=ta(Y))?is(A):0;return Y&&He<Y?Al(Y-He,le)+A:A},Xt.parseInt=function Eh(A,Y,le){return le||null==Y?Y=0:Y&&(Y=+Y),Qs(ja(A).replace(vt,""),Y||0)},Xt.random=function xg(A,Y,le){if(le&&"boolean"!=typeof le&&ds(A,Y,le)&&(Y=le=e),le===e&&("boolean"==typeof Y?(le=Y,Y=e):"boolean"==typeof A&&(le=A,A=e)),A===e&&Y===e?(A=0,Y=1):(A=dd(A),Y===e?(Y=A,A=0):Y=dd(Y)),A>Y){var He=A;A=Y,Y=He}if(le||A%1||Y%1){var kt=Xs();return nr(A+kt*(Y-A+cr("1e-"+((kt+"").length-1))),Y)}return Sl(A,Y)},Xt.reduce=function j_(A,Y,le){var He=Zo(A)?oa:Ke,kt=arguments.length<3;return He(A,go(Y,4),le,kt,vs)},Xt.reduceRight=function yf(A,Y,le){var He=Zo(A)?hr:Ke,kt=arguments.length<3;return He(A,go(Y,4),le,kt,fd)},Xt.repeat=function Ig(A,Y,le){return Y=(le?ds(A,Y,le):Y===e)?1:ta(Y),Tu(ja(A),Y)},Xt.replace=function Oh(){var A=arguments,Y=ja(A[0]);return A.length<3?Y:Y.replace(A[1],A[2])},Xt.result=function I0(A,Y,le){var He=-1,kt=(Y=qc(Y,A)).length;for(kt||(kt=1,A=e);++He<kt;){var ln=null==A?e:A[yc(Y[He])];ln===e&&(He=kt,ln=le),A=Mc(ln)?ln.call(A):ln}return A},Xt.round=jh,Xt.runInContext=Gn,Xt.sample=function V_(A){return(Zo(A)?st:em)(A)},Xt.size=function xf(A){if(null==A)return 0;if(xc(A))return Fp(A)?is(A):A.length;var Y=Ls(A);return Y==at||Y==wt?A.size:tn(A).length},Xt.snakeCase=wg,Xt.some=function W_(A,Y,le){var He=Zo(A)?fr:bd;return le&&ds(A,Y,le)&&(Y=e),He(A,go(Y,3))},Xt.sortedIndex=function Ni(A,Y){return pl(A,Y)},Xt.sortedIndexBy=function ro(A,Y,le){return Iu(A,Y,go(le,2))},Xt.sortedIndexOf=function oo(A,Y){var le=null==A?0:A.length;if(le){var He=pl(A,Y);if(He<le&&gl(A[He],Y))return He}return-1},Xt.sortedLastIndex=function _a(A,Y){return pl(A,Y,!0)},Xt.sortedLastIndexBy=function Na(A,Y,le){return Iu(A,Y,go(le,2),!0)},Xt.sortedLastIndexOf=function ga(A,Y){if(null!=A&&A.length){var He=pl(A,Y,!0)-1;if(gl(A[He],Y))return He}return-1},Xt.startCase=Qu,Xt.startsWith=function kg(A,Y,le){return A=ja(A),le=null==le?0:gs(ta(le),0,A.length),Y=qs(Y),A.slice(le,le+Y.length)==Y},Xt.subtract=n_,Xt.sum=function i_(A){return A&&A.length?Qt(A,Lr):0},Xt.sumBy=function jm(A,Y){return A&&A.length?Qt(A,go(Y,2)):0},Xt.template=function Lg(A,Y,le){var He=Xt.templateSettings;le&&ds(A,Y,le)&&(Y=e),A=ja(A),Y=Ku({},Y,He,Mp);var $n,Jn,kt=Ku({},Y.imports,He.imports,Mp),ln=Ws(kt),Ln=ae(kt,ln),xi=0,Mi=Y.interpolate||en,Oi="__p += '",Hi=tr((Y.escape||en).source+"|"+Mi.source+"|"+(Mi===Et?ki:en).source+"|"+(Y.evaluate||en).source+"|$","g"),mo="//# sourceURL="+(Xo.call(Y,"sourceURL")?(Y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_r+"]")+"\n";A.replace(Hi,function(Lo,va,Oa,lc,ms,Dc){return Oa||(Oa=lc),Oi+=A.slice(xi,Dc).replace(Hn,Ii),va&&($n=!0,Oi+="' +\n__e("+va+") +\n'"),ms&&(Jn=!0,Oi+="';\n"+ms+";\n__p += '"),Oa&&(Oi+="' +\n((__t = ("+Oa+")) == null ? '' : __t) +\n'"),xi=Dc+Lo.length,Lo}),Oi+="';\n";var ko=Xo.call(Y,"variable")&&Y.variable;if(ko){if(pi.test(ko))throw new Eo("Invalid `variable` option passed into `_.template`")}else Oi="with (obj) {\n"+Oi+"\n}\n";Oi=(Jn?Oi.replace(Wn,""):Oi).replace(rn,"$1").replace(Sn,"$1;"),Oi="function("+(ko||"obj")+") {\n"+(ko?"":"obj || (obj = {});\n")+"var __t, __p = ''"+($n?", __e = _.escape":"")+(Jn?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+Oi+"return __p\n}";var Ho=Qf(function(){return bi(ln,mo+"return "+Oi).apply(e,Ln)});if(Ho.source=Oi,Pm(Ho))throw Ho;return Ho},Xt.times=function Jf(A,Y){if((A=ta(A))<1||A>Ge)return[];var le=Ce,He=nr(A,Ce);Y=go(Y),A-=Ce;for(var kt=ti(He,Y);++le<A;)Y(le);return kt},Xt.toFinite=dd,Xt.toInteger=ta,Xt.toLength=fh,Xt.toLower=function Wf(A){return ja(A).toLowerCase()},Xt.toNumber=il,Xt.toSafeInteger=function Wc(A){return A?gs(ta(A),-Ge,Ge):0===A?A:0},Xt.toString=ja,Xt.toUpper=function zf(A){return ja(A).toUpperCase()},Xt.trim=function Yf(A,Y,le){if((A=ja(A))&&(le||Y===e))return qt(A);if(!A||!(Y=qs(Y)))return A;var He=Br(A),kt=Br(Y);return el(He,mt(He,kt),Vt(He,kt)+1).join("")},Xt.trimEnd=function Hf(A,Y,le){if((A=ja(A))&&(le||Y===e))return A.slice(0,yi(A)+1);if(!A||!(Y=qs(Y)))return A;var He=Br(A);return el(He,0,Vt(He,Br(Y))+1).join("")},Xt.trimStart=function Rg(A,Y,le){if((A=ja(A))&&(le||Y===e))return A.replace(vt,"");if(!A||!(Y=qs(Y)))return A;var He=Br(A);return el(He,mt(He,Br(Y))).join("")},Xt.truncate=function A0(A,Y){var le=30,He="...";if(Jr(Y)){var kt="separator"in Y?Y.separator:kt;le="length"in Y?ta(Y.length):le,He="omission"in Y?qs(Y.omission):He}var ln=(A=ja(A)).length;if(io(A)){var Ln=Br(A);ln=Ln.length}if(le>=ln)return A;var $n=le-is(He);if($n<1)return He;var Jn=Ln?el(Ln,0,$n).join(""):A.slice(0,$n);if(kt===e)return Jn+He;if(Ln&&($n+=Jn.length-$n),ld(kt)){if(A.slice($n).search(kt)){var xi,Mi=Jn;for(kt.global||(kt=tr(kt.source,ja(Co.exec(kt))+"g")),kt.lastIndex=0;xi=kt.exec(Mi);)var Oi=xi.index;Jn=Jn.slice(0,Oi===e?$n:Oi)}}else if(A.indexOf(qs(kt),$n)!=$n){var Hi=Jn.lastIndexOf(kt);Hi>-1&&(Jn=Jn.slice(0,Hi))}return Jn+He},Xt.unescape=function Kf(A){return(A=ja(A))&&q.test(A)?A.replace(ke,os):A},Xt.uniqueId=function e_(A){var Y=++Ac;return ja(A)+Y},Xt.upperCase=k0,Xt.upperFirst=Xu,Xt.each=$l,Xt.eachRight=vf,Xt.first=K,$d(Xt,function(){var A={};return Vs(Xt,function(Y,le){Xo.call(Xt.prototype,le)||(A[le]=Y)}),A}(),{chain:!1}),Xt.VERSION="4.17.21",Va(["bind","bindKey","curry","curryRight","partial","partialRight"],function(A){Xt[A].placeholder=Xt}),Va(["drop","take"],function(A,Y){zn.prototype[A]=function(le){le=le===e?1:Ea(ta(le),0);var He=this.__filtered__&&!Y?new zn(this):this.clone();return He.__filtered__?He.__takeCount__=nr(le,He.__takeCount__):He.__views__.push({size:nr(le,Ce),type:A+(He.__dir__<0?"Right":"")}),He},zn.prototype[A+"Right"]=function(le){return this.reverse()[A](le).reverse()}}),Va(["filter","map","takeWhile"],function(A,Y){var le=Y+1,He=1==le||3==le;zn.prototype[A]=function(kt){var ln=this.clone();return ln.__iteratees__.push({iteratee:go(kt,3),type:le}),ln.__filtered__=ln.__filtered__||He,ln}}),Va(["head","last"],function(A,Y){var le="take"+(Y?"Right":"");zn.prototype[A]=function(){return this[le](1).value()[0]}}),Va(["initial","tail"],function(A,Y){var le="drop"+(Y?"":"Right");zn.prototype[A]=function(){return this.__filtered__?new zn(this):this[le](1)}}),zn.prototype.compact=function(){return this.filter(Lr)},zn.prototype.find=function(A){return this.filter(A).head()},zn.prototype.findLast=function(A){return this.reverse().find(A)},zn.prototype.invokeMap=sa(function(A,Y){return"function"==typeof A?new zn(this):this.map(function(le){return Zc(le,A,Y)})}),zn.prototype.reject=function(A){return this.filter(xm(go(A)))},zn.prototype.slice=function(A,Y){A=ta(A);var le=this;return le.__filtered__&&(A>0||Y<0)?new zn(le):(A<0?le=le.takeRight(-A):A&&(le=le.drop(A)),Y!==e&&(le=(Y=ta(Y))<0?le.dropRight(-Y):le.take(Y-A)),le)},zn.prototype.takeRightWhile=function(A){return this.reverse().takeWhile(A).reverse()},zn.prototype.toArray=function(){return this.take(Ce)},Vs(zn.prototype,function(A,Y){var le=/^(?:filter|find|map|reject)|While$/.test(Y),He=/^(?:head|last)$/.test(Y),kt=Xt[He?"take"+("last"==Y?"Right":""):Y],ln=He||/^find/.test(Y);kt&&(Xt.prototype[Y]=function(){var Ln=this.__wrapped__,$n=He?[1]:arguments,Jn=Ln instanceof zn,xi=$n[0],Mi=Jn||Zo(Ln),Oi=function(va){var Oa=kt.apply(Xt,ya([va],$n));return He&&Hi?Oa[0]:Oa};Mi&&le&&"function"==typeof xi&&1!=xi.length&&(Jn=Mi=!1);var Hi=this.__chain__,ko=ln&&!Hi,Ho=Jn&&!this.__actions__.length;if(!ln&&Mi){Ln=Ho?Ln:new zn(this);var Lo=A.apply(Ln,$n);return Lo.__actions__.push({func:gm,args:[Oi],thisArg:e}),new Vn(Lo,Hi)}return ko&&Ho?A.apply(this,$n):(Lo=this.thru(Oi),ko?He?Lo.value()[0]:Lo.value():Lo)})}),Va(["pop","push","shift","sort","splice","unshift"],function(A){var Y=as[A],le=/^(?:push|sort|unshift)$/.test(A)?"tap":"thru",He=/^(?:pop|shift)$/.test(A);Xt.prototype[A]=function(){var kt=arguments;if(He&&!this.__chain__){var ln=this.value();return Y.apply(Zo(ln)?ln:[],kt)}return this[le](function(Ln){return Y.apply(Zo(Ln)?Ln:[],kt)})}}),Vs(zn.prototype,function(A,Y){var le=Xt[Y];if(le){var He=le.name+"";Xo.call(oc,He)||(oc[He]=[]),oc[He].push({name:Y,func:le})}}),oc[su(e,$).name]=[{name:"wrapper",func:e}],zn.prototype.clone=function Fi(){var A=new zn(this.__wrapped__);return A.__actions__=Ms(this.__actions__),A.__dir__=this.__dir__,A.__filtered__=this.__filtered__,A.__iteratees__=Ms(this.__iteratees__),A.__takeCount__=this.__takeCount__,A.__views__=Ms(this.__views__),A},zn.prototype.reverse=function uo(){if(this.__filtered__){var A=new zn(this);A.__dir__=-1,A.__filtered__=!0}else(A=this.clone()).__dir__*=-1;return A},zn.prototype.value=function ua(){var A=this.__wrapped__.value(),Y=this.__dir__,le=Zo(A),He=Y<0,kt=le?A.length:0,ln=function rm(A,Y,le){for(var He=-1,kt=le.length;++He<kt;){var ln=le[He],Ln=ln.size;switch(ln.type){case"drop":A+=Ln;break;case"dropRight":Y-=Ln;break;case"take":Y=nr(Y,A+Ln);break;case"takeRight":A=Ea(A,Y-Ln)}}return{start:A,end:Y}}(0,kt,this.__views__),Ln=ln.start,$n=ln.end,Jn=$n-Ln,xi=He?$n:Ln-1,Mi=this.__iteratees__,Oi=Mi.length,Hi=0,mo=nr(Jn,this.__takeCount__);if(!le||!He&&kt==Jn&&mo==Jn)return nu(A,this.__actions__);var ko=[];e:for(;Jn--&&Hi<mo;){for(var Ho=-1,Lo=A[xi+=Y];++Ho<Oi;){var va=Mi[Ho],lc=va.type,ms=(0,va.iteratee)(Lo);if(2==lc)Lo=ms;else if(!ms){if(1==lc)continue e;break e}}ko[Hi++]=Lo}return ko},Xt.prototype.at=pf,Xt.prototype.chain=function mf(){return _m(this)},Xt.prototype.commit=function hf(){return new Vn(this.value(),this.__chain__)},Xt.prototype.next=function vm(){this.__values__===e&&(this.__values__=hh(this.value()));var A=this.__index__>=this.__values__.length;return{done:A,value:A?e:this.__values__[this.__index__++]}},Xt.prototype.plant=function k_(A){for(var Y,le=this;le instanceof An;){var He=pm(le);He.__index__=0,He.__values__=e,Y?kt.__wrapped__=He:Y=He;var kt=He;le=le.__wrapped__}return kt.__wrapped__=A,Y},Xt.prototype.reverse=function ih(){var A=this.__wrapped__;if(A instanceof zn){var Y=A;return this.__actions__.length&&(Y=new zn(this)),(Y=Y.reverse()).__actions__.push({func:gm,args:[Ci],thisArg:e}),new Vn(Y,this.__chain__)}return this.thru(Ci)},Xt.prototype.toJSON=Xt.prototype.valueOf=Xt.prototype.value=function kp(){return nu(this.__wrapped__,this.__actions__)},Xt.prototype.first=Xt.prototype.head,Ri&&(Xt.prototype[Ri]=function nh(){return this}),Xt}();ia._=Bs,(n=function(){return Bs}.call(Q,t,Q,Ee))!==e&&(Ee.exports=n)}.call(this)},27088:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(i){return/^nm$/i.test(i)},meridiem:function(i,d,a){return i<12?a?"vm":"VM":a?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(i){return i+(1===i||8===i||i>=20?"ste":"de")},week:{dow:1,doy:4}})}(t(15439))},52502:function(Ee,Q,t){!function(n){"use strict";var e=function(h){return 0===h?0:1===h?1:2===h?2:h%100>=3&&h%100<=10?3:h%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},d=function(h){return function(l,m,x,O){var L=e(l),w=i[h][e(l)];return 2===L&&(w=w[m?0:1]),w.replace(/%d/i,l)}},a=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];n.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(h){return"\u0645"===h},meridiem:function(h,l,m){return h<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:d("s"),ss:d("s"),m:d("m"),mm:d("m"),h:d("h"),hh:d("h"),d:d("d"),dd:d("d"),M:d("M"),MM:d("M"),y:d("y"),yy:d("y")},postformat:function(h){return h.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(t(15439))},30128:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(t(15439))},84519:function(Ee,Q,t){!function(n){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(l){return 0===l?0:1===l?1:2===l?2:l%100>=3&&l%100<=10?3:l%100>=11?4:5},d={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},a=function(l){return function(m,x,O,L){var w=i(m),B=d[l][i(m)];return 2===w&&(B=B[x?0:1]),B.replace(/%d/i,m)}},u=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];n.defineLocale("ar-ly",{months:u,monthsShort:u,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(l){return"\u0645"===l},meridiem:function(l,m,x){return l<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/\d/g,function(m){return e[m]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(t(15439))},65443:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(t(15439))},14523:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};n.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(a){return"\u0645"===a},meridiem:function(a,u,h){return a<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(a){return a.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(u){return i[u]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(u){return i[u]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(t(15439))},17642:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};n.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(a){return"\u0645"===a},meridiem:function(a,u,h){return a<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(a){return a.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(u){return i[u]}).replace(/\u060c/g,",")},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(t(15439))},68592:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(t(15439))},17038:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},d=function(m){return 0===m?0:1===m?1:2===m?2:m%100>=3&&m%100<=10?3:m%100>=11?4:5},a={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},u=function(m){return function(x,O,L,w){var B=d(x),_=a[m][d(x)];return 2===B&&(_=_[O?0:1]),_.replace(/%d/i,x)}},h=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];n.defineLocale("ar",{months:h,monthsShort:h,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(m){return"\u0645"===m},meridiem:function(m,x,O){return m<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:u("s"),ss:u("s"),m:u("m"),mm:u("m"),h:u("h"),hh:u("h"),d:u("d"),dd:u("d"),M:u("M"),MM:u("M"),y:u("y"),yy:u("y")},preparse:function(m){return m.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(x){return i[x]}).replace(/\u060c/g,",")},postformat:function(m){return m.replace(/\d/g,function(x){return e[x]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(t(15439))},51213:function(Ee,Q,t){!function(n){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(d){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(d)},meridiem:function(d,a,u){return d<4?"gec\u0259":d<12?"s\u0259h\u0259r":d<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(d){if(0===d)return d+"-\u0131nc\u0131";var a=d%10;return d+(e[a]||e[d%100-a]||e[d>=100?100:null])},week:{dow:1,doy:7}})}(t(15439))},69191:function(Ee,Q,t){!function(n){"use strict";function i(a,u,h){return"m"===h?u?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===h?u?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":a+" "+function e(a,u){var h=a.split("_");return u%10==1&&u%100!=11?h[0]:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?h[1]:h[2]}({ss:u?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:u?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:u?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[h],+a)}n.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:i,mm:i,h:i,hh:i,d:"\u0434\u0437\u0435\u043d\u044c",dd:i,M:"\u043c\u0435\u0441\u044f\u0446",MM:i,y:"\u0433\u043e\u0434",yy:i},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(a){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(a)},meridiem:function(a,u,h){return a<4?"\u043d\u043e\u0447\u044b":a<12?"\u0440\u0430\u043d\u0456\u0446\u044b":a<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(a,u){switch(u){case"M":case"d":case"DDD":case"w":case"W":return a%10!=2&&a%10!=3||a%100==12||a%100==13?a+"-\u044b":a+"-\u0456";case"D":return a+"-\u0433\u0430";default:return a}},week:{dow:1,doy:7}})}(t(15439))},90322:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(i){var d=i%10,a=i%100;return 0===i?i+"-\u0435\u0432":0===a?i+"-\u0435\u043d":a>10&&a<20?i+"-\u0442\u0438":1===d?i+"-\u0432\u0438":2===d?i+"-\u0440\u0438":7===d||8===d?i+"-\u043c\u0438":i+"-\u0442\u0438"},week:{dow:1,doy:7}})}(t(15439))},28042:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(t(15439))},65903:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};n.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(a){return a.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(a,u){return 12===a&&(a=0),"\u09b0\u09be\u09a4"===u?a<4?a:a+12:"\u09ad\u09cb\u09b0"===u||"\u09b8\u0995\u09be\u09b2"===u?a:"\u09a6\u09c1\u09aa\u09c1\u09b0"===u?a>=3?a:a+12:"\u09ac\u09bf\u0995\u09be\u09b2"===u||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===u?a+12:void 0},meridiem:function(a,u,h){return a<4?"\u09b0\u09be\u09a4":a<6?"\u09ad\u09cb\u09b0":a<12?"\u09b8\u0995\u09be\u09b2":a<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":a<18?"\u09ac\u09bf\u0995\u09be\u09b2":a<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(t(15439))},59620:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};n.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(a){return a.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(a,u){return 12===a&&(a=0),"\u09b0\u09be\u09a4"===u&&a>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===u&&a<5||"\u09ac\u09bf\u0995\u09be\u09b2"===u?a+12:a},meridiem:function(a,u,h){return a<4?"\u09b0\u09be\u09a4":a<10?"\u09b8\u0995\u09be\u09b2":a<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":a<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(t(15439))},69645:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};n.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(a){return a.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(a,u){return 12===a&&(a=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===u&&a>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===u&&a<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===u?a+12:a},meridiem:function(a,u,h){return a<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":a<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":a<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":a<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(t(15439))},45020:function(Ee,Q,t){!function(n){"use strict";function e(_,y,$){return _+" "+function a(_,y){return 2===y?function u(_){var y={m:"v",b:"v",d:"z"};return void 0===y[_.charAt(0)]?_:y[_.charAt(0)]+_.substring(1)}(_):_}({mm:"munutenn",MM:"miz",dd:"devezh"}[$],_)}function d(_){return _>9?d(_%10):_}var h=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],l=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,w=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];n.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:w,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:w,monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function i(_){switch(d(_)){case 1:case 3:case 4:case 5:case 9:return _+" bloaz";default:return _+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(_){return _+(1===_?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(_){return"g.m."===_},meridiem:function(_,y,$){return _<12?"a.m.":"g.m."}})}(t(15439))},64792:function(Ee,Q,t){!function(n){"use strict";function i(a,u,h){var l=a+" ";switch(h){case"ss":return l+(1===a?"sekunda":2===a||3===a||4===a?"sekunde":"sekundi");case"mm":return l+(1===a?"minuta":2===a||3===a||4===a?"minute":"minuta");case"h":return"jedan sat";case"hh":return l+(1===a?"sat":2===a||3===a||4===a?"sata":"sati");case"dd":return l+(1===a?"dan":"dana");case"MM":return l+(1===a?"mjesec":2===a||3===a||4===a?"mjeseca":"mjeseci");case"yy":return l+(1===a?"godina":2===a||3===a||4===a?"godine":"godina")}}n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:function e(a,u,h,l){if("m"===h)return u?"jedna minuta":l?"jednu minutu":"jedne minute"},mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(t(15439))},47980:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(i,d){var a=1===i?"r":2===i?"n":3===i?"r":4===i?"t":"\xe8";return("w"===d||"W"===d)&&(a="a"),i+a},week:{dow:1,doy:4}})}(t(15439))},47322:function(Ee,Q,t){!function(n){"use strict";var e={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),d=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],a=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function u(m){return m>1&&m<5&&1!=~~(m/10)}function h(m,x,O,L){var w=m+" ";switch(O){case"s":return x||L?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return x||L?w+(u(m)?"sekundy":"sekund"):w+"sekundami";case"m":return x?"minuta":L?"minutu":"minutou";case"mm":return x||L?w+(u(m)?"minuty":"minut"):w+"minutami";case"h":return x?"hodina":L?"hodinu":"hodinou";case"hh":return x||L?w+(u(m)?"hodiny":"hodin"):w+"hodinami";case"d":return x||L?"den":"dnem";case"dd":return x||L?w+(u(m)?"dny":"dn\xed"):w+"dny";case"M":return x||L?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return x||L?w+(u(m)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):w+"m\u011bs\xedci";case"y":return x||L?"rok":"rokem";case"yy":return x||L?w+(u(m)?"roky":"let"):w+"lety"}}n.defineLocale("cs",{months:e,monthsShort:i,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:h,ss:h,m:h,mm:h,h,hh:h,d:h,dd:h,M:h,MM:h,y:h,yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},90365:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(i){return i+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(i)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(i)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(t(15439))},32092:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(i){var a="";return i>20?a=40===i||50===i||60===i||80===i||100===i?"fed":"ain":i>0&&(a=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][i]),i+a},week:{dow:1,doy:4}})}(t(15439))},77387:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},29459:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){var l={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[d+" Tage",d+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[d+" Monate",d+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[d+" Jahre",d+" Jahren"]};return a?l[u][0]:l[u][1]}n.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},73694:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){var l={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[d+" Tage",d+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[d+" Monate",d+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[d+" Jahre",d+" Jahren"]};return a?l[u][0]:l[u][1]}n.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},54307:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){var l={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[d+" Tage",d+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[d+" Monate",d+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[d+" Jahre",d+" Jahren"]};return a?l[u][0]:l[u][1]}n.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},39659:function(Ee,Q,t){!function(n){"use strict";var e=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],i=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];n.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(a){return"\u0789\u078a"===a},meridiem:function(a,u,h){return a<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(a){return a.replace(/\u060c/g,",")},postformat:function(a){return a.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(t(15439))},3460:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(d,a){return d?"string"==typeof a&&/D/.test(a.substring(0,a.indexOf("MMMM")))?this._monthsGenitiveEl[d.month()]:this._monthsNominativeEl[d.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(d,a,u){return d>11?u?"\u03bc\u03bc":"\u039c\u039c":u?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(d){return"\u03bc"===(d+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(d,a){var u=this._calendarEl[d],h=a&&a.hours();return function e(d){return typeof Function<"u"&&d instanceof Function||"[object Function]"===Object.prototype.toString.call(d)}(u)&&(u=u.apply(a)),u.replace("{}",h%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(t(15439))},94369:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:0,doy:4}})}(t(15439))},60530:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")}})}(t(15439))},9998:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:1,doy:4}})}(t(15439))},13391:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:1,doy:4}})}(t(15439))},75414:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")}})}(t(15439))},19615:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:0,doy:6}})}(t(15439))},21248:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:1,doy:4}})}(t(15439))},13767:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:1,doy:4}})}(t(15439))},84530:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(i){return"p"===i.charAt(0).toLowerCase()},meridiem:function(i,d,a){return i>11?a?"p.t.m.":"P.T.M.":a?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(t(15439))},18944:function(Ee,Q,t){!function(n){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),d=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(h,l){return h?/-MMM-/.test(l)?i[h.month()]:e[h.month()]:e},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t(15439))},29116:function(Ee,Q,t){!function(n){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),d=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(h,l){return h?/-MMM-/.test(l)?i[h.month()]:e[h.month()]:e},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(t(15439))},83609:function(Ee,Q,t){!function(n){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),d=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(h,l){return h?/-MMM-/.test(l)?i[h.month()]:e[h.month()]:e},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(t(15439))},86866:function(Ee,Q,t){!function(n){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),d=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(h,l){return h?/-MMM-/.test(l)?i[h.month()]:e[h.month()]:e},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(t(15439))},96725:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){var l={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[d+"sekundi",d+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[d+" minuti",d+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[d+" tunni",d+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[d+" kuu",d+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[d+" aasta",d+" aastat"]};return a?l[u][2]?l[u][2]:l[u][1]:h?l[u][0]:l[u][1]}n.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},67931:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(t(15439))},56417:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};n.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(a){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(a)},meridiem:function(a,u,h){return a<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(a){return a.replace(/[\u06f0-\u06f9]/g,function(u){return i[u]}).replace(/\u060c/g,",")},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(t(15439))},20944:function(Ee,Q,t){!function(n){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function d(h,l,m,x){var O="";switch(m){case"s":return x?"muutaman sekunnin":"muutama sekunti";case"ss":O=x?"sekunnin":"sekuntia";break;case"m":return x?"minuutin":"minuutti";case"mm":O=x?"minuutin":"minuuttia";break;case"h":return x?"tunnin":"tunti";case"hh":O=x?"tunnin":"tuntia";break;case"d":return x?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":O=x?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return x?"kuukauden":"kuukausi";case"MM":O=x?"kuukauden":"kuukautta";break;case"y":return x?"vuoden":"vuosi";case"yy":O=x?"vuoden":"vuotta"}return function a(h,l){return h<10?l?i[h]:e[h]:h}(h,x)+" "+O}n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},61766:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(i){return i},week:{dow:1,doy:4}})}(t(15439))},95867:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},16848:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(i,d){switch(d){default:case"M":case"Q":case"D":case"DDD":case"d":return i+(1===i?"er":"e");case"w":case"W":return i+(1===i?"re":"e")}}})}(t(15439))},77773:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(i,d){switch(d){default:case"M":case"Q":case"D":case"DDD":case"d":return i+(1===i?"er":"e");case"w":case"W":return i+(1===i?"re":"e")}},week:{dow:1,doy:4}})}(t(15439))},1636:function(Ee,Q,t){!function(n){"use strict";var d=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,a=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];n.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:d,monthsShortRegex:d,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(h,l){switch(l){case"D":return h+(1===h?"er":"");default:case"M":case"Q":case"DDD":case"d":return h+(1===h?"er":"e");case"w":case"W":return h+(1===h?"re":"e")}},week:{dow:1,doy:4}})}(t(15439))},14940:function(Ee,Q,t){!function(n){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(a,u){return a?/-MMM-/.test(u)?i[a.month()]:e[a.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(a){return a+(1===a||8===a||a>=20?"ste":"de")},week:{dow:1,doy:4}})}(t(15439))},91402:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(l){return l+(1===l?"d":l%10==2?"na":"mh")},week:{dow:1,doy:4}})}(t(15439))},46924:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(l){return l+(1===l?"d":l%10==2?"na":"mh")},week:{dow:1,doy:4}})}(t(15439))},16398:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(i){return 0===i.indexOf("un")?"n"+i:"en "+i},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t(15439))},72457:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){var l={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[d+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",d+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[d+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",d+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[d+" \u0935\u0930\u093e\u0902\u0928\u0940",d+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[d+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",d+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[d+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",d+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[d+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",d+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return h?l[u][0]:l[u][1]}n.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(d,a){return"D"===a?d+"\u0935\u0947\u0930":d},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(d,a){return 12===d&&(d=0),"\u0930\u093e\u0924\u0940"===a?d<4?d:d+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===a?d:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===a?d>12?d:d+12:"\u0938\u093e\u0902\u091c\u0947"===a?d+12:void 0},meridiem:function(d,a,u){return d<4?"\u0930\u093e\u0924\u0940":d<12?"\u0938\u0915\u093e\u0933\u0940\u0902":d<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":d<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(t(15439))},52545:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){var l={s:["thoddea sekondamni","thodde sekond"],ss:[d+" sekondamni",d+" sekond"],m:["eka mintan","ek minut"],mm:[d+" mintamni",d+" mintam"],h:["eka voran","ek vor"],hh:[d+" voramni",d+" voram"],d:["eka disan","ek dis"],dd:[d+" disamni",d+" dis"],M:["eka mhoinean","ek mhoino"],MM:[d+" mhoineamni",d+" mhoine"],y:["eka vorsan","ek voros"],yy:[d+" vorsamni",d+" vorsam"]};return h?l[u][0]:l[u][1]}n.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(d,a){return"D"===a?d+"er":d},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(d,a){return 12===d&&(d=0),"rati"===a?d<4?d:d+12:"sokallim"===a?d:"donparam"===a?d>12?d:d+12:"sanje"===a?d+12:void 0},meridiem:function(d,a,u){return d<4?"rati":d<12?"sokallim":d<16?"donparam":d<20?"sanje":"rati"}})}(t(15439))},42641:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};n.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(a){return a.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(a,u){return 12===a&&(a=0),"\u0ab0\u0abe\u0aa4"===u?a<4?a:a+12:"\u0ab8\u0ab5\u0abe\u0ab0"===u?a:"\u0aac\u0aaa\u0acb\u0ab0"===u?a>=10?a:a+12:"\u0ab8\u0abe\u0a82\u0a9c"===u?a+12:void 0},meridiem:function(a,u,h){return a<4?"\u0ab0\u0abe\u0aa4":a<10?"\u0ab8\u0ab5\u0abe\u0ab0":a<17?"\u0aac\u0aaa\u0acb\u0ab0":a<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(t(15439))},7536:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(i){return 2===i?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":i+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(i){return 2===i?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":i+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(i){return 2===i?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":i+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(i){return 2===i?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":i%10==0&&10!==i?i+" \u05e9\u05e0\u05d4":i+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(i){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(i)},meridiem:function(i,d,a){return i<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":i<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":i<12?a?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":i<18?a?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(t(15439))},96335:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},d=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];n.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:d,longMonthsParse:d,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(h){return h.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(l){return i[l]})},postformat:function(h){return h.replace(/\d/g,function(l){return e[l]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(h,l){return 12===h&&(h=0),"\u0930\u093e\u0924"===l?h<4?h:h+12:"\u0938\u0941\u092c\u0939"===l?h:"\u0926\u094b\u092a\u0939\u0930"===l?h>=10?h:h+12:"\u0936\u093e\u092e"===l?h+12:void 0},meridiem:function(h,l,m){return h<4?"\u0930\u093e\u0924":h<10?"\u0938\u0941\u092c\u0939":h<17?"\u0926\u094b\u092a\u0939\u0930":h<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(t(15439))},7458:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u){var h=d+" ";switch(u){case"ss":return h+(1===d?"sekunda":2===d||3===d||4===d?"sekunde":"sekundi");case"m":return a?"jedna minuta":"jedne minute";case"mm":return h+(1===d?"minuta":2===d||3===d||4===d?"minute":"minuta");case"h":return a?"jedan sat":"jednog sata";case"hh":return h+(1===d?"sat":2===d||3===d||4===d?"sata":"sati");case"dd":return h+(1===d?"dan":"dana");case"MM":return h+(1===d?"mjesec":2===d||3===d||4===d?"mjeseca":"mjeseci");case"yy":return h+(1===d?"godina":2===d||3===d||4===d?"godine":"godina")}}n.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(t(15439))},56540:function(Ee,Q,t){!function(n){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(u,h,l,m){var x=u;switch(l){case"s":return m||h?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return x+(m||h)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(m||h?" perc":" perce");case"mm":return x+(m||h?" perc":" perce");case"h":return"egy"+(m||h?" \xf3ra":" \xf3r\xe1ja");case"hh":return x+(m||h?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(m||h?" nap":" napja");case"dd":return x+(m||h?" nap":" napja");case"M":return"egy"+(m||h?" h\xf3nap":" h\xf3napja");case"MM":return x+(m||h?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(m||h?" \xe9v":" \xe9ve");case"yy":return x+(m||h?" \xe9v":" \xe9ve")}return""}function d(u){return(u?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}n.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(u){return"u"===u.charAt(1).toLowerCase()},meridiem:function(u,h,l){return u<12?!0===l?"de":"DE":!0===l?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return d.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return d.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},65283:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(i){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(i)},meridiem:function(i){return i<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":i<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":i<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(i,d){switch(d){case"DDD":case"w":case"W":case"DDDo":return 1===i?i+"-\u056b\u0576":i+"-\u0580\u0564";default:return i}},week:{dow:1,doy:7}})}(t(15439))},98780:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(i,d){return 12===i&&(i=0),"pagi"===d?i:"siang"===d?i>=11?i:i+12:"sore"===d||"malam"===d?i+12:void 0},meridiem:function(i,d,a){return i<11?"pagi":i<15?"siang":i<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(t(15439))},14205:function(Ee,Q,t){!function(n){"use strict";function e(a){return a%100==11||a%10!=1}function i(a,u,h,l){var m=a+" ";switch(h){case"s":return u||l?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(a)?m+(u||l?"sek\xfandur":"sek\xfandum"):m+"sek\xfanda";case"m":return u?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(a)?m+(u||l?"m\xedn\xfatur":"m\xedn\xfatum"):u?m+"m\xedn\xfata":m+"m\xedn\xfatu";case"hh":return e(a)?m+(u||l?"klukkustundir":"klukkustundum"):m+"klukkustund";case"d":return u?"dagur":l?"dag":"degi";case"dd":return e(a)?u?m+"dagar":m+(l?"daga":"d\xf6gum"):u?m+"dagur":m+(l?"dag":"degi");case"M":return u?"m\xe1nu\xf0ur":l?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(a)?u?m+"m\xe1nu\xf0ir":m+(l?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):u?m+"m\xe1nu\xf0ur":m+(l?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return u||l?"\xe1r":"\xe1ri";case"yy":return e(a)?m+(u||l?"\xe1r":"\xe1rum"):m+(u||l?"\xe1r":"\xe1ri")}}n.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},29985:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(i){return(/^[0-9].+$/.test(i)?"tra":"in")+" "+i},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t(15439))},34211:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t(15439))},31003:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(i,d){return"\u5143"===d[1]?1:parseInt(d[1]||i,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(i){return"\u5348\u5f8c"===i},meridiem:function(i,d,a){return i<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(i){return i.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(i){return this.week()!==i.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(i,d){switch(d){case"y":return 1===i?"\u5143\u5e74":i+"\u5e74";case"d":case"D":case"DDD":return i+"\u65e5";default:return i}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(t(15439))},60420:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(i,d){return 12===i&&(i=0),"enjing"===d?i:"siyang"===d?i>=11?i:i+12:"sonten"===d||"ndalu"===d?i+12:void 0},meridiem:function(i,d,a){return i<11?"enjing":i<15?"siyang":i<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(t(15439))},40851:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(i){return i.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(d,a,u){return"\u10d8"===u?a+"\u10e8\u10d8":a+u+"\u10e8\u10d8"})},past:function(i){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(i)?i.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(i)?i.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):i},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(i){return 0===i?i:1===i?i+"-\u10da\u10d8":i<20||i<=100&&i%20==0||i%100==0?"\u10db\u10d4-"+i:i+"-\u10d4"},week:{dow:1,doy:7}})}(t(15439))},16074:function(Ee,Q,t){!function(n){"use strict";var e={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};n.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(d){return d+(e[d]||e[d%10]||e[d>=100?100:null])},week:{dow:1,doy:7}})}(t(15439))},53343:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};n.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(a){return"\u179b\u17d2\u1784\u17b6\u1785"===a},meridiem:function(a,u,h){return a<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(a){return a.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},week:{dow:1,doy:4}})}(t(15439))},44799:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};n.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(a){return a.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(a,u){return 12===a&&(a=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===u?a<4?a:a+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===u?a:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===u?a>=10?a:a+12:"\u0cb8\u0c82\u0c9c\u0cc6"===u?a+12:void 0},meridiem:function(a,u,h){return a<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":a<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":a<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":a<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(a){return a+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(t(15439))},13549:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(i,d){switch(d){case"d":case"D":case"DDD":return i+"\uc77c";case"M":return i+"\uc6d4";case"w":case"W":return i+"\uc8fc";default:return i}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(i){return"\uc624\ud6c4"===i},meridiem:function(i,d,a){return i<12?"\uc624\uc804":"\uc624\ud6c4"}})}(t(15439))},63775:function(Ee,Q,t){!function(n){"use strict";function e(a,u,h,l){var m={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[a+" san\xeeye",a+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[a+" deq\xeeqe",a+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[a+" saet",a+" saetan"],d:["rojek","rojek\xea"],dd:[a+" roj",a+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[a+" hefte",a+" hefteyan"],M:["mehek","mehek\xea"],MM:[a+" meh",a+" mehan"],y:["salek","salek\xea"],yy:[a+" sal",a+" salan"]};return u?m[h][0]:m[h][1]}n.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(a,u,h){return a<12?h?"bn":"BN":h?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,w:e,ww:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(a,u){var h=u.toLowerCase();return h.includes("w")||h.includes("m")?a+".":a+function i(a){var u=(a=""+a).substring(a.length-1),h=a.length>1?a.substring(a.length-2):"";return 12==h||13==h||"2"!=u&&"3"!=u&&"50"!=h&&"70"!=u&&"80"!=u?"\xea":"y\xea"}(a)},week:{dow:1,doy:4}})}(t(15439))},91037:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},d=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];n.defineLocale("ku",{months:d,monthsShort:d,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(u){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(u)},meridiem:function(u,h,l){return u<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(u){return u.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(h){return i[h]}).replace(/\u060c/g,",")},postformat:function(u){return u.replace(/\d/g,function(h){return e[h]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(t(15439))},93125:function(Ee,Q,t){!function(n){"use strict";var e={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};n.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(d){return d+(e[d]||e[d%10]||e[d>=100?100:null])},week:{dow:1,doy:7}})}(t(15439))},69586:function(Ee,Q,t){!function(n){"use strict";function e(h,l,m,x){var O={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return l?O[m][0]:O[m][1]}function a(h){if(h=parseInt(h,10),isNaN(h))return!1;if(h<0)return!0;if(h<10)return 4<=h&&h<=7;if(h<100){var l=h%10;return a(0===l?h/10:l)}if(h<1e4){for(;h>=10;)h/=10;return a(h)}return a(h/=1e3)}n.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function i(h){return a(h.substr(0,h.indexOf(" ")))?"a "+h:"an "+h},past:function d(h){return a(h.substr(0,h.indexOf(" ")))?"viru "+h:"virun "+h},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},32349:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(i){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===i},meridiem:function(i,d,a){return i<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(i){return"\u0e97\u0eb5\u0ec8"+i}})}(t(15439))},92400:function(Ee,Q,t){!function(n){"use strict";var e={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function d(m,x,O,L){return x?u(O)[0]:L?u(O)[1]:u(O)[2]}function a(m){return m%10==0||m>10&&m<20}function u(m){return e[m].split("_")}function h(m,x,O,L){var w=m+" ";return 1===m?w+d(0,x,O[0],L):x?w+(a(m)?u(O)[1]:u(O)[0]):L?w+u(O)[1]:w+(a(m)?u(O)[1]:u(O)[2])}n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function i(m,x,O,L){return x?"kelios sekund\u0117s":L?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:h,m:d,mm:h,h:d,hh:h,d,dd:h,M:d,MM:h,y:d,yy:h},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(m){return m+"-oji"},week:{dow:1,doy:4}})}(t(15439))},39991:function(Ee,Q,t){!function(n){"use strict";var e={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function i(l,m,x){return x?m%10==1&&m%100!=11?l[2]:l[3]:m%10==1&&m%100!=11?l[0]:l[1]}function d(l,m,x){return l+" "+i(e[x],l,m)}function a(l,m,x){return i(e[x],l,m)}n.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function u(l,m){return m?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:d,m:a,mm:d,h:a,hh:d,d:a,dd:d,M:a,MM:d,y:a,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},28477:function(Ee,Q,t){!function(n){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(d,a){return 1===d?a[0]:d>=2&&d<=4?a[1]:a[2]},translate:function(d,a,u){var h=e.words[u];return 1===u.length?a?h[0]:h[1]:d+" "+e.correctGrammaticalCase(d,h)}};n.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(t(15439))},55118:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t(15439))},15943:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(i){var d=i%10,a=i%100;return 0===i?i+"-\u0435\u0432":0===a?i+"-\u0435\u043d":a>10&&a<20?i+"-\u0442\u0438":1===d?i+"-\u0432\u0438":2===d?i+"-\u0440\u0438":7===d||8===d?i+"-\u043c\u0438":i+"-\u0442\u0438"},week:{dow:1,doy:7}})}(t(15439))},13849:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(i,d){return 12===i&&(i=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===d&&i>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===d||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===d?i+12:i},meridiem:function(i,d,a){return i<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":i<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":i<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":i<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(t(15439))},31977:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){switch(u){case"s":return a?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return d+(a?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return d+(a?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return d+(a?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return d+(a?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return d+(a?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return d+(a?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return d}}n.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(d){return"\u04ae\u0425"===d},meridiem:function(d,a,u){return d<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(d,a){switch(a){case"d":case"D":case"DDD":return d+" \u04e9\u0434\u04e9\u0440";default:return d}}})}(t(15439))},66184:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function d(u,h,l,m){var x="";if(h)switch(l){case"s":x="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":x="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":x="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":x="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":x="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":x="%d \u0924\u093e\u0938";break;case"d":x="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":x="%d \u0926\u093f\u0935\u0938";break;case"M":x="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":x="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":x="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":x="%d \u0935\u0930\u094d\u0937\u0947"}else switch(l){case"s":x="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":x="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":x="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":x="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":x="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":x="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":x="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":x="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":x="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":x="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":x="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":x="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return x.replace(/%d/i,u)}n.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},preparse:function(u){return u.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(h){return i[h]})},postformat:function(u){return u.replace(/\d/g,function(h){return e[h]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(u,h){return 12===u&&(u=0),"\u092a\u0939\u093e\u091f\u0947"===h||"\u0938\u0915\u093e\u0933\u0940"===h?u:"\u0926\u0941\u092a\u093e\u0930\u0940"===h||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===h||"\u0930\u093e\u0924\u094d\u0930\u0940"===h?u>=12?u:u+12:void 0},meridiem:function(u,h,l){return u>=0&&u<6?"\u092a\u0939\u093e\u091f\u0947":u<12?"\u0938\u0915\u093e\u0933\u0940":u<17?"\u0926\u0941\u092a\u093e\u0930\u0940":u<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(t(15439))},64524:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(i,d){return 12===i&&(i=0),"pagi"===d?i:"tengahari"===d?i>=11?i:i+12:"petang"===d||"malam"===d?i+12:void 0},meridiem:function(i,d,a){return i<11?"pagi":i<15?"tengahari":i<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(t(15439))},70485:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(i,d){return 12===i&&(i=0),"pagi"===d?i:"tengahari"===d?i>=11?i:i+12:"petang"===d||"malam"===d?i+12:void 0},meridiem:function(i,d,a){return i<11?"pagi":i<15?"tengahari":i<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(t(15439))},36681:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t(15439))},52024:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};n.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(a){return a.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},week:{dow:1,doy:4}})}(t(15439))},42688:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},68914:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};n.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(a){return a.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(a,u){return 12===a&&(a=0),"\u0930\u093e\u0924\u093f"===u?a<4?a:a+12:"\u092c\u093f\u0939\u093e\u0928"===u?a:"\u0926\u093f\u0909\u0901\u0938\u094b"===u?a>=10?a:a+12:"\u0938\u093e\u0901\u091d"===u?a+12:void 0},meridiem:function(a,u,h){return a<3?"\u0930\u093e\u0924\u093f":a<12?"\u092c\u093f\u0939\u093e\u0928":a<16?"\u0926\u093f\u0909\u0901\u0938\u094b":a<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(t(15439))},52272:function(Ee,Q,t){!function(n){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),d=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;n.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(h,l){return h?/-MMM-/.test(l)?i[h.month()]:e[h.month()]:e},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(h){return h+(1===h||8===h||h>=20?"ste":"de")},week:{dow:1,doy:4}})}(t(15439))},11758:function(Ee,Q,t){!function(n){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),d=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(h,l){return h?/-MMM-/.test(l)?i[h.month()]:e[h.month()]:e},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(h){return h+(1===h||8===h||h>=20?"ste":"de")},week:{dow:1,doy:4}})}(t(15439))},41510:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},52797:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(i,d){var a=1===i?"r":2===i?"n":3===i?"r":4===i?"t":"\xe8";return("w"===d||"W"===d)&&(a="a"),i+a},week:{dow:1,doy:4}})}(t(15439))},37944:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};n.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(a){return a.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(a,u){return 12===a&&(a=0),"\u0a30\u0a3e\u0a24"===u?a<4?a:a+12:"\u0a38\u0a35\u0a47\u0a30"===u?a:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===u?a>=10?a:a+12:"\u0a38\u0a3c\u0a3e\u0a2e"===u?a+12:void 0},meridiem:function(a,u,h){return a<4?"\u0a30\u0a3e\u0a24":a<10?"\u0a38\u0a35\u0a47\u0a30":a<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":a<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(t(15439))},1605:function(Ee,Q,t){!function(n){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),d=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function a(l){return l%10<5&&l%10>1&&~~(l/10)%10!=1}function u(l,m,x){var O=l+" ";switch(x){case"ss":return O+(a(l)?"sekundy":"sekund");case"m":return m?"minuta":"minut\u0119";case"mm":return O+(a(l)?"minuty":"minut");case"h":return m?"godzina":"godzin\u0119";case"hh":return O+(a(l)?"godziny":"godzin");case"ww":return O+(a(l)?"tygodnie":"tygodni");case"MM":return O+(a(l)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return O+(a(l)?"lata":"lat")}}n.defineLocale("pl",{months:function(l,m){return l?/D MMMM/.test(m)?i[l.month()]:e[l.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:u,m:u,mm:u,h:u,hh:u,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:u,M:"miesi\u0105c",MM:u,y:"rok",yy:u},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},73840:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(t(15439))},54225:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(t(15439))},45128:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u){var l=" ";return(d%100>=20||d>=100&&d%100==0)&&(l=" de "),d+l+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[u]}n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(t(15439))},35127:function(Ee,Q,t){!function(n){"use strict";function i(u,h,l){return"m"===l?h?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":u+" "+function e(u,h){var l=u.split("_");return h%10==1&&h%100!=11?l[0]:h%10>=2&&h%10<=4&&(h%100<10||h%100>=20)?l[1]:l[2]}({ss:h?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:h?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[l],+u)}var d=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];n.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:d,longMonthsParse:d,shortMonthsParse:d,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(u){if(u.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(u){if(u.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:i,m:i,mm:i,h:"\u0447\u0430\u0441",hh:i,d:"\u0434\u0435\u043d\u044c",dd:i,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:i,M:"\u043c\u0435\u0441\u044f\u0446",MM:i,y:"\u0433\u043e\u0434",yy:i},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(u){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(u)},meridiem:function(u,h,l){return u<4?"\u043d\u043e\u0447\u0438":u<12?"\u0443\u0442\u0440\u0430":u<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(u,h){switch(h){case"M":case"d":case"DDD":return u+"-\u0439";case"D":return u+"-\u0433\u043e";case"w":case"W":return u+"-\u044f";default:return u}},week:{dow:1,doy:4}})}(t(15439))},32525:function(Ee,Q,t){!function(n){"use strict";var e=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],i=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];n.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(a){return"\u0634\u0627\u0645"===a},meridiem:function(a,u,h){return a<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(a){return a.replace(/\u060c/g,",")},postformat:function(a){return a.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(t(15439))},59893:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},33123:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(i){return i+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(i){return"\u0db4.\u0dc0."===i||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===i},meridiem:function(i,d,a){return i>11?a?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":a?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(t(15439))},59635:function(Ee,Q,t){!function(n){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function d(h){return h>1&&h<5}function a(h,l,m,x){var O=h+" ";switch(m){case"s":return l||x?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return l||x?O+(d(h)?"sekundy":"sek\xfand"):O+"sekundami";case"m":return l?"min\xfata":x?"min\xfatu":"min\xfatou";case"mm":return l||x?O+(d(h)?"min\xfaty":"min\xfat"):O+"min\xfatami";case"h":return l?"hodina":x?"hodinu":"hodinou";case"hh":return l||x?O+(d(h)?"hodiny":"hod\xedn"):O+"hodinami";case"d":return l||x?"de\u0148":"d\u0148om";case"dd":return l||x?O+(d(h)?"dni":"dn\xed"):O+"d\u0148ami";case"M":return l||x?"mesiac":"mesiacom";case"MM":return l||x?O+(d(h)?"mesiace":"mesiacov"):O+"mesiacmi";case"y":return l||x?"rok":"rokom";case"yy":return l||x?O+(d(h)?"roky":"rokov"):O+"rokmi"}}n.defineLocale("sk",{months:e,monthsShort:i,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},78106:function(Ee,Q,t){!function(n){"use strict";function e(d,a,u,h){var l=d+" ";switch(u){case"s":return a||h?"nekaj sekund":"nekaj sekundami";case"ss":return l+(1===d?a?"sekundo":"sekundi":2===d?a||h?"sekundi":"sekundah":d<5?a||h?"sekunde":"sekundah":"sekund");case"m":return a?"ena minuta":"eno minuto";case"mm":return l+(1===d?a?"minuta":"minuto":2===d?a||h?"minuti":"minutama":d<5?a||h?"minute":"minutami":a||h?"minut":"minutami");case"h":return a?"ena ura":"eno uro";case"hh":return l+(1===d?a?"ura":"uro":2===d?a||h?"uri":"urama":d<5?a||h?"ure":"urami":a||h?"ur":"urami");case"d":return a||h?"en dan":"enim dnem";case"dd":return l+(1===d?a||h?"dan":"dnem":2===d?a||h?"dni":"dnevoma":a||h?"dni":"dnevi");case"M":return a||h?"en mesec":"enim mesecem";case"MM":return l+(1===d?a||h?"mesec":"mesecem":2===d?a||h?"meseca":"mesecema":d<5?a||h?"mesece":"meseci":a||h?"mesecev":"meseci");case"y":return a||h?"eno leto":"enim letom";case"yy":return l+(1===d?a||h?"leto":"letom":2===d?a||h?"leti":"letoma":d<5?a||h?"leta":"leti":a||h?"let":"leti")}}n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(t(15439))},88799:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(i){return"M"===i.charAt(0)},meridiem:function(i,d,a){return i<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},52872:function(Ee,Q,t){!function(n){"use strict";var e={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(d,a){return d%10>=1&&d%10<=4&&(d%100<10||d%100>=20)?d%10==1?a[0]:a[1]:a[2]},translate:function(d,a,u,h){var m,l=e.words[u];return 1===u.length?"y"===u&&a?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":h||a?l[0]:l[1]:(m=e.correctGrammaticalCase(d,l),"yy"===u&&a&&"\u0433\u043e\u0434\u0438\u043d\u0443"===m?d+" \u0433\u043e\u0434\u0438\u043d\u0430":d+" "+m)}};n.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(t(15439))},97949:function(Ee,Q,t){!function(n){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(d,a){return d%10>=1&&d%10<=4&&(d%100<10||d%100>=20)?d%10==1?a[0]:a[1]:a[2]},translate:function(d,a,u,h){var m,l=e.words[u];return 1===u.length?"y"===u&&a?"jedna godina":h||a?l[0]:l[1]:(m=e.correctGrammaticalCase(d,l),"yy"===u&&a&&"godinu"===m?d+" godina":d+" "+m)}};n.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(t(15439))},86167:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(i,d,a){return i<11?"ekuseni":i<15?"emini":i<19?"entsambama":"ebusuku"},meridiemHour:function(i,d){return 12===i&&(i=0),"ekuseni"===d?i:"emini"===d?i>=11?i:i+12:"entsambama"===d||"ebusuku"===d?0===i?0:i+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(t(15439))},39713:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?":e":1===d||2===d?":a":":e")},week:{dow:1,doy:4}})}(t(15439))},41982:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(t(15439))},22732:function(Ee,Q,t){!function(n){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};n.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(a){return a+"\u0bb5\u0ba4\u0bc1"},preparse:function(a){return a.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(u){return i[u]})},postformat:function(a){return a.replace(/\d/g,function(u){return e[u]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(a,u,h){return a<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":a<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":a<10?" \u0b95\u0bbe\u0bb2\u0bc8":a<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":a<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":a<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(a,u){return 12===a&&(a=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===u?a<2?a:a+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===u||"\u0b95\u0bbe\u0bb2\u0bc8"===u||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===u&&a>=10?a:a+12},week:{dow:0,doy:6}})}(t(15439))},43636:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(i,d){return 12===i&&(i=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===d?i<4?i:i+12:"\u0c09\u0c26\u0c2f\u0c02"===d?i:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===d?i>=10?i:i+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===d?i+12:void 0},meridiem:function(i,d,a){return i<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":i<10?"\u0c09\u0c26\u0c2f\u0c02":i<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":i<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(t(15439))},2115:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:1,doy:4}})}(t(15439))},69801:function(Ee,Q,t){!function(n){"use strict";var e={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};n.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(d,a){return 12===d&&(d=0),"\u0448\u0430\u0431"===a?d<4?d:d+12:"\u0441\u0443\u0431\u04b3"===a?d:"\u0440\u04ef\u0437"===a?d>=11?d:d+12:"\u0431\u0435\u0433\u043e\u04b3"===a?d+12:void 0},meridiem:function(d,a,u){return d<4?"\u0448\u0430\u0431":d<11?"\u0441\u0443\u0431\u04b3":d<16?"\u0440\u04ef\u0437":d<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(d){return d+(e[d]||e[d%10]||e[d>=100?100:null])},week:{dow:1,doy:7}})}(t(15439))},2868:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(i){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===i},meridiem:function(i,d,a){return i<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(t(15439))},31310:function(Ee,Q,t){!function(n){"use strict";var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};n.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(d,a){switch(a){case"d":case"D":case"Do":case"DD":return d;default:if(0===d)return d+"'unjy";var u=d%10;return d+(e[u]||e[d%100-u]||e[d>=100?100:null])}},week:{dow:1,doy:7}})}(t(15439))},22360:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(i){return i},week:{dow:1,doy:4}})}(t(15439))},66645:function(Ee,Q,t){!function(n){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function a(l,m,x,O){var L=function u(l){var m=Math.floor(l%1e3/100),x=Math.floor(l%100/10),O=l%10,L="";return m>0&&(L+=e[m]+"vatlh"),x>0&&(L+=(""!==L?" ":"")+e[x]+"maH"),O>0&&(L+=(""!==L?" ":"")+e[O]),""===L?"pagh":L}(l);switch(x){case"ss":return L+" lup";case"mm":return L+" tup";case"hh":return L+" rep";case"dd":return L+" jaj";case"MM":return L+" jar";case"yy":return L+" DIS"}}n.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function i(l){var m=l;return-1!==l.indexOf("jaj")?m.slice(0,-3)+"leS":-1!==l.indexOf("jar")?m.slice(0,-3)+"waQ":-1!==l.indexOf("DIS")?m.slice(0,-3)+"nem":m+" pIq"},past:function d(l){var m=l;return-1!==l.indexOf("jaj")?m.slice(0,-3)+"Hu\u2019":-1!==l.indexOf("jar")?m.slice(0,-3)+"wen":-1!==l.indexOf("DIS")?m.slice(0,-3)+"ben":m+" ret"},s:"puS lup",ss:a,m:"wa\u2019 tup",mm:a,h:"wa\u2019 rep",hh:a,d:"wa\u2019 jaj",dd:a,M:"wa\u2019 jar",MM:a,y:"wa\u2019 DIS",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},98374:function(Ee,Q,t){!function(n){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};n.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(d,a,u){return d<12?u?"\xf6\xf6":"\xd6\xd6":u?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(d){return"\xf6s"===d||"\xd6S"===d},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(d,a){switch(a){case"d":case"D":case"Do":case"DD":return d;default:if(0===d)return d+"'\u0131nc\u0131";var u=d%10;return d+(e[u]||e[d%100-u]||e[d>=100?100:null])}},week:{dow:1,doy:7}})}(t(15439))},256:function(Ee,Q,t){!function(n){"use strict";function i(d,a,u,h){var l={s:["viensas secunds","'iensas secunds"],ss:[d+" secunds",d+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[d+" m\xeduts",d+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[d+" \xfeoras",d+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[d+" ziuas",d+" ziuas"],M:["'n mes","'iens mes"],MM:[d+" mesen",d+" mesen"],y:["'n ar","'iens ar"],yy:[d+" ars",d+" ars"]};return h||a?l[u][0]:l[u][1]}n.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(d){return"d'o"===d.toLowerCase()},meridiem:function(d,a,u){return d>11?u?"d'o":"D'O":u?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(t(15439))},61631:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(t(15439))},61595:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(t(15439))},6050:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(i,d){return 12===i&&(i=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===d||"\u0633\u06d5\u06be\u06d5\u0631"===d||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===d?i:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===d||"\u0643\u06d5\u0686"===d?i+12:i>=11?i:i+12},meridiem:function(i,d,a){var u=100*i+d;return u<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":u<900?"\u0633\u06d5\u06be\u06d5\u0631":u<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":u<1230?"\u0686\u06c8\u0634":u<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(i,d){switch(d){case"d":case"D":case"DDD":return i+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return i+"-\u06be\u06d5\u067e\u062a\u06d5";default:return i}},preparse:function(i){return i.replace(/\u060c/g,",")},postformat:function(i){return i.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(t(15439))},65610:function(Ee,Q,t){!function(n){"use strict";function i(h,l,m){return"m"===m?l?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===m?l?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":h+" "+function e(h,l){var m=h.split("_");return l%10==1&&l%100!=11?m[0]:l%10>=2&&l%10<=4&&(l%100<10||l%100>=20)?m[1]:m[2]}({ss:l?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:l?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:l?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[m],+h)}function a(h){return function(){return h+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}n.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function d(h,l){var m={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===h?m.nominative.slice(1,7).concat(m.nominative.slice(0,1)):h?m[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(l)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(l)?"genitive":"nominative"][h.day()]:m.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:a("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:a("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:a("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:a("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return a("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return a("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:i,m:i,mm:i,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:i,d:"\u0434\u0435\u043d\u044c",dd:i,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:i,y:"\u0440\u0456\u043a",yy:i},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(h){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(h)},meridiem:function(h,l,m){return h<4?"\u043d\u043e\u0447\u0456":h<12?"\u0440\u0430\u043d\u043a\u0443":h<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(h,l){switch(l){case"M":case"d":case"DDD":case"w":case"W":return h+"-\u0439";case"D":return h+"-\u0433\u043e";default:return h}},week:{dow:1,doy:7}})}(t(15439))},86077:function(Ee,Q,t){!function(n){"use strict";var e=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],i=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];n.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(a){return"\u0634\u0627\u0645"===a},meridiem:function(a,u,h){return a<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(a){return a.replace(/\u060c/g,",")},postformat:function(a){return a.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(t(15439))},12207:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(t(15439))},22862:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(t(15439))},48093:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(i){return/^ch$/i.test(i)},meridiem:function(i,d,a){return i<12?a?"sa":"SA":a?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(i){return i},week:{dow:1,doy:4}})}(t(15439))},25590:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(i){var d=i%10;return i+(1==~~(i%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:1,doy:4}})}(t(15439))},9058:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(t(15439))},77908:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(i,d){return 12===i&&(i=0),"\u51cc\u6668"===d||"\u65e9\u4e0a"===d||"\u4e0a\u5348"===d?i:"\u4e0b\u5348"===d||"\u665a\u4e0a"===d?i+12:i>=11?i:i+12},meridiem:function(i,d,a){var u=100*i+d;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1130?"\u4e0a\u5348":u<1230?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(i){return i.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(i){return this.week()!==i.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(i,d){switch(d){case"d":case"D":case"DDD":return i+"\u65e5";case"M":return i+"\u6708";case"w":case"W":return i+"\u5468";default:return i}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(t(15439))},8867:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(i,d){return 12===i&&(i=0),"\u51cc\u6668"===d||"\u65e9\u4e0a"===d||"\u4e0a\u5348"===d?i:"\u4e2d\u5348"===d?i>=11?i:i+12:"\u4e0b\u5348"===d||"\u665a\u4e0a"===d?i+12:void 0},meridiem:function(i,d,a){var u=100*i+d;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1200?"\u4e0a\u5348":1200===u?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(i,d){switch(d){case"d":case"D":case"DDD":return i+"\u65e5";case"M":return i+"\u6708";case"w":case"W":return i+"\u9031";default:return i}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(t(15439))},31133:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(i,d){return 12===i&&(i=0),"\u51cc\u6668"===d||"\u65e9\u4e0a"===d||"\u4e0a\u5348"===d?i:"\u4e2d\u5348"===d?i>=11?i:i+12:"\u4e0b\u5348"===d||"\u665a\u4e0a"===d?i+12:void 0},meridiem:function(i,d,a){var u=100*i+d;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1130?"\u4e0a\u5348":u<1230?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(i,d){switch(d){case"d":case"D":case"DDD":return i+"\u65e5";case"M":return i+"\u6708";case"w":case"W":return i+"\u9031";default:return i}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(t(15439))},83291:function(Ee,Q,t){!function(n){"use strict";n.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(i,d){return 12===i&&(i=0),"\u51cc\u6668"===d||"\u65e9\u4e0a"===d||"\u4e0a\u5348"===d?i:"\u4e2d\u5348"===d?i>=11?i:i+12:"\u4e0b\u5348"===d||"\u665a\u4e0a"===d?i+12:void 0},meridiem:function(i,d,a){var u=100*i+d;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1130?"\u4e0a\u5348":u<1230?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(i,d){switch(d){case"d":case"D":case"DDD":return i+"\u65e5";case"M":return i+"\u6708";case"w":case"W":return i+"\u9031";default:return i}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(t(15439))},15439:function(Ee,Q,t){(Ee=t.nmd(Ee)).exports=function(){"use strict";var n,y;function e(){return n.apply(null,arguments)}function d(ie){return ie instanceof Array||"[object Array]"===Object.prototype.toString.call(ie)}function a(ie){return null!=ie&&"[object Object]"===Object.prototype.toString.call(ie)}function u(ie,be){return Object.prototype.hasOwnProperty.call(ie,be)}function h(ie){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(ie).length;var be;for(be in ie)if(u(ie,be))return!1;return!0}function l(ie){return void 0===ie}function m(ie){return"number"==typeof ie||"[object Number]"===Object.prototype.toString.call(ie)}function x(ie){return ie instanceof Date||"[object Date]"===Object.prototype.toString.call(ie)}function O(ie,be){var ft,Ye=[],tn=ie.length;for(ft=0;ft<tn;++ft)Ye.push(be(ie[ft],ft));return Ye}function L(ie,be){for(var Ye in be)u(be,Ye)&&(ie[Ye]=be[Ye]);return u(be,"toString")&&(ie.toString=be.toString),u(be,"valueOf")&&(ie.valueOf=be.valueOf),ie}function w(ie,be,Ye,ft){return ae(ie,be,Ye,ft,!0).utc()}function _(ie){return null==ie._pf&&(ie._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),ie._pf}function $(ie){var be=null,Ye=!1,ft=ie._d&&!isNaN(ie._d.getTime());return ft&&(be=_(ie),Ye=y.call(be.parsedDateParts,function(tn){return null!=tn}),ft=be.overflow<0&&!be.empty&&!be.invalidEra&&!be.invalidMonth&&!be.invalidWeekday&&!be.weekdayMismatch&&!be.nullInput&&!be.invalidFormat&&!be.userInvalidated&&(!be.meridiem||be.meridiem&&Ye),ie._strict&&(ft=ft&&0===be.charsLeftOver&&0===be.unusedTokens.length&&void 0===be.bigHour)),null!=Object.isFrozen&&Object.isFrozen(ie)?ft:(ie._isValid=ft,ie._isValid)}function C(ie){var be=w(NaN);return null!=ie?L(_(be),ie):_(be).userInvalidated=!0,be}y=Array.prototype.some?Array.prototype.some:function(ie){var ft,be=Object(this),Ye=be.length>>>0;for(ft=0;ft<Ye;ft++)if(ft in be&&ie.call(this,be[ft],ft,be))return!0;return!1};var T=e.momentProperties=[],j=!1;function I(ie,be){var Ye,ft,tn,Bn=T.length;if(l(be._isAMomentObject)||(ie._isAMomentObject=be._isAMomentObject),l(be._i)||(ie._i=be._i),l(be._f)||(ie._f=be._f),l(be._l)||(ie._l=be._l),l(be._strict)||(ie._strict=be._strict),l(be._tzm)||(ie._tzm=be._tzm),l(be._isUTC)||(ie._isUTC=be._isUTC),l(be._offset)||(ie._offset=be._offset),l(be._pf)||(ie._pf=_(be)),l(be._locale)||(ie._locale=be._locale),Bn>0)for(Ye=0;Ye<Bn;Ye++)l(tn=be[ft=T[Ye]])||(ie[ft]=tn);return ie}function F(ie){I(this,ie),this._d=new Date(null!=ie._d?ie._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===j&&(j=!0,e.updateOffset(this),j=!1)}function z(ie){return ie instanceof F||null!=ie&&null!=ie._isAMomentObject}function X(ie){!1===e.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+ie)}function p(ie,be){var Ye=!0;return L(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,ie),Ye){var tn,Bn,di,ft=[],Gi=arguments.length;for(Bn=0;Bn<Gi;Bn++){if(tn="","object"==typeof arguments[Bn]){for(di in tn+="\n["+Bn+"] ",arguments[0])u(arguments[0],di)&&(tn+=di+": "+arguments[0][di]+", ");tn=tn.slice(0,-2)}else tn=arguments[Bn];ft.push(tn)}X(ie+"\nArguments: "+Array.prototype.slice.call(ft).join("")+"\n"+(new Error).stack),Ye=!1}return be.apply(this,arguments)},be)}var xe,P={};function E(ie,be){null!=e.deprecationHandler&&e.deprecationHandler(ie,be),P[ie]||(X(be),P[ie]=!0)}function R(ie){return typeof Function<"u"&&ie instanceof Function||"[object Function]"===Object.prototype.toString.call(ie)}function G(ie,be){var ft,Ye=L({},ie);for(ft in be)u(be,ft)&&(a(ie[ft])&&a(be[ft])?(Ye[ft]={},L(Ye[ft],ie[ft]),L(Ye[ft],be[ft])):null!=be[ft]?Ye[ft]=be[ft]:delete Ye[ft]);for(ft in ie)u(ie,ft)&&!u(be,ft)&&a(ie[ft])&&(Ye[ft]=L({},Ye[ft]));return Ye}function ce(ie){null!=ie&&this.set(ie)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,xe=Object.keys?Object.keys:function(ie){var be,Ye=[];for(be in ie)u(ie,be)&&Ye.push(be);return Ye};function ct(ie,be,Ye){var ft=""+Math.abs(ie);return(ie>=0?Ye?"+":"":"-")+Math.pow(10,Math.max(0,be-ft.length)).toString().substr(1)+ft}var pe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ce=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},H={};function Z(ie,be,Ye,ft){var tn=ft;"string"==typeof ft&&(tn=function(){return this[ft]()}),ie&&(H[ie]=tn),be&&(H[be[0]]=function(){return ct(tn.apply(this,arguments),be[1],be[2])}),Ye&&(H[Ye]=function(){return this.localeData().ordinal(tn.apply(this,arguments),ie)})}function oe(ie){return ie.match(/\[[\s\S]/)?ie.replace(/^\[|\]$/g,""):ie.replace(/\\/g,"")}function Ie(ie,be){return ie.isValid()?(be=pt(be,ie.localeData()),U[be]=U[be]||function Pe(ie){var Ye,ft,be=ie.match(pe);for(Ye=0,ft=be.length;Ye<ft;Ye++)be[Ye]=H[be[Ye]]?H[be[Ye]]:oe(be[Ye]);return function(tn){var di,Bn="";for(di=0;di<ft;di++)Bn+=R(be[di])?be[di].call(tn,ie):be[di];return Bn}}(be),U[be](ie)):ie.localeData().invalidDate()}function pt(ie,be){var Ye=5;function ft(tn){return be.longDateFormat(tn)||tn}for(Ce.lastIndex=0;Ye>=0&&Ce.test(ie);)ie=ie.replace(Ce,ft),Ce.lastIndex=0,Ye-=1;return ie}var ot={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Gt(ie){return"string"==typeof ie?ot[ie]||ot[ie.toLowerCase()]:void 0}function wt(ie){var Ye,ft,be={};for(ft in ie)u(ie,ft)&&(Ye=Gt(ft))&&(be[Ye]=ie[ft]);return be}var Ze={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var q,vn=/\d/,xn=/\d\d/,bn=/\d{3}/,hn=/\d{4}/,pn=/[+-]?\d{6}/,In=/\d\d?/,Dn=/\d\d\d\d?/,Tn=/\d\d\d\d\d\d?/,mn=/\d{1,3}/,Yn=/\d{1,4}/,cn=/[+-]?\d{1,6}/,Nn=/\d+/,Bt=/[+-]?\d+/,En=/Z|[+-]\d\d:?\d\d/gi,Wn=/Z|[+-]\d\d(?::?\d\d)?/gi,Sn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ke=/^[1-9]\d?/,ge=/^([1-9]\d|\d)/;function J(ie,be,Ye){q[ie]=R(be)?be:function(ft,tn){return ft&&Ye?Ye:be}}function Oe(ie,be){return u(q,ie)?q[ie](be._strict,be._locale):new RegExp(function je(ie){return Et(ie.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(be,Ye,ft,tn,Bn){return Ye||ft||tn||Bn}))}(ie))}function Et(ie){return ie.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function dt(ie){return ie<0?Math.ceil(ie)||0:Math.floor(ie)}function rt(ie){var be=+ie,Ye=0;return 0!==be&&isFinite(be)&&(Ye=dt(be)),Ye}q={};var qe={};function ze(ie,be){var Ye,tn,ft=be;for("string"==typeof ie&&(ie=[ie]),m(be)&&(ft=function(Bn,di){di[be]=rt(Bn)}),tn=ie.length,Ye=0;Ye<tn;Ye++)qe[ie[Ye]]=ft}function zt(ie,be){ze(ie,function(Ye,ft,tn,Bn){tn._w=tn._w||{},be(Ye,tn._w,tn,Bn)})}function vt(ie,be,Ye){null!=be&&u(qe,ie)&&qe[ie](be,Ye._a,Ye,ie)}function Rt(ie){return ie%4==0&&ie%100!=0||ie%400==0}var gt=0,sn=1,wn=2,Qn=3,pi=4,Ei=5,ki=6,Co=7,xo=8;function no(ie){return Rt(ie)?366:365}Z("Y",0,0,function(){var ie=this.year();return ie<=9999?ct(ie,4):"+"+ie}),Z(0,["YY",2],0,function(){return this.year()%100}),Z(0,["YYYY",4],0,"year"),Z(0,["YYYYY",5],0,"year"),Z(0,["YYYYYY",6,!0],0,"year"),J("Y",Bt),J("YY",In,xn),J("YYYY",Yn,hn),J("YYYYY",cn,pn),J("YYYYYY",cn,pn),ze(["YYYYY","YYYYYY"],gt),ze("YYYY",function(ie,be){be[gt]=2===ie.length?e.parseTwoDigitYear(ie):rt(ie)}),ze("YY",function(ie,be){be[gt]=e.parseTwoDigitYear(ie)}),ze("Y",function(ie,be){be[gt]=parseInt(ie,10)}),e.parseTwoDigitYear=function(ie){return rt(ie)+(rt(ie)>68?1900:2e3)};var De,Qo=po("FullYear",!0);function po(ie,be){return function(Ye){return null!=Ye?(en(this,ie,Ye),e.updateOffset(this,be),this):Io(this,ie)}}function Io(ie,be){if(!ie.isValid())return NaN;var Ye=ie._d,ft=ie._isUTC;switch(be){case"Milliseconds":return ft?Ye.getUTCMilliseconds():Ye.getMilliseconds();case"Seconds":return ft?Ye.getUTCSeconds():Ye.getSeconds();case"Minutes":return ft?Ye.getUTCMinutes():Ye.getMinutes();case"Hours":return ft?Ye.getUTCHours():Ye.getHours();case"Date":return ft?Ye.getUTCDate():Ye.getDate();case"Day":return ft?Ye.getUTCDay():Ye.getDay();case"Month":return ft?Ye.getUTCMonth():Ye.getMonth();case"FullYear":return ft?Ye.getUTCFullYear():Ye.getFullYear();default:return NaN}}function en(ie,be,Ye){var ft,tn,Bn,di,Gi;if(ie.isValid()&&!isNaN(Ye)){switch(ft=ie._d,tn=ie._isUTC,be){case"Milliseconds":return void(tn?ft.setUTCMilliseconds(Ye):ft.setMilliseconds(Ye));case"Seconds":return void(tn?ft.setUTCSeconds(Ye):ft.setSeconds(Ye));case"Minutes":return void(tn?ft.setUTCMinutes(Ye):ft.setMinutes(Ye));case"Hours":return void(tn?ft.setUTCHours(Ye):ft.setHours(Ye));case"Date":return void(tn?ft.setUTCDate(Ye):ft.setDate(Ye));case"FullYear":break;default:return}Bn=Ye,di=ie.month(),Gi=29!==(Gi=ie.date())||1!==di||Rt(Bn)?Gi:28,tn?ft.setUTCFullYear(Bn,di,Gi):ft.setFullYear(Bn,di,Gi)}}function ve(ie,be){if(isNaN(ie)||isNaN(be))return NaN;var Ye=function nt(ie,be){return(ie%be+be)%be}(be,12);return ie+=(be-Ye)/12,1===Ye?Rt(ie)?29:28:31-Ye%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(ie){var be;for(be=0;be<this.length;++be)if(this[be]===ie)return be;return-1},Z("M",["MM",2],"Mo",function(){return this.month()+1}),Z("MMM",0,0,function(ie){return this.localeData().monthsShort(this,ie)}),Z("MMMM",0,0,function(ie){return this.localeData().months(this,ie)}),J("M",In,ke),J("MM",In,xn),J("MMM",function(ie,be){return be.monthsShortRegex(ie)}),J("MMMM",function(ie,be){return be.monthsRegex(ie)}),ze(["M","MM"],function(ie,be){be[sn]=rt(ie)-1}),ze(["MMM","MMMM"],function(ie,be,Ye,ft){var tn=Ye._locale.monthsParse(ie,ft,Ye._strict);null!=tn?be[sn]=tn:_(Ye).invalidMonth=ie});var Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),We=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ut=Sn,ue=Sn;function Ae(ie,be,Ye){var ft,tn,Bn,di=ie.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ft=0;ft<12;++ft)Bn=w([2e3,ft]),this._shortMonthsParse[ft]=this.monthsShort(Bn,"").toLocaleLowerCase(),this._longMonthsParse[ft]=this.months(Bn,"").toLocaleLowerCase();return Ye?"MMM"===be?-1!==(tn=De.call(this._shortMonthsParse,di))?tn:null:-1!==(tn=De.call(this._longMonthsParse,di))?tn:null:"MMM"===be?-1!==(tn=De.call(this._shortMonthsParse,di))||-1!==(tn=De.call(this._longMonthsParse,di))?tn:null:-1!==(tn=De.call(this._longMonthsParse,di))||-1!==(tn=De.call(this._shortMonthsParse,di))?tn:null}function Le(ie,be){if(!ie.isValid())return ie;if("string"==typeof be)if(/^\d+$/.test(be))be=rt(be);else if(!m(be=ie.localeData().monthsParse(be)))return ie;var Ye=be,ft=ie.date();return ft=ft<29?ft:Math.min(ft,ve(ie.year(),Ye)),ie._isUTC?ie._d.setUTCMonth(Ye,ft):ie._d.setMonth(Ye,ft),ie}function Pt(ie){return null!=ie?(Le(this,ie),e.updateOffset(this,!0),this):Io(this,"Month")}function ht(){function ie(So,Bo){return Bo.length-So.length}var tn,Bn,di,Gi,be=[],Ye=[],ft=[];for(tn=0;tn<12;tn++)Bn=w([2e3,tn]),di=Et(this.monthsShort(Bn,"")),Gi=Et(this.months(Bn,"")),be.push(di),Ye.push(Gi),ft.push(Gi),ft.push(di);be.sort(ie),Ye.sort(ie),ft.sort(ie),this._monthsRegex=new RegExp("^("+ft.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Ye.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+be.join("|")+")","i")}function on(ie,be,Ye,ft,tn,Bn,di){var Gi;return ie<100&&ie>=0?(Gi=new Date(ie+400,be,Ye,ft,tn,Bn,di),isFinite(Gi.getFullYear())&&Gi.setFullYear(ie)):Gi=new Date(ie,be,Ye,ft,tn,Bn,di),Gi}function Nt(ie){var be,Ye;return ie<100&&ie>=0?((Ye=Array.prototype.slice.call(arguments))[0]=ie+400,be=new Date(Date.UTC.apply(null,Ye)),isFinite(be.getUTCFullYear())&&be.setUTCFullYear(ie)):be=new Date(Date.UTC.apply(null,arguments)),be}function It(ie,be,Ye){var ft=7+be-Ye;return-(7+Nt(ie,0,ft).getUTCDay()-be)%7+ft-1}function Ot(ie,be,Ye,ft,tn){var So,Bo,Gi=1+7*(be-1)+(7+Ye-ft)%7+It(ie,ft,tn);return Gi<=0?Bo=no(So=ie-1)+Gi:Gi>no(ie)?(So=ie+1,Bo=Gi-no(ie)):(So=ie,Bo=Gi),{year:So,dayOfYear:Bo}}function fn(ie,be,Ye){var Bn,di,ft=It(ie.year(),be,Ye),tn=Math.floor((ie.dayOfYear()-ft-1)/7)+1;return tn<1?Bn=tn+Xn(di=ie.year()-1,be,Ye):tn>Xn(ie.year(),be,Ye)?(Bn=tn-Xn(ie.year(),be,Ye),di=ie.year()+1):(di=ie.year(),Bn=tn),{week:Bn,year:di}}function Xn(ie,be,Ye){var ft=It(ie,be,Ye),tn=It(ie+1,be,Ye);return(no(ie)-ft+tn)/7}Z("w",["ww",2],"wo","week"),Z("W",["WW",2],"Wo","isoWeek"),J("w",In,ke),J("ww",In,xn),J("W",In,ke),J("WW",In,xn),zt(["w","ww","W","WW"],function(ie,be,Ye,ft){be[ft.substr(0,1)]=rt(ie)});function $t(ie,be){return ie.slice(be,7).concat(ie.slice(0,be))}Z("d",0,"do","day"),Z("dd",0,0,function(ie){return this.localeData().weekdaysMin(this,ie)}),Z("ddd",0,0,function(ie){return this.localeData().weekdaysShort(this,ie)}),Z("dddd",0,0,function(ie){return this.localeData().weekdays(this,ie)}),Z("e",0,0,"weekday"),Z("E",0,0,"isoWeekday"),J("d",In),J("e",In),J("E",In),J("dd",function(ie,be){return be.weekdaysMinRegex(ie)}),J("ddd",function(ie,be){return be.weekdaysShortRegex(ie)}),J("dddd",function(ie,be){return be.weekdaysRegex(ie)}),zt(["dd","ddd","dddd"],function(ie,be,Ye,ft){var tn=Ye._locale.weekdaysParse(ie,ft,Ye._strict);null!=tn?be.d=tn:_(Ye).invalidWeekday=ie}),zt(["d","e","E"],function(ie,be,Ye,ft){be[ft]=rt(ie)});var kn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ai="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),eo=Sn,Oo=Sn,Fo=Sn;function qa(ie,be,Ye){var ft,tn,Bn,di=ie.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ft=0;ft<7;++ft)Bn=w([2e3,1]).day(ft),this._minWeekdaysParse[ft]=this.weekdaysMin(Bn,"").toLocaleLowerCase(),this._shortWeekdaysParse[ft]=this.weekdaysShort(Bn,"").toLocaleLowerCase(),this._weekdaysParse[ft]=this.weekdays(Bn,"").toLocaleLowerCase();return Ye?"dddd"===be?-1!==(tn=De.call(this._weekdaysParse,di))?tn:null:"ddd"===be?-1!==(tn=De.call(this._shortWeekdaysParse,di))?tn:null:-1!==(tn=De.call(this._minWeekdaysParse,di))?tn:null:"dddd"===be?-1!==(tn=De.call(this._weekdaysParse,di))||-1!==(tn=De.call(this._shortWeekdaysParse,di))||-1!==(tn=De.call(this._minWeekdaysParse,di))?tn:null:"ddd"===be?-1!==(tn=De.call(this._shortWeekdaysParse,di))||-1!==(tn=De.call(this._weekdaysParse,di))||-1!==(tn=De.call(this._minWeekdaysParse,di))?tn:null:-1!==(tn=De.call(this._minWeekdaysParse,di))||-1!==(tn=De.call(this._weekdaysParse,di))||-1!==(tn=De.call(this._shortWeekdaysParse,di))?tn:null}function gr(){function ie($r,rc){return rc.length-$r.length}var Bn,di,Gi,So,Bo,be=[],Ye=[],ft=[],tn=[];for(Bn=0;Bn<7;Bn++)di=w([2e3,1]).day(Bn),Gi=Et(this.weekdaysMin(di,"")),So=Et(this.weekdaysShort(di,"")),Bo=Et(this.weekdays(di,"")),be.push(Gi),Ye.push(So),ft.push(Bo),tn.push(Gi),tn.push(So),tn.push(Bo);be.sort(ie),Ye.sort(ie),ft.sort(ie),tn.sort(ie),this._weekdaysRegex=new RegExp("^("+tn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ft.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ye.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+be.join("|")+")","i")}function za(){return this.hours()%12||12}function zr(ie,be){Z(ie,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),be)})}function cr(ie,be){return be._meridiemParse}Z("H",["HH",2],0,"hour"),Z("h",["hh",2],0,za),Z("k",["kk",2],0,function Sa(){return this.hours()||24}),Z("hmm",0,0,function(){return""+za.apply(this)+ct(this.minutes(),2)}),Z("hmmss",0,0,function(){return""+za.apply(this)+ct(this.minutes(),2)+ct(this.seconds(),2)}),Z("Hmm",0,0,function(){return""+this.hours()+ct(this.minutes(),2)}),Z("Hmmss",0,0,function(){return""+this.hours()+ct(this.minutes(),2)+ct(this.seconds(),2)}),zr("a",!0),zr("A",!1),J("a",cr),J("A",cr),J("H",In,ge),J("h",In,ke),J("k",In,ke),J("HH",In,xn),J("hh",In,xn),J("kk",In,xn),J("hmm",Dn),J("hmmss",Tn),J("Hmm",Dn),J("Hmmss",Tn),ze(["H","HH"],Qn),ze(["k","kk"],function(ie,be,Ye){var ft=rt(ie);be[Qn]=24===ft?0:ft}),ze(["a","A"],function(ie,be,Ye){Ye._isPm=Ye._locale.isPM(ie),Ye._meridiem=ie}),ze(["h","hh"],function(ie,be,Ye){be[Qn]=rt(ie),_(Ye).bigHour=!0}),ze("hmm",function(ie,be,Ye){var ft=ie.length-2;be[Qn]=rt(ie.substr(0,ft)),be[pi]=rt(ie.substr(ft)),_(Ye).bigHour=!0}),ze("hmmss",function(ie,be,Ye){var ft=ie.length-4,tn=ie.length-2;be[Qn]=rt(ie.substr(0,ft)),be[pi]=rt(ie.substr(ft,2)),be[Ei]=rt(ie.substr(tn)),_(Ye).bigHour=!0}),ze("Hmm",function(ie,be,Ye){var ft=ie.length-2;be[Qn]=rt(ie.substr(0,ft)),be[pi]=rt(ie.substr(ft))}),ze("Hmmss",function(ie,be,Ye){var ft=ie.length-4,tn=ie.length-2;be[Qn]=rt(ie.substr(0,ft)),be[pi]=rt(ie.substr(ft,2)),be[Ei]=rt(ie.substr(tn))});var Cs=po("Hours",!0);var Ya,Er={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Me,week:{dow:0,doy:6},weekdays:kn,weekdaysMin:qi,weekdaysShort:ai,meridiemParse:/[ap]\.?m?\.?/i},yo={},Yr={};function ma(ie,be){var Ye,ft=Math.min(ie.length,be.length);for(Ye=0;Ye<ft;Ye+=1)if(ie[Ye]!==be[Ye])return Ye;return ft}function ur(ie){return ie&&ie.toLowerCase().replace("_","-")}function ts(ie){var be=null;if(void 0===yo[ie]&&Ee&&Ee.exports&&function es(ie){return!(!ie||!ie.match("^[^/\\\\]*$"))}(ie))try{be=Ya._abbr,t(46700)("./"+ie),er(be)}catch{yo[ie]=null}return yo[ie]}function er(ie,be){var Ye;return ie&&((Ye=l(be)?Ca(ie):pr(ie,be))?Ya=Ye:typeof console<"u"&&console.warn&&console.warn("Locale "+ie+" not found. Did you forget to load it?")),Ya._abbr}function pr(ie,be){if(null!==be){var Ye,ft=Er;if(be.abbr=ie,null!=yo[ie])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ft=yo[ie]._config;else if(null!=be.parentLocale)if(null!=yo[be.parentLocale])ft=yo[be.parentLocale]._config;else{if(null==(Ye=ts(be.parentLocale)))return Yr[be.parentLocale]||(Yr[be.parentLocale]=[]),Yr[be.parentLocale].push({name:ie,config:be}),null;ft=Ye._config}return yo[ie]=new ce(G(ft,be)),Yr[ie]&&Yr[ie].forEach(function(tn){pr(tn.name,tn.config)}),er(ie),yo[ie]}return delete yo[ie],null}function Ca(ie){var be;if(ie&&ie._locale&&ie._locale._abbr&&(ie=ie._locale._abbr),!ie)return Ya;if(!d(ie)){if(be=ts(ie))return be;ie=[ie]}return function Or(ie){for(var Ye,ft,tn,Bn,be=0;be<ie.length;){for(Ye=(Bn=ur(ie[be]).split("-")).length,ft=(ft=ur(ie[be+1]))?ft.split("-"):null;Ye>0;){if(tn=ts(Bn.slice(0,Ye).join("-")))return tn;if(ft&&ft.length>=Ye&&ma(Bn,ft)>=Ye-1)break;Ye--}be++}return Ya}(ie)}function Rr(ie){var be,Ye=ie._a;return Ye&&-2===_(ie).overflow&&(be=Ye[sn]<0||Ye[sn]>11?sn:Ye[wn]<1||Ye[wn]>ve(Ye[gt],Ye[sn])?wn:Ye[Qn]<0||Ye[Qn]>24||24===Ye[Qn]&&(0!==Ye[pi]||0!==Ye[Ei]||0!==Ye[ki])?Qn:Ye[pi]<0||Ye[pi]>59?pi:Ye[Ei]<0||Ye[Ei]>59?Ei:Ye[ki]<0||Ye[ki]>999?ki:-1,_(ie)._overflowDayOfYear&&(be<gt||be>wn)&&(be=wn),_(ie)._overflowWeeks&&-1===be&&(be=Co),_(ie)._overflowWeekday&&-1===be&&(be=xo),_(ie).overflow=be),ie}var ha=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fr=/Z|[+-]\d\d(?::?\d\d)?/,da=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ro=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ya=/^\/?Date\((-?\d+)/i,oa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,hr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fr(ie){var be,Ye,Bn,di,Gi,So,ft=ie._i,tn=ha.exec(ft)||mr.exec(ft),Bo=da.length,$r=Ro.length;if(tn){for(_(ie).iso=!0,be=0,Ye=Bo;be<Ye;be++)if(da[be][1].exec(tn[1])){di=da[be][0],Bn=!1!==da[be][2];break}if(null==di)return void(ie._isValid=!1);if(tn[3]){for(be=0,Ye=$r;be<Ye;be++)if(Ro[be][1].exec(tn[3])){Gi=(tn[2]||" ")+Ro[be][0];break}if(null==Gi)return void(ie._isValid=!1)}if(!Bn&&null!=Gi)return void(ie._isValid=!1);if(tn[4]){if(!Fr.exec(tn[4]))return void(ie._isValid=!1);So="Z"}ie._f=di+(Gi||"")+(So||""),Ke(ie)}else ie._isValid=!1}function Ia(ie){var be=parseInt(ie,10);return be<=49?2e3+be:be<=999?1900+be:be}function Pa(ie){var Ye,be=oa.exec(function wa(ie){return ie.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(ie._i));if(be){if(Ye=function br(ie,be,Ye,ft,tn,Bn){var di=[Ia(ie),Me.indexOf(be),parseInt(Ye,10),parseInt(ft,10),parseInt(tn,10)];return Bn&&di.push(parseInt(Bn,10)),di}(be[4],be[3],be[2],be[5],be[6],be[7]),!function Za(ie,be,Ye){return!ie||ai.indexOf(ie)===new Date(be[0],be[1],be[2]).getDay()||(_(Ye).weekdayMismatch=!0,Ye._isValid=!1,!1)}(be[1],Ye,ie))return;ie._a=Ye,ie._tzm=function ns(ie,be,Ye){if(ie)return hr[ie];if(be)return 0;var ft=parseInt(Ye,10),tn=ft%100;return(ft-tn)/100*60+tn}(be[8],be[9],be[10]),ie._d=Nt.apply(null,ie._a),ie._d.setUTCMinutes(ie._d.getUTCMinutes()-ie._tzm),_(ie).rfc2822=!0}else ie._isValid=!1}function Sr(ie,be,Ye){return ie??be??Ye}function Aa(ie){var be,Ye,tn,Bn,di,ft=[];if(!ie._d){for(tn=function ao(ie){var be=new Date(e.now());return ie._useUTC?[be.getUTCFullYear(),be.getUTCMonth(),be.getUTCDate()]:[be.getFullYear(),be.getMonth(),be.getDate()]}(ie),ie._w&&null==ie._a[wn]&&null==ie._a[sn]&&function Je(ie){var be,Ye,ft,tn,Bn,di,Gi,So,Bo;null!=(be=ie._w).GG||null!=be.W||null!=be.E?(Bn=1,di=4,Ye=Sr(be.GG,ie._a[gt],fn(_e(),1,4).year),ft=Sr(be.W,1),((tn=Sr(be.E,1))<1||tn>7)&&(So=!0)):(Bn=ie._locale._week.dow,di=ie._locale._week.doy,Bo=fn(_e(),Bn,di),Ye=Sr(be.gg,ie._a[gt],Bo.year),ft=Sr(be.w,Bo.week),null!=be.d?((tn=be.d)<0||tn>6)&&(So=!0):null!=be.e?(tn=be.e+Bn,(be.e<0||be.e>6)&&(So=!0)):tn=Bn),ft<1||ft>Xn(Ye,Bn,di)?_(ie)._overflowWeeks=!0:null!=So?_(ie)._overflowWeekday=!0:(Gi=Ot(Ye,ft,tn,Bn,di),ie._a[gt]=Gi.year,ie._dayOfYear=Gi.dayOfYear)}(ie),null!=ie._dayOfYear&&(di=Sr(ie._a[gt],tn[gt]),(ie._dayOfYear>no(di)||0===ie._dayOfYear)&&(_(ie)._overflowDayOfYear=!0),Ye=Nt(di,0,ie._dayOfYear),ie._a[sn]=Ye.getUTCMonth(),ie._a[wn]=Ye.getUTCDate()),be=0;be<3&&null==ie._a[be];++be)ie._a[be]=ft[be]=tn[be];for(;be<7;be++)ie._a[be]=ft[be]=null==ie._a[be]?2===be?1:0:ie._a[be];24===ie._a[Qn]&&0===ie._a[pi]&&0===ie._a[Ei]&&0===ie._a[ki]&&(ie._nextDay=!0,ie._a[Qn]=0),ie._d=(ie._useUTC?Nt:on).apply(null,ft),Bn=ie._useUTC?ie._d.getUTCDay():ie._d.getDay(),null!=ie._tzm&&ie._d.setUTCMinutes(ie._d.getUTCMinutes()-ie._tzm),ie._nextDay&&(ie._a[Qn]=24),ie._w&&typeof ie._w.d<"u"&&ie._w.d!==Bn&&(_(ie).weekdayMismatch=!0)}}function Ke(ie){if(ie._f!==e.ISO_8601)if(ie._f!==e.RFC_2822){ie._a=[],_(ie).empty=!0;var Ye,ft,tn,Bn,di,Bo,$r,be=""+ie._i,Gi=be.length,So=0;for($r=(tn=pt(ie._f,ie._locale).match(pe)||[]).length,Ye=0;Ye<$r;Ye++)(ft=(be.match(Oe(Bn=tn[Ye],ie))||[])[0])&&((di=be.substr(0,be.indexOf(ft))).length>0&&_(ie).unusedInput.push(di),be=be.slice(be.indexOf(ft)+ft.length),So+=ft.length),H[Bn]?(ft?_(ie).empty=!1:_(ie).unusedTokens.push(Bn),vt(Bn,ft,ie)):ie._strict&&!ft&&_(ie).unusedTokens.push(Bn);_(ie).charsLeftOver=Gi-So,be.length>0&&_(ie).unusedInput.push(be),ie._a[Qn]<=12&&!0===_(ie).bigHour&&ie._a[Qn]>0&&(_(ie).bigHour=void 0),_(ie).parsedDateParts=ie._a.slice(0),_(ie).meridiem=ie._meridiem,ie._a[Qn]=function Ue(ie,be,Ye){var ft;return null==Ye?be:null!=ie.meridiemHour?ie.meridiemHour(be,Ye):(null!=ie.isPM&&((ft=ie.isPM(Ye))&&be<12&&(be+=12),!ft&&12===be&&(be=0)),be)}(ie._locale,ie._a[Qn],ie._meridiem),null!==(Bo=_(ie).era)&&(ie._a[gt]=ie._locale.erasConvertYear(Bo,ie._a[gt])),Aa(ie),Rr(ie)}else Pa(ie);else fr(ie)}function qt(ie){var be=ie._i,Ye=ie._f;return ie._locale=ie._locale||Ca(ie._l),null===be||void 0===Ye&&""===be?C({nullInput:!0}):("string"==typeof be&&(ie._i=be=ie._locale.preparse(be)),z(be)?new F(Rr(be)):(x(be)?ie._d=be:d(Ye)?function Qt(ie){var be,Ye,ft,tn,Bn,di,Gi=!1,So=ie._f.length;if(0===So)return _(ie).invalidFormat=!0,void(ie._d=new Date(NaN));for(tn=0;tn<So;tn++)Bn=0,di=!1,be=I({},ie),null!=ie._useUTC&&(be._useUTC=ie._useUTC),be._f=ie._f[tn],Ke(be),$(be)&&(di=!0),Bn+=_(be).charsLeftOver,Bn+=10*_(be).unusedTokens.length,_(be).score=Bn,Gi?Bn<ft&&(ft=Bn,Ye=be):(null==ft||Bn<ft||di)&&(ft=Bn,Ye=be,di&&(Gi=!0));L(ie,Ye||be)}(ie):Ye?Ke(ie):function it(ie){var be=ie._i;l(be)?ie._d=new Date(e.now()):x(be)?ie._d=new Date(be.valueOf()):"string"==typeof be?function ar(ie){var be=ya.exec(ie._i);null===be?(fr(ie),!1===ie._isValid&&(delete ie._isValid,Pa(ie),!1===ie._isValid&&(delete ie._isValid,ie._strict?ie._isValid=!1:e.createFromInputFallback(ie)))):ie._d=new Date(+be[1])}(ie):d(be)?(ie._a=O(be.slice(0),function(Ye){return parseInt(Ye,10)}),Aa(ie)):a(be)?function ti(ie){if(!ie._d){var be=wt(ie._i);ie._a=O([be.year,be.month,void 0===be.day?be.date:be.day,be.hour,be.minute,be.second,be.millisecond],function(ft){return ft&&parseInt(ft,10)}),Aa(ie)}}(ie):m(be)?ie._d=new Date(be):e.createFromInputFallback(ie)}(ie),$(ie)||(ie._d=null),ie))}function ae(ie,be,Ye,ft,tn){var Bn={};return(!0===be||!1===be)&&(ft=be,be=void 0),(!0===Ye||!1===Ye)&&(ft=Ye,Ye=void 0),(a(ie)&&h(ie)||d(ie)&&0===ie.length)&&(ie=void 0),Bn._isAMomentObject=!0,Bn._useUTC=Bn._isUTC=tn,Bn._l=Ye,Bn._i=ie,Bn._f=be,Bn._strict=ft,function $i(ie){var be=new F(Rr(qt(ie)));return be._nextDay&&(be.add(1,"d"),be._nextDay=void 0),be}(Bn)}function _e(ie,be,Ye,ft){return ae(ie,be,Ye,ft,!1)}e.createFromInputFallback=p("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(ie){ie._d=new Date(ie._i+(ie._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var mt=p("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var ie=_e.apply(null,arguments);return this.isValid()&&ie.isValid()?ie<this?this:ie:C()}),Vt=p("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var ie=_e.apply(null,arguments);return this.isValid()&&ie.isValid()?ie>this?this:ie:C()});function On(ie,be){var Ye,ft;if(1===be.length&&d(be[0])&&(be=be[0]),!be.length)return _e();for(Ye=be[0],ft=1;ft<be.length;++ft)(!be[ft].isValid()||be[ft][ie](Ye))&&(Ye=be[ft]);return Ye}var so=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ka(ie){var be=wt(ie),Ye=be.year||0,ft=be.quarter||0,tn=be.month||0,Bn=be.week||be.isoWeek||0,di=be.day||0,Gi=be.hour||0,So=be.minute||0,Bo=be.second||0,$r=be.millisecond||0;this._isValid=function io(ie){var be,ft,Ye=!1,tn=so.length;for(be in ie)if(u(ie,be)&&(-1===De.call(so,be)||null!=ie[be]&&isNaN(ie[be])))return!1;for(ft=0;ft<tn;++ft)if(ie[so[ft]]){if(Ye)return!1;parseFloat(ie[so[ft]])!==rt(ie[so[ft]])&&(Ye=!0)}return!0}(be),this._milliseconds=+$r+1e3*Bo+6e4*So+1e3*Gi*60*60,this._days=+di+7*Bn,this._months=+tn+3*ft+12*Ye,this._data={},this._locale=Ca(),this._bubble()}function Po(ie){return ie instanceof ka}function Cr(ie){return ie<0?-1*Math.round(-1*ie):Math.round(ie)}function Os(ie,be){Z(ie,0,0,function(){var Ye=this.utcOffset(),ft="+";return Ye<0&&(Ye=-Ye,ft="-"),ft+ct(~~(Ye/60),2)+be+ct(~~Ye%60,2)})}Os("Z",":"),Os("ZZ",""),J("Z",Wn),J("ZZ",Wn),ze(["Z","ZZ"],function(ie,be,Ye){Ye._useUTC=!0,Ye._tzm=Fs(Wn,ie)});var Tc=/([\+\-]|\d\d)/gi;function Fs(ie,be){var tn,Bn,Ye=(be||"").match(ie);return null===Ye?null:0===(Bn=60*(tn=((Ye[Ye.length-1]||[])+"").match(Tc)||["-",0,0])[1]+rt(tn[2]))?0:"+"===tn[0]?Bn:-Bn}function is(ie,be){var Ye,ft;return be._isUTC?(Ye=be.clone(),ft=(z(ie)||x(ie)?ie.valueOf():_e(ie).valueOf())-Ye.valueOf(),Ye._d.setTime(Ye._d.valueOf()+ft),e.updateOffset(Ye,!1),Ye):_e(ie).local()}function Br(ie){return-Math.round(ie._d.getTimezoneOffset())}function Yi(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var Eo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wi(ie,be){var tn,Bn,di,Ye=ie,ft=null;return Po(ie)?Ye={ms:ie._milliseconds,d:ie._days,M:ie._months}:m(ie)||!isNaN(+ie)?(Ye={},be?Ye[be]=+ie:Ye.milliseconds=+ie):(ft=Eo.exec(ie))?(tn="-"===ft[1]?-1:1,Ye={y:0,d:rt(ft[wn])*tn,h:rt(ft[Qn])*tn,m:rt(ft[pi])*tn,s:rt(ft[Ei])*tn,ms:rt(Cr(1e3*ft[ki]))*tn}):(ft=bi.exec(ie))?Ye={y:ei(ft[2],tn="-"===ft[1]?-1:1),M:ei(ft[3],tn),w:ei(ft[4],tn),d:ei(ft[5],tn),h:ei(ft[6],tn),m:ei(ft[7],tn),s:ei(ft[8],tn)}:null==Ye?Ye={}:"object"==typeof Ye&&("from"in Ye||"to"in Ye)&&(di=function Ao(ie,be){var Ye;return ie.isValid()&&be.isValid()?(be=is(be,ie),ie.isBefore(be)?Ye=tr(ie,be):((Ye=tr(be,ie)).milliseconds=-Ye.milliseconds,Ye.months=-Ye.months),Ye):{milliseconds:0,months:0}}(_e(Ye.from),_e(Ye.to)),(Ye={}).ms=di.milliseconds,Ye.M=di.months),Bn=new ka(Ye),Po(ie)&&u(ie,"_locale")&&(Bn._locale=ie._locale),Po(ie)&&u(ie,"_isValid")&&(Bn._isValid=ie._isValid),Bn}function ei(ie,be){var Ye=ie&&parseFloat(ie.replace(",","."));return(isNaN(Ye)?0:Ye)*be}function tr(ie,be){var Ye={};return Ye.months=be.month()-ie.month()+12*(be.year()-ie.year()),ie.clone().add(Ye.months,"M").isAfter(be)&&--Ye.months,Ye.milliseconds=+be-+ie.clone().add(Ye.months,"M"),Ye}function jo(ie,be){return function(Ye,ft){var Bn;return null!==ft&&!isNaN(+ft)&&(E(be,"moment()."+be+"(period, number) is deprecated. Please use moment()."+be+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Bn=Ye,Ye=ft,ft=Bn),as(this,Wi(Ye,ft),ie),this}}function as(ie,be,Ye,ft){var tn=be._milliseconds,Bn=Cr(be._days),di=Cr(be._months);ie.isValid()&&(ft=ft??!0,di&&Le(ie,Io(ie,"Month")+di*Ye),Bn&&en(ie,"Date",Io(ie,"Date")+Bn*Ye),tn&&ie._d.setTime(ie._d.valueOf()+tn*Ye),ft&&e.updateOffset(ie,Bn||di))}Wi.fn=ka.prototype,Wi.invalid=function lr(){return Wi(NaN)};var Ko=jo(1,"add"),xa=jo(-1,"subtract");function aa(ie){return"string"==typeof ie||ie instanceof String}function pc(ie){return z(ie)||x(ie)||aa(ie)||m(ie)||function Ac(ie){var be=d(ie),Ye=!1;return be&&(Ye=0===ie.filter(function(ft){return!m(ft)&&aa(ie)}).length),be&&Ye}(ie)||function Xo(ie){var tn,be=a(ie)&&!h(ie),Ye=!1,ft=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],di=ft.length;for(tn=0;tn<di;tn+=1)Ye=Ye||u(ie,ft[tn]);return be&&Ye}(ie)||null==ie}function zo(ie,be){if(ie.date()<be.date())return-zo(be,ie);var Ye=12*(be.year()-ie.year())+(be.month()-ie.month()),ft=ie.clone().add(Ye,"months");return-(Ye+(be-ft<0?(be-ft)/(ft-ie.clone().add(Ye-1,"months")):(be-ft)/(ie.clone().add(Ye+1,"months")-ft)))||0}function Ka(ie){var be;return void 0===ie?this._locale._abbr:(null!=(be=Ca(ie))&&(this._locale=be),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Nr=p("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(ie){return void 0===ie?this.localeData():this.locale(ie)});function La(){return this._locale}var Gs=1e3,jr=60*Gs,ic=60*jr,rl=3506328*ic;function Ea(ie,be){return(ie%be+be)%be}function nr(ie,be,Ye){return ie<100&&ie>=0?new Date(ie+400,be,Ye)-rl:new Date(ie,be,Ye).valueOf()}function Ra(ie,be,Ye){return ie<100&&ie>=0?Date.UTC(ie+400,be,Ye)-rl:Date.UTC(ie,be,Ye)}function Vn(ie,be){return be.erasAbbrRegex(ie)}function ua(){var tn,Bn,di,Gi,So,ie=[],be=[],Ye=[],ft=[],Bo=this.eras();for(tn=0,Bn=Bo.length;tn<Bn;++tn)di=Et(Bo[tn].name),Gi=Et(Bo[tn].abbr),So=Et(Bo[tn].narrow),be.push(di),ie.push(Gi),Ye.push(So),ft.push(di),ft.push(Gi),ft.push(So);this._erasRegex=new RegExp("^("+ft.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+be.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+ie.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+Ye.join("|")+")","i")}function Ji(ie,be){Z(0,[ie,ie.length],0,be)}function Si(ie,be,Ye,ft,tn){var Bn;return null==ie?fn(this,ft,tn).year:(be>(Bn=Xn(ie,ft,tn))&&(be=Bn),Wa.call(this,ie,be,Ye,ft,tn))}function Wa(ie,be,Ye,ft,tn){var Bn=Ot(ie,be,Ye,ft,tn),di=Nt(Bn.year,0,Bn.dayOfYear);return this.year(di.getUTCFullYear()),this.month(di.getUTCMonth()),this.date(di.getUTCDate()),this}Z("N",0,0,"eraAbbr"),Z("NN",0,0,"eraAbbr"),Z("NNN",0,0,"eraAbbr"),Z("NNNN",0,0,"eraName"),Z("NNNNN",0,0,"eraNarrow"),Z("y",["y",1],"yo","eraYear"),Z("y",["yy",2],0,"eraYear"),Z("y",["yyy",3],0,"eraYear"),Z("y",["yyyy",4],0,"eraYear"),J("N",Vn),J("NN",Vn),J("NNN",Vn),J("NNNN",function zn(ie,be){return be.erasNameRegex(ie)}),J("NNNNN",function Fi(ie,be){return be.erasNarrowRegex(ie)}),ze(["N","NN","NNN","NNNN","NNNNN"],function(ie,be,Ye,ft){var tn=Ye._locale.erasParse(ie,ft,Ye._strict);tn?_(Ye).era=tn:_(Ye).invalidEra=ie}),J("y",Nn),J("yy",Nn),J("yyy",Nn),J("yyyy",Nn),J("yo",function uo(ie,be){return be._eraYearOrdinalRegex||Nn}),ze(["y","yy","yyy","yyyy"],gt),ze(["yo"],function(ie,be,Ye,ft){var tn;Ye._locale._eraYearOrdinalRegex&&(tn=ie.match(Ye._locale._eraYearOrdinalRegex)),be[gt]=Ye._locale.eraYearOrdinalParse?Ye._locale.eraYearOrdinalParse(ie,tn):parseInt(ie,10)}),Z(0,["gg",2],0,function(){return this.weekYear()%100}),Z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ji("gggg","weekYear"),Ji("ggggg","weekYear"),Ji("GGGG","isoWeekYear"),Ji("GGGGG","isoWeekYear"),J("G",Bt),J("g",Bt),J("GG",In,xn),J("gg",In,xn),J("GGGG",Yn,hn),J("gggg",Yn,hn),J("GGGGG",cn,pn),J("ggggg",cn,pn),zt(["gggg","ggggg","GGGG","GGGGG"],function(ie,be,Ye,ft){be[ft.substr(0,2)]=rt(ie)}),zt(["gg","GG"],function(ie,be,Ye,ft){be[ft]=e.parseTwoDigitYear(ie)}),Z("Q",0,"Qo","quarter"),J("Q",vn),ze("Q",function(ie,be){be[sn]=3*(rt(ie)-1)}),Z("D",["DD",2],"Do","date"),J("D",In,ke),J("DD",In,xn),J("Do",function(ie,be){return ie?be._dayOfMonthOrdinalParse||be._ordinalParse:be._dayOfMonthOrdinalParseLenient}),ze(["D","DD"],wn),ze("Do",function(ie,be){be[wn]=rt(ie.match(In)[0])});var Kc=po("Date",!0);Z("DDD",["DDDD",3],"DDDo","dayOfYear"),J("DDD",mn),J("DDDD",bn),ze(["DDD","DDDD"],function(ie,be,Ye){Ye._dayOfYear=rt(ie)}),Z("m",["mm",2],0,"minute"),J("m",In,ge),J("mm",In,xn),ze(["m","mm"],pi);var Ns=po("Minutes",!1);Z("s",["ss",2],0,"second"),J("s",In,ge),J("ss",In,xn),ze(["s","ss"],Ei);var Rc,Fc,Dr=po("Seconds",!1);for(Z("S",0,0,function(){return~~(this.millisecond()/100)}),Z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Z(0,["SSS",3],0,"millisecond"),Z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),J("S",mn,vn),J("SS",mn,xn),J("SSS",mn,bn),Rc="SSSS";Rc.length<=9;Rc+="S")J(Rc,Nn);function Ba(ie,be){be[ki]=rt(1e3*("0."+ie))}for(Rc="S";Rc.length<=9;Rc+="S")ze(Rc,Ba);Fc=po("Milliseconds",!1),Z("z",0,0,"zoneAbbr"),Z("zz",0,0,"zoneName");var wi=F.prototype;function js(ie){return ie}wi.add=Ko,wi.calendar=function Ct(ie,be){1===arguments.length&&(arguments[0]?pc(arguments[0])?(ie=arguments[0],be=void 0):function mc(ie){var tn,be=a(ie)&&!h(ie),Ye=!1,ft=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(tn=0;tn<ft.length;tn+=1)Ye=Ye||u(ie,ft[tn]);return be&&Ye}(arguments[0])&&(be=arguments[0],ie=void 0):(ie=void 0,be=void 0));var Ye=ie||_e(),ft=is(Ye,this).startOf("day"),tn=e.calendarFormat(this,ft)||"sameElse",Bn=be&&(R(be[tn])?be[tn].call(this,Ye):be[tn]);return this.format(Bn||this.localeData().calendar(tn,this,_e(Ye)))},wi.clone=function $e(){return new F(this)},wi.diff=function ra(ie,be,Ye){var ft,tn,Bn;if(!this.isValid())return NaN;if(!(ft=is(ie,this)).isValid())return NaN;switch(tn=6e4*(ft.utcOffset()-this.utcOffset()),be=Gt(be)){case"year":Bn=zo(this,ft)/12;break;case"month":Bn=zo(this,ft);break;case"quarter":Bn=zo(this,ft)/3;break;case"second":Bn=(this-ft)/1e3;break;case"minute":Bn=(this-ft)/6e4;break;case"hour":Bn=(this-ft)/36e5;break;case"day":Bn=(this-ft-tn)/864e5;break;case"week":Bn=(this-ft-tn)/6048e5;break;default:Bn=this-ft}return Ye?Bn:dt(Bn)},wi.endOf=function Xs(ie){var be,Ye;if(void 0===(ie=Gt(ie))||"millisecond"===ie||!this.isValid())return this;switch(Ye=this._isUTC?Ra:nr,ie){case"year":be=Ye(this.year()+1,0,1)-1;break;case"quarter":be=Ye(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":be=Ye(this.year(),this.month()+1,1)-1;break;case"week":be=Ye(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":be=Ye(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":be=Ye(this.year(),this.month(),this.date()+1)-1;break;case"hour":be=this._d.valueOf(),be+=ic-Ea(be+(this._isUTC?0:this.utcOffset()*jr),ic)-1;break;case"minute":be=this._d.valueOf(),be+=jr-Ea(be,jr)-1;break;case"second":be=this._d.valueOf(),be+=Gs-Ea(be,Gs)-1}return this._d.setTime(be),e.updateOffset(this,!0),this},wi.format=function co(ie){ie||(ie=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var be=Ie(this,ie);return this.localeData().postformat(be)},wi.from=function Jo(ie,be){return this.isValid()&&(z(ie)&&ie.isValid()||_e(ie).isValid())?Wi({to:this,from:ie}).locale(this.locale()).humanize(!be):this.localeData().invalidDate()},wi.fromNow=function lo(ie){return this.from(_e(),ie)},wi.to=function Ja(ie,be){return this.isValid()&&(z(ie)&&ie.isValid()||_e(ie).isValid())?Wi({from:this,to:ie}).locale(this.locale()).humanize(!be):this.localeData().invalidDate()},wi.toNow=function Tr(ie){return this.to(_e(),ie)},wi.get=function Hn(ie){return R(this[ie=Gt(ie)])?this[ie]():this},wi.invalidAt=function oc(){return _(this).overflow},wi.isAfter=function Kt(ie,be){var Ye=z(ie)?ie:_e(ie);return!(!this.isValid()||!Ye.isValid())&&("millisecond"===(be=Gt(be)||"millisecond")?this.valueOf()>Ye.valueOf():Ye.valueOf()<this.clone().startOf(be).valueOf())},wi.isBefore=function yn(ie,be){var Ye=z(ie)?ie:_e(ie);return!(!this.isValid()||!Ye.isValid())&&("millisecond"===(be=Gt(be)||"millisecond")?this.valueOf()<Ye.valueOf():this.clone().endOf(be).valueOf()<Ye.valueOf())},wi.isBetween=function ii(ie,be,Ye,ft){var tn=z(ie)?ie:_e(ie),Bn=z(be)?be:_e(be);return!!(this.isValid()&&tn.isValid()&&Bn.isValid())&&("("===(ft=ft||"()")[0]?this.isAfter(tn,Ye):!this.isBefore(tn,Ye))&&(")"===ft[1]?this.isBefore(Bn,Ye):!this.isAfter(Bn,Ye))},wi.isSame=function hi(ie,be){var ft,Ye=z(ie)?ie:_e(ie);return!(!this.isValid()||!Ye.isValid())&&("millisecond"===(be=Gt(be)||"millisecond")?this.valueOf()===Ye.valueOf():(ft=Ye.valueOf(),this.clone().startOf(be).valueOf()<=ft&&ft<=this.clone().endOf(be).valueOf()))},wi.isSameOrAfter=function Ki(ie,be){return this.isSame(ie,be)||this.isAfter(ie,be)},wi.isSameOrBefore=function ea(ie,be){return this.isSame(ie,be)||this.isBefore(ie,be)},wi.isValid=function Ts(){return $(this)},wi.lang=Nr,wi.locale=Ka,wi.localeData=La,wi.max=Vt,wi.min=mt,wi.parsingFlags=function Lc(){return L({},_(this))},wi.set=function tt(ie,be){if("object"==typeof ie){var ft,Ye=function Ut(ie){var Ye,be=[];for(Ye in ie)u(ie,Ye)&&be.push({unit:Ye,priority:Ze[Ye]});return be.sort(function(ft,tn){return ft.priority-tn.priority}),be}(ie=wt(ie)),tn=Ye.length;for(ft=0;ft<tn;ft++)this[Ye[ft].unit](ie[Ye[ft].unit])}else if(R(this[ie=Gt(ie)]))return this[ie](be);return this},wi.startOf=function Qs(ie){var be,Ye;if(void 0===(ie=Gt(ie))||"millisecond"===ie||!this.isValid())return this;switch(Ye=this._isUTC?Ra:nr,ie){case"year":be=Ye(this.year(),0,1);break;case"quarter":be=Ye(this.year(),this.month()-this.month()%3,1);break;case"month":be=Ye(this.year(),this.month(),1);break;case"week":be=Ye(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":be=Ye(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":be=Ye(this.year(),this.month(),this.date());break;case"hour":be=this._d.valueOf(),be-=Ea(be+(this._isUTC?0:this.utcOffset()*jr),ic);break;case"minute":be=this._d.valueOf(),be-=Ea(be,jr);break;case"second":be=this._d.valueOf(),be-=Ea(be,Gs)}return this._d.setTime(be),e.updateOffset(this,!0),this},wi.subtract=xa,wi.toArray=function yr(){var ie=this;return[ie.year(),ie.month(),ie.date(),ie.hour(),ie.minute(),ie.second(),ie.millisecond()]},wi.toObject=function kc(){var ie=this;return{years:ie.year(),months:ie.month(),date:ie.date(),hours:ie.hours(),minutes:ie.minutes(),seconds:ie.seconds(),milliseconds:ie.milliseconds()}},wi.toDate=function hc(){return new Date(this.valueOf())},wi.toISOString=function Ha(ie){if(!this.isValid())return null;var be=!0!==ie,Ye=be?this.clone().utc():this;return Ye.year()<0||Ye.year()>9999?Ie(Ye,be?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?be?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ie(Ye,"Z")):Ie(Ye,be?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wi.inspect=function Ri(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Ye,ft,ie="moment",be="";return this.isLocal()||(ie=0===this.utcOffset()?"moment.utc":"moment.parseZone",be="Z"),Ye="["+ie+'("]',ft=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(Ye+ft+"-MM-DD[T]HH:mm:ss.SSS"+be+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(wi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),wi.toJSON=function Zs(){return this.isValid()?this.toISOString():null},wi.toString=function To(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wi.unix=function Yc(){return Math.floor(this.valueOf()/1e3)},wi.valueOf=function Ss(){return this._d.valueOf()-6e4*(this._offset||0)},wi.creationData=function Kl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wi.eraName=function rs(){var ie,be,Ye,ft=this.localeData().eras();for(ie=0,be=ft.length;ie<be;++ie)if(Ye=this.clone().startOf("day").valueOf(),ft[ie].since<=Ye&&Ye<=ft[ie].until||ft[ie].until<=Ye&&Ye<=ft[ie].since)return ft[ie].name;return""},wi.eraNarrow=function xr(){var ie,be,Ye,ft=this.localeData().eras();for(ie=0,be=ft.length;ie<be;++ie)if(Ye=this.clone().startOf("day").valueOf(),ft[ie].since<=Ye&&Ye<=ft[ie].until||ft[ie].until<=Ye&&Ye<=ft[ie].since)return ft[ie].narrow;return""},wi.eraAbbr=function Ga(){var ie,be,Ye,ft=this.localeData().eras();for(ie=0,be=ft.length;ie<be;++ie)if(Ye=this.clone().startOf("day").valueOf(),ft[ie].since<=Ye&&Ye<=ft[ie].until||ft[ie].until<=Ye&&Ye<=ft[ie].since)return ft[ie].abbr;return""},wi.eraYear=function Hr(){var ie,be,Ye,ft,tn=this.localeData().eras();for(ie=0,be=tn.length;ie<be;++ie)if(Ye=tn[ie].since<=tn[ie].until?1:-1,ft=this.clone().startOf("day").valueOf(),tn[ie].since<=ft&&ft<=tn[ie].until||tn[ie].until<=ft&&ft<=tn[ie].since)return(this.year()-e(tn[ie].since).year())*Ye+tn[ie].offset;return this.year()},wi.year=Qo,wi.isLeapYear=function Mo(){return Rt(this.year())},wi.weekYear=function Ta(ie){return Si.call(this,ie,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},wi.isoWeekYear=function Mr(ie){return Si.call(this,ie,this.isoWeek(),this.isoWeekday(),1,4)},wi.quarter=wi.quarters=function xl(ie){return null==ie?Math.ceil((this.month()+1)/3):this.month(3*(ie-1)+this.month()%3)},wi.month=Pt,wi.daysInMonth=function dn(){return ve(this.year(),this.month())},wi.week=wi.weeks=function vi(ie){var be=this.localeData().week(this);return null==ie?be:this.add(7*(ie-be),"d")},wi.isoWeek=wi.isoWeeks=function Zn(ie){var be=fn(this,1,4).week;return null==ie?be:this.add(7*(ie-be),"d")},wi.weeksInYear=function Ma(){var ie=this.localeData()._week;return Xn(this.year(),ie.dow,ie.doy)},wi.weeksInWeekYear=function Is(){var ie=this.localeData()._week;return Xn(this.weekYear(),ie.dow,ie.doy)},wi.isoWeeksInYear=function Fa(){return Xn(this.year(),1,4)},wi.isoWeeksInISOWeekYear=function _c(){return Xn(this.isoWeekYear(),1,4)},wi.date=Kc,wi.day=wi.days=function dr(ie){if(!this.isValid())return null!=ie?this:NaN;var be=Io(this,"Day");return null!=ie?(ie=function gn(ie,be){return"string"!=typeof ie?ie:isNaN(ie)?"number"==typeof(ie=be.weekdaysParse(ie))?ie:null:parseInt(ie,10)}(ie,this.localeData()),this.add(ie-be,"d")):be},wi.weekday=function sr(ie){if(!this.isValid())return null!=ie?this:NaN;var be=(this.day()+7-this.localeData()._week.dow)%7;return null==ie?be:this.add(ie-be,"d")},wi.isoWeekday=function Ks(ie){if(!this.isValid())return null!=ie?this:NaN;if(null!=ie){var be=function Mt(ie,be){return"string"==typeof ie?be.weekdaysParse(ie)%7||7:isNaN(ie)?null:ie}(ie,this.localeData());return this.day(this.day()%7?be:be-7)}return this.day()||7},wi.dayOfYear=function Zd(ie){var be=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==ie?be:this.add(ie-be,"d")},wi.hour=wi.hours=Cs,wi.minute=wi.minutes=Ns,wi.second=wi.seconds=Dr,wi.millisecond=wi.milliseconds=Fc,wi.utcOffset=function yi(ie,be,Ye){var tn,ft=this._offset||0;if(!this.isValid())return null!=ie?this:NaN;if(null!=ie){if("string"==typeof ie){if(null===(ie=Fs(Wn,ie)))return this}else Math.abs(ie)<16&&!Ye&&(ie*=60);return!this._isUTC&&be&&(tn=Br(this)),this._offset=ie,this._isUTC=!0,null!=tn&&this.add(tn,"m"),ft!==ie&&(!be||this._changeInProgress?as(this,Wi(ie-ft,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?ft:Br(this)},wi.utc=function nc(ie){return this.utcOffset(0,ie)},wi.local=function Ic(ie){return this._isUTC&&(this.utcOffset(0,ie),this._isUTC=!1,ie&&this.subtract(Br(this),"m")),this},wi.parseZone=function al(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var ie=Fs(En,this._i);null!=ie?this.utcOffset(ie):this.utcOffset(0,!0)}return this},wi.hasAlignedHourOffset=function uc(ie){return!!this.isValid()&&(ie=ie?_e(ie).utcOffset():0,(this.utcOffset()-ie)%60==0)},wi.isDST=function Bs(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wi.isLocal=function ui(){return!!this.isValid()&&!this._isUTC},wi.isUtcOffset=function si(){return!!this.isValid()&&this._isUTC},wi.isUtc=Yi,wi.isUTC=Yi,wi.zoneAbbr=function ws(){return this._isUTC?"UTC":""},wi.zoneName=function Da(){return this._isUTC?"Coordinated Universal Time":""},wi.dates=p("dates accessor is deprecated. Use date instead.",Kc),wi.months=p("months accessor is deprecated. Use month instead",Pt),wi.years=p("years accessor is deprecated. Use year instead",Qo),wi.zone=p("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function os(ie,be){return null!=ie?("string"!=typeof ie&&(ie=-ie),this.utcOffset(ie,be),this):-this.utcOffset()}),wi.isDSTShifted=p("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Gn(){if(!l(this._isDSTShifted))return this._isDSTShifted;var be,ie={};return I(ie,this),(ie=qt(ie))._a?(be=ie._isUTC?w(ie._a):_e(ie._a),this._isDSTShifted=this.isValid()&&function _s(ie,be,Ye){var di,ft=Math.min(ie.length,be.length),tn=Math.abs(ie.length-be.length),Bn=0;for(di=0;di<ft;di++)(Ye&&ie[di]!==be[di]||!Ye&&rt(ie[di])!==rt(be[di]))&&Bn++;return Bn+tn}(ie._a,be.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var qo=ce.prototype;function fe(ie,be,Ye,ft){var tn=Ca(),Bn=w().set(ft,be);return tn[Ye](Bn,ie)}function ye(ie,be,Ye){if(m(ie)&&(be=ie,ie=void 0),ie=ie||"",null!=be)return fe(ie,be,Ye,"month");var ft,tn=[];for(ft=0;ft<12;ft++)tn[ft]=fe(ie,ft,Ye,"month");return tn}function se(ie,be,Ye,ft){"boolean"==typeof ie?(m(be)&&(Ye=be,be=void 0),be=be||""):(Ye=be=ie,ie=!1,m(be)&&(Ye=be,be=void 0),be=be||"");var di,tn=Ca(),Bn=ie?tn._week.dow:0,Gi=[];if(null!=Ye)return fe(be,(Ye+Bn)%7,ft,"day");for(di=0;di<7;di++)Gi[di]=fe(be,(di+Bn)%7,ft,"day");return Gi}qo.calendar=function Ge(ie,be,Ye){var ft=this._calendar[ie]||this._calendar.sameElse;return R(ft)?ft.call(be,Ye):ft},qo.longDateFormat=function Wt(ie){var be=this._longDateFormat[ie],Ye=this._longDateFormat[ie.toUpperCase()];return be||!Ye?be:(this._longDateFormat[ie]=Ye.match(pe).map(function(ft){return"MMMM"===ft||"MM"===ft||"DD"===ft||"dddd"===ft?ft.slice(1):ft}).join(""),this._longDateFormat[ie])},qo.invalidDate=function Qe(){return this._invalidDate},qo.ordinal=function lt(ie){return this._ordinal.replace("%d",ie)},qo.preparse=js,qo.postformat=js,qo.relativeTime=function Yt(ie,be,Ye,ft){var tn=this._relativeTime[Ye];return R(tn)?tn(ie,be,Ye,ft):tn.replace(/%d/i,ie)},qo.pastFuture=function Tt(ie,be){var Ye=this._relativeTime[ie>0?"future":"past"];return R(Ye)?Ye(be):Ye.replace(/%s/i,be)},qo.set=function ne(ie){var be,Ye;for(Ye in ie)u(ie,Ye)&&(R(be=ie[Ye])?this[Ye]=be:this["_"+Ye]=be);this._config=ie,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},qo.eras=function Hc(ie,be){var Ye,ft,tn,Bn=this._eras||Ca("en")._eras;for(Ye=0,ft=Bn.length;Ye<ft;++Ye)switch("string"==typeof Bn[Ye].since&&(tn=e(Bn[Ye].since).startOf("day"),Bn[Ye].since=tn.valueOf()),typeof Bn[Ye].until){case"undefined":Bn[Ye].until=1/0;break;case"string":tn=e(Bn[Ye].until).startOf("day").valueOf(),Bn[Ye].until=tn.valueOf()}return Bn},qo.erasParse=function fc(ie,be,Ye){var ft,tn,di,Gi,So,Bn=this.eras();for(ie=ie.toUpperCase(),ft=0,tn=Bn.length;ft<tn;++ft)if(di=Bn[ft].name.toUpperCase(),Gi=Bn[ft].abbr.toUpperCase(),So=Bn[ft].narrow.toUpperCase(),Ye)switch(be){case"N":case"NN":case"NNN":if(Gi===ie)return Bn[ft];break;case"NNNN":if(di===ie)return Bn[ft];break;case"NNNNN":if(So===ie)return Bn[ft]}else if([di,Gi,So].indexOf(ie)>=0)return Bn[ft]},qo.erasConvertYear=function Ir(ie,be){var Ye=ie.since<=ie.until?1:-1;return void 0===be?e(ie.since).year():e(ie.since).year()+(be-ie.offset)*Ye},qo.erasAbbrRegex=function nn(ie){return u(this,"_erasAbbrRegex")||ua.call(this),ie?this._erasAbbrRegex:this._erasRegex},qo.erasNameRegex=function Xt(ie){return u(this,"_erasNameRegex")||ua.call(this),ie?this._erasNameRegex:this._erasRegex},qo.erasNarrowRegex=function An(ie){return u(this,"_erasNarrowRegex")||ua.call(this),ie?this._erasNarrowRegex:this._erasRegex},qo.months=function et(ie,be){return ie?d(this._months)?this._months[ie.month()]:this._months[(this._months.isFormat||We).test(be)?"format":"standalone"][ie.month()]:d(this._months)?this._months:this._months.standalone},qo.monthsShort=function At(ie,be){return ie?d(this._monthsShort)?this._monthsShort[ie.month()]:this._monthsShort[We.test(be)?"format":"standalone"][ie.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},qo.monthsParse=function bt(ie,be,Ye){var ft,tn,Bn;if(this._monthsParseExact)return Ae.call(this,ie,be,Ye);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ft=0;ft<12;ft++){if(tn=w([2e3,ft]),Ye&&!this._longMonthsParse[ft]&&(this._longMonthsParse[ft]=new RegExp("^"+this.months(tn,"").replace(".","")+"$","i"),this._shortMonthsParse[ft]=new RegExp("^"+this.monthsShort(tn,"").replace(".","")+"$","i")),!Ye&&!this._monthsParse[ft]&&(Bn="^"+this.months(tn,"")+"|^"+this.monthsShort(tn,""),this._monthsParse[ft]=new RegExp(Bn.replace(".",""),"i")),Ye&&"MMMM"===be&&this._longMonthsParse[ft].test(ie))return ft;if(Ye&&"MMM"===be&&this._shortMonthsParse[ft].test(ie))return ft;if(!Ye&&this._monthsParse[ft].test(ie))return ft}},qo.monthsRegex=function jt(ie){return this._monthsParseExact?(u(this,"_monthsRegex")||ht.call(this),ie?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ue),this._monthsStrictRegex&&ie?this._monthsStrictRegex:this._monthsRegex)},qo.monthsShortRegex=function St(ie){return this._monthsParseExact?(u(this,"_monthsRegex")||ht.call(this),ie?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ut),this._monthsShortStrictRegex&&ie?this._monthsShortStrictRegex:this._monthsShortRegex)},qo.week=function _i(ie){return fn(ie,this._week.dow,this._week.doy).week},qo.firstDayOfYear=function li(){return this._week.doy},qo.firstDayOfWeek=function Ui(){return this._week.dow},qo.weekdays=function Zi(ie,be){var Ye=d(this._weekdays)?this._weekdays:this._weekdays[ie&&!0!==ie&&this._weekdays.isFormat.test(be)?"format":"standalone"];return!0===ie?$t(Ye,this._week.dow):ie?Ye[ie.day()]:Ye},qo.weekdaysMin=function na(ie){return!0===ie?$t(this._weekdaysMin,this._week.dow):ie?this._weekdaysMin[ie.day()]:this._weekdaysMin},qo.weekdaysShort=function Wo(ie){return!0===ie?$t(this._weekdaysShort,this._week.dow):ie?this._weekdaysShort[ie.day()]:this._weekdaysShort},qo.weekdaysParse=function rr(ie,be,Ye){var ft,tn,Bn;if(this._weekdaysParseExact)return qa.call(this,ie,be,Ye);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ft=0;ft<7;ft++){if(tn=w([2e3,1]).day(ft),Ye&&!this._fullWeekdaysParse[ft]&&(this._fullWeekdaysParse[ft]=new RegExp("^"+this.weekdays(tn,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ft]=new RegExp("^"+this.weekdaysShort(tn,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ft]=new RegExp("^"+this.weekdaysMin(tn,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ft]||(Bn="^"+this.weekdays(tn,"")+"|^"+this.weekdaysShort(tn,"")+"|^"+this.weekdaysMin(tn,""),this._weekdaysParse[ft]=new RegExp(Bn.replace(".",""),"i")),Ye&&"dddd"===be&&this._fullWeekdaysParse[ft].test(ie))return ft;if(Ye&&"ddd"===be&&this._shortWeekdaysParse[ft].test(ie))return ft;if(Ye&&"dd"===be&&this._minWeekdaysParse[ft].test(ie))return ft;if(!Ye&&this._weekdaysParse[ft].test(ie))return ft}},qo.weekdaysRegex=function _r(ie){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||gr.call(this),ie?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=eo),this._weekdaysStrictRegex&&ie?this._weekdaysStrictRegex:this._weekdaysRegex)},qo.weekdaysShortRegex=function _o(ie){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||gr.call(this),ie?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Oo),this._weekdaysShortStrictRegex&&ie?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},qo.weekdaysMinRegex=function to(ie){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||gr.call(this),ie?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fo),this._weekdaysMinStrictRegex&&ie?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},qo.isPM=function vr(ie){return"p"===(ie+"").toLowerCase().charAt(0)},qo.meridiem=function ia(ie,be,Ye){return ie>11?Ye?"pm":"PM":Ye?"am":"AM"},er("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ie){var be=ie%10;return ie+(1===rt(ie%100/10)?"th":1===be?"st":2===be?"nd":3===be?"rd":"th")}}),e.lang=p("moment.lang is deprecated. Use moment.locale instead.",er),e.langData=p("moment.langData is deprecated. Use moment.localeData instead.",Ca);var mi=Math.abs;function zi(ie,be,Ye,ft){var tn=Wi(be,Ye);return ie._milliseconds+=ft*tn._milliseconds,ie._days+=ft*tn._days,ie._months+=ft*tn._months,ie._bubble()}function Kr(ie){return ie<0?Math.floor(ie):Math.ceil(ie)}function gs(ie){return 4800*ie/146097}function Qa(ie){return 146097*ie/4800}function Vr(ie){return function(){return this.as(ie)}}var Js=Vr("ms"),Gc=Vr("s"),vs=Vr("m"),fd=Vr("h"),Jd=Vr("d"),Qc=Vr("w"),_d=Vr("M"),qd=Vr("Q"),Gr=Vr("y"),gd=Js;function Bc(ie){return function(){return this.isValid()?this._data[ie]:NaN}}var cl=Bc("milliseconds"),Xc=Bc("seconds"),Ql=Bc("minutes"),ys=Bc("hours"),Ml=Bc("days"),dp=Bc("months"),up=Bc("years");var ss=Math.round,Dl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Zc(ie,be,Ye,ft,tn){return tn.relativeTime(be||1,!!Ye,ie,ft)}var dl=Math.abs;function ac(ie){return(ie>0)-(ie<0)||+ie}function Ol(){if(!this.isValid())return this.localeData().invalidDate();var ft,tn,Bn,di,So,Bo,$r,rc,ie=dl(this._milliseconds)/1e3,be=dl(this._days),Ye=dl(this._months),Gi=this.asSeconds();return Gi?(ft=dt(ie/60),tn=dt(ft/60),ie%=60,ft%=60,Bn=dt(Ye/12),Ye%=12,di=ie?ie.toFixed(3).replace(/\.?0+$/,""):"",So=Gi<0?"-":"",Bo=ac(this._months)!==ac(Gi)?"-":"",$r=ac(this._days)!==ac(Gi)?"-":"",rc=ac(this._milliseconds)!==ac(Gi)?"-":"",So+"P"+(Bn?Bo+Bn+"Y":"")+(Ye?Bo+Ye+"M":"")+(be?$r+be+"D":"")+(tn||ft||ie?"T":"")+(tn?rc+tn+"H":"")+(ft?rc+ft+"M":"")+(ie?rc+di+"S":"")):"P0D"}var pa=ka.prototype;return pa.isValid=function $a(){return this._isValid},pa.abs=function Vi(){var ie=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),ie.milliseconds=mi(ie.milliseconds),ie.seconds=mi(ie.seconds),ie.minutes=mi(ie.minutes),ie.hours=mi(ie.hours),ie.months=mi(ie.months),ie.years=mi(ie.years),this},pa.add=function fa(ie,be){return zi(this,ie,be,1)},pa.subtract=function wr(ie,be){return zi(this,ie,be,-1)},pa.as=function Gl(ie){if(!this.isValid())return NaN;var be,Ye,ft=this._milliseconds;if("month"===(ie=Gt(ie))||"quarter"===ie||"year"===ie)switch(be=this._days+ft/864e5,Ye=this._months+gs(be),ie){case"month":return Ye;case"quarter":return Ye/3;case"year":return Ye/12}else switch(be=this._days+Math.round(Qa(this._months)),ie){case"week":return be/7+ft/6048e5;case"day":return be+ft/864e5;case"hour":return 24*be+ft/36e5;case"minute":return 1440*be+ft/6e4;case"second":return 86400*be+ft/1e3;case"millisecond":return Math.floor(864e5*be)+ft;default:throw new Error("Unknown unit "+ie)}},pa.asMilliseconds=Js,pa.asSeconds=Gc,pa.asMinutes=vs,pa.asHours=fd,pa.asDays=Jd,pa.asWeeks=Qc,pa.asMonths=_d,pa.asQuarters=qd,pa.asYears=Gr,pa.valueOf=gd,pa._bubble=function Us(){var tn,Bn,di,Gi,So,ie=this._milliseconds,be=this._days,Ye=this._months,ft=this._data;return ie>=0&&be>=0&&Ye>=0||ie<=0&&be<=0&&Ye<=0||(ie+=864e5*Kr(Qa(Ye)+be),be=0,Ye=0),ft.milliseconds=ie%1e3,tn=dt(ie/1e3),ft.seconds=tn%60,Bn=dt(tn/60),ft.minutes=Bn%60,di=dt(Bn/60),ft.hours=di%24,be+=dt(di/24),Ye+=So=dt(gs(be)),be-=Kr(Qa(So)),Gi=dt(Ye/12),Ye%=12,ft.days=be,ft.months=Ye,ft.years=Gi,this},pa.clone=function sl(){return Wi(this)},pa.get=function Vs(ie){return ie=Gt(ie),this.isValid()?this[ie+"s"]():NaN},pa.milliseconds=cl,pa.seconds=Xc,pa.minutes=Ql,pa.hours=ys,pa.days=Ml,pa.weeks=function vd(){return dt(this.days()/7)},pa.months=dp,pa.years=up,pa.humanize=function ll(ie,be){if(!this.isValid())return this.localeData().invalidDate();var tn,Bn,Ye=!1,ft=Dl;return"object"==typeof ie&&(be=ie,ie=!1),"boolean"==typeof ie&&(Ye=ie),"object"==typeof be&&(ft=Object.assign({},Dl,be),null!=be.s&&null==be.ss&&(ft.ss=be.s-1)),Bn=function Pl(ie,be,Ye,ft){var tn=Wi(ie).abs(),Bn=ss(tn.as("s")),di=ss(tn.as("m")),Gi=ss(tn.as("h")),So=ss(tn.as("d")),Bo=ss(tn.as("M")),$r=ss(tn.as("w")),rc=ss(tn.as("y")),cs=Bn<=Ye.ss&&["s",Bn]||Bn<Ye.s&&["ss",Bn]||di<=1&&["m"]||di<Ye.m&&["mm",di]||Gi<=1&&["h"]||Gi<Ye.h&&["hh",Gi]||So<=1&&["d"]||So<Ye.d&&["dd",So];return null!=Ye.w&&(cs=cs||$r<=1&&["w"]||$r<Ye.w&&["ww",$r]),(cs=cs||Bo<=1&&["M"]||Bo<Ye.M&&["MM",Bo]||rc<=1&&["y"]||["yy",rc])[2]=be,cs[3]=+ie>0,cs[4]=ft,Zc.apply(null,cs)}(this,!Ye,ft,tn=this.localeData()),Ye&&(Bn=tn.pastFuture(+this,Bn)),tn.postformat(Bn)},pa.toISOString=Ol,pa.toString=Ol,pa.toJSON=Ol,pa.locale=Ka,pa.localeData=La,pa.toIsoString=p("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ol),pa.lang=Nr,Z("X",0,0,"unix"),Z("x",0,0,"valueOf"),J("x",Bt),J("X",/[+-]?\d+(\.\d{1,3})?/),ze("X",function(ie,be,Ye){Ye._d=new Date(1e3*parseFloat(ie))}),ze("x",function(ie,be,Ye){Ye._d=new Date(rt(ie))}),e.version="2.30.1",function i(ie){n=ie}(_e),e.fn=wi,e.min=function Rn(){return On("isBefore",[].slice.call(arguments,0))},e.max=function ni(){return On("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=w,e.unix=function Ur(ie){return _e(1e3*ie)},e.months=function Ne(ie,be){return ye(ie,be,"months")},e.isDate=x,e.locale=er,e.invalid=C,e.duration=Wi,e.isMoment=z,e.weekdays=function Ft(ie,be,Ye){return se(ie,be,Ye,"weekdays")},e.parseZone=function ir(){return _e.apply(null,arguments).parseZone()},e.localeData=Ca,e.isDuration=Po,e.monthsShort=function st(ie,be){return ye(ie,be,"monthsShort")},e.weekdaysMin=function jn(ie,be,Ye){return se(ie,be,Ye,"weekdaysMin")},e.defineLocale=pr,e.updateLocale=function Ua(ie,be){if(null!=be){var Ye,ft,tn=Er;null!=yo[ie]&&null!=yo[ie].parentLocale?yo[ie].set(G(yo[ie]._config,be)):(null!=(ft=ts(ie))&&(tn=ft._config),be=G(tn,be),null==ft&&(be.abbr=ie),(Ye=new ce(be)).parentLocale=yo[ie],yo[ie]=Ye),er(ie)}else null!=yo[ie]&&(null!=yo[ie].parentLocale?(yo[ie]=yo[ie].parentLocale,ie===er()&&er(ie)):null!=yo[ie]&&delete yo[ie]);return yo[ie]},e.locales=function Va(){return xe(yo)},e.weekdaysShort=function an(ie,be,Ye){return se(ie,be,Ye,"weekdaysShort")},e.normalizeUnits=Gt,e.relativeTimeRounding=function Xl(ie){return void 0===ie?ss:"function"==typeof ie&&(ss=ie,!0)},e.relativeTimeThreshold=function El(ie,be){return void 0!==Dl[ie]&&(void 0===be?Dl[ie]:(Dl[ie]=be,"s"===ie&&(Dl.ss=be-1),!0))},e.calendarFormat=function Re(ie,be){var Ye=ie.diff(be,"days",!0);return Ye<-6?"sameElse":Ye<-1?"lastWeek":Ye<0?"lastDay":Ye<1?"sameDay":Ye<2?"nextDay":Ye<7?"nextWeek":"sameElse"},e.prototype=wi,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},61135:(Ee,Q,t)=>{"use strict";t.d(Q,{X:()=>e});var n=t(77579);class e extends n.x{constructor(d){super(),this._value=d}get value(){return this.getValue()}_subscribe(d){const a=super._subscribe(d);return!a.closed&&d.next(this._value),a}getValue(){const{hasError:d,thrownError:a,_value:u}=this;if(d)throw a;return this._throwIfClosed(),u}next(d){super.next(this._value=d)}}},69751:(Ee,Q,t)=>{"use strict";t.d(Q,{y:()=>l});var n=t(70930),e=t(50727),i=t(48822),d=t(89635),a=t(42416),u=t(30576),h=t(72806);let l=(()=>{class L{constructor(B){B&&(this._subscribe=B)}lift(B){const _=new L;return _.source=this,_.operator=B,_}subscribe(B,_,y){const $=function O(L){return L&&L instanceof n.Lv||function x(L){return L&&(0,u.m)(L.next)&&(0,u.m)(L.error)&&(0,u.m)(L.complete)}(L)&&(0,e.Nn)(L)}(B)?B:new n.Hp(B,_,y);return(0,h.x)(()=>{const{operator:C,source:T}=this;$.add(C?C.call($,T):T?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(B){try{return this._subscribe(B)}catch(_){B.error(_)}}forEach(B,_){return new(_=m(_))((y,$)=>{const C=new n.Hp({next:T=>{try{B(T)}catch(j){$(j),C.unsubscribe()}},error:$,complete:y});this.subscribe(C)})}_subscribe(B){var _;return null===(_=this.source)||void 0===_?void 0:_.subscribe(B)}[i.L](){return this}pipe(...B){return(0,d.U)(B)(this)}toPromise(B){return new(B=m(B))((_,y)=>{let $;this.subscribe(C=>$=C,C=>y(C),()=>_($))})}}return L.create=w=>new L(w),L})();function m(L){var w;return null!==(w=L??a.v.Promise)&&void 0!==w?w:Promise}},4707:(Ee,Q,t)=>{"use strict";t.d(Q,{t:()=>i});var n=t(77579),e=t(26063);class i extends n.x{constructor(a=1/0,u=1/0,h=e.l){super(),this._bufferSize=a,this._windowTime=u,this._timestampProvider=h,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=u===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,u)}next(a){const{isStopped:u,_buffer:h,_infiniteTimeWindow:l,_timestampProvider:m,_windowTime:x}=this;u||(h.push(a),!l&&h.push(m.now()+x)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const u=this._innerSubscribe(a),{_infiniteTimeWindow:h,_buffer:l}=this,m=l.slice();for(let x=0;x<m.length&&!a.closed;x+=h?1:2)a.next(m[x]);return this._checkFinalizedStatuses(a),u}_trimBuffer(){const{_bufferSize:a,_timestampProvider:u,_buffer:h,_infiniteTimeWindow:l}=this,m=(l?1:2)*a;if(a<1/0&&m<h.length&&h.splice(0,h.length-m),!l){const x=u.now();let O=0;for(let L=1;L<h.length&&h[L]<=x;L+=2)O=L;O&&h.splice(0,O+1)}}}},77579:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>h});var n=t(69751),e=t(50727);const d=(0,t(83888).d)(m=>function(){m(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=t(38737),u=t(72806);let h=(()=>{class m extends n.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(O){const L=new l(this,this);return L.operator=O,L}_throwIfClosed(){if(this.closed)throw new d}next(O){(0,u.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const L of this.currentObservers)L.next(O)}})}error(O){(0,u.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=O;const{observers:L}=this;for(;L.length;)L.shift().error(O)}})}complete(){(0,u.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:O}=this;for(;O.length;)O.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var O;return(null===(O=this.observers)||void 0===O?void 0:O.length)>0}_trySubscribe(O){return this._throwIfClosed(),super._trySubscribe(O)}_subscribe(O){return this._throwIfClosed(),this._checkFinalizedStatuses(O),this._innerSubscribe(O)}_innerSubscribe(O){const{hasError:L,isStopped:w,observers:B}=this;return L||w?e.Lc:(this.currentObservers=null,B.push(O),new e.w0(()=>{this.currentObservers=null,(0,a.P)(B,O)}))}_checkFinalizedStatuses(O){const{hasError:L,thrownError:w,isStopped:B}=this;L?O.error(w):B&&O.complete()}asObservable(){const O=new n.y;return O.source=this,O}}return m.create=(x,O)=>new l(x,O),m})();class l extends h{constructor(x,O){super(),this.destination=x,this.source=O}next(x){var O,L;null===(L=null===(O=this.destination)||void 0===O?void 0:O.next)||void 0===L||L.call(O,x)}error(x){var O,L;null===(L=null===(O=this.destination)||void 0===O?void 0:O.error)||void 0===L||L.call(O,x)}complete(){var x,O;null===(O=null===(x=this.destination)||void 0===x?void 0:x.complete)||void 0===O||O.call(x)}_subscribe(x){var O,L;return null!==(L=null===(O=this.source)||void 0===O?void 0:O.subscribe(x))&&void 0!==L?L:e.Lc}}},70930:(Ee,Q,t)=>{"use strict";t.d(Q,{Hp:()=>y,Lv:()=>L});var n=t(30576),e=t(50727),i=t(42416),d=t(87849),a=t(25032);const u=m("C",void 0,void 0);function m(I,F,z){return{kind:I,value:F,error:z}}var x=t(43410),O=t(72806);class L extends e.w0{constructor(F){super(),this.isStopped=!1,F?(this.destination=F,(0,e.Nn)(F)&&F.add(this)):this.destination=j}static create(F,z,X){return new y(F,z,X)}next(F){this.isStopped?T(function l(I){return m("N",I,void 0)}(F),this):this._next(F)}error(F){this.isStopped?T(function h(I){return m("E",void 0,I)}(F),this):(this.isStopped=!0,this._error(F))}complete(){this.isStopped?T(u,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(F){this.destination.next(F)}_error(F){try{this.destination.error(F)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const w=Function.prototype.bind;function B(I,F){return w.call(I,F)}class _{constructor(F){this.partialObserver=F}next(F){const{partialObserver:z}=this;if(z.next)try{z.next(F)}catch(X){$(X)}}error(F){const{partialObserver:z}=this;if(z.error)try{z.error(F)}catch(X){$(X)}else $(F)}complete(){const{partialObserver:F}=this;if(F.complete)try{F.complete()}catch(z){$(z)}}}class y extends L{constructor(F,z,X){let p;if(super(),(0,n.m)(F)||!F)p={next:F??void 0,error:z??void 0,complete:X??void 0};else{let P;this&&i.v.useDeprecatedNextContext?(P=Object.create(F),P.unsubscribe=()=>this.unsubscribe(),p={next:F.next&&B(F.next,P),error:F.error&&B(F.error,P),complete:F.complete&&B(F.complete,P)}):p=F}this.destination=new _(p)}}function $(I){i.v.useDeprecatedSynchronousErrorHandling?(0,O.O)(I):(0,d.h)(I)}function T(I,F){const{onStoppedNotification:z}=i.v;z&&x.z.setTimeout(()=>z(I,F))}const j={closed:!0,next:a.Z,error:function C(I){throw I},complete:a.Z}},50727:(Ee,Q,t)=>{"use strict";t.d(Q,{Lc:()=>u,w0:()=>a,Nn:()=>h});var n=t(30576);const i=(0,t(83888).d)(m=>function(O){m(this),this.message=O?`${O.length} errors occurred during unsubscription:\n${O.map((L,w)=>`${w+1}) ${L.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=O});var d=t(38737);class a{constructor(x){this.initialTeardown=x,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let x;if(!this.closed){this.closed=!0;const{_parentage:O}=this;if(O)if(this._parentage=null,Array.isArray(O))for(const B of O)B.remove(this);else O.remove(this);const{initialTeardown:L}=this;if((0,n.m)(L))try{L()}catch(B){x=B instanceof i?B.errors:[B]}const{_finalizers:w}=this;if(w){this._finalizers=null;for(const B of w)try{l(B)}catch(_){x=x??[],_ instanceof i?x=[...x,..._.errors]:x.push(_)}}if(x)throw new i(x)}}add(x){var O;if(x&&x!==this)if(this.closed)l(x);else{if(x instanceof a){if(x.closed||x._hasParent(this))return;x._addParent(this)}(this._finalizers=null!==(O=this._finalizers)&&void 0!==O?O:[]).push(x)}}_hasParent(x){const{_parentage:O}=this;return O===x||Array.isArray(O)&&O.includes(x)}_addParent(x){const{_parentage:O}=this;this._parentage=Array.isArray(O)?(O.push(x),O):O?[O,x]:x}_removeParent(x){const{_parentage:O}=this;O===x?this._parentage=null:Array.isArray(O)&&(0,d.P)(O,x)}remove(x){const{_finalizers:O}=this;O&&(0,d.P)(O,x),x instanceof a&&x._removeParent(this)}}a.EMPTY=(()=>{const m=new a;return m.closed=!0,m})();const u=a.EMPTY;function h(m){return m instanceof a||m&&"closed"in m&&(0,n.m)(m.remove)&&(0,n.m)(m.add)&&(0,n.m)(m.unsubscribe)}function l(m){(0,n.m)(m)?m():m.unsubscribe()}},42416:(Ee,Q,t)=>{"use strict";t.d(Q,{v:()=>n});const n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},39841:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>x,l:()=>O});var n=t(69751),e=t(54742),i=t(32076),d=t(44671),a=t(83268),u=t(63269),h=t(31810),l=t(25403),m=t(39672);function x(...w){const B=(0,u.yG)(w),_=(0,u.jO)(w),{args:y,keys:$}=(0,e.D)(w);if(0===y.length)return(0,i.D)([],B);const C=new n.y(O(y,B,$?T=>(0,h.n)($,T):d.y));return _?C.pipe((0,a.Z)(_)):C}function O(w,B,_=d.y){return y=>{L(B,()=>{const{length:$}=w,C=new Array($);let T=$,j=$;for(let I=0;I<$;I++)L(B,()=>{const F=(0,i.D)(w[I],B);let z=!1;F.subscribe((0,l.x)(y,X=>{C[I]=X,z||(z=!0,j--),j||y.next(_(C.slice()))},()=>{--T||y.complete()}))},y)},y)}}function L(w,B,_){w?(0,m.f)(_,w,B):B()}},97272:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>a});var n=t(8189),i=t(63269),d=t(32076);function a(...u){return function e(){return(0,n.J)(1)}()((0,d.D)(u,(0,i.yG)(u)))}},49770:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>i});var n=t(69751),e=t(38421);function i(d){return new n.y(a=>{(0,e.Xf)(d()).subscribe(a)})}},60515:(Ee,Q,t)=>{"use strict";t.d(Q,{E:()=>e});const e=new(t(69751).y)(a=>a.complete())},4128:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>l});var n=t(69751),e=t(54742),i=t(38421),d=t(63269),a=t(25403),u=t(83268),h=t(31810);function l(...m){const x=(0,d.jO)(m),{args:O,keys:L}=(0,e.D)(m),w=new n.y(B=>{const{length:_}=O;if(!_)return void B.complete();const y=new Array(_);let $=_,C=_;for(let T=0;T<_;T++){let j=!1;(0,i.Xf)(O[T]).subscribe((0,a.x)(B,I=>{j||(j=!0,C--),y[T]=I},()=>$--,void 0,()=>{(!$||!j)&&(C||B.next(L?(0,h.n)(L,y):y),B.complete())}))}});return x?w.pipe((0,u.Z)(x)):w}},32076:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>X});var n=t(38421),e=t(39672),i=t(54482),d=t(25403);function a(p,P=0){return(0,i.e)((E,R)=>{E.subscribe((0,d.x)(R,ne=>(0,e.f)(R,p,()=>R.next(ne),P),()=>(0,e.f)(R,p,()=>R.complete(),P),ne=>(0,e.f)(R,p,()=>R.error(ne),P)))})}function u(p,P=0){return(0,i.e)((E,R)=>{R.add(p.schedule(()=>E.subscribe(R),P))})}var m=t(69751),O=t(2202),L=t(30576);function B(p,P){if(!p)throw new Error("Iterable cannot be null");return new m.y(E=>{(0,e.f)(E,P,()=>{const R=p[Symbol.asyncIterator]();(0,e.f)(E,P,()=>{R.next().then(ne=>{ne.done?E.complete():E.next(ne.value)})},0,!0)})})}var _=t(93670),y=t(28239),$=t(81144),C=t(26495),T=t(12206),j=t(44532),I=t(53260);function X(p,P){return P?function z(p,P){if(null!=p){if((0,_.c)(p))return function h(p,P){return(0,n.Xf)(p).pipe(u(P),a(P))}(p,P);if((0,$.z)(p))return function x(p,P){return new m.y(E=>{let R=0;return P.schedule(function(){R===p.length?E.complete():(E.next(p[R++]),E.closed||this.schedule())})})}(p,P);if((0,y.t)(p))return function l(p,P){return(0,n.Xf)(p).pipe(u(P),a(P))}(p,P);if((0,T.D)(p))return B(p,P);if((0,C.T)(p))return function w(p,P){return new m.y(E=>{let R;return(0,e.f)(E,P,()=>{R=p[O.h](),(0,e.f)(E,P,()=>{let ne,G;try{({value:ne,done:G}=R.next())}catch(ce){return void E.error(ce)}G?E.complete():E.next(ne)},0,!0)}),()=>(0,L.m)(R?.return)&&R.return()})}(p,P);if((0,I.L)(p))return function F(p,P){return B((0,I.Q)(p),P)}(p,P)}throw(0,j.z)(p)}(p,P):(0,n.Xf)(p)}},54968:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>x});var n=t(38421),e=t(69751),i=t(86099),d=t(81144),a=t(30576),u=t(83268);const h=["addListener","removeListener"],l=["addEventListener","removeEventListener"],m=["on","off"];function x(_,y,$,C){if((0,a.m)($)&&(C=$,$=void 0),C)return x(_,y,$).pipe((0,u.Z)(C));const[T,j]=function B(_){return(0,a.m)(_.addEventListener)&&(0,a.m)(_.removeEventListener)}(_)?l.map(I=>F=>_[I](y,F,$)):function L(_){return(0,a.m)(_.addListener)&&(0,a.m)(_.removeListener)}(_)?h.map(O(_,y)):function w(_){return(0,a.m)(_.on)&&(0,a.m)(_.off)}(_)?m.map(O(_,y)):[];if(!T&&(0,d.z)(_))return(0,i.z)(I=>x(I,y,$))((0,n.Xf)(_));if(!T)throw new TypeError("Invalid event target");return new e.y(I=>{const F=(...z)=>I.next(1<z.length?z:z[0]);return T(F),()=>j(F)})}function O(_,y){return $=>C=>_[$](y,C)}},48382:(Ee,Q,t)=>{"use strict";t.d(Q,{s:()=>e});var n=t(49770);function e(i,d,a){return(0,n.P)(()=>i()?d:a)}},38421:(Ee,Q,t)=>{"use strict";t.d(Q,{Xf:()=>w});var n=t(97582),e=t(81144),i=t(28239),d=t(69751),a=t(93670),u=t(12206),h=t(44532),l=t(26495),m=t(53260),x=t(30576),O=t(87849),L=t(48822);function w(I){if(I instanceof d.y)return I;if(null!=I){if((0,a.c)(I))return function B(I){return new d.y(F=>{const z=I[L.L]();if((0,x.m)(z.subscribe))return z.subscribe(F);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(I);if((0,e.z)(I))return function _(I){return new d.y(F=>{for(let z=0;z<I.length&&!F.closed;z++)F.next(I[z]);F.complete()})}(I);if((0,i.t)(I))return function y(I){return new d.y(F=>{I.then(z=>{F.closed||(F.next(z),F.complete())},z=>F.error(z)).then(null,O.h)})}(I);if((0,u.D)(I))return C(I);if((0,l.T)(I))return function $(I){return new d.y(F=>{for(const z of I)if(F.next(z),F.closed)return;F.complete()})}(I);if((0,m.L)(I))return function T(I){return C((0,m.Q)(I))}(I)}throw(0,h.z)(I)}function C(I){return new d.y(F=>{(function j(I,F){var z,X,p,P;return(0,n.mG)(this,void 0,void 0,function*(){try{for(z=(0,n.KL)(I);!(X=yield z.next()).done;)if(F.next(X.value),F.closed)return}catch(E){p={error:E}}finally{try{X&&!X.done&&(P=z.return)&&(yield P.call(z))}finally{if(p)throw p.error}}F.complete()})})(I,F).catch(z=>F.error(z))})}},17445:(Ee,Q,t)=>{"use strict";t.d(Q,{F:()=>i});var n=t(34986),e=t(82805);function i(d=0,a=n.z){return d<0&&(d=0),(0,e.H)(d,d,a)}},56451:(Ee,Q,t)=>{"use strict";t.d(Q,{T:()=>u});var n=t(8189),e=t(38421),i=t(60515),d=t(63269),a=t(32076);function u(...h){const l=(0,d.yG)(h),m=(0,d._6)(h,1/0),x=h;return x.length?1===x.length?(0,e.Xf)(x[0]):(0,n.J)(m)((0,a.D)(x,l)):i.E}},39646:(Ee,Q,t)=>{"use strict";t.d(Q,{of:()=>i});var n=t(63269),e=t(32076);function i(...d){const a=(0,n.yG)(d);return(0,e.D)(d,a)}},54355:(Ee,Q,t)=>{"use strict";t.d(Q,{S:()=>a});var n=t(69751),e=t(38421),i=t(75797),d=t(25403);function a(...h){return 1===(h=(0,i.k)(h)).length?(0,e.Xf)(h[0]):new n.y(function u(h){return l=>{let m=[];for(let x=0;m&&!l.closed&&x<h.length;x++)m.push((0,e.Xf)(h[x]).subscribe((0,d.x)(l,O=>{if(m){for(let L=0;L<m.length;L++)L!==x&&m[L].unsubscribe();m=null}l.next(O)})))}}(h))}},62843:(Ee,Q,t)=>{"use strict";t.d(Q,{_:()=>i});var n=t(69751),e=t(30576);function i(d,a){const u=(0,e.m)(d)?d:()=>d,h=l=>l.error(u());return new n.y(a?l=>a.schedule(h,0,l):h)}},82805:(Ee,Q,t)=>{"use strict";t.d(Q,{H:()=>a});var n=t(69751),e=t(34986),i=t(93532),d=t(51165);function a(u=0,h,l=e.P){let m=-1;return null!=h&&((0,i.K)(h)?l=h:m=h),new n.y(x=>{let O=(0,d.q)(u)?+u-l.now():u;O<0&&(O=0);let L=0;return l.schedule(function(){x.closed||(x.next(L++),0<=m?this.schedule(void 0,m):x.complete())},O)})}},62557:(Ee,Q,t)=>{"use strict";t.d(Q,{$:()=>h});var n=t(69751),e=t(38421),i=t(75797),d=t(60515),a=t(25403),u=t(63269);function h(...l){const m=(0,u.jO)(l),x=(0,i.k)(l);return x.length?new n.y(O=>{let L=x.map(()=>[]),w=x.map(()=>!1);O.add(()=>{L=w=null});for(let B=0;!O.closed&&B<x.length;B++)(0,e.Xf)(x[B]).subscribe((0,a.x)(O,_=>{if(L[B].push(_),L.every(y=>y.length)){const y=L.map($=>$.shift());O.next(m?m(...y):y),L.some(($,C)=>!$.length&&w[C])&&O.complete()}},()=>{w[B]=!0,!L[B].length&&O.complete()}));return()=>{L=w=null}}):d.E}},25403:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>e});var n=t(70930);function e(d,a,u,h,l){return new i(d,a,u,h,l)}class i extends n.Lv{constructor(a,u,h,l,m,x){super(a),this.onFinalize=m,this.shouldUnsubscribe=x,this._next=u?function(O){try{u(O)}catch(L){a.error(L)}}:super._next,this._error=l?function(O){try{l(O)}catch(L){a.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=h?function(){try{h()}catch(O){a.error(O)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:u}=this;super.unsubscribe(),!u&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},23601:(Ee,Q,t)=>{"use strict";t.d(Q,{e:()=>h});var n=t(34986),e=t(54482),i=t(38421),d=t(25403),u=t(82805);function h(l,m=n.z){return function a(l){return(0,e.e)((m,x)=>{let O=!1,L=null,w=null,B=!1;const _=()=>{if(w?.unsubscribe(),w=null,O){O=!1;const $=L;L=null,x.next($)}B&&x.complete()},y=()=>{w=null,B&&x.complete()};m.subscribe((0,d.x)(x,$=>{O=!0,L=$,w||(0,i.Xf)(l($)).subscribe(w=(0,d.x)(x,_,y))},()=>{B=!0,(!O||!w||w.closed)&&x.complete()}))})}(()=>(0,u.H)(l,m))}},70262:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>d});var n=t(38421),e=t(25403),i=t(54482);function d(a){return(0,i.e)((u,h)=>{let x,l=null,m=!1;l=u.subscribe((0,e.x)(h,void 0,void 0,O=>{x=(0,n.Xf)(a(O,d(a)(u))),l?(l.unsubscribe(),l=null,x.subscribe(h)):m=!0})),m&&(l.unsubscribe(),l=null,x.subscribe(h))})}},92718:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>l});var n=t(39841),e=t(54482),i=t(75797),d=t(83268),a=t(89635),u=t(63269);function h(...m){const x=(0,u.jO)(m);return x?(0,a.z)(h(...m),(0,d.Z)(x)):(0,e.e)((O,L)=>{(0,n.l)([O,...(0,i.k)(m)])(L)})}function l(...m){return h(...m)}},24351:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>i});var n=t(86099),e=t(30576);function i(d,a){return(0,e.m)(a)?(0,n.z)(d,a,1):(0,n.z)(d,1)}},7331:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>a});var n=t(54482),e=t(25032),i=t(25403),d=t(38421);function a(u){return(0,n.e)((h,l)=>{let m=!1,x=null,O=null;const L=()=>{if(O?.unsubscribe(),O=null,m){m=!1;const w=x;x=null,l.next(w)}};h.subscribe((0,i.x)(l,w=>{O?.unsubscribe(),m=!0,x=w,O=(0,i.x)(l,L,e.Z),(0,d.Xf)(u(w)).subscribe(O)},()=>{L(),l.complete()},void 0,()=>{x=O=null}))})}},78372:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>d});var n=t(34986),e=t(54482),i=t(25403);function d(a,u=n.z){return(0,e.e)((h,l)=>{let m=null,x=null,O=null;const L=()=>{if(m){m.unsubscribe(),m=null;const B=x;x=null,l.next(B)}};function w(){const B=O+a,_=u.now();if(_<B)return m=this.schedule(void 0,B-_),void l.add(m);L()}h.subscribe((0,i.x)(l,B=>{x=B,O=u.now(),m||(m=u.schedule(w,a),l.add(m))},()=>{L(),l.complete()},void 0,()=>{x=m=null}))})}},46590:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>i});var n=t(54482),e=t(25403);function i(d){return(0,n.e)((a,u)=>{let h=!1;a.subscribe((0,e.x)(u,l=>{h=!0,u.next(l)},()=>{h||u.next(d),u.complete()}))})}},91005:(Ee,Q,t)=>{"use strict";t.d(Q,{g:()=>w});var n=t(34986),e=t(97272),i=t(95698),d=t(54482),a=t(25403),u=t(25032),l=t(69718),m=t(86099),x=t(38421);function O(B,_){return _?y=>(0,e.z)(_.pipe((0,i.q)(1),function h(){return(0,d.e)((B,_)=>{B.subscribe((0,a.x)(_,u.Z))})}()),y.pipe(O(B))):(0,m.z)((y,$)=>(0,x.Xf)(B(y,$)).pipe((0,i.q)(1),(0,l.h)(y)))}var L=t(82805);function w(B,_=n.z){const y=(0,L.H)(B,_);return O(()=>y)}},71884:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>d});var n=t(44671),e=t(54482),i=t(25403);function d(u,h=n.y){return u=u??a,(0,e.e)((l,m)=>{let x,O=!0;l.subscribe((0,i.x)(m,L=>{const w=h(L);(O||!u(x,w))&&(O=!1,x=w,m.next(L))}))})}function a(u,h){return u===h}},39300:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>i});var n=t(54482),e=t(25403);function i(d,a){return(0,n.e)((u,h)=>{let l=0;u.subscribe((0,e.x)(h,m=>d.call(a,m,l++)&&h.next(m)))})}},28746:(Ee,Q,t)=>{"use strict";t.d(Q,{x:()=>e});var n=t(54482);function e(i){return(0,n.e)((d,a)=>{try{d.subscribe(a)}finally{a.add(i)}})}},54004:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>i});var n=t(54482),e=t(25403);function i(d,a){return(0,n.e)((u,h)=>{let l=0;u.subscribe((0,e.x)(h,m=>{h.next(d.call(a,m,l++))}))})}},69718:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>e});var n=t(54004);function e(i){return(0,n.U)(()=>i)}},8189:(Ee,Q,t)=>{"use strict";t.d(Q,{J:()=>i});var n=t(86099),e=t(44671);function i(d=1/0){return(0,n.z)(e.y,d)}},72733:(Ee,Q,t)=>{"use strict";t.d(Q,{p:()=>d});var n=t(38421),e=t(39672),i=t(25403);function d(a,u,h,l,m,x,O,L){const w=[];let B=0,_=0,y=!1;const $=()=>{y&&!w.length&&!B&&u.complete()},C=j=>B<l?T(j):w.push(j),T=j=>{x&&u.next(j),B++;let I=!1;(0,n.Xf)(h(j,_++)).subscribe((0,i.x)(u,F=>{m?.(F),x?C(F):u.next(F)},()=>{I=!0},void 0,()=>{if(I)try{for(B--;w.length&&B<l;){const F=w.shift();O?(0,e.f)(u,O,()=>T(F)):T(F)}$()}catch(F){u.error(F)}}))};return a.subscribe((0,i.x)(u,C,()=>{y=!0,$()})),()=>{L?.()}}},86099:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>u});var n=t(54004),e=t(38421),i=t(54482),d=t(72733),a=t(30576);function u(h,l,m=1/0){return(0,a.m)(l)?u((x,O)=>(0,n.U)((L,w)=>l(x,L,O,w))((0,e.Xf)(h(x,O))),m):("number"==typeof l&&(m=l),(0,i.e)((x,O)=>(0,d.p)(x,O,h,m)))}},11520:(Ee,Q,t)=>{"use strict";t.d(Q,{G:()=>i});var n=t(54482),e=t(25403);function i(){return(0,n.e)((d,a)=>{let u,h=!1;d.subscribe((0,e.x)(a,l=>{const m=u;u=l,h&&a.next([m,l]),h=!0}))})}},94813:(Ee,Q,t)=>{"use strict";t.d(Q,{j:()=>e});var n=t(54004);function e(...i){const d=i.length;if(0===d)throw new Error("list of properties cannot be empty.");return(0,n.U)(a=>{let u=a;for(let h=0;h<d;h++){const l=u?.[i[h]];if(!(typeof l<"u"))return;u=l}return u})}},65535:(Ee,Q,t)=>{"use strict";t.d(Q,{a:()=>a});var n=t(38421),e=t(77579),i=t(54482),d=t(25403);function a(u){return(0,i.e)((h,l)=>{let m,O,x=!1;const L=()=>{m=h.subscribe((0,d.x)(l,void 0,void 0,w=>{O||(O=new e.x,(0,n.Xf)(u(O)).subscribe((0,d.x)(l,()=>m?L():x=!0))),O&&O.next(w)})),x&&(m.unsubscribe(),m=null,x=!1,L())};L()})}},22940:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>i});var n=t(54482),e=t(57359);function i(d,a){return(0,n.e)((0,e.U)(d,a,arguments.length>=2,!0))}},57359:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>e});var n=t(25403);function e(i,d,a,u,h){return(l,m)=>{let x=a,O=d,L=0;l.subscribe((0,n.x)(m,w=>{const B=L++;O=x?i(O,w,B):(x=!0,w),u&&m.next(O)},h&&(()=>{x&&m.next(O),m.complete()})))}}},13099:(Ee,Q,t)=>{"use strict";t.d(Q,{B:()=>a});var n=t(38421),e=t(77579),i=t(70930),d=t(54482);function a(h={}){const{connector:l=(()=>new e.x),resetOnError:m=!0,resetOnComplete:x=!0,resetOnRefCountZero:O=!0}=h;return L=>{let w,B,_,y=0,$=!1,C=!1;const T=()=>{B?.unsubscribe(),B=void 0},j=()=>{T(),w=_=void 0,$=C=!1},I=()=>{const F=w;j(),F?.unsubscribe()};return(0,d.e)((F,z)=>{y++,!C&&!$&&T();const X=_=_??l();z.add(()=>{y--,0===y&&!C&&!$&&(B=u(I,O))}),X.subscribe(z),!w&&y>0&&(w=new i.Hp({next:p=>X.next(p),error:p=>{C=!0,T(),B=u(j,m,p),X.error(p)},complete:()=>{$=!0,T(),B=u(j,x),X.complete()}}),(0,n.Xf)(F).subscribe(w))})(L)}}function u(h,l,...m){if(!0===l)return void h();if(!1===l)return;const x=new i.Hp({next:()=>{x.unsubscribe(),h()}});return(0,n.Xf)(l(...m)).subscribe(x)}},34782:(Ee,Q,t)=>{"use strict";t.d(Q,{d:()=>i});var n=t(4707),e=t(13099);function i(d,a,u){let h,l=!1;return d&&"object"==typeof d?({bufferSize:h=1/0,windowTime:a=1/0,refCount:l=!1,scheduler:u}=d):h=d??1/0,(0,e.B)({connector:()=>new n.t(h,a,u),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}},35684:(Ee,Q,t)=>{"use strict";t.d(Q,{T:()=>e});var n=t(39300);function e(i){return(0,n.h)((d,a)=>i<=a)}},54244:(Ee,Q,t)=>{"use strict";t.d(Q,{n:()=>i});var n=t(54482),e=t(25403);function i(d){return(0,n.e)((a,u)=>{let h=!1,l=0;a.subscribe((0,e.x)(u,m=>(h||(h=!d(m,l++)))&&u.next(m)))})}},68675:(Ee,Q,t)=>{"use strict";t.d(Q,{O:()=>d});var n=t(97272),e=t(63269),i=t(54482);function d(...a){const u=(0,e.yG)(a);return(0,i.e)((h,l)=>{(u?(0,n.z)(a,h,u):(0,n.z)(a,h)).subscribe(l)})}},63900:(Ee,Q,t)=>{"use strict";t.d(Q,{w:()=>d});var n=t(38421),e=t(54482),i=t(25403);function d(a,u){return(0,e.e)((h,l)=>{let m=null,x=0,O=!1;const L=()=>O&&!m&&l.complete();h.subscribe((0,i.x)(l,w=>{m?.unsubscribe();let B=0;const _=x++;(0,n.Xf)(a(w,_)).subscribe(m=(0,i.x)(l,y=>l.next(u?u(w,y,_,B++):y),()=>{m=null,L()}))},()=>{O=!0,L()}))})}},66304:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>i});var n=t(63900),e=t(30576);function i(d,a){return(0,e.m)(a)?(0,n.w)(()=>d,a):(0,n.w)(()=>d)}},95698:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>d});var n=t(60515),e=t(54482),i=t(25403);function d(a){return a<=0?()=>n.E:(0,e.e)((u,h)=>{let l=0;u.subscribe((0,i.x)(h,m=>{++l<=a&&(h.next(m),a<=l&&h.complete())}))})}},82722:(Ee,Q,t)=>{"use strict";t.d(Q,{R:()=>a});var n=t(54482),e=t(25403),i=t(38421),d=t(25032);function a(u){return(0,n.e)((h,l)=>{(0,i.Xf)(u).subscribe((0,e.x)(l,()=>l.complete(),d.Z)),!l.closed&&h.subscribe(l)})}},22529:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>i});var n=t(54482),e=t(25403);function i(d,a=!1){return(0,n.e)((u,h)=>{let l=0;u.subscribe((0,e.x)(h,m=>{const x=d(m,l++);(x||a)&&h.next(m),!x&&h.complete()}))})}},18505:(Ee,Q,t)=>{"use strict";t.d(Q,{b:()=>a});var n=t(30576),e=t(54482),i=t(25403),d=t(44671);function a(u,h,l){const m=(0,n.m)(u)||h||l?{next:u,error:h,complete:l}:u;return m?(0,e.e)((x,O)=>{var L;null===(L=m.subscribe)||void 0===L||L.call(m);let w=!0;x.subscribe((0,i.x)(O,B=>{var _;null===(_=m.next)||void 0===_||_.call(m,B),O.next(B)},()=>{var B;w=!1,null===(B=m.complete)||void 0===B||B.call(m),O.complete()},B=>{var _;w=!1,null===(_=m.error)||void 0===_||_.call(m,B),O.error(B)},()=>{var B,_;w&&(null===(B=m.unsubscribe)||void 0===B||B.call(m)),null===(_=m.finalize)||void 0===_||_.call(m)}))}):d.y}},17414:(Ee,Q,t)=>{"use strict";t.d(Q,{V:()=>m});var n=t(34986),e=t(51165),i=t(54482),d=t(38421),a=t(83888),u=t(25403),h=t(39672);const l=(0,a.d)(O=>function(w=null){O(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=w});function m(O,L){const{first:w,each:B,with:_=x,scheduler:y=L??n.z,meta:$=null}=(0,e.q)(O)?{first:O}:"number"==typeof O?{each:O}:O;if(null==w&&null==B)throw new TypeError("No timeout provided.");return(0,i.e)((C,T)=>{let j,I,F=null,z=0;const X=p=>{I=(0,h.f)(T,y,()=>{try{j.unsubscribe(),(0,d.Xf)(_({meta:$,lastValue:F,seen:z})).subscribe(T)}catch(P){T.error(P)}},p)};j=C.subscribe((0,u.x)(T,p=>{I?.unsubscribe(),z++,T.next(F=p),B>0&&X(B)},void 0,void 0,()=>{I?.closed||I?.unsubscribe(),F=null})),!z&&X(null!=w?"number"==typeof w?w:+w-y.now():B)})}function x(O){throw new l(O)}},64307:(Ee,Q,t)=>{"use strict";t.d(Q,{q:()=>a});var n=t(57359),e=t(54482);const d=(u,h)=>(u.push(h),u);function a(){return(0,e.e)((u,h)=>{(function i(u,h){return(0,e.e)((0,n.U)(u,h,arguments.length>=2,!1,!0))})(d,[])(u).subscribe(h)})}},84408:(Ee,Q,t)=>{"use strict";t.d(Q,{o:()=>a});var n=t(50727);class e extends n.w0{constructor(h,l){super()}schedule(h,l=0){return this}}const i={setInterval(u,h,...l){const{delegate:m}=i;return m?.setInterval?m.setInterval(u,h,...l):setInterval(u,h,...l)},clearInterval(u){const{delegate:h}=i;return(h?.clearInterval||clearInterval)(u)},delegate:void 0};var d=t(38737);class a extends e{constructor(h,l){super(h,l),this.scheduler=h,this.work=l,this.pending=!1}schedule(h,l=0){var m;if(this.closed)return this;this.state=h;const x=this.id,O=this.scheduler;return null!=x&&(this.id=this.recycleAsyncId(O,x,l)),this.pending=!0,this.delay=l,this.id=null!==(m=this.id)&&void 0!==m?m:this.requestAsyncId(O,this.id,l),this}requestAsyncId(h,l,m=0){return i.setInterval(h.flush.bind(h,this),m)}recycleAsyncId(h,l,m=0){if(null!=m&&this.delay===m&&!1===this.pending)return l;null!=l&&i.clearInterval(l)}execute(h,l){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const m=this._execute(h,l);if(m)return m;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(h,l){let x,m=!1;try{this.work(h)}catch(O){m=!0,x=O||new Error("Scheduled action threw falsy error")}if(m)return this.unsubscribe(),x}unsubscribe(){if(!this.closed){const{id:h,scheduler:l}=this,{actions:m}=l;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.P)(m,this),null!=h&&(this.id=this.recycleAsyncId(l,h,null)),this.delay=null,super.unsubscribe()}}}},97565:(Ee,Q,t)=>{"use strict";t.d(Q,{v:()=>i});var n=t(26063);class e{constructor(a,u=e.now){this.schedulerActionCtor=a,this.now=u}schedule(a,u=0,h){return new this.schedulerActionCtor(this,a).schedule(h,u)}}e.now=n.l.now;class i extends e{constructor(a,u=e.now){super(a,u),this.actions=[],this._active=!1}flush(a){const{actions:u}=this;if(this._active)return void u.push(a);let h;this._active=!0;do{if(h=a.execute(a.state,a.delay))break}while(a=u.shift());if(this._active=!1,h){for(;a=u.shift();)a.unsubscribe();throw h}}}},66406:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>h});var n=t(84408),e=t(50727);const i={schedule(m){let x=requestAnimationFrame,O=cancelAnimationFrame;const{delegate:L}=i;L&&(x=L.requestAnimationFrame,O=L.cancelAnimationFrame);const w=x(B=>{O=void 0,m(B)});return new e.w0(()=>O?.(w))},requestAnimationFrame(...m){const{delegate:x}=i;return(x?.requestAnimationFrame||requestAnimationFrame)(...m)},cancelAnimationFrame(...m){const{delegate:x}=i;return(x?.cancelAnimationFrame||cancelAnimationFrame)(...m)},delegate:void 0};var a=t(97565);const h=new class u extends a.v{flush(x){this._active=!0;const O=this._scheduled;this._scheduled=void 0;const{actions:L}=this;let w;x=x||L.shift();do{if(w=x.execute(x.state,x.delay))break}while((x=L[0])&&x.id===O&&L.shift());if(this._active=!1,w){for(;(x=L[0])&&x.id===O&&L.shift();)x.unsubscribe();throw w}}}(class d extends n.o{constructor(x,O){super(x,O),this.scheduler=x,this.work=O}requestAsyncId(x,O,L=0){return null!==L&&L>0?super.requestAsyncId(x,O,L):(x.actions.push(this),x._scheduled||(x._scheduled=i.requestAnimationFrame(()=>x.flush(void 0))))}recycleAsyncId(x,O,L=0){var w;if(null!=L?L>0:this.delay>0)return super.recycleAsyncId(x,O,L);const{actions:B}=x;null!=O&&(null===(w=B[B.length-1])||void 0===w?void 0:w.id)!==O&&(i.cancelAnimationFrame(O),x._scheduled=void 0)}})},34986:(Ee,Q,t)=>{"use strict";t.d(Q,{P:()=>d,z:()=>i});var n=t(84408);const i=new(t(97565).v)(n.o),d=i},26063:(Ee,Q,t)=>{"use strict";t.d(Q,{l:()=>n});const n={now:()=>(n.delegate||Date).now(),delegate:void 0}},43410:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>n});const n={setTimeout(e,i,...d){const{delegate:a}=n;return a?.setTimeout?a.setTimeout(e,i,...d):setTimeout(e,i,...d)},clearTimeout(e){const{delegate:i}=n;return(i?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>e});const e=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Ee,Q,t)=>{"use strict";t.d(Q,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},63269:(Ee,Q,t)=>{"use strict";t.d(Q,{_6:()=>u,jO:()=>d,yG:()=>a});var n=t(30576),e=t(93532);function i(h){return h[h.length-1]}function d(h){return(0,n.m)(i(h))?h.pop():void 0}function a(h){return(0,e.K)(i(h))?h.pop():void 0}function u(h,l){return"number"==typeof i(h)?h.pop():l}},54742:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>a});const{isArray:n}=Array,{getPrototypeOf:e,prototype:i,keys:d}=Object;function a(h){if(1===h.length){const l=h[0];if(n(l))return{args:l,keys:null};if(function u(h){return h&&"object"==typeof h&&e(h)===i}(l)){const m=d(l);return{args:m.map(x=>l[x]),keys:m}}}return{args:h,keys:null}}},75797:(Ee,Q,t)=>{"use strict";t.d(Q,{k:()=>e});const{isArray:n}=Array;function e(i){return 1===i.length&&n(i[0])?i[0]:i}},38737:(Ee,Q,t)=>{"use strict";function n(e,i){if(e){const d=e.indexOf(i);0<=d&&e.splice(d,1)}}t.d(Q,{P:()=>n})},83888:(Ee,Q,t)=>{"use strict";function n(e){const d=e(a=>{Error.call(a),a.stack=(new Error).stack});return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d}t.d(Q,{d:()=>n})},31810:(Ee,Q,t)=>{"use strict";function n(e,i){return e.reduce((d,a,u)=>(d[a]=i[u],d),{})}t.d(Q,{n:()=>n})},72806:(Ee,Q,t)=>{"use strict";t.d(Q,{O:()=>d,x:()=>i});var n=t(42416);let e=null;function i(a){if(n.v.useDeprecatedSynchronousErrorHandling){const u=!e;if(u&&(e={errorThrown:!1,error:null}),a(),u){const{errorThrown:h,error:l}=e;if(e=null,h)throw l}}else a()}function d(a){n.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=a)}},39672:(Ee,Q,t)=>{"use strict";function n(e,i,d,a=0,u=!1){const h=i.schedule(function(){d(),u?e.add(this.schedule(null,a)):this.unsubscribe()},a);if(e.add(h),!u)return h}t.d(Q,{f:()=>n})},44671:(Ee,Q,t)=>{"use strict";function n(e){return e}t.d(Q,{y:()=>n})},81144:(Ee,Q,t)=>{"use strict";t.d(Q,{z:()=>n});const n=e=>e&&"number"==typeof e.length&&"function"!=typeof e},12206:(Ee,Q,t)=>{"use strict";t.d(Q,{D:()=>e});var n=t(30576);function e(i){return Symbol.asyncIterator&&(0,n.m)(i?.[Symbol.asyncIterator])}},51165:(Ee,Q,t)=>{"use strict";function n(e){return e instanceof Date&&!isNaN(e)}t.d(Q,{q:()=>n})},30576:(Ee,Q,t)=>{"use strict";function n(e){return"function"==typeof e}t.d(Q,{m:()=>n})},93670:(Ee,Q,t)=>{"use strict";t.d(Q,{c:()=>i});var n=t(48822),e=t(30576);function i(d){return(0,e.m)(d[n.L])}},26495:(Ee,Q,t)=>{"use strict";t.d(Q,{T:()=>i});var n=t(2202),e=t(30576);function i(d){return(0,e.m)(d?.[n.h])}},28239:(Ee,Q,t)=>{"use strict";t.d(Q,{t:()=>e});var n=t(30576);function e(i){return(0,n.m)(i?.then)}},53260:(Ee,Q,t)=>{"use strict";t.d(Q,{L:()=>d,Q:()=>i});var n=t(97582),e=t(30576);function i(a){return(0,n.FC)(this,arguments,function*(){const h=a.getReader();try{for(;;){const{value:l,done:m}=yield(0,n.qq)(h.read());if(m)return yield(0,n.qq)(void 0);yield yield(0,n.qq)(l)}}finally{h.releaseLock()}})}function d(a){return(0,e.m)(a?.getReader)}},93532:(Ee,Q,t)=>{"use strict";t.d(Q,{K:()=>e});var n=t(30576);function e(i){return i&&(0,n.m)(i.schedule)}},54482:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>e,e:()=>i});var n=t(30576);function e(d){return(0,n.m)(d?.lift)}function i(d){return a=>{if(e(a))return a.lift(function(u){try{return d(u,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Ee,Q,t)=>{"use strict";t.d(Q,{Z:()=>d});var n=t(54004);const{isArray:e}=Array;function d(a){return(0,n.U)(u=>function i(a,u){return e(u)?a(...u):a(u)}(a,u))}},25032:(Ee,Q,t)=>{"use strict";function n(){}t.d(Q,{Z:()=>n})},89635:(Ee,Q,t)=>{"use strict";t.d(Q,{U:()=>i,z:()=>e});var n=t(44671);function e(...d){return i(d)}function i(d){return 0===d.length?n.y:1===d.length?d[0]:function(u){return d.reduce((h,l)=>l(h),u)}}},87849:(Ee,Q,t)=>{"use strict";t.d(Q,{h:()=>i});var n=t(42416),e=t(43410);function i(d){e.z.setTimeout(()=>{const{onUnhandledError:a}=n.v;if(!a)throw d;a(d)})}},44532:(Ee,Q,t)=>{"use strict";function n(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}t.d(Q,{z:()=>n})},53065:function(Ee){Ee.exports=function(Q){function t(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return Q[e].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=Q,t.c=n,t.p="",t(0)}([function(Q,t,n){"use strict";function e(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return e(i).default}});var d=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return e(d).default}});var a=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return e(a).default}})},function(Q,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function n(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=a.minYear,h=void 0===u?1:u,l=a.maxYear,m=void 0===l?9999:l,x=d.split(/[^dmyHMS]+/).sort(function(O,L){return i.indexOf(O)-i.indexOf(L)});return function(O){var L=[],w={dd:31,mm:12,yy:99,yyyy:m,HH:23,MM:59,SS:59},B={dd:1,mm:1,yy:0,yyyy:h,HH:0,MM:0,SS:0},_=O.split("");x.forEach(function(C){var T=d.indexOf(C),j=parseInt(w[C].toString().substr(0,1),10);parseInt(_[T],10)>j&&(_[T+1]=_[T],_[T]=0,L.push(T))});var y=0;return!x.some(function(C){var T=d.indexOf(C),j=C.length,I=O.substr(T,j).replace(/\D/g,""),F=parseInt(I,10);"mm"===C&&(y=F||0);var z="dd"===C?e[y]:w[C];if("yyyy"===C&&(1!==h||9999!==m)){var X=parseInt(w[C].toString().substring(0,I.length),10);return F<parseInt(B[C].toString().substring(0,I.length),10)||F>X}return F>z||I.length===j&&F<B[C]})&&{value:_.join(""),indexesOfPipedChars:L}}};var e=[31,31,29,31,30,31,30,31,31,30,31,30,31],i=["yyyy","yy","mm","dd","HH","MM","SS"]},function(Q,t){"use strict";function e(_){return _.split(u).map(function(y){return w.test(y)?w:y})}Object.defineProperty(t,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_){return typeof _}:function(_){return _&&"function"==typeof Symbol&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _};t.default=function n(){function _(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,Ie=Pe.length;if(Pe===u||Pe[0]===C[0]&&1===Ie)return C.split(u).concat([w]).concat(j.split(u));if(Pe===R&&P)return C.split(u).concat(["0",R,w]).concat(j.split(u));var pt=Pe[0]===m&&Ge;pt&&(Pe=Pe.toString().substr(1));var Ht=Pe.lastIndexOf(R),Wt=-1!==Ht,Xe=void 0,Qe=void 0,Be=void 0;if(Pe.slice(-1*Z)===j&&(Pe=Pe.slice(0,-1*Z)),Wt&&(P||xe)?(Xe=Pe.slice(Pe.slice(0,H)===C?H:0,Ht),Qe=e((Qe=Pe.slice(Ht+1,Ie)).replace(O,u))):Xe=Pe.slice(0,H)===C?Pe.slice(H):Pe,U&&(typeof U>"u"?"undefined":d(U))===L){var lt=(Xe.match(new RegExp("."===X?"[.]":""+X,"g"))||[]).length;Xe=Xe.slice(0,U+lt*oe)}return Xe=Xe.replace(O,u),pe||(Xe=Xe.replace(/^0+(0$|[^0])/,"$1")),Be=e(Xe=F?function i(_,y){return _.replace(/\B(?=(\d{3})+(?!\d))/g,y)}(Xe,X):Xe),(Wt&&P||!0===xe)&&(Pe[Ht-1]!==R&&Be.push(B),Be.push(R,B),Qe&&((typeof G>"u"?"undefined":d(G))===L&&(Qe=Qe.slice(0,G)),Be=Be.concat(Qe)),!0===xe&&Pe[Ht-1]===R&&Be.push(w)),H>0&&(Be=C.split(u).concat(Be)),pt&&(Be.length===H&&Be.push(w),Be=[x].concat(Be)),j.length>0&&(Be=Be.concat(j.split(u))),Be}var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},$=y.prefix,C=void 0===$?a:$,T=y.suffix,j=void 0===T?u:T,I=y.includeThousandsSeparator,F=void 0===I||I,z=y.thousandsSeparatorSymbol,X=void 0===z?h:z,p=y.allowDecimal,P=void 0!==p&&p,E=y.decimalSymbol,R=void 0===E?l:E,ne=y.decimalLimit,G=void 0===ne?2:ne,ce=y.requireDecimal,xe=void 0!==ce&&ce,we=y.allowNegative,Ge=void 0!==we&&we,ct=y.allowLeadingZeroes,pe=void 0!==ct&&ct,Ce=y.integerLimit,U=void 0===Ce?null:Ce,H=C&&C.length||0,Z=j&&j.length||0,oe=X&&X.length||0;return _.instanceOf="createNumberMask",_};var a="$",u="",h=",",l=".",m="-",x=/-/,O=/\D+/g,L="number",w=/\d/,B="[]"},function(Q,t,n){"use strict";function d(I,F,z){var X=[];return I[F]===z?X.push(z):X.push(_,z),X.push(_),X}function l(I,F){return I.split(w).map(function(z){return z===y?z:F?T:C})}Object.defineProperty(t,"__esModule",{value:!0});var x=function e(I){return I&&I.__esModule?I:{default:I}}(n(4)),O="*",L=".",w="",B="@",_="[]",y=" ",$="g",C=/[^\s]/,T=/[^.\s]/,j=/\s/g;t.default={mask:function i(I,F){I=I.replace(j,w);var z=F.placeholderChar,X=F.currentCaretPosition,p=I.indexOf(B),P=I.lastIndexOf(L),E=P<p?-1:P,R=d(I,p+1,B),ne=d(I,E-1,L),G=function a(I,F){return-1===F?I:I.slice(0,F)}(I,p),ce=function u(I,F,z,X){var p=w;return-1!==F&&(p=I.slice(F+1,-1===z?I.length:z)),(p=p.replace(new RegExp("[\\s"+X+"]",$),w))===B?O:p.length<1?y:p[p.length-1]===L?p.slice(0,p.length-1):p}(I,p,E,z),xe=function h(I,F,z,X){var p=w;return-1!==F&&(p=I.slice(F+1,I.length)),0===(p=p.replace(new RegExp("[\\s"+z+".]",$),w)).length?I[F-1]===L&&X!==I.length?O:w:p}(I,E,z,X);return G=l(G),ce=l(ce),xe=l(xe,!0),G.concat(R).concat(ce).concat(ne).concat(xe)},pipe:x.default}},function(Q,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function n(O,L){var w=L.currentCaretPosition,B=L.rawValue,_=L.previousConformedValue,y=L.placeholderChar,$=O,C=($=function e(O){var L=0;return O.replace(d,function(){return 1==++L?i:a})}($)).indexOf(u);if(null===B.match(new RegExp("[^@\\s."+y+"]")))return a;if(-1!==$.indexOf(l)||-1!==C&&w!==C+1||-1===B.indexOf(i)&&_!==a&&-1!==B.indexOf(h))return!1;var j=$.indexOf(i);return($.slice(j+1,$.length).match(x)||m).length>1&&$.substr(-1)===h&&w!==B.length&&($=$.slice(0,$.length-1)),$};var i="@",d=/@/g,a="",u="@.",h=".",l="..",m=[],x=/\./g}])},2243:function(Ee){Ee.exports=function(Q){function t(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return Q[e].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=Q,t.c=n,t.p="",t(0)}([function(Q,t,n){"use strict";function e(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return e(i).default}});var d=n(2);Object.defineProperty(t,"adjustCaretPosition",{enumerable:!0,get:function(){return e(d).default}});var a=n(5);Object.defineProperty(t,"createTextMaskInputElement",{enumerable:!0,get:function(){return e(a).default}})},function(Q,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(Q,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function n(d){var a=d.previousConformedValue,u=void 0===a?i:a,h=d.previousPlaceholder,l=void 0===h?i:h,m=d.currentCaretPosition,x=void 0===m?0:m,O=d.conformedValue,L=d.rawValue,w=d.placeholderChar,B=d.placeholder,_=d.indexesOfPipedChars,y=void 0===_?e:_,$=d.caretTrapIndexes,C=void 0===$?e:$;if(0===x||!L.length)return 0;var j=u.length,I=B.length,F=O.length,z=L.length-j,X=z>0;if(z>1&&!X&&0!==j)return x;var R=0,ne=void 0,G=void 0;if(!X||u!==O&&O!==B){var ce=O.toLowerCase(),Ge=L.toLowerCase().substr(0,x).split(i).filter(function(lt){return-1!==ce.indexOf(lt)});G=Ge[Ge.length-1];var ct=l.substr(0,Ge.length).split(i).filter(function(lt){return lt!==w}).length,pe=B.substr(0,Ge.length).split(i).filter(function(lt){return lt!==w}).length;!X&&(pe!==ct||void 0!==l[Ge.length-1]&&void 0!==B[Ge.length-2]&&l[Ge.length-1]!==w&&l[Ge.length-1]!==B[Ge.length-1]&&l[Ge.length-1]===B[Ge.length-2])&&ct>0&&B.indexOf(G)>-1&&void 0!==L[x]&&(ne=!0,G=L[x]);for(var Z=y.map(function(lt){return ce[lt]}).filter(function(lt){return lt===G}).length,oe=Ge.filter(function(lt){return lt===G}).length,Ie=B.substr(0,B.indexOf(w)).split(i).filter(function(lt,Dt){return lt===G&&L[Dt]!==lt}).length+oe+Z+(ne?1:0),pt=0,Ht=0;Ht<F&&(R=Ht+1,ce[Ht]===G&&pt++,!(pt>=Ie));Ht++);}else R=x-z;if(X){for(var Xe=R,Qe=R;Qe<=I;Qe++)if(B[Qe]===w&&(Xe=Qe),B[Qe]===w||-1!==C.indexOf(Qe)||Qe===I)return Xe}else if(ne){for(var Be=R-1;Be>=0;Be--)if(O[Be]===G||-1!==C.indexOf(Be)||0===Be)return Be}else for(var at=R;at>=0;at--)if(B[at-1]===w||-1!==C.indexOf(at)||0===at)return at};var e=[],i=""},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};t.default=function e(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,d.isArray)(m)){if((typeof m>"u"?"undefined":i(m))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");m=m(l,x),m=(0,d.processCaretTraps)(m).maskWithoutCaretTraps}var O=x.guide,L=void 0===O||O,w=x.previousConformedValue,B=void 0===w?h:w,_=x.placeholderChar,y=void 0===_?a.placeholderChar:_,$=x.placeholder,C=void 0===$?(0,d.convertMaskToPlaceholder)(m,y):$,j=x.keepCharPositions,I=!1===L&&void 0!==B,F=l.length,z=B.length,X=C.length,p=m.length,P=F-z,E=P>0,R=x.currentCaretPosition+(E?-P:0),ne=R+Math.abs(P);if(!0===j&&!E){for(var G=h,ce=R;ce<ne;ce++)C[ce]===y&&(G+=y);l=l.slice(0,R)+G+l.slice(R,F)}for(var xe=l.split(h).map(function(Be,at){return{char:Be,isNew:at>=R&&at<ne}}),we=F-1;we>=0;we--){var Ge=xe[we].char;Ge!==y&&Ge===C[we>=R&&z===p?we-P:we]&&xe.splice(we,1)}var pe=h,Ce=!1;e:for(var U=0;U<X;U++){var H=C[U];if(H===y){if(xe.length>0)for(;xe.length>0;){var Z=xe.shift(),oe=Z.char,Pe=Z.isNew;if(oe===y&&!0!==I){pe+=y;continue e}if(m[U].test(oe)){if(!0===j&&!1!==Pe&&B!==h&&!1!==L&&E){for(var Ie=xe.length,pt=null,Ht=0;Ht<Ie;Ht++){var Wt=xe[Ht];if(Wt.char!==y&&!1===Wt.isNew)break;if(Wt.char===y){pt=Ht;break}}null!==pt?(pe+=oe,xe.splice(pt,1)):U--}else pe+=oe;continue e}Ce=!0}!1===I&&(pe+=C.substr(U,X));break}pe+=H}if(I&&!1===E){for(var Xe=null,Qe=0;Qe<pe.length;Qe++)C[Qe]===y&&(Xe=Qe);pe=null!==Xe?pe.substr(0,Xe+1):h}return{conformedValue:pe,meta:{someCharsRejected:Ce}}};var d=n(4),a=n(1),u=[],h=""},function(Q,t,n){"use strict";function i(O){return Array.isArray&&Array.isArray(O)||O instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function e(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.placeholderChar;if(!i(O))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==O.indexOf(L))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(L)+"\n\nThe mask that was received is: "+JSON.stringify(O));return O.map(function(w){return w instanceof RegExp?L:w}).join("")},t.isArray=i,t.isString=function d(O){return"string"==typeof O||O instanceof String},t.isNumber=function a(O){return"number"==typeof O&&void 0===O.length&&!isNaN(O)},t.isNil=function u(O){return typeof O>"u"||null===O},t.processCaretTraps=function h(O){for(var L=[],w=void 0;-1!==(w=O.indexOf(x));)L.push(w),O.splice(w,1);return{maskWithoutCaretTraps:O,indexes:L}};var l=n(1),m=[],x="[]"},function(Q,t,n){"use strict";function e(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(T){for(var j=1;j<arguments.length;j++){var I=arguments[j];for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&(T[F]=I[F])}return T},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(T){return typeof T}:function(T){return T&&"function"==typeof Symbol&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T};t.default=function i(T){var j={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:j,update:function(I){var F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T,z=F.inputElement,X=F.mask,p=F.guide,P=F.pipe,E=F.placeholderChar,R=void 0===E?w.placeholderChar:E,ne=F.keepCharPositions,G=void 0!==ne&&ne,ce=F.showMask,xe=void 0!==ce&&ce;if(typeof I>"u"&&(I=z.value),I!==j.previousConformedValue){(typeof X>"u"?"undefined":h(X))===y&&void 0!==X.pipe&&void 0!==X.mask&&(P=X.pipe,X=X.mask);var we=void 0,Ge=void 0;if(X instanceof Array&&(we=(0,L.convertMaskToPlaceholder)(X,R)),!1!==X){var ct=function a(T){if((0,L.isString)(T))return T;if((0,L.isNumber)(T))return String(T);if(null==T)return B;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(T))}(I),pe=z.selectionEnd,Ce=j.previousConformedValue,U=j.previousPlaceholder,H=void 0;if((typeof X>"u"?"undefined":h(X))===w.strFunction){if(!1===(Ge=X(ct,{currentCaretPosition:pe,previousConformedValue:Ce,placeholderChar:R})))return;var Z=(0,L.processCaretTraps)(Ge);H=Z.indexes,we=(0,L.convertMaskToPlaceholder)(Ge=Z.maskWithoutCaretTraps,R)}else Ge=X;var Ie={previousConformedValue:Ce,guide:p,placeholderChar:R,pipe:P,placeholder:we,currentCaretPosition:pe,keepCharPositions:G},Ht=(0,O.default)(ct,Ge,Ie).conformedValue,Wt=(typeof P>"u"?"undefined":h(P))===w.strFunction,Xe={};Wt&&(!1===(Xe=P(Ht,u({rawValue:ct},Ie)))?Xe={value:Ce,rejected:!0}:(0,L.isString)(Xe)&&(Xe={value:Xe}));var Qe=Wt?Xe.value:Ht,Be=(0,m.default)({previousConformedValue:Ce,previousPlaceholder:U,conformedValue:Qe,placeholder:we,rawValue:ct,currentCaretPosition:pe,placeholderChar:R,indexesOfPipedChars:Xe.indexesOfPipedChars,caretTrapIndexes:H}),Dt=Qe===we&&0===Be?xe?we:B:Qe;j.previousConformedValue=Dt,j.previousPlaceholder=we,z.value!==Dt&&(z.value=Dt,function d(T,j){document.activeElement===T&&($?C(function(){return T.setSelectionRange(j,j,_)},0):T.setSelectionRange(j,j,_))}(z,Be))}}}}};var m=e(n(2)),O=e(n(3)),L=n(4),w=n(1),B="",_="none",y="object",$=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),C=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout}])},97982:function(Ee){Ee.exports=function(Q){function t(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return Q[e].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=Q,t.c=n,t.p="",t(0)}([function(Q,t,n){"use strict";function e(h){return h&&h.__esModule?h:{default:h}}function i(h){var l=h.inputElement,m=(0,u.default)(h),x=function(O){return m.update(O.target.value)};return l.addEventListener("input",x),m.update(l.value),{textMaskInputElement:m,destroy:function(){l.removeEventListener("input",x)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0,t.maskInput=i;var d=n(2);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return e(d).default}});var u=e(n(5));t.default=i},function(Q,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};t.default=function e(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,d.isArray)(m)){if((typeof m>"u"?"undefined":i(m))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");m=m(l,x),m=(0,d.processCaretTraps)(m).maskWithoutCaretTraps}var O=x.guide,L=void 0===O||O,w=x.previousConformedValue,B=void 0===w?h:w,_=x.placeholderChar,y=void 0===_?a.placeholderChar:_,$=x.placeholder,C=void 0===$?(0,d.convertMaskToPlaceholder)(m,y):$,j=x.keepCharPositions,I=!1===L&&void 0!==B,F=l.length,z=B.length,X=C.length,p=m.length,P=F-z,E=P>0,R=x.currentCaretPosition+(E?-P:0),ne=R+Math.abs(P);if(!0===j&&!E){for(var G=h,ce=R;ce<ne;ce++)C[ce]===y&&(G+=y);l=l.slice(0,R)+G+l.slice(R,F)}for(var xe=l.split(h).map(function(Be,at){return{char:Be,isNew:at>=R&&at<ne}}),we=F-1;we>=0;we--){var Ge=xe[we].char;Ge!==y&&Ge===C[we>=R&&z===p?we-P:we]&&xe.splice(we,1)}var pe=h,Ce=!1;e:for(var U=0;U<X;U++){var H=C[U];if(H===y){if(xe.length>0)for(;xe.length>0;){var Z=xe.shift(),oe=Z.char,Pe=Z.isNew;if(oe===y&&!0!==I){pe+=y;continue e}if(m[U].test(oe)){if(!0===j&&!1!==Pe&&B!==h&&!1!==L&&E){for(var Ie=xe.length,pt=null,Ht=0;Ht<Ie;Ht++){var Wt=xe[Ht];if(Wt.char!==y&&!1===Wt.isNew)break;if(Wt.char===y){pt=Ht;break}}null!==pt?(pe+=oe,xe.splice(pt,1)):U--}else pe+=oe;continue e}Ce=!0}!1===I&&(pe+=C.substr(U,X));break}pe+=H}if(I&&!1===E){for(var Xe=null,Qe=0;Qe<pe.length;Qe++)C[Qe]===y&&(Xe=Qe);pe=null!==Xe?pe.substr(0,Xe+1):h}return{conformedValue:pe,meta:{someCharsRejected:Ce}}};var d=n(3),a=n(1),u=[],h=""},function(Q,t,n){"use strict";function i(x){return Array.isArray&&Array.isArray(x)||x instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function e(){var x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.placeholderChar;if(!i(x))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==x.indexOf(O))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(O)+"\n\nThe mask that was received is: "+JSON.stringify(x));return x.map(function(L){return L instanceof RegExp?O:L}).join("")},t.isArray=i,t.isString=function d(x){return"string"==typeof x||x instanceof String},t.isNumber=function a(x){return"number"==typeof x&&void 0===x.length&&!isNaN(x)},t.processCaretTraps=function u(x){for(var O=[],L=void 0;-1!==(L=x.indexOf(m));)O.push(L),x.splice(L,1);return{maskWithoutCaretTraps:x,indexes:O}};var h=n(1),l=[],m="[]"},function(Q,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function n(d){var a=d.previousConformedValue,u=void 0===a?i:a,h=d.previousPlaceholder,l=void 0===h?i:h,m=d.currentCaretPosition,x=void 0===m?0:m,O=d.conformedValue,L=d.rawValue,w=d.placeholderChar,B=d.placeholder,_=d.indexesOfPipedChars,y=void 0===_?e:_,$=d.caretTrapIndexes,C=void 0===$?e:$;if(0===x||!L.length)return 0;var j=u.length,I=B.length,F=O.length,z=L.length-j,X=z>0;if(z>1&&!X&&0!==j)return x;var R=0,ne=void 0,G=void 0;if(!X||u!==O&&O!==B){var ce=O.toLowerCase(),Ge=L.toLowerCase().substr(0,x).split(i).filter(function(lt){return-1!==ce.indexOf(lt)});G=Ge[Ge.length-1];var ct=l.substr(0,Ge.length).split(i).filter(function(lt){return lt!==w}).length,pe=B.substr(0,Ge.length).split(i).filter(function(lt){return lt!==w}).length;!X&&(pe!==ct||void 0!==l[Ge.length-1]&&void 0!==B[Ge.length-2]&&l[Ge.length-1]!==w&&l[Ge.length-1]!==B[Ge.length-1]&&l[Ge.length-1]===B[Ge.length-2])&&ct>0&&B.indexOf(G)>-1&&void 0!==L[x]&&(ne=!0,G=L[x]);for(var Z=y.map(function(lt){return ce[lt]}).filter(function(lt){return lt===G}).length,oe=Ge.filter(function(lt){return lt===G}).length,Ie=B.substr(0,B.indexOf(w)).split(i).filter(function(lt,Dt){return lt===G&&L[Dt]!==lt}).length+oe+Z+(ne?1:0),pt=0,Ht=0;Ht<F&&(R=Ht+1,ce[Ht]===G&&pt++,!(pt>=Ie));Ht++);}else R=x-z;if(X){for(var Xe=R,Qe=R;Qe<=I;Qe++)if(B[Qe]===w&&(Xe=Qe),B[Qe]===w||-1!==C.indexOf(Qe)||Qe===I)return Xe}else if(ne){for(var Be=R-1;Be>=0;Be--)if(O[Be]===G||-1!==C.indexOf(Be)||0===Be)return Be}else for(var at=R;at>=0;at--)if(B[at-1]===w||-1!==C.indexOf(at)||0===at)return at};var e=[],i=""},function(Q,t,n){"use strict";function e(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(T){for(var j=1;j<arguments.length;j++){var I=arguments[j];for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&(T[F]=I[F])}return T},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(T){return typeof T}:function(T){return T&&"function"==typeof Symbol&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T};t.default=function i(T){var j={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:j,update:function(I){var F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T,z=F.inputElement,X=F.mask,p=F.guide,P=F.pipe,E=F.placeholderChar,R=void 0===E?w.placeholderChar:E,ne=F.keepCharPositions,G=void 0!==ne&&ne,ce=F.showMask,xe=void 0!==ce&&ce;if(typeof I>"u"&&(I=z.value),I!==j.previousConformedValue){(typeof X>"u"?"undefined":h(X))===y&&void 0!==X.pipe&&void 0!==X.mask&&(P=X.pipe,X=X.mask);var we=void 0,Ge=void 0;if(X instanceof Array&&(we=(0,L.convertMaskToPlaceholder)(X,R)),!1!==X){var ct=function a(T){if((0,L.isString)(T))return T;if((0,L.isNumber)(T))return String(T);if(null==T)return B;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(T))}(I),pe=z.selectionEnd,Ce=j.previousConformedValue,U=j.previousPlaceholder,H=void 0;if((typeof X>"u"?"undefined":h(X))===w.strFunction){if(!1===(Ge=X(ct,{currentCaretPosition:pe,previousConformedValue:Ce,placeholderChar:R})))return;var Z=(0,L.processCaretTraps)(Ge);H=Z.indexes,we=(0,L.convertMaskToPlaceholder)(Ge=Z.maskWithoutCaretTraps,R)}else Ge=X;var Ie={previousConformedValue:Ce,guide:p,placeholderChar:R,pipe:P,placeholder:we,currentCaretPosition:pe,keepCharPositions:G},Ht=(0,O.default)(ct,Ge,Ie).conformedValue,Wt=(typeof P>"u"?"undefined":h(P))===w.strFunction,Xe={};Wt&&(!1===(Xe=P(Ht,u({rawValue:ct},Ie)))?Xe={value:Ce,rejected:!0}:(0,L.isString)(Xe)&&(Xe={value:Xe}));var Qe=Wt?Xe.value:Ht,Be=(0,m.default)({previousConformedValue:Ce,previousPlaceholder:U,conformedValue:Qe,placeholder:we,rawValue:ct,currentCaretPosition:pe,placeholderChar:R,indexesOfPipedChars:Xe.indexesOfPipedChars,caretTrapIndexes:H}),Dt=Qe===we&&0===Be?xe?we:B:Qe;j.previousConformedValue=Dt,j.previousPlaceholder=we,z.value!==Dt&&(z.value=Dt,function d(T,j){document.activeElement===T&&($?C(function(){return T.setSelectionRange(j,j,_)},0):T.setSelectionRange(j,j,_))}(z,Be))}}}}};var m=e(n(4)),O=e(n(2)),L=n(3),w=n(1),B="",_="none",y="object",$=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),C=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout}])},46700:(Ee,Q,t)=>{var n={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-ps":14523,"./ar-ps.js":14523,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku-kmr":63775,"./ku-kmr.js":63775,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function e(d){var a=i(d);return t(a)}function i(d){if(!t.o(n,d)){var a=new Error("Cannot find module '"+d+"'");throw a.code="MODULE_NOT_FOUND",a}return n[d]}e.keys=function(){return Object.keys(n)},e.resolve=i,Ee.exports=e,e.id=46700},42480:()=>{},49671:(Ee,Q,t)=>{"use strict";function n(i,d,a,u,h,l,m){try{var x=i[l](m),O=x.value}catch(L){return void a(L)}x.done?d(O):Promise.resolve(O).then(u,h)}function e(i){return function(){var d=this,a=arguments;return new Promise(function(u,h){var l=i.apply(d,a);function m(O){n(l,u,h,m,x,"next",O)}function x(O){n(l,u,h,m,x,"throw",O)}m(void 0)})}}t.d(Q,{Z:()=>e})},37340:(Ee,Q,t)=>{"use strict";t.d(Q,{EY:()=>y,F4:()=>x,IO:()=>_,LC:()=>e,SB:()=>m,X$:()=>d,ZE:()=>T,ZN:()=>C,_j:()=>n,eR:()=>O,jt:()=>a,k1:()=>j,l3:()=>i,oB:()=>l,pV:()=>w,ru:()=>u,vP:()=>h});class n{}class e{}const i="*";function d(I,F){return{type:7,name:I,definitions:F,options:{}}}function a(I,F=null){return{type:4,styles:F,timings:I}}function u(I,F=null){return{type:3,steps:I,options:F}}function h(I,F=null){return{type:2,steps:I,options:F}}function l(I){return{type:6,styles:I,offset:null}}function m(I,F,z){return{type:0,name:I,styles:F,options:z}}function x(I){return{type:5,steps:I}}function O(I,F,z=null){return{type:1,expr:I,animation:F,options:z}}function w(I=null){return{type:9,options:I}}function _(I,F,z=null){return{type:11,selector:I,animation:F,options:z}}function y(I,F){return{type:12,timings:I,animation:F}}function $(I){Promise.resolve().then(I)}class C{constructor(F=0,z=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=F+z}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(F=>F()),this._onDoneFns=[])}onStart(F){this._originalOnStartFns.push(F),this._onStartFns.push(F)}onDone(F){this._originalOnDoneFns.push(F),this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(F=>F()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(F){this._position=this.totalTime?F*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(F){const z="start"==F?this._onStartFns:this._onDoneFns;z.forEach(X=>X()),z.length=0}}class T{constructor(F){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=F;let z=0,X=0,p=0;const P=this.players.length;0==P?$(()=>this._onFinish()):this.players.forEach(E=>{E.onDone(()=>{++z==P&&this._onFinish()}),E.onDestroy(()=>{++X==P&&this._onDestroy()}),E.onStart(()=>{++p==P&&this._onStart()})}),this.totalTime=this.players.reduce((E,R)=>Math.max(E,R.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(F=>F()),this._onDoneFns=[])}init(){this.players.forEach(F=>F.init())}onStart(F){this._onStartFns.push(F)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(F=>F()),this._onStartFns=[])}onDone(F){this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(F=>F.play())}pause(){this.players.forEach(F=>F.pause())}restart(){this.players.forEach(F=>F.restart())}finish(){this._onFinish(),this.players.forEach(F=>F.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(F=>F.destroy()),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}reset(){this.players.forEach(F=>F.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(F){const z=F*this.totalTime;this.players.forEach(X=>{const p=X.totalTime?Math.min(1,z/X.totalTime):1;X.setPosition(p)})}getPosition(){const F=this.players.reduce((z,X)=>null===z||X.totalTime>z.totalTime?X:z,null);return null!=F?F.getPosition():0}beforeDestroy(){this.players.forEach(F=>{F.beforeDestroy&&F.beforeDestroy()})}triggerCallback(F){const z="start"==F?this._onStartFns:this._onDoneFns;z.forEach(X=>X()),z.length=0}}const j="!"},12687:(Ee,Q,t)=>{"use strict";t.d(Q,{$s:()=>R,Em:()=>we,Kd:()=>Tn,X6:()=>Gt,ic:()=>ct,kH:()=>Bt,mK:()=>at,qV:()=>Be,qm:()=>Sn,rt:()=>ke,s1:()=>xe,tE:()=>Nn,yG:()=>wt});var n=t(36895),e=t(94650),i=t(83353),d=t(77579),a=t(50727),u=t(61135),h=t(39646),l=t(29521),m=t(18505),x=t(78372),O=t(39300),L=t(54004),w=t(95698),B=t(35684),_=t(71884),y=t(82722),$=t(21281),C=t(49643),T=t(62289);function z(ge,q){return(ge.getAttribute(q)||"").match(/\S+/g)||[]}const p="cdk-describedby-message",P="cdk-describedby-host";let E=0,R=(()=>{class ge{constructor(J,Oe){this._platform=Oe,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+E++,this._document=J,this._id=(0,e.inject)(e.APP_ID)+"-"+E++}describe(J,Oe,je){if(!this._canBeDescribed(J,Oe))return;const Et=ne(Oe,je);"string"!=typeof Oe?(G(Oe,this._id),this._messageRegistry.set(Et,{messageElement:Oe,referenceCount:0})):this._messageRegistry.has(Et)||this._createMessageElement(Oe,je),this._isElementDescribedByMessage(J,Et)||this._addMessageReference(J,Et)}removeDescription(J,Oe,je){if(!Oe||!this._isElementNode(J))return;const Et=ne(Oe,je);if(this._isElementDescribedByMessage(J,Et)&&this._removeMessageReference(J,Et),"string"==typeof Oe){const dt=this._messageRegistry.get(Et);dt&&0===dt.referenceCount&&this._deleteMessageElement(Et)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const J=this._document.querySelectorAll(`[${P}="${this._id}"]`);for(let Oe=0;Oe<J.length;Oe++)this._removeCdkDescribedByReferenceIds(J[Oe]),J[Oe].removeAttribute(P);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(J,Oe){const je=this._document.createElement("div");G(je,this._id),je.textContent=J,Oe&&je.setAttribute("role",Oe),this._createMessagesContainer(),this._messagesContainer.appendChild(je),this._messageRegistry.set(ne(J,Oe),{messageElement:je,referenceCount:0})}_deleteMessageElement(J){this._messageRegistry.get(J)?.messageElement?.remove(),this._messageRegistry.delete(J)}_createMessagesContainer(){if(this._messagesContainer)return;const J="cdk-describedby-message-container",Oe=this._document.querySelectorAll(`.${J}[platform="server"]`);for(let Et=0;Et<Oe.length;Et++)Oe[Et].remove();const je=this._document.createElement("div");je.style.visibility="hidden",je.classList.add(J),je.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&je.setAttribute("platform","server"),this._document.body.appendChild(je),this._messagesContainer=je}_removeCdkDescribedByReferenceIds(J){const Oe=z(J,"aria-describedby").filter(je=>0!=je.indexOf(p));J.setAttribute("aria-describedby",Oe.join(" "))}_addMessageReference(J,Oe){const je=this._messageRegistry.get(Oe);(function I(ge,q,J){const Oe=z(ge,q);Oe.some(je=>je.trim()==J.trim())||(Oe.push(J.trim()),ge.setAttribute(q,Oe.join(" ")))})(J,"aria-describedby",je.messageElement.id),J.setAttribute(P,this._id),je.referenceCount++}_removeMessageReference(J,Oe){const je=this._messageRegistry.get(Oe);je.referenceCount--,function F(ge,q,J){const je=z(ge,q).filter(Et=>Et!=J.trim());je.length?ge.setAttribute(q,je.join(" ")):ge.removeAttribute(q)}(J,"aria-describedby",je.messageElement.id),J.removeAttribute(P)}_isElementDescribedByMessage(J,Oe){const je=z(J,"aria-describedby"),Et=this._messageRegistry.get(Oe),dt=Et&&Et.messageElement.id;return!!dt&&-1!=je.indexOf(dt)}_canBeDescribed(J,Oe){if(!this._isElementNode(J))return!1;if(Oe&&"object"==typeof Oe)return!0;const je=null==Oe?"":`${Oe}`.trim(),Et=J.getAttribute("aria-label");return!(!je||Et&&Et.trim()===je)}_isElementNode(J){return J.nodeType===this._document.ELEMENT_NODE}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(n.K0),e.\u0275\u0275inject(i.t4))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();function ne(ge,q){return"string"==typeof ge?`${q||""}/${ge}`:ge}function G(ge,q){ge.id||(ge.id=`${p}-${q}-${E++}`)}class ce{constructor(q){this._items=q,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new d.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=J=>J.disabled,this._pressedLetters=[],this.tabOut=new d.x,this.change=new d.x,q instanceof e.QueryList&&(this._itemChangesSubscription=q.changes.subscribe(J=>{if(this._activeItem){const je=J.toArray().indexOf(this._activeItem);je>-1&&je!==this._activeItemIndex&&(this._activeItemIndex=je)}}))}skipPredicate(q){return this._skipPredicateFn=q,this}withWrap(q=!0){return this._wrap=q,this}withVerticalOrientation(q=!0){return this._vertical=q,this}withHorizontalOrientation(q){return this._horizontal=q,this}withAllowedModifierKeys(q){return this._allowedModifierKeys=q,this}withTypeAhead(q=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,m.b)(J=>this._pressedLetters.push(J)),(0,x.b)(q),(0,O.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(J=>{const Oe=this._getItemsArray();for(let je=1;je<Oe.length+1;je++){const Et=(this._activeItemIndex+je)%Oe.length,dt=Oe[Et];if(!this._skipPredicateFn(dt)&&0===dt.getLabel().toUpperCase().trim().indexOf(J)){this.setActiveItem(Et);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(q=!0){return this._homeAndEnd=q,this}withPageUpDown(q=!0,J=10){return this._pageUpAndDown={enabled:q,delta:J},this}setActiveItem(q){const J=this._activeItem;this.updateActiveItem(q),this._activeItem!==J&&this.change.next(this._activeItemIndex)}onKeydown(q){const J=q.keyCode,je=["altKey","ctrlKey","metaKey","shiftKey"].every(Et=>!q[Et]||this._allowedModifierKeys.indexOf(Et)>-1);switch(J){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&je){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&je){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&je){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&je){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&je){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&je){this.setLastItemActive();break}return;case l.Ku:if(this._pageUpAndDown.enabled&&je){const Et=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Et>0?Et:0,1);break}return;case l.VM:if(this._pageUpAndDown.enabled&&je){const Et=this._activeItemIndex+this._pageUpAndDown.delta,dt=this._getItemsArray().length;this._setActiveItemByIndex(Et<dt?Et:dt-1,-1);break}return;default:return void((je||(0,l.Vb)(q,"shiftKey"))&&(q.key&&1===q.key.length?this._letterKeyStream.next(q.key.toLocaleUpperCase()):(J>=l.A&&J<=l.Z||J>=l.xE&&J<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(J))))}this._pressedLetters=[],q.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(q){const J=this._getItemsArray(),Oe="number"==typeof q?q:J.indexOf(q);this._activeItem=J[Oe]??null,this._activeItemIndex=Oe}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(q){this._wrap?this._setActiveInWrapMode(q):this._setActiveInDefaultMode(q)}_setActiveInWrapMode(q){const J=this._getItemsArray();for(let Oe=1;Oe<=J.length;Oe++){const je=(this._activeItemIndex+q*Oe+J.length)%J.length;if(!this._skipPredicateFn(J[je]))return void this.setActiveItem(je)}}_setActiveInDefaultMode(q){this._setActiveItemByIndex(this._activeItemIndex+q,q)}_setActiveItemByIndex(q,J){const Oe=this._getItemsArray();if(Oe[q]){for(;this._skipPredicateFn(Oe[q]);)if(!Oe[q+=J])return;this.setActiveItem(q)}}_getItemsArray(){return this._items instanceof e.QueryList?this._items.toArray():this._items}}class xe extends ce{setActiveItem(q){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(q),this.activeItem&&this.activeItem.setActiveStyles()}}class we extends ce{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(q){return this._origin=q,this}setActiveItem(q){super.setActiveItem(q),this.activeItem&&this.activeItem.focus(this._origin)}}let ct=(()=>{class ge{constructor(J){this._platform=J}isDisabled(J){return J.hasAttribute("disabled")}isVisible(J){return function Ce(ge){return!!(ge.offsetWidth||ge.offsetHeight||"function"==typeof ge.getClientRects&&ge.getClientRects().length)}(J)&&"visible"===getComputedStyle(J).visibility}isTabbable(J){if(!this._platform.isBrowser)return!1;const Oe=function pe(ge){try{return ge.frameElement}catch{return null}}(function Xe(ge){return ge.ownerDocument&&ge.ownerDocument.defaultView||window}(J));if(Oe&&(-1===pt(Oe)||!this.isVisible(Oe)))return!1;let je=J.nodeName.toLowerCase(),Et=pt(J);return J.hasAttribute("contenteditable")?-1!==Et:!("iframe"===je||"object"===je||this._platform.WEBKIT&&this._platform.IOS&&!function Ht(ge){let q=ge.nodeName.toLowerCase(),J="input"===q&&ge.type;return"text"===J||"password"===J||"select"===q||"textarea"===q}(J))&&("audio"===je?!!J.hasAttribute("controls")&&-1!==Et:"video"===je?-1!==Et&&(null!==Et||this._platform.FIREFOX||J.hasAttribute("controls")):J.tabIndex>=0)}isFocusable(J,Oe){return function Wt(ge){return!function H(ge){return function oe(ge){return"input"==ge.nodeName.toLowerCase()}(ge)&&"hidden"==ge.type}(ge)&&(function U(ge){let q=ge.nodeName.toLowerCase();return"input"===q||"select"===q||"button"===q||"textarea"===q}(ge)||function Z(ge){return function Pe(ge){return"a"==ge.nodeName.toLowerCase()}(ge)&&ge.hasAttribute("href")}(ge)||ge.hasAttribute("contenteditable")||Ie(ge))}(J)&&!this.isDisabled(J)&&(Oe?.ignoreVisibility||this.isVisible(J))}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(i.t4))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();function Ie(ge){if(!ge.hasAttribute("tabindex")||void 0===ge.tabIndex)return!1;let q=ge.getAttribute("tabindex");return!(!q||isNaN(parseInt(q,10)))}function pt(ge){if(!Ie(ge))return null;const q=parseInt(ge.getAttribute("tabindex")||"",10);return isNaN(q)?-1:q}class Qe{get enabled(){return this._enabled}set enabled(q){this._enabled=q,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(q,this._startAnchor),this._toggleAnchorTabIndex(q,this._endAnchor))}constructor(q,J,Oe,je,Et=!1){this._element=q,this._checker=J,this._ngZone=Oe,this._document=je,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Et||this.attachAnchors()}destroy(){const q=this._startAnchor,J=this._endAnchor;q&&(q.removeEventListener("focus",this.startAnchorListener),q.remove()),J&&(J.removeEventListener("focus",this.endAnchorListener),J.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusInitialElement(q)))})}focusFirstTabbableElementWhenReady(q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusFirstTabbableElement(q)))})}focusLastTabbableElementWhenReady(q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusLastTabbableElement(q)))})}_getRegionBoundary(q){const J=this._element.querySelectorAll(`[cdk-focus-region-${q}], [cdkFocusRegion${q}], [cdk-focus-${q}]`);return"start"==q?J.length?J[0]:this._getFirstTabbableElement(this._element):J.length?J[J.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(q){const J=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(J){if(!this._checker.isFocusable(J)){const Oe=this._getFirstTabbableElement(J);return Oe?.focus(q),!!Oe}return J.focus(q),!0}return this.focusFirstTabbableElement(q)}focusFirstTabbableElement(q){const J=this._getRegionBoundary("start");return J&&J.focus(q),!!J}focusLastTabbableElement(q){const J=this._getRegionBoundary("end");return J&&J.focus(q),!!J}hasAttached(){return this._hasAttached}_getFirstTabbableElement(q){if(this._checker.isFocusable(q)&&this._checker.isTabbable(q))return q;const J=q.children;for(let Oe=0;Oe<J.length;Oe++){const je=J[Oe].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(J[Oe]):null;if(je)return je}return null}_getLastTabbableElement(q){if(this._checker.isFocusable(q)&&this._checker.isTabbable(q))return q;const J=q.children;for(let Oe=J.length-1;Oe>=0;Oe--){const je=J[Oe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(J[Oe]):null;if(je)return je}return null}_createAnchor(){const q=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,q),q.classList.add("cdk-visually-hidden"),q.classList.add("cdk-focus-trap-anchor"),q.setAttribute("aria-hidden","true"),q}_toggleAnchorTabIndex(q,J){q?J.setAttribute("tabindex","0"):J.removeAttribute("tabindex")}toggleAnchors(q){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(q,this._startAnchor),this._toggleAnchorTabIndex(q,this._endAnchor))}_executeOnStable(q){this._ngZone.isStable?q():this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(q)}}let Be=(()=>{class ge{constructor(J,Oe,je){this._checker=J,this._ngZone=Oe,this._document=je}create(J,Oe=!1){return new Qe(J,this._checker,this._ngZone,this._document,Oe)}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(ct),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(n.K0))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),at=(()=>{class ge{get enabled(){return this.focusTrap.enabled}set enabled(J){this.focusTrap.enabled=(0,$.Ig)(J)}get autoCapture(){return this._autoCapture}set autoCapture(J){this._autoCapture=(0,$.Ig)(J)}constructor(J,Oe,je){this._elementRef=J,this._focusTrapFactory=Oe,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(J){const Oe=J.autoCapture;Oe&&!Oe.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,i.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(Be),e.\u0275\u0275directiveInject(n.K0))},ge.\u0275dir=e.\u0275\u0275defineDirective({type:ge,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.\u0275\u0275NgOnChangesFeature]}),ge})();function Gt(ge){return 0===ge.buttons||0===ge.offsetX&&0===ge.offsetY}function wt(ge){const q=ge.touches&&ge.touches[0]||ge.changedTouches&&ge.changedTouches[0];return!(!q||-1!==q.identifier||null!=q.radiusX&&1!==q.radiusX||null!=q.radiusY&&1!==q.radiusY)}const Ze=new e.InjectionToken("cdk-input-modality-detector-options"),Ut={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},xn=(0,i.i$)({passive:!0,capture:!0});let bn=(()=>{class ge{get mostRecentModality(){return this._modality.value}constructor(J,Oe,je,Et){this._platform=J,this._mostRecentTarget=null,this._modality=new u.X(null),this._lastTouchMs=0,this._onKeydown=dt=>{this._options?.ignoreKeys?.some(rt=>rt===dt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,i.sA)(dt))},this._onMousedown=dt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Gt(dt)?"keyboard":"mouse"),this._mostRecentTarget=(0,i.sA)(dt))},this._onTouchstart=dt=>{wt(dt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,i.sA)(dt))},this._options={...Ut,...Et},this.modalityDetected=this._modality.pipe((0,B.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,_.x)()),J.isBrowser&&Oe.runOutsideAngular(()=>{je.addEventListener("keydown",this._onKeydown,xn),je.addEventListener("mousedown",this._onMousedown,xn),je.addEventListener("touchstart",this._onTouchstart,xn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,xn),document.removeEventListener("mousedown",this._onMousedown,xn),document.removeEventListener("touchstart",this._onTouchstart,xn))}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(i.t4),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(n.K0),e.\u0275\u0275inject(Ze,8))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();const hn=new e.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function pn(){return null}}),In=new e.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Dn=0,Tn=(()=>{class ge{constructor(J,Oe,je,Et){this._ngZone=Oe,this._defaultOptions=Et,this._document=je,this._liveElement=J||this._createLiveElement()}announce(J,...Oe){const je=this._defaultOptions;let Et,dt;return 1===Oe.length&&"number"==typeof Oe[0]?dt=Oe[0]:[Et,dt]=Oe,this.clear(),clearTimeout(this._previousTimeout),Et||(Et=je&&je.politeness?je.politeness:"polite"),null==dt&&je&&(dt=je.duration),this._liveElement.setAttribute("aria-live",Et),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(rt=>this._currentResolve=rt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=J,"number"==typeof dt&&(this._previousTimeout=setTimeout(()=>this.clear(),dt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const J="cdk-live-announcer-element",Oe=this._document.getElementsByClassName(J),je=this._document.createElement("div");for(let Et=0;Et<Oe.length;Et++)Oe[Et].remove();return je.classList.add(J),je.classList.add("cdk-visually-hidden"),je.setAttribute("aria-atomic","true"),je.setAttribute("aria-live","polite"),je.id="cdk-live-announcer-"+Dn++,this._document.body.appendChild(je),je}_exposeAnnouncerToModals(J){const Oe=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let je=0;je<Oe.length;je++){const Et=Oe[je],dt=Et.getAttribute("aria-owns");dt?-1===dt.indexOf(J)&&Et.setAttribute("aria-owns",dt+" "+J):Et.setAttribute("aria-owns",J)}}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(hn,8),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(n.K0),e.\u0275\u0275inject(In,8))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();const Yn=new e.InjectionToken("cdk-focus-monitor-default-options"),cn=(0,i.i$)({passive:!0,capture:!0});let Nn=(()=>{class ge{constructor(J,Oe,je,Et,dt){this._ngZone=J,this._platform=Oe,this._inputModalityDetector=je,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new d.x,this._rootNodeFocusAndBlurListener=rt=>{for(let ze=(0,i.sA)(rt);ze;ze=ze.parentElement)"focus"===rt.type?this._onFocus(rt,ze):this._onBlur(rt,ze)},this._document=Et,this._detectionMode=dt?.detectionMode||0}monitor(J,Oe=!1){const je=(0,$.fI)(J);if(!this._platform.isBrowser||1!==je.nodeType)return(0,h.of)(null);const Et=(0,i.kV)(je)||this._getDocument(),dt=this._elementInfo.get(je);if(dt)return Oe&&(dt.checkChildren=!0),dt.subject;const rt={checkChildren:Oe,subject:new d.x,rootNode:Et};return this._elementInfo.set(je,rt),this._registerGlobalListeners(rt),rt.subject}stopMonitoring(J){const Oe=(0,$.fI)(J),je=this._elementInfo.get(Oe);je&&(je.subject.complete(),this._setClasses(Oe),this._elementInfo.delete(Oe),this._removeGlobalListeners(je))}focusVia(J,Oe,je){const Et=(0,$.fI)(J);Et===this._getDocument().activeElement?this._getClosestElementsInfo(Et).forEach(([rt,qe])=>this._originChanged(rt,Oe,qe)):(this._setOrigin(Oe),"function"==typeof Et.focus&&Et.focus(je))}ngOnDestroy(){this._elementInfo.forEach((J,Oe)=>this.stopMonitoring(Oe))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(J){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(J)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:J&&this._isLastInteractionFromInputLabel(J)?"mouse":"program"}_shouldBeAttributedToTouch(J){return 1===this._detectionMode||!!J?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(J,Oe){J.classList.toggle("cdk-focused",!!Oe),J.classList.toggle("cdk-touch-focused","touch"===Oe),J.classList.toggle("cdk-keyboard-focused","keyboard"===Oe),J.classList.toggle("cdk-mouse-focused","mouse"===Oe),J.classList.toggle("cdk-program-focused","program"===Oe)}_setOrigin(J,Oe=!1){this._ngZone.runOutsideAngular(()=>{this._origin=J,this._originFromTouchInteraction="touch"===J&&Oe,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(J,Oe){const je=this._elementInfo.get(Oe),Et=(0,i.sA)(J);!je||!je.checkChildren&&Oe!==Et||this._originChanged(Oe,this._getFocusOrigin(Et),je)}_onBlur(J,Oe){const je=this._elementInfo.get(Oe);!je||je.checkChildren&&J.relatedTarget instanceof Node&&Oe.contains(J.relatedTarget)||(this._setClasses(Oe),this._emitOrigin(je,null))}_emitOrigin(J,Oe){J.subject.observers.length&&this._ngZone.run(()=>J.subject.next(Oe))}_registerGlobalListeners(J){if(!this._platform.isBrowser)return;const Oe=J.rootNode,je=this._rootNodeFocusListenerCount.get(Oe)||0;je||this._ngZone.runOutsideAngular(()=>{Oe.addEventListener("focus",this._rootNodeFocusAndBlurListener,cn),Oe.addEventListener("blur",this._rootNodeFocusAndBlurListener,cn)}),this._rootNodeFocusListenerCount.set(Oe,je+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,y.R)(this._stopInputModalityDetector)).subscribe(Et=>{this._setOrigin(Et,!0)}))}_removeGlobalListeners(J){const Oe=J.rootNode;if(this._rootNodeFocusListenerCount.has(Oe)){const je=this._rootNodeFocusListenerCount.get(Oe);je>1?this._rootNodeFocusListenerCount.set(Oe,je-1):(Oe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cn),Oe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cn),this._rootNodeFocusListenerCount.delete(Oe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(J,Oe,je){this._setClasses(J,Oe),this._emitOrigin(je,Oe),this._lastFocusOrigin=Oe}_getClosestElementsInfo(J){const Oe=[];return this._elementInfo.forEach((je,Et)=>{(Et===J||je.checkChildren&&Et.contains(J))&&Oe.push([Et,je])}),Oe}_isLastInteractionFromInputLabel(J){const{_mostRecentTarget:Oe,mostRecentModality:je}=this._inputModalityDetector;if("mouse"!==je||!Oe||Oe===J||"INPUT"!==J.nodeName&&"TEXTAREA"!==J.nodeName||J.disabled)return!1;const Et=J.labels;if(Et)for(let dt=0;dt<Et.length;dt++)if(Et[dt].contains(Oe))return!0;return!1}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(i.t4),e.\u0275\u0275inject(bn),e.\u0275\u0275inject(n.K0,8),e.\u0275\u0275inject(Yn,8))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),Bt=(()=>{class ge{constructor(J,Oe){this._elementRef=J,this._focusMonitor=Oe,this._focusOrigin=null,this.cdkFocusChange=new e.EventEmitter}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const J=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(J,1===J.nodeType&&J.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Oe=>{this._focusOrigin=Oe,this.cdkFocusChange.emit(Oe)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(Nn))},ge.\u0275dir=e.\u0275\u0275defineDirective({type:ge,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),ge})();const En="cdk-high-contrast-black-on-white",Wn="cdk-high-contrast-white-on-black",rn="cdk-high-contrast-active";let Sn=(()=>{class ge{constructor(J,Oe){this._platform=J,this._document=Oe,this._breakpointSubscription=(0,e.inject)(T.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const J=this._document.createElement("div");J.style.backgroundColor="rgb(1,2,3)",J.style.position="absolute",this._document.body.appendChild(J);const Oe=this._document.defaultView||window,je=Oe&&Oe.getComputedStyle?Oe.getComputedStyle(J):null,Et=(je&&je.backgroundColor||"").replace(/ /g,"");switch(J.remove(),Et){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const J=this._document.body.classList;J.remove(rn,En,Wn),this._hasCheckedHighContrastMode=!0;const Oe=this.getHighContrastMode();1===Oe?J.add(rn,En):2===Oe&&J.add(rn,Wn)}}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(i.t4),e.\u0275\u0275inject(n.K0))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),ke=(()=>{class ge{constructor(J){J._applyBodyHighContrastModeCssClasses()}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(Sn))},ge.\u0275mod=e.\u0275\u0275defineNgModule({type:ge}),ge.\u0275inj=e.\u0275\u0275defineInjector({imports:[C.Q8]}),ge})()},40445:(Ee,Q,t)=>{"use strict";t.d(Q,{Is:()=>h,vT:()=>m});var n=t(94650),e=t(36895);const i=new n.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function d(){return(0,n.inject)(e.K0)}}),a=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let h=(()=>{class x{constructor(L){this.value="ltr",this.change=new n.EventEmitter,L&&(this.value=function u(x){const O=x?.toLowerCase()||"";return"auto"===O&&typeof navigator<"u"&&navigator?.language?a.test(navigator.language)?"rtl":"ltr":"rtl"===O?"rtl":"ltr"}((L.body?L.body.dir:null)||(L.documentElement?L.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return x.\u0275fac=function(L){return new(L||x)(n.\u0275\u0275inject(i,8))},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),m=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=n.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=n.\u0275\u0275defineInjector({}),x})()},21281:(Ee,Q,t)=>{"use strict";t.d(Q,{Eq:()=>a,HM:()=>u,Ig:()=>e,du:()=>l,fI:()=>h,su:()=>i});var n=t(94650);function e(m){return null!=m&&"false"!=`${m}`}function i(m,x=0){return function d(m){return!isNaN(parseFloat(m))&&!isNaN(Number(m))}(m)?Number(m):x}function a(m){return Array.isArray(m)?m:[m]}function u(m){return null==m?"":"string"==typeof m?m:`${m}px`}function h(m){return m instanceof n.ElementRef?m.nativeElement:m}function l(m,x=/\s+/){const O=[];if(null!=m){const L=Array.isArray(m)?m:`${m}`.split(x);for(const w of L){const B=`${w}`.trim();B&&O.push(B)}}return O}},95017:(Ee,Q,t)=>{"use strict";t.d(Q,{A8:()=>x,Ov:()=>l});var n=t(77579),e=t(94650);class l{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(w=!1,B,_=!0,y){this._multiple=w,this._emitChanges=_,this.compareWith=y,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.x,B&&B.length&&(w?B.forEach($=>this._markSelected($)):this._markSelected(B[0]),this._selectedToEmit.length=0)}select(...w){this._verifyValueAssignment(w),w.forEach(_=>this._markSelected(_));const B=this._hasQueuedChanges();return this._emitChangeEvent(),B}deselect(...w){this._verifyValueAssignment(w),w.forEach(_=>this._unmarkSelected(_));const B=this._hasQueuedChanges();return this._emitChangeEvent(),B}setSelection(...w){this._verifyValueAssignment(w);const B=this.selected,_=new Set(w);w.forEach($=>this._markSelected($)),B.filter($=>!_.has($)).forEach($=>this._unmarkSelected($));const y=this._hasQueuedChanges();return this._emitChangeEvent(),y}toggle(w){return this.isSelected(w)?this.deselect(w):this.select(w)}clear(w=!0){this._unmarkAll();const B=this._hasQueuedChanges();return w&&this._emitChangeEvent(),B}isSelected(w){return this._selection.has(this._getConcreteValue(w))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(w){this._multiple&&this.selected&&this._selected.sort(w)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(w){w=this._getConcreteValue(w),this.isSelected(w)||(this._multiple||this._unmarkAll(),this.isSelected(w)||this._selection.add(w),this._emitChanges&&this._selectedToEmit.push(w))}_unmarkSelected(w){w=this._getConcreteValue(w),this.isSelected(w)&&(this._selection.delete(w),this._emitChanges&&this._deselectedToEmit.push(w))}_unmarkAll(){this.isEmpty()||this._selection.forEach(w=>this._unmarkSelected(w))}_verifyValueAssignment(w){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(w){if(this.compareWith){for(let B of this._selection)if(this.compareWith(w,B))return B;return w}return w}}let x=(()=>{class L{constructor(){this._listeners=[]}notify(B,_){for(let y of this._listeners)y(B,_)}listen(B){return this._listeners.push(B),()=>{this._listeners=this._listeners.filter(_=>B!==_)}}ngOnDestroy(){this._listeners=[]}}return L.\u0275fac=function(B){return new(B||L)},L.\u0275prov=e.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},97855:(Ee,Q,t)=>{"use strict";t.d(Q,{LL:()=>y,Su:()=>P,Vq:()=>X,ib:()=>B});var n=t(12687),e=t(98184),i=t(83353),d=t(84080),a=t(36895),u=t(94650),h=t(29521),l=t(77579),m=t(49770),x=t(39646),O=t(40445),L=t(68675);function w(E,R){}class B{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let y=(()=>{class E extends d.en{constructor(ne,G,ce,xe,we,Ge,ct,pe){super(),this._elementRef=ne,this._focusTrapFactory=G,this._config=xe,this._interactivityChecker=we,this._ngZone=Ge,this._overlayRef=ct,this._focusMonitor=pe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ce=>{this._portalOutlet.hasAttached();const U=this._portalOutlet.attachDomPortal(Ce);return this._contentAttached(),U},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=ce}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(ne){this._portalOutlet.hasAttached();const G=this._portalOutlet.attachComponentPortal(ne);return this._contentAttached(),G}attachTemplatePortal(ne){this._portalOutlet.hasAttached();const G=this._portalOutlet.attachTemplatePortal(ne);return this._contentAttached(),G}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ne,G){this._interactivityChecker.isFocusable(ne)||(ne.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ce=()=>{ne.removeEventListener("blur",ce),ne.removeEventListener("mousedown",ce),ne.removeAttribute("tabindex")};ne.addEventListener("blur",ce),ne.addEventListener("mousedown",ce)})),ne.focus(G)}_focusByCssSelector(ne,G){let ce=this._elementRef.nativeElement.querySelector(ne);ce&&this._forceFocus(ce,G)}_trapFocus(){const ne=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ne.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(G=>{G||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const ne=this._config.restoreFocus;let G=null;if("string"==typeof ne?G=this._document.querySelector(ne):"boolean"==typeof ne?G=ne?this._elementFocusedBeforeDialogWasOpened:null:ne&&(G=ne),this._config.restoreFocus&&G&&"function"==typeof G.focus){const ce=(0,i.ht)(),xe=this._elementRef.nativeElement;(!ce||ce===this._document.body||ce===xe||xe.contains(ce))&&(this._focusMonitor?(this._focusMonitor.focusVia(G,this._closeInteractionType),this._closeInteractionType=null):G.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ne=this._elementRef.nativeElement,G=(0,i.ht)();return ne===G||ne.contains(G)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,i.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return E.\u0275fac=function(ne){return new(ne||E)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(n.qV),u.\u0275\u0275directiveInject(a.K0,8),u.\u0275\u0275directiveInject(B),u.\u0275\u0275directiveInject(n.ic),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(e.Iu),u.\u0275\u0275directiveInject(n.tE))},E.\u0275cmp=u.\u0275\u0275defineComponent({type:E,selectors:[["cdk-dialog-container"]],viewQuery:function(ne,G){if(1&ne&&u.\u0275\u0275viewQuery(d.Pl,7),2&ne){let ce;u.\u0275\u0275queryRefresh(ce=u.\u0275\u0275loadQuery())&&(G._portalOutlet=ce.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ne,G){2&ne&&u.\u0275\u0275attribute("id",G._config.id||null)("role",G._config.role)("aria-modal",G._config.ariaModal)("aria-labelledby",G._config.ariaLabel?null:G._ariaLabelledBy)("aria-label",G._config.ariaLabel)("aria-describedby",G._config.ariaDescribedBy||null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ne,G){1&ne&&u.\u0275\u0275template(0,w,0,0,"ng-template",0)},dependencies:[d.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),E})();class ${constructor(R,ne){this.overlayRef=R,this.config=ne,this.closed=new l.x,this.disableClose=ne.disableClose,this.backdropClick=R.backdropClick(),this.keydownEvents=R.keydownEvents(),this.outsidePointerEvents=R.outsidePointerEvents(),this.id=ne.id,this.keydownEvents.subscribe(G=>{G.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(G)&&(G.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=R.detachments().subscribe(()=>{!1!==ne.closeOnOverlayDetachments&&this.close()})}close(R,ne){if(this.containerInstance){const G=this.closed;this.containerInstance._closeInteractionType=ne?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),G.next(R),G.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(R="",ne=""){return this.overlayRef.updateSize({width:R,height:ne}),this}addPanelClass(R){return this.overlayRef.addPanelClass(R),this}removePanelClass(R){return this.overlayRef.removePanelClass(R),this}}const C=new u.InjectionToken("DialogScrollStrategy"),T=new u.InjectionToken("DialogData"),j=new u.InjectionToken("DefaultDialogConfig"),F={provide:C,deps:[e.aV],useFactory:function I(E){return()=>E.scrollStrategies.block()}};let z=0,X=(()=>{class E{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(ne,G,ce,xe,we,Ge){this._overlay=ne,this._injector=G,this._defaultOptions=ce,this._parentDialog=xe,this._overlayContainer=we,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.x,this._afterOpenedAtThisLevel=new l.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,m.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Ge}open(ne,G){(G={...this._defaultOptions||new B,...G}).id=G.id||"cdk-dialog-"+z++,G.id&&this.getDialogById(G.id);const xe=this._getOverlayConfig(G),we=this._overlay.create(xe),Ge=new $(we,G),ct=this._attachContainer(we,Ge,G);return Ge.containerInstance=ct,this._attachDialogContent(ne,Ge,ct,G),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ge),Ge.closed.subscribe(()=>this._removeOpenDialog(Ge,!0)),this.afterOpened.next(Ge),Ge}closeAll(){p(this.openDialogs,ne=>ne.close())}getDialogById(ne){return this.openDialogs.find(G=>G.id===ne)}ngOnDestroy(){p(this._openDialogsAtThisLevel,ne=>{!1===ne.config.closeOnDestroy&&this._removeOpenDialog(ne,!1)}),p(this._openDialogsAtThisLevel,ne=>ne.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(ne){const G=new e.X_({positionStrategy:ne.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:ne.scrollStrategy||this._scrollStrategy(),panelClass:ne.panelClass,hasBackdrop:ne.hasBackdrop,direction:ne.direction,minWidth:ne.minWidth,minHeight:ne.minHeight,maxWidth:ne.maxWidth,maxHeight:ne.maxHeight,width:ne.width,height:ne.height,disposeOnNavigation:ne.closeOnNavigation});return ne.backdropClass&&(G.backdropClass=ne.backdropClass),G}_attachContainer(ne,G,ce){const xe=ce.injector||ce.viewContainerRef?.injector,we=[{provide:B,useValue:ce},{provide:$,useValue:G},{provide:e.Iu,useValue:ne}];let Ge;ce.container?"function"==typeof ce.container?Ge=ce.container:(Ge=ce.container.type,we.push(...ce.container.providers(ce))):Ge=y;const ct=new d.C5(Ge,ce.viewContainerRef,u.Injector.create({parent:xe||this._injector,providers:we}),ce.componentFactoryResolver);return ne.attach(ct).instance}_attachDialogContent(ne,G,ce,xe){if(ne instanceof u.TemplateRef){const we=this._createInjector(xe,G,ce,void 0);let Ge={$implicit:xe.data,dialogRef:G};xe.templateContext&&(Ge={...Ge,..."function"==typeof xe.templateContext?xe.templateContext():xe.templateContext}),ce.attachTemplatePortal(new d.UE(ne,null,Ge,we))}else{const we=this._createInjector(xe,G,ce,this._injector),Ge=ce.attachComponentPortal(new d.C5(ne,xe.viewContainerRef,we,xe.componentFactoryResolver));G.componentInstance=Ge.instance}}_createInjector(ne,G,ce,xe){const we=ne.injector||ne.viewContainerRef?.injector,Ge=[{provide:T,useValue:ne.data},{provide:$,useValue:G}];return ne.providers&&("function"==typeof ne.providers?Ge.push(...ne.providers(G,ne,ce)):Ge.push(...ne.providers)),ne.direction&&(!we||!we.get(O.Is,null,{optional:!0}))&&Ge.push({provide:O.Is,useValue:{value:ne.direction,change:(0,x.of)()}}),u.Injector.create({parent:we||xe,providers:Ge})}_removeOpenDialog(ne,G){const ce=this.openDialogs.indexOf(ne);ce>-1&&(this.openDialogs.splice(ce,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((xe,we)=>{xe?we.setAttribute("aria-hidden",xe):we.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),G&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ne=this._overlayContainer.getContainerElement();if(ne.parentElement){const G=ne.parentElement.children;for(let ce=G.length-1;ce>-1;ce--){const xe=G[ce];xe!==ne&&"SCRIPT"!==xe.nodeName&&"STYLE"!==xe.nodeName&&!xe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(xe,xe.getAttribute("aria-hidden")),xe.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const ne=this._parentDialog;return ne?ne._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return E.\u0275fac=function(ne){return new(ne||E)(u.\u0275\u0275inject(e.aV),u.\u0275\u0275inject(u.Injector),u.\u0275\u0275inject(j,8),u.\u0275\u0275inject(E,12),u.\u0275\u0275inject(e.Xj),u.\u0275\u0275inject(C))},E.\u0275prov=u.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E})();function p(E,R){let ne=E.length;for(;ne--;)R(E[ne])}let P=(()=>{class E{}return E.\u0275fac=function(ne){return new(ne||E)},E.\u0275mod=u.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=u.\u0275\u0275defineInjector({providers:[X,F],imports:[e.U8,d.eL,n.rt,d.eL]}),E})()},29521:(Ee,Q,t)=>{"use strict";t.d(Q,{A:()=>H,JH:()=>j,JU:()=>u,K5:()=>a,Ku:()=>w,LH:()=>C,L_:()=>L,MW:()=>In,Mf:()=>i,SV:()=>T,Sd:()=>y,VM:()=>B,Vb:()=>Le,Z:()=>pn,aO:()=>Ge,b2:()=>bt,hY:()=>O,jx:()=>h,oh:()=>$,uR:()=>_,xE:()=>p,zL:()=>l});const i=9,a=13,u=16,h=17,l=18,O=27,L=32,w=33,B=34,_=35,y=36,$=37,C=38,T=39,j=40,p=48,Ge=57,H=65,pn=90,In=91,bt=224;function Le(Pt,...dn){return dn.length?dn.some(St=>Pt[St]):Pt.altKey||Pt.shiftKey||Pt.ctrlKey||Pt.metaKey}},62289:(Ee,Q,t)=>{"use strict";t.d(Q,{Yg:()=>j});var n=t(94650),e=t(21281),i=t(77579),d=t(39841),a=t(97272),u=t(69751),h=t(95698),l=t(35684),m=t(78372),x=t(54004),O=t(68675),L=t(82722),w=t(83353);const _=new Set;let y,$=(()=>{class z{constructor(p){this._platform=p,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):T}matchMedia(p){return(this._platform.WEBKIT||this._platform.BLINK)&&function C(z){if(!_.has(z))try{y||(y=document.createElement("style"),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${z} {body{ }}`,0),_.add(z))}catch(X){console.error(X)}}(p),this._matchMedia(p)}}return z.\u0275fac=function(p){return new(p||z)(n.\u0275\u0275inject(w.t4))},z.\u0275prov=n.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();function T(z){return{matches:"all"===z||""===z,media:z,addListener:()=>{},removeListener:()=>{}}}let j=(()=>{class z{constructor(p,P){this._mediaMatcher=p,this._zone=P,this._queries=new Map,this._destroySubject=new i.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(p){return I((0,e.Eq)(p)).some(E=>this._registerQuery(E).mql.matches)}observe(p){const E=I((0,e.Eq)(p)).map(ne=>this._registerQuery(ne).observable);let R=(0,d.a)(E);return R=(0,a.z)(R.pipe((0,h.q)(1)),R.pipe((0,l.T)(1),(0,m.b)(0))),R.pipe((0,x.U)(ne=>{const G={matches:!1,breakpoints:{}};return ne.forEach(({matches:ce,query:xe})=>{G.matches=G.matches||ce,G.breakpoints[xe]=ce}),G}))}_registerQuery(p){if(this._queries.has(p))return this._queries.get(p);const P=this._mediaMatcher.matchMedia(p),R={observable:new u.y(ne=>{const G=ce=>this._zone.run(()=>ne.next(ce));return P.addListener(G),()=>{P.removeListener(G)}}).pipe((0,O.O)(P),(0,x.U)(({matches:ne})=>({query:p,matches:ne})),(0,L.R)(this._destroySubject)),mql:P};return this._queries.set(p,R),R}}return z.\u0275fac=function(p){return new(p||z)(n.\u0275\u0275inject($),n.\u0275\u0275inject(n.NgZone))},z.\u0275prov=n.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();function I(z){return z.map(X=>X.split(",")).reduce((X,p)=>X.concat(p)).map(X=>X.trim())}},49643:(Ee,Q,t)=>{"use strict";t.d(Q,{Q8:()=>m,wD:()=>l});var n=t(21281),e=t(94650),i=t(69751),d=t(77579),a=t(78372);let u=(()=>{class x{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return x.\u0275fac=function(L){return new(L||x)},x.\u0275prov=e.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),h=(()=>{class x{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,w)=>this._cleanupObserver(w))}observe(L){const w=(0,n.fI)(L);return new i.y(B=>{const y=this._observeElement(w).subscribe(B);return()=>{y.unsubscribe(),this._unobserveElement(w)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const w=new d.x,B=this._mutationObserverFactory.create(_=>w.next(_));B&&B.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:B,stream:w,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:w,stream:B}=this._observedElements.get(L);w&&w.disconnect(),B.complete(),this._observedElements.delete(L)}}}return x.\u0275fac=function(L){return new(L||x)(e.\u0275\u0275inject(u))},x.\u0275prov=e.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),l=(()=>{class x{get disabled(){return this._disabled}set disabled(L){this._disabled=(0,n.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,n.su)(L),this._subscribe()}constructor(L,w,B){this._contentObserver=L,this._elementRef=w,this._ngZone=B,this.event=new e.EventEmitter,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,a.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return x.\u0275fac=function(L){return new(L||x)(e.\u0275\u0275directiveInject(h),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone))},x.\u0275dir=e.\u0275\u0275defineDirective({type:x,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),x})(),m=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=e.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=e.\u0275\u0275defineInjector({providers:[u]}),x})()},98184:(Ee,Q,t)=>{"use strict";t.d(Q,{Iu:()=>ct,U8:()=>ot,X_:()=>p,Xj:()=>Ge,_G:()=>U,aV:()=>Qe,pI:()=>Dt,tR:()=>P,xu:()=>lt});var n=t(4883),e=t(36895),i=t(94650),d=t(21281),a=t(83353),u=t(39300),h=t(95698),l=t(82722),m=t(22529),x=t(40445),O=t(84080),L=t(77579),w=t(50727),B=t(56451),_=t(29521);const y=(0,a.Mq)();class ${constructor(Ze,Ut){this._viewportRuler=Ze,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ut}attach(){}enable(){if(this._canBeEnabled()){const Ze=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Ze.style.left||"",this._previousHTMLStyles.top=Ze.style.top||"",Ze.style.left=(0,d.HM)(-this._previousScrollPosition.left),Ze.style.top=(0,d.HM)(-this._previousScrollPosition.top),Ze.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Ze=this._document.documentElement,vn=Ze.style,xn=this._document.body.style,bn=vn.scrollBehavior||"",hn=xn.scrollBehavior||"";this._isEnabled=!1,vn.left=this._previousHTMLStyles.left,vn.top=this._previousHTMLStyles.top,Ze.classList.remove("cdk-global-scrollblock"),y&&(vn.scrollBehavior=xn.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(vn.scrollBehavior=bn,xn.scrollBehavior=hn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ut=this._document.body,vn=this._viewportRuler.getViewportSize();return Ut.scrollHeight>vn.height||Ut.scrollWidth>vn.width}}class T{constructor(Ze,Ut,vn,xn){this._scrollDispatcher=Ze,this._ngZone=Ut,this._viewportRuler=vn,this._config=xn,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Ze){this._overlayRef=Ze}enable(){if(this._scrollSubscription)return;const Ze=this._scrollDispatcher.scrolled(0).pipe((0,u.h)(Ut=>!Ut||!this._overlayRef.overlayElement.contains(Ut.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Ze.subscribe(()=>{const Ut=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ut-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Ze.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class j{enable(){}disable(){}attach(){}}function I(wt,Ze){return Ze.some(Ut=>wt.bottom<Ut.top||wt.top>Ut.bottom||wt.right<Ut.left||wt.left>Ut.right)}function F(wt,Ze){return Ze.some(Ut=>wt.top<Ut.top||wt.bottom>Ut.bottom||wt.left<Ut.left||wt.right>Ut.right)}class z{constructor(Ze,Ut,vn,xn){this._scrollDispatcher=Ze,this._viewportRuler=Ut,this._ngZone=vn,this._config=xn,this._scrollSubscription=null}attach(Ze){this._overlayRef=Ze}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Ut=this._overlayRef.overlayElement.getBoundingClientRect(),{width:vn,height:xn}=this._viewportRuler.getViewportSize();I(Ut,[{width:vn,height:xn,bottom:xn,right:vn,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let X=(()=>{class wt{constructor(Ut,vn,xn,bn){this._scrollDispatcher=Ut,this._viewportRuler=vn,this._ngZone=xn,this.noop=()=>new j,this.close=hn=>new T(this._scrollDispatcher,this._ngZone,this._viewportRuler,hn),this.block=()=>new $(this._viewportRuler,this._document),this.reposition=hn=>new z(this._scrollDispatcher,this._viewportRuler,this._ngZone,hn),this._document=bn}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275inject(n.mF),i.\u0275\u0275inject(n.rL),i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(e.K0))},wt.\u0275prov=i.\u0275\u0275defineInjectable({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})();class p{constructor(Ze){if(this.scrollStrategy=new j,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Ze){const Ut=Object.keys(Ze);for(const vn of Ut)void 0!==Ze[vn]&&(this[vn]=Ze[vn])}}}class P{constructor(Ze,Ut,vn,xn,bn){this.offsetX=vn,this.offsetY=xn,this.panelClass=bn,this.originX=Ze.originX,this.originY=Ze.originY,this.overlayX=Ut.overlayX,this.overlayY=Ut.overlayY}}class R{constructor(Ze,Ut){this.connectionPair=Ze,this.scrollableViewProperties=Ut}}let ce=(()=>{class wt{constructor(Ut){this._attachedOverlays=[],this._document=Ut}ngOnDestroy(){this.detach()}add(Ut){this.remove(Ut),this._attachedOverlays.push(Ut)}remove(Ut){const vn=this._attachedOverlays.indexOf(Ut);vn>-1&&this._attachedOverlays.splice(vn,1),0===this._attachedOverlays.length&&this.detach()}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275inject(e.K0))},wt.\u0275prov=i.\u0275\u0275defineInjectable({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})(),xe=(()=>{class wt extends ce{constructor(Ut,vn){super(Ut),this._ngZone=vn,this._keydownListener=xn=>{const bn=this._attachedOverlays;for(let hn=bn.length-1;hn>-1;hn--)if(bn[hn]._keydownEvents.observers.length>0){const pn=bn[hn]._keydownEvents;this._ngZone?this._ngZone.run(()=>pn.next(xn)):pn.next(xn);break}}}add(Ut){super.add(Ut),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275inject(e.K0),i.\u0275\u0275inject(i.NgZone,8))},wt.\u0275prov=i.\u0275\u0275defineInjectable({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})(),we=(()=>{class wt extends ce{constructor(Ut,vn,xn){super(Ut),this._platform=vn,this._ngZone=xn,this._cursorStyleIsSet=!1,this._pointerDownListener=bn=>{this._pointerDownEventTarget=(0,a.sA)(bn)},this._clickListener=bn=>{const hn=(0,a.sA)(bn),pn="click"===bn.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:hn;this._pointerDownEventTarget=null;const In=this._attachedOverlays.slice();for(let Dn=In.length-1;Dn>-1;Dn--){const Tn=In[Dn];if(Tn._outsidePointerEvents.observers.length<1||!Tn.hasAttached())continue;if(Tn.overlayElement.contains(hn)||Tn.overlayElement.contains(pn))break;const mn=Tn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>mn.next(bn)):mn.next(bn)}}}add(Ut){if(super.add(Ut),!this._isAttached){const vn=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(vn)):this._addEventListeners(vn),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=vn.style.cursor,vn.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Ut=this._document.body;Ut.removeEventListener("pointerdown",this._pointerDownListener,!0),Ut.removeEventListener("click",this._clickListener,!0),Ut.removeEventListener("auxclick",this._clickListener,!0),Ut.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ut.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Ut){Ut.addEventListener("pointerdown",this._pointerDownListener,!0),Ut.addEventListener("click",this._clickListener,!0),Ut.addEventListener("auxclick",this._clickListener,!0),Ut.addEventListener("contextmenu",this._clickListener,!0)}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275inject(e.K0),i.\u0275\u0275inject(a.t4),i.\u0275\u0275inject(i.NgZone,8))},wt.\u0275prov=i.\u0275\u0275defineInjectable({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})(),Ge=(()=>{class wt{constructor(Ut,vn){this._platform=vn,this._document=Ut}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ut="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const xn=this._document.querySelectorAll(`.${Ut}[platform="server"], .${Ut}[platform="test"]`);for(let bn=0;bn<xn.length;bn++)xn[bn].remove()}const vn=this._document.createElement("div");vn.classList.add(Ut),(0,a.Oy)()?vn.setAttribute("platform","test"):this._platform.isBrowser||vn.setAttribute("platform","server"),this._document.body.appendChild(vn),this._containerElement=vn}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275inject(e.K0),i.\u0275\u0275inject(a.t4))},wt.\u0275prov=i.\u0275\u0275defineInjectable({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})();class ct{constructor(Ze,Ut,vn,xn,bn,hn,pn,In,Dn,Tn=!1){this._portalOutlet=Ze,this._host=Ut,this._pane=vn,this._config=xn,this._ngZone=bn,this._keyboardDispatcher=hn,this._document=pn,this._location=In,this._outsideClickDispatcher=Dn,this._animationsDisabled=Tn,this._backdropElement=null,this._backdropClick=new L.x,this._attachments=new L.x,this._detachments=new L.x,this._locationChanges=w.w0.EMPTY,this._backdropClickHandler=mn=>this._backdropClick.next(mn),this._backdropTransitionendHandler=mn=>{this._disposeBackdrop(mn.target)},this._keydownEvents=new L.x,this._outsidePointerEvents=new L.x,xn.scrollStrategy&&(this._scrollStrategy=xn.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=xn.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Ze){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ut=this._portalOutlet.attach(Ze);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Ut?.onDestroy&&Ut.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ut}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Ze=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Ze}dispose(){const Ze=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,Ze&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Ze){Ze!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Ze,this.hasAttached()&&(Ze.attach(this),this.updatePosition()))}updateSize(Ze){this._config={...this._config,...Ze},this._updateElementSize()}setDirection(Ze){this._config={...this._config,direction:Ze},this._updateElementDirection()}addPanelClass(Ze){this._pane&&this._toggleClasses(this._pane,Ze,!0)}removePanelClass(Ze){this._pane&&this._toggleClasses(this._pane,Ze,!1)}getDirection(){const Ze=this._config.direction;return Ze?"string"==typeof Ze?Ze:Ze.value:"ltr"}updateScrollStrategy(Ze){Ze!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Ze,this.hasAttached()&&(Ze.attach(this),Ze.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Ze=this._pane.style;Ze.width=(0,d.HM)(this._config.width),Ze.height=(0,d.HM)(this._config.height),Ze.minWidth=(0,d.HM)(this._config.minWidth),Ze.minHeight=(0,d.HM)(this._config.minHeight),Ze.maxWidth=(0,d.HM)(this._config.maxWidth),Ze.maxHeight=(0,d.HM)(this._config.maxHeight)}_togglePointerEvents(Ze){this._pane.style.pointerEvents=Ze?"":"none"}_attachBackdrop(){const Ze="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Ze)})}):this._backdropElement.classList.add(Ze)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Ze=this._backdropElement;if(Ze){if(this._animationsDisabled)return void this._disposeBackdrop(Ze);Ze.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Ze.addEventListener("transitionend",this._backdropTransitionendHandler)}),Ze.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Ze)},500))}}_toggleClasses(Ze,Ut,vn){const xn=(0,d.Eq)(Ut||[]).filter(bn=>!!bn);xn.length&&(vn?Ze.classList.add(...xn):Ze.classList.remove(...xn))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Ze=this._ngZone.onStable.pipe((0,l.R)((0,B.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Ze.unsubscribe())})})}_disposeScrollStrategy(){const Ze=this._scrollStrategy;Ze&&(Ze.disable(),Ze.detach&&Ze.detach())}_disposeBackdrop(Ze){Ze&&(Ze.removeEventListener("click",this._backdropClickHandler),Ze.removeEventListener("transitionend",this._backdropTransitionendHandler),Ze.remove(),this._backdropElement===Ze&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const pe="cdk-overlay-connected-position-bounding-box",Ce=/([A-Za-z%]+)$/;class U{get positions(){return this._preferredPositions}constructor(Ze,Ut,vn,xn,bn){this._viewportRuler=Ut,this._document=vn,this._platform=xn,this._overlayContainer=bn,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new L.x,this._resizeSubscription=w.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Ze)}attach(Ze){this._validatePositions(),Ze.hostElement.classList.add(pe),this._overlayRef=Ze,this._boundingBox=Ze.hostElement,this._pane=Ze.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ze=this._originRect,Ut=this._overlayRect,vn=this._viewportRect,xn=this._containerRect,bn=[];let hn;for(let pn of this._preferredPositions){let In=this._getOriginPoint(Ze,xn,pn),Dn=this._getOverlayPoint(In,Ut,pn),Tn=this._getOverlayFit(Dn,Ut,vn,pn);if(Tn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(pn,In);this._canFitWithFlexibleDimensions(Tn,Dn,vn)?bn.push({position:pn,origin:In,overlayRect:Ut,boundingBoxRect:this._calculateBoundingBoxRect(In,pn)}):(!hn||hn.overlayFit.visibleArea<Tn.visibleArea)&&(hn={overlayFit:Tn,overlayPoint:Dn,originPoint:In,position:pn,overlayRect:Ut})}if(bn.length){let pn=null,In=-1;for(const Dn of bn){const Tn=Dn.boundingBoxRect.width*Dn.boundingBoxRect.height*(Dn.position.weight||1);Tn>In&&(In=Tn,pn=Dn)}return this._isPushed=!1,void this._applyPosition(pn.position,pn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(hn.position,hn.originPoint);this._applyPosition(hn.position,hn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&H(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(pe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Ze=this._lastPosition;if(Ze){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ut=this._getOriginPoint(this._originRect,this._containerRect,Ze);this._applyPosition(Ze,Ut)}else this.apply()}withScrollableContainers(Ze){return this._scrollables=Ze,this}withPositions(Ze){return this._preferredPositions=Ze,-1===Ze.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Ze){return this._viewportMargin=Ze,this}withFlexibleDimensions(Ze=!0){return this._hasFlexibleDimensions=Ze,this}withGrowAfterOpen(Ze=!0){return this._growAfterOpen=Ze,this}withPush(Ze=!0){return this._canPush=Ze,this}withLockedPosition(Ze=!0){return this._positionLocked=Ze,this}setOrigin(Ze){return this._origin=Ze,this}withDefaultOffsetX(Ze){return this._offsetX=Ze,this}withDefaultOffsetY(Ze){return this._offsetY=Ze,this}withTransformOriginOn(Ze){return this._transformOriginSelector=Ze,this}_getOriginPoint(Ze,Ut,vn){let xn,bn;if("center"==vn.originX)xn=Ze.left+Ze.width/2;else{const hn=this._isRtl()?Ze.right:Ze.left,pn=this._isRtl()?Ze.left:Ze.right;xn="start"==vn.originX?hn:pn}return Ut.left<0&&(xn-=Ut.left),bn="center"==vn.originY?Ze.top+Ze.height/2:"top"==vn.originY?Ze.top:Ze.bottom,Ut.top<0&&(bn-=Ut.top),{x:xn,y:bn}}_getOverlayPoint(Ze,Ut,vn){let xn,bn;return xn="center"==vn.overlayX?-Ut.width/2:"start"===vn.overlayX?this._isRtl()?-Ut.width:0:this._isRtl()?0:-Ut.width,bn="center"==vn.overlayY?-Ut.height/2:"top"==vn.overlayY?0:-Ut.height,{x:Ze.x+xn,y:Ze.y+bn}}_getOverlayFit(Ze,Ut,vn,xn){const bn=oe(Ut);let{x:hn,y:pn}=Ze,In=this._getOffset(xn,"x"),Dn=this._getOffset(xn,"y");In&&(hn+=In),Dn&&(pn+=Dn);let Yn=0-pn,cn=pn+bn.height-vn.height,Nn=this._subtractOverflows(bn.width,0-hn,hn+bn.width-vn.width),Bt=this._subtractOverflows(bn.height,Yn,cn),En=Nn*Bt;return{visibleArea:En,isCompletelyWithinViewport:bn.width*bn.height===En,fitsInViewportVertically:Bt===bn.height,fitsInViewportHorizontally:Nn==bn.width}}_canFitWithFlexibleDimensions(Ze,Ut,vn){if(this._hasFlexibleDimensions){const xn=vn.bottom-Ut.y,bn=vn.right-Ut.x,hn=Z(this._overlayRef.getConfig().minHeight),pn=Z(this._overlayRef.getConfig().minWidth);return(Ze.fitsInViewportVertically||null!=hn&&hn<=xn)&&(Ze.fitsInViewportHorizontally||null!=pn&&pn<=bn)}return!1}_pushOverlayOnScreen(Ze,Ut,vn){if(this._previousPushAmount&&this._positionLocked)return{x:Ze.x+this._previousPushAmount.x,y:Ze.y+this._previousPushAmount.y};const xn=oe(Ut),bn=this._viewportRect,hn=Math.max(Ze.x+xn.width-bn.width,0),pn=Math.max(Ze.y+xn.height-bn.height,0),In=Math.max(bn.top-vn.top-Ze.y,0),Dn=Math.max(bn.left-vn.left-Ze.x,0);let Tn=0,mn=0;return Tn=xn.width<=bn.width?Dn||-hn:Ze.x<this._viewportMargin?bn.left-vn.left-Ze.x:0,mn=xn.height<=bn.height?In||-pn:Ze.y<this._viewportMargin?bn.top-vn.top-Ze.y:0,this._previousPushAmount={x:Tn,y:mn},{x:Ze.x+Tn,y:Ze.y+mn}}_applyPosition(Ze,Ut){if(this._setTransformOrigin(Ze),this._setOverlayElementStyles(Ut,Ze),this._setBoundingBoxStyles(Ut,Ze),Ze.panelClass&&this._addPanelClasses(Ze.panelClass),this._lastPosition=Ze,this._positionChanges.observers.length){const vn=this._getScrollVisibility(),xn=new R(Ze,vn);this._positionChanges.next(xn)}this._isInitialRender=!1}_setTransformOrigin(Ze){if(!this._transformOriginSelector)return;const Ut=this._boundingBox.querySelectorAll(this._transformOriginSelector);let vn,xn=Ze.overlayY;vn="center"===Ze.overlayX?"center":this._isRtl()?"start"===Ze.overlayX?"right":"left":"start"===Ze.overlayX?"left":"right";for(let bn=0;bn<Ut.length;bn++)Ut[bn].style.transformOrigin=`${vn} ${xn}`}_calculateBoundingBoxRect(Ze,Ut){const vn=this._viewportRect,xn=this._isRtl();let bn,hn,pn,Tn,mn,Yn;if("top"===Ut.overlayY)hn=Ze.y,bn=vn.height-hn+this._viewportMargin;else if("bottom"===Ut.overlayY)pn=vn.height-Ze.y+2*this._viewportMargin,bn=vn.height-pn+this._viewportMargin;else{const cn=Math.min(vn.bottom-Ze.y+vn.top,Ze.y),Nn=this._lastBoundingBoxSize.height;bn=2*cn,hn=Ze.y-cn,bn>Nn&&!this._isInitialRender&&!this._growAfterOpen&&(hn=Ze.y-Nn/2)}if("end"===Ut.overlayX&&!xn||"start"===Ut.overlayX&&xn)Yn=vn.width-Ze.x+this._viewportMargin,Tn=Ze.x-this._viewportMargin;else if("start"===Ut.overlayX&&!xn||"end"===Ut.overlayX&&xn)mn=Ze.x,Tn=vn.right-Ze.x;else{const cn=Math.min(vn.right-Ze.x+vn.left,Ze.x),Nn=this._lastBoundingBoxSize.width;Tn=2*cn,mn=Ze.x-cn,Tn>Nn&&!this._isInitialRender&&!this._growAfterOpen&&(mn=Ze.x-Nn/2)}return{top:hn,left:mn,bottom:pn,right:Yn,width:Tn,height:bn}}_setBoundingBoxStyles(Ze,Ut){const vn=this._calculateBoundingBoxRect(Ze,Ut);!this._isInitialRender&&!this._growAfterOpen&&(vn.height=Math.min(vn.height,this._lastBoundingBoxSize.height),vn.width=Math.min(vn.width,this._lastBoundingBoxSize.width));const xn={};if(this._hasExactPosition())xn.top=xn.left="0",xn.bottom=xn.right=xn.maxHeight=xn.maxWidth="",xn.width=xn.height="100%";else{const bn=this._overlayRef.getConfig().maxHeight,hn=this._overlayRef.getConfig().maxWidth;xn.height=(0,d.HM)(vn.height),xn.top=(0,d.HM)(vn.top),xn.bottom=(0,d.HM)(vn.bottom),xn.width=(0,d.HM)(vn.width),xn.left=(0,d.HM)(vn.left),xn.right=(0,d.HM)(vn.right),xn.alignItems="center"===Ut.overlayX?"center":"end"===Ut.overlayX?"flex-end":"flex-start",xn.justifyContent="center"===Ut.overlayY?"center":"bottom"===Ut.overlayY?"flex-end":"flex-start",bn&&(xn.maxHeight=(0,d.HM)(bn)),hn&&(xn.maxWidth=(0,d.HM)(hn))}this._lastBoundingBoxSize=vn,H(this._boundingBox.style,xn)}_resetBoundingBoxStyles(){H(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){H(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Ze,Ut){const vn={},xn=this._hasExactPosition(),bn=this._hasFlexibleDimensions,hn=this._overlayRef.getConfig();if(xn){const Tn=this._viewportRuler.getViewportScrollPosition();H(vn,this._getExactOverlayY(Ut,Ze,Tn)),H(vn,this._getExactOverlayX(Ut,Ze,Tn))}else vn.position="static";let pn="",In=this._getOffset(Ut,"x"),Dn=this._getOffset(Ut,"y");In&&(pn+=`translateX(${In}px) `),Dn&&(pn+=`translateY(${Dn}px)`),vn.transform=pn.trim(),hn.maxHeight&&(xn?vn.maxHeight=(0,d.HM)(hn.maxHeight):bn&&(vn.maxHeight="")),hn.maxWidth&&(xn?vn.maxWidth=(0,d.HM)(hn.maxWidth):bn&&(vn.maxWidth="")),H(this._pane.style,vn)}_getExactOverlayY(Ze,Ut,vn){let xn={top:"",bottom:""},bn=this._getOverlayPoint(Ut,this._overlayRect,Ze);return this._isPushed&&(bn=this._pushOverlayOnScreen(bn,this._overlayRect,vn)),"bottom"===Ze.overlayY?xn.bottom=this._document.documentElement.clientHeight-(bn.y+this._overlayRect.height)+"px":xn.top=(0,d.HM)(bn.y),xn}_getExactOverlayX(Ze,Ut,vn){let hn,xn={left:"",right:""},bn=this._getOverlayPoint(Ut,this._overlayRect,Ze);return this._isPushed&&(bn=this._pushOverlayOnScreen(bn,this._overlayRect,vn)),hn=this._isRtl()?"end"===Ze.overlayX?"left":"right":"end"===Ze.overlayX?"right":"left","right"===hn?xn.right=this._document.documentElement.clientWidth-(bn.x+this._overlayRect.width)+"px":xn.left=(0,d.HM)(bn.x),xn}_getScrollVisibility(){const Ze=this._getOriginRect(),Ut=this._pane.getBoundingClientRect(),vn=this._scrollables.map(xn=>xn.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:F(Ze,vn),isOriginOutsideView:I(Ze,vn),isOverlayClipped:F(Ut,vn),isOverlayOutsideView:I(Ut,vn)}}_subtractOverflows(Ze,...Ut){return Ut.reduce((vn,xn)=>vn-Math.max(xn,0),Ze)}_getNarrowedViewportRect(){const Ze=this._document.documentElement.clientWidth,Ut=this._document.documentElement.clientHeight,vn=this._viewportRuler.getViewportScrollPosition();return{top:vn.top+this._viewportMargin,left:vn.left+this._viewportMargin,right:vn.left+Ze-this._viewportMargin,bottom:vn.top+Ut-this._viewportMargin,width:Ze-2*this._viewportMargin,height:Ut-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Ze,Ut){return"x"===Ut?null==Ze.offsetX?this._offsetX:Ze.offsetX:null==Ze.offsetY?this._offsetY:Ze.offsetY}_validatePositions(){}_addPanelClasses(Ze){this._pane&&(0,d.Eq)(Ze).forEach(Ut=>{""!==Ut&&-1===this._appliedPanelClasses.indexOf(Ut)&&(this._appliedPanelClasses.push(Ut),this._pane.classList.add(Ut))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Ze=>{this._pane.classList.remove(Ze)}),this._appliedPanelClasses=[])}_getOriginRect(){const Ze=this._origin;if(Ze instanceof i.ElementRef)return Ze.nativeElement.getBoundingClientRect();if(Ze instanceof Element)return Ze.getBoundingClientRect();const Ut=Ze.width||0,vn=Ze.height||0;return{top:Ze.y,bottom:Ze.y+vn,left:Ze.x,right:Ze.x+Ut,height:vn,width:Ut}}}function H(wt,Ze){for(let Ut in Ze)Ze.hasOwnProperty(Ut)&&(wt[Ut]=Ze[Ut]);return wt}function Z(wt){if("number"!=typeof wt&&null!=wt){const[Ze,Ut]=wt.split(Ce);return Ut&&"px"!==Ut?null:parseFloat(Ze)}return wt||null}function oe(wt){return{top:Math.floor(wt.top),right:Math.floor(wt.right),bottom:Math.floor(wt.bottom),left:Math.floor(wt.left),width:Math.floor(wt.width),height:Math.floor(wt.height)}}const pt="cdk-global-overlay-wrapper";class Ht{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(Ze){const Ut=Ze.getConfig();this._overlayRef=Ze,this._width&&!Ut.width&&Ze.updateSize({width:this._width}),this._height&&!Ut.height&&Ze.updateSize({height:this._height}),Ze.hostElement.classList.add(pt),this._isDisposed=!1}top(Ze=""){return this._bottomOffset="",this._topOffset=Ze,this._alignItems="flex-start",this}left(Ze=""){return this._xOffset=Ze,this._xPosition="left",this}bottom(Ze=""){return this._topOffset="",this._bottomOffset=Ze,this._alignItems="flex-end",this}right(Ze=""){return this._xOffset=Ze,this._xPosition="right",this}start(Ze=""){return this._xOffset=Ze,this._xPosition="start",this}end(Ze=""){return this._xOffset=Ze,this._xPosition="end",this}width(Ze=""){return this._overlayRef?this._overlayRef.updateSize({width:Ze}):this._width=Ze,this}height(Ze=""){return this._overlayRef?this._overlayRef.updateSize({height:Ze}):this._height=Ze,this}centerHorizontally(Ze=""){return this.left(Ze),this._xPosition="center",this}centerVertically(Ze=""){return this.top(Ze),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Ze=this._overlayRef.overlayElement.style,Ut=this._overlayRef.hostElement.style,vn=this._overlayRef.getConfig(),{width:xn,height:bn,maxWidth:hn,maxHeight:pn}=vn,In=!("100%"!==xn&&"100vw"!==xn||hn&&"100%"!==hn&&"100vw"!==hn),Dn=!("100%"!==bn&&"100vh"!==bn||pn&&"100%"!==pn&&"100vh"!==pn),Tn=this._xPosition,mn=this._xOffset,Yn="rtl"===this._overlayRef.getConfig().direction;let cn="",Nn="",Bt="";In?Bt="flex-start":"center"===Tn?(Bt="center",Yn?Nn=mn:cn=mn):Yn?"left"===Tn||"end"===Tn?(Bt="flex-end",cn=mn):("right"===Tn||"start"===Tn)&&(Bt="flex-start",Nn=mn):"left"===Tn||"start"===Tn?(Bt="flex-start",cn=mn):("right"===Tn||"end"===Tn)&&(Bt="flex-end",Nn=mn),Ze.position=this._cssPosition,Ze.marginLeft=In?"0":cn,Ze.marginTop=Dn?"0":this._topOffset,Ze.marginBottom=this._bottomOffset,Ze.marginRight=In?"0":Nn,Ut.justifyContent=Bt,Ut.alignItems=Dn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Ze=this._overlayRef.overlayElement.style,Ut=this._overlayRef.hostElement,vn=Ut.style;Ut.classList.remove(pt),vn.justifyContent=vn.alignItems=Ze.marginTop=Ze.marginBottom=Ze.marginLeft=Ze.marginRight=Ze.position="",this._overlayRef=null,this._isDisposed=!0}}let Wt=(()=>{class wt{constructor(Ut,vn,xn,bn){this._viewportRuler=Ut,this._document=vn,this._platform=xn,this._overlayContainer=bn}global(){return new Ht}flexibleConnectedTo(Ut){return new U(Ut,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275inject(n.rL),i.\u0275\u0275inject(e.K0),i.\u0275\u0275inject(a.t4),i.\u0275\u0275inject(Ge))},wt.\u0275prov=i.\u0275\u0275defineInjectable({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})(),Xe=0,Qe=(()=>{class wt{constructor(Ut,vn,xn,bn,hn,pn,In,Dn,Tn,mn,Yn,cn){this.scrollStrategies=Ut,this._overlayContainer=vn,this._componentFactoryResolver=xn,this._positionBuilder=bn,this._keyboardDispatcher=hn,this._injector=pn,this._ngZone=In,this._document=Dn,this._directionality=Tn,this._location=mn,this._outsideClickDispatcher=Yn,this._animationsModuleType=cn}create(Ut){const vn=this._createHostElement(),xn=this._createPaneElement(vn),bn=this._createPortalOutlet(xn),hn=new p(Ut);return hn.direction=hn.direction||this._directionality.value,new ct(bn,vn,xn,hn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Ut){const vn=this._document.createElement("div");return vn.id="cdk-overlay-"+Xe++,vn.classList.add("cdk-overlay-pane"),Ut.appendChild(vn),vn}_createHostElement(){const Ut=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Ut),Ut}_createPortalOutlet(Ut){return this._appRef||(this._appRef=this._injector.get(i.ApplicationRef)),new O.u0(Ut,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275inject(X),i.\u0275\u0275inject(Ge),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(Wt),i.\u0275\u0275inject(xe),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(e.K0),i.\u0275\u0275inject(x.Is),i.\u0275\u0275inject(e.Ye),i.\u0275\u0275inject(we),i.\u0275\u0275inject(i.ANIMATION_MODULE_TYPE,8))},wt.\u0275prov=i.\u0275\u0275defineInjectable({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})();const Be=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],at=new i.InjectionToken("cdk-connected-overlay-scroll-strategy");let lt=(()=>{class wt{constructor(Ut){this.elementRef=Ut}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275directiveInject(i.ElementRef))},wt.\u0275dir=i.\u0275\u0275defineDirective({type:wt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),wt})(),Dt=(()=>{class wt{get offsetX(){return this._offsetX}set offsetX(Ut){this._offsetX=Ut,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Ut){this._offsetY=Ut,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ut){this._hasBackdrop=(0,d.Ig)(Ut)}get lockPosition(){return this._lockPosition}set lockPosition(Ut){this._lockPosition=(0,d.Ig)(Ut)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(Ut){this._flexibleDimensions=(0,d.Ig)(Ut)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(Ut){this._growAfterOpen=(0,d.Ig)(Ut)}get push(){return this._push}set push(Ut){this._push=(0,d.Ig)(Ut)}constructor(Ut,vn,xn,bn,hn){this._overlay=Ut,this._dir=hn,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=w.w0.EMPTY,this._attachSubscription=w.w0.EMPTY,this._detachSubscription=w.w0.EMPTY,this._positionSubscription=w.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.EventEmitter,this.positionChange=new i.EventEmitter,this.attach=new i.EventEmitter,this.detach=new i.EventEmitter,this.overlayKeydown=new i.EventEmitter,this.overlayOutsideClick=new i.EventEmitter,this._templatePortal=new O.UE(vn,xn),this._scrollStrategyFactory=bn,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(Ut){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Ut.origin&&this.open&&this._position.apply()),Ut.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Be);const Ut=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Ut.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Ut.detachments().subscribe(()=>this.detach.emit()),Ut.keydownEvents().subscribe(vn=>{this.overlayKeydown.next(vn),vn.keyCode===_.hY&&!this.disableClose&&!(0,_.Vb)(vn)&&(vn.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(vn=>{this.overlayOutsideClick.next(vn)})}_buildConfig(){const Ut=this._position=this.positionStrategy||this._createPositionStrategy(),vn=new p({direction:this._dir,positionStrategy:Ut,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(vn.width=this.width),(this.height||0===this.height)&&(vn.height=this.height),(this.minWidth||0===this.minWidth)&&(vn.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(vn.minHeight=this.minHeight),this.backdropClass&&(vn.backdropClass=this.backdropClass),this.panelClass&&(vn.panelClass=this.panelClass),vn}_updatePositionStrategy(Ut){const vn=this.positions.map(xn=>({originX:xn.originX,originY:xn.originY,overlayX:xn.overlayX,overlayY:xn.overlayY,offsetX:xn.offsetX||this.offsetX,offsetY:xn.offsetY||this.offsetY,panelClass:xn.panelClass||void 0}));return Ut.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(vn).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Ut=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(Ut),Ut}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof lt?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Ut=>{this.backdropClick.emit(Ut)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,m.o)(()=>this.positionChange.observers.length>0)).subscribe(Ut=>{this.positionChange.emit(Ut),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return wt.\u0275fac=function(Ut){return new(Ut||wt)(i.\u0275\u0275directiveInject(Qe),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(at),i.\u0275\u0275directiveInject(x.Is,8))},wt.\u0275dir=i.\u0275\u0275defineDirective({type:wt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),wt})();const Tt={provide:at,deps:[Qe],useFactory:function Yt(wt){return()=>wt.scrollStrategies.reposition()}};let ot=(()=>{class wt{}return wt.\u0275fac=function(Ut){return new(Ut||wt)},wt.\u0275mod=i.\u0275\u0275defineNgModule({type:wt}),wt.\u0275inj=i.\u0275\u0275defineInjector({providers:[Qe,Tt],imports:[x.vT,O.eL,n.Cl,n.Cl]}),wt})()},83353:(Ee,Q,t)=>{"use strict";t.d(Q,{Mq:()=>B,Oy:()=>I,_i:()=>_,ht:()=>T,i$:()=>O,kV:()=>C,qK:()=>l,sA:()=>j,t4:()=>d,ud:()=>a});var n=t(94650),e=t(36895);let i;try{i=typeof Intl<"u"&&Intl.v8BreakIterator}catch{i=!1}let u,d=(()=>{class F{constructor(X){this._platformId=X,this.isBrowser=this._platformId?(0,e.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!i)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return F.\u0275fac=function(X){return new(X||F)(n.\u0275\u0275inject(n.PLATFORM_ID))},F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:"root"}),F})(),a=(()=>{class F{}return F.\u0275fac=function(X){return new(X||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({}),F})();const h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function l(){if(u)return u;if("object"!=typeof document||!document)return u=new Set(h),u;let F=document.createElement("input");return u=new Set(h.filter(z=>(F.setAttribute("type",z),F.type===z))),u}let m,L,w,y;function O(F){return function x(){if(null==m&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>m=!0}))}finally{m=m||!1}return m}()?F:!!F.capture}function B(){if(null==w){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return w=!1,w;if("scrollBehavior"in document.documentElement.style)w=!0;else{const F=Element.prototype.scrollTo;w=!!F&&!/\{\s*\[native code\]\s*\}/.test(F.toString())}}return w}function _(){if("object"!=typeof document||!document)return 0;if(null==L){const F=document.createElement("div"),z=F.style;F.dir="rtl",z.width="1px",z.overflow="auto",z.visibility="hidden",z.pointerEvents="none",z.position="absolute";const X=document.createElement("div"),p=X.style;p.width="2px",p.height="1px",F.appendChild(X),document.body.appendChild(F),L=0,0===F.scrollLeft&&(F.scrollLeft=1,L=0===F.scrollLeft?1:2),F.remove()}return L}function C(F){if(function $(){if(null==y){const F=typeof document<"u"?document.head:null;y=!(!F||!F.createShadowRoot&&!F.attachShadow)}return y}()){const z=F.getRootNode?F.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&z instanceof ShadowRoot)return z}return null}function T(){let F=typeof document<"u"&&document?document.activeElement:null;for(;F&&F.shadowRoot;){const z=F.shadowRoot.activeElement;if(z===F)break;F=z}return F}function j(F){return F.composedPath?F.composedPath()[0]:F.target}function I(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Ee,Q,t)=>{"use strict";t.d(Q,{C5:()=>x,Pl:()=>T,UE:()=>O,eL:()=>I,en:()=>w,ig:()=>$,u0:()=>_});var n=t(94650),e=t(36895);class m{attach(X){return this._attachedHost=X,X.attach(this)}detach(){let X=this._attachedHost;null!=X&&(this._attachedHost=null,X.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(X){this._attachedHost=X}}class x extends m{constructor(X,p,P,E,R){super(),this.component=X,this.viewContainerRef=p,this.injector=P,this.componentFactoryResolver=E,this.projectableNodes=R}}class O extends m{constructor(X,p,P,E){super(),this.templateRef=X,this.viewContainerRef=p,this.context=P,this.injector=E}get origin(){return this.templateRef.elementRef}attach(X,p=this.context){return this.context=p,super.attach(X)}detach(){return this.context=void 0,super.detach()}}class L extends m{constructor(X){super(),this.element=X instanceof n.ElementRef?X.nativeElement:X}}class w{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(X){return X instanceof x?(this._attachedPortal=X,this.attachComponentPortal(X)):X instanceof O?(this._attachedPortal=X,this.attachTemplatePortal(X)):this.attachDomPortal&&X instanceof L?(this._attachedPortal=X,this.attachDomPortal(X)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(X){this._disposeFn=X}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class _ extends w{constructor(X,p,P,E,R){super(),this.outletElement=X,this._componentFactoryResolver=p,this._appRef=P,this._defaultInjector=E,this.attachDomPortal=ne=>{const G=ne.element,ce=this._document.createComment("dom-portal");G.parentNode.insertBefore(ce,G),this.outletElement.appendChild(G),this._attachedPortal=ne,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(G,ce)})},this._document=R}attachComponentPortal(X){const P=(X.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(X.component);let E;return X.viewContainerRef?(E=X.viewContainerRef.createComponent(P,X.viewContainerRef.length,X.injector||X.viewContainerRef.injector,X.projectableNodes||void 0),this.setDisposeFn(()=>E.destroy())):(E=P.create(X.injector||this._defaultInjector||n.Injector.NULL),this._appRef.attachView(E.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(E.hostView),E.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(E)),this._attachedPortal=X,E}attachTemplatePortal(X){let p=X.viewContainerRef,P=p.createEmbeddedView(X.templateRef,X.context,{injector:X.injector});return P.rootNodes.forEach(E=>this.outletElement.appendChild(E)),P.detectChanges(),this.setDisposeFn(()=>{let E=p.indexOf(P);-1!==E&&p.remove(E)}),this._attachedPortal=X,P}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(X){return X.hostView.rootNodes[0]}}let $=(()=>{class z extends O{constructor(p,P){super(p,P)}}return z.\u0275fac=function(p){return new(p||z)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef))},z.\u0275dir=n.\u0275\u0275defineDirective({type:z,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.\u0275\u0275InheritDefinitionFeature]}),z})(),T=(()=>{class z extends w{constructor(p,P,E){super(),this._componentFactoryResolver=p,this._viewContainerRef=P,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=R=>{const ne=R.element,G=this._document.createComment("dom-portal");R.setAttachedHost(this),ne.parentNode.insertBefore(G,ne),this._getRootNode().appendChild(ne),this._attachedPortal=R,super.setDisposeFn(()=>{G.parentNode&&G.parentNode.replaceChild(ne,G)})},this._document=E}get portal(){return this._attachedPortal}set portal(p){this.hasAttached()&&!p&&!this._isInitialized||(this.hasAttached()&&super.detach(),p&&super.attach(p),this._attachedPortal=p||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(p){p.setAttachedHost(this);const P=null!=p.viewContainerRef?p.viewContainerRef:this._viewContainerRef,R=(p.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(p.component),ne=P.createComponent(R,P.length,p.injector||P.injector,p.projectableNodes||void 0);return P!==this._viewContainerRef&&this._getRootNode().appendChild(ne.hostView.rootNodes[0]),super.setDisposeFn(()=>ne.destroy()),this._attachedPortal=p,this._attachedRef=ne,this.attached.emit(ne),ne}attachTemplatePortal(p){p.setAttachedHost(this);const P=this._viewContainerRef.createEmbeddedView(p.templateRef,p.context,{injector:p.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=p,this._attachedRef=P,this.attached.emit(P),P}_getRootNode(){const p=this._viewContainerRef.element.nativeElement;return p.nodeType===p.ELEMENT_NODE?p:p.parentNode}}return z.\u0275fac=function(p){return new(p||z)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(e.K0))},z.\u0275dir=n.\u0275\u0275defineDirective({type:z,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),z})(),I=(()=>{class z{}return z.\u0275fac=function(p){return new(p||z)},z.\u0275mod=n.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=n.\u0275\u0275defineInjector({}),z})()},4883:(Ee,Q,t)=>{"use strict";t.d(Q,{ZD:()=>lt,mF:()=>U,Cl:()=>Dt,rL:()=>oe});var n=t(21281),e=t(94650),i=t(77579),d=t(39646),a=t(69751),u=t(54968),h=t(66406),l=t(84408);let x,m=1;const O={};function L(Yt){return Yt in O&&(delete O[Yt],!0)}const w={setImmediate(Yt){const Tt=m++;return O[Tt]=!0,x||(x=Promise.resolve()),x.then(()=>L(Tt)&&Yt()),Tt},clearImmediate(Yt){L(Yt)}},{setImmediate:_,clearImmediate:y}=w,$={setImmediate(...Yt){const{delegate:Tt}=$;return(Tt?.setImmediate||_)(...Yt)},clearImmediate(Yt){const{delegate:Tt}=$;return(Tt?.clearImmediate||y)(Yt)},delegate:void 0};var T=t(97565);const I=new class j extends T.v{flush(Tt){this._active=!0;const ot=this._scheduled;this._scheduled=void 0;const{actions:Gt}=this;let wt;Tt=Tt||Gt.shift();do{if(wt=Tt.execute(Tt.state,Tt.delay))break}while((Tt=Gt[0])&&Tt.id===ot&&Gt.shift());if(this._active=!1,wt){for(;(Tt=Gt[0])&&Tt.id===ot&&Gt.shift();)Tt.unsubscribe();throw wt}}}(class C extends l.o{constructor(Tt,ot){super(Tt,ot),this.scheduler=Tt,this.work=ot}requestAsyncId(Tt,ot,Gt=0){return null!==Gt&&Gt>0?super.requestAsyncId(Tt,ot,Gt):(Tt.actions.push(this),Tt._scheduled||(Tt._scheduled=$.setImmediate(Tt.flush.bind(Tt,void 0))))}recycleAsyncId(Tt,ot,Gt=0){var wt;if(null!=Gt?Gt>0:this.delay>0)return super.recycleAsyncId(Tt,ot,Gt);const{actions:Ze}=Tt;null!=ot&&(null===(wt=Ze[Ze.length-1])||void 0===wt?void 0:wt.id)!==ot&&($.clearImmediate(ot),Tt._scheduled===ot&&(Tt._scheduled=void 0))}});var z=t(50727),X=t(23601),p=t(39300),P=t(82722),E=t(68675),R=t(83353),ne=t(36895),G=t(40445);const ce=["contentWrapper"],xe=["*"],we=new e.InjectionToken("VIRTUAL_SCROLL_STRATEGY");let U=(()=>{class Yt{constructor(ot,Gt,wt){this._ngZone=ot,this._platform=Gt,this._scrolled=new i.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=wt}register(ot){this.scrollContainers.has(ot)||this.scrollContainers.set(ot,ot.elementScrolled().subscribe(()=>this._scrolled.next(ot)))}deregister(ot){const Gt=this.scrollContainers.get(ot);Gt&&(Gt.unsubscribe(),this.scrollContainers.delete(ot))}scrolled(ot=20){return this._platform.isBrowser?new a.y(Gt=>{this._globalSubscription||this._addGlobalListener();const wt=ot>0?this._scrolled.pipe((0,X.e)(ot)).subscribe(Gt):this._scrolled.subscribe(Gt);return this._scrolledCount++,()=>{wt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,d.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ot,Gt)=>this.deregister(Gt)),this._scrolled.complete()}ancestorScrolled(ot,Gt){const wt=this.getAncestorScrollContainers(ot);return this.scrolled(Gt).pipe((0,p.h)(Ze=>!Ze||wt.indexOf(Ze)>-1))}getAncestorScrollContainers(ot){const Gt=[];return this.scrollContainers.forEach((wt,Ze)=>{this._scrollableContainsElement(Ze,ot)&&Gt.push(Ze)}),Gt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ot,Gt){let wt=(0,n.fI)(Gt),Ze=ot.getElementRef().nativeElement;do{if(wt==Ze)return!0}while(wt=wt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ot=this._getWindow();return(0,u.R)(ot.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Yt.\u0275fac=function(ot){return new(ot||Yt)(e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(R.t4),e.\u0275\u0275inject(ne.K0,8))},Yt.\u0275prov=e.\u0275\u0275defineInjectable({token:Yt,factory:Yt.\u0275fac,providedIn:"root"}),Yt})(),H=(()=>{class Yt{constructor(ot,Gt,wt,Ze){this.elementRef=ot,this.scrollDispatcher=Gt,this.ngZone=wt,this.dir=Ze,this._destroyed=new i.x,this._elementScrolled=new a.y(Ut=>this.ngZone.runOutsideAngular(()=>(0,u.R)(this.elementRef.nativeElement,"scroll").pipe((0,P.R)(this._destroyed)).subscribe(Ut)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ot){const Gt=this.elementRef.nativeElement,wt=this.dir&&"rtl"==this.dir.value;null==ot.left&&(ot.left=wt?ot.end:ot.start),null==ot.right&&(ot.right=wt?ot.start:ot.end),null!=ot.bottom&&(ot.top=Gt.scrollHeight-Gt.clientHeight-ot.bottom),wt&&0!=(0,R._i)()?(null!=ot.left&&(ot.right=Gt.scrollWidth-Gt.clientWidth-ot.left),2==(0,R._i)()?ot.left=ot.right:1==(0,R._i)()&&(ot.left=ot.right?-ot.right:ot.right)):null!=ot.right&&(ot.left=Gt.scrollWidth-Gt.clientWidth-ot.right),this._applyScrollToOptions(ot)}_applyScrollToOptions(ot){const Gt=this.elementRef.nativeElement;(0,R.Mq)()?Gt.scrollTo(ot):(null!=ot.top&&(Gt.scrollTop=ot.top),null!=ot.left&&(Gt.scrollLeft=ot.left))}measureScrollOffset(ot){const Gt="left",Ze=this.elementRef.nativeElement;if("top"==ot)return Ze.scrollTop;if("bottom"==ot)return Ze.scrollHeight-Ze.clientHeight-Ze.scrollTop;const Ut=this.dir&&"rtl"==this.dir.value;return"start"==ot?ot=Ut?"right":Gt:"end"==ot&&(ot=Ut?Gt:"right"),Ut&&2==(0,R._i)()?ot==Gt?Ze.scrollWidth-Ze.clientWidth-Ze.scrollLeft:Ze.scrollLeft:Ut&&1==(0,R._i)()?ot==Gt?Ze.scrollLeft+Ze.scrollWidth-Ze.clientWidth:-Ze.scrollLeft:ot==Gt?Ze.scrollLeft:Ze.scrollWidth-Ze.clientWidth-Ze.scrollLeft}}return Yt.\u0275fac=function(ot){return new(ot||Yt)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(U),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(G.Is,8))},Yt.\u0275dir=e.\u0275\u0275defineDirective({type:Yt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),Yt})(),oe=(()=>{class Yt{constructor(ot,Gt,wt){this._platform=ot,this._change=new i.x,this._changeListener=Ze=>{this._change.next(Ze)},this._document=wt,Gt.runOutsideAngular(()=>{if(ot.isBrowser){const Ze=this._getWindow();Ze.addEventListener("resize",this._changeListener),Ze.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ot=this._getWindow();ot.removeEventListener("resize",this._changeListener),ot.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ot={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ot}getViewportRect(){const ot=this.getViewportScrollPosition(),{width:Gt,height:wt}=this.getViewportSize();return{top:ot.top,left:ot.left,bottom:ot.top+wt,right:ot.left+Gt,height:wt,width:Gt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ot=this._document,Gt=this._getWindow(),wt=ot.documentElement,Ze=wt.getBoundingClientRect();return{top:-Ze.top||ot.body.scrollTop||Gt.scrollY||wt.scrollTop||0,left:-Ze.left||ot.body.scrollLeft||Gt.scrollX||wt.scrollLeft||0}}change(ot=20){return ot>0?this._change.pipe((0,X.e)(ot)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ot=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ot.innerWidth,height:ot.innerHeight}:{width:0,height:0}}}return Yt.\u0275fac=function(ot){return new(ot||Yt)(e.\u0275\u0275inject(R.t4),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(ne.K0,8))},Yt.\u0275prov=e.\u0275\u0275defineInjectable({token:Yt,factory:Yt.\u0275fac,providedIn:"root"}),Yt})();const Pe=new e.InjectionToken("VIRTUAL_SCROLLABLE");let Ie=(()=>{class Yt extends H{constructor(ot,Gt,wt,Ze){super(ot,Gt,wt,Ze)}measureViewportSize(ot){const Gt=this.elementRef.nativeElement;return"horizontal"===ot?Gt.clientWidth:Gt.clientHeight}}return Yt.\u0275fac=function(ot){return new(ot||Yt)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(U),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(G.Is,8))},Yt.\u0275dir=e.\u0275\u0275defineDirective({type:Yt,features:[e.\u0275\u0275InheritDefinitionFeature]}),Yt})();const Ht=typeof requestAnimationFrame<"u"?h.Z:I;let Wt=(()=>{class Yt extends Ie{get orientation(){return this._orientation}set orientation(ot){this._orientation!==ot&&(this._orientation=ot,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ot){this._appendOnly=(0,n.Ig)(ot)}constructor(ot,Gt,wt,Ze,Ut,vn,xn,bn){super(ot,vn,wt,Ut),this.elementRef=ot,this._changeDetectorRef=Gt,this._scrollStrategy=Ze,this.scrollable=bn,this._platform=(0,e.inject)(R.t4),this._detachedSubject=new i.x,this._renderedRangeSubject=new i.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new a.y(hn=>this._scrollStrategy.scrolledIndexChange.subscribe(pn=>Promise.resolve().then(()=>this.ngZone.run(()=>hn.next(pn))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=z.w0.EMPTY,this._viewportChanges=xn.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,E.O)(null),(0,X.e)(0,Ht)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ot){this.ngZone.runOutsideAngular(()=>{this._forOf=ot,this._forOf.dataStream.pipe((0,P.R)(this._detachedSubject)).subscribe(Gt=>{const wt=Gt.length;wt!==this._dataLength&&(this._dataLength=wt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(ot){return this.getElementRef().nativeElement.getBoundingClientRect()[ot]}setTotalContentSize(ot){this._totalContentSize!==ot&&(this._totalContentSize=ot,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ot){(function pt(Yt,Tt){return Yt.start==Tt.start&&Yt.end==Tt.end})(this._renderedRange,ot)||(this.appendOnly&&(ot={start:0,end:Math.max(this._renderedRange.end,ot.end)}),this._renderedRangeSubject.next(this._renderedRange=ot),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ot,Gt="to-start"){ot=this.appendOnly&&"to-start"===Gt?0:ot;const Ze="horizontal"==this.orientation,Ut=Ze?"X":"Y";let xn=`translate${Ut}(${Number((Ze&&this.dir&&"rtl"==this.dir.value?-1:1)*ot)}px)`;this._renderedContentOffset=ot,"to-end"===Gt&&(xn+=` translate${Ut}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=xn&&(this._renderedContentTransform=xn,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ot,Gt="auto"){const wt={behavior:Gt};"horizontal"===this.orientation?wt.start=ot:wt.top=ot,this.scrollable.scrollTo(wt)}scrollToIndex(ot,Gt="auto"){this._scrollStrategy.scrollToIndex(ot,Gt)}measureScrollOffset(ot){let Gt;return Gt=this.scrollable==this?wt=>super.measureScrollOffset(wt):wt=>this.scrollable.measureScrollOffset(wt),Math.max(0,Gt(ot??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ot){let Gt;const Ut="rtl"==this.dir?.value;Gt="start"==ot?Ut?"right":"left":"end"==ot?Ut?"left":"right":ot||("horizontal"===this.orientation?"left":"top");const vn=this.scrollable.measureBoundingClientRectWithScrollOffset(Gt);return this.elementRef.nativeElement.getBoundingClientRect()[Gt]-vn}measureRenderedContentSize(){const ot=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ot.offsetWidth:ot.offsetHeight}measureRangeSize(ot){return this._forOf?this._forOf.measureRangeSize(ot,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ot){ot&&this._runAfterChangeDetection.push(ot),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const ot=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Gt of ot)Gt()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Yt.\u0275fac=function(ot){return new(ot||Yt)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(we,8),e.\u0275\u0275directiveInject(G.Is,8),e.\u0275\u0275directiveInject(U),e.\u0275\u0275directiveInject(oe),e.\u0275\u0275directiveInject(Pe,8))},Yt.\u0275cmp=e.\u0275\u0275defineComponent({type:Yt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ot,Gt){if(1&ot&&e.\u0275\u0275viewQuery(ce,7),2&ot){let wt;e.\u0275\u0275queryRefresh(wt=e.\u0275\u0275loadQuery())&&(Gt._contentWrapper=wt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ot,Gt){2&ot&&e.\u0275\u0275classProp("cdk-virtual-scroll-orientation-horizontal","horizontal"===Gt.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Gt.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e.\u0275\u0275ProvidersFeature([{provide:H,useFactory:(Tt,ot)=>Tt||ot,deps:[[new e.Optional,new e.Inject(Pe)],Yt]}]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275StandaloneFeature],ngContentSelectors:xe,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ot,Gt){1&ot&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275projection(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",2)),2&ot&&(e.\u0275\u0275advance(3),e.\u0275\u0275styleProp("width",Gt._totalContentWidth)("height",Gt._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Yt})(),lt=(()=>{class Yt{}return Yt.\u0275fac=function(ot){return new(ot||Yt)},Yt.\u0275mod=e.\u0275\u0275defineNgModule({type:Yt}),Yt.\u0275inj=e.\u0275\u0275defineInjector({}),Yt})(),Dt=(()=>{class Yt{}return Yt.\u0275fac=function(ot){return new(ot||Yt)},Yt.\u0275mod=e.\u0275\u0275defineNgModule({type:Yt}),Yt.\u0275inj=e.\u0275\u0275defineInjector({imports:[G.vT,lt,Wt,G.vT,lt]}),Yt})()},39349:(Ee,Q,t)=>{"use strict";t.d(Q,{IC:()=>w,Ky:()=>B,Lq:()=>O,aC:()=>L});var n=t(83353),e=t(94650),i=t(21281),d=t(60515),a=t(77579),u=t(54968),h=t(23601),l=t(82722),m=t(36895);const x=(0,n.i$)({passive:!0});let O=(()=>{class _{constructor($,C){this._platform=$,this._ngZone=C,this._monitoredElements=new Map}monitor($){if(!this._platform.isBrowser)return d.E;const C=(0,i.fI)($),T=this._monitoredElements.get(C);if(T)return T.subject;const j=new a.x,I="cdk-text-field-autofilled",F=z=>{"cdk-text-field-autofill-start"!==z.animationName||C.classList.contains(I)?"cdk-text-field-autofill-end"===z.animationName&&C.classList.contains(I)&&(C.classList.remove(I),this._ngZone.run(()=>j.next({target:z.target,isAutofilled:!1}))):(C.classList.add(I),this._ngZone.run(()=>j.next({target:z.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{C.addEventListener("animationstart",F,x),C.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(C,{subject:j,unlisten:()=>{C.removeEventListener("animationstart",F,x)}}),j}stopMonitoring($){const C=(0,i.fI)($),T=this._monitoredElements.get(C);T&&(T.unlisten(),T.subject.complete(),C.classList.remove("cdk-text-field-autofill-monitored"),C.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(C))}ngOnDestroy(){this._monitoredElements.forEach(($,C)=>this.stopMonitoring(C))}}return _.\u0275fac=function($){return new($||_)(e.\u0275\u0275inject(n.t4),e.\u0275\u0275inject(e.NgZone))},_.\u0275prov=e.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),L=(()=>{class _{constructor($,C){this._elementRef=$,this._autofillMonitor=C,this.cdkAutofill=new e.EventEmitter}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe($=>this.cdkAutofill.emit($))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return _.\u0275fac=function($){return new($||_)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(O))},_.\u0275dir=e.\u0275\u0275defineDirective({type:_,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),_})(),w=(()=>{class _{get minRows(){return this._minRows}set minRows($){this._minRows=(0,i.su)($),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows($){this._maxRows=(0,i.su)($),this._setMaxHeight()}get enabled(){return this._enabled}set enabled($){$=(0,i.Ig)($),this._enabled!==$&&((this._enabled=$)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder($){this._cachedPlaceholderHeight=void 0,$?this._textareaElement.setAttribute("placeholder",$):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor($,C,T,j){this._elementRef=$,this._platform=C,this._ngZone=T,this._destroyed=new a.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=I=>{this._hasFocus="focus"===I.type},this._document=j,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const $=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;$&&(this._textareaElement.style.minHeight=$)}_setMaxHeight(){const $=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;$&&(this._textareaElement.style.maxHeight=$)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const $=this._getWindow();(0,u.R)($,"resize").pipe((0,h.e)(16),(0,l.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let $=this._textareaElement.cloneNode(!1);$.rows=1,$.style.position="absolute",$.style.visibility="hidden",$.style.border="none",$.style.padding="0",$.style.height="",$.style.minHeight="",$.style.maxHeight="",$.style.overflow="hidden",this._textareaElement.parentNode.appendChild($),this._cachedLineHeight=$.clientHeight,$.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const $=this._textareaElement,C=$.style.marginBottom||"",T=this._platform.FIREFOX,j=T&&this._hasFocus,I=T?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";j&&($.style.marginBottom=`${$.clientHeight}px`),$.classList.add(I);const F=$.scrollHeight-4;return $.classList.remove(I),j&&($.style.marginBottom=C),F}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const $=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=$}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent($=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const C=this._elementRef.nativeElement,T=C.value;if(!$&&this._minRows===this._previousMinRows&&T===this._previousValue)return;const j=this._measureScrollHeight(),I=Math.max(j,this._cachedPlaceholderHeight||0);C.style.height=`${I}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(C)):setTimeout(()=>this._scrollToCaretPosition(C))}),this._previousValue=T,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition($){const{selectionStart:C,selectionEnd:T}=$;!this._destroyed.isStopped&&this._hasFocus&&$.setSelectionRange(C,T)}}return _.\u0275fac=function($){return new($||_)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.t4),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(m.K0,8))},_.\u0275dir=e.\u0275\u0275defineDirective({type:_,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function($,C){1&$&&e.\u0275\u0275listener("input",function(){return C._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),_})(),B=(()=>{class _{}return _.\u0275fac=function($){return new($||_)},_.\u0275mod=e.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=e.\u0275\u0275defineInjector({}),_})()},36895:(Ee,Q,t)=>{"use strict";t.d(Q,{Do:()=>T,ED:()=>Ot,EL:()=>jt,EM:()=>es,Gx:()=>rr,H9:()=>za,HT:()=>d,JF:()=>Ca,JJ:()=>to,K0:()=>u,Mx:()=>Me,NF:()=>Yr,O5:()=>St,Ov:()=>kn,PC:()=>ci,PM:()=>Ya,RF:()=>Nt,S$:()=>y,V_:()=>m,Ye:()=>j,ax:()=>Le,b0:()=>C,bD:()=>Cs,ez:()=>Pr,i8:()=>ai,mk:()=>ue,n9:()=>It,q:()=>i,qS:()=>Se,rS:()=>eo,sg:()=>Le,tP:()=>Ui,uU:()=>na,w_:()=>a,yn:()=>ve});var n=t(94650);let e=null;function i(){return e}function d(Re){e||(e=Re)}class a{}const u=new n.InjectionToken("DocumentToken");let h=(()=>{class Re{historyGo($e){throw new Error("Not implemented")}}return Re.\u0275fac=function($e){return new($e||Re)},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:function(){return function l(){return(0,n.\u0275\u0275inject)(x)}()},providedIn:"platform"}),Re})();const m=new n.InjectionToken("Location Initialized");let x=(()=>{class Re extends h{constructor($e){super(),this._doc=$e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState($e){const Kt=i().getGlobalEventTarget(this._doc,"window");return Kt.addEventListener("popstate",$e,!1),()=>Kt.removeEventListener("popstate",$e)}onHashChange($e){const Kt=i().getGlobalEventTarget(this._doc,"window");return Kt.addEventListener("hashchange",$e,!1),()=>Kt.removeEventListener("hashchange",$e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname($e){this._location.pathname=$e}pushState($e,Kt,yn){O()?this._history.pushState($e,Kt,yn):this._location.hash=yn}replaceState($e,Kt,yn){O()?this._history.replaceState($e,Kt,yn):this._location.hash=yn}forward(){this._history.forward()}back(){this._history.back()}historyGo($e=0){this._history.go($e)}getState(){return this._history.state}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275inject(u))},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:function(){return function L(){return new x((0,n.\u0275\u0275inject)(u))}()},providedIn:"platform"}),Re})();function O(){return!!window.history.pushState}function w(Re,Ct){if(0==Re.length)return Ct;if(0==Ct.length)return Re;let $e=0;return Re.endsWith("/")&&$e++,Ct.startsWith("/")&&$e++,2==$e?Re+Ct.substring(1):1==$e?Re+Ct:Re+"/"+Ct}function B(Re){const Ct=Re.match(/#|\?|$/),$e=Ct&&Ct.index||Re.length;return Re.slice(0,$e-("/"===Re[$e-1]?1:0))+Re.slice($e)}function _(Re){return Re&&"?"!==Re[0]?"?"+Re:Re}let y=(()=>{class Re{historyGo($e){throw new Error("Not implemented")}}return Re.\u0275fac=function($e){return new($e||Re)},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:function(){return(0,n.inject)(C)},providedIn:"root"}),Re})();const $=new n.InjectionToken("appBaseHref");let C=(()=>{class Re extends y{constructor($e,Kt){super(),this._platformLocation=$e,this._removeListenerFns=[],this._baseHref=Kt??this._platformLocation.getBaseHrefFromDOM()??(0,n.inject)(u).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($e){this._removeListenerFns.push(this._platformLocation.onPopState($e),this._platformLocation.onHashChange($e))}getBaseHref(){return this._baseHref}prepareExternalUrl($e){return w(this._baseHref,$e)}path($e=!1){const Kt=this._platformLocation.pathname+_(this._platformLocation.search),yn=this._platformLocation.hash;return yn&&$e?`${Kt}${yn}`:Kt}pushState($e,Kt,yn,ii){const hi=this.prepareExternalUrl(yn+_(ii));this._platformLocation.pushState($e,Kt,hi)}replaceState($e,Kt,yn,ii){const hi=this.prepareExternalUrl(yn+_(ii));this._platformLocation.replaceState($e,Kt,hi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($e=0){this._platformLocation.historyGo?.($e)}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275inject(h),n.\u0275\u0275inject($,8))},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),T=(()=>{class Re extends y{constructor($e,Kt){super(),this._platformLocation=$e,this._baseHref="",this._removeListenerFns=[],null!=Kt&&(this._baseHref=Kt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($e){this._removeListenerFns.push(this._platformLocation.onPopState($e),this._platformLocation.onHashChange($e))}getBaseHref(){return this._baseHref}path($e=!1){let Kt=this._platformLocation.hash;return null==Kt&&(Kt="#"),Kt.length>0?Kt.substring(1):Kt}prepareExternalUrl($e){const Kt=w(this._baseHref,$e);return Kt.length>0?"#"+Kt:Kt}pushState($e,Kt,yn,ii){let hi=this.prepareExternalUrl(yn+_(ii));0==hi.length&&(hi=this._platformLocation.pathname),this._platformLocation.pushState($e,Kt,hi)}replaceState($e,Kt,yn,ii){let hi=this.prepareExternalUrl(yn+_(ii));0==hi.length&&(hi=this._platformLocation.pathname),this._platformLocation.replaceState($e,Kt,hi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($e=0){this._platformLocation.historyGo?.($e)}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275inject(h),n.\u0275\u0275inject($,8))},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac}),Re})(),j=(()=>{class Re{constructor($e){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=$e;const Kt=this._locationStrategy.getBaseHref();this._basePath=function X(Re){if(new RegExp("^(https?:)?//").test(Re)){const[,$e]=Re.split(/\/\/[^\/]+/);return $e}return Re}(B(z(Kt))),this._locationStrategy.onPopState(yn=>{this._subject.emit({url:this.path(!0),pop:!0,state:yn.state,type:yn.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path($e=!1){return this.normalize(this._locationStrategy.path($e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo($e,Kt=""){return this.path()==this.normalize($e+_(Kt))}normalize($e){return Re.stripTrailingSlash(function F(Re,Ct){if(!Re||!Ct.startsWith(Re))return Ct;const $e=Ct.substring(Re.length);return""===$e||["/",";","?","#"].includes($e[0])?$e:Ct}(this._basePath,z($e)))}prepareExternalUrl($e){return $e&&"/"!==$e[0]&&($e="/"+$e),this._locationStrategy.prepareExternalUrl($e)}go($e,Kt="",yn=null){this._locationStrategy.pushState(yn,"",$e,Kt),this._notifyUrlChangeListeners(this.prepareExternalUrl($e+_(Kt)),yn)}replaceState($e,Kt="",yn=null){this._locationStrategy.replaceState(yn,"",$e,Kt),this._notifyUrlChangeListeners(this.prepareExternalUrl($e+_(Kt)),yn)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo($e=0){this._locationStrategy.historyGo?.($e)}onUrlChange($e){return this._urlChangeListeners.push($e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Kt=>{this._notifyUrlChangeListeners(Kt.url,Kt.state)})),()=>{const Kt=this._urlChangeListeners.indexOf($e);this._urlChangeListeners.splice(Kt,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners($e="",Kt){this._urlChangeListeners.forEach(yn=>yn($e,Kt))}subscribe($e,Kt,yn){return this._subject.subscribe({next:$e,error:Kt,complete:yn})}}return Re.normalizeQueryParams=_,Re.joinWithSlash=w,Re.stripTrailingSlash=B,Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275inject(y))},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:function(){return function I(){return new j((0,n.\u0275\u0275inject)(y))}()},providedIn:"root"}),Re})();function z(Re){return Re.replace(/\/index.html$/,"")}const p={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var P=(()=>((P=P||{})[P.Decimal=0]="Decimal",P[P.Percent=1]="Percent",P[P.Currency=2]="Currency",P[P.Scientific=3]="Scientific",P))(),E=(()=>((E=E||{})[E.Zero=0]="Zero",E[E.One=1]="One",E[E.Two=2]="Two",E[E.Few=3]="Few",E[E.Many=4]="Many",E[E.Other=5]="Other",E))(),R=(()=>((R=R||{})[R.Format=0]="Format",R[R.Standalone=1]="Standalone",R))(),ne=(()=>((ne=ne||{})[ne.Narrow=0]="Narrow",ne[ne.Abbreviated=1]="Abbreviated",ne[ne.Wide=2]="Wide",ne[ne.Short=3]="Short",ne))(),G=(()=>((G=G||{})[G.Short=0]="Short",G[G.Medium=1]="Medium",G[G.Long=2]="Long",G[G.Full=3]="Full",G))(),ce=(()=>((ce=ce||{})[ce.Decimal=0]="Decimal",ce[ce.Group=1]="Group",ce[ce.List=2]="List",ce[ce.PercentSign=3]="PercentSign",ce[ce.PlusSign=4]="PlusSign",ce[ce.MinusSign=5]="MinusSign",ce[ce.Exponential=6]="Exponential",ce[ce.SuperscriptingExponent=7]="SuperscriptingExponent",ce[ce.PerMille=8]="PerMille",ce[ce.Infinity=9]="Infinity",ce[ce.NaN=10]="NaN",ce[ce.TimeSeparator=11]="TimeSeparator",ce[ce.CurrencyDecimal=12]="CurrencyDecimal",ce[ce.CurrencyGroup=13]="CurrencyGroup",ce))();function Z(Re,Ct){return Tt((0,n.\u0275findLocaleData)(Re)[n.\u0275LocaleDataIndex.DateFormat],Ct)}function oe(Re,Ct){return Tt((0,n.\u0275findLocaleData)(Re)[n.\u0275LocaleDataIndex.TimeFormat],Ct)}function Pe(Re,Ct){return Tt((0,n.\u0275findLocaleData)(Re)[n.\u0275LocaleDataIndex.DateTimeFormat],Ct)}function Ie(Re,Ct){const $e=(0,n.\u0275findLocaleData)(Re),Kt=$e[n.\u0275LocaleDataIndex.NumberSymbols][Ct];if(typeof Kt>"u"){if(Ct===ce.CurrencyDecimal)return $e[n.\u0275LocaleDataIndex.NumberSymbols][ce.Decimal];if(Ct===ce.CurrencyGroup)return $e[n.\u0275LocaleDataIndex.NumberSymbols][ce.Group]}return Kt}function pt(Re,Ct){return(0,n.\u0275findLocaleData)(Re)[n.\u0275LocaleDataIndex.NumberFormats][Ct]}const Be=n.\u0275getLocalePluralCase;function at(Re){if(!Re[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${Re[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Tt(Re,Ct){for(let $e=Ct;$e>-1;$e--)if(typeof Re[$e]<"u")return Re[$e];throw new Error("Locale data API: locale data undefined")}function ot(Re){const[Ct,$e]=Re.split(":");return{hours:+Ct,minutes:+$e}}const wt=2,Ut=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,vn={},xn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var bn=(()=>((bn=bn||{})[bn.Short=0]="Short",bn[bn.ShortGMT=1]="ShortGMT",bn[bn.Long=2]="Long",bn[bn.Extended=3]="Extended",bn))(),hn=(()=>((hn=hn||{})[hn.FullYear=0]="FullYear",hn[hn.Month=1]="Month",hn[hn.Date=2]="Date",hn[hn.Hours=3]="Hours",hn[hn.Minutes=4]="Minutes",hn[hn.Seconds=5]="Seconds",hn[hn.FractionalSeconds=6]="FractionalSeconds",hn[hn.Day=7]="Day",hn))(),pn=(()=>((pn=pn||{})[pn.DayPeriods=0]="DayPeriods",pn[pn.Days=1]="Days",pn[pn.Months=2]="Months",pn[pn.Eras=3]="Eras",pn))();function In(Re,Ct,$e,Kt){let yn=function ze(Re){if(vt(Re))return Re;if("number"==typeof Re&&!isNaN(Re))return new Date(Re);if("string"==typeof Re){if(Re=Re.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Re)){const[yn,ii=1,hi=1]=Re.split("-").map(Ki=>+Ki);return Dn(yn,ii-1,hi)}const $e=parseFloat(Re);if(!isNaN(Re-$e))return new Date($e);let Kt;if(Kt=Re.match(Ut))return function zt(Re){const Ct=new Date(0);let $e=0,Kt=0;const yn=Re[8]?Ct.setUTCFullYear:Ct.setFullYear,ii=Re[8]?Ct.setUTCHours:Ct.setHours;Re[9]&&($e=Number(Re[9]+Re[10]),Kt=Number(Re[9]+Re[11])),yn.call(Ct,Number(Re[1]),Number(Re[2])-1,Number(Re[3]));const hi=Number(Re[4]||0)-$e,Ki=Number(Re[5]||0)-Kt,ea=Number(Re[6]||0),ra=Math.floor(1e3*parseFloat("0."+(Re[7]||0)));return ii.call(Ct,hi,Ki,ea,ra),Ct}(Kt)}const Ct=new Date(Re);if(!vt(Ct))throw new Error(`Unable to convert "${Re}" into a date`);return Ct}(Re);Ct=Tn($e,Ct)||Ct;let Ki,hi=[];for(;Ct;){if(Ki=xn.exec(Ct),!Ki){hi.push(Ct);break}{hi=hi.concat(Ki.slice(1));const zo=hi.pop();if(!zo)break;Ct=zo}}let ea=yn.getTimezoneOffset();Kt&&(ea=dt(Kt,ea),yn=function qe(Re,Ct,$e){const Kt=$e?-1:1,yn=Re.getTimezoneOffset();return function rt(Re,Ct){return(Re=new Date(Re.getTime())).setMinutes(Re.getMinutes()+Ct),Re}(Re,Kt*(dt(Ct,yn)-yn))}(yn,Kt,!0));let ra="";return hi.forEach(zo=>{const To=function Et(Re){if(je[Re])return je[Re];let Ct;switch(Re){case"G":case"GG":case"GGG":Ct=En(pn.Eras,ne.Abbreviated);break;case"GGGG":Ct=En(pn.Eras,ne.Wide);break;case"GGGGG":Ct=En(pn.Eras,ne.Narrow);break;case"y":Ct=Nn(hn.FullYear,1,0,!1,!0);break;case"yy":Ct=Nn(hn.FullYear,2,0,!0,!0);break;case"yyy":Ct=Nn(hn.FullYear,3,0,!1,!0);break;case"yyyy":Ct=Nn(hn.FullYear,4,0,!1,!0);break;case"Y":Ct=Oe(1);break;case"YY":Ct=Oe(2,!0);break;case"YYY":Ct=Oe(3);break;case"YYYY":Ct=Oe(4);break;case"M":case"L":Ct=Nn(hn.Month,1,1);break;case"MM":case"LL":Ct=Nn(hn.Month,2,1);break;case"MMM":Ct=En(pn.Months,ne.Abbreviated);break;case"MMMM":Ct=En(pn.Months,ne.Wide);break;case"MMMMM":Ct=En(pn.Months,ne.Narrow);break;case"LLL":Ct=En(pn.Months,ne.Abbreviated,R.Standalone);break;case"LLLL":Ct=En(pn.Months,ne.Wide,R.Standalone);break;case"LLLLL":Ct=En(pn.Months,ne.Narrow,R.Standalone);break;case"w":Ct=J(1);break;case"ww":Ct=J(2);break;case"W":Ct=J(1,!0);break;case"d":Ct=Nn(hn.Date,1);break;case"dd":Ct=Nn(hn.Date,2);break;case"c":case"cc":Ct=Nn(hn.Day,1);break;case"ccc":Ct=En(pn.Days,ne.Abbreviated,R.Standalone);break;case"cccc":Ct=En(pn.Days,ne.Wide,R.Standalone);break;case"ccccc":Ct=En(pn.Days,ne.Narrow,R.Standalone);break;case"cccccc":Ct=En(pn.Days,ne.Short,R.Standalone);break;case"E":case"EE":case"EEE":Ct=En(pn.Days,ne.Abbreviated);break;case"EEEE":Ct=En(pn.Days,ne.Wide);break;case"EEEEE":Ct=En(pn.Days,ne.Narrow);break;case"EEEEEE":Ct=En(pn.Days,ne.Short);break;case"a":case"aa":case"aaa":Ct=En(pn.DayPeriods,ne.Abbreviated);break;case"aaaa":Ct=En(pn.DayPeriods,ne.Wide);break;case"aaaaa":Ct=En(pn.DayPeriods,ne.Narrow);break;case"b":case"bb":case"bbb":Ct=En(pn.DayPeriods,ne.Abbreviated,R.Standalone,!0);break;case"bbbb":Ct=En(pn.DayPeriods,ne.Wide,R.Standalone,!0);break;case"bbbbb":Ct=En(pn.DayPeriods,ne.Narrow,R.Standalone,!0);break;case"B":case"BB":case"BBB":Ct=En(pn.DayPeriods,ne.Abbreviated,R.Format,!0);break;case"BBBB":Ct=En(pn.DayPeriods,ne.Wide,R.Format,!0);break;case"BBBBB":Ct=En(pn.DayPeriods,ne.Narrow,R.Format,!0);break;case"h":Ct=Nn(hn.Hours,1,-12);break;case"hh":Ct=Nn(hn.Hours,2,-12);break;case"H":Ct=Nn(hn.Hours,1);break;case"HH":Ct=Nn(hn.Hours,2);break;case"m":Ct=Nn(hn.Minutes,1);break;case"mm":Ct=Nn(hn.Minutes,2);break;case"s":Ct=Nn(hn.Seconds,1);break;case"ss":Ct=Nn(hn.Seconds,2);break;case"S":Ct=Nn(hn.FractionalSeconds,1);break;case"SS":Ct=Nn(hn.FractionalSeconds,2);break;case"SSS":Ct=Nn(hn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ct=rn(bn.Short);break;case"ZZZZZ":Ct=rn(bn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ct=rn(bn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ct=rn(bn.Long);break;default:return null}return je[Re]=Ct,Ct}(zo);ra+=To?To(yn,$e,ea):"''"===zo?"'":zo.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ra}function Dn(Re,Ct,$e){const Kt=new Date(0);return Kt.setFullYear(Re,Ct,$e),Kt.setHours(0,0,0),Kt}function Tn(Re,Ct){const $e=function we(Re){return(0,n.\u0275findLocaleData)(Re)[n.\u0275LocaleDataIndex.LocaleId]}(Re);if(vn[$e]=vn[$e]||{},vn[$e][Ct])return vn[$e][Ct];let Kt="";switch(Ct){case"shortDate":Kt=Z(Re,G.Short);break;case"mediumDate":Kt=Z(Re,G.Medium);break;case"longDate":Kt=Z(Re,G.Long);break;case"fullDate":Kt=Z(Re,G.Full);break;case"shortTime":Kt=oe(Re,G.Short);break;case"mediumTime":Kt=oe(Re,G.Medium);break;case"longTime":Kt=oe(Re,G.Long);break;case"fullTime":Kt=oe(Re,G.Full);break;case"short":const yn=Tn(Re,"shortTime"),ii=Tn(Re,"shortDate");Kt=mn(Pe(Re,G.Short),[yn,ii]);break;case"medium":const hi=Tn(Re,"mediumTime"),Ki=Tn(Re,"mediumDate");Kt=mn(Pe(Re,G.Medium),[hi,Ki]);break;case"long":const ea=Tn(Re,"longTime"),ra=Tn(Re,"longDate");Kt=mn(Pe(Re,G.Long),[ea,ra]);break;case"full":const zo=Tn(Re,"fullTime"),To=Tn(Re,"fullDate");Kt=mn(Pe(Re,G.Full),[zo,To])}return Kt&&(vn[$e][Ct]=Kt),Kt}function mn(Re,Ct){return Ct&&(Re=Re.replace(/\{([^}]+)}/g,function($e,Kt){return null!=Ct&&Kt in Ct?Ct[Kt]:$e})),Re}function Yn(Re,Ct,$e="-",Kt,yn){let ii="";(Re<0||yn&&Re<=0)&&(yn?Re=1-Re:(Re=-Re,ii=$e));let hi=String(Re);for(;hi.length<Ct;)hi="0"+hi;return Kt&&(hi=hi.slice(hi.length-Ct)),ii+hi}function Nn(Re,Ct,$e=0,Kt=!1,yn=!1){return function(ii,hi){let Ki=function Bt(Re,Ct){switch(Re){case hn.FullYear:return Ct.getFullYear();case hn.Month:return Ct.getMonth();case hn.Date:return Ct.getDate();case hn.Hours:return Ct.getHours();case hn.Minutes:return Ct.getMinutes();case hn.Seconds:return Ct.getSeconds();case hn.FractionalSeconds:return Ct.getMilliseconds();case hn.Day:return Ct.getDay();default:throw new Error(`Unknown DateType value "${Re}".`)}}(Re,ii);if(($e>0||Ki>-$e)&&(Ki+=$e),Re===hn.Hours)0===Ki&&-12===$e&&(Ki=12);else if(Re===hn.FractionalSeconds)return function cn(Re,Ct){return Yn(Re,3).substring(0,Ct)}(Ki,Ct);const ea=Ie(hi,ce.MinusSign);return Yn(Ki,Ct,ea,Kt,yn)}}function En(Re,Ct,$e=R.Format,Kt=!1){return function(yn,ii){return function Wn(Re,Ct,$e,Kt,yn,ii){switch($e){case pn.Months:return function pe(Re,Ct,$e){const Kt=(0,n.\u0275findLocaleData)(Re),ii=Tt([Kt[n.\u0275LocaleDataIndex.MonthsFormat],Kt[n.\u0275LocaleDataIndex.MonthsStandalone]],Ct);return Tt(ii,$e)}(Ct,yn,Kt)[Re.getMonth()];case pn.Days:return function ct(Re,Ct,$e){const Kt=(0,n.\u0275findLocaleData)(Re),ii=Tt([Kt[n.\u0275LocaleDataIndex.DaysFormat],Kt[n.\u0275LocaleDataIndex.DaysStandalone]],Ct);return Tt(ii,$e)}(Ct,yn,Kt)[Re.getDay()];case pn.DayPeriods:const hi=Re.getHours(),Ki=Re.getMinutes();if(ii){const ra=function lt(Re){const Ct=(0,n.\u0275findLocaleData)(Re);return at(Ct),(Ct[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(Kt=>"string"==typeof Kt?ot(Kt):[ot(Kt[0]),ot(Kt[1])])}(Ct),zo=function Dt(Re,Ct,$e){const Kt=(0,n.\u0275findLocaleData)(Re);at(Kt);const ii=Tt([Kt[n.\u0275LocaleDataIndex.ExtraData][0],Kt[n.\u0275LocaleDataIndex.ExtraData][1]],Ct)||[];return Tt(ii,$e)||[]}(Ct,yn,Kt),To=ra.findIndex(Ha=>{if(Array.isArray(Ha)){const[Ri,co]=Ha,Jo=hi>=Ri.hours&&Ki>=Ri.minutes,lo=hi<co.hours||hi===co.hours&&Ki<co.minutes;if(Ri.hours<co.hours){if(Jo&&lo)return!0}else if(Jo||lo)return!0}else if(Ha.hours===hi&&Ha.minutes===Ki)return!0;return!1});if(-1!==To)return zo[To]}return function Ge(Re,Ct,$e){const Kt=(0,n.\u0275findLocaleData)(Re),ii=Tt([Kt[n.\u0275LocaleDataIndex.DayPeriodsFormat],Kt[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],Ct);return Tt(ii,$e)}(Ct,yn,Kt)[hi<12?0:1];case pn.Eras:return function Ce(Re,Ct){return Tt((0,n.\u0275findLocaleData)(Re)[n.\u0275LocaleDataIndex.Eras],Ct)}(Ct,Kt)[Re.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${$e}`)}}(yn,ii,Re,Ct,$e,Kt)}}function rn(Re){return function(Ct,$e,Kt){const yn=-1*Kt,ii=Ie($e,ce.MinusSign),hi=yn>0?Math.floor(yn/60):Math.ceil(yn/60);switch(Re){case bn.Short:return(yn>=0?"+":"")+Yn(hi,2,ii)+Yn(Math.abs(yn%60),2,ii);case bn.ShortGMT:return"GMT"+(yn>=0?"+":"")+Yn(hi,1,ii);case bn.Long:return"GMT"+(yn>=0?"+":"")+Yn(hi,2,ii)+":"+Yn(Math.abs(yn%60),2,ii);case bn.Extended:return 0===Kt?"Z":(yn>=0?"+":"")+Yn(hi,2,ii)+":"+Yn(Math.abs(yn%60),2,ii);default:throw new Error(`Unknown zone width "${Re}"`)}}}const Sn=0,ke=4;function q(Re){return Dn(Re.getFullYear(),Re.getMonth(),Re.getDate()+(ke-Re.getDay()))}function J(Re,Ct=!1){return function($e,Kt){let yn;if(Ct){const ii=new Date($e.getFullYear(),$e.getMonth(),1).getDay()-1,hi=$e.getDate();yn=1+Math.floor((hi+ii)/7)}else{const ii=q($e),hi=function ge(Re){const Ct=Dn(Re,Sn,1).getDay();return Dn(Re,0,1+(Ct<=ke?ke:ke+7)-Ct)}(ii.getFullYear()),Ki=ii.getTime()-hi.getTime();yn=1+Math.round(Ki/6048e5)}return Yn(yn,Re,Ie(Kt,ce.MinusSign))}}function Oe(Re,Ct=!1){return function($e,Kt){return Yn(q($e).getFullYear(),Re,Ie(Kt,ce.MinusSign),Ct)}}const je={};function dt(Re,Ct){Re=Re.replace(/:/g,"");const $e=Date.parse("Jan 01, 1970 00:00:00 "+Re)/6e4;return isNaN($e)?Ct:$e}function vt(Re){return Re instanceof Date&&!isNaN(Re.valueOf())}const Rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,gt=22,sn=".",wn="0",Qn=";",pi=",",Ei="#",ki="\xa4";function xo(Re,Ct,$e,Kt,yn,ii,hi=!1){let Ki="",ea=!1;if(isFinite(Re)){let ra=function en(Re){let Kt,yn,ii,hi,Ki,Ct=Math.abs(Re)+"",$e=0;for((yn=Ct.indexOf(sn))>-1&&(Ct=Ct.replace(sn,"")),(ii=Ct.search(/e/i))>0?(yn<0&&(yn=ii),yn+=+Ct.slice(ii+1),Ct=Ct.substring(0,ii)):yn<0&&(yn=Ct.length),ii=0;Ct.charAt(ii)===wn;ii++);if(ii===(Ki=Ct.length))Kt=[0],yn=1;else{for(Ki--;Ct.charAt(Ki)===wn;)Ki--;for(yn-=ii,Kt=[],hi=0;ii<=Ki;ii++,hi++)Kt[hi]=Number(Ct.charAt(ii))}return yn>gt&&(Kt=Kt.splice(0,gt-1),$e=yn-1,yn=1),{digits:Kt,exponent:$e,integerLen:yn}}(Re);hi&&(ra=function Io(Re){if(0===Re.digits[0])return Re;const Ct=Re.digits.length-Re.integerLen;return Re.exponent?Re.exponent+=2:(0===Ct?Re.digits.push(0,0):1===Ct&&Re.digits.push(0),Re.integerLen+=2),Re}(ra));let zo=Ct.minInt,To=Ct.minFrac,Ha=Ct.maxFrac;if(ii){const Tr=ii.match(Rt);if(null===Tr)throw new Error(`${ii} is not a valid digit info`);const Ka=Tr[1],Nr=Tr[3],La=Tr[5];null!=Ka&&(zo=tt(Ka)),null!=Nr&&(To=tt(Nr)),null!=La?Ha=tt(La):null!=Nr&&To>Ha&&(Ha=To)}!function Hn(Re,Ct,$e){if(Ct>$e)throw new Error(`The minimum number of digits after fraction (${Ct}) is higher than the maximum (${$e}).`);let Kt=Re.digits,yn=Kt.length-Re.integerLen;const ii=Math.min(Math.max(Ct,yn),$e);let hi=ii+Re.integerLen,Ki=Kt[hi];if(hi>0){Kt.splice(Math.max(Re.integerLen,hi));for(let To=hi;To<Kt.length;To++)Kt[To]=0}else{yn=Math.max(0,yn),Re.integerLen=1,Kt.length=Math.max(1,hi=ii+1),Kt[0]=0;for(let To=1;To<hi;To++)Kt[To]=0}if(Ki>=5)if(hi-1<0){for(let To=0;To>hi;To--)Kt.unshift(0),Re.integerLen++;Kt.unshift(1),Re.integerLen++}else Kt[hi-1]++;for(;yn<Math.max(0,ii);yn++)Kt.push(0);let ea=0!==ii;const ra=Ct+Re.integerLen,zo=Kt.reduceRight(function(To,Ha,Ri,co){return co[Ri]=(Ha+=To)<10?Ha:Ha-10,ea&&(0===co[Ri]&&Ri>=ra?co.pop():ea=!1),Ha>=10?1:0},0);zo&&(Kt.unshift(zo),Re.integerLen++)}(ra,To,Ha);let Ri=ra.digits,co=ra.integerLen;const Jo=ra.exponent;let lo=[];for(ea=Ri.every(Tr=>!Tr);co<zo;co++)Ri.unshift(0);for(;co<0;co++)Ri.unshift(0);co>0?lo=Ri.splice(co,Ri.length):(lo=Ri,Ri=[0]);const Ja=[];for(Ri.length>=Ct.lgSize&&Ja.unshift(Ri.splice(-Ct.lgSize,Ri.length).join(""));Ri.length>Ct.gSize;)Ja.unshift(Ri.splice(-Ct.gSize,Ri.length).join(""));Ri.length&&Ja.unshift(Ri.join("")),Ki=Ja.join(Ie($e,Kt)),lo.length&&(Ki+=Ie($e,yn)+lo.join("")),Jo&&(Ki+=Ie($e,ce.Exponential)+"+"+Jo)}else Ki=Ie($e,ce.Infinity);return Ki=Re<0&&!ea?Ct.negPre+Ki+Ct.negSuf:Ct.posPre+Ki+Ct.posSuf,Ki}function po(Re,Ct="-"){const $e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Kt=Re.split(Qn),yn=Kt[0],ii=Kt[1],hi=-1!==yn.indexOf(sn)?yn.split(sn):[yn.substring(0,yn.lastIndexOf(wn)+1),yn.substring(yn.lastIndexOf(wn)+1)],Ki=hi[0],ea=hi[1]||"";$e.posPre=Ki.substring(0,Ki.indexOf(Ei));for(let zo=0;zo<ea.length;zo++){const To=ea.charAt(zo);To===wn?$e.minFrac=$e.maxFrac=zo+1:To===Ei?$e.maxFrac=zo+1:$e.posSuf+=To}const ra=Ki.split(pi);if($e.gSize=ra[1]?ra[1].length:0,$e.lgSize=ra[2]||ra[1]?(ra[2]||ra[1]).length:0,ii){const zo=yn.length-$e.posPre.length-$e.posSuf.length,To=ii.indexOf(Ei);$e.negPre=ii.substring(0,To).replace(/'/g,""),$e.negSuf=ii.slice(To+zo).replace(/'/g,"")}else $e.negPre=Ct+$e.posPre,$e.negSuf=$e.posSuf;return $e}function tt(Re){const Ct=parseInt(Re);if(isNaN(Ct))throw new Error("Invalid integer literal when parsing "+Re);return Ct}let nt=(()=>{class Re{}return Re.\u0275fac=function($e){return new($e||Re)},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:function($e){let Kt=null;return $e?Kt=new $e:(yn=n.\u0275\u0275inject(n.LOCALE_ID),Kt=new ve(yn)),Kt;var yn},providedIn:"root"}),Re})();let ve=(()=>{class Re extends nt{constructor($e){super(),this.locale=$e}getPluralCategory($e,Kt){switch(Be(Kt||this.locale)($e)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275inject(n.LOCALE_ID))},Re.\u0275prov=n.\u0275\u0275defineInjectable({token:Re,factory:Re.\u0275fac}),Re})();function Se(Re,Ct,$e){return(0,n.\u0275registerLocaleData)(Re,Ct,$e)}function Me(Re,Ct){Ct=encodeURIComponent(Ct);for(const $e of Re.split(";")){const Kt=$e.indexOf("="),[yn,ii]=-1==Kt?[$e,""]:[$e.slice(0,Kt),$e.slice(Kt+1)];if(yn.trim()===Ct)return decodeURIComponent(ii)}return null}const We=/\s+/,ut=[];let ue=(()=>{class Re{constructor($e,Kt,yn,ii){this._iterableDiffers=$e,this._keyValueDiffers=Kt,this._ngEl=yn,this._renderer=ii,this.initialClasses=ut,this.stateMap=new Map}set klass($e){this.initialClasses=null!=$e?$e.trim().split(We):ut}set ngClass($e){this.rawClass="string"==typeof $e?$e.trim().split(We):$e}ngDoCheck(){for(const Kt of this.initialClasses)this._updateState(Kt,!0);const $e=this.rawClass;if(Array.isArray($e)||$e instanceof Set)for(const Kt of $e)this._updateState(Kt,!0);else if(null!=$e)for(const Kt of Object.keys($e))this._updateState(Kt,Boolean($e[Kt]));this._applyStateDiff()}_updateState($e,Kt){const yn=this.stateMap.get($e);void 0!==yn?(yn.enabled!==Kt&&(yn.changed=!0,yn.enabled=Kt),yn.touched=!0):this.stateMap.set($e,{enabled:Kt,changed:!0,touched:!0})}_applyStateDiff(){for(const $e of this.stateMap){const Kt=$e[0],yn=$e[1];yn.changed?(this._toggleClass(Kt,yn.enabled),yn.changed=!1):yn.touched||(yn.enabled&&this._toggleClass(Kt,!1),this.stateMap.delete(Kt)),yn.touched=!1}}_toggleClass($e,Kt){($e=$e.trim()).length>0&&$e.split(We).forEach(yn=>{Kt?this._renderer.addClass(this._ngEl.nativeElement,yn):this._renderer.removeClass(this._ngEl.nativeElement,yn)})}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Re})();class bt{constructor(Ct,$e,Kt,yn){this.$implicit=Ct,this.ngForOf=$e,this.index=Kt,this.count=yn}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Le=(()=>{class Re{set ngForOf($e){this._ngForOf=$e,this._ngForOfDirty=!0}set ngForTrackBy($e){this._trackByFn=$e}get ngForTrackBy(){return this._trackByFn}constructor($e,Kt,yn){this._viewContainer=$e,this._template=Kt,this._differs=yn,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate($e){$e&&(this._template=$e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const $e=this._ngForOf;!this._differ&&$e&&(this._differ=this._differs.find($e).create(this.ngForTrackBy))}if(this._differ){const $e=this._differ.diff(this._ngForOf);$e&&this._applyChanges($e)}}_applyChanges($e){const Kt=this._viewContainer;$e.forEachOperation((yn,ii,hi)=>{if(null==yn.previousIndex)Kt.createEmbeddedView(this._template,new bt(yn.item,this._ngForOf,-1,-1),null===hi?void 0:hi);else if(null==hi)Kt.remove(null===ii?void 0:ii);else if(null!==ii){const Ki=Kt.get(ii);Kt.move(Ki,hi),Pt(Ki,yn)}});for(let yn=0,ii=Kt.length;yn<ii;yn++){const Ki=Kt.get(yn).context;Ki.index=yn,Ki.count=ii,Ki.ngForOf=this._ngForOf}$e.forEachIdentityChange(yn=>{Pt(Kt.get(yn.currentIndex),yn)})}static ngTemplateContextGuard($e,Kt){return!0}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Re})();function Pt(Re,Ct){Re.context.$implicit=Ct.item}let St=(()=>{class Re{constructor($e,Kt){this._viewContainer=$e,this._context=new jt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Kt}set ngIf($e){this._context.$implicit=this._context.ngIf=$e,this._updateView()}set ngIfThen($e){ht("ngIfThen",$e),this._thenTemplateRef=$e,this._thenViewRef=null,this._updateView()}set ngIfElse($e){ht("ngIfElse",$e),this._elseTemplateRef=$e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard($e,Kt){return!0}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Re})();class jt{constructor(){this.$implicit=null,this.ngIf=null}}function ht(Re,Ct){if(Ct&&!Ct.createEmbeddedView)throw new Error(`${Re} must be a TemplateRef, but received '${(0,n.\u0275stringify)(Ct)}'.`)}class on{constructor(Ct,$e){this._viewContainerRef=Ct,this._templateRef=$e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ct){Ct&&!this._created?this.create():!Ct&&this._created&&this.destroy()}}let Nt=(()=>{class Re{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch($e){this._ngSwitch=$e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault($e){this._defaultViews.push($e)}_matchCase($e){const Kt=$e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Kt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Kt}_updateDefaultCases($e){if(this._defaultViews.length>0&&$e!==this._defaultUsed){this._defaultUsed=$e;for(const Kt of this._defaultViews)Kt.enforceState($e)}}}return Re.\u0275fac=function($e){return new($e||Re)},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),Re})(),It=(()=>{class Re{constructor($e,Kt,yn){this.ngSwitch=yn,yn._addCase(),this._view=new on($e,Kt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Nt,9))},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Re})(),Ot=(()=>{class Re{constructor($e,Kt,yn){yn._addDefault(new on($e,Kt))}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Nt,9))},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Re})(),ci=(()=>{class Re{constructor($e,Kt,yn){this._ngEl=$e,this._differs=Kt,this._renderer=yn,this._ngStyle=null,this._differ=null}set ngStyle($e){this._ngStyle=$e,!this._differ&&$e&&(this._differ=this._differs.find($e).create())}ngDoCheck(){if(this._differ){const $e=this._differ.diff(this._ngStyle);$e&&this._applyChanges($e)}}_setStyle($e,Kt){const[yn,ii]=$e.split("."),hi=-1===yn.indexOf("-")?void 0:n.RendererStyleFlags2.DashCase;null!=Kt?this._renderer.setStyle(this._ngEl.nativeElement,yn,ii?`${Kt}${ii}`:Kt,hi):this._renderer.removeStyle(this._ngEl.nativeElement,yn,hi)}_applyChanges($e){$e.forEachRemovedItem(Kt=>this._setStyle(Kt.key,null)),$e.forEachAddedItem(Kt=>this._setStyle(Kt.key,Kt.currentValue)),$e.forEachChangedItem(Kt=>this._setStyle(Kt.key,Kt.currentValue))}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Re})(),Ui=(()=>{class Re{constructor($e){this._viewContainerRef=$e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges($e){if($e.ngTemplateOutlet||$e.ngTemplateOutletInjector){const Kt=this._viewContainerRef;if(this._viewRef&&Kt.remove(Kt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:yn,ngTemplateOutletContext:ii,ngTemplateOutletInjector:hi}=this;this._viewRef=Kt.createEmbeddedView(yn,ii,hi?{injector:hi}:void 0)}else this._viewRef=null}else this._viewRef&&$e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},Re.\u0275dir=n.\u0275\u0275defineDirective({type:Re,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),Re})();function vi(Re,Ct){return new n.\u0275RuntimeError(2100,!1)}class Zn{createSubscription(Ct,$e){return Ct.subscribe({next:$e,error:Kt=>{throw Kt}})}dispose(Ct){Ct.unsubscribe()}}class gn{createSubscription(Ct,$e){return Ct.then($e,Kt=>{throw Kt})}dispose(Ct){}}const Mt=new gn,$t=new Zn;let kn=(()=>{class Re{constructor($e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=$e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform($e){return this._obj?$e!==this._obj?(this._dispose(),this.transform($e)):this._latestValue:($e&&this._subscribe($e),this._latestValue)}_subscribe($e){this._obj=$e,this._strategy=this._selectStrategy($e),this._subscription=this._strategy.createSubscription($e,Kt=>this._updateLatestValue($e,Kt))}_selectStrategy($e){if((0,n.\u0275isPromise)($e))return Mt;if((0,n.\u0275isSubscribable)($e))return $t;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue($e,Kt){$e===this._obj&&(this._latestValue=Kt,this._ref.markForCheck())}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},Re.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:Re,pure:!1,standalone:!0}),Re})(),ai=(()=>{class Re{transform($e){if(null==$e)return null;if("string"!=typeof $e)throw vi();return $e.toLowerCase()}}return Re.\u0275fac=function($e){return new($e||Re)},Re.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:Re,pure:!0,standalone:!0}),Re})();const qi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let eo=(()=>{class Re{transform($e){if(null==$e)return null;if("string"!=typeof $e)throw vi();return $e.replace(qi,Kt=>Kt[0].toUpperCase()+Kt.slice(1).toLowerCase())}}return Re.\u0275fac=function($e){return new($e||Re)},Re.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:Re,pure:!0,standalone:!0}),Re})();const Zi=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),Wo=new n.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let na=(()=>{class Re{constructor($e,Kt,yn){this.locale=$e,this.defaultTimezone=Kt,this.defaultOptions=yn}transform($e,Kt,yn,ii){if(null==$e||""===$e||$e!=$e)return null;try{return In($e,Kt??this.defaultOptions?.dateFormat??"mediumDate",ii||this.locale,yn??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(hi){throw vi()}}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(Zi,24),n.\u0275\u0275directiveInject(Wo,24))},Re.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:Re,pure:!0,standalone:!0}),Re})();const qa=/#/g;let rr=(()=>{class Re{constructor($e){this._localization=$e}transform($e,Kt,yn){if(null==$e)return"";if("object"!=typeof Kt||null===Kt)throw vi();return Kt[function De(Re,Ct,$e,Kt){let yn=`=${Re}`;if(Ct.indexOf(yn)>-1||(yn=$e.getPluralCategory(Re,Kt),Ct.indexOf(yn)>-1))return yn;if(Ct.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${Re}"`)}($e,Object.keys(Kt),this._localization,yn)].replace(qa,$e.toString())}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(nt,16))},Re.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:Re,pure:!0,standalone:!0}),Re})(),to=(()=>{class Re{constructor($e){this._locale=$e}transform($e,Kt,yn){if(!Sa($e))return null;yn=yn||this._locale;try{return function Mo(Re,Ct,$e){return xo(Re,po(pt(Ct,P.Decimal),Ie(Ct,ce.MinusSign)),Ct,ce.Group,ce.Decimal,$e)}(zr($e),yn,Kt)}catch(ii){throw vi()}}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},Re.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:Re,pure:!0,standalone:!0}),Re})(),za=(()=>{class Re{constructor($e,Kt="USD"){this._locale=$e,this._defaultCurrencyCode=Kt}transform($e,Kt=this._defaultCurrencyCode,yn="symbol",ii,hi){if(!Sa($e))return null;hi=hi||this._locale,"boolean"==typeof yn&&(yn=yn?"symbol":"code");let Ki=Kt||this._defaultCurrencyCode;"code"!==yn&&(Ki="symbol"===yn||"symbol-narrow"===yn?function Gt(Re,Ct,$e="en"){const Kt=function Qe(Re){return(0,n.\u0275findLocaleData)(Re)[n.\u0275LocaleDataIndex.Currencies]}($e)[Re]||p[Re]||[],yn=Kt[1];return"narrow"===Ct&&"string"==typeof yn?yn:Kt[0]||Re}(Ki,"symbol"===yn?"wide":"narrow",hi):yn);try{return function no(Re,Ct,$e,Kt,yn){const hi=po(pt(Ct,P.Currency),Ie(Ct,ce.MinusSign));return hi.minFrac=function Ze(Re){let Ct;const $e=p[Re];return $e&&(Ct=$e[2]),"number"==typeof Ct?Ct:wt}(Kt),hi.maxFrac=hi.minFrac,xo(Re,hi,Ct,ce.CurrencyGroup,ce.CurrencyDecimal,yn).replace(ki,$e).replace(ki,"").trim()}(zr($e),hi,Ki,Kt,ii)}catch(ea){throw vi()}}}return Re.\u0275fac=function($e){return new($e||Re)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},Re.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:Re,pure:!0,standalone:!0}),Re})();function Sa(Re){return!(null==Re||""===Re||Re!=Re)}function zr(Re){if("string"==typeof Re&&!isNaN(Number(Re)-parseFloat(Re)))return Number(Re);if("number"!=typeof Re)throw new Error(`${Re} is not a number`);return Re}let Pr=(()=>{class Re{}return Re.\u0275fac=function($e){return new($e||Re)},Re.\u0275mod=n.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=n.\u0275\u0275defineInjector({}),Re})();const Cs="browser",ia="server";function Yr(Re){return Re===Cs}function Ya(Re){return Re===ia}let es=(()=>{class Re{}return Re.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:Re,providedIn:"root",factory:()=>new ts((0,n.\u0275\u0275inject)(u),window)}),Re})();class ts{constructor(Ct,$e){this.document=Ct,this.window=$e,this.offset=()=>[0,0]}setOffset(Ct){this.offset=Array.isArray(Ct)?()=>Ct:Ct}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ct){this.supportsScrolling()&&this.window.scrollTo(Ct[0],Ct[1])}scrollToAnchor(Ct){if(!this.supportsScrolling())return;const $e=function pr(Re,Ct){const $e=Re.getElementById(Ct)||Re.getElementsByName(Ct)[0];if($e)return $e;if("function"==typeof Re.createTreeWalker&&Re.body&&(Re.body.createShadowRoot||Re.body.attachShadow)){const Kt=Re.createTreeWalker(Re.body,NodeFilter.SHOW_ELEMENT);let yn=Kt.currentNode;for(;yn;){const ii=yn.shadowRoot;if(ii){const hi=ii.getElementById(Ct)||ii.querySelector(`[name="${Ct}"]`);if(hi)return hi}yn=Kt.nextNode()}}return null}(this.document,Ct);$e&&(this.scrollToElement($e),$e.focus())}setHistoryScrollRestoration(Ct){if(this.supportScrollRestoration()){const $e=this.window.history;$e&&$e.scrollRestoration&&($e.scrollRestoration=Ct)}}scrollToElement(Ct){const $e=Ct.getBoundingClientRect(),Kt=$e.left+this.window.pageXOffset,yn=$e.top+this.window.pageYOffset,ii=this.offset();this.window.scrollTo(Kt-ii[0],yn-ii[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ct=er(this.window.history)||er(Object.getPrototypeOf(this.window.history));return!(!Ct||!Ct.writable&&!Ct.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function er(Re){return Object.getOwnPropertyDescriptor(Re,"scrollRestoration")}class Ca{}},80529:(Ee,Q,t)=>{"use strict";t.d(Q,{JF:()=>rn,LE:()=>C,TP:()=>Ce,WM:()=>x,eN:()=>we});var n=t(36895),e=t(94650),i=t(39646),d=t(69751),a=t(24351),u=t(39300),h=t(54004);class l{}class m{}class x{constructor(q){this.normalizedNames=new Map,this.lazyUpdate=null,q?this.lazyInit="string"==typeof q?()=>{this.headers=new Map,q.split("\n").forEach(J=>{const Oe=J.indexOf(":");if(Oe>0){const je=J.slice(0,Oe),Et=je.toLowerCase(),dt=J.slice(Oe+1).trim();this.maybeSetNormalizedName(je,Et),this.headers.has(Et)?this.headers.get(Et).push(dt):this.headers.set(Et,[dt])}})}:()=>{this.headers=new Map,Object.entries(q).forEach(([J,Oe])=>{let je;if(je="string"==typeof Oe?[Oe]:"number"==typeof Oe?[Oe.toString()]:Oe.map(Et=>Et.toString()),je.length>0){const Et=J.toLowerCase();this.headers.set(Et,je),this.maybeSetNormalizedName(J,Et)}})}:this.headers=new Map}has(q){return this.init(),this.headers.has(q.toLowerCase())}get(q){this.init();const J=this.headers.get(q.toLowerCase());return J&&J.length>0?J[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(q){return this.init(),this.headers.get(q.toLowerCase())||null}append(q,J){return this.clone({name:q,value:J,op:"a"})}set(q,J){return this.clone({name:q,value:J,op:"s"})}delete(q,J){return this.clone({name:q,value:J,op:"d"})}maybeSetNormalizedName(q,J){this.normalizedNames.has(J)||this.normalizedNames.set(J,q)}init(){this.lazyInit&&(this.lazyInit instanceof x?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(q=>this.applyUpdate(q)),this.lazyUpdate=null))}copyFrom(q){q.init(),Array.from(q.headers.keys()).forEach(J=>{this.headers.set(J,q.headers.get(J)),this.normalizedNames.set(J,q.normalizedNames.get(J))})}clone(q){const J=new x;return J.lazyInit=this.lazyInit&&this.lazyInit instanceof x?this.lazyInit:this,J.lazyUpdate=(this.lazyUpdate||[]).concat([q]),J}applyUpdate(q){const J=q.name.toLowerCase();switch(q.op){case"a":case"s":let Oe=q.value;if("string"==typeof Oe&&(Oe=[Oe]),0===Oe.length)return;this.maybeSetNormalizedName(q.name,J);const je=("a"===q.op?this.headers.get(J):void 0)||[];je.push(...Oe),this.headers.set(J,je);break;case"d":const Et=q.value;if(Et){let dt=this.headers.get(J);if(!dt)return;dt=dt.filter(rt=>-1===Et.indexOf(rt)),0===dt.length?(this.headers.delete(J),this.normalizedNames.delete(J)):this.headers.set(J,dt)}else this.headers.delete(J),this.normalizedNames.delete(J)}}forEach(q){this.init(),Array.from(this.normalizedNames.keys()).forEach(J=>q(this.normalizedNames.get(J),this.headers.get(J)))}}class L{encodeKey(q){return y(q)}encodeValue(q){return y(q)}decodeKey(q){return decodeURIComponent(q)}decodeValue(q){return decodeURIComponent(q)}}const B=/%(\d[a-f0-9])/gi,_={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function y(ge){return encodeURIComponent(ge).replace(B,(q,J)=>_[J]??q)}function $(ge){return`${ge}`}class C{constructor(q={}){if(this.updates=null,this.cloneFrom=null,this.encoder=q.encoder||new L,q.fromString){if(q.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function w(ge,q){const J=new Map;return ge.length>0&&ge.replace(/^\?/,"").split("&").forEach(je=>{const Et=je.indexOf("="),[dt,rt]=-1==Et?[q.decodeKey(je),""]:[q.decodeKey(je.slice(0,Et)),q.decodeValue(je.slice(Et+1))],qe=J.get(dt)||[];qe.push(rt),J.set(dt,qe)}),J}(q.fromString,this.encoder)}else q.fromObject?(this.map=new Map,Object.keys(q.fromObject).forEach(J=>{const Oe=q.fromObject[J],je=Array.isArray(Oe)?Oe.map($):[$(Oe)];this.map.set(J,je)})):this.map=null}has(q){return this.init(),this.map.has(q)}get(q){this.init();const J=this.map.get(q);return J?J[0]:null}getAll(q){return this.init(),this.map.get(q)||null}keys(){return this.init(),Array.from(this.map.keys())}append(q,J){return this.clone({param:q,value:J,op:"a"})}appendAll(q){const J=[];return Object.keys(q).forEach(Oe=>{const je=q[Oe];Array.isArray(je)?je.forEach(Et=>{J.push({param:Oe,value:Et,op:"a"})}):J.push({param:Oe,value:je,op:"a"})}),this.clone(J)}set(q,J){return this.clone({param:q,value:J,op:"s"})}delete(q,J){return this.clone({param:q,value:J,op:"d"})}toString(){return this.init(),this.keys().map(q=>{const J=this.encoder.encodeKey(q);return this.map.get(q).map(Oe=>J+"="+this.encoder.encodeValue(Oe)).join("&")}).filter(q=>""!==q).join("&")}clone(q){const J=new C({encoder:this.encoder});return J.cloneFrom=this.cloneFrom||this,J.updates=(this.updates||[]).concat(q),J}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(q=>this.map.set(q,this.cloneFrom.map.get(q))),this.updates.forEach(q=>{switch(q.op){case"a":case"s":const J=("a"===q.op?this.map.get(q.param):void 0)||[];J.push($(q.value)),this.map.set(q.param,J);break;case"d":if(void 0===q.value){this.map.delete(q.param);break}{let Oe=this.map.get(q.param)||[];const je=Oe.indexOf($(q.value));-1!==je&&Oe.splice(je,1),Oe.length>0?this.map.set(q.param,Oe):this.map.delete(q.param)}}}),this.cloneFrom=this.updates=null)}}class j{constructor(){this.map=new Map}set(q,J){return this.map.set(q,J),this}get(q){return this.map.has(q)||this.map.set(q,q.defaultValue()),this.map.get(q)}delete(q){return this.map.delete(q),this}has(q){return this.map.has(q)}keys(){return this.map.keys()}}function F(ge){return typeof ArrayBuffer<"u"&&ge instanceof ArrayBuffer}function z(ge){return typeof Blob<"u"&&ge instanceof Blob}function X(ge){return typeof FormData<"u"&&ge instanceof FormData}class P{constructor(q,J,Oe,je){let Et;if(this.url=J,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=q.toUpperCase(),function I(ge){switch(ge){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||je?(this.body=void 0!==Oe?Oe:null,Et=je):Et=Oe,Et&&(this.reportProgress=!!Et.reportProgress,this.withCredentials=!!Et.withCredentials,Et.responseType&&(this.responseType=Et.responseType),Et.headers&&(this.headers=Et.headers),Et.context&&(this.context=Et.context),Et.params&&(this.params=Et.params)),this.headers||(this.headers=new x),this.context||(this.context=new j),this.params){const dt=this.params.toString();if(0===dt.length)this.urlWithParams=J;else{const rt=J.indexOf("?");this.urlWithParams=J+(-1===rt?"?":rt<J.length-1?"&":"")+dt}}else this.params=new C,this.urlWithParams=J}serializeBody(){return null===this.body?null:F(this.body)||z(this.body)||X(this.body)||function p(ge){return typeof URLSearchParams<"u"&&ge instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof C?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||X(this.body)?null:z(this.body)?this.body.type||null:F(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof C?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(q={}){const J=q.method||this.method,Oe=q.url||this.url,je=q.responseType||this.responseType,Et=void 0!==q.body?q.body:this.body,dt=void 0!==q.withCredentials?q.withCredentials:this.withCredentials,rt=void 0!==q.reportProgress?q.reportProgress:this.reportProgress;let qe=q.headers||this.headers,ze=q.params||this.params;const zt=q.context??this.context;return void 0!==q.setHeaders&&(qe=Object.keys(q.setHeaders).reduce((vt,Rt)=>vt.set(Rt,q.setHeaders[Rt]),qe)),q.setParams&&(ze=Object.keys(q.setParams).reduce((vt,Rt)=>vt.set(Rt,q.setParams[Rt]),ze)),new P(J,Oe,Et,{params:ze,headers:qe,context:zt,reportProgress:rt,responseType:je,withCredentials:dt})}}var E=(()=>((E=E||{})[E.Sent=0]="Sent",E[E.UploadProgress=1]="UploadProgress",E[E.ResponseHeader=2]="ResponseHeader",E[E.DownloadProgress=3]="DownloadProgress",E[E.Response=4]="Response",E[E.User=5]="User",E))();class R{constructor(q,J=200,Oe="OK"){this.headers=q.headers||new x,this.status=void 0!==q.status?q.status:J,this.statusText=q.statusText||Oe,this.url=q.url||null,this.ok=this.status>=200&&this.status<300}}class ne extends R{constructor(q={}){super(q),this.type=E.ResponseHeader}clone(q={}){return new ne({headers:q.headers||this.headers,status:void 0!==q.status?q.status:this.status,statusText:q.statusText||this.statusText,url:q.url||this.url||void 0})}}class G extends R{constructor(q={}){super(q),this.type=E.Response,this.body=void 0!==q.body?q.body:null}clone(q={}){return new G({body:void 0!==q.body?q.body:this.body,headers:q.headers||this.headers,status:void 0!==q.status?q.status:this.status,statusText:q.statusText||this.statusText,url:q.url||this.url||void 0})}}class ce extends R{constructor(q){super(q,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${q.url||"(unknown url)"}`:`Http failure response for ${q.url||"(unknown url)"}: ${q.status} ${q.statusText}`,this.error=q.error||null}}function xe(ge,q){return{body:q,headers:ge.headers,context:ge.context,observe:ge.observe,params:ge.params,reportProgress:ge.reportProgress,responseType:ge.responseType,withCredentials:ge.withCredentials}}let we=(()=>{class ge{constructor(J){this.handler=J}request(J,Oe,je={}){let Et;if(J instanceof P)Et=J;else{let qe,ze;qe=je.headers instanceof x?je.headers:new x(je.headers),je.params&&(ze=je.params instanceof C?je.params:new C({fromObject:je.params})),Et=new P(J,Oe,void 0!==je.body?je.body:null,{headers:qe,context:je.context,params:ze,reportProgress:je.reportProgress,responseType:je.responseType||"json",withCredentials:je.withCredentials})}const dt=(0,i.of)(Et).pipe((0,a.b)(qe=>this.handler.handle(qe)));if(J instanceof P||"events"===je.observe)return dt;const rt=dt.pipe((0,u.h)(qe=>qe instanceof G));switch(je.observe||"body"){case"body":switch(Et.responseType){case"arraybuffer":return rt.pipe((0,h.U)(qe=>{if(null!==qe.body&&!(qe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qe.body}));case"blob":return rt.pipe((0,h.U)(qe=>{if(null!==qe.body&&!(qe.body instanceof Blob))throw new Error("Response is not a Blob.");return qe.body}));case"text":return rt.pipe((0,h.U)(qe=>{if(null!==qe.body&&"string"!=typeof qe.body)throw new Error("Response is not a string.");return qe.body}));default:return rt.pipe((0,h.U)(qe=>qe.body))}case"response":return rt;default:throw new Error(`Unreachable: unhandled observe type ${je.observe}}`)}}delete(J,Oe={}){return this.request("DELETE",J,Oe)}get(J,Oe={}){return this.request("GET",J,Oe)}head(J,Oe={}){return this.request("HEAD",J,Oe)}jsonp(J,Oe){return this.request("JSONP",J,{params:(new C).append(Oe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(J,Oe={}){return this.request("OPTIONS",J,Oe)}patch(J,Oe,je={}){return this.request("PATCH",J,xe(je,Oe))}post(J,Oe,je={}){return this.request("POST",J,xe(je,Oe))}put(J,Oe,je={}){return this.request("PUT",J,xe(je,Oe))}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(l))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac}),ge})();function Ge(ge,q){return q(ge)}function ct(ge,q){return(J,Oe)=>q.intercept(J,{handle:je=>ge(je,Oe)})}const Ce=new e.InjectionToken("HTTP_INTERCEPTORS"),U=new e.InjectionToken("HTTP_INTERCEPTOR_FNS");function H(){let ge=null;return(q,J)=>(null===ge&&(ge=((0,e.inject)(Ce,{optional:!0})??[]).reduceRight(ct,Ge)),ge(q,J))}let Z=(()=>{class ge extends l{constructor(J,Oe){super(),this.backend=J,this.injector=Oe,this.chain=null}handle(J){if(null===this.chain){const Oe=Array.from(new Set(this.injector.get(U)));this.chain=Oe.reduceRight((je,Et)=>function pe(ge,q,J){return(Oe,je)=>J.runInContext(()=>q(Oe,Et=>ge(Et,je)))}(je,Et,this.injector),Ge)}return this.chain(J,Oe=>this.backend.handle(Oe))}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(m),e.\u0275\u0275inject(e.EnvironmentInjector))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac}),ge})();const Dt=/^\)\]\}',?\n/;let Tt=(()=>{class ge{constructor(J){this.xhrFactory=J}handle(J){if("JSONP"===J.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new d.y(Oe=>{const je=this.xhrFactory.build();if(je.open(J.method,J.urlWithParams),J.withCredentials&&(je.withCredentials=!0),J.headers.forEach((gt,sn)=>je.setRequestHeader(gt,sn.join(","))),J.headers.has("Accept")||je.setRequestHeader("Accept","application/json, text/plain, */*"),!J.headers.has("Content-Type")){const gt=J.detectContentTypeHeader();null!==gt&&je.setRequestHeader("Content-Type",gt)}if(J.responseType){const gt=J.responseType.toLowerCase();je.responseType="json"!==gt?gt:"text"}const Et=J.serializeBody();let dt=null;const rt=()=>{if(null!==dt)return dt;const gt=je.statusText||"OK",sn=new x(je.getAllResponseHeaders()),wn=function Yt(ge){return"responseURL"in ge&&ge.responseURL?ge.responseURL:/^X-Request-URL:/m.test(ge.getAllResponseHeaders())?ge.getResponseHeader("X-Request-URL"):null}(je)||J.url;return dt=new ne({headers:sn,status:je.status,statusText:gt,url:wn}),dt},qe=()=>{let{headers:gt,status:sn,statusText:wn,url:Qn}=rt(),pi=null;204!==sn&&(pi=typeof je.response>"u"?je.responseText:je.response),0===sn&&(sn=pi?200:0);let Ei=sn>=200&&sn<300;if("json"===J.responseType&&"string"==typeof pi){const ki=pi;pi=pi.replace(Dt,"");try{pi=""!==pi?JSON.parse(pi):null}catch(Co){pi=ki,Ei&&(Ei=!1,pi={error:Co,text:pi})}}Ei?(Oe.next(new G({body:pi,headers:gt,status:sn,statusText:wn,url:Qn||void 0})),Oe.complete()):Oe.error(new ce({error:pi,headers:gt,status:sn,statusText:wn,url:Qn||void 0}))},ze=gt=>{const{url:sn}=rt(),wn=new ce({error:gt,status:je.status||0,statusText:je.statusText||"Unknown Error",url:sn||void 0});Oe.error(wn)};let zt=!1;const vt=gt=>{zt||(Oe.next(rt()),zt=!0);let sn={type:E.DownloadProgress,loaded:gt.loaded};gt.lengthComputable&&(sn.total=gt.total),"text"===J.responseType&&je.responseText&&(sn.partialText=je.responseText),Oe.next(sn)},Rt=gt=>{let sn={type:E.UploadProgress,loaded:gt.loaded};gt.lengthComputable&&(sn.total=gt.total),Oe.next(sn)};return je.addEventListener("load",qe),je.addEventListener("error",ze),je.addEventListener("timeout",ze),je.addEventListener("abort",ze),J.reportProgress&&(je.addEventListener("progress",vt),null!==Et&&je.upload&&je.upload.addEventListener("progress",Rt)),je.send(Et),Oe.next({type:E.Sent}),()=>{je.removeEventListener("error",ze),je.removeEventListener("abort",ze),je.removeEventListener("load",qe),je.removeEventListener("timeout",ze),J.reportProgress&&(je.removeEventListener("progress",vt),null!==Et&&je.upload&&je.upload.removeEventListener("progress",Rt)),je.readyState!==je.DONE&&je.abort()}})}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(n.JF))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac}),ge})();const ot=new e.InjectionToken("XSRF_ENABLED"),wt=new e.InjectionToken("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Ut=new e.InjectionToken("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class vn{}let xn=(()=>{class ge{constructor(J,Oe,je){this.doc=J,this.platform=Oe,this.cookieName=je,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const J=this.doc.cookie||"";return J!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.Mx)(J,this.cookieName),this.lastCookieString=J),this.lastToken}}return ge.\u0275fac=function(J){return new(J||ge)(e.\u0275\u0275inject(n.K0),e.\u0275\u0275inject(e.PLATFORM_ID),e.\u0275\u0275inject(wt))},ge.\u0275prov=e.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac}),ge})();function bn(ge,q){const J=ge.url.toLowerCase();if(!(0,e.inject)(ot)||"GET"===ge.method||"HEAD"===ge.method||J.startsWith("http://")||J.startsWith("https://"))return q(ge);const Oe=(0,e.inject)(vn).getToken(),je=(0,e.inject)(Ut);return null!=Oe&&!ge.headers.has(je)&&(ge=ge.clone({headers:ge.headers.set(je,Oe)})),q(ge)}var pn=(()=>((pn=pn||{})[pn.Interceptors=0]="Interceptors",pn[pn.LegacyInterceptors=1]="LegacyInterceptors",pn[pn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",pn[pn.NoXsrfProtection=3]="NoXsrfProtection",pn[pn.JsonpSupport=4]="JsonpSupport",pn[pn.RequestsMadeViaParent=5]="RequestsMadeViaParent",pn))();function In(ge,q){return{\u0275kind:ge,\u0275providers:q}}function Dn(...ge){const q=[we,Tt,Z,{provide:l,useExisting:Z},{provide:m,useExisting:Tt},{provide:U,useValue:bn,multi:!0},{provide:ot,useValue:!0},{provide:vn,useClass:xn}];for(const J of ge)q.push(...J.\u0275providers);return(0,e.makeEnvironmentProviders)(q)}const mn=new e.InjectionToken("LEGACY_INTERCEPTOR_FN");let rn=(()=>{class ge{}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=e.\u0275\u0275defineNgModule({type:ge}),ge.\u0275inj=e.\u0275\u0275defineInjector({providers:[Dn(In(pn.LegacyInterceptors,[{provide:mn,useFactory:H},{provide:U,useExisting:mn,multi:!0}]))]}),ge})()},94650:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Is,ANIMATION_MODULE_TYPE:()=>My,APP_BOOTSTRAP_LISTENER:()=>FC,APP_ID:()=>xC,APP_INITIALIZER:()=>yC,ApplicationInitStatus:()=>g1,ApplicationModule:()=>px,ApplicationRef:()=>C1,Attribute:()=>_c,COMPILER_OPTIONS:()=>EC,CUSTOM_ELEMENTS_SCHEMA:()=>ll,ChangeDetectionStrategy:()=>rt,ChangeDetectorRef:()=>XC,Compiler:()=>Ty,CompilerFactory:()=>Iy,Component:()=>my,ComponentFactory:()=>Ul,ComponentFactoryResolver:()=>wp,ComponentRef:()=>Vu,ContentChild:()=>Kc,ContentChildren:()=>xl,DEFAULT_CURRENCY_CODE:()=>Ey,DebugElement:()=>E0,DebugEventListener:()=>Xy,DebugNode:()=>Qb,DefaultIterableDiffer:()=>ny,Directive:()=>CC,ENVIRONMENT_INITIALIZER:()=>he,ElementRef:()=>Ap,EmbeddedViewRef:()=>Qy,EnvironmentInjector:()=>Xr,ErrorHandler:()=>kp,EventEmitter:()=>Hd,Host:()=>fd,HostBinding:()=>gy,HostListener:()=>vy,INJECTOR:()=>Fe,Inject:()=>Vr,InjectFlags:()=>ot,Injectable:()=>Ef,InjectionToken:()=>Ma,Injector:()=>Nd,Input:()=>fy,IterableDiffers:()=>eC,KeyValueDiffers:()=>tC,LOCALE_ID:()=>v1,MissingTranslationStrategy:()=>lp,ModuleWithComponentFactories:()=>PC,NO_ERRORS_SCHEMA:()=>dl,NgModule:()=>by,NgModuleFactory:()=>Iv,NgModuleRef:()=>Hm,NgProbeToken:()=>jy,NgZone:()=>Xd,Optional:()=>Js,Output:()=>_y,PACKAGE_ROOT_URL:()=>xy,PLATFORM_ID:()=>yy,PLATFORM_INITIALIZER:()=>DC,Pipe:()=>hy,PlatformRef:()=>Gb,Query:()=>Wa,QueryList:()=>D_,ReflectiveInjector:()=>cd,ReflectiveKey:()=>sd,Renderer2:()=>A_,RendererFactory2:()=>_m,RendererStyleFlags2:()=>cs,ResolvedReflectiveFactory:()=>Tf,Sanitizer:()=>pf,SecurityContext:()=>Ar,Self:()=>Gc,SimpleChange:()=>ur,SkipSelf:()=>vs,TRANSLATIONS:()=>Oy,TRANSLATIONS_FORMAT:()=>Sy,TemplateRef:()=>rf,Testability:()=>Ny,TestabilityRegistry:()=>LC,Type:()=>ws,VERSION:()=>hf,Version:()=>mf,ViewChild:()=>Ns,ViewChildren:()=>Zd,ViewContainerRef:()=>E_,ViewEncapsulation:()=>qe,ViewRef:()=>JC,asNativeElements:()=>Zy,assertPlatform:()=>$C,createComponent:()=>Mx,createEnvironmentInjector:()=>_0,createNgModule:()=>wv,createNgModuleRef:()=>yb,createPlatform:()=>jC,createPlatformFactory:()=>VC,defineInjectable:()=>pt,destroyPlatform:()=>$y,enableProdMode:()=>Yy,forwardRef:()=>O,getDebugNode:()=>S_,getModuleFactory:()=>Hy,getNgModuleById:()=>Ky,getPlatform:()=>b1,importProvidersFrom:()=>_n,inject:()=>ke,isDevMode:()=>zy,isStandalone:()=>nt,makeEnvironmentProviders:()=>un,platformCore:()=>ux,reflectComponentType:()=>Dx,resolveForwardRef:()=>L,setTestabilityGetter:()=>RC,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Hb,\u0275APP_ID_RANDOM_PROVIDER:()=>Cy,\u0275ComponentFactory:()=>Ul,\u0275Console:()=>Dy,\u0275DEFAULT_LOCALE_ID:()=>Yd,\u0275INJECTOR_SCOPE:()=>oo,\u0275LContext:()=>em,\u0275LifecycleHooksFeature:()=>Vf,\u0275LocaleDataIndex:()=>No,\u0275NG_COMP_DEF:()=>vt,\u0275NG_DIR_DEF:()=>Rt,\u0275NG_ELEMENT_ID:()=>Qn,\u0275NG_INJ_DEF:()=>Dt,\u0275NG_MOD_DEF:()=>sn,\u0275NG_PIPE_DEF:()=>gt,\u0275NG_PROV_DEF:()=>lt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>vm,\u0275NO_CHANGE:()=>Yo,\u0275NgModuleFactory:()=>sp,\u0275NoopNgZone:()=>wC,\u0275ReflectionCapabilities:()=>gs,\u0275Render3ComponentFactory:()=>yu,\u0275Render3ComponentRef:()=>Ph,\u0275Render3NgModuleRef:()=>f0,\u0275RuntimeError:()=>$,\u0275TESTABILITY:()=>AC,\u0275TESTABILITY_GETTER:()=>kC,\u0275ViewRef:()=>vl,\u0275XSS_SECURITY_URL:()=>y,\u0275_sanitizeHtml:()=>Tp,\u0275_sanitizeUrl:()=>Nl,\u0275allowSanitizationBypassAndThrow:()=>ds,\u0275bypassSanitizationTrustHtml:()=>Jm,\u0275bypassSanitizationTrustResourceUrl:()=>Bl,\u0275bypassSanitizationTrustScript:()=>qm,\u0275bypassSanitizationTrustStyle:()=>Td,\u0275bypassSanitizationTrustUrl:()=>Pp,\u0275clearResolutionOfComponentResourcesQueue:()=>Ql,\u0275coerceToBoolean:()=>mx,\u0275compileComponent:()=>hd,\u0275compileDirective:()=>P0,\u0275compileNgModule:()=>Ou,\u0275compileNgModuleDefs:()=>Cl,\u0275compileNgModuleFactory:()=>BC,\u0275compilePipe:()=>vC,\u0275convertToBitFlags:()=>ge,\u0275createInjector:()=>ch,\u0275defaultIterableDiffers:()=>lx,\u0275defaultKeyValueDiffers:()=>dx,\u0275detectChanges:()=>Zf,\u0275devModeEqual:()=>Xf,\u0275findLocaleData:()=>o0,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>qr,\u0275formatRuntimeError:()=>C,\u0275getDebugNode:()=>S_,\u0275getDebugNodeR2:()=>tx,\u0275getDirectives:()=>Fv,\u0275getHostElement:()=>g0,\u0275getInjectableDef:()=>Wt,\u0275getLContext:()=>xs,\u0275getLocaleCurrencyCode:()=>L1,\u0275getLocalePluralCase:()=>nv,\u0275getSanitizationBypassType:()=>Ru,\u0275getUnknownElementStrictMode:()=>pa,\u0275getUnknownPropertyStrictMode:()=>Ye,\u0275global:()=>xn,\u0275injectChangeDetectorRef:()=>ZC,\u0275internalCreateApplication:()=>Vy,\u0275isBoundToModule:()=>NC,\u0275isEnvironmentProviders:()=>B,\u0275isInjectable:()=>Xe,\u0275isNgModule:()=>wo,\u0275isObservable:()=>i_,\u0275isPromise:()=>jh,\u0275isSubscribable:()=>n_,\u0275makeDecorator:()=>Ji,\u0275noSideEffects:()=>dt,\u0275patchComponentDefWithScope:()=>ho,\u0275publishDefaultGlobalUtils:()=>Ay,\u0275publishGlobalUtil:()=>Qd,\u0275registerLocaleData:()=>k1,\u0275resetCompiledComponents:()=>Qp,\u0275resetJitOptions:()=>vo,\u0275resolveComponentResources:()=>gd,\u0275setAllowDuplicateNgModuleIdsForTest:()=>El,\u0275setClassMetadata:()=>jv,\u0275setCurrentInjector:()=>En,\u0275setDocument:()=>od,\u0275setLocaleId:()=>a0,\u0275setUnknownElementStrictMode:()=>Ol,\u0275setUnknownPropertyStrictMode:()=>be,\u0275store:()=>qf,\u0275stringify:()=>l,\u0275transitiveScopesFor:()=>Do,\u0275unregisterLocaleData:()=>R1,\u0275unwrapSafeValue:()=>Rs,\u0275\u0275CopyDefinitionFeature:()=>Wf,\u0275\u0275FactoryTarget:()=>Dr,\u0275\u0275HostDirectivesFeature:()=>zf,\u0275\u0275InheritDefinitionFeature:()=>Eh,\u0275\u0275NgOnChangesFeature:()=>Or,\u0275\u0275ProvidersFeature:()=>Tv,\u0275\u0275StandaloneFeature:()=>Av,\u0275\u0275advance:()=>rh,\u0275\u0275attribute:()=>Np,\u0275\u0275attributeInterpolate1:()=>Th,\u0275\u0275attributeInterpolate2:()=>Ih,\u0275\u0275attributeInterpolate3:()=>Lm,\u0275\u0275attributeInterpolate4:()=>wh,\u0275\u0275attributeInterpolate5:()=>Ah,\u0275\u0275attributeInterpolate6:()=>kh,\u0275\u0275attributeInterpolate7:()=>jp,\u0275\u0275attributeInterpolate8:()=>Up,\u0275\u0275attributeInterpolateV:()=>Lh,\u0275\u0275classMap:()=>V0,\u0275\u0275classMapInterpolate1:()=>G0,\u0275\u0275classMapInterpolate2:()=>Q0,\u0275\u0275classMapInterpolate3:()=>p_,\u0275\u0275classMapInterpolate4:()=>op,\u0275\u0275classMapInterpolate5:()=>Qg,\u0275\u0275classMapInterpolate6:()=>X0,\u0275\u0275classMapInterpolate7:()=>Z0,\u0275\u0275classMapInterpolate8:()=>J0,\u0275\u0275classMapInterpolateV:()=>ap,\u0275\u0275classProp:()=>s_,\u0275\u0275contentQuery:()=>M,\u0275\u0275defineComponent:()=>Ei,\u0275\u0275defineDirective:()=>po,\u0275\u0275defineInjectable:()=>Ie,\u0275\u0275defineInjector:()=>Ht,\u0275\u0275defineNgModule:()=>no,\u0275\u0275definePipe:()=>Io,\u0275\u0275directiveInject:()=>gu,\u0275\u0275disableBindings:()=>qt,\u0275\u0275element:()=>Bh,\u0275\u0275elementContainer:()=>Nh,\u0275\u0275elementContainerEnd:()=>Nm,\u0275\u0275elementContainerStart:()=>Bm,\u0275\u0275elementEnd:()=>Fm,\u0275\u0275elementStart:()=>Rm,\u0275\u0275enableBindings:()=>$i,\u0275\u0275getCurrentView:()=>t_,\u0275\u0275getInheritedFactory:()=>Xt,\u0275\u0275hostProperty:()=>t0,\u0275\u0275i18n:()=>Mv,\u0275\u0275i18nApply:()=>Pv,\u0275\u0275i18nAttributes:()=>Dv,\u0275\u0275i18nEnd:()=>u0,\u0275\u0275i18nExp:()=>p0,\u0275\u0275i18nPostprocess:()=>Ev,\u0275\u0275i18nStart:()=>d0,\u0275\u0275inject:()=>rn,\u0275\u0275injectAttribute:()=>zn,\u0275\u0275invalidFactory:()=>Em,\u0275\u0275invalidFactoryDep:()=>Sn,\u0275\u0275listener:()=>jm,\u0275\u0275loadQuery:()=>s,\u0275\u0275namespaceHTML:()=>Ko,\u0275\u0275namespaceMathML:()=>as,\u0275\u0275namespaceSVG:()=>jo,\u0275\u0275nextContext:()=>ln,\u0275\u0275ngDeclareClassMetadata:()=>fx,\u0275\u0275ngDeclareComponent:()=>_x,\u0275\u0275ngDeclareDirective:()=>hx,\u0275\u0275ngDeclareFactory:()=>gx,\u0275\u0275ngDeclareInjectable:()=>bx,\u0275\u0275ngDeclareInjector:()=>Cx,\u0275\u0275ngDeclareNgModule:()=>yx,\u0275\u0275ngDeclarePipe:()=>xx,\u0275\u0275pipe:()=>e1,\u0275\u0275pipeBind1:()=>t1,\u0275\u0275pipeBind2:()=>n1,\u0275\u0275pipeBind3:()=>o1,\u0275\u0275pipeBind4:()=>a1,\u0275\u0275pipeBindV:()=>r1,\u0275\u0275projection:()=>Jn,\u0275\u0275projectionDef:()=>$n,\u0275\u0275property:()=>Rh,\u0275\u0275propertyInterpolate:()=>xi,\u0275\u0275propertyInterpolate1:()=>Mi,\u0275\u0275propertyInterpolate2:()=>Oi,\u0275\u0275propertyInterpolate3:()=>Hi,\u0275\u0275propertyInterpolate4:()=>mo,\u0275\u0275propertyInterpolate5:()=>ko,\u0275\u0275propertyInterpolate6:()=>Ho,\u0275\u0275propertyInterpolate7:()=>Lo,\u0275\u0275propertyInterpolate8:()=>va,\u0275\u0275propertyInterpolateV:()=>Oa,\u0275\u0275pureFunction0:()=>Uv,\u0275\u0275pureFunction1:()=>Vv,\u0275\u0275pureFunction2:()=>$v,\u0275\u0275pureFunction3:()=>Wv,\u0275\u0275pureFunction4:()=>M_,\u0275\u0275pureFunction5:()=>zv,\u0275\u0275pureFunction6:()=>Yv,\u0275\u0275pureFunction7:()=>Hv,\u0275\u0275pureFunction8:()=>Kv,\u0275\u0275pureFunctionV:()=>Gv,\u0275\u0275queryRefresh:()=>m1,\u0275\u0275reference:()=>e_,\u0275\u0275registerNgModuleType:()=>Zc,\u0275\u0275resetView:()=>mt,\u0275\u0275resolveBody:()=>gf,\u0275\u0275resolveDocument:()=>_f,\u0275\u0275resolveWindow:()=>ff,\u0275\u0275restoreView:()=>_e,\u0275\u0275sanitizeHtml:()=>jl,\u0275\u0275sanitizeResourceUrl:()=>ad,\u0275\u0275sanitizeScript:()=>D,\u0275\u0275sanitizeStyle:()=>mu,\u0275\u0275sanitizeUrl:()=>Rd,\u0275\u0275sanitizeUrlOrResourceUrl:()=>N,\u0275\u0275setComponentScope:()=>ki,\u0275\u0275setNgModuleScope:()=>Qo,\u0275\u0275styleMap:()=>pd,\u0275\u0275styleMapInterpolate1:()=>Xg,\u0275\u0275styleMapInterpolate2:()=>q0,\u0275\u0275styleMapInterpolate3:()=>ev,\u0275\u0275styleMapInterpolate4:()=>tv,\u0275\u0275styleMapInterpolate5:()=>Ym,\u0275\u0275styleMapInterpolate6:()=>Zg,\u0275\u0275styleMapInterpolate7:()=>m_,\u0275\u0275styleMapInterpolate8:()=>ca,\u0275\u0275styleMapInterpolateV:()=>zh,\u0275\u0275styleProp:()=>Vp,\u0275\u0275stylePropInterpolate1:()=>Qi,\u0275\u0275stylePropInterpolate2:()=>rp,\u0275\u0275stylePropInterpolate3:()=>zd,\u0275\u0275stylePropInterpolate4:()=>Jg,\u0275\u0275stylePropInterpolate5:()=>qg,\u0275\u0275stylePropInterpolate6:()=>e0,\u0275\u0275stylePropInterpolate7:()=>h_,\u0275\u0275stylePropInterpolate8:()=>Du,\u0275\u0275stylePropInterpolateV:()=>Yl,\u0275\u0275syntheticHostListener:()=>A,\u0275\u0275syntheticHostProperty:()=>f_,\u0275\u0275template:()=>Jf,\u0275\u0275templateRefExtractor:()=>Zt,\u0275\u0275text:()=>K0,\u0275\u0275textInterpolate:()=>$p,\u0275\u0275textInterpolate1:()=>d_,\u0275\u0275textInterpolate2:()=>$h,\u0275\u0275textInterpolate3:()=>zg,\u0275\u0275textInterpolate4:()=>u_,\u0275\u0275textInterpolate5:()=>Yg,\u0275\u0275textInterpolate6:()=>Wh,\u0275\u0275textInterpolate7:()=>Hg,\u0275\u0275textInterpolate8:()=>Kg,\u0275\u0275textInterpolateV:()=>Gg,\u0275\u0275trustConstantHtml:()=>b,\u0275\u0275trustConstantResourceUrl:()=>v,\u0275\u0275validateIframeAttribute:()=>du,\u0275\u0275viewQuery:()=>Ub});var n=t(77579),e=t(50727),i=t(69751),d=t(56451),a=t(13099);function u(r){for(let c in r)if(r[c]===u)return c;throw Error("Could not find renamed property on target object.")}function h(r,c){for(const f in c)c.hasOwnProperty(f)&&!r.hasOwnProperty(f)&&(r[f]=c[f])}function l(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(l).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const c=r.toString();if(null==c)return""+c;const f=c.indexOf("\n");return-1===f?c:c.substring(0,f)}function m(r,c){return null==r||""===r?null===c?"":c:null==c||""===c?r:r+" "+c}const x=u({__forward_ref__:u});function O(r){return r.__forward_ref__=O,r.toString=function(){return l(this())},r}function L(r){return w(r)?r():r}function w(r){return"function"==typeof r&&r.hasOwnProperty(x)&&r.__forward_ref__===O}function B(r){return r&&!!r.\u0275providers}const y="https://g.co/ng/security#xss";class $ extends Error{constructor(c,f){super(C(c,f)),this.code=c}}function C(r,c){return`NG0${Math.abs(r)}${c?": "+c.trim():""}`}function T(r){return"string"==typeof r?r:null==r?"":String(r)}function j(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():T(r)}function X(r,c){throw new $(-201,!1)}function H(r,c,f,k){throw new Error(`ASSERTION ERROR: ${r}`+(null==k?"":` [Expected=> ${f} ${k} ${c} <=Actual]`))}function Ie(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}const pt=Ie;function Ht(r){return{providers:r.providers||[],imports:r.imports||[]}}function Wt(r){return Qe(r,lt)||Qe(r,Yt)}function Xe(r){return null!==Wt(r)}function Qe(r,c){return r.hasOwnProperty(c)?r[c]:null}function at(r){return r&&(r.hasOwnProperty(Dt)||r.hasOwnProperty(Tt))?r[Dt]:null}const lt=u({\u0275prov:u}),Dt=u({\u0275inj:u}),Yt=u({ngInjectableDef:u}),Tt=u({ngInjectorDef:u});var ot=(()=>((ot=ot||{})[ot.Default=0]="Default",ot[ot.Host=1]="Host",ot[ot.Self=2]="Self",ot[ot.SkipSelf=4]="SkipSelf",ot[ot.Optional=8]="Optional",ot))();let Gt;function Ze(r){const c=Gt;return Gt=r,c}function Ut(r,c,f){const k=Wt(r);return k&&"root"==k.providedIn?void 0===k.value?k.value=k.factory():k.value:f&ot.Optional?null:void 0!==c?c:void X(l(r))}const xn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),In={},Dn="__NG_DI_FLAG__",Tn="ngTempTokenPath",mn="ngTokenPath",Yn=/\n/gm,cn="\u0275",Nn="__source";let Bt;function En(r){const c=Bt;return Bt=r,c}function Wn(r,c=ot.Default){if(void 0===Bt)throw new $(-203,!1);return null===Bt?Ut(r,void 0,c):Bt.get(r,c&ot.Optional?null:void 0,c)}function rn(r,c=ot.Default){return(function wt(){return Gt}()||Wn)(L(r),c)}function Sn(r){throw new $(202,!1)}function ke(r,c=ot.Default){return rn(r,ge(c))}function ge(r){return typeof r>"u"||"number"==typeof r?r:0|(r.optional&&8)|(r.host&&1)|(r.self&&2)|(r.skipSelf&&4)}function q(r){const c=[];for(let f=0;f<r.length;f++){const k=L(r[f]);if(Array.isArray(k)){if(0===k.length)throw new $(900,!1);let W,ee=ot.Default;for(let de=0;de<k.length;de++){const Te=k[de],Ve=Oe(Te);"number"==typeof Ve?-1===Ve?W=Te.token:ee|=Ve:W=Te}c.push(rn(W,ee))}else c.push(rn(k))}return c}function J(r,c){return r[Dn]=c,r.prototype[Dn]=c,r}function Oe(r){return r[Dn]}function dt(r){return{toString:r}.toString()}var rt=(()=>((rt=rt||{})[rt.OnPush=0]="OnPush",rt[rt.Default=1]="Default",rt))(),qe=(()=>{return(r=qe||(qe={}))[r.Emulated=0]="Emulated",r[r.None=2]="None",r[r.ShadowDom=3]="ShadowDom",qe;var r})();const ze={},zt=[],vt=u({\u0275cmp:u}),Rt=u({\u0275dir:u}),gt=u({\u0275pipe:u}),sn=u({\u0275mod:u}),wn=u({\u0275fac:u}),Qn=u({__NG_ELEMENT_ID__:u});let pi=0;function Ei(r){return dt(()=>{const c=ve(r),f={...c,decls:r.decls,vars:r.vars,template:r.template,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,onPush:r.changeDetection===rt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:c.standalone&&r.dependencies||null,getStandaloneInjector:null,data:r.data||{},encapsulation:r.encapsulation||qe.Emulated,id:"c"+pi++,styles:r.styles||zt,_:null,schemas:r.schemas||null,tView:null};Se(f);const k=r.dependencies;return f.directiveDefs=Me(k,!1),f.pipeDefs=Me(k,!0),f})}function ki(r,c,f){const k=r.\u0275cmp;k.directiveDefs=Me(c,!1),k.pipeDefs=Me(f,!0)}function Co(r){return en(r)||Hn(r)}function xo(r){return null!==r}function no(r){return dt(()=>({type:r.type,bootstrap:r.bootstrap||zt,declarations:r.declarations||zt,imports:r.imports||zt,exports:r.exports||zt,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null}))}function Qo(r,c){return dt(()=>{const f=De(r,!0);f.declarations=c.declarations||zt,f.imports=c.imports||zt,f.exports=c.exports||zt})}function Mo(r,c){if(null==r)return ze;const f={};for(const k in r)if(r.hasOwnProperty(k)){let W=r[k],ee=W;Array.isArray(W)&&(ee=W[1],W=W[0]),f[W]=k,c&&(c[W]=ee)}return f}function po(r){return dt(()=>{const c=ve(r);return Se(c),c})}function Io(r){return{type:r.type,name:r.name,factory:null,pure:!1!==r.pure,standalone:!0===r.standalone,onDestroy:r.type.prototype.ngOnDestroy||null}}function en(r){return r[vt]||null}function Hn(r){return r[Rt]||null}function tt(r){return r[gt]||null}function nt(r){const c=en(r)||Hn(r)||tt(r);return null!==c&&c.standalone}function De(r,c){const f=r[sn]||null;if(!f&&!0===c)throw new Error(`Type ${l(r)} does not have '\u0275mod' property.`);return f}function ve(r){const c={};return{type:r.type,providersResolver:null,factory:null,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:c,exportAs:r.exportAs||null,standalone:!0===r.standalone,selectors:r.selectors||zt,viewQuery:r.viewQuery||null,features:r.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Mo(r.inputs,c),outputs:Mo(r.outputs)}}function Se(r){r.features?.forEach(c=>c(r))}function Me(r,c){if(!r)return null;const f=c?tt:Co;return()=>("function"==typeof r?r():r).map(k=>f(k)).filter(xo)}const We=0,ut=1,ue=2,et=3,At=4,Ae=5,bt=6,Le=7,Pt=8,dn=9,St=10,jt=11,ht=12,on=13,Nt=14,It=15,Ot=16,fn=17,Xn=18,_i=19,ci=20,Ui=21,li=22,Zn=1,gn=2,Mt=7,$t=8,kn=9,ai=10;function eo(r){return Array.isArray(r)&&"object"==typeof r[Zn]}function Oo(r){return Array.isArray(r)&&!0===r[Zn]}function Fo(r){return 0!=(4&r.flags)}function Zi(r){return r.componentOffset>-1}function Wo(r){return 1==(1&r.flags)}function na(r){return!!r.template}function qa(r){return 0!=(256&r[ue])}function ma(r,c){return r.hasOwnProperty(wn)?r[wn]:null}class ur{constructor(c,f,k){this.previousValue=c,this.currentValue=f,this.firstChange=k}isFirstChange(){return this.firstChange}}function Or(){return es}function es(r){return r.type.prototype.ngOnChanges&&(r.setInput=er),ts}function ts(){const r=Ua(this),c=r?.current;if(c){const f=r.previous;if(f===ze)r.previous=c;else for(let k in c)f[k]=c[k];r.current=null,this.ngOnChanges(c)}}function er(r,c,f,k){const W=this.declaredInputs[f],ee=Ua(r)||function Ca(r,c){return r[pr]=c}(r,{previous:ze,current:null}),de=ee.current||(ee.current={}),Te=ee.previous,Ve=Te[W];de[W]=new ur(Ve&&Ve.currentValue,c,Te===ze),r[k]=c}Or.ngInherit=!0;const pr="__ngSimpleChanges__";function Ua(r){return r[pr]||null}let Va=null;const Rr=r=>{Va=r},ha=function(r,c,f){Va?.(r,c,f)},mr="svg",Fr="math";function da(r){for(;Array.isArray(r);)r=r[We];return r}function ya(r,c){return da(c[r])}function oa(r,c){return da(c[r.index])}function fr(r,c){return r.data[c]}function br(r,c){return r[c]}function Ia(r,c){const f=c[r];return eo(f)?f:f[We]}function Za(r){return 64==(64&r[ue])}function Pa(r,c){return null==c?null:r[c]}function ar(r){r[Xn]=0}function Sr(r,c){r[Ae]+=c;let f=r,k=r[et];for(;null!==k&&(1===c&&1===f[Ae]||-1===c&&0===f[Ae]);)k[Ae]+=c,f=k,k=k[et]}const ao={lFrame:ui(null),bindingsEnabled:!0};function ti(){return ao.bindingsEnabled}function $i(){ao.bindingsEnabled=!0}function qt(){ao.bindingsEnabled=!1}function it(){return ao.lFrame.lView}function ae(){return ao.lFrame.tView}function _e(r){return ao.lFrame.contextLView=r,r[Pt]}function mt(r){return ao.lFrame.contextLView=null,r}function Vt(){let r=On();for(;null!==r&&64===r.type;)r=r.parent;return r}function On(){return ao.lFrame.currentTNode}function Rn(){const r=ao.lFrame,c=r.currentTNode;return r.isParent?c:c.parent}function ni(r,c){const f=ao.lFrame;f.currentTNode=r,f.isParent=c}function Ii(){return ao.lFrame.isParent}function so(){ao.lFrame.isParent=!1}function ka(){const r=ao.lFrame;let c=r.bindingRootIndex;return-1===c&&(c=r.bindingRootIndex=r.tView.bindingStartIndex),c}function Po(){return ao.lFrame.bindingIndex}function Cr(r){return ao.lFrame.bindingIndex=r}function _s(){return ao.lFrame.bindingIndex++}function Os(r){const c=ao.lFrame,f=c.bindingIndex;return c.bindingIndex=c.bindingIndex+r,f}function Fs(r){ao.lFrame.inI18n=r}function is(r,c){const f=ao.lFrame;f.bindingIndex=f.bindingRootIndex=r,yi(c)}function yi(r){ao.lFrame.currentDirectiveIndex=r}function os(r){const c=ao.lFrame.currentDirectiveIndex;return-1===c?null:r[c]}function nc(){return ao.lFrame.currentQueryIndex}function Ic(r){ao.lFrame.currentQueryIndex=r}function al(r){const c=r[ut];return 2===c.type?c.declTNode:1===c.type?r[bt]:null}function uc(r,c,f){if(f&ot.SkipSelf){let W=c,ee=r;for(;!(W=W.parent,null!==W||f&ot.Host||(W=al(ee),null===W||(ee=ee[It],10&W.type))););if(null===W)return!1;c=W,r=ee}const k=ao.lFrame=Gn();return k.currentTNode=c,k.lView=r,!0}function Bs(r){const c=Gn(),f=r[ut];ao.lFrame=c,c.currentTNode=f.firstChild,c.lView=r,c.tView=f,c.contextLView=r,c.bindingIndex=f.bindingStartIndex,c.inI18n=!1}function Gn(){const r=ao.lFrame,c=null===r?null:r.child;return null===c?ui(r):c}function ui(r){const c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:r,child:null,inI18n:!1};return null!==r&&(r.child=c),c}function si(){const r=ao.lFrame;return ao.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const Yi=si;function Eo(){const r=si();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function ei(){return ao.lFrame.selectedIndex}function tr(r){ao.lFrame.selectedIndex=r}function Ao(){const r=ao.lFrame;return fr(r.tView,r.selectedIndex)}function jo(){ao.lFrame.currentNamespace=mr}function as(){ao.lFrame.currentNamespace=Fr}function Ko(){!function xa(){ao.lFrame.currentNamespace=null}()}function Xo(r,c){for(let f=c.directiveStart,k=c.directiveEnd;f<k;f++){const ee=r.data[f].type.prototype,{ngAfterContentInit:de,ngAfterContentChecked:Te,ngAfterViewInit:Ve,ngAfterViewChecked:xt,ngOnDestroy:Jt}=ee;de&&(r.contentHooks??(r.contentHooks=[])).push(-f,de),Te&&((r.contentHooks??(r.contentHooks=[])).push(f,Te),(r.contentCheckHooks??(r.contentCheckHooks=[])).push(f,Te)),Ve&&(r.viewHooks??(r.viewHooks=[])).push(-f,Ve),xt&&((r.viewHooks??(r.viewHooks=[])).push(f,xt),(r.viewCheckHooks??(r.viewCheckHooks=[])).push(f,xt)),null!=Jt&&(r.destroyHooks??(r.destroyHooks=[])).push(f,Jt)}}function Ac(r,c,f){Ct(r,c,3,f)}function mc(r,c,f,k){(3&r[ue])===f&&Ct(r,c,f,k)}function Re(r,c){let f=r[ue];(3&f)===c&&(f&=2047,f+=1,r[ue]=f)}function Ct(r,c,f,k){const ee=k??-1,de=c.length-1;let Te=0;for(let Ve=void 0!==k?65535&r[Xn]:0;Ve<de;Ve++)if("number"==typeof c[Ve+1]){if(Te=c[Ve],null!=k&&Te>=k)break}else c[Ve]<0&&(r[Xn]+=65536),(Te<ee||-1==ee)&&($e(r,f,c,Ve),r[Xn]=(4294901760&r[Xn])+Ve+2),Ve++}function $e(r,c,f,k){const W=f[k]<0,ee=f[k+1],Te=r[W?-f[k]:f[k]];if(W){if(r[ue]>>11<r[Xn]>>16&&(3&r[ue])===c){r[ue]+=2048,ha(4,Te,ee);try{ee.call(Te)}finally{ha(5,Te,ee)}}}else{ha(4,Te,ee);try{ee.call(Te)}finally{ha(5,Te,ee)}}}const Kt=-1;class yn{constructor(c,f,k){this.factory=c,this.resolving=!1,this.canSeeViewProviders=f,this.injectImpl=k}}function Ri(r,c,f){let k=0;for(;k<f.length;){const W=f[k];if("number"==typeof W){if(0!==W)break;k++;const ee=f[k++],de=f[k++],Te=f[k++];r.setAttribute(c,de,Te,ee)}else{const ee=W,de=f[++k];Jo(ee)?r.setProperty(c,ee,de):r.setAttribute(c,ee,de),k++}}return k}function co(r){return 3===r||4===r||6===r}function Jo(r){return 64===r.charCodeAt(0)}function lo(r,c){if(null!==c&&0!==c.length)if(null===r||0===r.length)r=c.slice();else{let f=-1;for(let k=0;k<c.length;k++){const W=c[k];"number"==typeof W?f=W:0===f||Ja(r,f,W,null,-1===f||2===f?c[++k]:null)}}return r}function Ja(r,c,f,k,W){let ee=0,de=r.length;if(-1===c)de=-1;else for(;ee<r.length;){const Te=r[ee++];if("number"==typeof Te){if(Te===c){de=-1;break}if(Te>c){de=ee-1;break}}}for(;ee<r.length;){const Te=r[ee];if("number"==typeof Te)break;if(Te===f){if(null===k)return void(null!==W&&(r[ee+1]=W));if(k===r[ee+1])return void(r[ee+2]=W)}ee++,null!==k&&ee++,null!==W&&ee++}-1!==de&&(r.splice(de,0,c),ee=de+1),r.splice(ee++,0,f),null!==k&&r.splice(ee++,0,k),null!==W&&r.splice(ee++,0,W)}function Tr(r){return r!==Kt}function Ka(r){return 32767&r}function La(r,c){let f=function Nr(r){return r>>16}(r),k=c;for(;f>0;)k=k[It],f--;return k}let Gs=!0;function jr(r){const c=Gs;return Gs=r,c}const rl=255,Ea=5;let nr=0;const Ra={};function Xs(r,c){const f=Yc(r,c);if(-1!==f)return f;const k=c[ut];k.firstCreatePass&&(r.injectorIndex=c.length,Ss(k.data,r),Ss(c,null),Ss(k.blueprint,null));const W=hc(r,c),ee=r.injectorIndex;if(Tr(W)){const de=Ka(W),Te=La(W,c),Ve=Te[ut].data;for(let xt=0;xt<8;xt++)c[ee+xt]=Te[de+xt]|Ve[de+xt]}return c[ee+8]=W,ee}function Ss(r,c){r.push(0,0,0,0,0,0,0,0,c)}function Yc(r,c){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===c[r.injectorIndex+8]?-1:r.injectorIndex}function hc(r,c){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let f=0,k=null,W=c;for(;null!==W;){if(k=Vn(W),null===k)return Kt;if(f++,W=W[It],-1!==k.injectorIndex)return k.injectorIndex|f<<16}return Kt}function yr(r,c,f){!function Qs(r,c,f){let k;"string"==typeof f?k=f.charCodeAt(0)||0:f.hasOwnProperty(Qn)&&(k=f[Qn]),null==k&&(k=f[Qn]=nr++);const W=k&rl;c.data[r+(W>>Ea)]|=1<<W}(r,c,f)}function Zs(r,c,f){if(f&ot.Optional||void 0!==r)return r;X()}function Ts(r,c,f,k){if(f&ot.Optional&&void 0===k&&(k=null),!(f&(ot.Self|ot.Host))){const W=r[dn],ee=Ze(void 0);try{return W?W.get(c,k,f&ot.Optional):Ut(c,k,f&ot.Optional)}finally{Ze(ee)}}return Zs(k,0,f)}function Lc(r,c,f,k=ot.Default,W){if(null!==r){if(1024&c[ue]){const de=function An(r,c,f,k,W){let ee=r,de=c;for(;null!==ee&&null!==de&&1024&de[ue]&&!(256&de[ue]);){const Te=oc(ee,de,f,k|ot.Self,Ra);if(Te!==Ra)return Te;let Ve=ee.parent;if(!Ve){const xt=de[Ui];if(xt){const Jt=xt.get(f,Ra,k);if(Jt!==Ra)return Jt}Ve=Vn(de),de=de[It]}ee=Ve}return W}(r,c,f,k,Ra);if(de!==Ra)return de}const ee=oc(r,c,f,k,Ra);if(ee!==Ra)return ee}return Ts(c,f,k,W)}function oc(r,c,f,k,W){const ee=function Ir(r){if("string"==typeof r)return r.charCodeAt(0)||0;const c=r.hasOwnProperty(Qn)?r[Qn]:void 0;return"number"==typeof c?c>=0?c&rl:Hr:c}(f);if("function"==typeof ee){if(!uc(c,r,k))return k&ot.Host?Zs(W,0,k):Ts(c,f,k,W);try{const de=ee(k);if(null!=de||k&ot.Optional)return de;X()}finally{Yi()}}else if("number"==typeof ee){let de=null,Te=Yc(r,c),Ve=Kt,xt=k&ot.Host?c[Ot][bt]:null;for((-1===Te||k&ot.SkipSelf)&&(Ve=-1===Te?hc(r,c):c[Te+8],Ve!==Kt&&xr(k,!1)?(de=c[ut],Te=Ka(Ve),c=La(Ve,c)):Te=-1);-1!==Te;){const Jt=c[ut];if(rs(ee,Te,Jt.data)){const Mn=Kl(Te,c,f,de,k,xt);if(Mn!==Ra)return Mn}Ve=c[Te+8],Ve!==Kt&&xr(k,c[ut].data[Te+8]===xt)&&rs(ee,Te,c)?(de=Jt,Te=Ka(Ve),c=La(Ve,c)):Te=-1}}return W}function Kl(r,c,f,k,W,ee){const de=c[ut],Te=de.data[r+8],Jt=Hc(Te,de,f,null==k?Zi(Te)&&Gs:k!=de&&0!=(3&Te.type),W&ot.Host&&ee===Te);return null!==Jt?fc(c,de,Jt,Te):Ra}function Hc(r,c,f,k,W){const ee=r.providerIndexes,de=c.data,Te=1048575&ee,Ve=r.directiveStart,Jt=ee>>20,Kn=W?Te+Jt:r.directiveEnd;for(let oi=k?Te:Te+Jt;oi<Kn;oi++){const gi=de[oi];if(oi<Ve&&f===gi||oi>=Ve&&gi.type===f)return oi}if(W){const oi=de[Ve];if(oi&&na(oi)&&oi.type===f)return Ve}return null}function fc(r,c,f,k){let W=r[f];const ee=c.data;if(function ii(r){return r instanceof yn}(W)){const de=W;de.resolving&&function I(r,c){const f=c?`. Dependency path: ${c.join(" > ")} > ${r}`:"";throw new $(-200,`Circular dependency in DI detected for ${r}${f}`)}(j(ee[f]));const Te=jr(de.canSeeViewProviders);de.resolving=!0;const Ve=de.injectImpl?Ze(de.injectImpl):null;uc(r,k,ot.Default);try{W=r[f]=de.factory(void 0,ee,r,k),c.firstCreatePass&&f>=k.directiveStart&&function pc(r,c,f){const{ngOnChanges:k,ngOnInit:W,ngDoCheck:ee}=c.type.prototype;if(k){const de=es(c);(f.preOrderHooks??(f.preOrderHooks=[])).push(r,de),(f.preOrderCheckHooks??(f.preOrderCheckHooks=[])).push(r,de)}W&&(f.preOrderHooks??(f.preOrderHooks=[])).push(0-r,W),ee&&((f.preOrderHooks??(f.preOrderHooks=[])).push(r,ee),(f.preOrderCheckHooks??(f.preOrderCheckHooks=[])).push(r,ee))}(f,ee[f],c)}finally{null!==Ve&&Ze(Ve),jr(Te),de.resolving=!1,Yi()}}return W}function rs(r,c,f){return!!(f[c+(r>>Ea)]&1<<r)}function xr(r,c){return!(r&ot.Self||r&ot.Host&&c)}class Ga{constructor(c,f){this._tNode=c,this._lView=f}get(c,f,k){return Lc(this._tNode,this._lView,c,ge(k),f)}}function Hr(){return new Ga(Vt(),it())}function Xt(r){return dt(()=>{const c=r.prototype.constructor,f=c[wn]||nn(c),k=Object.prototype;let W=Object.getPrototypeOf(r.prototype).constructor;for(;W&&W!==k;){const ee=W[wn]||nn(W);if(ee&&ee!==f)return ee;W=Object.getPrototypeOf(W)}return ee=>new ee})}function nn(r){return w(r)?()=>{const c=nn(L(r));return c&&c()}:ma(r)}function Vn(r){const c=r[ut],f=c.type;return 2===f?c.declTNode:1===f?r[bt]:null}function zn(r){return function kc(r,c){if("class"===c)return r.classes;if("style"===c)return r.styles;const f=r.attrs;if(f){const k=f.length;let W=0;for(;W<k;){const ee=f[W];if(co(ee))break;if(0===ee)W+=2;else if("number"==typeof ee)for(W++;W<k&&"string"==typeof f[W];)W++;else{if(ee===c)return f[W+1];W+=2}}}return null}(Vt(),r)}const Fi="__annotations__",uo="__parameters__",ua="__prop__metadata__";function Ji(r,c,f,k,W){return dt(()=>{const ee=Ta(c);function de(...Te){if(this instanceof de)return ee.call(this,...Te),this;const Ve=new de(...Te);return function(Jt){return W&&W(Jt,...Te),(Jt.hasOwnProperty(Fi)?Jt[Fi]:Object.defineProperty(Jt,Fi,{value:[]})[Fi]).push(Ve),k&&k(Jt),Jt}}return f&&(de.prototype=Object.create(f.prototype)),de.prototype.ngMetadataName=r,de.annotationCls=de,de})}function Ta(r){return function(...f){if(r){const k=r(...f);for(const W in k)this[W]=k[W]}}}function Mr(r,c,f){return dt(()=>{const k=Ta(c);function W(...ee){if(this instanceof W)return k.apply(this,ee),this;const de=new W(...ee);return Te.annotation=de,Te;function Te(Ve,xt,Jt){const Mn=Ve.hasOwnProperty(uo)?Ve[uo]:Object.defineProperty(Ve,uo,{value:[]})[uo];for(;Mn.length<=Jt;)Mn.push(null);return(Mn[Jt]=Mn[Jt]||[]).push(de),Ve}}return f&&(W.prototype=Object.create(f.prototype)),W.prototype.ngMetadataName=r,W.annotationCls=W,W})}function Fa(r,c,f,k){return dt(()=>{const W=Ta(c);function ee(...de){if(this instanceof ee)return W.apply(this,de),this;const Te=new ee(...de);return function Ve(xt,Jt){const Mn=xt.constructor,Kn=Mn.hasOwnProperty(ua)?Mn[ua]:Object.defineProperty(Mn,ua,{value:{}})[ua];Kn[Jt]=Kn.hasOwnProperty(Jt)&&Kn[Jt]||[],Kn[Jt].unshift(Te),k&&k(xt,Jt,...de)}}return f&&(ee.prototype=Object.create(f.prototype)),ee.prototype.ngMetadataName=r,ee.annotationCls=ee,ee})}const _c=Mr("Attribute",r=>({attributeName:r,__NG_ELEMENT_ID__:()=>zn(r)}));class Ma{constructor(c,f){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof f?this.__NG_ELEMENT_ID__=f:void 0!==f&&(this.\u0275prov=Ie({token:this,providedIn:f.providedIn||"root",factory:f.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Is=new Ma("AnalyzeForEntryComponents");class Wa{}const xl=Fa("ContentChildren",(r,c={})=>({selector:r,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...c}),Wa),Kc=Fa("ContentChild",(r,c={})=>({selector:r,first:!0,isViewQuery:!1,descendants:!0,...c}),Wa),Zd=Fa("ViewChildren",(r,c={})=>({selector:r,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...c}),Wa),Ns=Fa("ViewChild",(r,c)=>({selector:r,first:!0,isViewQuery:!0,descendants:!0,...c}),Wa);var Dr=(()=>((Dr=Dr||{})[Dr.Directive=0]="Directive",Dr[Dr.Component=1]="Component",Dr[Dr.Injectable=2]="Injectable",Dr[Dr.Pipe=3]="Pipe",Dr[Dr.NgModule=4]="NgModule",Dr))();function Ba(r){const c=xn.ng;if(c&&c.\u0275compilerFacade)return c.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const ws=Function;function Da(r){return"function"==typeof r}function Ur(r){return r.flat(Number.POSITIVE_INFINITY)}function ir(r,c){r.forEach(f=>Array.isArray(f)?ir(f,c):c(f))}function js(r,c,f){c>=r.length?r.push(f):r.splice(c,0,f)}function qo(r,c){return c>=r.length-1?r.pop():r.splice(c,1)[0]}function fe(r,c){const f=[];for(let k=0;k<r;k++)f.push(c);return f}function Ft(r,c,f){let k=jn(r,c);return k>=0?r[1|k]=f:(k=~k,function Ne(r,c,f,k){let W=r.length;if(W==c)r.push(f,k);else if(1===W)r.push(k,r[0]),r[0]=f;else{for(W--,r.push(r[W-1],r[W]);W>c;)r[W]=r[W-2],W--;r[c]=f,r[c+1]=k}}(r,k,c,f)),k}function an(r,c){const f=jn(r,c);if(f>=0)return r[1|f]}function jn(r,c){return function Vi(r,c,f){let k=0,W=r.length>>f;for(;W!==k;){const ee=k+(W-k>>1),de=r[ee<<f];if(c===de)return ee<<f;de>c?W=ee:k=ee+1}return~(W<<f)}(r,c,1)}const zi=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,fa=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,wr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Kr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class gs{constructor(c){this._reflect=c||xn.Reflect}factory(c){return(...f)=>new c(...f)}_zipTypesAndAnnotations(c,f){let k;k=fe(typeof c>"u"?f.length:c.length);for(let W=0;W<k.length;W++)k[W]=typeof c>"u"?[]:c[W]&&c[W]!=Object?[c[W]]:[],f&&null!=f[W]&&(k[W]=k[W].concat(f[W]));return k}_ownParameters(c,f){if(function Us(r){return zi.test(r)||Kr.test(r)||fa.test(r)&&!wr.test(r)}(c.toString()))return null;if(c.parameters&&c.parameters!==f.parameters)return c.parameters;const W=c.ctorParameters;if(W&&W!==f.ctorParameters){const Te="function"==typeof W?W():W,Ve=Te.map(Jt=>Jt&&Jt.type),xt=Te.map(Jt=>Jt&&Qa(Jt.decorators));return this._zipTypesAndAnnotations(Ve,xt)}const ee=c.hasOwnProperty(uo)&&c[uo],de=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",c);return de||ee?this._zipTypesAndAnnotations(de,ee):fe(c.length)}parameters(c){if(!Da(c))return[];const f=Gl(c);let k=this._ownParameters(c,f);return!k&&f!==Object&&(k=this.parameters(f)),k||[]}_ownAnnotations(c,f){if(c.annotations&&c.annotations!==f.annotations){let k=c.annotations;return"function"==typeof k&&k.annotations&&(k=k.annotations),k}return c.decorators&&c.decorators!==f.decorators?Qa(c.decorators):c.hasOwnProperty(Fi)?c[Fi]:null}annotations(c){if(!Da(c))return[];const f=Gl(c),k=this._ownAnnotations(c,f)||[];return(f!==Object?this.annotations(f):[]).concat(k)}_ownPropMetadata(c,f){if(c.propMetadata&&c.propMetadata!==f.propMetadata){let k=c.propMetadata;return"function"==typeof k&&k.propMetadata&&(k=k.propMetadata),k}if(c.propDecorators&&c.propDecorators!==f.propDecorators){const k=c.propDecorators,W={};return Object.keys(k).forEach(ee=>{W[ee]=Qa(k[ee])}),W}return c.hasOwnProperty(ua)?c[ua]:null}propMetadata(c){if(!Da(c))return{};const f=Gl(c),k={};if(f!==Object){const ee=this.propMetadata(f);Object.keys(ee).forEach(de=>{k[de]=ee[de]})}const W=this._ownPropMetadata(c,f);return W&&Object.keys(W).forEach(ee=>{const de=[];k.hasOwnProperty(ee)&&de.push(...k[ee]),de.push(...W[ee]),k[ee]=de}),k}ownPropMetadata(c){return Da(c)&&this._ownPropMetadata(c,Gl(c))||{}}hasLifecycleHook(c,f){return c instanceof ws&&f in c.prototype}}function Qa(r){return r?r.map(c=>new(0,c.type.annotationCls)(...c.args?c.args:[])):[]}function Gl(r){const c=r.prototype?Object.getPrototypeOf(r.prototype):null;return(c?c.constructor:null)||Object}const Vr=J(Mr("Inject",r=>({token:r})),-1),Js=J(Mr("Optional"),8),Gc=J(Mr("Self"),2),vs=J(Mr("SkipSelf"),4),fd=J(Mr("Host"),1);let Jd=null;function Qc(){return Jd=Jd||new gs}function _d(r){return qd(Qc().parameters(r))}function qd(r){return r.map(c=>function Gr(r){const c={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(r)&&r.length>0)for(let f=0;f<r.length;f++){const k=r[f];if(void 0===k)continue;const W=Object.getPrototypeOf(k);if(k instanceof Js||"Optional"===W.ngMetadataName)c.optional=!0;else if(k instanceof vs||"SkipSelf"===W.ngMetadataName)c.skipSelf=!0;else if(k instanceof Gc||"Self"===W.ngMetadataName)c.self=!0;else if(k instanceof fd||"Host"===W.ngMetadataName)c.host=!0;else if(k instanceof Vr)c.token=k.token;else if(k instanceof _c){if(void 0===k.attributeName)throw new $(204,!1);c.attribute=k.attributeName}else c.token=k}else c.token=void 0===r||Array.isArray(r)&&0===r.length?null:r;return c}(c))}function gd(r){const c=[],f=new Map;function k(W){let ee=f.get(W);if(!ee){const de=r(W);f.set(W,ee=de.then(dp))}return ee}return sl.forEach((W,ee)=>{const de=[];W.templateUrl&&de.push(k(W.templateUrl).then(Mn=>{W.template=Mn}));const Te=W.styleUrls,Ve=W.styles||(W.styles=[]),xt=W.styles.length;Te&&Te.forEach((Mn,Kn)=>{Ve.push(""),de.push(k(Mn).then(oi=>{Ve[xt+Kn]=oi,Te.splice(Te.indexOf(Mn),1),0==Te.length&&(W.styleUrls=void 0)}))});const Jt=Promise.all(de).then(()=>function up(r){Vs.delete(r)}(ee));c.push(Jt)}),Ql(),Promise.all(c).then(()=>{})}let sl=new Map;const Vs=new Set;function Xc(r){return!!(r.templateUrl&&!r.hasOwnProperty("template")||r.styleUrls&&r.styleUrls.length)}function Ql(){const r=sl;return sl=new Map,r}function dp(r){return"string"==typeof r?r:r.text()}const vd=new Map;let ss=!0;function Zc(r,c){(function Dl(r,c,f){if(c&&c!==f&&ss)throw new Error(`Duplicate module registered for ${r} - ${l(c)} vs ${l(c.name)}`)})(c,vd.get(c)||null,r),vd.set(c,r)}function Xl(r){return vd.get(r)}function El(r){ss=!r}const ll={name:"custom-elements"},dl={name:"no-errors-schema"};let ac=!1;function Ol(r){ac=r}function pa(){return ac}let ie=!1;function be(r){ie=r}function Ye(){return ie}var cs=(()=>((cs=cs||{})[cs.Important=1]="Important",cs[cs.DashCase=2]="DashCase",cs))();const Su=/^>|^->|<!--|-->|--!>|<!-$/g,Jp=/(<|>)/,ul="\u200b$1\u200b";const eu=new Map;let qp=0;function Tu(r){return eu.get(r)||null}class em{get lView(){return Tu(this.lViewId)}constructor(c,f,k){this.lViewId=c,this.nodeIndex=f,this.native=k}}function xs(r){let c=$s(r);if(c){if(eo(c)){const f=c;let k,W,ee;if(pl(r)){if(k=qs(f,r),-1==k)throw new Error("The provided component was not found in the application");W=r}else if(function Iu(r){return r&&r.constructor&&r.constructor.\u0275dir}(r)){if(k=function ml(r,c){let f=r[ut].firstChild;for(;f;){const W=f.directiveEnd;for(let ee=f.directiveStart;ee<W;ee++)if(r[ee]===c)return f.index;f=tm(f)}return-1}(f,r),-1==k)throw new Error("The provided directive was not found in the application");ee=gc(k,f)}else if(k=_p(f,r),-1==k)return null;const de=da(f[k]),Te=$s(de),Ve=Te&&!Array.isArray(Te)?Te:Tl(f,k,de);if(W&&void 0===Ve.component&&(Ve.component=W,As(Ve.component,Ve)),ee&&void 0===Ve.directives){Ve.directives=ee;for(let xt=0;xt<ee.length;xt++)As(ee[xt],Ve)}As(Ve.native,Ve),c=Ve}}else{const f=r;let k=f;for(;k=k.parentNode;){const W=$s(k);if(W){const ee=Array.isArray(W)?W:W.lView;if(!ee)return null;const de=_p(ee,f);if(de>=0){const Te=da(ee[de]),Ve=Tl(ee,de,Te);As(Te,Ve),c=Ve;break}}}}return c||null}function Tl(r,c,f){return new em(r[ci],c,f)}function hp(r){let f,c=$s(r);if(eo(c)){const k=c,W=qs(k,r);f=Ia(W,k);const ee=Tl(k,W,f[We]);ee.component=r,As(r,ee),As(ee.native,ee)}else f=Ia(c.nodeIndex,c.lView);return f}const fp="__ngContext__";function As(r,c){eo(c)?(r[fp]=c[ci],function mp(r){eu.set(r[ci],r)}(c)):r[fp]=c}function $s(r){const c=r[fp];return"number"==typeof c?Tu(c):c||null}function bd(r){const c=$s(r);return c?eo(c)?c:c.lView:null}function pl(r){return r&&r.constructor&&r.constructor.\u0275cmp}function _p(r,c){const f=r[ut];for(let k=li;k<f.bindingStartIndex;k++)if(da(r[k])===c)return k;return-1}function tm(r){if(r.child)return r.child;if(r.next)return r.next;for(;r.parent&&!r.parent.next;)r=r.parent;return r.parent&&r.parent.next}function qs(r,c){const f=r[ut].components;if(f)for(let k=0;k<f.length;k++){const W=f[k];if(Ia(W,r)[Pt]===c)return W}else if(Ia(li,r)[Pt]===c)return li;return-1}function gc(r,c){const f=c[ut].data[r];if(0===f.directiveStart)return zt;const k=[];for(let W=f.directiveStart;W<f.directiveEnd;W++){const ee=c[W];pl(ee)||k.push(ee)}return k}let nu;function ls(r,c){return nu(r,c)}function Zl(r){const c=r[et];return Oo(c)?c[et]:c}function qc(r){return function vp(r){let c=eo(r)?r:bd(r);for(;c&&!(256&c[ue]);)c=Zl(c);return c}(r)[Pt]}function bp(r){return iu(r[on])}function el(r){return iu(r[At])}function iu(r){for(;null!==r&&!Oo(r);)r=r[At];return r}function tl(r,c,f,k,W){if(null!=k){let ee,de=!1;Oo(k)?ee=k:eo(k)&&(de=!0,k=k[We]);const Te=da(k);0===r&&null!==f?null==W?ql(c,f,Te):Il(c,f,Te,W||null,!0):1===r&&null!==f?Il(c,f,Te,W||null,!0):2===r?xp(c,Te,de):3===r&&c.destroyNode(Te),null!=ee&&function im(r,c,f,k,W){const ee=f[Mt];ee!==da(f)&&tl(c,r,k,ee,W);for(let Te=ai;Te<f.length;Te++){const Ve=f[Te];Cc(Ve[ut],Ve,r,c,k,ee)}}(c,r,ee,f,W)}}function hl(r,c){return r.createText(c)}function Qr(r,c,f){r.setValue(c,f)}function ks(r,c){return r.createComment(function pp(r){return r.replace(Su,c=>c.replace(Jp,ul))}(c))}function wu(r,c,f){return r.createElement(c,f)}function vc(r,c){const f=r[kn],k=f.indexOf(c),W=c[et];512&c[ue]&&(c[ue]&=-513,Sr(W,-1)),f.splice(k,1)}function ku(r,c){if(r.length<=ai)return;const f=ai+c,k=r[f];if(k){const W=k[fn];null!==W&&W!==r&&vc(W,k),c>0&&(r[f-1][At]=k[At]);const ee=qo(r,ai+c);!function Au(r,c){Cc(r,c,c[jt],2,null,null),c[We]=null,c[bt]=null}(k[ut],k);const de=ee[_i];null!==de&&de.detachView(ee[ut]),k[et]=null,k[At]=null,k[ue]&=-65}return k}function Cp(r,c){if(!(128&c[ue])){const f=c[jt];f.destroyNode&&Cc(r,c,f,3,null,null),function ou(r){let c=r[on];if(!c)return yd(r[ut],r);for(;c;){let f=null;if(eo(c))f=c[on];else{const k=c[ai];k&&(f=k)}if(!f){for(;c&&!c[At]&&c!==r;)eo(c)&&yd(c[ut],c),c=c[et];null===c&&(c=r),eo(c)&&yd(c[ut],c),f=c&&c[At]}c=f}}(c)}}function yd(r,c){if(!(128&c[ue])){c[ue]&=-65,c[ue]|=128,function Jl(r,c){let f;if(null!=r&&null!=(f=r.destroyHooks))for(let k=0;k<f.length;k+=2){const W=c[f[k]];if(!(W instanceof yn)){const ee=f[k+1];if(Array.isArray(ee))for(let de=0;de<ee.length;de+=2){const Te=W[ee[de]],Ve=ee[de+1];ha(4,Te,Ve);try{Ve.call(Te)}finally{ha(5,Te,Ve)}}else{ha(4,W,ee);try{ee.call(W)}finally{ha(5,W,ee)}}}}}(r,c),function bc(r,c){const f=r.cleanup,k=c[Le];let W=-1;if(null!==f)for(let ee=0;ee<f.length-1;ee+=2)if("string"==typeof f[ee]){const de=f[ee+3];de>=0?k[W=de]():k[W=-de].unsubscribe(),ee+=2}else{const de=k[W=f[ee+1]];f[ee].call(de)}if(null!==k){for(let ee=W+1;ee<k.length;ee++)(0,k[ee])();c[Le]=null}}(r,c),1===c[ut].type&&c[jt].destroy();const f=c[fn];if(null!==f&&Oo(c[et])){f!==c[et]&&vc(f,c);const k=c[_i];null!==k&&k.detachView(r)}!function sa(r){eu.delete(r[ci])}(c)}}function xd(r,c,f){return yp(r,c.parent,f)}function yp(r,c,f){let k=c;for(;null!==k&&40&k.type;)k=(c=k).parent;if(null===k)return f[We];{const{componentOffset:W}=k;if(W>-1){const{encapsulation:ee}=r.data[k.directiveStart+W];if(ee===qe.None||ee===qe.Emulated)return null}return oa(k,f)}}function Il(r,c,f,k,W){r.insertBefore(c,f,k,W)}function ql(r,c,f){r.appendChild(c,f)}function Md(r,c,f,k,W){null!==k?Il(r,c,f,k,W):ql(r,c,f)}function ru(r,c){return r.parentNode(c)}function wl(r,c,f){return ed(r,c,f)}function Dd(r,c,f){return 40&r.type?oa(r,f):null}let Al,id,Ed,Od,ed=Dd;function nm(r,c){ed=r,Al=c}function td(r,c,f,k){const W=xd(r,k,c),ee=c[jt],Te=wl(k.parent||c[bt],k,c);if(null!=W)if(Array.isArray(f))for(let Ve=0;Ve<f.length;Ve++)Md(ee,W,f[Ve],Te,!1);else Md(ee,W,f,Te,!1);void 0!==Al&&Al(ee,k,c,f,W)}function nd(r,c){if(null!==c){const f=c.type;if(3&f)return oa(c,r);if(4&f)return Pd(-1,r[c.index]);if(8&f){const k=c.child;if(null!==k)return nd(r,k);{const W=r[c.index];return Oo(W)?Pd(-1,W):da(W)}}if(32&f)return ls(c,r)()||da(r[c.index]);{const k=Lu(r,c);return null!==k?Array.isArray(k)?k[0]:nd(Zl(r[Ot]),k):nd(r,c.next)}}return null}function Lu(r,c){return null!==c?r[Ot][bt].projection[c.projection]:null}function Pd(r,c){const f=ai+r+1;if(f<c.length){const k=c[f],W=k[ut].firstChild;if(null!==W)return nd(k,W)}return c[Mt]}function xp(r,c,f){const k=ru(r,c);k&&function Gm(r,c,f,k){r.removeChild(c,f,k)}(r,k,c,f)}function cu(r,c,f,k,W,ee,de){for(;null!=f;){const Te=k[f.index],Ve=f.type;if(de&&0===c&&(Te&&As(da(Te),k),f.flags|=2),32!=(32&f.flags))if(8&Ve)cu(r,c,f.child,k,W,ee,!1),tl(c,r,W,Te,ee);else if(32&Ve){const xt=ls(f,k);let Jt;for(;Jt=xt();)tl(c,r,W,Jt,ee);tl(c,r,W,Te,ee)}else 16&Ve?kl(r,c,k,f,W,ee):tl(c,r,W,Te,ee);f=de?f.projectionNext:f.next}}function Cc(r,c,f,k,W,ee){cu(f,k,r.firstChild,c,W,ee,!1)}function kl(r,c,f,k,W,ee){const de=f[Ot],Ve=de[bt].projection[k.projection];if(Array.isArray(Ve))for(let xt=0;xt<Ve.length;xt++)tl(c,r,W,Ve[xt],ee);else cu(r,c,Ve,de[et],W,ee,!0)}function lu(r,c,f){""===f?r.removeAttribute(c,"class"):r.setAttribute(c,"class",f)}function nl(r,c,f){const{mergedAttrs:k,classes:W,styles:ee}=f;null!==k&&Ri(r,c,k),null!==W&&lu(r,c,W),null!==ee&&function Xm(r,c,f){r.setAttribute(c,"style",f)}(r,c,ee)}function Ll(){if(void 0===id&&(id=null,xn.trustedTypes))try{id=xn.trustedTypes.createPolicy("angular",{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r})}catch{}return id}function Rl(r){return Ll()?.createHTML(r)||r}function du(r,c,f){const k=it(),W=Ao(),ee=oa(W,k);if(2===W.type&&"iframe"===c.toLowerCase()){const de=ee;throw de.src="",de.srcdoc=Rl(""),xp(k[jt],de),new $(-910,!1)}return r}function od(r){Ed=r}function am(){return void 0!==Ed?Ed:typeof document<"u"?document:void 0}function uu(){if(void 0===Od&&(Od=null,xn.trustedTypes))try{Od=xn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r})}catch{}return Od}function Ls(r){return uu()?.createHTML(r)||r}function rm(r){return uu()?.createScript(r)||r}function Dp(r){return uu()?.createScriptURL(r)||r}class jc{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${y})`}}class sm extends jc{getTypeName(){return"HTML"}}class Sd extends jc{getTypeName(){return"Style"}}class cm extends jc{getTypeName(){return"Script"}}class lm extends jc{getTypeName(){return"URL"}}class Zm extends jc{getTypeName(){return"ResourceURL"}}function Rs(r){return r instanceof jc?r.changingThisBreaksApplicationSecurity:r}function ds(r,c){const f=Ru(r);if(null!=f&&f!==c){if("ResourceURL"===f&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${f} (see ${y})`)}return f===c}function Ru(r){return r instanceof jc&&r.getTypeName()||null}function Jm(r){return new sm(r)}function Td(r){return new Sd(r)}function qm(r){return new cm(r)}function Pp(r){return new lm(r)}function Bl(r){return new Zm(r)}function Id(r){const c=new eh(r);return function Op(){try{return!!(new window.DOMParser).parseFromString(Rl(""),"text/html")}catch{return!1}}()?new Ep(c):c}class Ep{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c="<body><remove></remove>"+c;try{const f=(new window.DOMParser).parseFromString(Rl(c),"text/html").body;return null===f?this.inertDocumentHelper.getInertBodyElement(c):(f.removeChild(f.firstChild),f)}catch{return null}}}class eh{constructor(c){this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(c){const f=this.inertDocument.createElement("template");return f.innerHTML=Rl(c),f}}const Sp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Nl(r){return(r=String(r)).match(Sp)?r:"unsafe:"+r}function Uc(r){const c={};for(const f of r.split(","))c[f]=!0;return c}function wd(...r){const c={};for(const f of r)for(const k in f)f.hasOwnProperty(k)&&(c[k]=!0);return c}const dm=Uc("area,br,col,hr,img,wbr"),Fu=Uc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Bu=Uc("rp,rt"),Ad=wd(dm,wd(Fu,Uc("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wd(Bu,Uc("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wd(Bu,Fu)),kd=Uc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vc=wd(kd,Uc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Uc("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ds=Uc("script,style,template");class pm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let f=c.firstChild,k=!0;for(;f;)if(f.nodeType===Node.ELEMENT_NODE?k=this.startElement(f):f.nodeType===Node.TEXT_NODE?this.chars(f.nodeValue):this.sanitizedSomething=!0,k&&f.firstChild)f=f.firstChild;else for(;f;){f.nodeType===Node.ELEMENT_NODE&&this.endElement(f);let W=this.checkClobberedElement(f,f.nextSibling);if(W){f=W;break}f=this.checkClobberedElement(f,f.parentNode)}return this.buf.join("")}startElement(c){const f=c.nodeName.toLowerCase();if(!Ad.hasOwnProperty(f))return this.sanitizedSomething=!0,!Ds.hasOwnProperty(f);this.buf.push("<"),this.buf.push(f);const k=c.attributes;for(let W=0;W<k.length;W++){const ee=k.item(W),de=ee.name,Te=de.toLowerCase();if(!Vc.hasOwnProperty(Te)){this.sanitizedSomething=!0;continue}let Ve=ee.value;kd[Te]&&(Ve=Nl(Ve)),this.buf.push(" ",de,'="',fm(Ve),'"')}return this.buf.push(">"),!0}endElement(c){const f=c.nodeName.toLowerCase();Ad.hasOwnProperty(f)&&!dm.hasOwnProperty(f)&&(this.buf.push("</"),this.buf.push(f),this.buf.push(">"))}chars(c){this.buf.push(fm(c))}checkClobberedElement(c,f){if(f&&(c.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return f}}const mm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hm=/([^\#-~ |!])/g;function fm(r){return r.replace(/&/g,"&amp;").replace(mm,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(hm,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ju;function Tp(r,c){let f=null;try{ju=ju||Id(r);let k=c?String(c):"";f=ju.getInertBodyElement(k);let W=5,ee=k;do{if(0===W)throw new Error("Failed to sanitize html because the input is unstable");W--,k=ee,ee=f.innerHTML,f=ju.getInertBodyElement(k)}while(k!==ee);return Rl((new pm).sanitizeChildren(Ip(f)||f))}finally{if(f){const k=Ip(f)||f;for(;k.firstChild;)k.removeChild(k.firstChild)}}}function Ip(r){return"content"in r&&function Ld(r){return r.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===r.nodeName}(r)?r.content:null}var Ar=(()=>((Ar=Ar||{})[Ar.NONE=0]="NONE",Ar[Ar.HTML=1]="HTML",Ar[Ar.STYLE=2]="STYLE",Ar[Ar.SCRIPT=3]="SCRIPT",Ar[Ar.URL=4]="URL",Ar[Ar.RESOURCE_URL=5]="RESOURCE_URL",Ar))();function jl(r){const c=re();return c?Ls(c.sanitize(Ar.HTML,r)||""):ds(r,"HTML")?Ls(Rs(r)):Tp(am(),T(r))}function mu(r){const c=re();return c?c.sanitize(Ar.STYLE,r)||"":ds(r,"Style")?Rs(r):T(r)}function Rd(r){const c=re();return c?c.sanitize(Ar.URL,r)||"":ds(r,"URL")?Rs(r):Nl(T(r))}function ad(r){const c=re();if(c)return Dp(c.sanitize(Ar.RESOURCE_URL,r)||"");if(ds(r,"ResourceURL"))return Dp(Rs(r));throw new $(904,!1)}function D(r){const c=re();if(c)return rm(c.sanitize(Ar.SCRIPT,r)||"");if(ds(r,"Script"))return rm(Rs(r));throw new $(905,!1)}function b(r){return Rl(r[0])}function v(r){return function ec(r){return Ll()?.createScriptURL(r)||r}(r[0])}function N(r,c,f){return function S(r,c){return"src"===c&&("embed"===r||"frame"===r||"iframe"===r||"media"===r||"script"===r)||"href"===c&&("base"===r||"link"===r)?ad:Rd}(c,f)(r)}function re(){const r=it();return r&&r[ht]}const he=new Ma("ENVIRONMENT_INITIALIZER"),Fe=new Ma("INJECTOR",-1),_t=new Ma("INJECTOR_DEF_TYPES");class Lt{get(c,f=In){if(f===In){const k=new Error(`NullInjectorError: No provider for ${l(c)}!`);throw k.name="NullInjectorError",k}return f}}function un(r){return{\u0275providers:r}}function _n(...r){return{\u0275providers:Cn(0,r),\u0275fromNgModule:!0}}function Cn(r,...c){const f=[],k=new Set;let W;return ir(c,ee=>{const de=ee;qn(de,f,[],k)&&(W||(W=[]),W.push(de))}),void 0!==W&&Un(W,f),f}function Un(r,c){for(let f=0;f<r.length;f++){const{providers:W}=r[f];fi(W,ee=>{c.push(ee)})}}function qn(r,c,f,k){if(!(r=L(r)))return!1;let W=null,ee=at(r);const de=!ee&&en(r);if(ee||de){if(de&&!de.standalone)return!1;W=r}else{const Ve=r.ngModule;if(ee=at(Ve),!ee)return!1;W=Ve}const Te=k.has(W);if(de){if(Te)return!1;if(k.add(W),de.dependencies){const Ve="function"==typeof de.dependencies?de.dependencies():de.dependencies;for(const xt of Ve)qn(xt,c,f,k)}}else{if(!ee)return!1;{if(null!=ee.imports&&!Te){let xt;k.add(W);try{ir(ee.imports,Jt=>{qn(Jt,c,f,k)&&(xt||(xt=[]),xt.push(Jt))})}finally{}void 0!==xt&&Un(xt,c)}if(!Te){const xt=ma(W)||(()=>new W);c.push({provide:W,useFactory:xt,deps:zt},{provide:_t,useValue:W,multi:!0},{provide:he,useValue:()=>rn(W),multi:!0})}const Ve=ee.providers;null==Ve||Te||fi(Ve,Jt=>{c.push(Jt)})}}return W!==r&&void 0!==r.providers}function fi(r,c){for(let f of r)B(f)&&(f=f.\u0275providers),Array.isArray(f)?fi(f,c):c(f)}const Li=u({provide:String,useValue:u});function Pi(r){return null!==r&&"object"==typeof r&&Li in r}function Ni(r){return"function"==typeof r}const oo=new Ma("Set Injector scope."),_a={},Na={};let ga;function kr(){return void 0===ga&&(ga=new Lt),ga}class Xr{}class Go extends Xr{get destroyed(){return this._destroyed}constructor(c,f,k,W){super(),this.parent=f,this.source=k,this.scopes=W,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,fu(c,de=>this.processProvider(de)),this.records.set(Fe,$c(void 0,this)),W.has("environment")&&this.records.set(Xr,$c(void 0,this));const ee=this.records.get(oo);null!=ee&&"string"==typeof ee.value&&this.scopes.add(ee.value),this.injectorDefTypes=new Set(this.get(_t.multi,zt,ot.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();for(const c of this._onDestroyHooks)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(c){this._onDestroyHooks.push(c)}runInContext(c){this.assertNotDestroyed();const f=En(this),k=Ze(void 0);try{return c()}finally{En(f),Ze(k)}}get(c,f=In,k=ot.Default){this.assertNotDestroyed(),k=ge(k);const W=En(this),ee=Ze(void 0);try{if(!(k&ot.SkipSelf)){let Te=this.records.get(c);if(void 0===Te){const Ve=function hu(r){return"function"==typeof r||"object"==typeof r&&r instanceof Ma}(c)&&Wt(c);Te=Ve&&this.injectableDefInScope(Ve)?$c(Wr(c),_a):null,this.records.set(c,Te)}if(null!=Te)return this.hydrate(c,Te)}return(k&ot.Self?kr():this.parent).get(c,f=k&ot.Optional&&f===In?null:f)}catch(de){if("NullInjectorError"===de.name){if((de[Tn]=de[Tn]||[]).unshift(l(c)),W)throw de;return function je(r,c,f,k){const W=r[Tn];throw c[Nn]&&W.unshift(c[Nn]),r.message=function Et(r,c,f,k=null){r=r&&"\n"===r.charAt(0)&&r.charAt(1)==cn?r.slice(2):r;let W=l(c);if(Array.isArray(c))W=c.map(l).join(" -> ");else if("object"==typeof c){let ee=[];for(let de in c)if(c.hasOwnProperty(de)){let Te=c[de];ee.push(de+":"+("string"==typeof Te?JSON.stringify(Te):l(Te)))}W=`{${ee.join(", ")}}`}return`${f}${k?"("+k+")":""}[${W}]: ${r.replace(Yn,"\n  ")}`}("\n"+r.message,W,f,k),r[mn]=W,r[Tn]=null,r}(de,c,"R3InjectorError",this.source)}throw de}finally{Ze(ee),En(W)}}resolveInjectorInitializers(){const c=En(this),f=Ze(void 0);try{const k=this.get(he.multi,zt,ot.Self);for(const W of k)W()}finally{En(c),Ze(f)}}toString(){const c=[],f=this.records;for(const k of f.keys())c.push(l(k));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processProvider(c){let f=Ni(c=L(c))?c:L(c&&c.provide);const k=function rd(r){return Pi(r)?$c(void 0,r.useValue):$c(Uu(r),_a)}(c);if(Ni(c)||!0!==c.multi)this.records.get(f);else{let W=this.records.get(f);W||(W=$c(void 0,_a,!0),W.factory=()=>q(W.multi),this.records.set(f,W)),f=c,W.multi.push(c)}this.records.set(f,k)}hydrate(c,f){return f.value===_a&&(f.value=Na,f.value=f.factory()),"object"==typeof f.value&&f.value&&function Fd(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(f.value)&&this._ngOnDestroyHooks.add(f.value),f.value}injectableDefInScope(c){if(!c.providedIn)return!1;const f=L(c.providedIn);return"string"==typeof f?"any"===f||this.scopes.has(f):this.injectorDefTypes.has(f)}}function Wr(r){const c=Wt(r),f=null!==c?c.factory:ma(r);if(null!==f)return f;if(r instanceof Ma)throw new $(204,!1);if(r instanceof Function)return function Zr(r){const c=r.length;if(c>0)throw fe(c,"?"),new $(204,!1);const f=function Be(r){return r&&(r[lt]||r[Yt])||null}(r);return null!==f?()=>f.factory(r):()=>new r}(r);throw new $(204,!1)}function Uu(r,c,f){let k;if(Ni(r)){const W=L(r);return ma(W)||Wr(W)}if(Pi(r))k=()=>L(r.useValue);else if(function ji(r){return!(!r||!r.useFactory)}(r))k=()=>r.useFactory(...q(r.deps||[]));else if(function Ci(r){return!(!r||!r.useExisting)}(r))k=()=>rn(L(r.useExisting));else{const W=L(r&&(r.useClass||r.provide));if(!function fl(r){return!!r.deps}(r))return ma(W)||Wr(W);k=()=>new W(...q(r.deps))}return k}function $c(r,c,f=!1){return{factory:r,value:c,multi:f?[]:void 0}}function fu(r,c){for(const f of r)Array.isArray(f)?fu(f,c):f&&B(f)?fu(f.\u0275providers,c):c(f)}class Vu{}class Ul{}class T_{resolveComponentFactory(c){throw function df(r){const c=Error(`No component factory found for ${l(r)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=r,c}(c)}}let wp=(()=>{class r{}return r.NULL=new T_,r})();function I_(){return $u(Vt(),it())}function $u(r,c){return new Ap(oa(r,c))}let Ap=(()=>{class r{constructor(f){this.nativeElement=f}}return r.__NG_ELEMENT_ID__=I_,r})();function w_(r){return r instanceof Ap?r.nativeElement:r}class _m{}let A_=(()=>{class r{}return r.__NG_ELEMENT_ID__=()=>function gm(){const r=it(),f=Ia(Vt().index,r);return(eo(f)?f:r)[jt]}(),r})(),pf=(()=>{class r{}return r.\u0275prov=Ie({token:r,providedIn:"root",factory:()=>null}),r})();class mf{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const hf=new mf("15.2.8"),vm={},nh="ngOriginalError";function ih(r){return r[nh]}class kp{constructor(){this._console=console}handleError(c){const f=this._findOriginalError(c);this._console.error("ERROR",c),f&&this._console.error("ORIGINAL ERROR",f)}_findOriginalError(c){let f=c&&ih(c);for(;f&&ih(f);)f=ih(f);return f||null}}function ff(r){return r.ownerDocument.defaultView}function _f(r){return r.ownerDocument}function gf(r){return r.ownerDocument.body}function $l(r){return r instanceof Function?r():r}function Wu(r,c,f){let k=r.length;for(;;){const W=r.indexOf(c,f);if(-1===W)return W;if(0===W||r.charCodeAt(W-1)<=32){const ee=c.length;if(W+ee===k||r.charCodeAt(W+ee)<=32)return W}f=W+1}}const Cf="ng-template";function j_(r,c,f){let k=0,W=!0;for(;k<r.length;){let ee=r[k++];if("string"==typeof ee&&W){const de=r[k++];if(f&&"class"===ee&&-1!==Wu(de.toLowerCase(),c,0))return!0}else{if(1===ee){for(;k<r.length&&"string"==typeof(ee=r[k++]);)if(ee.toLowerCase()===c)return!0;return!1}"number"==typeof ee&&(W=!1)}}return!1}function yf(r){return 4===r.type&&r.value!==Cf}function U_(r,c,f){return c===(4!==r.type||f?r.value:Cf)}function V_(r,c,f){let k=4;const W=r.attrs||[],ee=function z_(r){for(let c=0;c<r.length;c++)if(co(r[c]))return c;return r.length}(W);let de=!1;for(let Te=0;Te<c.length;Te++){const Ve=c[Te];if("number"!=typeof Ve){if(!de)if(4&k){if(k=2|1&k,""!==Ve&&!U_(r,Ve,f)||""===Ve&&1===c.length){if(_l(k))return!1;de=!0}}else{const xt=8&k?Ve:c[++Te];if(8&k&&null!==r.attrs){if(!j_(r.attrs,xt,f)){if(_l(k))return!1;de=!0}continue}const Mn=$_(8&k?"class":Ve,W,yf(r),f);if(-1===Mn){if(_l(k))return!1;de=!0;continue}if(""!==xt){let Kn;Kn=Mn>ee?"":W[Mn+1].toLowerCase();const oi=8&k?Kn:null;if(oi&&-1!==Wu(oi,xt,0)||2&k&&xt!==Kn){if(_l(k))return!1;de=!0}}}}else{if(!de&&!_l(k)&&!_l(Ve))return!1;if(de&&_l(Ve))continue;de=!1,k=Ve|1&k}}return _l(k)||de}function _l(r){return 0==(1&r)}function $_(r,c,f,k){if(null===c)return-1;let W=0;if(k||!f){let ee=!1;for(;W<c.length;){const de=c[W];if(de===r)return W;if(3===de||6===de)ee=!0;else{if(1===de||2===de){let Te=c[++W];for(;"string"==typeof Te;)Te=c[++W];continue}if(4===de)break;if(0===de){W+=4;continue}}W+=ee?1:2}return-1}return function Cm(r,c){let f=r.indexOf(4);if(f>-1)for(f++;f<r.length;){const k=r[f];if("number"==typeof k)return-1;if(k===c)return f;f++}return-1}(c,r)}function xf(r,c,f=!1){for(let k=0;k<c.length;k++)if(V_(r,c[k],f))return!0;return!1}function Y_(r,c){e:for(let f=0;f<c.length;f++){const k=c[f];if(r.length===k.length){for(let W=0;W<r.length;W++)if(r[W]!==k[W])continue e;return!0}}return!1}function ah(r,c){return r?":not("+c.trim()+")":c}function Mf(r){let c=r[0],f=1,k=2,W="",ee=!1;for(;f<r.length;){let de=r[f];if("string"==typeof de)if(2&k){const Te=r[++f];W+="["+de+(Te.length>0?'="'+Te+'"':"")+"]"}else 8&k?W+="."+de:4&k&&(W+=" "+de);else""!==W&&!_l(de)&&(c+=ah(ee,W),W=""),k=de,ee=ee||!_l(k);f++}return""!==W&&(c+=ah(ee,W)),c}const Yo={};function rh(r){ym(ae(),it(),ei()+r,!1)}function ym(r,c,f,k){if(!k)if(3==(3&c[ue])){const ee=r.preOrderCheckHooks;null!==ee&&Ac(c,ee,f)}else{const ee=r.preOrderHooks;null!==ee&&mc(c,ee,0,f)}tr(f)}const Pf={\u0275\u0275defineInjectable:Ie,\u0275\u0275defineInjector:Ht,\u0275\u0275inject:rn,\u0275\u0275invalidFactoryDep:Sn,resolveForwardRef:L};const K_=u({provide:String,useValue:u});function Bd(r){return void 0!==r.useClass}function Mm(r){return void 0!==r.useFactory}const Ef=Ji("Injectable",void 0,void 0,void 0,(r,c)=>function H_(r,c){let f=null,k=null;r.hasOwnProperty(lt)||Object.defineProperty(r,lt,{get:()=>(null===f&&(f=Ba().compileInjectable(Pf,`ng:///${r.name}/\u0275prov.js`,function sh(r,c){const f=c||{providedIn:null},k={name:r.name,type:r,typeArgumentCount:0,providedIn:f.providedIn};return(Bd(f)||Mm(f))&&void 0!==f.deps&&(k.deps=qd(f.deps)),Bd(f)?k.useClass=f.useClass:function xm(r){return K_ in r}(f)?k.useValue=f.useValue:Mm(f)?k.useFactory=f.useFactory:function G_(r){return void 0!==r.useExisting}(f)&&(k.useExisting=f.useExisting),k}(r,c))),f)}),r.hasOwnProperty(wn)||Object.defineProperty(r,wn,{get:()=>{if(null===k){const W=Ba();k=W.compileFactory(Pf,`ng:///${r.name}/\u0275fac.js`,{name:r.name,type:r,typeArgumentCount:0,deps:_d(r),target:W.FactoryTarget.Injectable})}return k},configurable:!0})}(r,c));function ch(r,c=null,f=null,k){const W=Of(r,c,f,k);return W.resolveInjectorInitializers(),W}function Of(r,c=null,f=null,k,W=new Set){const ee=[f||zt,_n(r)];return k=k||("object"==typeof r?void 0:l(r)),new Go(ee,c||kr(),k||null,W)}let Nd=(()=>{class r{static create(f,k){if(Array.isArray(f))return ch({name:""},k,f,"");{const W=f.name??"";return ch({name:W},f.parent,f.providers,W)}}}return r.THROW_IF_NOT_FOUND=In,r.NULL=new Lt,r.\u0275prov=Ie({token:r,providedIn:"any",factory:()=>rn(Fe)}),r.__NG_ELEMENT_ID__=-1,r})();function lh(r){return r.length>1?" ("+function Q_(r){const c=[];for(let f=0;f<r.length;++f){if(c.indexOf(r[f])>-1)return c.push(r[f]),c;c.push(r[f])}return c}(r.slice().reverse()).map(k=>l(k.token)).join(" -> ")+")":""}function dh(r,c,f,k){const W=[c],ee=f(W),de=k?function k_(r,c){const f=`${r} caused by: ${c instanceof Error?c.message:c}`,k=Error(f);return k[nh]=c,k}(ee,k):Error(ee);return de.addKey=X_,de.keys=W,de.injectors=[r],de.constructResolvingMessage=f,de[nh]=k,de}function X_(r,c){this.injectors.push(r),this.keys.push(c),this.message=this.constructResolvingMessage(this.keys)}function Sf(r,c){const f=[];for(let k=0,W=c.length;k<W;k++){const ee=c[k];f.push(ee&&0!=ee.length?ee.map(l).join(" "):"?")}return Error("Cannot resolve all parameters for '"+l(r)+"'("+f.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+l(r)+"' is decorated with Injectable.")}function tg(r,c){return Error(`Cannot mix multi providers and regular providers, got: ${r} ${c}`)}class sd{constructor(c,f){if(this.token=c,this.id=f,!c)throw new $(208,!1);this.displayName=l(this.token)}static get(c){return Zo.get(L(c))}static get numberOfKeys(){return Zo.numberOfKeys}}class _u{constructor(){this._allKeys=new Map}get(c){if(c instanceof sd)return c;if(this._allKeys.has(c))return this._allKeys.get(c);const f=new sd(c,sd.numberOfKeys);return this._allKeys.set(c,f),f}get numberOfKeys(){return this._allKeys.size}}const Zo=new _u;class Dm{constructor(c,f,k){this.key=c,this.optional=f,this.visibility=k}static fromKey(c){return new Dm(c,!1,null)}}const xc=[];class us{constructor(c,f,k){this.key=c,this.resolvedFactories=f,this.multiProvider=k,this.resolvedFactory=this.resolvedFactories[0]}}class Tf{constructor(c,f){this.factory=c,this.dependencies=f}}function jd(r){let c,f;if(r.useClass){const k=L(r.useClass);c=Qc().factory(k),f=Pm(k)}else r.useExisting?(c=k=>k,f=[Dm.fromKey(sd.get(r.useExisting))]):r.useFactory?(c=r.useFactory,f=function wf(r,c){if(c){const f=c.map(k=>[k]);return c.map(k=>Af(r,k,f))}return Pm(r)}(r.useFactory,r.deps)):(c=()=>r.useValue,f=xc);return new Tf(c,f)}function ng(r){return new us(sd.get(r.provide),[jd(r)],r.multi||!1)}function ig(r){const k=function og(r,c){for(let f=0;f<r.length;f++){const k=r[f],W=c.get(k.key.id);if(W){if(k.multiProvider!==W.multiProvider)throw tg(W,k);if(k.multiProvider)for(let ee=0;ee<k.resolvedFactories.length;ee++)W.resolvedFactories.push(k.resolvedFactories[ee]);else c.set(k.key.id,k)}else{let ee;ee=k.multiProvider?new us(k.key,k.resolvedFactories.slice(),k.multiProvider):k,c.set(k.key.id,ee)}}return c}(If(r,[]).map(ng),new Map);return Array.from(k.values())}function If(r,c){return r.forEach(f=>{if(f instanceof ws)c.push({provide:f,useClass:f});else if(f&&"object"==typeof f&&void 0!==f.provide)c.push(f);else{if(!Array.isArray(f))throw function eg(r){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${r}`)}(f);If(f,c)}}),c}function Pm(r){const c=Qc().parameters(r);if(!c)return[];if(c.some(f=>null==f))throw Sf(r,c);return c.map(f=>Af(r,f,c))}function Af(r,c,f){let k=null,W=!1;if(!Array.isArray(c))return Mc(c instanceof Vr?c.token:c,W,null);let ee=null;for(let de=0;de<c.length;++de){const Te=c[de];Te instanceof ws?k=Te:Te instanceof Vr?k=Te.token:Te instanceof Js?W=!0:Te instanceof Gc||Te instanceof vs?ee=Te:Te instanceof Ma&&(k=Te)}if(k=L(k),null!=k)return Mc(k,W,ee);throw Sf(r,f)}function Mc(r,c,f){return new Dm(sd.get(r),c,f)}const Yu={};class cd{static resolve(c){return ig(c)}static resolveAndCreate(c,f){const k=cd.resolve(c);return cd.fromResolvedProviders(k,f)}static fromResolvedProviders(c,f){return new Jr(c,f)}}let Jr=(()=>{class r{constructor(f,k){this._constructionCounter=0,this._providers=f,this.parent=k||null;const W=f.length;this.keyIds=[],this.objs=[];for(let ee=0;ee<W;ee++)this.keyIds[ee]=f[ee].key.id,this.objs[ee]=Yu}get(f,k=In){return this._getByKey(sd.get(f),null,k)}resolveAndCreateChild(f){const k=cd.resolve(f);return this.createChildFromResolved(k)}createChildFromResolved(f){const k=new r(f);return k.parent=this,k}resolveAndInstantiate(f){return this.instantiateResolved(cd.resolve([f])[0])}instantiateResolved(f){return this._instantiateProvider(f)}getProviderAtIndex(f){if(f<0||f>=this._providers.length)throw function gl(r){return Error(`Index ${r} is out-of-bounds.`)}(f);return this._providers[f]}_new(f){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function J_(r,c){return dh(r,c,function(f){return`Cannot instantiate cyclic dependency!${lh(f)}`})}(this,f.key);return this._instantiateProvider(f)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(f){if(f.multiProvider){const k=[];for(let W=0;W<f.resolvedFactories.length;++W)k[W]=this._instantiate(f,f.resolvedFactories[W]);return k}return this._instantiate(f,f.resolvedFactories[0])}_instantiate(f,k){const W=k.factory;let ee,de;try{ee=k.dependencies.map(Te=>this._getByReflectiveDependency(Te))}catch(Te){throw Te.addKey&&Te.addKey(this,f.key),Te}try{de=W(...ee)}catch(Te){throw function q_(r,c,f,k){return dh(r,k,function(W){const ee=l(W[0].token);return`${c.message}: Error during instantiation of ${ee}!${lh(W)}.`},c)}(this,Te,0,f.key)}return de}_getByReflectiveDependency(f){return this._getByKey(f.key,f.visibility,f.optional?null:In)}_getByKey(f,k,W){return f===r.INJECTOR_KEY?this:k instanceof Gc?this._getByKeySelf(f,W):this._getByKeyDefault(f,W,k)}_getObjByKeyId(f){for(let k=0;k<this.keyIds.length;k++)if(this.keyIds[k]===f)return this.objs[k]===Yu&&(this.objs[k]=this._new(this._providers[k])),this.objs[k];return Yu}_throwOrNull(f,k){if(k!==In)return k;throw function Z_(r,c){return dh(r,c,function(f){return`No provider for ${l(f[0].token)}!${lh(f)}`})}(this,f)}_getByKeySelf(f,k){const W=this._getObjByKeyId(f.id);return W!==Yu?W:this._throwOrNull(f,k)}_getByKeyDefault(f,k,W){let ee;for(ee=W instanceof vs?this.parent:this;ee instanceof r;){const de=ee,Te=de._getObjByKeyId(f.id);if(Te!==Yu)return Te;ee=de.parent}return null!==ee?ee.get(f.token,k):this._throwOrNull(f,k)}get displayName(){return`ReflectiveInjector(providers: [${function ps(r,c){const f=[];for(let k=0;k<r._providers.length;++k)f[k]=c(r.getProviderAtIndex(k));return f}(this,k=>' "'+k.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return r.INJECTOR_KEY=sd.get(Nd),r})();function gu(r,c=ot.Default){const f=it();return null===f?rn(r,c):Lc(Vt(),f,L(r),c)}function Em(){throw new Error("invalid")}function vu(r,c){const f=r.contentQueries;if(null!==f)for(let k=0;k<f.length;k+=2){const ee=f[k+1];if(-1!==ee){const de=r.data[ee];Ic(f[k]),de.contentQueries(2,c[ee],ee)}}}function Lp(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){const Mn=c.blueprint.slice();return Mn[We]=W,Mn[ue]=76|k,(null!==Jt||r&&1024&r[ue])&&(Mn[ue]|=1024),ar(Mn),Mn[et]=Mn[It]=r,Mn[Pt]=f,Mn[St]=de||r&&r[St],Mn[jt]=Te||r&&r[jt],Mn[ht]=Ve||r&&r[ht]||null,Mn[dn]=xt||r&&r[dn]||null,Mn[bt]=ee,Mn[ci]=function Sl(){return qp++}(),Mn[Ui]=Jt,Mn[Ot]=2==c.type?r[Ot]:Mn,Mn}function bu(r,c,f,k,W){let ee=r.data[c];if(null===ee)ee=Ud(r,c,f,k,W),function Tc(){return ao.lFrame.inI18n}()&&(ee.flags|=32);else if(64&ee.type){ee.type=f,ee.value=k,ee.attrs=W;const de=Rn();ee.injectorIndex=null===de?-1:de.injectorIndex}return ni(ee,!0),ee}function Ud(r,c,f,k,W){const ee=On(),de=Ii(),Ve=r.data[c]=function dd(r,c,f,k,W,ee){return{type:f,index:k,insertBeforeIndex:null,injectorIndex:c?c.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:W,attrs:ee,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,de?ee:ee&&ee.parent,f,c,k,W);return null===r.firstChild&&(r.firstChild=Ve),null!==ee&&(de?null==ee.child&&null!==Ve.parent&&(ee.child=Ve):null===ee.next&&(ee.next=Ve,Ve.prev=ee)),Ve}function ld(r,c,f,k){if(0===f)return-1;const W=c.length;for(let ee=0;ee<f;ee++)c.push(k),r.blueprint.push(k),r.data.push(null);return W}function Rp(r,c,f){Bs(c);try{const k=r.viewQuery;null!==k&&Im(1,k,f);const W=r.template;null!==W&&Fp(r,c,W,1,f),r.firstCreatePass&&(r.firstCreatePass=!1),r.staticContentQueries&&vu(r,c),r.staticViewQueries&&Im(2,r.viewQuery,f);const ee=r.components;null!==ee&&function Om(r,c){for(let f=0;f<c.length;f++)bg(r,c[f])}(c,ee)}catch(k){throw r.firstCreatePass&&(r.incompleteFirstPass=!0,r.firstCreatePass=!1),k}finally{c[ue]&=-5,Eo()}}function Cu(r,c,f,k){const W=c[ue];if(128!=(128&W)){Bs(c);try{ar(c),Cr(r.bindingStartIndex),null!==f&&Fp(r,c,f,2,k);const de=3==(3&W);if(de){const xt=r.preOrderCheckHooks;null!==xt&&Ac(c,xt,null)}else{const xt=r.preOrderHooks;null!==xt&&mc(c,xt,0,null),Re(c,0)}if(function Ws(r){for(let c=bp(r);null!==c;c=el(c)){if(!c[gn])continue;const f=c[kn];for(let k=0;k<f.length;k++){const W=f[k];512&W[ue]||Sr(W[et],1),W[ue]|=512}}}(c),function vg(r){for(let c=bp(r);null!==c;c=el(c))for(let f=ai;f<c.length;f++){const k=c[f],W=k[ut];Za(k)&&Cu(W,k,W.template,k[Pt])}}(c),null!==r.contentQueries&&vu(r,c),de){const xt=r.contentCheckHooks;null!==xt&&Ac(c,xt)}else{const xt=r.contentHooks;null!==xt&&mc(c,xt,1),Re(c,1)}!function uh(r,c){const f=r.hostBindingOpCodes;if(null!==f)try{for(let k=0;k<f.length;k++){const W=f[k];if(W<0)tr(~W);else{const ee=W,de=f[++k],Te=f[++k];is(de,ee),Te(2,c[ee])}}}finally{tr(-1)}}(r,c);const Te=r.components;null!==Te&&function ag(r,c){for(let f=0;f<c.length;f++)wc(r,c[f])}(c,Te);const Ve=r.viewQuery;if(null!==Ve&&Im(2,Ve,k),de){const xt=r.viewCheckHooks;null!==xt&&Ac(c,xt)}else{const xt=r.viewHooks;null!==xt&&mc(c,xt,2),Re(c,2)}!0===r.firstUpdatePass&&(r.firstUpdatePass=!1),c[ue]&=-41,512&c[ue]&&(c[ue]&=-513,Sr(c[et],-1))}finally{Eo()}}}function Fp(r,c,f,k,W){const ee=ei(),de=2&k;try{tr(-1),de&&c.length>li&&ym(r,c,li,!1),ha(de?2:0,W),f(k,W)}finally{tr(ee),ha(de?3:1,W)}}function sc(r,c,f){if(Fo(c)){const W=c.directiveEnd;for(let ee=c.directiveStart;ee<W;ee++){const de=r.data[ee];de.contentQueries&&de.contentQueries(1,f[ee],ee)}}}function Vd(r,c,f){ti()&&(function lg(r,c,f,k){const W=f.directiveStart,ee=f.directiveEnd;Zi(f)&&function _g(r,c,f){const k=oa(c,r),W=kf(f),ee=r[St],de=Bp(r,Lp(r,W,null,f.onPush?32:16,k,c,ee,ee.createRenderer(k,f),null,null,null));r[c.index]=de}(c,f,r.data[W+f.componentOffset]),r.firstCreatePass||Xs(f,c),As(k,c);const de=f.initialInputs;for(let Te=W;Te<ee;Te++){const Ve=r.data[Te],xt=fc(c,r,Te,f);As(xt,c),null!==de&&Ch(0,Te-W,xt,Ve,0,de),na(Ve)&&(Ia(f.index,c)[Pt]=fc(c,r,Te,f))}}(r,c,f,oa(f,c)),64==(64&f.flags)&&Rf(r,c,f))}function ph(r,c,f=oa){const k=c.localNames;if(null!==k){let W=c.index+1;for(let ee=0;ee<k.length;ee+=2){const de=k[ee+1],Te=-1===de?f(c,r):r[de];r[W++]=Te}}}function kf(r){const c=r.tView;return null===c||c.incompleteFirstPass?r.tView=mh(1,null,r.template,r.decls,r.vars,r.directiveDefs,r.pipeDefs,r.viewQuery,r.schemas,r.consts):c}function mh(r,c,f,k,W,ee,de,Te,Ve,xt){const Jt=li+k,Mn=Jt+W,Kn=function Hu(r,c){const f=[];for(let k=0;k<c;k++)f.push(k<r?null:Yo);return f}(Jt,Mn),oi="function"==typeof xt?xt():xt;return Kn[ut]={type:r,blueprint:Kn,template:f,queries:null,viewQuery:Te,declTNode:c,data:Kn.slice().fill(null,Jt),bindingStartIndex:Jt,expandoStartIndex:Mn,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof ee?ee():ee,pipeRegistry:"function"==typeof de?de():de,firstChild:null,schemas:Ve,consts:oi,incompleteFirstPass:!1}}function hh(r,c,f,k){const W=Bf(c);null===f?W.push(k):(W.push(f),r.firstCreatePass&&Nf(r).push(k,W.length-1))}function ta(r,c,f,k){for(let W in r)if(r.hasOwnProperty(W)){f=null===f?{}:f;const ee=r[W];null===k?fh(f,c,W,ee):k.hasOwnProperty(W)&&fh(f,c,k[W],ee)}return f}function fh(r,c,f,k){r.hasOwnProperty(f)?r[f].push(c,k):r[f]=[c,k]}function Wc(r,c,f,k,W,ee,de,Te){const Ve=oa(c,f);let Jt,xt=c.inputs;!Te&&null!=xt&&(Jt=xt[k])?(Dh(r,f,Jt,k,W),Zi(c)&&function ja(r,c){const f=Ia(c,r);16&f[ue]||(f[ue]|=32)}(f,c.index)):3&c.type&&(k=function Lf(r){return"class"===r?"className":"for"===r?"htmlFor":"formaction"===r?"formAction":"innerHtml"===r?"innerHTML":"readonly"===r?"readOnly":"tabindex"===r?"tabIndex":r}(k),W=null!=de?de(W,c.value||"",k):W,ee.setProperty(Ve,k,W))}function Ku(r,c,f,k){if(ti()){const W=null===k?null:{"":-1},ee=function ug(r,c){const f=r.directiveRegistry;let k=null,W=null;if(f)for(let ee=0;ee<f.length;ee++){const de=f[ee];if(xf(c,de.selectors,!1))if(k||(k=[]),na(de))if(null!==de.findHostDirectiveDefs){const Te=[];W=W||new Map,de.findHostDirectiveDefs(de,Te,W),k.unshift(...Te,de),vh(r,c,Te.length)}else k.unshift(de),vh(r,c,0);else W=W||new Map,de.findHostDirectiveDefs?.(de,k,W),k.push(de)}return null===k?null:[k,W]}(r,f);let de,Te;null===ee?de=Te=null:[de,Te]=ee,null!==de&&gh(r,c,f,de,W,Te),W&&function pg(r,c,f){if(c){const k=r.localNames=[];for(let W=0;W<c.length;W+=2){const ee=f[c[W+1]];if(null==ee)throw new $(-301,!1);k.push(c[W],ee)}}}(f,k,W)}f.mergedAttrs=lo(f.mergedAttrs,f.attrs)}function gh(r,c,f,k,W,ee){for(let xt=0;xt<k.length;xt++)yr(Xs(f,c),r,k[xt].type);!function hg(r,c,f){r.flags|=1,r.directiveStart=c,r.directiveEnd=c+f,r.providerIndexes=c}(f,r.data.length,k.length);for(let xt=0;xt<k.length;xt++){const Jt=k[xt];Jt.providersResolver&&Jt.providersResolver(Jt)}let de=!1,Te=!1,Ve=ld(r,c,k.length,null);for(let xt=0;xt<k.length;xt++){const Jt=k[xt];f.mergedAttrs=lo(f.mergedAttrs,Jt.hostAttrs),fg(r,f,c,Ve,Jt),mg(Ve,Jt,W),null!==Jt.contentQueries&&(f.flags|=4),(null!==Jt.hostBindings||null!==Jt.hostAttrs||0!==Jt.hostVars)&&(f.flags|=64);const Mn=Jt.type.prototype;!de&&(Mn.ngOnChanges||Mn.ngOnInit||Mn.ngDoCheck)&&((r.preOrderHooks??(r.preOrderHooks=[])).push(f.index),de=!0),!Te&&(Mn.ngOnChanges||Mn.ngDoCheck)&&((r.preOrderCheckHooks??(r.preOrderCheckHooks=[])).push(f.index),Te=!0),Ve++}!function il(r,c,f){const W=c.directiveEnd,ee=r.data,de=c.attrs,Te=[];let Ve=null,xt=null;for(let Jt=c.directiveStart;Jt<W;Jt++){const Mn=ee[Jt],Kn=f?f.get(Mn):null,gi=Kn?Kn.outputs:null;Ve=ta(Mn.inputs,Jt,Ve,Kn?Kn.inputs:null),xt=ta(Mn.outputs,Jt,xt,gi);const Bi=null===Ve||null===de||yf(c)?null:gg(Ve,Jt,de);Te.push(Bi)}null!==Ve&&(Ve.hasOwnProperty("class")&&(c.flags|=8),Ve.hasOwnProperty("style")&&(c.flags|=16)),c.initialInputs=Te,c.inputs=Ve,c.outputs=xt}(r,f,ee)}function Rf(r,c,f){const k=f.directiveStart,W=f.directiveEnd,ee=f.index,de=function Br(){return ao.lFrame.currentDirectiveIndex}();try{tr(ee);for(let Te=k;Te<W;Te++){const Ve=r.data[Te],xt=c[Te];yi(Te),(null!==Ve.hostBindings||0!==Ve.hostVars||null!==Ve.hostAttrs)&&dg(Ve,xt)}}finally{tr(-1),yi(de)}}function dg(r,c){null!==r.hostBindings&&r.hostBindings(1,c)}function vh(r,c,f){c.componentOffset=f,(r.components??(r.components=[])).push(c.index)}function mg(r,c,f){if(f){if(c.exportAs)for(let k=0;k<c.exportAs.length;k++)f[c.exportAs[k]]=r;na(c)&&(f[""]=r)}}function fg(r,c,f,k,W){r.data[k]=W;const ee=W.factory||(W.factory=ma(W.type)),de=new yn(ee,na(W),gu);r.blueprint[k]=de,f[k]=de,function Gu(r,c,f,k,W){const ee=W.hostBindings;if(ee){let de=r.hostBindingOpCodes;null===de&&(de=r.hostBindingOpCodes=[]);const Te=~c.index;(function cg(r){let c=r.length;for(;c>0;){const f=r[--c];if("number"==typeof f&&f<0)return f}return 0})(de)!=Te&&de.push(Te),de.push(f,k,ee)}}(r,c,k,ld(r,f,W.hostVars,Yo),W)}function ol(r,c,f,k,W,ee){const de=oa(r,c);bh(c[jt],de,ee,r.value,f,k,W)}function bh(r,c,f,k,W,ee,de){if(null==ee)r.removeAttribute(c,W,f);else{const Te=null==de?T(ee):de(ee,k||"",W);r.setAttribute(c,W,Te,f)}}function Ch(r,c,f,k,W,ee){const de=ee[c];if(null!==de){const Te=k.setInput;for(let Ve=0;Ve<de.length;){const xt=de[Ve++],Jt=de[Ve++],Mn=de[Ve++];null!==Te?k.setInput(f,Mn,xt,Jt):f[Jt]=Mn}}}function gg(r,c,f){let k=null,W=0;for(;W<f.length;){const ee=f[W];if(0!==ee)if(5!==ee){if("number"==typeof ee)break;if(r.hasOwnProperty(ee)){null===k&&(k=[]);const de=r[ee];for(let Te=0;Te<de.length;Te+=2)if(de[Te]===c){k.push(ee,de[Te+1],f[W+1]);break}}W+=2}else W+=2;else W+=4}return k}function Ff(r,c,f,k){return[r,!0,!1,c,null,0,k,f,null,null]}function wc(r,c){const f=Ia(c,r);if(Za(f)){const k=f[ut];48&f[ue]?Cu(k,f,k.template,f[Pt]):f[Ae]>0&&yh(f)}}function yh(r){for(let k=bp(r);null!==k;k=el(k))for(let W=ai;W<k.length;W++){const ee=k[W];if(Za(ee))if(512&ee[ue]){const de=ee[ut];Cu(de,ee,de.template,ee[Pt])}else ee[Ae]>0&&yh(ee)}const f=r[ut].components;if(null!==f)for(let k=0;k<f.length;k++){const W=Ia(f[k],r);Za(W)&&W[Ae]>0&&yh(W)}}function bg(r,c){const f=Ia(c,r),k=f[ut];(function Cg(r,c){for(let f=c.length;f<r.blueprint.length;f++)c.push(r.blueprint[f])})(k,f),Rp(k,f,f[Pt])}function Bp(r,c){return r[on]?r[Nt][At]=c:r[on]=c,r[Nt]=c,c}function Sm(r){for(;r;){r[ue]|=32;const c=Zl(r);if(qa(r)&&!c)return r;r=c}return null}function Tm(r,c,f,k=!0){const W=c[St];W.begin&&W.begin();try{Cu(r,c,r.template,f)}catch(de){throw k&&Mh(c,de),de}finally{W.end&&W.end()}}function Im(r,c,f){Ic(0),c(r,f)}function Bf(r){return r[Le]||(r[Le]=[])}function Nf(r){return r.cleanup||(r.cleanup=[])}function xh(r,c,f){return(null===r||na(r))&&(f=function Ro(r){for(;Array.isArray(r);){if("object"==typeof r[Zn])return r;r=r[We]}return null}(f[c.index])),f[jt]}function Mh(r,c){const f=r[dn],k=f?f.get(kp,null):null;k&&k.handleError(c)}function Dh(r,c,f,k,W){for(let ee=0;ee<f.length;){const de=f[ee++],Te=f[ee++],Ve=c[de],xt=r.data[de];null!==xt.setInput?xt.setInput(Ve,W,k,Te):Ve[Te]=W}}function ud(r,c,f){const k=ya(c,r);Qr(r[jt],k,f)}function wm(r,c,f){let k=f?r.styles:null,W=f?r.classes:null,ee=0;if(null!==c)for(let de=0;de<c.length;de++){const Te=c[de];"number"==typeof Te?ee=Te:1==ee?W=m(W,Te):2==ee&&(k=m(k,Te+": "+c[++de]+";"))}f?r.styles=k:r.stylesWithoutHost=k,f?r.classes=W:r.classesWithoutHost=W}function Am(r,c,f,k,W=!1){for(;null!==f;){const ee=c[f.index];if(null!==ee&&k.push(da(ee)),Oo(ee))for(let Te=ai;Te<ee.length;Te++){const Ve=ee[Te],xt=Ve[ut].firstChild;null!==xt&&Am(Ve[ut],Ve,xt,k)}const de=f.type;if(8&de)Am(r,c,f.child,k);else if(32&de){const Te=ls(f,c);let Ve;for(;Ve=Te();)k.push(Ve)}else if(16&de){const Te=Lu(c,f);if(Array.isArray(Te))k.push(...Te);else{const Ve=Zl(c[Ot]);Am(Ve[ut],Ve,Te,k,!0)}}f=W?f.projectionNext:f.next}return k}class vl{get rootNodes(){const c=this._lView,f=c[ut];return Am(f,c,f.firstChild,[])}constructor(c,f){this._lView=c,this._cdRefInjectingView=f,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Pt]}set context(c){this._lView[Pt]=c}get destroyed(){return 128==(128&this._lView[ue])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const c=this._lView[et];if(Oo(c)){const f=c[$t],k=f?f.indexOf(this):-1;k>-1&&(ku(c,k),qo(f,k))}this._attachedToViewContainer=!1}Cp(this._lView[ut],this._lView)}onDestroy(c){hh(this._lView[ut],this._lView,null,c)}markForCheck(){Sm(this._cdRefInjectingView||this._lView)}detach(){this._lView[ue]&=-65}reattach(){this._lView[ue]|=64}detectChanges(){Tm(this._lView[ut],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Cd(r,c){Cc(r,c,c[jt],2,null,null)}(this._lView[ut],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new $(902,!1);this._appRef=c}}class yg extends vl{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;Tm(c[ut],c,c[Pt],!1)}checkNoChanges(){}get context(){return null}}class jf extends wp{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const f=en(c);return new yu(f,this.ngModule)}}function Uf(r){const c=[];for(let f in r)r.hasOwnProperty(f)&&c.push({propName:r[f],templateName:f});return c}class Mg{constructor(c,f){this.injector=c,this.parentInjector=f}get(c,f,k){k=ge(k);const W=this.injector.get(c,vm,k);return W!==vm||f===vm?W:this.parentInjector.get(c,f,k)}}class yu extends Ul{get inputs(){return Uf(this.componentDef.inputs)}get outputs(){return Uf(this.componentDef.outputs)}constructor(c,f){super(),this.componentDef=c,this.ngModule=f,this.componentType=c.type,this.selector=function zu(r){return r.map(Mf).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!f}create(c,f,k,W){let ee=(W=W||this.ngModule)instanceof Xr?W:W?.injector;ee&&null!==this.componentDef.getStandaloneInjector&&(ee=this.componentDef.getStandaloneInjector(ee)||ee);const de=ee?new Mg(c,ee):c,Te=de.get(_m,null);if(null===Te)throw new $(407,!1);const Ve=de.get(pf,null),xt=Te.createRenderer(null,this.componentDef),Jt=this.componentDef.selectors[0][0]||"div",Mn=k?function rg(r,c,f){return r.selectRootElement(c,f===qe.ShadowDom)}(xt,k,this.componentDef.encapsulation):wu(xt,Jt,function xg(r){const c=r.toLowerCase();return"svg"===c?mr:"math"===c?Fr:null}(Jt)),Kn=this.componentDef.onPush?288:272,oi=mh(0,null,null,1,0,null,null,null,null,null),gi=Lp(null,oi,null,Kn,null,null,Te,xt,Ve,de,null);let Bi,Xi;Bs(gi);try{const fo=this.componentDef;let $o,Ai=null;fo.findHostDirectiveDefs?($o=[],Ai=new Map,fo.findHostDirectiveDefs(fo,$o,Ai),$o.push(fo)):$o=[fo];const la=function Dg(r,c){const f=r[ut],k=li;return r[k]=c,bu(f,k,2,"#host",null)}(gi,Mn),Es=function Pg(r,c,f,k,W,ee,de,Te){const Ve=W[ut];!function Eg(r,c,f,k){for(const W of r)c.mergedAttrs=lo(c.mergedAttrs,W.hostAttrs);null!==c.mergedAttrs&&(wm(c,c.mergedAttrs,!0),null!==f&&nl(k,f,c))}(k,r,c,de);const xt=ee.createRenderer(c,f),Jt=Lp(W,kf(f),null,f.onPush?32:16,W[r.index],r,ee,xt,Te||null,null,null);return Ve.firstCreatePass&&vh(Ve,r,k.length-1),Bp(W,Jt),W[r.index]=Jt}(la,Mn,fo,$o,gi,Te,xt);Xi=fr(oi,li),Mn&&function Sg(r,c,f,k){if(k)Ri(r,f,["ng-version",hf.full]);else{const{attrs:W,classes:ee}=function Df(r){const c=[],f=[];let k=1,W=2;for(;k<r.length;){let ee=r[k];if("string"==typeof ee)2===W?""!==ee&&c.push(ee,r[++k]):8===W&&f.push(ee);else{if(!_l(W))break;W=ee}k++}return{attrs:c,classes:f}}(c.selectors[0]);W&&Ri(r,f,W),ee&&ee.length>0&&lu(r,f,ee.join(" "))}}(xt,fo,Mn,k),void 0!==f&&function Tg(r,c,f){const k=r.projection=[];for(let W=0;W<c.length;W++){const ee=f[W];k.push(null!=ee?Array.from(ee):null)}}(Xi,this.ngContentSelectors,f),Bi=function Og(r,c,f,k,W,ee){const de=Vt(),Te=W[ut],Ve=oa(de,W);gh(Te,W,de,f,null,k);for(let Jt=0;Jt<f.length;Jt++)As(fc(W,Te,de.directiveStart+Jt,de),W);Rf(Te,W,de),Ve&&As(Ve,W);const xt=fc(W,Te,de.directiveStart+de.componentOffset,de);if(r[Pt]=W[Pt]=xt,null!==ee)for(const Jt of ee)Jt(xt,c);return sc(Te,de,r),xt}(Es,fo,$o,Ai,gi,[Vf]),Rp(oi,gi,null)}finally{Eo()}return new Ph(this.componentType,Bi,$u(Xi,gi),gi,Xi)}}class Ph extends Vu{constructor(c,f,k,W,ee){super(),this.location=k,this._rootLView=W,this._tNode=ee,this.instance=f,this.hostView=this.changeDetectorRef=new yg(W),this.componentType=c}setInput(c,f){const k=this._tNode.inputs;let W;if(null!==k&&(W=k[c])){const ee=this._rootLView;Dh(ee[ut],ee,W,c,f),Sm(Ia(this._tNode.index,ee))}}get injector(){return new Ga(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}function Vf(){const r=Vt();Xo(it()[ut],r)}function $f(r){return Object.getPrototypeOf(r.prototype).constructor}function Eh(r){let c=$f(r.type),f=!0;const k=[r];for(;c;){let W;if(na(r))W=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new $(903,!1);W=c.\u0275dir}if(W){if(f){k.push(W);const de=r;de.inputs=Oh(r.inputs),de.declaredInputs=Oh(r.declaredInputs),de.outputs=Oh(r.outputs);const Te=W.hostBindings;Te&&Qu(r,Te);const Ve=W.viewQuery,xt=W.contentQueries;if(Ve&&wg(r,Ve),xt&&Ag(r,xt),h(r.inputs,W.inputs),h(r.declaredInputs,W.declaredInputs),h(r.outputs,W.outputs),na(W)&&W.data.animation){const Jt=r.data;Jt.animation=(Jt.animation||[]).concat(W.data.animation)}}const ee=W.features;if(ee)for(let de=0;de<ee.length;de++){const Te=ee[de];Te&&Te.ngInherit&&Te(r),Te===Eh&&(f=!1)}}c=Object.getPrototypeOf(c)}!function Ig(r){let c=0,f=null;for(let k=r.length-1;k>=0;k--){const W=r[k];W.hostVars=c+=W.hostVars,W.hostAttrs=lo(W.hostAttrs,f=lo(f,W.hostAttrs))}}(k)}function Oh(r){return r===ze?{}:r===zt?[]:r}function wg(r,c){const f=r.viewQuery;r.viewQuery=f?(k,W)=>{c(k,W),f(k,W)}:c}function Ag(r,c){const f=r.contentQueries;r.contentQueries=f?(k,W,ee)=>{c(k,W,ee),f(k,W,ee)}:c}function Qu(r,c){const f=r.hostBindings;r.hostBindings=f?(k,W)=>{c(k,W),f(k,W)}:c}const kg=["providersResolver"],Lg=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Wf(r){let f,c=$f(r.type);f=na(r)?c.\u0275cmp:c.\u0275dir;const k=r;for(const W of kg)k[W]=f[W];if(na(f))for(const W of Lg)k[W]=f[W]}function zf(r){return c=>{c.findHostDirectiveDefs=Yf,c.hostDirectives=(Array.isArray(r)?r:r()).map(f=>"function"==typeof f?{directive:L(f),inputs:ze,outputs:ze}:{directive:L(f.directive),inputs:Hf(f.inputs),outputs:Hf(f.outputs)})}}function Yf(r,c,f){if(null!==r.hostDirectives)for(const k of r.hostDirectives){const W=Hn(k.directive);Rg(W.declaredInputs,k.inputs),Yf(W,c,f),f.set(W,k),c.push(W)}}function Hf(r){if(void 0===r||0===r.length)return ze;const c={};for(let f=0;f<r.length;f+=2)c[r[f]]=r[f+1];return c}function Rg(r,c){for(const f in c)c.hasOwnProperty(f)&&(r[c[f]]=r[f])}function Xu(r){return!!Sh(r)&&(Array.isArray(r)||!(r instanceof Map)&&Symbol.iterator in r)}function Sh(r){return null!==r&&("function"==typeof r||"object"==typeof r)}function Xf(r,c){const f=Xu(r),k=Xu(c);return f&&k?function Gf(r,c,f){const k=r[Symbol.iterator](),W=c[Symbol.iterator]();for(;;){const ee=k.next(),de=W.next();if(ee.done&&de.done)return!0;if(ee.done||de.done||!f(ee.value,de.value))return!1}}(r,c,Xf):!(f||!r||"object"!=typeof r&&"function"!=typeof r||k||!c||"object"!=typeof c&&"function"!=typeof c)||Object.is(r,c)}function Wl(r,c,f){return r[c]=f}function xu(r,c){return r[c]}function cc(r,c,f){return!Object.is(r[c],f)&&(r[c]=f,!0)}function Mu(r,c,f,k){const W=cc(r,c,f);return cc(r,c+1,k)||W}function km(r,c,f,k,W){const ee=Mu(r,c,f,k);return cc(r,c+2,W)||ee}function Lr(r,c,f,k,W,ee){const de=Mu(r,c,f,k);return Mu(r,c+2,W,ee)||de}function Np(r,c,f,k){const W=it();return cc(W,_s(),c)&&(ae(),ol(Ao(),W,r,c,f,k)),Np}function Zu(r,c){let f=!1,k=Po();for(let ee=1;ee<c.length;ee+=2)f=cc(r,k++,c[ee])||f;if(Cr(k),!f)return Yo;let W=c[0];for(let ee=1;ee<c.length;ee+=2)W+=T(c[ee])+c[ee+1];return W}function Ju(r,c,f,k){return cc(r,_s(),f)?c+T(f)+k:Yo}function qu(r,c,f,k,W,ee){const Te=Mu(r,Po(),f,W);return Os(2),Te?c+T(f)+k+T(W)+ee:Yo}function ep(r,c,f,k,W,ee,de,Te){const xt=km(r,Po(),f,W,de);return Os(3),xt?c+T(f)+k+T(W)+ee+T(de)+Te:Yo}function $d(r,c,f,k,W,ee,de,Te,Ve,xt){const Mn=Lr(r,Po(),f,W,de,Ve);return Os(4),Mn?c+T(f)+k+T(W)+ee+T(de)+Te+T(Ve)+xt:Yo}function tp(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn){const Kn=Po();let oi=Lr(r,Kn,f,W,de,Ve);return oi=cc(r,Kn+4,Jt)||oi,Os(5),oi?c+T(f)+k+T(W)+ee+T(de)+Te+T(Ve)+xt+T(Jt)+Mn:Yo}function Wd(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi){const gi=Po();let Bi=Lr(r,gi,f,W,de,Ve);return Bi=Mu(r,gi+4,Jt,Kn)||Bi,Os(6),Bi?c+T(f)+k+T(W)+ee+T(de)+Te+T(Ve)+xt+T(Jt)+Mn+T(Kn)+oi:Yo}function np(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi){const Xi=Po();let fo=Lr(r,Xi,f,W,de,Ve);return fo=km(r,Xi+4,Jt,Kn,gi)||fo,Os(7),fo?c+T(f)+k+T(W)+ee+T(de)+Te+T(Ve)+xt+T(Jt)+Mn+T(Kn)+oi+T(gi)+Bi:Yo}function ip(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo){const $o=Po();let Ai=Lr(r,$o,f,W,de,Ve);return Ai=Lr(r,$o+4,Jt,Kn,gi,Xi)||Ai,Os(8),Ai?c+T(f)+k+T(W)+ee+T(de)+Te+T(Ve)+xt+T(Jt)+Mn+T(Kn)+oi+T(gi)+Bi+T(Xi)+fo:Yo}function Th(r,c,f,k,W,ee){const de=it(),Te=Ju(de,c,f,k);return Te!==Yo&&ol(Ao(),de,r,Te,W,ee),Th}function Ih(r,c,f,k,W,ee,de,Te){const Ve=it(),xt=qu(Ve,c,f,k,W,ee);return xt!==Yo&&ol(Ao(),Ve,r,xt,de,Te),Ih}function Lm(r,c,f,k,W,ee,de,Te,Ve,xt){const Jt=it(),Mn=ep(Jt,c,f,k,W,ee,de,Te);return Mn!==Yo&&ol(Ao(),Jt,r,Mn,Ve,xt),Lm}function wh(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn){const Kn=it(),oi=$d(Kn,c,f,k,W,ee,de,Te,Ve,xt);return oi!==Yo&&ol(Ao(),Kn,r,oi,Jt,Mn),wh}function Ah(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi){const gi=it(),Bi=tp(gi,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn);return Bi!==Yo&&ol(Ao(),gi,r,Bi,Kn,oi),Ah}function kh(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi){const Xi=it(),fo=Wd(Xi,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi);return fo!==Yo&&ol(Ao(),Xi,r,fo,gi,Bi),kh}function jp(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo){const $o=it(),Ai=np($o,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi);return Ai!==Yo&&ol(Ao(),$o,r,Ai,Xi,fo),jp}function Up(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo,$o,Ai){const la=it(),Es=ip(la,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo);return Es!==Yo&&ol(Ao(),la,r,Es,$o,Ai),Up}function Lh(r,c,f,k){const W=it(),ee=Zu(W,c);return ee!==Yo&&ol(Ao(),W,r,ee,f,k),Lh}function Zf(r){const c=hp(r);Tm(c[ut],c,r)}function Jf(r,c,f,k,W,ee,de,Te){const Ve=it(),xt=ae(),Jt=r+li,Mn=xt.firstCreatePass?function Fg(r,c,f,k,W,ee,de,Te,Ve){const xt=c.consts,Jt=bu(c,r,4,de||null,Pa(xt,Te));Ku(c,f,Jt,Pa(xt,Ve)),Xo(c,Jt);const Mn=Jt.tView=mh(2,Jt,k,W,ee,c.directiveRegistry,c.pipeRegistry,null,c.schemas,xt);return null!==c.queries&&(c.queries.template(c,Jt),Mn.queries=c.queries.embeddedTView(Jt)),Jt}(Jt,xt,Ve,c,f,k,W,ee,de):xt.data[Jt];ni(Mn,!1);const Kn=Ve[jt].createComment("");td(xt,Ve,Kn,Mn),As(Kn,Ve),Bp(Ve,Ve[Jt]=Ff(Kn,Ve,Kn,Mn)),Wo(Mn)&&Vd(xt,Ve,Mn),null!=de&&ph(Ve,Mn,Te)}function qf(r,c,f,k){f>=r.data.length&&(r.data[f]=null,r.blueprint[f]=null),c[f]=k}function e_(r){return br(function io(){return ao.lFrame.contextLView}(),li+r)}function Rh(r,c,f){const k=it();return cc(k,_s(),c)&&Wc(ae(),Ao(),k,r,c,k[jt],f,!1),Rh}function Fh(r,c,f,k,W){const de=W?"class":"style";Dh(r,f,c.inputs[de],de,k)}function Rm(r,c,f,k){const W=it(),ee=ae(),de=li+r,Te=W[jt],Ve=ee.firstCreatePass?function Bg(r,c,f,k,W,ee){const de=c.consts,Ve=bu(c,r,2,k,Pa(de,W));return Ku(c,f,Ve,Pa(de,ee)),null!==Ve.attrs&&wm(Ve,Ve.attrs,!1),null!==Ve.mergedAttrs&&wm(Ve,Ve.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,Ve),Ve}(de,ee,W,c,f,k):ee.data[de],xt=W[de]=wu(Te,c,function aa(){return ao.lFrame.currentNamespace}()),Jt=Wo(Ve);return ni(Ve,!0),nl(Te,xt,Ve),32!=(32&Ve.flags)&&td(ee,W,xt,Ve),0===function Ke(){return ao.lFrame.elementDepthCount}()&&As(xt,W),function Ue(){ao.lFrame.elementDepthCount++}(),Jt&&(Vd(ee,W,Ve),sc(ee,Ve,W)),null!==k&&ph(W,Ve),Rm}function Fm(){let r=Vt();Ii()?so():(r=r.parent,ni(r,!1));const c=r;!function Qt(){ao.lFrame.elementDepthCount--}();const f=ae();return f.firstCreatePass&&(Xo(f,r),Fo(r)&&f.queries.elementEnd(r)),null!=c.classesWithoutHost&&function ra(r){return 0!=(8&r.flags)}(c)&&Fh(f,c,it(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function zo(r){return 0!=(16&r.flags)}(c)&&Fh(f,c,it(),c.stylesWithoutHost,!1),Fm}function Bh(r,c,f,k){return Rm(r,c,f,k),Fm(),Bh}function Bm(r,c,f){const k=it(),W=ae(),ee=r+li,de=W.firstCreatePass?function Ng(r,c,f,k,W){const ee=c.consts,de=Pa(ee,k),Te=bu(c,r,8,"ng-container",de);return null!==de&&wm(Te,de,!0),Ku(c,f,Te,Pa(ee,W)),null!==c.queries&&c.queries.elementStart(c,Te),Te}(ee,W,k,c,f):W.data[ee];ni(de,!0);const Te=k[ee]=k[jt].createComment("");return td(W,k,Te,de),As(Te,k),Wo(de)&&(Vd(W,k,de),sc(W,de,k)),null!=f&&ph(k,de),Bm}function Nm(){let r=Vt();const c=ae();return Ii()?so():(r=r.parent,ni(r,!1)),c.firstCreatePass&&(Xo(c,r),Fo(r)&&c.queries.elementEnd(r)),Nm}function Nh(r,c,f){return Bm(r,c,f),Nm(),Nh}function t_(){return it()}function jh(r){return!!r&&"function"==typeof r.then}function n_(r){return!!r&&"function"==typeof r.subscribe}const i_=n_;function jm(r,c,f,k){const W=it(),ee=ae(),de=Vt();return le(ee,W,W[jt],de,r,c,k),jm}function A(r,c){const f=Vt(),k=it(),W=ae();return le(W,k,xh(os(W.data),f,k),f,r,c),A}function le(r,c,f,k,W,ee,de){const Te=Wo(k),xt=r.firstCreatePass&&Nf(r),Jt=c[Pt],Mn=Bf(c);let Kn=!0;if(3&k.type||de){const Bi=oa(k,c),Xi=de?de(Bi):Bi,fo=Mn.length,$o=de?la=>de(da(la[k.index])):k.index;let Ai=null;if(!de&&Te&&(Ai=function Y(r,c,f,k){const W=r.cleanup;if(null!=W)for(let ee=0;ee<W.length-1;ee+=2){const de=W[ee];if(de===f&&W[ee+1]===k){const Te=c[Le],Ve=W[ee+2];return Te.length>Ve?Te[Ve]:null}"string"==typeof de&&(ee+=2)}return null}(r,c,W,k.index)),null!==Ai)(Ai.__ngLastListenerFn__||Ai).__ngNextListenerFn__=ee,Ai.__ngLastListenerFn__=ee,Kn=!1;else{ee=kt(k,c,Jt,ee,!1);const la=f.listen(Xi,W,ee);Mn.push(ee,la),xt&&xt.push(W,$o,fo,fo+1)}}else ee=kt(k,c,Jt,ee,!1);const oi=k.outputs;let gi;if(Kn&&null!==oi&&(gi=oi[W])){const Bi=gi.length;if(Bi)for(let Xi=0;Xi<Bi;Xi+=2){const Es=c[gi[Xi]][gi[Xi+1]].subscribe(ee),tc=Mn.length;Mn.push(ee,Es),xt&&xt.push(W,k.index,tc,-(tc+1))}}}function He(r,c,f,k){try{return ha(6,c,f),!1!==f(k)}catch(W){return Mh(r,W),!1}finally{ha(7,c,f)}}function kt(r,c,f,k,W){return function ee(de){if(de===Function)return k;Sm(r.componentOffset>-1?Ia(r.index,c):c);let Ve=He(c,f,k,de),xt=ee.__ngNextListenerFn__;for(;xt;)Ve=He(c,f,xt,de)&&Ve,xt=xt.__ngNextListenerFn__;return W&&!1===Ve&&(de.preventDefault(),de.returnValue=!1),Ve}}function ln(r=1){return function bi(r){return(ao.lFrame.contextLView=function Wi(r,c){for(;r>0;)c=c[It],r--;return c}(r,ao.lFrame.contextLView))[Pt]}(r)}function Ln(r,c){let f=null;const k=function W_(r){const c=r.attrs;if(null!=c){const f=c.indexOf(5);if(!(1&f))return c[f+1]}return null}(r);for(let W=0;W<c.length;W++){const ee=c[W];if("*"!==ee){if(null===k?xf(r,ee,!0):Y_(k,ee))return W}else f=W}return f}function $n(r){const c=it()[Ot][bt];if(!c.projection){const k=c.projection=fe(r?r.length:1,null),W=k.slice();let ee=c.child;for(;null!==ee;){const de=r?Ln(ee,r):0;null!==de&&(W[de]?W[de].projectionNext=ee:k[de]=ee,W[de]=ee),ee=ee.next}}}function Jn(r,c=0,f){const k=it(),W=ae(),ee=bu(W,li+r,16,null,f||null);null===ee.projection&&(ee.projection=c),so(),32!=(32&ee.flags)&&function Mp(r,c,f){kl(c[jt],0,c,f,xd(r,f,c),wl(f.parent||c[bt],f,c))}(W,k,ee)}function xi(r,c,f){return Mi(r,"",c,"",f),xi}function Mi(r,c,f,k,W){const ee=it(),de=Ju(ee,c,f,k);return de!==Yo&&Wc(ae(),Ao(),ee,r,de,ee[jt],W,!1),Mi}function Oi(r,c,f,k,W,ee,de){const Te=it(),Ve=qu(Te,c,f,k,W,ee);return Ve!==Yo&&Wc(ae(),Ao(),Te,r,Ve,Te[jt],de,!1),Oi}function Hi(r,c,f,k,W,ee,de,Te,Ve){const xt=it(),Jt=ep(xt,c,f,k,W,ee,de,Te);return Jt!==Yo&&Wc(ae(),Ao(),xt,r,Jt,xt[jt],Ve,!1),Hi}function mo(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){const Mn=it(),Kn=$d(Mn,c,f,k,W,ee,de,Te,Ve,xt);return Kn!==Yo&&Wc(ae(),Ao(),Mn,r,Kn,Mn[jt],Jt,!1),mo}function ko(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn){const oi=it(),gi=tp(oi,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn);return gi!==Yo&&Wc(ae(),Ao(),oi,r,gi,oi[jt],Kn,!1),ko}function Ho(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi){const Bi=it(),Xi=Wd(Bi,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi);return Xi!==Yo&&Wc(ae(),Ao(),Bi,r,Xi,Bi[jt],gi,!1),Ho}function Lo(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi){const fo=it(),$o=np(fo,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi);return $o!==Yo&&Wc(ae(),Ao(),fo,r,$o,fo[jt],Xi,!1),Lo}function va(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo,$o){const Ai=it(),la=ip(Ai,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo);return la!==Yo&&Wc(ae(),Ao(),Ai,r,la,Ai[jt],$o,!1),va}function Oa(r,c,f){const k=it(),W=Zu(k,c);return W!==Yo&&Wc(ae(),Ao(),k,r,W,k[jt],f,!1),Oa}function lc(r,c){return r<<17|c<<2}function ms(r){return r>>17&32767}function Pc(r){return 2|r}function dc(r){return(131068&r)>>2}function Um(r,c){return-131069&r|c<<2}function jg(r){return 1|r}function a_(r,c,f,k,W){const ee=r[f+1],de=null===c;let Te=k?ms(ee):dc(ee),Ve=!1;for(;0!==Te&&(!1===Ve||de);){const Jt=r[Te+1];L0(r[Te],c)&&(Ve=!0,r[Te+1]=k?jg(Jt):Pc(Jt)),Te=k?ms(Jt):dc(Jt)}Ve&&(r[f+1]=k?Pc(ee):jg(ee))}function L0(r,c){return null===r||null==c||(Array.isArray(r)?r[1]:r)===c||!(!Array.isArray(r)||"string"!=typeof c)&&jn(r,c)>=0}const zs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ug(r){return r.substring(zs.key,zs.keyEnd)}function R0(r){return r.substring(zs.value,zs.valueEnd)}function F0(r,c){const f=zs.textEnd;return f===c?-1:(c=zs.keyEnd=function Uh(r,c,f){for(;c<f&&r.charCodeAt(c)>32;)c++;return c}(r,zs.key=c,f),Vm(r,c,f))}function B0(r,c){const f=zs.textEnd;let k=zs.key=Vm(r,c,f);return f===k?-1:(k=zs.keyEnd=function j0(r,c,f){let k;for(;c<f&&(45===(k=r.charCodeAt(c))||95===k||(-33&k)>=65&&(-33&k)<=90||k>=48&&k<=57);)c++;return c}(r,k,f),k=$m(r,k,f),k=zs.value=Vm(r,k,f),k=zs.valueEnd=function U0(r,c,f){let k=-1,W=-1,ee=-1,de=c,Te=de;for(;de<f;){const Ve=r.charCodeAt(de++);if(59===Ve)return Te;34===Ve||39===Ve?Te=de=Vg(r,Ve,de,f):c===de-4&&85===ee&&82===W&&76===k&&40===Ve?Te=de=Vg(r,41,de,f):Ve>32&&(Te=de),ee=W,W=k,k=-33&Ve}return Te}(r,k,f),$m(r,k,f))}function N0(r){zs.key=0,zs.keyEnd=0,zs.value=0,zs.valueEnd=0,zs.textEnd=r.length}function Vm(r,c,f){for(;c<f&&r.charCodeAt(c)<=32;)c++;return c}function $m(r,c,f,k){return(c=Vm(r,c,f))<f&&c++,c}function Vg(r,c,f,k){let W=-1,ee=f;for(;ee<k;){const de=r.charCodeAt(ee++);if(de==c&&92!==W)return ee;W=92==de&&92===W?0:de}throw new Error}function Vp(r,c,f){return Ec(r,c,f,!1),Vp}function s_(r,c){return Ec(r,c,null,!0),s_}function pd(r){md(z0,Wm,r,!1)}function Wm(r,c){for(let f=function E1(r){return N0(r),B0(r,Vm(r,0,zs.textEnd))}(c);f>=0;f=B0(c,f))z0(r,Ug(c),R0(c))}function V0(r){md(w1,zl,r,!0)}function zl(r,c){for(let f=function P1(r){return N0(r),F0(r,Vm(r,0,zs.textEnd))}(c);f>=0;f=F0(c,f))Ft(r,Ug(c),!0)}function Ec(r,c,f,k){const W=it(),ee=ae(),de=Os(2);ee.firstUpdatePass&&W0(ee,r,de,k),c!==Yo&&cc(W,de,c)&&Y0(ee,ee.data[ei()],W,W[jt],r,W[de+1]=function Wg(r,c){return null==r||""===r||("string"==typeof c?r+=c:"object"==typeof r&&(r=l(Rs(r)))),r}(c,f),k,de)}function md(r,c,f,k){const W=ae(),ee=Os(2);W.firstUpdatePass&&W0(W,null,ee,k);const de=it();if(f!==Yo&&cc(de,ee,f)){const Te=W.data[ei()];if(l_(Te,k)&&!$0(W,ee)){let Ve=k?Te.classesWithoutHost:Te.stylesWithoutHost;null!==Ve&&(f=m(Ve,f||"")),Fh(W,Te,de,f,k)}else!function A1(r,c,f,k,W,ee,de,Te){W===Yo&&(W=zt);let Ve=0,xt=0,Jt=0<W.length?W[0]:null,Mn=0<ee.length?ee[0]:null;for(;null!==Jt||null!==Mn;){const Kn=Ve<W.length?W[Ve+1]:void 0,oi=xt<ee.length?ee[xt+1]:void 0;let Bi,gi=null;Jt===Mn?(Ve+=2,xt+=2,Kn!==oi&&(gi=Mn,Bi=oi)):null===Mn||null!==Jt&&Jt<Mn?(Ve+=2,gi=Jt):(xt+=2,gi=Mn,Bi=oi),null!==gi&&Y0(r,c,f,k,gi,Bi,de,Te),Jt=Ve<W.length?W[Ve]:null,Mn=xt<ee.length?ee[xt]:null}}(W,Te,de,de[jt],de[ee+1],de[ee+1]=function I1(r,c,f){if(null==f||""===f)return zt;const k=[],W=Rs(f);if(Array.isArray(W))for(let ee=0;ee<W.length;ee++)r(k,W[ee],!0);else if("object"==typeof W)for(const ee in W)W.hasOwnProperty(ee)&&r(k,ee,W[ee]);else"string"==typeof W&&c(k,W);return k}(r,c,f),k,ee)}}function $0(r,c){return c>=r.expandoStartIndex}function W0(r,c,f,k){const W=r.data;if(null===W[f+1]){const ee=W[ei()],de=$0(r,f);l_(ee,k)&&null===c&&!de&&(c=!1),c=function c_(r,c,f,k){const W=os(r);let ee=k?c.residualClasses:c.residualStyles;if(null===W)0===(k?c.classBindings:c.styleBindings)&&(f=Vh(f=$g(null,r,c,f,k),c.attrs,k),ee=null);else{const de=c.directiveStylingLast;if(-1===de||r[de]!==W)if(f=$g(W,r,c,f,k),null===ee){let Ve=function O1(r,c,f){const k=f?c.classBindings:c.styleBindings;if(0!==dc(k))return r[ms(k)]}(r,c,k);void 0!==Ve&&Array.isArray(Ve)&&(Ve=$g(null,r,c,Ve[1],k),Ve=Vh(Ve,c.attrs,k),function S1(r,c,f,k){r[ms(f?c.classBindings:c.styleBindings)]=k}(r,c,k,Ve))}else ee=function T1(r,c,f){let k;const W=c.directiveEnd;for(let ee=1+c.directiveStylingLast;ee<W;ee++)k=Vh(k,r[ee].hostAttrs,f);return Vh(k,c.attrs,f)}(r,c,k)}return void 0!==ee&&(k?c.residualClasses=ee:c.residualStyles=ee),f}(W,ee,c,k),function M1(r,c,f,k,W,ee){let de=ee?c.classBindings:c.styleBindings,Te=ms(de),Ve=dc(de);r[k]=f;let Jt,xt=!1;if(Array.isArray(f)?(Jt=f[1],(null===Jt||jn(f,Jt)>0)&&(xt=!0)):Jt=f,W)if(0!==Ve){const Kn=ms(r[Te+1]);r[k+1]=lc(Kn,Te),0!==Kn&&(r[Kn+1]=Um(r[Kn+1],k)),r[Te+1]=function hs(r,c){return 131071&r|c<<17}(r[Te+1],k)}else r[k+1]=lc(Te,0),0!==Te&&(r[Te+1]=Um(r[Te+1],k)),Te=k;else r[k+1]=lc(Ve,0),0===Te?Te=k:r[Ve+1]=Um(r[Ve+1],k),Ve=k;xt&&(r[k+1]=Pc(r[k+1])),a_(r,Jt,k,!0),a_(r,Jt,k,!1),function D1(r,c,f,k,W){const ee=W?r.residualClasses:r.residualStyles;null!=ee&&"string"==typeof c&&jn(ee,c)>=0&&(f[k+1]=jg(f[k+1]))}(c,Jt,r,k,ee),de=lc(Te,Ve),ee?c.classBindings=de:c.styleBindings=de}(W,ee,c,f,de,k)}}function $g(r,c,f,k,W){let ee=null;const de=f.directiveEnd;let Te=f.directiveStylingLast;for(-1===Te?Te=f.directiveStart:Te++;Te<de&&(ee=c[Te],k=Vh(k,ee.hostAttrs,W),ee!==r);)Te++;return null!==r&&(f.directiveStylingLast=Te),k}function Vh(r,c,f){const k=f?1:2;let W=-1;if(null!==c)for(let ee=0;ee<c.length;ee++){const de=c[ee];"number"==typeof de?W=de:W===k&&(Array.isArray(r)||(r=void 0===r?[]:["",r]),Ft(r,de,!!f||c[++ee]))}return void 0===r?null:r}function z0(r,c,f){Ft(r,c,Rs(f))}function w1(r,c,f){const k=String(c);""!==k&&!k.includes(" ")&&Ft(r,k,f)}function Y0(r,c,f,k,W,ee,de,Te){if(!(3&c.type))return;const Ve=r.data,xt=Ve[Te+1],Jt=function x1(r){return 1==(1&r)}(xt)?H0(Ve,c,f,W,dc(xt),de):void 0;zm(Jt)||(zm(ee)||function Dc(r){return 2==(2&r)}(xt)&&(ee=H0(Ve,null,f,W,Te,de)),function om(r,c,f,k,W){if(c)W?r.addClass(f,k):r.removeClass(f,k);else{let ee=-1===k.indexOf("-")?void 0:cs.DashCase;null==W?r.removeStyle(f,k,ee):("string"==typeof W&&W.endsWith("!important")&&(W=W.slice(0,-10),ee|=cs.Important),r.setStyle(f,k,W,ee))}}(k,de,ya(ei(),f),W,ee))}function H0(r,c,f,k,W,ee){const de=null===c;let Te;for(;W>0;){const Ve=r[W],xt=Array.isArray(Ve),Jt=xt?Ve[1]:Ve,Mn=null===Jt;let Kn=f[W+1];Kn===Yo&&(Kn=Mn?zt:void 0);let oi=Mn?an(Kn,k):Jt===k?Kn:void 0;if(xt&&!zm(oi)&&(oi=an(Ve,k)),zm(oi)&&(Te=oi,de))return Te;const gi=r[W+1];W=de?ms(gi):dc(gi)}if(null!==c){let Ve=ee?c.residualClasses:c.residualStyles;null!=Ve&&(Te=an(Ve,k))}return Te}function zm(r){return void 0!==r}function l_(r,c){return 0!=(r.flags&(c?8:16))}function K0(r,c=""){const f=it(),k=ae(),W=r+li,ee=k.firstCreatePass?bu(k,W,1,c,null):k.data[W],de=f[W]=hl(f[jt],c);td(k,f,de,ee),ni(ee,!1)}function $p(r){return d_("",r,""),$p}function d_(r,c,f){const k=it(),W=Ju(k,r,c,f);return W!==Yo&&ud(k,ei(),W),d_}function $h(r,c,f,k,W){const ee=it(),de=qu(ee,r,c,f,k,W);return de!==Yo&&ud(ee,ei(),de),$h}function zg(r,c,f,k,W,ee,de){const Te=it(),Ve=ep(Te,r,c,f,k,W,ee,de);return Ve!==Yo&&ud(Te,ei(),Ve),zg}function u_(r,c,f,k,W,ee,de,Te,Ve){const xt=it(),Jt=$d(xt,r,c,f,k,W,ee,de,Te,Ve);return Jt!==Yo&&ud(xt,ei(),Jt),u_}function Yg(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){const Mn=it(),Kn=tp(Mn,r,c,f,k,W,ee,de,Te,Ve,xt,Jt);return Kn!==Yo&&ud(Mn,ei(),Kn),Yg}function Wh(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn){const oi=it(),gi=Wd(oi,r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn);return gi!==Yo&&ud(oi,ei(),gi),Wh}function Hg(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi){const Bi=it(),Xi=np(Bi,r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi);return Xi!==Yo&&ud(Bi,ei(),Xi),Hg}function Kg(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi){const fo=it(),$o=ip(fo,r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi);return $o!==Yo&&ud(fo,ei(),$o),Kg}function Gg(r){const c=it(),f=Zu(c,r);return f!==Yo&&ud(c,ei(),f),Gg}function G0(r,c,f){md(Ft,zl,Ju(it(),r,c,f),!0)}function Q0(r,c,f,k,W){md(Ft,zl,qu(it(),r,c,f,k,W),!0)}function p_(r,c,f,k,W,ee,de){md(Ft,zl,ep(it(),r,c,f,k,W,ee,de),!0)}function op(r,c,f,k,W,ee,de,Te,Ve){md(Ft,zl,$d(it(),r,c,f,k,W,ee,de,Te,Ve),!0)}function Qg(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){md(Ft,zl,tp(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt),!0)}function X0(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn){md(Ft,zl,Wd(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn),!0)}function Z0(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi){md(Ft,zl,np(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi),!0)}function J0(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi){md(Ft,zl,ip(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi),!0)}function ap(r){md(Ft,zl,Zu(it(),r),!0)}function Xg(r,c,f){pd(Ju(it(),r,c,f))}function q0(r,c,f,k,W){pd(qu(it(),r,c,f,k,W))}function ev(r,c,f,k,W,ee,de){pd(ep(it(),r,c,f,k,W,ee,de))}function tv(r,c,f,k,W,ee,de,Te,Ve){pd($d(it(),r,c,f,k,W,ee,de,Te,Ve))}function Ym(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){pd(tp(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt))}function Zg(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn){pd(Wd(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn))}function m_(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi){pd(np(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi))}function ca(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi){pd(ip(it(),r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi))}function zh(r){pd(Zu(it(),r))}function Qi(r,c,f,k,W){return Ec(r,Ju(it(),c,f,k),W,!1),Qi}function rp(r,c,f,k,W,ee,de){return Ec(r,qu(it(),c,f,k,W,ee),de,!1),rp}function zd(r,c,f,k,W,ee,de,Te,Ve){return Ec(r,ep(it(),c,f,k,W,ee,de,Te),Ve,!1),zd}function Jg(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){return Ec(r,$d(it(),c,f,k,W,ee,de,Te,Ve,xt),Jt,!1),Jg}function qg(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn){return Ec(r,tp(it(),c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn),Kn,!1),qg}function e0(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi){return Ec(r,Wd(it(),c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi),gi,!1),e0}function h_(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi){return Ec(r,np(it(),c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi),Xi,!1),h_}function Du(r,c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo,$o){return Ec(r,ip(it(),c,f,k,W,ee,de,Te,Ve,xt,Jt,Mn,Kn,oi,gi,Bi,Xi,fo),$o,!1),Du}function Yl(r,c,f){return Ec(r,Zu(it(),c),f,!1),Yl}function t0(r,c,f){const k=it();return cc(k,_s(),c)&&Wc(ae(),Ao(),k,r,c,k[jt],f,!0),t0}function f_(r,c,f){const k=it();if(cc(k,_s(),c)){const ee=ae(),de=Ao();Wc(ee,de,k,r,c,xh(os(ee.data),de,k),f,!0)}return f_}const Wp=void 0;var Pu=["en",[["a","p"],["AM","PM"],Wp],[["AM","PM"],Wp,Wp],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Wp,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Wp,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Wp,"{1} 'at' {0}",Wp],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function n0(r){const f=Math.floor(Math.abs(r)),k=r.toString().replace(/^[^.]*\.?/,"").length;return 1===f&&0===k?1:5}];let zp={};function k1(r,c,f){"string"!=typeof c&&(f=c,c=r[No.LocaleId]),c=c.toLowerCase().replace(/_/g,"-"),zp[c]=r,f&&(zp[c][No.ExtraData]=f)}function o0(r){const c=function Yh(r){return r.toLowerCase().replace(/_/g,"-")}(r);let f=iv(c);if(f)return f;const k=c.split("-")[0];if(f=iv(k),f)return f;if("en"===k)return Pu;throw new $(701,!1)}function L1(r){return o0(r)[No.CurrencyCode]||null}function nv(r){return o0(r)[No.PluralCase]}function iv(r){return r in zp||(zp[r]=xn.ng&&xn.ng.common&&xn.ng.common.locales&&xn.ng.common.locales[r]),zp[r]}function R1(){zp={}}var No=(()=>((No=No||{})[No.LocaleId=0]="LocaleId",No[No.DayPeriodsFormat=1]="DayPeriodsFormat",No[No.DayPeriodsStandalone=2]="DayPeriodsStandalone",No[No.DaysFormat=3]="DaysFormat",No[No.DaysStandalone=4]="DaysStandalone",No[No.MonthsFormat=5]="MonthsFormat",No[No.MonthsStandalone=6]="MonthsStandalone",No[No.Eras=7]="Eras",No[No.FirstDayOfWeek=8]="FirstDayOfWeek",No[No.WeekendRange=9]="WeekendRange",No[No.DateFormat=10]="DateFormat",No[No.TimeFormat=11]="TimeFormat",No[No.DateTimeFormat=12]="DateTimeFormat",No[No.NumberSymbols=13]="NumberSymbols",No[No.NumberFormats=14]="NumberFormats",No[No.CurrencyCode=15]="CurrencyCode",No[No.CurrencySymbol=16]="CurrencySymbol",No[No.CurrencyName=17]="CurrencyName",No[No.Currencies=18]="Currencies",No[No.Directionality=19]="Directionality",No[No.PluralCase=20]="PluralCase",No[No.ExtraData=21]="ExtraData",No))();const F1=["zero","one","two","few","many"],Yd="en-US",Hh={marker:"element"},g_={marker:"ICU"};var Ps=(()=>((Ps=Ps||{})[Ps.SHIFT=2]="SHIFT",Ps[Ps.APPEND_EAGERLY=1]="APPEND_EAGERLY",Ps[Ps.COMMENT=2]="COMMENT",Ps))();let ov=Yd;function a0(r){(function U(r,c){null==r&&H(c,r,null,"!=")})(r,"Expected localeId to be defined"),"string"==typeof r&&(ov=r.toLowerCase().replace(/_/g,"-"))}function av(r,c,f){const k=c.insertBeforeIndex,W=Array.isArray(k)?k[0]:k;return null===W?Dd(r,0,f):da(f[W])}function r0(r,c,f,k,W){const ee=c.insertBeforeIndex;if(Array.isArray(ee)){let de=k,Te=null;if(3&c.type||(Te=de,de=W),null!==de&&-1===c.componentOffset)for(let Ve=1;Ve<ee.length;Ve++)Il(r,de,f[ee[Ve]],Te,!1)}}function rv(r,c){if(r.push(c),r.length>1)for(let f=r.length-2;f>=0;f--){const k=r[f];sv(k)||j1(k,c)&&null===U1(k)&&V1(k,c.index)}}function sv(r){return!(64&r.type)}function j1(r,c){return sv(c)||r.index>c.index}function U1(r){const c=r.insertBeforeIndex;return Array.isArray(c)?c[0]:c}function V1(r,c){const f=r.insertBeforeIndex;Array.isArray(f)?f[0]=c:(nm(av,r0),r.insertBeforeIndex=c)}function Eu(r,c){const f=r.data[c];return null===f||"string"==typeof f?null:f.hasOwnProperty("currentCaseLViewIndex")?f:f.value}function cv(r,c,f){const k=Ud(r,f,64,null,null);return rv(c,k),k}function Kh(r,c){const f=c[r.currentCaseLViewIndex];return null===f?f:f<0?~f:f}function lv(r){return r>>>17}function dv(r){return(131070&r)>>>1}let Gh=0,Qh=0;function pv(r,c,f,k){const W=f[jt];let de,ee=null;for(let Te=0;Te<c.length;Te++){const Ve=c[Te];if("string"==typeof Ve){const xt=c[++Te];null===f[xt]&&(f[xt]=hl(W,Ve))}else if("number"==typeof Ve)switch(1&Ve){case 0:const xt=lv(Ve);let Jt,Mn;if(null===ee&&(ee=xt,de=ru(W,k)),xt===ee?(Jt=k,Mn=de):(Jt=null,Mn=da(f[xt])),null!==Mn){const Bi=dv(Ve);Il(W,Mn,f[Bi],Jt,!1);const fo=Eu(r,Bi);if(null!==fo&&"object"==typeof fo){const $o=Kh(fo,f);null!==$o&&pv(r,fo.create[$o],f,f[fo.anchorIdx])}}break;case 1:const oi=c[++Te],gi=c[++Te];bh(W,ya(Ve>>>1,f),null,null,oi,gi,null)}else switch(Ve){case g_:const xt=c[++Te],Jt=c[++Te];null===f[Jt]&&As(f[Jt]=ks(W,xt),f);break;case Hh:const Mn=c[++Te],Kn=c[++Te];null===f[Kn]&&As(f[Kn]=wu(W,Mn,null),f)}}}function mv(r,c,f,k,W){for(let ee=0;ee<f.length;ee++){const de=f[ee],Te=f[++ee];if(de&W){let Ve="";for(let xt=ee+1;xt<=ee+Te;xt++){const Jt=f[xt];if("string"==typeof Jt)Ve+=Jt;else if("number"==typeof Jt)if(Jt<0)Ve+=T(c[k-Jt]);else{const Mn=Jt>>>2;switch(3&Jt){case 1:const Kn=f[++xt],oi=f[++xt],gi=r.data[Mn];"string"==typeof gi?bh(c[jt],c[Mn],null,gi,Kn,Ve,oi):Wc(r,gi,c,Kn,Ve,c[jt],oi,!1);break;case 0:const Bi=c[Mn];null!==Bi&&Qr(c[jt],Bi,Ve);break;case 2:K1(r,Eu(r,Mn),c,Ve);break;case 3:hv(r,Eu(r,Mn),k,c)}}}}else{const Ve=f[ee+1];if(Ve>0&&3==(3&Ve)){const Jt=Eu(r,Ve>>>2);c[Jt.currentCaseLViewIndex]<0&&hv(r,Jt,k,c)}}ee+=Te}}function hv(r,c,f,k){let W=k[c.currentCaseLViewIndex];if(null!==W){let ee=Gh;W<0&&(W=k[c.currentCaseLViewIndex]=~W,ee=-1),mv(r,k,c.update[W],f,ee)}}function K1(r,c,f,k){const W=function G1(r,c){let f=r.cases.indexOf(c);if(-1===f)switch(r.type){case 1:{const k=function B1(r,c){const f=nv(c)(parseInt(r,10)),k=F1[f];return void 0!==k?k:"other"}(c,function N1(){return ov}());f=r.cases.indexOf(k),-1===f&&"other"!==k&&(f=r.cases.indexOf("other"));break}case 0:f=r.cases.indexOf("other")}return-1===f?null:f}(c,k);if(Kh(c,f)!==W&&(s0(r,c,f),f[c.currentCaseLViewIndex]=null===W?null:~W,null!==W)){const de=f[c.anchorIdx];de&&pv(r,c.create[W],f,de)}}function s0(r,c,f){let k=Kh(c,f);if(null!==k){const W=c.remove[k];for(let ee=0;ee<W.length;ee++){const de=W[ee];if(de>0){const Te=ya(de,f);null!==Te&&xp(f[jt],Te)}else s0(r,Eu(r,~de),f)}}}function Q1(){const r=[];let f,k,c=-1;function ee(Te,Ve){c=0;const xt=Kh(Te,Ve);k=null!==xt?Te.remove[xt]:zt}function de(){if(c<k.length){const Te=k[c++];return Te>0?f[Te]:(r.push(c,k),ee(f[ut].data[~Te],f),de())}return 0===r.length?null:(k=r.pop(),c=r.pop(),de())}return function W(Te,Ve){for(f=Ve;r.length;)r.pop();return ee(Te.value,Ve),de}}const b_=/\ufffd(\d+):?\d*\ufffd/gi,X1=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Z1=/\ufffd(\d+)\ufffd/,_v=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,bl="\ufffd",Zh=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,J1=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,q1=/\uE500/g;function gv(r,c,f,k,W,ee,de){const Te=ld(r,k,1,null);let Ve=Te<<Ps.SHIFT,xt=Rn();c===xt&&(xt=null),null===xt&&(Ve|=Ps.APPEND_EAGERLY),de&&(Ve|=Ps.COMMENT,function Jc(r){void 0===nu&&(nu=r())}(Q1)),W.push(Ve,null===ee?"":ee);const Jt=Ud(r,Te,de?32:1,null===ee?"":ee,null);rv(f,Jt);const Mn=Jt.index;return ni(Jt,!1),null!==xt&&c!==xt&&function W1(r,c){let f=r.insertBeforeIndex;null===f?(nm(av,r0),f=r.insertBeforeIndex=[null,c]):(function ne(r,c,f){r!=c&&H(f,r,c,"==")}(Array.isArray(f),!0,"Expecting array here"),f.push(c))}(xt,Mn),Jt}function nb(r,c,f,k,W,ee,de){const Te=de.match(b_),Ve=gv(r,c,f,ee,k,Te?null:de,!1);Te&&Jh(W,de,Ve.index,null,0,null)}function Jh(r,c,f,k,W,ee){const de=r.length,Te=de+1;r.push(null,null);const Ve=de+2,xt=c.split(b_);let Jt=0;for(let Mn=0;Mn<xt.length;Mn++){const Kn=xt[Mn];if(1&Mn){const oi=W+parseInt(Kn,10);r.push(-1-oi),Jt|=Hp(oi)}else""!==Kn&&r.push(Kn)}return r.push(f<<2|(k?1:0)),k&&r.push(k,ee),r[de]=Jt,r[Te]=r.length-Ve,Jt}function ib(r){let c=0;for(let f=0;f<r.length;f++){const k=r[f];"number"==typeof k&&k<0&&c++}return c}function Hp(r){return 1<<Math.min(r,31)}function bv(r){let c,ee,f="",k=0,W=!1;for(;null!==(c=Zh.exec(r));)W?c[0]===`${bl}/*${ee}${bl}`&&(k=c.index,W=!1):(f+=r.substring(k,c.index+c[0].length),ee=c[1],W=!0);return f+=r.slice(k),f}function qh(r,c,f,k,W,ee){let de=0;const Te={type:W.type,currentCaseLViewIndex:ld(r,c,1,null),anchorIdx:ee,cases:[],create:[],remove:[],update:[]};(function sb(r,c,f){r.push(Hp(c.mainBinding),2,-1-c.mainBinding,f<<2|2)})(f,W,ee),function $1(r,c,f){const k=r.data[c];null===k?r.data[c]=f:k.value=f}(r,ee,Te);const Ve=W.values;for(let xt=0;xt<Ve.length;xt++){const Jt=Ve[xt],Mn=[];for(let Kn=0;Kn<Jt.length;Kn++){const oi=Jt[Kn];if("string"!=typeof oi){const gi=Mn.push(oi)-1;Jt[Kn]=`\x3c!--\ufffd${gi}\ufffd--\x3e`}}de=rb(r,Te,c,f,k,W.cases[xt],Jt.join(""),Mn)|de}de&&function cb(r,c,f){r.push(c,1,f<<2|3)}(f,de,ee)}function ab(r){const c=[],f=[];let k=1,W=0;const ee=c0(r=r.replace(_v,function(de,Te,Ve){return k="select"===Ve?0:1,W=parseInt(Te.slice(1),10),""}));for(let de=0;de<ee.length;){let Te=ee[de++].trim();1===k&&(Te=Te.replace(/\s*(?:=)?(\w+)\s*/,"$1")),Te.length&&c.push(Te);const Ve=c0(ee[de++]);c.length>f.length&&f.push(Ve)}return{type:k,mainBinding:W,cases:c,values:f}}function c0(r){if(!r)return[];let c=0;const f=[],k=[],W=/[{}]/g;let ee;for(W.lastIndex=0;ee=W.exec(r);){const Te=ee.index;if("}"==ee[0]){if(f.pop(),0==f.length){const Ve=r.substring(c,Te);_v.test(Ve)?k.push(ab(Ve)):k.push(Ve),c=Te+1}}else{if(0==f.length){const Ve=r.substring(c,Te);k.push(Ve),c=Te+1}f.push("{")}}const de=r.substring(c);return k.push(de),k}function rb(r,c,f,k,W,ee,de,Te){const Ve=[],xt=[],Jt=[];c.cases.push(ee),c.create.push(Ve),c.remove.push(xt),c.update.push(Jt);const Kn=Id(am()).getInertBodyElement(de),oi=Ip(Kn)||Kn;return oi?Cv(r,c,f,k,Ve,xt,Jt,oi,W,Te,0):0}function Cv(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){let Mn=0,Kn=Te.firstChild;for(;Kn;){const oi=ld(r,f,1,null);switch(Kn.nodeType){case Node.ELEMENT_NODE:const gi=Kn,Bi=gi.tagName.toLowerCase();if(Ad.hasOwnProperty(Bi)){l0(W,Hh,Bi,Ve,oi),r.data[oi]=Bi;const Ai=gi.attributes;for(let la=0;la<Ai.length;la++){const Es=Ai.item(la),tc=Es.name.toLowerCase();Es.value.match(b_)?Vc.hasOwnProperty(tc)&&Jh(de,Es.value,oi,Es.name,0,kd[tc]?Nl:null):lb(W,oi,Es)}Mn=Cv(r,c,f,k,W,ee,de,Kn,oi,xt,Jt+1)|Mn,yv(ee,oi,Jt)}break;case Node.TEXT_NODE:const Xi=Kn.textContent||"",fo=Xi.match(b_);l0(W,null,fo?"":Xi,Ve,oi),yv(ee,oi,Jt),fo&&(Mn=Jh(de,Xi,oi,null,0,null)|Mn);break;case Node.COMMENT_NODE:const $o=Z1.exec(Kn.textContent||"");if($o){const la=xt[parseInt($o[1],10)];l0(W,g_,"",Ve,oi),qh(r,f,k,Ve,la,oi),ef(ee,oi,Jt)}}Kn=Kn.nextSibling}return Mn}function yv(r,c,f){0===f&&r.push(c)}function ef(r,c,f){0===f&&(r.push(~c),r.push(c))}function l0(r,c,f,k,W){null!==c&&r.push(c),r.push(f,W,function z1(r,c,f){return r|c<<17|f<<1}(0,k,W))}function lb(r,c,f){r.push(c<<1|1,f.name,f.value)}const xv=0,db=/\[(\ufffd.+?\ufffd?)\]/,ub=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,pb=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,mb=/{([A-Z0-9_]+)}/g,hb=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,fb=/\/\*/,_b=/\d+\:(\d+)/;function d0(r,c,f=-1){const k=ae(),W=it(),ee=li+r,de=Pa(k.consts,c),Te=Rn();k.firstCreatePass&&function tb(r,c,f,k,W,ee){const de=Rn(),Te=[],Ve=[],xt=[[]];W=function ob(r,c){if(function vv(r){return-1===r}(c))return bv(r);{const f=r.indexOf(`:${c}${bl}`)+2+c.toString().length,k=r.search(new RegExp(`${bl}\\/\\*\\d+:${c}${bl}`));return bv(r.substring(f,k))}}(W,ee);const Jt=function eb(r){return r.replace(q1," ")}(W).split(J1);for(let Mn=0;Mn<Jt.length;Mn++){let Kn=Jt[Mn];if(1&Mn){const oi=47===Kn.charCodeAt(0),Bi=(Kn.charCodeAt(oi?1:0),li+Number.parseInt(Kn.substring(oi?2:1)));if(oi)xt.shift(),ni(Rn(),!1);else{const Xi=cv(r,xt[0],Bi);xt.unshift([]),ni(Xi,!0)}}else{const oi=c0(Kn);for(let gi=0;gi<oi.length;gi++){let Bi=oi[gi];if(1&gi){const Xi=Bi;if("object"!=typeof Xi)throw new Error(`Unable to parse ICU expression in "${W}" message.`);qh(r,f,Ve,c,Xi,gv(r,de,xt[0],f,Te,"",!0).index)}else""!==Bi&&nb(r,de,xt[0],Te,Ve,f,Bi)}}}r.data[k]={create:Te,update:Ve}}(k,null===Te?0:Te.index,W,ee,de,f);const Ve=k.data[ee],Jt=yp(k,Te===W[bt]?null:Te,W);(function H1(r,c,f,k){const W=r[jt];for(let ee=0;ee<c.length;ee++){const de=c[ee++],Te=c[ee],xt=(de&Ps.APPEND_EAGERLY)===Ps.APPEND_EAGERLY,Jt=de>>>Ps.SHIFT;let Mn=r[Jt];null===Mn&&(Mn=r[Jt]=(de&Ps.COMMENT)===Ps.COMMENT?W.createComment(Te):hl(W,Te)),xt&&null!==f&&Il(W,f,Mn,k,!1)}})(W,Ve.create,Jt,Te&&8&Te.type?W[Te.index]:null),Fs(!0)}function u0(){Fs(!1)}function Mv(r,c,f){d0(r,c,f),u0()}function Dv(r,c){const f=ae(),k=Pa(f.consts,c);!function Yp(r,c,f){const W=Vt().index,ee=[];if(r.firstCreatePass&&null===r.data[c]){for(let de=0;de<f.length;de+=2){const Te=f[de],Ve=f[de+1];if(""!==Ve){if(X1.test(Ve))throw new Error(`ICU expressions are not supported in attributes. Message: "${Ve}".`);Jh(ee,Ve,W,Te,ib(ee),null)}}r.data[c]=ee}}(f,r+li,k)}function p0(r){return function Y1(r){r&&(Gh|=1<<Math.min(Qh,31)),Qh++}(cc(it(),_s(),r)),p0}function Pv(r){!function Xh(r,c,f){if(Qh>0){const k=r.data[f];mv(r,c,Array.isArray(k)?k:k.update,Po()-Qh-1,Gh)}Gh=0,Qh=0}(ae(),it(),r+li)}function Ev(r,c={}){return function gb(r,c={}){let f=r;if(db.test(r)){const k={},W=[xv];f=f.replace(ub,(ee,de,Te)=>{const Ve=de||Te,xt=k[Ve]||[];if(xt.length||(Ve.split("|").forEach(Bi=>{const Xi=Bi.match(_b),fo=Xi?parseInt(Xi[1],10):xv,$o=fb.test(Bi);xt.push([fo,$o,Bi])}),k[Ve]=xt),!xt.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Ve}`);const Jt=W[W.length-1];let Mn=0;for(let Bi=0;Bi<xt.length;Bi++)if(xt[Bi][0]===Jt){Mn=Bi;break}const[Kn,oi,gi]=xt[Mn];return oi?W.pop():Jt!==Kn&&W.push(Kn),xt.splice(Mn,1),gi})}return Object.keys(c).length&&(f=f.replace(pb,(k,W,ee,de,Te,Ve)=>c.hasOwnProperty(ee)?`${W}${c[ee]}${Ve}`:k),f=f.replace(mb,(k,W)=>c.hasOwnProperty(W)?c[W]:k),f=f.replace(hb,(k,W)=>{if(c.hasOwnProperty(W)){const ee=c[W];if(!ee.length)throw new Error(`i18n postprocess: unmatched ICU - ${k} with key: ${W}`);return ee.shift()}return k})),f}(r,c)}function m0(r,c,f,k,W){if(r=L(r),Array.isArray(r))for(let ee=0;ee<r.length;ee++)m0(r[ee],c,f,k,W);else{const ee=ae(),de=it();let Te=Ni(r)?r:L(r.provide),Ve=Uu(r);const xt=Vt(),Jt=1048575&xt.providerIndexes,Mn=xt.directiveStart,Kn=xt.providerIndexes>>20;if(Ni(r)||!r.multi){const oi=new yn(Ve,W,gu),gi=C_(Te,c,W?Jt:Jt+Kn,Mn);-1===gi?(yr(Xs(xt,de),ee,Te),h0(ee,r,c.length),c.push(Te),xt.directiveStart++,xt.directiveEnd++,W&&(xt.providerIndexes+=1048576),f.push(oi),de.push(oi)):(f[gi]=oi,de[gi]=oi)}else{const oi=C_(Te,c,Jt+Kn,Mn),gi=C_(Te,c,Jt,Jt+Kn),Xi=gi>=0&&f[gi];if(W&&!Xi||!W&&!(oi>=0&&f[oi])){yr(Xs(xt,de),ee,Te);const fo=function Cb(r,c,f,k,W){const ee=new yn(r,f,gu);return ee.multi=[],ee.index=c,ee.componentProviders=0,Ov(ee,W,k&&!f),ee}(W?bb:Sv,f.length,W,k,Ve);!W&&Xi&&(f[gi].providerFactory=fo),h0(ee,r,c.length,0),c.push(Te),xt.directiveStart++,xt.directiveEnd++,W&&(xt.providerIndexes+=1048576),f.push(fo),de.push(fo)}else h0(ee,r,oi>-1?oi:gi,Ov(f[W?gi:oi],Ve,!W&&k));!W&&k&&Xi&&f[gi].componentProviders++}}}function h0(r,c,f,k){const W=Ni(c),ee=function ro(r){return!!r.useClass}(c);if(W||ee){const Ve=(ee?L(c.useClass):c).prototype.ngOnDestroy;if(Ve){const xt=r.destroyHooks||(r.destroyHooks=[]);if(!W&&c.multi){const Jt=xt.indexOf(f);-1===Jt?xt.push(f,[k,Ve]):xt[Jt+1].push(k,Ve)}else xt.push(f,Ve)}}}function Ov(r,c,f){return f&&r.componentProviders++,r.multi.push(c)-1}function C_(r,c,f,k){for(let W=f;W<k;W++)if(c[W]===r)return W;return-1}function Sv(r,c,f,k){return y_(this.multi,[])}function bb(r,c,f,k){const W=this.multi;let ee;if(this.providerFactory){const de=this.providerFactory.componentProviders,Te=fc(f,f[ut],this.providerFactory.index,k);ee=Te.slice(0,de),y_(W,ee);for(let Ve=de;Ve<Te.length;Ve++)ee.push(Te[Ve])}else ee=[],y_(W,ee);return ee}function y_(r,c){for(let f=0;f<r.length;f++)c.push((0,r[f])());return c}function Tv(r,c=[]){return f=>{f.providersResolver=(k,W)=>function vb(r,c,f){const k=ae();if(k.firstCreatePass){const W=na(r);m0(f,k.data,k.blueprint,W,!0),m0(c,k.data,k.blueprint,W,!1)}}(k,W?W(r):r,c)}}class Hm{}class Iv{}function wv(r,c){return new f0(r,c??null)}const yb=wv;class f0 extends Hm{constructor(c,f){super(),this._parent=f,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jf(this);const k=De(c);this._bootstrapComponents=$l(k.bootstrap),this._r3Injector=Of(c,f,[{provide:Hm,useValue:this},{provide:wp,useValue:this.componentFactoryResolver}],l(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(f=>f()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class sp extends Iv{constructor(c){super(),this.moduleType=c}create(c){return new f0(this.moduleType,c)}}class xb extends Hm{constructor(c,f,k){super(),this.componentFactoryResolver=new jf(this),this.instance=null;const W=new Go([...c,{provide:Hm,useValue:this},{provide:wp,useValue:this.componentFactoryResolver}],f||kr(),k,new Set(["environment"]));this.injector=W,W.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function _0(r,c,f=null){return new xb(r,c,f).injector}let Mb=(()=>{class r{constructor(f){this._injector=f,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(f){if(!f.standalone)return null;if(!this.cachedInjectors.has(f.id)){const k=Cn(0,f.type),W=k.length>0?_0([k],this._injector,`Standalone[${f.type.name}]`):null;this.cachedInjectors.set(f.id,W)}return this.cachedInjectors.get(f.id)}ngOnDestroy(){try{for(const f of this.cachedInjectors.values())null!==f&&f.destroy()}finally{this.cachedInjectors.clear()}}}return r.\u0275prov=Ie({token:r,providedIn:"environment",factory:()=>new r(rn(Xr))}),r})();function Av(r){r.getStandaloneInjector=c=>c.get(Mb).getOrCreateStandaloneInjector(r)}function Kp(r){const c=xs(r);if(null===c)return null;if(void 0===c.component){const f=c.lView;if(null===f)return null;c.component=function gp(r,c){const f=c[ut].data[r],{directiveStart:k,componentOffset:W}=f;return W>-1?c[k+W]:null}(c.nodeIndex,f)}return c.component}function kv(r){!function Ob(r){if(typeof Element<"u"&&!(r instanceof Element))throw new Error("Expecting instance of DOM Element")}(r);const c=xs(r),f=c?c.lView:null;return null===f?null:f[Pt]}function Lv(r){const c=xs(r);let k,f=c?c.lView:null;if(null===f)return null;for(;2===f[ut].type&&(k=Zl(f));)f=k;return 256&f[ue]?null:f[Pt]}function Rv(r){const c=bd(r);return null!==c?[qc(c)]:[]}function x_(r){const c=xs(r),f=c?c.lView:null;return null===f?Nd.NULL:new Ga(f[ut].data[c.nodeIndex],f)}function Fv(r){if(r instanceof Text)return[];const c=xs(r),f=c?c.lView:null;if(null===f)return[];const W=c.nodeIndex;return f[ut]?.data[W]?(void 0===c.directives&&(c.directives=gc(W,f)),null===c.directives?[]:[...c.directives]):[]}function Pb(r){const{constructor:c}=r;if(!c)throw new Error("Unable to find the instance constructor");const f=en(c);if(f)return{inputs:f.inputs,outputs:f.outputs,encapsulation:f.encapsulation,changeDetection:f.onPush?rt.OnPush:rt.Default};const k=Hn(c);return k?{inputs:k.inputs,outputs:k.outputs}:null}function g0(r){return xs(r).native}function Bv(r){const c=xs(r),f=null===c?null:c.lView;if(null===f)return[];const W=f[Le],ee=f[ut].cleanup,de=[];if(ee&&W)for(let Te=0;Te<ee.length;){const Ve=ee[Te++],xt=ee[Te++];if("string"==typeof Ve){const Jt=Ve,Mn=da(f[xt]),Kn=W[ee[Te++]],oi=ee[Te++];r==Mn&&de.push({element:r,name:Jt,callback:Kn,useCapture:"boolean"==typeof oi&&oi,type:"boolean"==typeof oi||oi>=0?"dom":"output"})}}return de.sort(tf),de}function tf(r,c){return r.name==c.name?0:r.name<c.name?-1:1}function Nv(r){return void 0!==r.type&&void 0!==r.declaredInputs&&void 0!==r.findHostDirectiveDefs}function jv(r,c,f,k){return dt(()=>{const W=r;null!==c&&(W.hasOwnProperty("decorators")&&void 0!==W.decorators?W.decorators.push(...c):W.decorators=c),null!==f&&(W.ctorParameters=f),null!==k&&(W.propDecorators=W.hasOwnProperty("propDecorators")&&void 0!==W.propDecorators?{...W.propDecorators,...k}:k)})}function Uv(r,c,f){const k=ka()+r,W=it();return W[k]===Yo?Wl(W,k,f?c.call(f):c()):xu(W,k)}function Vv(r,c,f,k){return Qv(it(),ka(),r,c,f,k)}function $v(r,c,f,k,W){return Xv(it(),ka(),r,c,f,k,W)}function Wv(r,c,f,k,W,ee){return Zv(it(),ka(),r,c,f,k,W,ee)}function M_(r,c,f,k,W,ee,de){return Jv(it(),ka(),r,c,f,k,W,ee,de)}function zv(r,c,f,k,W,ee,de,Te){const Ve=ka()+r,xt=it(),Jt=Lr(xt,Ve,f,k,W,ee);return cc(xt,Ve+4,de)||Jt?Wl(xt,Ve+5,Te?c.call(Te,f,k,W,ee,de):c(f,k,W,ee,de)):xu(xt,Ve+5)}function Yv(r,c,f,k,W,ee,de,Te,Ve){const xt=ka()+r,Jt=it(),Mn=Lr(Jt,xt,f,k,W,ee);return Mu(Jt,xt+4,de,Te)||Mn?Wl(Jt,xt+6,Ve?c.call(Ve,f,k,W,ee,de,Te):c(f,k,W,ee,de,Te)):xu(Jt,xt+6)}function Hv(r,c,f,k,W,ee,de,Te,Ve,xt){const Jt=ka()+r,Mn=it();let Kn=Lr(Mn,Jt,f,k,W,ee);return km(Mn,Jt+4,de,Te,Ve)||Kn?Wl(Mn,Jt+7,xt?c.call(xt,f,k,W,ee,de,Te,Ve):c(f,k,W,ee,de,Te,Ve)):xu(Mn,Jt+7)}function Kv(r,c,f,k,W,ee,de,Te,Ve,xt,Jt){const Mn=ka()+r,Kn=it(),oi=Lr(Kn,Mn,f,k,W,ee);return Lr(Kn,Mn+4,de,Te,Ve,xt)||oi?Wl(Kn,Mn+8,Jt?c.call(Jt,f,k,W,ee,de,Te,Ve,xt):c(f,k,W,ee,de,Te,Ve,xt)):xu(Kn,Mn+8)}function Gv(r,c,f,k){return qv(it(),ka(),r,c,f,k)}function nf(r,c){const f=r[c];return f===Yo?void 0:f}function Qv(r,c,f,k,W,ee){const de=c+f;return cc(r,de,W)?Wl(r,de+1,ee?k.call(ee,W):k(W)):nf(r,de+1)}function Xv(r,c,f,k,W,ee,de){const Te=c+f;return Mu(r,Te,W,ee)?Wl(r,Te+2,de?k.call(de,W,ee):k(W,ee)):nf(r,Te+2)}function Zv(r,c,f,k,W,ee,de,Te){const Ve=c+f;return km(r,Ve,W,ee,de)?Wl(r,Ve+3,Te?k.call(Te,W,ee,de):k(W,ee,de)):nf(r,Ve+3)}function Jv(r,c,f,k,W,ee,de,Te,Ve){const xt=c+f;return Lr(r,xt,W,ee,de,Te)?Wl(r,xt+4,Ve?k.call(Ve,W,ee,de,Te):k(W,ee,de,Te)):nf(r,xt+4)}function qv(r,c,f,k,W,ee){let de=c+f,Te=!1;for(let Ve=0;Ve<W.length;Ve++)cc(r,de++,W[Ve])&&(Te=!0);return Te?Wl(r,de,k.apply(ee,W)):nf(r,de)}function e1(r,c){const f=ae();let k;const W=r+li;f.firstCreatePass?(k=function Sb(r,c){if(c)for(let f=c.length-1;f>=0;f--){const k=c[f];if(r===k.name)return k}}(c,f.pipeRegistry),f.data[W]=k,k.onDestroy&&(f.destroyHooks??(f.destroyHooks=[])).push(W,k.onDestroy)):k=f.data[W];const ee=k.factory||(k.factory=ma(k.type)),de=Ze(gu);try{const Te=jr(!1),Ve=ee();return jr(Te),qf(f,it(),W,Ve),Ve}finally{Ze(de)}}function t1(r,c,f){const k=r+li,W=it(),ee=br(W,k);return af(W,k)?Qv(W,ka(),c,ee.transform,f,ee):ee.transform(f)}function n1(r,c,f,k){const W=r+li,ee=it(),de=br(ee,W);return af(ee,W)?Xv(ee,ka(),c,de.transform,f,k,de):de.transform(f,k)}function o1(r,c,f,k,W){const ee=r+li,de=it(),Te=br(de,ee);return af(de,ee)?Zv(de,ka(),c,Te.transform,f,k,W,Te):Te.transform(f,k,W)}function a1(r,c,f,k,W,ee){const de=r+li,Te=it(),Ve=br(Te,de);return af(Te,de)?Jv(Te,ka(),c,Ve.transform,f,k,W,ee,Ve):Ve.transform(f,k,W,ee)}function r1(r,c,f){const k=r+li,W=it(),ee=br(W,k);return af(W,k)?qv(W,ka(),c,ee.transform,f,ee):ee.transform.apply(ee,f)}function af(r,c){return r[ut].data[c].pure}function v0(r){return c=>{setTimeout(r,void 0,c)}}const Hd=class Tb extends n.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,f,k){let W=c,ee=f||(()=>null),de=k;if(c&&"object"==typeof c){const Ve=c;W=Ve.next?.bind(Ve),ee=Ve.error?.bind(Ve),de=Ve.complete?.bind(Ve)}this.__isAsync&&(ee=v0(ee),W&&(W=v0(W)),de&&(de=v0(de)));const Te=super.subscribe({next:W,error:ee,complete:de});return c instanceof e.w0&&c.add(Te),Te}};function Ib(){return this._results[Symbol.iterator]()}class D_{get changes(){return this._changes||(this._changes=new Hd)}constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const f=D_.prototype;f[Symbol.iterator]||(f[Symbol.iterator]=Ib)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,f){return this._results.reduce(c,f)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,f){const k=this;k.dirty=!1;const W=Ur(c);(this._changesDetected=!function wi(r,c,f){if(r.length!==c.length)return!1;for(let k=0;k<r.length;k++){let W=r[k],ee=c[k];if(f&&(W=f(W),ee=f(ee)),ee!==W)return!1}return!0}(k._results,W,f))&&(k._results=W,k.length=W.length,k.last=W[this.length-1],k.first=W[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let rf=(()=>{class r{}return r.__NG_ELEMENT_ID__=kb,r})();const wb=rf,Ab=class extends wb{constructor(c,f,k){super(),this._declarationLView=c,this._declarationTContainer=f,this.elementRef=k}createEmbeddedView(c,f){const k=this._declarationTContainer.tView,W=Lp(this._declarationLView,k,c,16,null,k.declTNode,null,null,null,null,f||null);W[fn]=this._declarationLView[this._declarationTContainer.index];const de=this._declarationLView[_i];return null!==de&&(W[_i]=de.createEmbeddedView(k)),Rp(k,W,c),new vl(W)}};function kb(){return P_(Vt(),it())}function P_(r,c){return 4&r.type?new Ab(c,r,$u(r,c)):null}let E_=(()=>{class r{}return r.__NG_ELEMENT_ID__=Lb,r})();function Lb(){return l1(Vt(),it())}const Rb=E_,s1=class extends Rb{constructor(c,f,k){super(),this._lContainer=c,this._hostTNode=f,this._hostLView=k}get element(){return $u(this._hostTNode,this._hostLView)}get injector(){return new Ga(this._hostTNode,this._hostLView)}get parentInjector(){const c=hc(this._hostTNode,this._hostLView);if(Tr(c)){const f=La(c,this._hostLView),k=Ka(c);return new Ga(f[ut].data[k+8],f)}return new Ga(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const f=c1(this._lContainer);return null!==f&&f[c]||null}get length(){return this._lContainer.length-ai}createEmbeddedView(c,f,k){let W,ee;"number"==typeof k?W=k:null!=k&&(W=k.index,ee=k.injector);const de=c.createEmbeddedView(f||{},ee);return this.insert(de,W),de}createComponent(c,f,k,W,ee){const de=c&&!Da(c);let Te;if(de)Te=f;else{const Mn=f||{};Te=Mn.index,k=Mn.injector,W=Mn.projectableNodes,ee=Mn.environmentInjector||Mn.ngModuleRef}const Ve=de?c:new yu(en(c)),xt=k||this.parentInjector;if(!ee&&null==Ve.ngModule){const Kn=(de?xt:this.parentInjector).get(Xr,null);Kn&&(ee=Kn)}const Jt=Ve.create(xt,W,void 0,ee);return this.insert(Jt.hostView,Te),Jt}insert(c,f){const k=c._lView,W=k[ut];if(function ns(r){return Oo(r[et])}(k)){const Jt=this.indexOf(c);if(-1!==Jt)this.detach(Jt);else{const Mn=k[et],Kn=new s1(Mn,Mn[bt],Mn[et]);Kn.detach(Kn.indexOf(c))}}const ee=this._adjustIndex(f),de=this._lContainer;!function au(r,c,f,k){const W=ai+k,ee=f.length;k>0&&(f[W-1][At]=c),k<ee-ai?(c[At]=f[W],js(f,ai+k,c)):(f.push(c),c[At]=null),c[et]=f;const de=c[fn];null!==de&&f!==de&&function Ms(r,c){const f=r[kn];c[Ot]!==c[et][et][Ot]&&(r[gn]=!0),null===f?r[kn]=[c]:f.push(c)}(de,c);const Te=c[_i];null!==Te&&Te.insertView(r),c[ue]|=64}(W,k,de,ee);const Te=Pd(ee,de),Ve=k[jt],xt=ru(Ve,de[Mt]);return null!==xt&&function Nc(r,c,f,k,W,ee){k[We]=W,k[bt]=c,Cc(r,k,f,1,W,ee)}(W,de[bt],Ve,k,xt,Te),c.attachToViewContainerRef(),js(b0(de),ee,c),c}move(c,f){return this.insert(c,f)}indexOf(c){const f=c1(this._lContainer);return null!==f?f.indexOf(c):-1}remove(c){const f=this._adjustIndex(c,-1),k=ku(this._lContainer,f);k&&(qo(b0(this._lContainer),f),Cp(k[ut],k))}detach(c){const f=this._adjustIndex(c,-1),k=ku(this._lContainer,f);return k&&null!=qo(b0(this._lContainer),f)?new vl(k):null}_adjustIndex(c,f=0){return c??this.length+f}};function c1(r){return r[$t]}function b0(r){return r[$t]||(r[$t]=[])}function l1(r,c){let f;const k=c[r.index];if(Oo(k))f=k;else{let W;if(8&r.type)W=da(k);else{const ee=c[jt];W=ee.createComment("");const de=oa(r,c);Il(ee,ru(ee,de),W,function su(r,c){return r.nextSibling(c)}(ee,de),!1)}c[r.index]=f=Ff(k,c,W,r),Bp(c,f)}return new s1(f,r,c)}class C0{constructor(c){this.queryList=c,this.matches=null}clone(){return new C0(this.queryList)}setDirty(){this.queryList.setDirty()}}class y0{constructor(c=[]){this.queries=c}createEmbeddedView(c){const f=c.queries;if(null!==f){const k=null!==c.contentQueries?c.contentQueries[0]:f.length,W=[];for(let ee=0;ee<k;ee++){const de=f.getByIndex(ee);W.push(this.queries[de.indexInDeclarationView].clone())}return new y0(W)}return null}insertView(c){this.dirtyQueriesWithMatches(c)}detachView(c){this.dirtyQueriesWithMatches(c)}dirtyQueriesWithMatches(c){for(let f=0;f<this.queries.length;f++)null!==yt(c,f).matches&&this.queries[f].setDirty()}}class d1{constructor(c,f,k=null){this.predicate=c,this.flags=f,this.read=k}}class x0{constructor(c=[]){this.queries=c}elementStart(c,f){for(let k=0;k<this.queries.length;k++)this.queries[k].elementStart(c,f)}elementEnd(c){for(let f=0;f<this.queries.length;f++)this.queries[f].elementEnd(c)}embeddedTView(c){let f=null;for(let k=0;k<this.length;k++){const W=null!==f?f.length:0,ee=this.getByIndex(k).embeddedTView(c,W);ee&&(ee.indexInDeclarationView=k,null!==f?f.push(ee):f=[ee])}return null!==f?new x0(f):null}template(c,f){for(let k=0;k<this.queries.length;k++)this.queries[k].template(c,f)}getByIndex(c){return this.queries[c]}get length(){return this.queries.length}track(c){this.queries.push(c)}}class M0{constructor(c,f=-1){this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=f}elementStart(c,f){this.isApplyingToNode(f)&&this.matchTNode(c,f)}elementEnd(c){this._declarationNodeIndex===c.index&&(this._appliesToNextNode=!1)}template(c,f){this.elementStart(c,f)}embeddedTView(c,f){return this.isApplyingToNode(c)?(this.crossesNgTemplate=!0,this.addMatch(-c.index,f),new M0(this.metadata)):null}isApplyingToNode(c){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const f=this._declarationNodeIndex;let k=c.parent;for(;null!==k&&8&k.type&&k.index!==f;)k=k.parent;return f===(null!==k?k.index:-1)}return this._appliesToNextNode}matchTNode(c,f){const k=this.metadata.predicate;if(Array.isArray(k))for(let W=0;W<k.length;W++){const ee=k[W];this.matchTNodeWithReadOption(c,f,Fb(f,ee)),this.matchTNodeWithReadOption(c,f,Hc(f,c,ee,!1,!1))}else k===rf?4&f.type&&this.matchTNodeWithReadOption(c,f,-1):this.matchTNodeWithReadOption(c,f,Hc(f,c,k,!1,!1))}matchTNodeWithReadOption(c,f,k){if(null!==k){const W=this.metadata.read;if(null!==W)if(W===Ap||W===E_||W===rf&&4&f.type)this.addMatch(f.index,-2);else{const ee=Hc(f,c,W,!1,!1);null!==ee&&this.addMatch(f.index,ee)}else this.addMatch(f.index,k)}}addMatch(c,f){null===this.matches?this.matches=[c,f]:this.matches.push(c,f)}}function Fb(r,c){const f=r.localNames;if(null!==f)for(let k=0;k<f.length;k+=2)if(f[k]===c)return f[k+1];return null}function Nb(r,c,f,k){return-1===f?function Bb(r,c){return 11&r.type?$u(r,c):4&r.type?P_(r,c):null}(c,r):-2===f?function jb(r,c,f){return f===Ap?$u(c,r):f===rf?P_(c,r):f===E_?l1(c,r):void 0}(r,c,k):fc(r,r[ut],f,c)}function u1(r,c,f,k){const W=c[_i].queries[k];if(null===W.matches){const ee=r.data,de=f.matches,Te=[];for(let Ve=0;Ve<de.length;Ve+=2){const xt=de[Ve];Te.push(xt<0?null:Nb(c,ee[xt],de[Ve+1],f.metadata.read))}W.matches=Te}return W.matches}function p1(r,c,f,k){const W=r.queries.getByIndex(f),ee=W.matches;if(null!==ee){const de=u1(r,c,W,f);for(let Te=0;Te<ee.length;Te+=2){const Ve=ee[Te];if(Ve>0)k.push(de[Te/2]);else{const xt=ee[Te+1],Jt=c[-Ve];for(let Mn=ai;Mn<Jt.length;Mn++){const Kn=Jt[Mn];Kn[fn]===Kn[et]&&p1(Kn[ut],Kn,xt,k)}if(null!==Jt[kn]){const Mn=Jt[kn];for(let Kn=0;Kn<Mn.length;Kn++){const oi=Mn[Kn];p1(oi[ut],oi,xt,k)}}}}}return k}function m1(r){const c=it(),f=ae(),k=nc();Ic(k+1);const W=yt(f,k);if(r.dirty&&function wa(r){return 4==(4&r[ue])}(c)===(2==(2&W.metadata.flags))){if(null===W.matches)r.reset([]);else{const ee=W.crossesNgTemplate?p1(f,c,k,[]):u1(f,c,W,k);r.reset(ee,w_),r.notifyOnChanges()}return!0}return!1}function Ub(r,c,f){const k=ae();k.firstCreatePass&&(V(k,new d1(r,c,f),-1),2==(2&c)&&(k.staticViewQueries=!0)),g(k,it(),c)}function M(r,c,f,k){const W=ae();if(W.firstCreatePass){const ee=Vt();V(W,new d1(c,f,k),ee.index),function me(r,c){const f=r.contentQueries||(r.contentQueries=[]);c!==(f.length?f[f.length-1]:-1)&&f.push(r.queries.length-1,c)}(W,r),2==(2&f)&&(W.staticContentQueries=!0)}g(W,it(),f)}function s(){return function o(r,c){return r[_i].queries[c].queryList}(it(),nc())}function g(r,c,f){const k=new D_(4==(4&f));hh(r,c,k,k.destroy),null===c[_i]&&(c[_i]=new y0),c[_i].queries.push(new C0(k))}function V(r,c,f){null===r.queries&&(r.queries=new x0),r.queries.track(new M0(c,f))}function yt(r,c){return r.queries.getByIndex(c)}function Zt(r,c){return P_(r,c)}const Pn=(()=>({\u0275\u0275attribute:Np,\u0275\u0275attributeInterpolate1:Th,\u0275\u0275attributeInterpolate2:Ih,\u0275\u0275attributeInterpolate3:Lm,\u0275\u0275attributeInterpolate4:wh,\u0275\u0275attributeInterpolate5:Ah,\u0275\u0275attributeInterpolate6:kh,\u0275\u0275attributeInterpolate7:jp,\u0275\u0275attributeInterpolate8:Up,\u0275\u0275attributeInterpolateV:Lh,\u0275\u0275defineComponent:Ei,\u0275\u0275defineDirective:po,\u0275\u0275defineInjectable:Ie,\u0275\u0275defineInjector:Ht,\u0275\u0275defineNgModule:no,\u0275\u0275definePipe:Io,\u0275\u0275directiveInject:gu,\u0275\u0275getInheritedFactory:Xt,\u0275\u0275inject:rn,\u0275\u0275injectAttribute:zn,\u0275\u0275invalidFactory:Em,\u0275\u0275invalidFactoryDep:Sn,\u0275\u0275templateRefExtractor:Zt,\u0275\u0275resetView:mt,\u0275\u0275HostDirectivesFeature:zf,\u0275\u0275NgOnChangesFeature:Or,\u0275\u0275ProvidersFeature:Tv,\u0275\u0275CopyDefinitionFeature:Wf,\u0275\u0275InheritDefinitionFeature:Eh,\u0275\u0275StandaloneFeature:Av,\u0275\u0275nextContext:ln,\u0275\u0275namespaceHTML:Ko,\u0275\u0275namespaceMathML:as,\u0275\u0275namespaceSVG:jo,\u0275\u0275enableBindings:$i,\u0275\u0275disableBindings:qt,\u0275\u0275elementStart:Rm,\u0275\u0275elementEnd:Fm,\u0275\u0275element:Bh,\u0275\u0275elementContainerStart:Bm,\u0275\u0275elementContainerEnd:Nm,\u0275\u0275elementContainer:Nh,\u0275\u0275pureFunction0:Uv,\u0275\u0275pureFunction1:Vv,\u0275\u0275pureFunction2:$v,\u0275\u0275pureFunction3:Wv,\u0275\u0275pureFunction4:M_,\u0275\u0275pureFunction5:zv,\u0275\u0275pureFunction6:Yv,\u0275\u0275pureFunction7:Hv,\u0275\u0275pureFunction8:Kv,\u0275\u0275pureFunctionV:Gv,\u0275\u0275getCurrentView:t_,\u0275\u0275restoreView:_e,\u0275\u0275listener:jm,\u0275\u0275projection:Jn,\u0275\u0275syntheticHostProperty:f_,\u0275\u0275syntheticHostListener:A,\u0275\u0275pipeBind1:t1,\u0275\u0275pipeBind2:n1,\u0275\u0275pipeBind3:o1,\u0275\u0275pipeBind4:a1,\u0275\u0275pipeBindV:r1,\u0275\u0275projectionDef:$n,\u0275\u0275hostProperty:t0,\u0275\u0275property:Rh,\u0275\u0275propertyInterpolate:xi,\u0275\u0275propertyInterpolate1:Mi,\u0275\u0275propertyInterpolate2:Oi,\u0275\u0275propertyInterpolate3:Hi,\u0275\u0275propertyInterpolate4:mo,\u0275\u0275propertyInterpolate5:ko,\u0275\u0275propertyInterpolate6:Ho,\u0275\u0275propertyInterpolate7:Lo,\u0275\u0275propertyInterpolate8:va,\u0275\u0275propertyInterpolateV:Oa,\u0275\u0275pipe:e1,\u0275\u0275queryRefresh:m1,\u0275\u0275viewQuery:Ub,\u0275\u0275loadQuery:s,\u0275\u0275contentQuery:M,\u0275\u0275reference:e_,\u0275\u0275classMap:V0,\u0275\u0275classMapInterpolate1:G0,\u0275\u0275classMapInterpolate2:Q0,\u0275\u0275classMapInterpolate3:p_,\u0275\u0275classMapInterpolate4:op,\u0275\u0275classMapInterpolate5:Qg,\u0275\u0275classMapInterpolate6:X0,\u0275\u0275classMapInterpolate7:Z0,\u0275\u0275classMapInterpolate8:J0,\u0275\u0275classMapInterpolateV:ap,\u0275\u0275styleMap:pd,\u0275\u0275styleMapInterpolate1:Xg,\u0275\u0275styleMapInterpolate2:q0,\u0275\u0275styleMapInterpolate3:ev,\u0275\u0275styleMapInterpolate4:tv,\u0275\u0275styleMapInterpolate5:Ym,\u0275\u0275styleMapInterpolate6:Zg,\u0275\u0275styleMapInterpolate7:m_,\u0275\u0275styleMapInterpolate8:ca,\u0275\u0275styleMapInterpolateV:zh,\u0275\u0275styleProp:Vp,\u0275\u0275stylePropInterpolate1:Qi,\u0275\u0275stylePropInterpolate2:rp,\u0275\u0275stylePropInterpolate3:zd,\u0275\u0275stylePropInterpolate4:Jg,\u0275\u0275stylePropInterpolate5:qg,\u0275\u0275stylePropInterpolate6:e0,\u0275\u0275stylePropInterpolate7:h_,\u0275\u0275stylePropInterpolate8:Du,\u0275\u0275stylePropInterpolateV:Yl,\u0275\u0275classProp:s_,\u0275\u0275advance:rh,\u0275\u0275template:Jf,\u0275\u0275text:K0,\u0275\u0275textInterpolate:$p,\u0275\u0275textInterpolate1:d_,\u0275\u0275textInterpolate2:$h,\u0275\u0275textInterpolate3:zg,\u0275\u0275textInterpolate4:u_,\u0275\u0275textInterpolate5:Yg,\u0275\u0275textInterpolate6:Wh,\u0275\u0275textInterpolate7:Hg,\u0275\u0275textInterpolate8:Kg,\u0275\u0275textInterpolateV:Gg,\u0275\u0275i18n:Mv,\u0275\u0275i18nAttributes:Dv,\u0275\u0275i18nExp:p0,\u0275\u0275i18nStart:d0,\u0275\u0275i18nEnd:u0,\u0275\u0275i18nApply:Pv,\u0275\u0275i18nPostprocess:Ev,\u0275\u0275resolveWindow:ff,\u0275\u0275resolveDocument:_f,\u0275\u0275resolveBody:gf,\u0275\u0275setComponentScope:ki,\u0275\u0275setNgModuleScope:Qo,\u0275\u0275registerNgModuleType:Zc,\u0275\u0275sanitizeHtml:jl,\u0275\u0275sanitizeStyle:mu,\u0275\u0275sanitizeResourceUrl:ad,\u0275\u0275sanitizeScript:D,\u0275\u0275sanitizeUrl:Rd,\u0275\u0275sanitizeUrlOrResourceUrl:N,\u0275\u0275trustConstantHtml:b,\u0275\u0275trustConstantResourceUrl:v,\u0275\u0275validateIframeAttribute:du,forwardRef:O,resolveForwardRef:L}))();let Fn=null;function vo(){Fn=null}function wo(r){return!!De(r)}const ba=[];let fs=!1;function qr(){if(!fs){fs=!0;try{for(let r=ba.length-1;r>=0;r--){const{moduleType:c,ngModule:f}=ba[r];f.declarations&&f.declarations.every(Ys)&&(ba.splice(r,1),h1(c,f))}}finally{fs=!1}}}function Ys(r){return Array.isArray(r)?r.every(Ys):!!L(r)}function Ou(r,c={}){Cl(r,c),void 0!==c.id&&Zc(r,c.id),function or(r,c){ba.push({moduleType:r,ngModule:c})}(r,c)}function Cl(r,c,f=!1){const k=Ur(c.declarations||zt);let W=null;Object.defineProperty(r,sn,{configurable:!0,get:()=>(null===W&&(W=Ba().compileNgModule(Pn,`ng:///${r.name}/\u0275mod.js`,{type:r,bootstrap:Ur(c.bootstrap||zt).map(L),declarations:k.map(L),imports:Ur(c.imports||zt).map(L).map(Xa),exports:Ur(c.exports||zt).map(L).map(Xa),schemas:c.schemas?Ur(c.schemas):null,id:c.id||null}),W.schemas||(W.schemas=[])),W)});let ee=null;Object.defineProperty(r,wn,{get:()=>{if(null===ee){const Te=Ba();ee=Te.compileFactory(Pn,`ng:///${r.name}/\u0275fac.js`,{name:r.name,type:r,deps:_d(r),target:Te.FactoryTarget.NgModule,typeArgumentCount:0})}return ee},configurable:!1});let de=null;Object.defineProperty(r,Dt,{get:()=>{if(null===de){const Te={name:r.name,type:r,providers:c.providers||zt,imports:[(c.imports||zt).map(L),(c.exports||zt).map(L)]};de=Ba().compileInjector(Pn,`ng:///${r.name}/\u0275inj.js`,Te)}return de},configurable:!1})}let sf=new WeakMap,Gp=new WeakMap;function Qp(){sf=new WeakMap,Gp=new WeakMap,ba.length=0}function h1(r,c){const f=Ur(c.declarations||zt),k=Do(r);f.forEach(W=>{(W=L(W)).hasOwnProperty(vt)?ho(en(W),k):!W.hasOwnProperty(Rt)&&!W.hasOwnProperty(gt)&&(W.ngSelectorScope=r)})}function ho(r,c){r.directiveDefs=()=>Array.from(c.compilation.directives).map(f=>f.hasOwnProperty(vt)?en(f):Hn(f)).filter(f=>!!f),r.pipeDefs=()=>Array.from(c.compilation.pipes).map(f=>tt(f)),r.schemas=c.schemas,r.tView=null}function Do(r){if(wo(r))return function Vo(r){const c=De(r,!0);if(null!==c.transitiveCompileScopes)return c.transitiveCompileScopes;const f={schemas:c.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return $l(c.imports).forEach(k=>{const W=Do(k);W.exported.directives.forEach(ee=>f.compilation.directives.add(ee)),W.exported.pipes.forEach(ee=>f.compilation.pipes.add(ee))}),$l(c.declarations).forEach(k=>{tt(k)?f.compilation.pipes.add(k):f.compilation.directives.add(k)}),$l(c.exports).forEach(k=>{const W=k;if(wo(W)){const ee=Do(W);ee.exported.directives.forEach(de=>{f.compilation.directives.add(de),f.exported.directives.add(de)}),ee.exported.pipes.forEach(de=>{f.compilation.pipes.add(de),f.exported.pipes.add(de)})}else tt(W)?f.exported.pipes.add(W):f.exported.directives.add(W)}),c.transitiveCompileScopes=f,f}(r);if(nt(r)){if(null!==(en(r)||Hn(r)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([r]),pipes:new Set}};if(null!==tt(r))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([r])}}}throw new Error(`${r.name} does not have a module def (\u0275mod property)`)}function Xa(r){return function bo(r){return void 0!==r.ngModule}(r)?r.ngModule:r}let Hs=0;function hd(r,c){let f=null;(function Bc(r,c){Xc(c)&&(sl.set(r,c),Vs.add(r))})(r,c),cp(r,c),Object.defineProperty(r,vt,{get:()=>{if(null===f){const k=Ba();if(Xc(c)){const xt=[`Component '${r.name}' is not resolved:`];throw c.templateUrl&&xt.push(` - templateUrl: ${c.templateUrl}`),c.styleUrls&&c.styleUrls.length&&xt.push(` - styleUrls: ${JSON.stringify(c.styleUrls)}`),xt.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(xt.join("\n"))}const W=function Ti(){return Fn}();let ee=c.preserveWhitespaces;void 0===ee&&(ee=null!==W&&void 0!==W.preserveWhitespaces&&W.preserveWhitespaces);let de=c.encapsulation;void 0===de&&(de=null!==W&&void 0!==W.defaultEncapsulation?W.defaultEncapsulation:qe.Emulated);const Te=c.templateUrl||`ng:///${r.name}/template.html`,Ve={...cf(r,c),typeSourceSpan:k.createParseSourceSpan("Component",r.name,Te),template:c.template||"",preserveWhitespaces:ee,styles:c.styles||zt,animations:c.animations,declarations:[],changeDetection:c.changeDetection,encapsulation:de,interpolation:c.interpolation,viewProviders:c.viewProviders||null};Hs++;try{if(Ve.usesInheritance&&O_(r),f=k.compileComponent(Pn,Te,Ve),c.standalone){const xt=Ur(c.imports||zt),{directiveDefs:Jt,pipeDefs:Mn}=function bs(r,c){let f=null,k=null;return{directiveDefs:()=>{if(null===f){f=[en(r)];const de=new Set;for(const Te of c){const Ve=L(Te);if(!de.has(Ve))if(de.add(Ve),De(Ve)){const xt=Do(Ve);for(const Jt of xt.exported.directives){const Mn=en(Jt)||Hn(Jt);Mn&&!de.has(Jt)&&(de.add(Jt),f.push(Mn))}}else{const xt=en(Ve)||Hn(Ve);xt&&f.push(xt)}}}return f},pipeDefs:()=>{if(null===k){k=[];const de=new Set;for(const Te of c){const Ve=L(Te);if(!de.has(Ve))if(de.add(Ve),De(Ve)){const xt=Do(Ve);for(const Jt of xt.exported.pipes){const Mn=tt(Jt);Mn&&!de.has(Jt)&&(de.add(Jt),k.push(Mn))}}else{const xt=tt(Ve);xt&&k.push(xt)}}}return k}}}(r,xt);f.directiveDefs=Jt,f.pipeDefs=Mn,f.dependencies=()=>xt.map(L)}}finally{Hs--}if(0===Hs&&qr(),function f1(r){return void 0!==r.ngSelectorScope}(r)){const xt=Do(r.ngSelectorScope);ho(f,xt)}if(c.schemas){if(!c.standalone)throw new Error(`The 'schemas' was specified for the ${j(r)} but is only valid on a component that is standalone.`);f.schemas=c.schemas}else c.standalone&&(f.schemas=[])}return f},configurable:!1})}function P0(r,c){let f=null;cp(r,c||{}),Object.defineProperty(r,Rt,{get:()=>{if(null===f){const k=Sc(r,c||{});f=Ba().compileDirective(Pn,k.sourceMapUrl,k.metadata)}return f},configurable:!1})}function Sc(r,c){const f=r&&r.name,k=`ng:///${f}/\u0275dir.js`,W=Ba(),ee=cf(r,c);return ee.typeSourceSpan=W.createParseSourceSpan("Directive",f,k),ee.usesInheritance&&O_(r),{metadata:ee,sourceMapUrl:k}}function cp(r,c){let f=null;Object.defineProperty(r,wn,{get:()=>{if(null===f){const k=Sc(r,c),W=Ba();f=W.compileFactory(Pn,`ng:///${r.name}/\u0275fac.js`,{name:k.metadata.name,type:k.metadata.type,typeArgumentCount:0,deps:_d(r),target:W.FactoryTarget.Directive})}return f},configurable:!1})}function Hl(r){return Object.getPrototypeOf(r.prototype)===Object.prototype}function cf(r,c){const f=Qc(),k=f.ownPropMetadata(r);return{name:r.name,type:r,selector:void 0!==c.selector?c.selector:null,host:c.host||ze,propMetadata:k,inputs:c.inputs||zt,outputs:c.outputs||zt,queries:mC(r,k,hC),lifecycle:{usesOnChanges:f.hasLifecycleHook(r,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!Hl(r),exportAs:dy(c.exportAs),providers:c.providers||null,viewQueries:mC(r,k,fC),isStandalone:!!c.standalone,hostDirectives:c.hostDirectives?.map(W=>"function"==typeof W?{directive:W}:W)||null}}function O_(r){const c=Object.prototype;let f=Object.getPrototypeOf(r.prototype).constructor;for(;f&&f!==c;)!Hn(f)&&!en(f)&&py(f)&&P0(f,null),f=Object.getPrototypeOf(f)}function cy(r){return"string"==typeof r?gC(r):L(r)}function ly(r,c){return{propertyName:r,predicate:cy(c.selector),descendants:c.descendants,first:c.first,read:c.read?c.read:null,static:!!c.static,emitDistinctChangesOnly:!!c.emitDistinctChangesOnly}}function mC(r,c,f){const k=[];for(const W in c)if(c.hasOwnProperty(W)){const ee=c[W];ee.forEach(de=>{if(f(de)){if(!de.selector)throw new Error(`Can't construct a query for the property "${W}" of "${j(r)}" since the query selector wasn't defined.`);if(ee.some(_C))throw new Error("Cannot combine @Input decorators with query decorators");k.push(ly(W,de))}})}return k}function dy(r){return void 0===r?null:gC(r)}function hC(r){const c=r.ngMetadataName;return"ContentChild"===c||"ContentChildren"===c}function fC(r){const c=r.ngMetadataName;return"ViewChild"===c||"ViewChildren"===c}function _C(r){return"Input"===r.ngMetadataName}function gC(r){return r.split(",").map(c=>c.trim())}const uy=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function py(r){const c=Qc();if(uy.some(k=>c.hasLifecycleHook(r,k)))return!0;const f=c.propMetadata(r);for(const k in f){const W=f[k];for(let ee=0;ee<W.length;ee++){const de=W[ee],Te=de.ngMetadataName;if(_C(de)||hC(de)||fC(de)||"Output"===Te||"HostBinding"===Te||"HostListener"===Te)return!0}}return!1}function vC(r,c){let f=null,k=null;Object.defineProperty(r,wn,{get:()=>{if(null===k){const W=bC(r,c),ee=Ba();k=ee.compileFactory(Pn,`ng:///${W.name}/\u0275fac.js`,{name:W.name,type:W.type,typeArgumentCount:0,deps:_d(r),target:ee.FactoryTarget.Pipe})}return k},configurable:!1}),Object.defineProperty(r,gt,{get:()=>{if(null===f){const W=bC(r,c);f=Ba().compilePipe(Pn,`ng:///${W.name}/\u0275pipe.js`,W)}return f},configurable:!1})}function bC(r,c){return{type:r,name:r.name,pipeName:c.name,pure:void 0===c.pure||c.pure,isStandalone:!!c.standalone}}const CC=Ji("Directive",(r={})=>r,void 0,void 0,(r,c)=>P0(r,c)),my=Ji("Component",(r={})=>({changeDetection:rt.Default,...r}),CC,void 0,(r,c)=>hd(r,c)),hy=Ji("Pipe",r=>({pure:!0,...r}),void 0,void 0,(r,c)=>vC(r,c)),fy=Fa("Input",r=>({bindingPropertyName:r})),_y=Fa("Output",r=>({bindingPropertyName:r})),gy=Fa("HostBinding",r=>({hostPropertyName:r})),vy=Fa("HostListener",(r,c)=>({eventName:r,args:c})),by=Ji("NgModule",r=>r,void 0,void 0,(r,c)=>Ou(r,c));function _1(...r){}const yC=new Ma("Application Initializer");let g1=(()=>{class r{constructor(f){this.appInits=f,this.resolve=_1,this.reject=_1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((k,W)=>{this.resolve=k,this.reject=W})}runInitializers(){if(this.initialized)return;const f=[],k=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let W=0;W<this.appInits.length;W++){const ee=this.appInits[W]();if(jh(ee))f.push(ee);else if(i_(ee)){const de=new Promise((Te,Ve)=>{ee.subscribe({complete:Te,error:Ve})});f.push(de)}}Promise.all(f).then(()=>{k()}).catch(W=>{this.reject(W)}),0===f.length&&k(),this.initialized=!0}}return r.\u0275fac=function(f){return new(f||r)(rn(yC,8))},r.\u0275prov=Ie({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const xC=new Ma("AppId",{providedIn:"root",factory:MC});function MC(){return`${Vb()}${Vb()}${Vb()}`}const Cy={provide:xC,useFactory:MC,deps:[]};function Vb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const DC=new Ma("Platform Initializer"),yy=new Ma("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),xy=new Ma("Application Packages Root URL"),My=new Ma("AnimationModuleType");let Dy=(()=>{class r{log(f){console.log(f)}warn(f){console.warn(f)}}return r.\u0275fac=function(f){return new(f||r)},r.\u0275prov=Ie({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();const v1=new Ma("LocaleId",{providedIn:"root",factory:()=>ke(v1,ot.Optional|ot.SkipSelf)||function Py(){return typeof $localize<"u"&&$localize.locale||Yd}()}),Ey=new Ma("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),Oy=new Ma("Translations"),Sy=new Ma("TranslationsFormat");var lp=(()=>((lp=lp||{})[lp.Error=0]="Error",lp[lp.Warning=1]="Warning",lp[lp.Ignore=2]="Ignore",lp))();class PC{constructor(c,f){this.ngModuleFactory=c,this.componentFactories=f}}let Ty=(()=>{class r{compileModuleSync(f){return new sp(f)}compileModuleAsync(f){return Promise.resolve(this.compileModuleSync(f))}compileModuleAndAllComponentsSync(f){const k=this.compileModuleSync(f),ee=$l(De(f).declarations).reduce((de,Te)=>{const Ve=en(Te);return Ve&&de.push(new yu(Ve)),de},[]);return new PC(k,ee)}compileModuleAndAllComponentsAsync(f){return Promise.resolve(this.compileModuleAndAllComponentsSync(f))}clearCache(){}clearCacheFor(f){}getModuleId(f){}}return r.\u0275fac=function(f){return new(f||r)},r.\u0275prov=Ie({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const EC=new Ma("compilerOptions");class Iy{}function wy(r){Sm(hp(r)),Rv(r).forEach(c=>Zf(c))}const OC="ng";let SC=!1;function Ay(){SC||(SC=!0,Qd("\u0275setProfiler",Rr),Qd("getDirectiveMetadata",Pb),Qd("getComponent",Kp),Qd("getContext",kv),Qd("getListeners",Bv),Qd("getOwningComponent",Lv),Qd("getHostElement",g0),Qd("getInjector",x_),Qd("getRootComponents",Rv),Qd("getDirectives",Fv),Qd("applyChanges",wy))}function Qd(r,c){if((typeof COMPILED>"u"||!COMPILED)&&xn){let k=xn[OC];k||(k=xn[OC]={}),k[r]=c}}const ky=(()=>Promise.resolve(0))();function $b(r){typeof Zone>"u"?ky.then(()=>{r&&r.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",r)}class Xd{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:f=!1,shouldCoalesceRunChangeDetection:k=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hd(!1),this.onMicrotaskEmpty=new Hd(!1),this.onStable=new Hd(!1),this.onError=new Hd(!1),typeof Zone>"u")throw new $(908,!1);Zone.assertZonePatched();const W=this;W._nesting=0,W._outer=W._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(W._inner=W._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(W._inner=W._inner.fork(Zone.longStackTraceZoneSpec)),W.shouldCoalesceEventChangeDetection=!k&&f,W.shouldCoalesceRunChangeDetection=k,W.lastRequestAnimationFrameId=-1,W.nativeRequestAnimationFrame=function Ly(){let r=xn.requestAnimationFrame,c=xn.cancelAnimationFrame;if(typeof Zone<"u"&&r&&c){const f=r[Zone.__symbol__("OriginalDelegate")];f&&(r=f);const k=c[Zone.__symbol__("OriginalDelegate")];k&&(c=k)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function By(r){const c=()=>{!function Fy(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(xn,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,zb(r),r.isCheckStableRunning=!0,Wb(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),zb(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(f,k,W,ee,de,Te)=>{try{return TC(r),f.invokeTask(W,ee,de,Te)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===ee.type||r.shouldCoalesceRunChangeDetection)&&c(),IC(r)}},onInvoke:(f,k,W,ee,de,Te,Ve)=>{try{return TC(r),f.invoke(W,ee,de,Te,Ve)}finally{r.shouldCoalesceRunChangeDetection&&c(),IC(r)}},onHasTask:(f,k,W,ee)=>{f.hasTask(W,ee),k===W&&("microTask"==ee.change?(r._hasPendingMicrotasks=ee.microTask,zb(r),Wb(r)):"macroTask"==ee.change&&(r.hasPendingMacrotasks=ee.macroTask))},onHandleError:(f,k,W,ee)=>(f.handleError(W,ee),r.runOutsideAngular(()=>r.onError.emit(ee)),!1)})}(W)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xd.isInAngularZone())throw new $(909,!1)}static assertNotInAngularZone(){if(Xd.isInAngularZone())throw new $(909,!1)}run(c,f,k){return this._inner.run(c,f,k)}runTask(c,f,k,W){const ee=this._inner,de=ee.scheduleEventTask("NgZoneEvent: "+W,c,Ry,_1,_1);try{return ee.runTask(de,f,k)}finally{ee.cancelTask(de)}}runGuarded(c,f,k){return this._inner.runGuarded(c,f,k)}runOutsideAngular(c){return this._outer.run(c)}}const Ry={};function Wb(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function zb(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function TC(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function IC(r){r._nesting--,Wb(r)}class wC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Hd,this.onMicrotaskEmpty=new Hd,this.onStable=new Hd,this.onError=new Hd}run(c,f,k){return c.apply(f,k)}runGuarded(c,f,k){return c.apply(f,k)}runOutsideAngular(c){return c()}runTask(c,f,k,W){return c.apply(f,k)}}const AC=new Ma(""),kC=new Ma("");let Yb,Ny=(()=>{class r{constructor(f,k,W){this._ngZone=f,this.registry=k,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Yb||(RC(W),W.addToWindow(k)),this._watchAngularEvents(),f.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xd.assertNotInAngularZone(),$b(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$b(()=>{for(;0!==this._callbacks.length;){let f=this._callbacks.pop();clearTimeout(f.timeoutId),f.doneCb(this._didWork)}this._didWork=!1});else{let f=this.getPendingTasks();this._callbacks=this._callbacks.filter(k=>!k.updateCb||!k.updateCb(f)||(clearTimeout(k.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(f=>({source:f.source,creationLocation:f.creationLocation,data:f.data})):[]}addCallback(f,k,W){let ee=-1;k&&k>0&&(ee=setTimeout(()=>{this._callbacks=this._callbacks.filter(de=>de.timeoutId!==ee),f(this._didWork,this.getPendingTasks())},k)),this._callbacks.push({doneCb:f,timeoutId:ee,updateCb:W})}whenStable(f,k,W){if(W&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(f,k,W),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(f){this.registry.registerApplication(f,this)}unregisterApplication(f){this.registry.unregisterApplication(f)}findProviders(f,k,W){return[]}}return r.\u0275fac=function(f){return new(f||r)(rn(Xd),rn(LC),rn(kC))},r.\u0275prov=Ie({token:r,factory:r.\u0275fac}),r})(),LC=(()=>{class r{constructor(){this._applications=new Map}registerApplication(f,k){this._applications.set(f,k)}unregisterApplication(f){this._applications.delete(f)}unregisterAllApplications(){this._applications.clear()}getTestability(f){return this._applications.get(f)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(f,k=!0){return Yb?.findTestabilityInTree(this,f,k)??null}}return r.\u0275fac=function(f){return new(f||r)},r.\u0275prov=Ie({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();function RC(r){Yb=r}const Zp=!1;let Km=null;const Hb=new Ma("AllowMultipleToken"),Kb=new Ma("PlatformDestroyListeners"),FC=new Ma("appBootstrapListener");function BC(r,c,f){const k=new sp(f);return Promise.resolve(k)}function NC(r){return r.isBoundToModule}class jy{constructor(c,f){this.name=c,this.token=f}}function jC(r){if(Km&&!Km.get(Hb,!1))throw new $(400,!1);Km=r;const c=r.get(Gb);return UC(r),c}function UC(r){const c=r.get(DC,null);c&&c.forEach(f=>f())}function Vy(r){const{rootComponent:c,appProviders:f,platformProviders:k}=r;Zp&&void 0!==c&&function vf(r){if(function N_(r){if(!en(r))throw new $(906,`The ${j(r)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(r),!en(r).standalone)throw new $(907,`The ${j(r)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${j(r)} component has the \`standalone: true\` flag in the decorator.`)}(c);const W=function Uy(r=[]){if(Km)return Km;const c=WC(r);return Km=c,UC(c),c}(k),ee=YC("zone.js",zC());return ee.run(()=>{const Te=_0([{provide:Xd,useValue:ee},...f||[]],W,"Environment Injector"),Ve=Te.get(kp,null);if(Zp&&!Ve)throw new $(402,"No `ErrorHandler` found in the Dependency Injection tree.");let xt;ee.runOutsideAngular(()=>{xt=ee.onError.subscribe({next:Kn=>{Ve.handleError(Kn)}})});const Jt=()=>Te.destroy(),Mn=W.get(Kb);return Mn.add(Jt),Te.onDestroy(()=>{xt.unsubscribe(),Mn.delete(Jt)}),HC(Ve,ee,()=>{const Kn=Te.get(g1);return Kn.runInitializers(),Kn.donePromise.then(()=>{a0(Te.get(v1,Yd)||Yd);const gi=Te.get(C1);return void 0!==c&&gi.bootstrap(c),gi})})})}function VC(r,c,f=[]){const k=`Platform: ${c}`,W=new Ma(k);return(ee=[])=>{let de=b1();if(!de||de.injector.get(Hb,!1)){const Te=[...f,...ee,{provide:W,useValue:!0}];r?r(Te):jC(WC(Te,k))}return $C()}}function $C(r){const c=b1();if(!c)throw new $(401,!1);return c}function WC(r=[],c){return Nd.create({name:c,providers:[{provide:oo,useValue:"platform"},{provide:Kb,useValue:new Set([()=>Km=null])},...r]})}function $y(){b1()?.destroy()}function b1(){return Km?.get(Gb)??null}let Gb=(()=>{class r{constructor(f){this._injector=f,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(f,k){const W=YC(k?.ngZone,zC(k)),ee=[{provide:Xd,useValue:W}];return W.run(()=>{const de=Nd.create({providers:ee,parent:this.injector,name:f.moduleType.name}),Te=f.create(de),Ve=Te.injector.get(kp,null);if(!Ve)throw new $(402,!1);return W.runOutsideAngular(()=>{const xt=W.onError.subscribe({next:Jt=>{Ve.handleError(Jt)}});Te.onDestroy(()=>{y1(this._modules,Te),xt.unsubscribe()})}),HC(Ve,W,()=>{const xt=Te.injector.get(g1);return xt.runInitializers(),xt.donePromise.then(()=>(a0(Te.injector.get(v1,Yd)||Yd),this._moduleDoBootstrap(Te),Te))})})}bootstrapModule(f,k=[]){const W=KC({},k);return BC(0,0,f).then(ee=>this.bootstrapModuleFactory(ee,W))}_moduleDoBootstrap(f){const k=f.injector.get(C1);if(f._bootstrapComponents.length>0)f._bootstrapComponents.forEach(W=>k.bootstrap(W));else{if(!f.instance.ngDoBootstrap)throw new $(-403,!1);f.instance.ngDoBootstrap(k)}this._modules.push(f)}onDestroy(f){this._destroyListeners.push(f)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $(404,!1);this._modules.slice().forEach(k=>k.destroy()),this._destroyListeners.forEach(k=>k());const f=this._injector.get(Kb,null);f&&(f.forEach(k=>k()),f.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return r.\u0275fac=function(f){return new(f||r)(rn(Nd))},r.\u0275prov=Ie({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();function zC(r){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!r||!r.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!r||!r.ngZoneRunCoalescing)||!1}}function YC(r,c){let f;return f="noop"===r?new wC:("zone.js"===r?void 0:r)||new Xd(c),f}function HC(r,c,f){try{const k=f();return jh(k)?k.catch(W=>{throw c.runOutsideAngular(()=>r.handleError(W)),W}):k}catch(k){throw c.runOutsideAngular(()=>r.handleError(k)),k}}function KC(r,c){return Array.isArray(c)?c.reduce(KC,r):{...r,...c}}let C1=(()=>{class r{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(f,k,W){this._zone=f,this._injector=k,this._exceptionHandler=W,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const ee=new i.y(Te=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Te.next(this._stable),Te.complete()})}),de=new i.y(Te=>{let Ve;this._zone.runOutsideAngular(()=>{Ve=this._zone.onStable.subscribe(()=>{Xd.assertNotInAngularZone(),$b(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Te.next(!0))})})});const xt=this._zone.onUnstable.subscribe(()=>{Xd.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Te.next(!1)}))});return()=>{Ve.unsubscribe(),xt.unsubscribe()}});this.isStable=(0,d.T)(ee,de.pipe((0,a.B)()))}bootstrap(f,k){Zp&&this.warnIfDestroyed();const W=f instanceof Ul;if(!this._injector.get(g1).done){const oi="Cannot bootstrap as there are still asynchronous initializers running."+(!W&&nt(f)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new $(405,Zp&&oi)}let de;de=W?f:this._injector.get(wp).resolveComponentFactory(f),this.componentTypes.push(de.componentType);const Te=NC(de)?void 0:this._injector.get(Hm),xt=de.create(Nd.NULL,[],k||de.selector,Te),Jt=xt.location.nativeElement,Mn=xt.injector.get(AC,null);return Mn?.registerApplication(Jt),xt.onDestroy(()=>{this.detachView(xt.hostView),y1(this.components,xt),Mn?.unregisterApplication(Jt)}),this._loadComponent(xt),xt}tick(){if(Zp&&this.warnIfDestroyed(),this._runningTick)throw new $(101,!1);try{this._runningTick=!0;for(let f of this._views)f.detectChanges()}catch(f){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(f))}finally{this._runningTick=!1}}attachView(f){Zp&&this.warnIfDestroyed();const k=f;this._views.push(k),k.attachToAppRef(this)}detachView(f){Zp&&this.warnIfDestroyed();const k=f;y1(this._views,k),k.detachFromAppRef()}_loadComponent(f){this.attachView(f.hostView),this.tick(),this.components.push(f);const k=this._injector.get(FC,[]);k.push(...this._bootstrapListeners),k.forEach(W=>W(f))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(f=>f()),this._views.slice().forEach(f=>f.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(f){return Zp&&this.warnIfDestroyed(),this._destroyListeners.push(f),()=>y1(this._destroyListeners,f)}destroy(){if(this._destroyed)throw new $(406,!1);const f=this._injector;f.destroy&&!f.destroyed&&f.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){Zp&&this._destroyed&&console.warn(C(406,"This instance of the `ApplicationRef` has already been destroyed."))}}return r.\u0275fac=function(f){return new(f||r)(rn(Xd),rn(Xr),rn(kp))},r.\u0275prov=Ie({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function y1(r,c){const f=r.indexOf(c);f>-1&&r.splice(f,1)}function zy(){return!1}function Yy(){}function Hy(r){const c=Xl(r);if(!c)throw QC(r);return new sp(c)}function Ky(r){const c=Xl(r);if(!c)throw QC(r);return c}function QC(r){return new Error(`No module with ID ${r} loaded`)}let XC=(()=>{class r{}return r.__NG_ELEMENT_ID__=ZC,r})();function ZC(r){return function Gy(r,c,f){if(Zi(r)&&!f){const k=Ia(r.index,c);return new vl(k,k)}return 47&r.type?new vl(c[Ot],c):null}(Vt(),it(),16==(16&r))}class JC extends XC{}class Qy extends JC{}class Xy{constructor(c,f){this.name=c,this.callback=f}}function Zy(r){return r.map(c=>c.nativeElement)}class Qb{constructor(c){this.nativeNode=c}get parent(){const c=this.nativeNode.parentNode;return c?new E0(c):null}get injector(){return x_(this.nativeNode)}get componentInstance(){const c=this.nativeNode;return c&&(Kp(c)||Lv(c))}get context(){return Kp(this.nativeNode)||kv(this.nativeNode)}get listeners(){return Bv(this.nativeNode).filter(c=>"dom"===c.type)}get references(){return function Eb(r){const c=xs(r);if(null===c)return{};if(void 0===c.localRefs){const f=c.lView;if(null===f)return{};c.localRefs=function tu(r,c){const f=r[ut].data[c];if(f&&f.localNames){const k={};let W=f.index+1;for(let ee=0;ee<f.localNames.length;ee+=2)k[f.localNames[ee]]=r[W],W++;return k}return null}(f,c.nodeIndex)}return c.localRefs||{}}(this.nativeNode)}get providerTokens(){return function Db(r){const c=xs(r),f=c?c.lView:null;if(null===f)return[];const k=f[ut],W=k.data[c.nodeIndex],ee=[],Te=W.directiveEnd;for(let Ve=1048575&W.providerIndexes;Ve<Te;Ve++){let xt=k.data[Ve];Nv(xt)&&(xt=xt.type),ee.push(xt)}return ee}(this.nativeNode)}}class E0 extends Qb{constructor(c){super(c)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const c=xs(this.nativeNode),f=c?c.lView:null;return null!==f?f[ut].data[c.nodeIndex].value:this.nativeNode.nodeName}get properties(){const c=xs(this.nativeNode),f=c?c.lView:null;if(null===f)return{};const k=f[ut].data,W=k[c.nodeIndex],ee={};return function Jy(r,c){if(r){let f=Object.getPrototypeOf(r);const k=Node.prototype;for(;null!==f&&f!==k;){const W=Object.getOwnPropertyDescriptors(f);for(let ee in W)if(!ee.startsWith("__")&&!ee.startsWith("on")){const de=r[ee];qy(de)&&(c[ee]=de)}f=Object.getPrototypeOf(f)}}}(this.nativeElement,ee),function ex(r,c,f,k){let W=c.propertyBindings;if(null!==W)for(let ee=0;ee<W.length;ee++){const de=W[ee],Ve=k[de].split("\ufffd"),xt=Ve[0];if(Ve.length>1){let Jt=Ve[1];for(let Mn=1;Mn<Ve.length-1;Mn++)Jt+=T(f[de+Mn-1])+Ve[Mn+1];r[xt]=Jt}else r[xt]=f[de]}}(ee,W,f,k),ee}get attributes(){const c={},f=this.nativeElement;if(!f)return c;const k=xs(f),W=k?k.lView:null;if(null===W)return{};const ee=W[ut].data[k.nodeIndex].attrs,de=[];if(ee){let Te=0;for(;Te<ee.length;){const Ve=ee[Te];if("string"!=typeof Ve)break;c[Ve]=ee[Te+1],de.push(Ve.toLowerCase()),Te+=2}}for(const Te of f.attributes)de.includes(Te.name)||(c[Te.name]=Te.value);return c}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const c={},k=this.nativeElement.className;return("string"!=typeof k?k.baseVal.split(" "):k.split(" ")).forEach(ee=>c[ee]=!0),c}get childNodes(){const c=this.nativeNode.childNodes,f=[];for(let k=0;k<c.length;k++)f.push(S_(c[k]));return f}get children(){const c=this.nativeElement;if(!c)return[];const f=c.children,k=[];for(let W=0;W<f.length;W++)k.push(S_(f[W]));return k}query(c){return this.queryAll(c)[0]||null}queryAll(c){const f=[];return qC(this,c,f,!0),f}queryAllNodes(c){const f=[];return qC(this,c,f,!1),f}triggerEventHandler(c,f){const k=this.nativeNode,W=[];this.listeners.forEach(ee=>{if(ee.name===c){const de=ee.callback;de.call(k,f),W.push(de)}}),"function"==typeof k.eventListeners&&k.eventListeners(c).forEach(ee=>{if(-1!==ee.toString().indexOf("__ngUnwrap__")){const de=ee("__ngUnwrap__");return-1===W.indexOf(de)&&de.call(k,f)}})}}function qy(r){return"string"==typeof r||"boolean"==typeof r||"number"==typeof r||null===r}function qC(r,c,f,k){const W=xs(r.nativeNode),ee=W?W.lView:null;null!==ee?lf(ee[ut].data[W.nodeIndex],ee,c,f,k,r.nativeNode):Zb(r.nativeNode,c,f,k)}function lf(r,c,f,k,W,ee){const de=function hr(r,c){const f=null===r?-1:r.index;return-1!==f?da(c[f]):null}(r,c);if(11&r.type){if(Xb(de,f,k,W,ee),Zi(r)){const Ve=Ia(r.index,c);Ve&&Ve[ut].firstChild&&lf(Ve[ut].firstChild,Ve,f,k,W,ee)}else r.child&&lf(r.child,c,f,k,W,ee),de&&Zb(de,f,k,W);const Te=c[r.index];Oo(Te)&&ey(Te,f,k,W,ee)}else if(4&r.type){const Te=c[r.index];Xb(Te[Mt],f,k,W,ee),ey(Te,f,k,W,ee)}else if(16&r.type){const Te=c[Ot],xt=Te[bt].projection[r.projection];if(Array.isArray(xt))for(let Jt of xt)Xb(Jt,f,k,W,ee);else if(xt){const Jt=Te[et];lf(Jt[ut].data[xt.index],Jt,f,k,W,ee)}}else r.child&&lf(r.child,c,f,k,W,ee);if(ee!==de){const Te=2&r.flags?r.projectionNext:r.next;Te&&lf(Te,c,f,k,W,ee)}}function ey(r,c,f,k,W){for(let ee=ai;ee<r.length;ee++){const de=r[ee],Te=de[ut].firstChild;Te&&lf(Te,de,c,f,k,W)}}function Xb(r,c,f,k,W){if(W!==r){const ee=S_(r);if(!ee)return;(k&&ee instanceof E0&&c(ee)&&-1===f.indexOf(ee)||!k&&c(ee)&&-1===f.indexOf(ee))&&f.push(ee)}}function Zb(r,c,f,k){const W=r.childNodes,ee=W.length;for(let de=0;de<ee;de++){const Te=W[de],Ve=S_(Te);Ve&&((k&&Ve instanceof E0&&c(Ve)&&-1===f.indexOf(Ve)||!k&&c(Ve)&&-1===f.indexOf(Ve))&&f.push(Ve),Zb(Te,c,f,k))}}const qb="__ng_debug__";function S_(r){return r instanceof Node?(r.hasOwnProperty(qb)||(r[qb]=r.nodeType==Node.ELEMENT_NODE?new E0(r):new Qb(r)),r[qb]):null}function tx(r){return null}class ty{constructor(){}supports(c){return Xu(c)}create(c){return new ny(c)}}const nx=(r,c)=>c;class ny{constructor(c){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||nx}forEachItem(c){let f;for(f=this._itHead;null!==f;f=f._next)c(f)}forEachOperation(c){let f=this._itHead,k=this._removalsHead,W=0,ee=null;for(;f||k;){const de=!k||f&&f.currentIndex<oy(k,W,ee)?f:k,Te=oy(de,W,ee),Ve=de.currentIndex;if(de===k)W--,k=k._nextRemoved;else if(f=f._next,null==de.previousIndex)W++;else{ee||(ee=[]);const xt=Te-W,Jt=Ve-W;if(xt!=Jt){for(let Kn=0;Kn<xt;Kn++){const oi=Kn<ee.length?ee[Kn]:ee[Kn]=0,gi=oi+Kn;Jt<=gi&&gi<xt&&(ee[Kn]=oi+1)}ee[de.previousIndex]=Jt-xt}}Te!==Ve&&c(de,Te,Ve)}}forEachPreviousItem(c){let f;for(f=this._previousItHead;null!==f;f=f._nextPrevious)c(f)}forEachAddedItem(c){let f;for(f=this._additionsHead;null!==f;f=f._nextAdded)c(f)}forEachMovedItem(c){let f;for(f=this._movesHead;null!==f;f=f._nextMoved)c(f)}forEachRemovedItem(c){let f;for(f=this._removalsHead;null!==f;f=f._nextRemoved)c(f)}forEachIdentityChange(c){let f;for(f=this._identityChangesHead;null!==f;f=f._nextIdentityChange)c(f)}diff(c){if(null==c&&(c=[]),!Xu(c))throw new $(900,!1);return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let W,ee,de,f=this._itHead,k=!1;if(Array.isArray(c)){this.length=c.length;for(let Te=0;Te<this.length;Te++)ee=c[Te],de=this._trackByFn(Te,ee),null!==f&&Object.is(f.trackById,de)?(k&&(f=this._verifyReinsertion(f,ee,de,Te)),Object.is(f.item,ee)||this._addIdentityChange(f,ee)):(f=this._mismatch(f,ee,de,Te),k=!0),f=f._next}else W=0,function Qf(r,c){if(Array.isArray(r))for(let f=0;f<r.length;f++)c(r[f]);else{const f=r[Symbol.iterator]();let k;for(;!(k=f.next()).done;)c(k.value)}}(c,Te=>{de=this._trackByFn(W,Te),null!==f&&Object.is(f.trackById,de)?(k&&(f=this._verifyReinsertion(f,Te,de,W)),Object.is(f.item,Te)||this._addIdentityChange(f,Te)):(f=this._mismatch(f,Te,de,W),k=!0),f=f._next,W++}),this.length=W;return this._truncate(f),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,f,k,W){let ee;return null===c?ee=this._itTail:(ee=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(k,null))?(Object.is(c.item,f)||this._addIdentityChange(c,f),this._reinsertAfter(c,ee,W)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(k,W))?(Object.is(c.item,f)||this._addIdentityChange(c,f),this._moveAfter(c,ee,W)):c=this._addAfter(new ix(f,k),ee,W),c}_verifyReinsertion(c,f,k,W){let ee=null===this._unlinkedRecords?null:this._unlinkedRecords.get(k,null);return null!==ee?c=this._reinsertAfter(ee,c._prev,W):c.currentIndex!=W&&(c.currentIndex=W,this._addToMoves(c,W)),c}_truncate(c){for(;null!==c;){const f=c._next;this._addToRemovals(this._unlink(c)),c=f}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(c,f,k){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const W=c._prevRemoved,ee=c._nextRemoved;return null===W?this._removalsHead=ee:W._nextRemoved=ee,null===ee?this._removalsTail=W:ee._prevRemoved=W,this._insertAfter(c,f,k),this._addToMoves(c,k),c}_moveAfter(c,f,k){return this._unlink(c),this._insertAfter(c,f,k),this._addToMoves(c,k),c}_addAfter(c,f,k){return this._insertAfter(c,f,k),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,f,k){const W=null===f?this._itHead:f._next;return c._next=W,c._prev=f,null===W?this._itTail=c:W._prev=c,null===f?this._itHead=c:f._next=c,null===this._linkedRecords&&(this._linkedRecords=new iy),this._linkedRecords.put(c),c.currentIndex=k,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const f=c._prev,k=c._next;return null===f?this._itHead=k:f._next=k,null===k?this._itTail=f:k._prev=f,c}_addToMoves(c,f){return c.previousIndex===f||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iy),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,f){return c.item=f,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class ix{constructor(c,f){this.item=c,this.trackById=f,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ox{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,f){let k;for(k=this._head;null!==k;k=k._nextDup)if((null===f||f<=k.currentIndex)&&Object.is(k.trackById,c))return k;return null}remove(c){const f=c._prevDup,k=c._nextDup;return null===f?this._head=k:f._nextDup=k,null===k?this._tail=f:k._prevDup=f,null===this._head}}class iy{constructor(){this.map=new Map}put(c){const f=c.trackById;let k=this.map.get(f);k||(k=new ox,this.map.set(f,k)),k.add(c)}get(c,f){const W=this.map.get(c);return W?W.get(c,f):null}remove(c){const f=c.trackById;return this.map.get(f).remove(c)&&this.map.delete(f),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function oy(r,c,f){const k=r.previousIndex;if(null===k)return k;let W=0;return f&&k<f.length&&(W=f[k]),k+c+W}class ay{constructor(){}supports(c){return c instanceof Map||Sh(c)}create(){return new ax}}class ax{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(c){let f;for(f=this._mapHead;null!==f;f=f._next)c(f)}forEachPreviousItem(c){let f;for(f=this._previousMapHead;null!==f;f=f._nextPrevious)c(f)}forEachChangedItem(c){let f;for(f=this._changesHead;null!==f;f=f._nextChanged)c(f)}forEachAddedItem(c){let f;for(f=this._additionsHead;null!==f;f=f._nextAdded)c(f)}forEachRemovedItem(c){let f;for(f=this._removalsHead;null!==f;f=f._nextRemoved)c(f)}diff(c){if(c){if(!(c instanceof Map||Sh(c)))throw new $(900,!1)}else c=new Map;return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let f=this._mapHead;if(this._appendAfter=null,this._forEach(c,(k,W)=>{if(f&&f.key===W)this._maybeAddToChanges(f,k),this._appendAfter=f,f=f._next;else{const ee=this._getOrCreateRecordForKey(W,k);f=this._insertBeforeOrAppend(f,ee)}}),f){f._prev&&(f._prev._next=null),this._removalsHead=f;for(let k=f;null!==k;k=k._nextRemoved)k===this._mapHead&&(this._mapHead=null),this._records.delete(k.key),k._nextRemoved=k._next,k.previousValue=k.currentValue,k.currentValue=null,k._prev=null,k._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,f){if(c){const k=c._prev;return f._next=c,f._prev=k,c._prev=f,k&&(k._next=f),c===this._mapHead&&(this._mapHead=f),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=f,f._prev=this._appendAfter):this._mapHead=f,this._appendAfter=f,null}_getOrCreateRecordForKey(c,f){if(this._records.has(c)){const W=this._records.get(c);this._maybeAddToChanges(W,f);const ee=W._prev,de=W._next;return ee&&(ee._next=de),de&&(de._prev=ee),W._next=null,W._prev=null,W}const k=new rx(c);return this._records.set(c,k),k.currentValue=f,this._addToAdditions(k),k}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,f){Object.is(f,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=f,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,f){c instanceof Map?c.forEach(f):Object.keys(c).forEach(k=>f(c[k],k))}}class rx{constructor(c){this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ry(){return new eC([new ty])}let eC=(()=>{class r{constructor(f){this.factories=f}static create(f,k){if(null!=k){const W=k.factories.slice();f=f.concat(W)}return new r(f)}static extend(f){return{provide:r,useFactory:k=>r.create(f,k||ry()),deps:[[r,new vs,new Js]]}}find(f){const k=this.factories.find(W=>W.supports(f));if(null!=k)return k;throw new $(901,!1)}}return r.\u0275prov=Ie({token:r,providedIn:"root",factory:ry}),r})();function sy(){return new tC([new ay])}let tC=(()=>{class r{constructor(f){this.factories=f}static create(f,k){if(k){const W=k.factories.slice();f=f.concat(W)}return new r(f)}static extend(f){return{provide:r,useFactory:k=>r.create(f,k||sy()),deps:[[r,new vs,new Js]]}}find(f){const k=this.factories.find(W=>W.supports(f));if(k)return k;throw new $(901,!1)}}return r.\u0275prov=Ie({token:r,providedIn:"root",factory:sy}),r})();const sx=[new ay],lx=new eC([new ty]),dx=new tC(sx),ux=VC(null,"core",[]);let px=(()=>{class r{constructor(f){}}return r.\u0275fac=function(f){return new(f||r)(rn(C1))},r.\u0275mod=no({type:r}),r.\u0275inj=Ht({}),r})();function mx(r){return"boolean"==typeof r?r:null!=r&&"false"!==r}function hx(r){return Ba().compileDirectiveDeclaration(Pn,`ng:///${r.type.name}/\u0275fac.js`,r)}function fx(r){jv(r.type,r.decorators,r.ctorParameters??null,r.propDecorators??null)}function _x(r){return Ba().compileComponentDeclaration(Pn,`ng:///${r.type.name}/\u0275cmp.js`,r)}function gx(r){return Ba(function vx(r){switch(r){case Dr.Directive:return"directive";case Dr.Component:return"component";case Dr.Injectable:return"injectable";case Dr.Pipe:return"pipe";case Dr.NgModule:return"NgModule"}}(r.target)).compileFactoryDeclaration(Pn,`ng:///${r.type.name}/\u0275fac.js`,r)}function bx(r){return Ba().compileInjectableDeclaration(Pn,`ng:///${r.type.name}/\u0275prov.js`,r)}function Cx(r){return Ba().compileInjectorDeclaration(Pn,`ng:///${r.type.name}/\u0275inj.js`,r)}function yx(r){return Ba().compileNgModuleDeclaration(Pn,`ng:///${r.type.name}/\u0275mod.js`,r)}function xx(r){return Ba().compilePipeDeclaration(Pn,`ng:///${r.type.name}/\u0275pipe.js`,r)}function Mx(r,c){const f=en(r),k=c.elementInjector||kr();return new yu(f).create(k,c.projectableNodes,c.hostElement,c.environmentInjector)}function Dx(r){const c=en(r);if(!c)return null;const f=new yu(c);return{get selector(){return f.selector},get type(){return f.componentType},get inputs(){return f.inputs},get outputs(){return f.outputs},get ngContentSelectors(){return f.ngContentSelectors},get isStandalone(){return c.standalone}}}},24006:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{AbstractControl:()=>rt,AbstractControlDirective:()=>Qe,AbstractFormGroupDirective:()=>ht,COMPOSITION_BUFFER_MODE:()=>w,CheckboxControlValueAccessor:()=>x,CheckboxRequiredValidator:()=>Ua,ControlContainer:()=>Be,DefaultValueAccessor:()=>B,EmailValidator:()=>Va,FormArray:()=>br,FormArrayName:()=>sr,FormBuilder:()=>ns,FormControl:()=>dn,FormControlDirective:()=>Zi,FormControlName:()=>_o,FormGroup:()=>qe,FormGroupDirective:()=>na,FormGroupName:()=>rr,FormRecord:()=>vt,FormsModule:()=>ao,MaxLengthValidator:()=>Fr,MaxValidator:()=>ur,MinLengthValidator:()=>ha,MinValidator:()=>es,NG_ASYNC_VALIDATORS:()=>T,NG_VALIDATORS:()=>C,NG_VALUE_ACCESSOR:()=>l,NgControl:()=>at,NgControlStatus:()=>Tt,NgControlStatusGroup:()=>ot,NgForm:()=>bt,NgModel:()=>Ui,NgModelGroup:()=>Xn,NgSelectOption:()=>zr,NonNullableFormBuilder:()=>Pa,NumberValueAccessor:()=>Zn,PatternValidator:()=>Ro,RadioControlValueAccessor:()=>ai,RangeValueAccessor:()=>eo,ReactiveFormsModule:()=>Aa,RequiredValidator:()=>pr,SelectControlValueAccessor:()=>Sa,SelectMultipleControlValueAccessor:()=>ia,UntypedFormArray:()=>Ia,UntypedFormBuilder:()=>ar,UntypedFormControl:()=>St,UntypedFormGroup:()=>ze,VERSION:()=>Sr,Validators:()=>I,isFormArray:()=>wa,isFormControl:()=>jt,isFormGroup:()=>zt,isFormRecord:()=>Rt,\u0275InternalFormsSharedModule:()=>fr,\u0275NgNoValidate:()=>li,\u0275NgSelectMultipleOption:()=>Er});var n=t(94650),e=t(36895),i=t(32076),d=t(4128),a=t(54004);let u=(()=>{class Je{constructor(Ue,Qt){this._renderer=Ue,this._elementRef=Qt,this.onChange=ti=>{},this.onTouched=()=>{}}setProperty(Ue,Qt){this._renderer.setProperty(this._elementRef.nativeElement,Ue,Qt)}registerOnTouched(Ue){this.onTouched=Ue}registerOnChange(Ue){this.onChange=Ue}setDisabledState(Ue){this.setProperty("disabled",Ue)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je}),Je})(),h=(()=>{class Je extends u{}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,features:[n.\u0275\u0275InheritDefinitionFeature]}),Je})();const l=new n.InjectionToken("NgValueAccessor"),m={provide:l,useExisting:(0,n.forwardRef)(()=>x),multi:!0};let x=(()=>{class Je extends h{writeValue(Ue){this.setProperty("checked",Ue)}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("change",function($i){return Qt.onChange($i.target.checked)})("blur",function(){return Qt.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([m]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const O={provide:l,useExisting:(0,n.forwardRef)(()=>B),multi:!0},w=new n.InjectionToken("CompositionEventMode");let B=(()=>{class Je extends u{constructor(Ue,Qt,ti){super(Ue,Qt),this._compositionMode=ti,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const Je=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(Je.toLowerCase())}())}writeValue(Ue){this.setProperty("value",Ue??"")}_handleInput(Ue){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ue)}_compositionStart(){this._composing=!0}_compositionEnd(Ue){this._composing=!1,this._compositionMode&&this.onChange(Ue)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(w,8))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("input",function($i){return Qt._handleInput($i.target.value)})("blur",function(){return Qt.onTouched()})("compositionstart",function(){return Qt._compositionStart()})("compositionend",function($i){return Qt._compositionEnd($i.target.value)})},features:[n.\u0275\u0275ProvidersFeature([O]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const _=!1;function y(Je){return null==Je||("string"==typeof Je||Array.isArray(Je))&&0===Je.length}function $(Je){return null!=Je&&"number"==typeof Je.length}const C=new n.InjectionToken("NgValidators"),T=new n.InjectionToken("NgAsyncValidators"),j=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class I{static min(Ke){return F(Ke)}static max(Ke){return z(Ke)}static required(Ke){return X(Ke)}static requiredTrue(Ke){return p(Ke)}static email(Ke){return P(Ke)}static minLength(Ke){return E(Ke)}static maxLength(Ke){return R(Ke)}static pattern(Ke){return ne(Ke)}static nullValidator(Ke){return null}static compose(Ke){return Ce(Ke)}static composeAsync(Ke){return H(Ke)}}function F(Je){return Ke=>{if(y(Ke.value)||y(Je))return null;const Ue=parseFloat(Ke.value);return!isNaN(Ue)&&Ue<Je?{min:{min:Je,actual:Ke.value}}:null}}function z(Je){return Ke=>{if(y(Ke.value)||y(Je))return null;const Ue=parseFloat(Ke.value);return!isNaN(Ue)&&Ue>Je?{max:{max:Je,actual:Ke.value}}:null}}function X(Je){return y(Je.value)?{required:!0}:null}function p(Je){return!0===Je.value?null:{required:!0}}function P(Je){return y(Je.value)||j.test(Je.value)?null:{email:!0}}function E(Je){return Ke=>y(Ke.value)||!$(Ke.value)?null:Ke.value.length<Je?{minlength:{requiredLength:Je,actualLength:Ke.value.length}}:null}function R(Je){return Ke=>$(Ke.value)&&Ke.value.length>Je?{maxlength:{requiredLength:Je,actualLength:Ke.value.length}}:null}function ne(Je){if(!Je)return G;let Ke,Ue;return"string"==typeof Je?(Ue="","^"!==Je.charAt(0)&&(Ue+="^"),Ue+=Je,"$"!==Je.charAt(Je.length-1)&&(Ue+="$"),Ke=new RegExp(Ue)):(Ue=Je.toString(),Ke=Je),Qt=>{if(y(Qt.value))return null;const ti=Qt.value;return Ke.test(ti)?null:{pattern:{requiredPattern:Ue,actualValue:ti}}}}function G(Je){return null}function ce(Je){return null!=Je}function xe(Je){const Ke=(0,n.\u0275isPromise)(Je)?(0,i.D)(Je):Je;if(_&&!(0,n.\u0275isObservable)(Ke)){let Ue="Expected async validator to return Promise or Observable.";throw"object"==typeof Je&&(Ue+=" Are you using a synchronous validator where an async validator is expected?"),new n.\u0275RuntimeError(-1101,Ue)}return Ke}function we(Je){let Ke={};return Je.forEach(Ue=>{Ke=null!=Ue?{...Ke,...Ue}:Ke}),0===Object.keys(Ke).length?null:Ke}function Ge(Je,Ke){return Ke.map(Ue=>Ue(Je))}function pe(Je){return Je.map(Ke=>function ct(Je){return!Je.validate}(Ke)?Ke:Ue=>Ke.validate(Ue))}function Ce(Je){if(!Je)return null;const Ke=Je.filter(ce);return 0==Ke.length?null:function(Ue){return we(Ge(Ue,Ke))}}function U(Je){return null!=Je?Ce(pe(Je)):null}function H(Je){if(!Je)return null;const Ke=Je.filter(ce);return 0==Ke.length?null:function(Ue){const Qt=Ge(Ue,Ke).map(xe);return(0,d.D)(Qt).pipe((0,a.U)(we))}}function Z(Je){return null!=Je?H(pe(Je)):null}function oe(Je,Ke){return null===Je?[Ke]:Array.isArray(Je)?[...Je,Ke]:[Je,Ke]}function Pe(Je){return Je._rawValidators}function Ie(Je){return Je._rawAsyncValidators}function pt(Je){return Je?Array.isArray(Je)?Je:[Je]:[]}function Ht(Je,Ke){return Array.isArray(Je)?Je.includes(Ke):Je===Ke}function Wt(Je,Ke){const Ue=pt(Ke);return pt(Je).forEach(ti=>{Ht(Ue,ti)||Ue.push(ti)}),Ue}function Xe(Je,Ke){return pt(Ke).filter(Ue=>!Ht(Je,Ue))}class Qe{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Ke){this._rawValidators=Ke||[],this._composedValidatorFn=U(this._rawValidators)}_setAsyncValidators(Ke){this._rawAsyncValidators=Ke||[],this._composedAsyncValidatorFn=Z(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ke){this._onDestroyCallbacks.push(Ke)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ke=>Ke()),this._onDestroyCallbacks=[]}reset(Ke){this.control&&this.control.reset(Ke)}hasError(Ke,Ue){return!!this.control&&this.control.hasError(Ke,Ue)}getError(Ke,Ue){return this.control?this.control.getError(Ke,Ue):null}}class Be extends Qe{get formDirective(){return null}get path(){return null}}class at extends Qe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class lt{constructor(Ke){this._cd=Ke}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Tt=(()=>{class Je extends lt{constructor(Ue){super(Ue)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(at,2))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275classProp("ng-untouched",Qt.isUntouched)("ng-touched",Qt.isTouched)("ng-pristine",Qt.isPristine)("ng-dirty",Qt.isDirty)("ng-valid",Qt.isValid)("ng-invalid",Qt.isInvalid)("ng-pending",Qt.isPending)},features:[n.\u0275\u0275InheritDefinitionFeature]}),Je})(),ot=(()=>{class Je extends lt{constructor(Ue){super(Ue)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(Be,10))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275classProp("ng-untouched",Qt.isUntouched)("ng-touched",Qt.isTouched)("ng-pristine",Qt.isPristine)("ng-dirty",Qt.isDirty)("ng-valid",Qt.isValid)("ng-invalid",Qt.isInvalid)("ng-pending",Qt.isPending)("ng-submitted",Qt.isSubmitted)},features:[n.\u0275\u0275InheritDefinitionFeature]}),Je})();function Yn(Je,Ke){return Je?`with name: '${Ke}'`:`at index: ${Ke}`}const En=!1,Wn="VALID",rn="INVALID",Sn="PENDING",ke="DISABLED";function ge(Je){return(je(Je)?Je.validators:Je)||null}function J(Je,Ke){return(je(Ke)?Ke.asyncValidators:Je)||null}function je(Je){return null!=Je&&!Array.isArray(Je)&&"object"==typeof Je}function Et(Je,Ke,Ue){const Qt=Je.controls;if(!(Ke?Object.keys(Qt):Qt).length)throw new n.\u0275RuntimeError(1e3,En?function cn(Je){return`\n    There are no form controls registered with this ${Je?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(Ke):"");if(!Qt[Ue])throw new n.\u0275RuntimeError(1001,En?function Nn(Je,Ke){return`Cannot find form control ${Yn(Je,Ke)}`}(Ke,Ue):"")}function dt(Je,Ke,Ue){Je._forEachChild((Qt,ti)=>{if(void 0===Ue[ti])throw new n.\u0275RuntimeError(1002,En?function Bt(Je,Ke){return`Must supply a value for form control ${Yn(Je,Ke)}`}(Ke,ti):"")})}class rt{constructor(Ke,Ue){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Ke),this._assignAsyncValidators(Ue)}get validator(){return this._composedValidatorFn}set validator(Ke){this._rawValidators=this._composedValidatorFn=Ke}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ke){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ke}get parent(){return this._parent}get valid(){return this.status===Wn}get invalid(){return this.status===rn}get pending(){return this.status==Sn}get disabled(){return this.status===ke}get enabled(){return this.status!==ke}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ke){this._assignValidators(Ke)}setAsyncValidators(Ke){this._assignAsyncValidators(Ke)}addValidators(Ke){this.setValidators(Wt(Ke,this._rawValidators))}addAsyncValidators(Ke){this.setAsyncValidators(Wt(Ke,this._rawAsyncValidators))}removeValidators(Ke){this.setValidators(Xe(Ke,this._rawValidators))}removeAsyncValidators(Ke){this.setAsyncValidators(Xe(Ke,this._rawAsyncValidators))}hasValidator(Ke){return Ht(this._rawValidators,Ke)}hasAsyncValidator(Ke){return Ht(this._rawAsyncValidators,Ke)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ke={}){this.touched=!0,this._parent&&!Ke.onlySelf&&this._parent.markAsTouched(Ke)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ke=>Ke.markAllAsTouched())}markAsUntouched(Ke={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ue=>{Ue.markAsUntouched({onlySelf:!0})}),this._parent&&!Ke.onlySelf&&this._parent._updateTouched(Ke)}markAsDirty(Ke={}){this.pristine=!1,this._parent&&!Ke.onlySelf&&this._parent.markAsDirty(Ke)}markAsPristine(Ke={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ue=>{Ue.markAsPristine({onlySelf:!0})}),this._parent&&!Ke.onlySelf&&this._parent._updatePristine(Ke)}markAsPending(Ke={}){this.status=Sn,!1!==Ke.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ke.onlySelf&&this._parent.markAsPending(Ke)}disable(Ke={}){const Ue=this._parentMarkedDirty(Ke.onlySelf);this.status=ke,this.errors=null,this._forEachChild(Qt=>{Qt.disable({...Ke,onlySelf:!0})}),this._updateValue(),!1!==Ke.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ke,skipPristineCheck:Ue}),this._onDisabledChange.forEach(Qt=>Qt(!0))}enable(Ke={}){const Ue=this._parentMarkedDirty(Ke.onlySelf);this.status=Wn,this._forEachChild(Qt=>{Qt.enable({...Ke,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ke.emitEvent}),this._updateAncestors({...Ke,skipPristineCheck:Ue}),this._onDisabledChange.forEach(Qt=>Qt(!1))}_updateAncestors(Ke){this._parent&&!Ke.onlySelf&&(this._parent.updateValueAndValidity(Ke),Ke.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ke){this._parent=Ke}getRawValue(){return this.value}updateValueAndValidity(Ke={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wn||this.status===Sn)&&this._runAsyncValidator(Ke.emitEvent)),!1!==Ke.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ke.onlySelf&&this._parent.updateValueAndValidity(Ke)}_updateTreeValidity(Ke={emitEvent:!0}){this._forEachChild(Ue=>Ue._updateTreeValidity(Ke)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ke.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ke:Wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ke){if(this.asyncValidator){this.status=Sn,this._hasOwnPendingAsyncValidator=!0;const Ue=xe(this.asyncValidator(this));this._asyncValidationSubscription=Ue.subscribe(Qt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qt,{emitEvent:Ke})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ke,Ue={}){this.errors=Ke,this._updateControlsErrors(!1!==Ue.emitEvent)}get(Ke){let Ue=Ke;return null==Ue||(Array.isArray(Ue)||(Ue=Ue.split(".")),0===Ue.length)?null:Ue.reduce((Qt,ti)=>Qt&&Qt._find(ti),this)}getError(Ke,Ue){const Qt=Ue?this.get(Ue):this;return Qt&&Qt.errors?Qt.errors[Ke]:null}hasError(Ke,Ue){return!!this.getError(Ke,Ue)}get root(){let Ke=this;for(;Ke._parent;)Ke=Ke._parent;return Ke}_updateControlsErrors(Ke){this.status=this._calculateStatus(),Ke&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ke)}_initObservables(){this.valueChanges=new n.EventEmitter,this.statusChanges=new n.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?ke:this.errors?rn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Sn)?Sn:this._anyControlsHaveStatus(rn)?rn:Wn}_anyControlsHaveStatus(Ke){return this._anyControls(Ue=>Ue.status===Ke)}_anyControlsDirty(){return this._anyControls(Ke=>Ke.dirty)}_anyControlsTouched(){return this._anyControls(Ke=>Ke.touched)}_updatePristine(Ke={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ke.onlySelf&&this._parent._updatePristine(Ke)}_updateTouched(Ke={}){this.touched=this._anyControlsTouched(),this._parent&&!Ke.onlySelf&&this._parent._updateTouched(Ke)}_registerOnCollectionChange(Ke){this._onCollectionChange=Ke}_setUpdateStrategy(Ke){je(Ke)&&null!=Ke.updateOn&&(this._updateOn=Ke.updateOn)}_parentMarkedDirty(Ke){return!Ke&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ke){return null}_assignValidators(Ke){this._rawValidators=Array.isArray(Ke)?Ke.slice():Ke,this._composedValidatorFn=function q(Je){return Array.isArray(Je)?U(Je):Je||null}(this._rawValidators)}_assignAsyncValidators(Ke){this._rawAsyncValidators=Array.isArray(Ke)?Ke.slice():Ke,this._composedAsyncValidatorFn=function Oe(Je){return Array.isArray(Je)?Z(Je):Je||null}(this._rawAsyncValidators)}}class qe extends rt{constructor(Ke,Ue,Qt){super(ge(Ue),J(Qt,Ue)),this.controls=Ke,this._initObservables(),this._setUpdateStrategy(Ue),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ke,Ue){return this.controls[Ke]?this.controls[Ke]:(this.controls[Ke]=Ue,Ue.setParent(this),Ue._registerOnCollectionChange(this._onCollectionChange),Ue)}addControl(Ke,Ue,Qt={}){this.registerControl(Ke,Ue),this.updateValueAndValidity({emitEvent:Qt.emitEvent}),this._onCollectionChange()}removeControl(Ke,Ue={}){this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(()=>{}),delete this.controls[Ke],this.updateValueAndValidity({emitEvent:Ue.emitEvent}),this._onCollectionChange()}setControl(Ke,Ue,Qt={}){this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(()=>{}),delete this.controls[Ke],Ue&&this.registerControl(Ke,Ue),this.updateValueAndValidity({emitEvent:Qt.emitEvent}),this._onCollectionChange()}contains(Ke){return this.controls.hasOwnProperty(Ke)&&this.controls[Ke].enabled}setValue(Ke,Ue={}){dt(this,!0,Ke),Object.keys(Ke).forEach(Qt=>{Et(this,!0,Qt),this.controls[Qt].setValue(Ke[Qt],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue)}patchValue(Ke,Ue={}){null!=Ke&&(Object.keys(Ke).forEach(Qt=>{const ti=this.controls[Qt];ti&&ti.patchValue(Ke[Qt],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue))}reset(Ke={},Ue={}){this._forEachChild((Qt,ti)=>{Qt.reset(Ke[ti],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this._updatePristine(Ue),this._updateTouched(Ue),this.updateValueAndValidity(Ue)}getRawValue(){return this._reduceChildren({},(Ke,Ue,Qt)=>(Ke[Qt]=Ue.getRawValue(),Ke))}_syncPendingControls(){let Ke=this._reduceChildren(!1,(Ue,Qt)=>!!Qt._syncPendingControls()||Ue);return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}_forEachChild(Ke){Object.keys(this.controls).forEach(Ue=>{const Qt=this.controls[Ue];Qt&&Ke(Qt,Ue)})}_setUpControls(){this._forEachChild(Ke=>{Ke.setParent(this),Ke._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ke){for(const[Ue,Qt]of Object.entries(this.controls))if(this.contains(Ue)&&Ke(Qt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ue,Qt,ti)=>((Qt.enabled||this.disabled)&&(Ue[ti]=Qt.value),Ue))}_reduceChildren(Ke,Ue){let Qt=Ke;return this._forEachChild((ti,$i)=>{Qt=Ue(Qt,ti,$i)}),Qt}_allControlsDisabled(){for(const Ke of Object.keys(this.controls))if(this.controls[Ke].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ke){return this.controls.hasOwnProperty(Ke)?this.controls[Ke]:null}}const ze=qe,zt=Je=>Je instanceof qe;class vt extends qe{}const Rt=Je=>Je instanceof vt,gt=new n.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>sn}),sn="always";function wn(Je,Ke){return[...Ke.path,Je]}function Qn(Je,Ke,Ue=sn){Co(Je,Ke),Ke.valueAccessor.writeValue(Je.value),(Je.disabled||"always"===Ue)&&Ke.valueAccessor.setDisabledState?.(Je.disabled),function no(Je,Ke){Ke.valueAccessor.registerOnChange(Ue=>{Je._pendingValue=Ue,Je._pendingChange=!0,Je._pendingDirty=!0,"change"===Je.updateOn&&Mo(Je,Ke)})}(Je,Ke),function po(Je,Ke){const Ue=(Qt,ti)=>{Ke.valueAccessor.writeValue(Qt),ti&&Ke.viewToModelUpdate(Qt)};Je.registerOnChange(Ue),Ke._registerOnDestroy(()=>{Je._unregisterOnChange(Ue)})}(Je,Ke),function Qo(Je,Ke){Ke.valueAccessor.registerOnTouched(()=>{Je._pendingTouched=!0,"blur"===Je.updateOn&&Je._pendingChange&&Mo(Je,Ke),"submit"!==Je.updateOn&&Je.markAsTouched()})}(Je,Ke),function ki(Je,Ke){if(Ke.valueAccessor.setDisabledState){const Ue=Qt=>{Ke.valueAccessor.setDisabledState(Qt)};Je.registerOnDisabledChange(Ue),Ke._registerOnDestroy(()=>{Je._unregisterOnDisabledChange(Ue)})}}(Je,Ke)}function pi(Je,Ke,Ue=!0){const Qt=()=>{};Ke.valueAccessor&&(Ke.valueAccessor.registerOnChange(Qt),Ke.valueAccessor.registerOnTouched(Qt)),xo(Je,Ke),Je&&(Ke._invokeOnDestroyCallbacks(),Je._registerOnCollectionChange(()=>{}))}function Ei(Je,Ke){Je.forEach(Ue=>{Ue.registerOnValidatorChange&&Ue.registerOnValidatorChange(Ke)})}function Co(Je,Ke){const Ue=Pe(Je);null!==Ke.validator?Je.setValidators(oe(Ue,Ke.validator)):"function"==typeof Ue&&Je.setValidators([Ue]);const Qt=Ie(Je);null!==Ke.asyncValidator?Je.setAsyncValidators(oe(Qt,Ke.asyncValidator)):"function"==typeof Qt&&Je.setAsyncValidators([Qt]);const ti=()=>Je.updateValueAndValidity();Ei(Ke._rawValidators,ti),Ei(Ke._rawAsyncValidators,ti)}function xo(Je,Ke){let Ue=!1;if(null!==Je){if(null!==Ke.validator){const ti=Pe(Je);if(Array.isArray(ti)&&ti.length>0){const $i=ti.filter(qt=>qt!==Ke.validator);$i.length!==ti.length&&(Ue=!0,Je.setValidators($i))}}if(null!==Ke.asyncValidator){const ti=Ie(Je);if(Array.isArray(ti)&&ti.length>0){const $i=ti.filter(qt=>qt!==Ke.asyncValidator);$i.length!==ti.length&&(Ue=!0,Je.setAsyncValidators($i))}}}const Qt=()=>{};return Ei(Ke._rawValidators,Qt),Ei(Ke._rawAsyncValidators,Qt),Ue}function Mo(Je,Ke){Je._pendingDirty&&Je.markAsDirty(),Je.setValue(Je._pendingValue,{emitModelToViewChange:!1}),Ke.viewToModelUpdate(Je._pendingValue),Je._pendingChange=!1}function Io(Je,Ke){Co(Je,Ke)}function Se(Je,Ke){if(!Je.hasOwnProperty("model"))return!1;const Ue=Je.model;return!!Ue.isFirstChange()||!Object.is(Ke,Ue.currentValue)}function We(Je,Ke){Je._syncPendingControls(),Ke.forEach(Ue=>{const Qt=Ue.control;"submit"===Qt.updateOn&&Qt._pendingChange&&(Ue.viewToModelUpdate(Qt._pendingValue),Qt._pendingChange=!1)})}function ut(Je,Ke){if(!Ke)return null;let Ue,Qt,ti;return Array.isArray(Ke),Ke.forEach($i=>{$i.constructor===B?Ue=$i:function Me(Je){return Object.getPrototypeOf(Je.constructor)===h}($i)?Qt=$i:ti=$i}),ti||Qt||Ue||null}const At={provide:Be,useExisting:(0,n.forwardRef)(()=>bt)},Ae=(()=>Promise.resolve())();let bt=(()=>{class Je extends Be{constructor(Ue,Qt,ti){super(),this.callSetDisabledState=ti,this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.EventEmitter,this.form=new qe({},U(Ue),Z(Qt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ue){Ae.then(()=>{const Qt=this._findContainer(Ue.path);Ue.control=Qt.registerControl(Ue.name,Ue.control),Qn(Ue.control,Ue,this.callSetDisabledState),Ue.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ue)})}getControl(Ue){return this.form.get(Ue.path)}removeControl(Ue){Ae.then(()=>{const Qt=this._findContainer(Ue.path);Qt&&Qt.removeControl(Ue.name),this._directives.delete(Ue)})}addFormGroup(Ue){Ae.then(()=>{const Qt=this._findContainer(Ue.path),ti=new qe({});Io(ti,Ue),Qt.registerControl(Ue.name,ti),ti.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ue){Ae.then(()=>{const Qt=this._findContainer(Ue.path);Qt&&Qt.removeControl(Ue.name)})}getFormGroup(Ue){return this.form.get(Ue.path)}updateModel(Ue,Qt){Ae.then(()=>{this.form.get(Ue.path).setValue(Qt)})}setValue(Ue){this.control.setValue(Ue)}onSubmit(Ue){return this.submitted=!0,We(this.form,this._directives),this.ngSubmit.emit(Ue),"dialog"===Ue?.target?.method}onReset(){this.resetForm()}resetForm(Ue){this.form.reset(Ue),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ue){return Ue.pop(),Ue.length?this.form.get(Ue):this.form}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(gt,8))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("submit",function($i){return Qt.onSubmit($i)})("reset",function(){return Qt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([At]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();function Le(Je,Ke){const Ue=Je.indexOf(Ke);Ue>-1&&Je.splice(Ue,1)}function Pt(Je){return"object"==typeof Je&&null!==Je&&2===Object.keys(Je).length&&"value"in Je&&"disabled"in Je}const dn=class extends rt{constructor(Ke=null,Ue,Qt){super(ge(Ue),J(Qt,Ue)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ke),this._setUpdateStrategy(Ue),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),je(Ue)&&(Ue.nonNullable||Ue.initialValueIsDefault)&&(this.defaultValue=Pt(Ke)?Ke.value:Ke)}setValue(Ke,Ue={}){this.value=this._pendingValue=Ke,this._onChange.length&&!1!==Ue.emitModelToViewChange&&this._onChange.forEach(Qt=>Qt(this.value,!1!==Ue.emitViewToModelChange)),this.updateValueAndValidity(Ue)}patchValue(Ke,Ue={}){this.setValue(Ke,Ue)}reset(Ke=this.defaultValue,Ue={}){this._applyFormState(Ke),this.markAsPristine(Ue),this.markAsUntouched(Ue),this.setValue(this.value,Ue),this._pendingChange=!1}_updateValue(){}_anyControls(Ke){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ke){this._onChange.push(Ke)}_unregisterOnChange(Ke){Le(this._onChange,Ke)}registerOnDisabledChange(Ke){this._onDisabledChange.push(Ke)}_unregisterOnDisabledChange(Ke){Le(this._onDisabledChange,Ke)}_forEachChild(Ke){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Ke){Pt(Ke)?(this.value=this._pendingValue=Ke.value,Ke.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ke}},St=dn,jt=Je=>Je instanceof dn;let ht=(()=>{class Je extends Be{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,features:[n.\u0275\u0275InheritDefinitionFeature]}),Je})();const fn={provide:Be,useExisting:(0,n.forwardRef)(()=>Xn)};let Xn=(()=>{class Je extends ht{constructor(Ue,Qt,ti){super(),this._parent=Ue,this._setValidators(Qt),this._setAsyncValidators(ti)}_checkParentType(){}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(Be,5),n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.\u0275\u0275ProvidersFeature([fn]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const _i={provide:at,useExisting:(0,n.forwardRef)(()=>Ui)},ci=(()=>Promise.resolve())();let Ui=(()=>{class Je extends at{constructor(Ue,Qt,ti,$i,qt,it){super(),this._changeDetectorRef=qt,this.callSetDisabledState=it,this.control=new dn,this._registered=!1,this.update=new n.EventEmitter,this._parent=Ue,this._setValidators(Qt),this._setAsyncValidators(ti),this.valueAccessor=ut(0,$i)}ngOnChanges(Ue){if(this._checkForErrors(),!this._registered||"name"in Ue){if(this._registered&&(this._checkName(),this.formDirective)){const Qt=Ue.name.previousValue;this.formDirective.removeControl({name:Qt,path:this._getPath(Qt)})}this._setUpControl()}"isDisabled"in Ue&&this._updateDisabled(Ue),Se(Ue,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ue){this.viewModel=Ue,this.update.emit(Ue)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Qn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ue){ci.then(()=>{this.control.setValue(Ue,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ue){const Qt=Ue.isDisabled.currentValue,ti=0!==Qt&&(0,n.\u0275coerceToBoolean)(Qt);ci.then(()=>{ti&&!this.control.disabled?this.control.disable():!ti&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ue){return this._parent?wn(Ue,this._parent):[Ue]}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(Be,9),n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(l,10),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,8),n.\u0275\u0275directiveInject(gt,8))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.\u0275\u0275ProvidersFeature([_i]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Je})(),li=(()=>{class Je{}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Je})();const vi={provide:l,useExisting:(0,n.forwardRef)(()=>Zn),multi:!0};let Zn=(()=>{class Je extends h{writeValue(Ue){this.setProperty("value",Ue??"")}registerOnChange(Ue){this.onChange=Qt=>{Ue(""==Qt?null:parseFloat(Qt))}}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("input",function($i){return Qt.onChange($i.target.value)})("blur",function(){return Qt.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([vi]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const gn={provide:l,useExisting:(0,n.forwardRef)(()=>ai),multi:!0};let $t=(()=>{class Je{}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275mod=n.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=n.\u0275\u0275defineInjector({}),Je})(),kn=(()=>{class Je{constructor(){this._accessors=[]}add(Ue,Qt){this._accessors.push([Ue,Qt])}remove(Ue){for(let Qt=this._accessors.length-1;Qt>=0;--Qt)if(this._accessors[Qt][1]===Ue)return void this._accessors.splice(Qt,1)}select(Ue){this._accessors.forEach(Qt=>{this._isSameGroup(Qt,Ue)&&Qt[1]!==Ue&&Qt[1].fireUncheck(Ue.value)})}_isSameGroup(Ue,Qt){return!!Ue[0].control&&Ue[0]._parent===Qt._control._parent&&Ue[1].name===Qt.name}}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275prov=n.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:$t}),Je})(),ai=(()=>{class Je extends h{constructor(Ue,Qt,ti,$i){super(Ue,Qt),this._registry=ti,this._injector=$i,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,n.inject)(gt,{optional:!0})??sn}ngOnInit(){this._control=this._injector.get(at),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(Ue){this._state=Ue===this.value,this.setProperty("checked",this._state)}registerOnChange(Ue){this._fn=Ue,this.onChange=()=>{Ue(this.value),this._registry.select(this)}}setDisabledState(Ue){(this.setDisabledStateFired||Ue||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",Ue),this.setDisabledStateFired=!0}fireUncheck(Ue){this.writeValue(Ue)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(kn),n.\u0275\u0275directiveInject(n.Injector))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("change",function(){return Qt.onChange()})("blur",function(){return Qt.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([gn]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const qi={provide:l,useExisting:(0,n.forwardRef)(()=>eo),multi:!0};let eo=(()=>{class Je extends h{writeValue(Ue){this.setProperty("value",parseFloat(Ue))}registerOnChange(Ue){this.onChange=Qt=>{Ue(""==Qt?null:parseFloat(Qt))}}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("change",function($i){return Qt.onChange($i.target.value)})("input",function($i){return Qt.onChange($i.target.value)})("blur",function(){return Qt.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([qi]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const Oo=new n.InjectionToken("NgModelWithFormControlWarning"),Fo={provide:at,useExisting:(0,n.forwardRef)(()=>Zi)};let Zi=(()=>{class Je extends at{set isDisabled(Ue){}constructor(Ue,Qt,ti,$i,qt){super(),this._ngModelWarningConfig=$i,this.callSetDisabledState=qt,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(Ue),this._setAsyncValidators(Qt),this.valueAccessor=ut(0,ti)}ngOnChanges(Ue){if(this._isControlChanged(Ue)){const Qt=Ue.form.previousValue;Qt&&pi(Qt,this,!1),Qn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Se(Ue,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&pi(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ue){this.viewModel=Ue,this.update.emit(Ue)}_isControlChanged(Ue){return Ue.hasOwnProperty("form")}}return Je._ngModelWarningSentOnce=!1,Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(l,10),n.\u0275\u0275directiveInject(Oo,8),n.\u0275\u0275directiveInject(gt,8))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Fo]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Je})();const Wo={provide:Be,useExisting:(0,n.forwardRef)(()=>na)};let na=(()=>{class Je extends Be{constructor(Ue,Qt,ti){super(),this.callSetDisabledState=ti,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(Ue),this._setAsyncValidators(Qt)}ngOnChanges(Ue){this._checkFormPresent(),Ue.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ue){const Qt=this.form.get(Ue.path);return Qn(Qt,Ue,this.callSetDisabledState),Qt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ue),Qt}getControl(Ue){return this.form.get(Ue.path)}removeControl(Ue){pi(Ue.control||null,Ue,!1),function ue(Je,Ke){const Ue=Je.indexOf(Ke);Ue>-1&&Je.splice(Ue,1)}(this.directives,Ue)}addFormGroup(Ue){this._setUpFormContainer(Ue)}removeFormGroup(Ue){this._cleanUpFormContainer(Ue)}getFormGroup(Ue){return this.form.get(Ue.path)}addFormArray(Ue){this._setUpFormContainer(Ue)}removeFormArray(Ue){this._cleanUpFormContainer(Ue)}getFormArray(Ue){return this.form.get(Ue.path)}updateModel(Ue,Qt){this.form.get(Ue.path).setValue(Qt)}onSubmit(Ue){return this.submitted=!0,We(this.form,this.directives),this.ngSubmit.emit(Ue),"dialog"===Ue?.target?.method}onReset(){this.resetForm()}resetForm(Ue){this.form.reset(Ue),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ue=>{const Qt=Ue.control,ti=this.form.get(Ue.path);Qt!==ti&&(pi(Qt||null,Ue),jt(ti)&&(Qn(ti,Ue,this.callSetDisabledState),Ue.control=ti))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ue){const Qt=this.form.get(Ue.path);Io(Qt,Ue),Qt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ue){if(this.form){const Qt=this.form.get(Ue.path);Qt&&function en(Je,Ke){return xo(Je,Ke)}(Qt,Ue)&&Qt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Co(this.form,this),this._oldForm&&xo(this._oldForm,this)}_checkFormPresent(){}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(gt,8))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","formGroup",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("submit",function($i){return Qt.onSubmit($i)})("reset",function(){return Qt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Wo]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Je})();const qa={provide:Be,useExisting:(0,n.forwardRef)(()=>rr)};let rr=(()=>{class Je extends ht{constructor(Ue,Qt,ti){super(),this._parent=Ue,this._setValidators(Qt),this._setAsyncValidators(ti)}_checkParentType(){Ks(this._parent)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(Be,13),n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.\u0275\u0275ProvidersFeature([qa]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const dr={provide:Be,useExisting:(0,n.forwardRef)(()=>sr)};let sr=(()=>{class Je extends Be{constructor(Ue,Qt,ti){super(),this._parent=Ue,this._setValidators(Qt),this._setAsyncValidators(ti)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ks(this._parent)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(Be,13),n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.\u0275\u0275ProvidersFeature([dr]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();function Ks(Je){return!(Je instanceof rr||Je instanceof na||Je instanceof sr)}const _r={provide:at,useExisting:(0,n.forwardRef)(()=>_o)};let _o=(()=>{class Je extends at{set isDisabled(Ue){}constructor(Ue,Qt,ti,$i,qt){super(),this._ngModelWarningConfig=qt,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=Ue,this._setValidators(Qt),this._setAsyncValidators(ti),this.valueAccessor=ut(0,$i)}ngOnChanges(Ue){this._added||this._setUpControl(),Se(Ue,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ue){this.viewModel=Ue,this.update.emit(Ue)}get path(){return wn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Je._ngModelWarningSentOnce=!1,Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(Be,13),n.\u0275\u0275directiveInject(C,10),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(l,10),n.\u0275\u0275directiveInject(Oo,8))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([_r]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Je})();const to={provide:l,useExisting:(0,n.forwardRef)(()=>Sa),multi:!0};function gr(Je,Ke){return null==Je?`${Ke}`:(Ke&&"object"==typeof Ke&&(Ke="Object"),`${Je}: ${Ke}`.slice(0,50))}let Sa=(()=>{class Je extends h{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ue){this._compareWith=Ue}writeValue(Ue){this.value=Ue;const ti=gr(this._getOptionId(Ue),Ue);this.setProperty("value",ti)}registerOnChange(Ue){this.onChange=Qt=>{this.value=this._getOptionValue(Qt),Ue(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Ue){for(const Qt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Qt),Ue))return Qt;return null}_getOptionValue(Ue){const Qt=function za(Je){return Je.split(":")[0]}(Ue);return this._optionMap.has(Qt)?this._optionMap.get(Qt):Ue}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("change",function($i){return Qt.onChange($i.target.value)})("blur",function(){return Qt.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([to]),n.\u0275\u0275InheritDefinitionFeature]}),Je})(),zr=(()=>{class Je{constructor(Ue,Qt,ti){this._element=Ue,this._renderer=Qt,this._select=ti,this._select&&(this.id=this._select._registerOption())}set ngValue(Ue){null!=this._select&&(this._select._optionMap.set(this.id,Ue),this._setElementValue(gr(this.id,Ue)),this._select.writeValue(this._select.value))}set value(Ue){this._setElementValue(Ue),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Ue){this._renderer.setProperty(this._element.nativeElement,"value",Ue)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(Sa,9))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Je})();const cr={provide:l,useExisting:(0,n.forwardRef)(()=>ia),multi:!0};function vr(Je,Ke){return null==Je?`${Ke}`:("string"==typeof Ke&&(Ke=`'${Ke}'`),Ke&&"object"==typeof Ke&&(Ke="Object"),`${Je}: ${Ke}`.slice(0,50))}let ia=(()=>{class Je extends h{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ue){this._compareWith=Ue}writeValue(Ue){let Qt;if(this.value=Ue,Array.isArray(Ue)){const ti=Ue.map($i=>this._getOptionId($i));Qt=($i,qt)=>{$i._setSelected(ti.indexOf(qt.toString())>-1)}}else Qt=(ti,$i)=>{ti._setSelected(!1)};this._optionMap.forEach(Qt)}registerOnChange(Ue){this.onChange=Qt=>{const ti=[],$i=Qt.selectedOptions;if(void 0!==$i){const qt=$i;for(let it=0;it<qt.length;it++){const _e=this._getOptionValue(qt[it].value);ti.push(_e)}}else{const qt=Qt.options;for(let it=0;it<qt.length;it++){const ae=qt[it];if(ae.selected){const _e=this._getOptionValue(ae.value);ti.push(_e)}}}this.value=ti,Ue(ti)}}_registerOption(Ue){const Qt=(this._idCounter++).toString();return this._optionMap.set(Qt,Ue),Qt}_getOptionId(Ue){for(const Qt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Qt)._value,Ue))return Qt;return null}_getOptionValue(Ue){const Qt=function Pr(Je){return Je.split(":")[0]}(Ue);return this._optionMap.has(Qt)?this._optionMap.get(Qt)._value:Ue}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Ue,Qt){1&Ue&&n.\u0275\u0275listener("change",function($i){return Qt.onChange($i.target)})("blur",function(){return Qt.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([cr]),n.\u0275\u0275InheritDefinitionFeature]}),Je})(),Er=(()=>{class Je{constructor(Ue,Qt,ti){this._element=Ue,this._renderer=Qt,this._select=ti,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Ue){null!=this._select&&(this._value=Ue,this._setElementValue(vr(this.id,Ue)),this._select.writeValue(this._select.value))}set value(Ue){this._select?(this._value=Ue,this._setElementValue(vr(this.id,Ue)),this._select.writeValue(this._select.value)):this._setElementValue(Ue)}_setElementValue(Ue){this._renderer.setProperty(this._element.nativeElement,"value",Ue)}_setSelected(Ue){this._renderer.setProperty(this._element.nativeElement,"selected",Ue)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(ia,9))},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Je})();function yo(Je){return"number"==typeof Je?Je:parseInt(Je,10)}function Yr(Je){return"number"==typeof Je?Je:parseFloat(Je)}let Ya=(()=>{class Je{constructor(){this._validator=G}ngOnChanges(Ue){if(this.inputName in Ue){const Qt=this.normalizeInput(Ue[this.inputName].currentValue);this._enabled=this.enabled(Qt),this._validator=this._enabled?this.createValidator(Qt):G,this._onChange&&this._onChange()}}validate(Ue){return this._validator(Ue)}registerOnValidatorChange(Ue){this._onChange=Ue}enabled(Ue){return null!=Ue}}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,features:[n.\u0275\u0275NgOnChangesFeature]}),Je})();const ma={provide:C,useExisting:(0,n.forwardRef)(()=>ur),multi:!0};let ur=(()=>{class Je extends Ya{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ue=>Yr(Ue),this.createValidator=Ue=>z(Ue)}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275attribute("max",Qt._enabled?Qt.max:null)},inputs:{max:"max"},features:[n.\u0275\u0275ProvidersFeature([ma]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const Or={provide:C,useExisting:(0,n.forwardRef)(()=>es),multi:!0};let es=(()=>{class Je extends Ya{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ue=>Yr(Ue),this.createValidator=Ue=>F(Ue)}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275attribute("min",Qt._enabled?Qt.min:null)},inputs:{min:"min"},features:[n.\u0275\u0275ProvidersFeature([Or]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const ts={provide:C,useExisting:(0,n.forwardRef)(()=>pr),multi:!0},er={provide:C,useExisting:(0,n.forwardRef)(()=>Ua),multi:!0};let pr=(()=>{class Je extends Ya{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=Ue=>X}enabled(Ue){return Ue}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275attribute("required",Qt._enabled?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([ts]),n.\u0275\u0275InheritDefinitionFeature]}),Je})(),Ua=(()=>{class Je extends pr{constructor(){super(...arguments),this.createValidator=Ue=>p}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275attribute("required",Qt._enabled?"":null)},features:[n.\u0275\u0275ProvidersFeature([er]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const Ca={provide:C,useExisting:(0,n.forwardRef)(()=>Va),multi:!0};let Va=(()=>{class Je extends Ya{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=Ue=>P}enabled(Ue){return Ue}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([Ca]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const Rr={provide:C,useExisting:(0,n.forwardRef)(()=>ha),multi:!0};let ha=(()=>{class Je extends Ya{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=Ue=>yo(Ue),this.createValidator=Ue=>E(Ue)}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275attribute("minlength",Qt._enabled?Qt.minlength:null)},inputs:{minlength:"minlength"},features:[n.\u0275\u0275ProvidersFeature([Rr]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const mr={provide:C,useExisting:(0,n.forwardRef)(()=>Fr),multi:!0};let Fr=(()=>{class Je extends Ya{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Ue=>yo(Ue),this.createValidator=Ue=>R(Ue)}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275attribute("maxlength",Qt._enabled?Qt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([mr]),n.\u0275\u0275InheritDefinitionFeature]}),Je})();const da={provide:C,useExisting:(0,n.forwardRef)(()=>Ro),multi:!0};let Ro=(()=>{class Je extends Ya{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Ue=>Ue,this.createValidator=Ue=>ne(Ue)}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275dir=n.\u0275\u0275defineDirective({type:Je,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Qt){2&Ue&&n.\u0275\u0275attribute("pattern",Qt._enabled?Qt.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([da]),n.\u0275\u0275InheritDefinitionFeature]}),Je})(),fr=(()=>{class Je{}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275mod=n.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=n.\u0275\u0275defineInjector({imports:[$t]}),Je})();class br extends rt{constructor(Ke,Ue,Qt){super(ge(Ue),J(Qt,Ue)),this.controls=Ke,this._initObservables(),this._setUpdateStrategy(Ue),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ke){return this.controls[this._adjustIndex(Ke)]}push(Ke,Ue={}){this.controls.push(Ke),this._registerControl(Ke),this.updateValueAndValidity({emitEvent:Ue.emitEvent}),this._onCollectionChange()}insert(Ke,Ue,Qt={}){this.controls.splice(Ke,0,Ue),this._registerControl(Ue),this.updateValueAndValidity({emitEvent:Qt.emitEvent})}removeAt(Ke,Ue={}){let Qt=this._adjustIndex(Ke);Qt<0&&(Qt=0),this.controls[Qt]&&this.controls[Qt]._registerOnCollectionChange(()=>{}),this.controls.splice(Qt,1),this.updateValueAndValidity({emitEvent:Ue.emitEvent})}setControl(Ke,Ue,Qt={}){let ti=this._adjustIndex(Ke);ti<0&&(ti=0),this.controls[ti]&&this.controls[ti]._registerOnCollectionChange(()=>{}),this.controls.splice(ti,1),Ue&&(this.controls.splice(ti,0,Ue),this._registerControl(Ue)),this.updateValueAndValidity({emitEvent:Qt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ke,Ue={}){dt(this,!1,Ke),Ke.forEach((Qt,ti)=>{Et(this,!1,ti),this.at(ti).setValue(Qt,{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue)}patchValue(Ke,Ue={}){null!=Ke&&(Ke.forEach((Qt,ti)=>{this.at(ti)&&this.at(ti).patchValue(Qt,{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue))}reset(Ke=[],Ue={}){this._forEachChild((Qt,ti)=>{Qt.reset(Ke[ti],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this._updatePristine(Ue),this._updateTouched(Ue),this.updateValueAndValidity(Ue)}getRawValue(){return this.controls.map(Ke=>Ke.getRawValue())}clear(Ke={}){this.controls.length<1||(this._forEachChild(Ue=>Ue._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ke.emitEvent}))}_adjustIndex(Ke){return Ke<0?Ke+this.length:Ke}_syncPendingControls(){let Ke=this.controls.reduce((Ue,Qt)=>!!Qt._syncPendingControls()||Ue,!1);return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}_forEachChild(Ke){this.controls.forEach((Ue,Qt)=>{Ke(Ue,Qt)})}_updateValue(){this.value=this.controls.filter(Ke=>Ke.enabled||this.disabled).map(Ke=>Ke.value)}_anyControls(Ke){return this.controls.some(Ue=>Ue.enabled&&Ke(Ue))}_setUpControls(){this._forEachChild(Ke=>this._registerControl(Ke))}_allControlsDisabled(){for(const Ke of this.controls)if(Ke.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ke){Ke.setParent(this),Ke._registerOnCollectionChange(this._onCollectionChange)}_find(Ke){return this.at(Ke)??null}}const Ia=br,wa=Je=>Je instanceof br;function Za(Je){return!!Je&&(void 0!==Je.asyncValidators||void 0!==Je.validators||void 0!==Je.updateOn)}let ns=(()=>{class Je{constructor(){this.useNonNullable=!1}get nonNullable(){const Ue=new Je;return Ue.useNonNullable=!0,Ue}group(Ue,Qt=null){const ti=this._reduceControls(Ue);let $i={};return Za(Qt)?$i=Qt:null!==Qt&&($i.validators=Qt.validator,$i.asyncValidators=Qt.asyncValidator),new qe(ti,$i)}record(Ue,Qt=null){const ti=this._reduceControls(Ue);return new vt(ti,Qt)}control(Ue,Qt,ti){let $i={};return this.useNonNullable?(Za(Qt)?$i=Qt:($i.validators=Qt,$i.asyncValidators=ti),new dn(Ue,{...$i,nonNullable:!0})):new dn(Ue,Qt,ti)}array(Ue,Qt,ti){const $i=Ue.map(qt=>this._createControl(qt));return new br($i,Qt,ti)}_reduceControls(Ue){const Qt={};return Object.keys(Ue).forEach(ti=>{Qt[ti]=this._createControl(Ue[ti])}),Qt}_createControl(Ue){return Ue instanceof dn||Ue instanceof rt?Ue:Array.isArray(Ue)?this.control(Ue[0],Ue.length>1?Ue[1]:null,Ue.length>2?Ue[2]:null):this.control(Ue)}}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275prov=n.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),Pa=(()=>{class Je{}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275prov=n.\u0275\u0275defineInjectable({token:Je,factory:function(){return(0,n.inject)(ns).nonNullable},providedIn:"root"}),Je})(),ar=(()=>{class Je extends ns{group(Ue,Qt=null){return super.group(Ue,Qt)}control(Ue,Qt,ti){return super.control(Ue,Qt,ti)}array(Ue,Qt,ti){return super.array(Ue,Qt,ti)}}return Je.\u0275fac=function(){let Ke;return function(Qt){return(Ke||(Ke=n.\u0275\u0275getInheritedFactory(Je)))(Qt||Je)}}(),Je.\u0275prov=n.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const Sr=new n.Version("15.2.8");let ao=(()=>{class Je{static withConfig(Ue){return{ngModule:Je,providers:[{provide:gt,useValue:Ue.callSetDisabledState??sn}]}}}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275mod=n.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=n.\u0275\u0275defineInjector({imports:[fr]}),Je})(),Aa=(()=>{class Je{static withConfig(Ue){return{ngModule:Je,providers:[{provide:Oo,useValue:Ue.warnOnNgModelWithFormControl??"always"},{provide:gt,useValue:Ue.callSetDisabledState??sn}]}}}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275mod=n.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=n.\u0275\u0275defineInjector({imports:[fr]}),Je})()},8277:(Ee,Q,t)=>{"use strict";var n;t.d(Q,{o8:()=>u,t7:()=>m});var e=t(94650),i=t(3238),d=t(15439);const a=d||n||(n=t.t(d,2)),u=new e.InjectionToken("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function h(){return{useUtc:!1}}});function l(w,B){const _=Array(w);for(let y=0;y<w;y++)_[y]=B(y);return _}let m=(()=>{class w extends i._A{constructor(_,y){super(),this._options=y,this.setLocale(_||a.locale())}setLocale(_){super.setLocale(_);let y=a.localeData(_);this._localeData={firstDayOfWeek:y.firstDayOfWeek(),longMonths:y.months(),shortMonths:y.monthsShort(),dates:l(31,$=>this.createDate(2017,0,$+1).format("D")),longDaysOfWeek:y.weekdays(),shortDaysOfWeek:y.weekdaysShort(),narrowDaysOfWeek:y.weekdaysMin()}}getYear(_){return this.clone(_).year()}getMonth(_){return this.clone(_).month()}getDate(_){return this.clone(_).date()}getDayOfWeek(_){return this.clone(_).day()}getMonthNames(_){return"long"==_?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(_){return"long"==_?this._localeData.longDaysOfWeek:"short"==_?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(_){return this.clone(_).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(_){return this.clone(_).daysInMonth()}clone(_){return _.clone().locale(this.locale)}createDate(_,y,$){const C=this._createMoment({year:_,month:y,date:$}).locale(this.locale);return C.isValid(),C}today(){return this._createMoment().locale(this.locale)}parse(_,y){return _&&"string"==typeof _?this._createMoment(_,y,this.locale):_?this._createMoment(_).locale(this.locale):null}format(_,y){return _=this.clone(_),this.isValid(_),_.format(y)}addCalendarYears(_,y){return this.clone(_).add({years:y})}addCalendarMonths(_,y){return this.clone(_).add({months:y})}addCalendarDays(_,y){return this.clone(_).add({days:y})}toIso8601(_){return this.clone(_).format()}deserialize(_){let y;if(_ instanceof Date)y=this._createMoment(_).locale(this.locale);else if(this.isDateInstance(_))return this.clone(_);if("string"==typeof _){if(!_)return null;y=this._createMoment(_,a.ISO_8601).locale(this.locale)}return y&&this.isValid(y)?this._createMoment(y).locale(this.locale):super.deserialize(_)}isDateInstance(_){return a.isMoment(_)}isValid(_){return this.clone(_).isValid()}invalid(){return a.invalid()}_createMoment(_,y,$){const{strict:C,useUtc:T}=this._options||{};return T?a.utc(_,y,$,C):a(_,y,$,C)}}return w.\u0275fac=function(_){return new(_||w)(e.\u0275\u0275inject(i.Ad,8),e.\u0275\u0275inject(u,8))},w.\u0275prov=e.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac}),w})()},4859:(Ee,Q,t)=>{"use strict";t.d(Q,{RK:()=>Ge,lW:()=>X,ot:()=>pe});var n=t(83353),e=t(94650),i=t(12687),d=t(3238);const a=["mat-button",""],u=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],h=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],w=["mat-icon-button",""],B=["*"],C=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],T=(0,d.pj)((0,d.Id)((0,d.Kr)(class{constructor(Ce){this._elementRef=Ce}})));let j=(()=>{class Ce extends T{constructor(H,Z,oe,Pe){super(H),this._platform=Z,this._ngZone=oe,this._animationMode=Pe,this._focusMonitor=(0,e.inject)(i.tE),this._isFab=!1;const Ie=H.nativeElement.classList;for(const pt of C)this._hasHostAttributes(pt.selector)&&pt.mdcClasses.forEach(Ht=>{Ie.add(Ht)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(H="program",Z){H?this._focusMonitor.focusVia(this._elementRef.nativeElement,H,Z):this._elementRef.nativeElement.focus(Z)}_hasHostAttributes(...H){return H.some(Z=>this._elementRef.nativeElement.hasAttribute(Z))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return Ce.\u0275fac=function(H){e.\u0275\u0275invalidFactory()},Ce.\u0275dir=e.\u0275\u0275defineDirective({type:Ce,viewQuery:function(H,Z){if(1&H&&e.\u0275\u0275viewQuery(d.wG,5),2&H){let oe;e.\u0275\u0275queryRefresh(oe=e.\u0275\u0275loadQuery())&&(Z.ripple=oe.first)}},features:[e.\u0275\u0275InheritDefinitionFeature]}),Ce})(),X=(()=>{class Ce extends j{constructor(H,Z,oe,Pe){super(H,Z,oe,Pe)}}return Ce.\u0275fac=function(H){return new(H||Ce)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.t4),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8))},Ce.\u0275cmp=e.\u0275\u0275defineComponent({type:Ce,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(H,Z){2&H&&(e.\u0275\u0275attribute("disabled",Z.disabled||null),e.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-unthemed",!Z.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.\u0275\u0275InheritDefinitionFeature],attrs:a,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(H,Z){1&H&&(e.\u0275\u0275projectionDef(u),e.\u0275\u0275element(0,"span",0),e.\u0275\u0275projection(1),e.\u0275\u0275elementStart(2,"span",1),e.\u0275\u0275projection(3,1),e.\u0275\u0275elementEnd(),e.\u0275\u0275projection(4,2),e.\u0275\u0275element(5,"span",2)(6,"span",3)(7,"span",4)),2&H&&(e.\u0275\u0275classProp("mdc-button__ripple",!Z._isFab)("mdc-fab__ripple",Z._isFab),e.\u0275\u0275advance(6),e.\u0275\u0275property("matRippleDisabled",Z._isRippleDisabled())("matRippleTrigger",Z._elementRef.nativeElement))},dependencies:[d.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),Ce})(),Ge=(()=>{class Ce extends j{constructor(H,Z,oe,Pe){super(H,Z,oe,Pe)}}return Ce.\u0275fac=function(H){return new(H||Ce)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.t4),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8))},Ce.\u0275cmp=e.\u0275\u0275defineComponent({type:Ce,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(H,Z){2&H&&(e.\u0275\u0275attribute("disabled",Z.disabled||null),e.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-unthemed",!Z.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.\u0275\u0275InheritDefinitionFeature],attrs:w,ngContentSelectors:B,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(H,Z){1&H&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275element(0,"span",0),e.\u0275\u0275projection(1),e.\u0275\u0275element(2,"span",1)(3,"span",2)(4,"span",3)),2&H&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",Z._elementRef.nativeElement))},dependencies:[d.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),Ce})(),pe=(()=>{class Ce{}return Ce.\u0275fac=function(H){return new(H||Ce)},Ce.\u0275mod=e.\u0275\u0275defineNgModule({type:Ce}),Ce.\u0275inj=e.\u0275\u0275defineInjector({imports:[d.BQ,d.si,d.BQ]}),Ce})()},56709:(Ee,Q,t)=>{"use strict";t.d(Q,{$u:()=>l,LX:()=>T,MB:()=>_,oG:()=>y,p9:()=>j});var n=t(94650),e=t(24006),i=t(3238),d=t(21281);const a=["input"],u=["label"],h=["*"],l=new n.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:m});function m(){return{color:"accent",clickAction:"check-indeterminate"}}const x={provide:e.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>y),multi:!0};class O{}let L=0;const w=m(),B=(0,i.sb)((0,i.pj)((0,i.Kr)((0,i.Id)(class{constructor(I){this._elementRef=I}}))));let _=(()=>{class I extends B{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(z){this._required=(0,d.Ig)(z)}constructor(z,X,p,P,E,R,ne){super(X),this._changeDetectorRef=p,this._ngZone=P,this._animationMode=R,this._options=ne,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.EventEmitter,this.indeterminateChange=new n.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||w,this.color=this.defaultColor=this._options.color||w.color,this.tabIndex=parseInt(E)||0,this.id=this._uniqueId=`${z}${++L}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(z){const X=(0,d.Ig)(z);X!=this.checked&&(this._checked=X,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(z){const X=(0,d.Ig)(z);X!==this.disabled&&(this._disabled=X,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(z){const X=z!=this._indeterminate;this._indeterminate=(0,d.Ig)(z),X&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(z){this.checked=!!z}registerOnChange(z){this._controlValueAccessorChangeFn=z}registerOnTouched(z){this._onTouched=z}setDisabledState(z){this.disabled=z}_transitionCheckState(z){let X=this._currentCheckState,p=this._getAnimationTargetElement();if(X!==z&&p&&(this._currentAnimationClass&&p.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(X,z),this._currentCheckState=z,this._currentAnimationClass.length>0)){p.classList.add(this._currentAnimationClass);const P=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{p.classList.remove(P)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const z=this._options?.clickAction;this.disabled||"noop"===z?!this.disabled&&"noop"===z&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==z&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(z){z.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(z,X){if("NoopAnimations"===this._animationMode)return"";switch(z){case 0:if(1===X)return this._animationClasses.uncheckedToChecked;if(3==X)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===X?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===X?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===X?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(z){const X=this._inputElement;X&&(X.nativeElement.indeterminate=z)}}return I.\u0275fac=function(z){n.\u0275\u0275invalidFactory()},I.\u0275dir=n.\u0275\u0275defineDirective({type:I,viewQuery:function(z,X){if(1&z&&(n.\u0275\u0275viewQuery(a,5),n.\u0275\u0275viewQuery(u,5),n.\u0275\u0275viewQuery(i.wG,5)),2&z){let p;n.\u0275\u0275queryRefresh(p=n.\u0275\u0275loadQuery())&&(X._inputElement=p.first),n.\u0275\u0275queryRefresh(p=n.\u0275\u0275loadQuery())&&(X._labelElement=p.first),n.\u0275\u0275queryRefresh(p=n.\u0275\u0275loadQuery())&&(X.ripple=p.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.\u0275\u0275InheritDefinitionFeature]}),I})(),y=(()=>{class I extends _{constructor(z,X,p,P,E,R){super("mat-mdc-checkbox-",z,X,p,P,E,R),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(z){const X=new O;return X.source=this,X.checked=z,X}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(z){z.target&&this._labelElement.nativeElement.contains(z.target)&&z.stopPropagation()}}return I.\u0275fac=function(z){return new(z||I)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(l,8))},I.\u0275cmp=n.\u0275\u0275defineComponent({type:I,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(z,X){2&z&&(n.\u0275\u0275hostProperty("id",X.id),n.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===X._animationMode)("mdc-checkbox--disabled",X.disabled)("mat-mdc-checkbox-disabled",X.disabled)("mat-mdc-checkbox-checked",X.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n.\u0275\u0275ProvidersFeature([x]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:h,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(z,X){if(1&z&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275listener("click",function(P){return X._preventBubblingFromLabel(P)}),n.\u0275\u0275elementStart(1,"div",1,2)(3,"div",3),n.\u0275\u0275listener("click",function(){return X._onTouchTargetClick()}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"input",4,5),n.\u0275\u0275listener("blur",function(){return X._onBlur()})("click",function(){return X._onInputClick()})("change",function(P){return X._onInteractionEvent(P)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(6,"div",6),n.\u0275\u0275elementStart(7,"div",7),n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(8,"svg",8),n.\u0275\u0275element(9,"path",9),n.\u0275\u0275elementEnd(),n.\u0275\u0275namespaceHTML(),n.\u0275\u0275element(10,"div",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(11,"div",11),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"label",12,13),n.\u0275\u0275projection(14),n.\u0275\u0275elementEnd()()),2&z){const p=n.\u0275\u0275reference(2);n.\u0275\u0275classProp("mdc-form-field--align-end","before"==X.labelPosition),n.\u0275\u0275advance(4),n.\u0275\u0275classProp("mdc-checkbox--selected",X.checked),n.\u0275\u0275property("checked",X.checked)("indeterminate",X.indeterminate)("disabled",X.disabled)("id",X.inputId)("required",X.required)("tabIndex",X.tabIndex),n.\u0275\u0275attribute("aria-label",X.ariaLabel||null)("aria-labelledby",X.ariaLabelledby)("aria-describedby",X.ariaDescribedby)("name",X.name)("value",X.value),n.\u0275\u0275advance(7),n.\u0275\u0275property("matRippleTrigger",p)("matRippleDisabled",X.disableRipple||X.disabled)("matRippleCentered",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("for",X.inputId)}},dependencies:[i.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),I})(),T=(()=>{class I{}return I.\u0275fac=function(z){return new(z||I)},I.\u0275mod=n.\u0275\u0275defineNgModule({type:I}),I.\u0275inj=n.\u0275\u0275defineInjector({}),I})(),j=(()=>{class I{}return I.\u0275fac=function(z){return new(z||I)},I.\u0275mod=n.\u0275\u0275defineNgModule({type:I}),I.\u0275inj=n.\u0275\u0275defineInjector({imports:[i.BQ,i.si,T,i.BQ,T]}),I})()},3238:(Ee,Q,t)=>{"use strict";t.d(Q,{_A:()=>ct,rD:()=>pt,sG:()=>pe,Ad:()=>we,K7:()=>mn,HF:()=>pn,Y2:()=>Ut,BQ:()=>z,uc:()=>Qe,XK:()=>Pe,Nv:()=>Yn,ey:()=>En,Ng:()=>Sn,rN:()=>Nn,wG:()=>vn,si:()=>xn,CB:()=>Wn,jH:()=>rn,pj:()=>R,Kr:()=>ne,Id:()=>E,FD:()=>ce,sb:()=>G});var n=t(94650),e=t(12687),i=t(40445),a=t(36895),u=t(83353),h=t(21281),l=t(77579),m=t(29521);const x=["*",[["mat-option"],["ng-container"]]],O=["*","mat-option, ng-container"],L=["text"];function w(ke,ge){if(1&ke&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",6),2&ke){const q=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",q.selected?"checked":"unchecked")("disabled",q.disabled)}}function B(ke,ge){if(1&ke&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",7),2&ke){const q=n.\u0275\u0275nextContext();n.\u0275\u0275property("disabled",q.disabled)}}function _(ke,ge){if(1&ke&&(n.\u0275\u0275elementStart(0,"span",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ke){const q=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",q.group.label,")")}}const y=[[["mat-icon"]],"*"],$=["mat-icon","*"],F=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function I(){return!0}});let z=(()=>{class ke{constructor(q,J,Oe){this._sanityChecks=J,this._document=Oe,this._hasDoneGlobalChecks=!1,q._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(q){return!(0,u.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[q])}}return ke.\u0275fac=function(q){return new(q||ke)(n.\u0275\u0275inject(e.qm),n.\u0275\u0275inject(F,8),n.\u0275\u0275inject(a.K0))},ke.\u0275mod=n.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=n.\u0275\u0275defineInjector({imports:[i.vT,i.vT]}),ke})();function E(ke){return class extends ke{get disabled(){return this._disabled}set disabled(ge){this._disabled=(0,h.Ig)(ge)}constructor(...ge){super(...ge),this._disabled=!1}}}function R(ke,ge){return class extends ke{get color(){return this._color}set color(q){const J=q||this.defaultColor;J!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),J&&this._elementRef.nativeElement.classList.add(`mat-${J}`),this._color=J)}constructor(...q){super(...q),this.defaultColor=ge,this.color=ge}}}function ne(ke){return class extends ke{get disableRipple(){return this._disableRipple}set disableRipple(ge){this._disableRipple=(0,h.Ig)(ge)}constructor(...ge){super(...ge),this._disableRipple=!1}}}function G(ke,ge=0){return class extends ke{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(q){this._tabIndex=null!=q?(0,h.su)(q):this.defaultTabIndex}constructor(...q){super(...q),this._tabIndex=ge,this.defaultTabIndex=ge}}}function ce(ke){return class extends ke{updateErrorState(){const ge=this.errorState,je=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);je!==ge&&(this.errorState=je,this.stateChanges.next())}constructor(...ge){super(...ge),this.errorState=!1}}}const we=new n.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ge(){return(0,n.inject)(n.LOCALE_ID)}});class ct{constructor(){this._localeChanges=new l.x,this.localeChanges=this._localeChanges}getValidDateOrNull(ge){return this.isDateInstance(ge)&&this.isValid(ge)?ge:null}deserialize(ge){return null==ge||this.isDateInstance(ge)&&this.isValid(ge)?ge:this.invalid()}setLocale(ge){this.locale=ge,this._localeChanges.next()}compareDate(ge,q){return this.getYear(ge)-this.getYear(q)||this.getMonth(ge)-this.getMonth(q)||this.getDate(ge)-this.getDate(q)}sameDate(ge,q){if(ge&&q){let J=this.isValid(ge),Oe=this.isValid(q);return J&&Oe?!this.compareDate(ge,q):J==Oe}return ge==q}clampDate(ge,q,J){return q&&this.compareDate(ge,q)<0?q:J&&this.compareDate(ge,J)>0?J:ge}}const pe=new n.InjectionToken("mat-date-formats"),Ce=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function U(ke,ge){const q=Array(ke);for(let J=0;J<ke;J++)q[J]=ge(J);return q}let H=(()=>{class ke extends ct{constructor(q,J){super(),this.useUtcForDisplay=!1,super.setLocale(q)}getYear(q){return q.getFullYear()}getMonth(q){return q.getMonth()}getDate(q){return q.getDate()}getDayOfWeek(q){return q.getDay()}getMonthNames(q){const J=new Intl.DateTimeFormat(this.locale,{month:q,timeZone:"utc"});return U(12,Oe=>this._format(J,new Date(2017,Oe,1)))}getDateNames(){const q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return U(31,J=>this._format(q,new Date(2017,0,J+1)))}getDayOfWeekNames(q){const J=new Intl.DateTimeFormat(this.locale,{weekday:q,timeZone:"utc"});return U(7,Oe=>this._format(J,new Date(2017,0,Oe+1)))}getYearName(q){const J=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(J,q)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(q){return this.getDate(this._createDateWithOverflow(this.getYear(q),this.getMonth(q)+1,0))}clone(q){return new Date(q.getTime())}createDate(q,J,Oe){let je=this._createDateWithOverflow(q,J,Oe);return je.getMonth(),je}today(){return new Date}parse(q,J){return"number"==typeof q?new Date(q):q?new Date(Date.parse(q)):null}format(q,J){if(!this.isValid(q))throw Error("NativeDateAdapter: Cannot format invalid date.");const Oe=new Intl.DateTimeFormat(this.locale,{...J,timeZone:"utc"});return this._format(Oe,q)}addCalendarYears(q,J){return this.addCalendarMonths(q,12*J)}addCalendarMonths(q,J){let Oe=this._createDateWithOverflow(this.getYear(q),this.getMonth(q)+J,this.getDate(q));return this.getMonth(Oe)!=((this.getMonth(q)+J)%12+12)%12&&(Oe=this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe),0)),Oe}addCalendarDays(q,J){return this._createDateWithOverflow(this.getYear(q),this.getMonth(q),this.getDate(q)+J)}toIso8601(q){return[q.getUTCFullYear(),this._2digit(q.getUTCMonth()+1),this._2digit(q.getUTCDate())].join("-")}deserialize(q){if("string"==typeof q){if(!q)return null;if(Ce.test(q)){let J=new Date(q);if(this.isValid(J))return J}}return super.deserialize(q)}isDateInstance(q){return q instanceof Date}isValid(q){return!isNaN(q.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(q,J,Oe){const je=new Date;return je.setFullYear(q,J,Oe),je.setHours(0,0,0,0),je}_2digit(q){return("00"+q).slice(-2)}_format(q,J){const Oe=new Date;return Oe.setUTCFullYear(J.getFullYear(),J.getMonth(),J.getDate()),Oe.setUTCHours(J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()),q.format(Oe)}}return ke.\u0275fac=function(q){return new(q||ke)(n.\u0275\u0275inject(we,8),n.\u0275\u0275inject(u.t4))},ke.\u0275prov=n.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac}),ke})();const Z={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let oe=(()=>{class ke{}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275mod=n.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:ct,useClass:H}]}),ke})(),Pe=(()=>{class ke{}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275mod=n.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:pe,useValue:Z}],imports:[oe]}),ke})(),pt=(()=>{class ke{isErrorState(q,J){return!!(q&&q.invalid&&(q.touched||J&&J.submitted))}}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275prov=n.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Qe=(()=>{class ke{}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275mod=n.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=n.\u0275\u0275defineInjector({imports:[z,z]}),ke})();class Be{constructor(ge,q,J,Oe=!1){this._renderer=ge,this.element=q,this.config=J,this._animationForciblyDisabledThroughCss=Oe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const at=(0,u.i$)({passive:!0,capture:!0});class lt{constructor(){this._events=new Map,this._delegateEventHandler=ge=>{const q=(0,u.sA)(ge);q&&this._events.get(ge.type)?.forEach((J,Oe)=>{(Oe===q||Oe.contains(q))&&J.forEach(je=>je.handleEvent(ge))})}}addHandler(ge,q,J,Oe){const je=this._events.get(q);if(je){const Et=je.get(J);Et?Et.add(Oe):je.set(J,new Set([Oe]))}else this._events.set(q,new Map([[J,new Set([Oe])]])),ge.runOutsideAngular(()=>{document.addEventListener(q,this._delegateEventHandler,at)})}removeHandler(ge,q,J){const Oe=this._events.get(ge);if(!Oe)return;const je=Oe.get(q);je&&(je.delete(J),0===je.size&&Oe.delete(q),0===Oe.size&&(this._events.delete(ge),document.removeEventListener(ge,this._delegateEventHandler,at)))}}const Dt={enterDuration:225,exitDuration:150},Tt=(0,u.i$)({passive:!0,capture:!0}),ot=["mousedown","touchstart"],Gt=["mouseup","mouseleave","touchend","touchcancel"];class wt{constructor(ge,q,J,Oe){this._target=ge,this._ngZone=q,this._platform=Oe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Oe.isBrowser&&(this._containerElement=(0,h.fI)(J))}fadeInRipple(ge,q,J={}){const Oe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),je={...Dt,...J.animation};J.centered&&(ge=Oe.left+Oe.width/2,q=Oe.top+Oe.height/2);const Et=J.radius||function Ze(ke,ge,q){const J=Math.max(Math.abs(ke-q.left),Math.abs(ke-q.right)),Oe=Math.max(Math.abs(ge-q.top),Math.abs(ge-q.bottom));return Math.sqrt(J*J+Oe*Oe)}(ge,q,Oe),dt=ge-Oe.left,rt=q-Oe.top,qe=je.enterDuration,ze=document.createElement("div");ze.classList.add("mat-ripple-element"),ze.style.left=dt-Et+"px",ze.style.top=rt-Et+"px",ze.style.height=2*Et+"px",ze.style.width=2*Et+"px",null!=J.color&&(ze.style.backgroundColor=J.color),ze.style.transitionDuration=`${qe}ms`,this._containerElement.appendChild(ze);const zt=window.getComputedStyle(ze),Rt=zt.transitionDuration,gt="none"===zt.transitionProperty||"0s"===Rt||"0s, 0s"===Rt||0===Oe.width&&0===Oe.height,sn=new Be(this,ze,J,gt);ze.style.transform="scale3d(1, 1, 1)",sn.state=0,J.persistent||(this._mostRecentTransientRipple=sn);let wn=null;return!gt&&(qe||je.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Qn=()=>this._finishRippleTransition(sn),pi=()=>this._destroyRipple(sn);ze.addEventListener("transitionend",Qn),ze.addEventListener("transitioncancel",pi),wn={onTransitionEnd:Qn,onTransitionCancel:pi}}),this._activeRipples.set(sn,wn),(gt||!qe)&&this._finishRippleTransition(sn),sn}fadeOutRipple(ge){if(2===ge.state||3===ge.state)return;const q=ge.element,J={...Dt,...ge.config.animation};q.style.transitionDuration=`${J.exitDuration}ms`,q.style.opacity="0",ge.state=2,(ge._animationForciblyDisabledThroughCss||!J.exitDuration)&&this._finishRippleTransition(ge)}fadeOutAll(){this._getActiveRipples().forEach(ge=>ge.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ge=>{ge.config.persistent||ge.fadeOut()})}setupTriggerEvents(ge){const q=(0,h.fI)(ge);!this._platform.isBrowser||!q||q===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=q,ot.forEach(J=>{wt._eventManager.addHandler(this._ngZone,J,q,this)}))}handleEvent(ge){"mousedown"===ge.type?this._onMousedown(ge):"touchstart"===ge.type?this._onTouchStart(ge):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Gt.forEach(q=>{this._triggerElement.addEventListener(q,this,Tt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ge){0===ge.state?this._startFadeOutTransition(ge):2===ge.state&&this._destroyRipple(ge)}_startFadeOutTransition(ge){const q=ge===this._mostRecentTransientRipple,{persistent:J}=ge.config;ge.state=1,!J&&(!q||!this._isPointerDown)&&ge.fadeOut()}_destroyRipple(ge){const q=this._activeRipples.get(ge)??null;this._activeRipples.delete(ge),this._activeRipples.size||(this._containerRect=null),ge===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ge.state=3,null!==q&&(ge.element.removeEventListener("transitionend",q.onTransitionEnd),ge.element.removeEventListener("transitioncancel",q.onTransitionCancel)),ge.element.remove()}_onMousedown(ge){const q=(0,e.X6)(ge),J=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!q&&!J&&(this._isPointerDown=!0,this.fadeInRipple(ge.clientX,ge.clientY,this._target.rippleConfig))}_onTouchStart(ge){if(!this._target.rippleDisabled&&!(0,e.yG)(ge)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const q=ge.changedTouches;for(let J=0;J<q.length;J++)this.fadeInRipple(q[J].clientX,q[J].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(ge=>{!ge.config.persistent&&(1===ge.state||ge.config.terminateOnPointerUp&&0===ge.state)&&ge.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const ge=this._triggerElement;ge&&(ot.forEach(q=>wt._eventManager.removeHandler(q,ge,this)),this._pointerUpEventsRegistered&&Gt.forEach(q=>ge.removeEventListener(q,this,Tt)))}}wt._eventManager=new lt;const Ut=new n.InjectionToken("mat-ripple-global-options");let vn=(()=>{class ke{get disabled(){return this._disabled}set disabled(q){q&&this.fadeOutAllNonPersistent(),this._disabled=q,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(q){this._trigger=q,this._setupTriggerEventsIfEnabled()}constructor(q,J,Oe,je,Et){this._elementRef=q,this._animationMode=Et,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=je||{},this._rippleRenderer=new wt(this,J,q,Oe)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(q,J=0,Oe){return"number"==typeof q?this._rippleRenderer.fadeInRipple(q,J,{...this.rippleConfig,...Oe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...q})}}return ke.\u0275fac=function(q){return new(q||ke)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(u.t4),n.\u0275\u0275directiveInject(Ut,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=n.\u0275\u0275defineDirective({type:ke,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(q,J){2&q&&n.\u0275\u0275classProp("mat-ripple-unbounded",J.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ke})(),xn=(()=>{class ke{}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275mod=n.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=n.\u0275\u0275defineInjector({imports:[z,z]}),ke})(),bn=(()=>{class ke{constructor(q){this._animationMode=q,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return ke.\u0275fac=function(q){return new(q||ke)(n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},ke.\u0275cmp=n.\u0275\u0275defineComponent({type:ke,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(q,J){2&q&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===J.state)("mat-pseudo-checkbox-checked","checked"===J.state)("mat-pseudo-checkbox-disabled",J.disabled)("mat-pseudo-checkbox-minimal","minimal"===J.appearance)("mat-pseudo-checkbox-full","full"===J.appearance)("_mat-animation-noopable","NoopAnimations"===J._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(q,J){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),ke})(),hn=(()=>{class ke{}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275mod=n.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=n.\u0275\u0275defineInjector({imports:[z]}),ke})();const pn=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),In=E(class{});let Dn=0,Tn=(()=>{class ke extends In{constructor(q){super(),this._labelId="mat-optgroup-label-"+Dn++,this._inert=q?.inertGroups??!1}}return ke.\u0275fac=function(q){return new(q||ke)(n.\u0275\u0275directiveInject(pn,8))},ke.\u0275dir=n.\u0275\u0275defineDirective({type:ke,inputs:{label:"label"},features:[n.\u0275\u0275InheritDefinitionFeature]}),ke})();const mn=new n.InjectionToken("MatOptgroup");let Yn=(()=>{class ke extends Tn{}return ke.\u0275fac=function(){let ge;return function(J){return(ge||(ge=n.\u0275\u0275getInheritedFactory(ke)))(J||ke)}}(),ke.\u0275cmp=n.\u0275\u0275defineComponent({type:ke,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(q,J){2&q&&n.\u0275\u0275attribute("role",J._inert?null:"group")("aria-disabled",J._inert?null:J.disabled.toString())("aria-labelledby",J._inert?null:J._labelId)},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[n.\u0275\u0275ProvidersFeature([{provide:mn,useExisting:ke}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:O,decls:5,vars:4,consts:[["aria-hidden","true",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(q,J){1&q&&(n.\u0275\u0275projectionDef(x),n.\u0275\u0275elementStart(0,"span",0)(1,"span",1),n.\u0275\u0275text(2),n.\u0275\u0275projection(3),n.\u0275\u0275elementEnd()(),n.\u0275\u0275projection(4,1)),2&q&&(n.\u0275\u0275classProp("mdc-list-item--disabled",J.disabled),n.\u0275\u0275property("id",J._labelId),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1("",J.label," "))},styles:[".mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{white-space:normal}"],encapsulation:2,changeDetection:0}),ke})(),cn=0;class Nn{constructor(ge,q=!1){this.source=ge,this.isUserInput=q}}let Bt=(()=>{class ke{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(q){this._disabled=(0,h.Ig)(q)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(q,J,Oe,je){this._element=q,this._changeDetectorRef=J,this._parent=Oe,this.group=je,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+cn++,this.onSelectionChange=new n.EventEmitter,this._stateChanges=new l.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(q,J){const Oe=this._getHostElement();"function"==typeof Oe.focus&&Oe.focus(J)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(q){(q.keyCode===m.K5||q.keyCode===m.L_)&&!(0,m.Vb)(q)&&(this._selectViaInteraction(),q.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const q=this.viewValue;q!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=q)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(q=!1){this.onSelectionChange.emit(new Nn(this,q))}}return ke.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},ke.\u0275dir=n.\u0275\u0275defineDirective({type:ke,viewQuery:function(q,J){if(1&q&&n.\u0275\u0275viewQuery(L,7),2&q){let Oe;n.\u0275\u0275queryRefresh(Oe=n.\u0275\u0275loadQuery())&&(J._text=Oe.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ke})(),En=(()=>{class ke extends Bt{constructor(q,J,Oe,je){super(q,J,Oe,je)}}return ke.\u0275fac=function(q){return new(q||ke)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(pn,8),n.\u0275\u0275directiveInject(mn,8))},ke.\u0275cmp=n.\u0275\u0275defineComponent({type:ke,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(q,J){1&q&&n.\u0275\u0275listener("click",function(){return J._selectViaInteraction()})("keydown",function(je){return J._handleKeydown(je)}),2&q&&(n.\u0275\u0275hostProperty("id",J.id),n.\u0275\u0275attribute("aria-selected",J.selected)("aria-disabled",J.disabled.toString()),n.\u0275\u0275classProp("mdc-list-item--selected",J.selected)("mat-mdc-option-multiple",J.multiple)("mat-mdc-option-active",J.active)("mdc-list-item--disabled",J.disabled))},exportAs:["matOption"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(q,J){1&q&&(n.\u0275\u0275projectionDef(y),n.\u0275\u0275template(0,w,1,2,"mat-pseudo-checkbox",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementStart(2,"span",1,2),n.\u0275\u0275projection(4,1),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(5,B,1,1,"mat-pseudo-checkbox",3),n.\u0275\u0275template(6,_,2,1,"span",4),n.\u0275\u0275element(7,"div",5)),2&q&&(n.\u0275\u0275property("ngIf",J.multiple),n.\u0275\u0275advance(5),n.\u0275\u0275property("ngIf",!J.multiple&&J.selected&&!J.hideSingleSelectionIndicator),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",J.group&&J.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",J._getHostElement())("matRippleDisabled",J.disabled||J.disableRipple))},dependencies:[vn,a.O5,bn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),ke})();function Wn(ke,ge,q){if(q.length){let J=ge.toArray(),Oe=q.toArray(),je=0;for(let Et=0;Et<ke+1;Et++)J[Et].group&&J[Et].group===Oe[je]&&je++;return je}return 0}function rn(ke,ge,q,J){return ke<q?ke:ke+ge>q+J?Math.max(0,ke-J+ge):q}let Sn=(()=>{class ke{}return ke.\u0275fac=function(q){return new(q||ke)},ke.\u0275mod=n.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=n.\u0275\u0275defineInjector({imports:[xn,a.ez,z,hn]}),ke})()},99602:(Ee,Q,t)=>{"use strict";t.d(Q,{C0:()=>Tt,FA:()=>Me,LK:()=>hn,Mq:()=>ze,Q0:()=>Qn,_H:()=>ge,hl:()=>wn,nW:()=>pi,q_:()=>bn});var n=t(12687),e=t(98184),i=t(84080),d=t(36895),a=t(94650),u=t(4859),h=t(4883),l=t(3238),m=t(77579),x=t(50727),O=t(56451),L=t(39646),w=t(29521),B=t(40445),_=t(83353),y=t(95698),$=t(68675),C=t(39300),T=t(21281),j=t(37340),I=t(24006),F=t(59549),z=t(284);const X=["mat-calendar-body",""];function p(We,ut){if(1&We&&(a.\u0275\u0275elementStart(0,"tr",3)(1,"td",4),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()),2&We){const ue=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275styleProp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),a.\u0275\u0275attribute("colspan",ue.numCols),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",ue.label," ")}}function P(We,ut){if(1&We&&(a.\u0275\u0275elementStart(0,"td",4),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&We){const ue=a.\u0275\u0275nextContext(2);a.\u0275\u0275styleProp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),a.\u0275\u0275attribute("colspan",ue._firstRowOffset),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",ue._firstRowOffset>=ue.labelMinRequiredCells?ue.label:""," ")}}function E(We,ut){if(1&We){const ue=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"td",8)(1,"button",9),a.\u0275\u0275listener("click",function(At){const bt=a.\u0275\u0275restoreView(ue).$implicit,Le=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(Le._cellClicked(bt,At))})("focus",function(At){const bt=a.\u0275\u0275restoreView(ue).$implicit,Le=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(Le._emitActiveDateChange(bt,At))}),a.\u0275\u0275elementStart(2,"span",10),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(4,"span",11),a.\u0275\u0275elementEnd()()}if(2&We){const ue=ut.$implicit,et=ut.index,At=a.\u0275\u0275nextContext().index,Ae=a.\u0275\u0275nextContext();a.\u0275\u0275styleProp("width",Ae._cellWidth)("padding-top",Ae._cellPadding)("padding-bottom",Ae._cellPadding),a.\u0275\u0275attribute("data-mat-row",At)("data-mat-col",et),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("mat-calendar-body-disabled",!ue.enabled)("mat-calendar-body-active",Ae._isActiveCell(At,et))("mat-calendar-body-range-start",Ae._isRangeStart(ue.compareValue))("mat-calendar-body-range-end",Ae._isRangeEnd(ue.compareValue))("mat-calendar-body-in-range",Ae._isInRange(ue.compareValue))("mat-calendar-body-comparison-bridge-start",Ae._isComparisonBridgeStart(ue.compareValue,At,et))("mat-calendar-body-comparison-bridge-end",Ae._isComparisonBridgeEnd(ue.compareValue,At,et))("mat-calendar-body-comparison-start",Ae._isComparisonStart(ue.compareValue))("mat-calendar-body-comparison-end",Ae._isComparisonEnd(ue.compareValue))("mat-calendar-body-in-comparison-range",Ae._isInComparisonRange(ue.compareValue))("mat-calendar-body-preview-start",Ae._isPreviewStart(ue.compareValue))("mat-calendar-body-preview-end",Ae._isPreviewEnd(ue.compareValue))("mat-calendar-body-in-preview",Ae._isInPreview(ue.compareValue)),a.\u0275\u0275property("ngClass",ue.cssClasses)("tabindex",Ae._isActiveCell(At,et)?0:-1),a.\u0275\u0275attribute("aria-label",ue.ariaLabel)("aria-disabled",!ue.enabled||null)("aria-pressed",Ae._isSelected(ue.compareValue))("aria-current",Ae.todayValue===ue.compareValue?"date":null)("aria-describedby",Ae._getDescribedby(ue.compareValue)),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("mat-calendar-body-selected",Ae._isSelected(ue.compareValue))("mat-calendar-body-comparison-identical",Ae._isComparisonIdentical(ue.compareValue))("mat-calendar-body-today",Ae.todayValue===ue.compareValue),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",ue.displayValue," ")}}function R(We,ut){if(1&We&&(a.\u0275\u0275elementStart(0,"tr",5),a.\u0275\u0275template(1,P,2,6,"td",6),a.\u0275\u0275template(2,E,5,48,"td",7),a.\u0275\u0275elementEnd()),2&We){const ue=ut.$implicit,et=ut.index,At=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",0===et&&At._firstRowOffset),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",ue)}}function ne(We,ut){if(1&We&&(a.\u0275\u0275elementStart(0,"th",5)(1,"span",6),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"span",7),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd()()),2&We){const ue=ut.$implicit;a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(ue.long),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(ue.narrow)}}const G=["*"];function ce(We,ut){}function xe(We,ut){if(1&We){const ue=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"mat-month-view",5),a.\u0275\u0275listener("activeDateChange",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae.activeDate=At)})("_userSelection",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae._dateSelected(At))})("dragStarted",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae._dragStarted(At))})("dragEnded",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae._dragEnded(At))}),a.\u0275\u0275elementEnd()}if(2&We){const ue=a.\u0275\u0275nextContext();a.\u0275\u0275property("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)("comparisonStart",ue.comparisonStart)("comparisonEnd",ue.comparisonEnd)("startDateAccessibleName",ue.startDateAccessibleName)("endDateAccessibleName",ue.endDateAccessibleName)("activeDrag",ue._activeDrag)}}function we(We,ut){if(1&We){const ue=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"mat-year-view",6),a.\u0275\u0275listener("activeDateChange",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae.activeDate=At)})("monthSelected",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae._monthSelectedInYearView(At))})("selectedChange",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae._goToDateInView(At,"month"))}),a.\u0275\u0275elementEnd()}if(2&We){const ue=a.\u0275\u0275nextContext();a.\u0275\u0275property("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function Ge(We,ut){if(1&We){const ue=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"mat-multi-year-view",7),a.\u0275\u0275listener("activeDateChange",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae.activeDate=At)})("yearSelected",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae._yearSelectedInMultiYearView(At))})("selectedChange",function(At){a.\u0275\u0275restoreView(ue);const Ae=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Ae._goToDateInView(At,"year"))}),a.\u0275\u0275elementEnd()}if(2&We){const ue=a.\u0275\u0275nextContext();a.\u0275\u0275property("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function ct(We,ut){}const pe=["button"];function Ce(We,ut){1&We&&(a.\u0275\u0275namespaceSVG(),a.\u0275\u0275elementStart(0,"svg",3),a.\u0275\u0275element(1,"path",4),a.\u0275\u0275elementEnd())}const U=[[["","matDatepickerToggleIcon",""]]],H=["[matDatepickerToggleIcon]"];let pt=(()=>{class We{constructor(){this.changes=new m.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(ue,et){return`${ue} \u2013 ${et}`}formatYearRangeLabel(ue,et){return`${ue} to ${et}`}}return We.\u0275fac=function(ue){return new(ue||We)},We.\u0275prov=a.\u0275\u0275defineInjectable({token:We,factory:We.\u0275fac,providedIn:"root"}),We})();class Ht{constructor(ut,ue,et,At,Ae={},bt=ut,Le){this.value=ut,this.displayValue=ue,this.ariaLabel=et,this.enabled=At,this.cssClasses=Ae,this.compareValue=bt,this.rawValue=Le}}let Wt=1,Xe=(()=>{class We{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(ue,et){this._elementRef=ue,this._ngZone=et,this._platform=(0,a.inject)(_.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.EventEmitter,this.previewChange=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.dragStarted=new a.EventEmitter,this.dragEnded=new a.EventEmitter,this._didDragSinceMouseDown=!1,this._enterHandler=At=>{if(this._skipNextFocus&&"focus"===At.type)this._skipNextFocus=!1;else if(At.target&&this.isRange){const Ae=this._getCellFromElement(At.target);Ae&&this._ngZone.run(()=>this.previewChange.emit({value:Ae.enabled?Ae:null,event:At}))}},this._touchmoveHandler=At=>{if(!this.isRange)return;const Ae=Yt(At),bt=Ae?this._getCellFromElement(Ae):null;Ae!==At.target&&(this._didDragSinceMouseDown=!0),Be(At.target)&&At.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:bt?.enabled?bt:null,event:At}))},this._leaveHandler=At=>{null!==this.previewEnd&&this.isRange&&("blur"!==At.type&&(this._didDragSinceMouseDown=!0),At.target&&this._getCellFromElement(At.target)&&(!At.relatedTarget||!this._getCellFromElement(At.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:At})))},this._mousedownHandler=At=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Ae=At.target&&this._getCellFromElement(At.target);!Ae||!this._isInRange(Ae.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Ae.rawValue,event:At})})},this._mouseupHandler=At=>{if(!this.isRange)return;const Ae=Be(At.target);Ae?Ae.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const bt=this._getCellFromElement(Ae);this.dragEnded.emit({value:bt?.rawValue??null,event:At})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:At})})},this._touchendHandler=At=>{const Ae=Yt(At);Ae&&this._mouseupHandler({target:Ae})},this._id="mat-calendar-body-"+Wt++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,et.runOutsideAngular(()=>{const At=ue.nativeElement;At.addEventListener("mouseenter",this._enterHandler,!0),At.addEventListener("touchmove",this._touchmoveHandler,!0),At.addEventListener("focus",this._enterHandler,!0),At.addEventListener("mouseleave",this._leaveHandler,!0),At.addEventListener("blur",this._leaveHandler,!0),At.addEventListener("mousedown",this._mousedownHandler),At.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(ue,et){this._didDragSinceMouseDown||ue.enabled&&this.selectedValueChange.emit({value:ue.value,event:et})}_emitActiveDateChange(ue,et){ue.enabled&&this.activeDateChange.emit({value:ue.value,event:et})}_isSelected(ue){return this.startValue===ue||this.endValue===ue}ngOnChanges(ue){const et=ue.numCols,{rows:At,numCols:Ae}=this;(ue.rows||et)&&(this._firstRowOffset=At&&At.length&&At[0].length?Ae-At[0].length:0),(ue.cellAspectRatio||et||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Ae+"%"),(et||!this._cellWidth)&&(this._cellWidth=100/Ae+"%")}ngOnDestroy(){const ue=this._elementRef.nativeElement;ue.removeEventListener("mouseenter",this._enterHandler,!0),ue.removeEventListener("touchmove",this._touchmoveHandler,!0),ue.removeEventListener("focus",this._enterHandler,!0),ue.removeEventListener("mouseleave",this._leaveHandler,!0),ue.removeEventListener("blur",this._leaveHandler,!0),ue.removeEventListener("mousedown",this._mousedownHandler),ue.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(ue,et){let At=ue*this.numCols+et;return ue&&(At-=this._firstRowOffset),At==this.activeCell}_focusActiveCell(ue=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{setTimeout(()=>{const et=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");et&&(ue||(this._skipNextFocus=!0),et.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(ue){return at(ue,this.startValue,this.endValue)}_isRangeEnd(ue){return lt(ue,this.startValue,this.endValue)}_isInRange(ue){return Dt(ue,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ue){return at(ue,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ue,et,At){if(!this._isComparisonStart(ue)||this._isRangeStart(ue)||!this._isInRange(ue))return!1;let Ae=this.rows[et][At-1];if(!Ae){const bt=this.rows[et-1];Ae=bt&&bt[bt.length-1]}return Ae&&!this._isRangeEnd(Ae.compareValue)}_isComparisonBridgeEnd(ue,et,At){if(!this._isComparisonEnd(ue)||this._isRangeEnd(ue)||!this._isInRange(ue))return!1;let Ae=this.rows[et][At+1];if(!Ae){const bt=this.rows[et+1];Ae=bt&&bt[0]}return Ae&&!this._isRangeStart(Ae.compareValue)}_isComparisonEnd(ue){return lt(ue,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ue){return Dt(ue,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ue){return this.comparisonStart===this.comparisonEnd&&ue===this.comparisonStart}_isPreviewStart(ue){return at(ue,this.previewStart,this.previewEnd)}_isPreviewEnd(ue){return lt(ue,this.previewStart,this.previewEnd)}_isInPreview(ue){return Dt(ue,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(ue){return this.isRange?this.startValue===ue&&this.endValue===ue?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===ue?this._startDateLabelId:this.endValue===ue?this._endDateLabelId:null:null}_getCellFromElement(ue){const et=Be(ue);if(et){const At=et.getAttribute("data-mat-row"),Ae=et.getAttribute("data-mat-col");if(At&&Ae)return this.rows[parseInt(At)][parseInt(Ae)]}return null}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[a.\u0275\u0275NgOnChangesFeature],attrs:X,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(ue,et){1&ue&&(a.\u0275\u0275template(0,p,3,6,"tr",0),a.\u0275\u0275template(1,R,3,2,"tr",1),a.\u0275\u0275elementStart(2,"label",2),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"label",2),a.\u0275\u0275text(5),a.\u0275\u0275elementEnd()),2&ue&&(a.\u0275\u0275property("ngIf",et._firstRowOffset<et.labelMinRequiredCells),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",et.rows),a.\u0275\u0275advance(1),a.\u0275\u0275property("id",et._startDateLabelId),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",et.startDateAccessibleName,"\n"),a.\u0275\u0275advance(1),a.\u0275\u0275property("id",et._endDateLabelId),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",et.endDateAccessibleName,"\n"))},dependencies:[d.mk,d.sg,d.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),We})();function Qe(We){return"TD"===We?.nodeName}function Be(We){let ut;return Qe(We)?ut=We:Qe(We.parentNode)?ut=We.parentNode:Qe(We.parentNode?.parentNode)&&(ut=We.parentNode.parentNode),null!=ut?.getAttribute("data-mat-row")?ut:null}function at(We,ut,ue){return null!==ue&&ut!==ue&&We<ue&&We===ut}function lt(We,ut,ue){return null!==ut&&ut!==ue&&We>=ut&&We===ue}function Dt(We,ut,ue,et){return et&&null!==ut&&null!==ue&&ut!==ue&&We>=ut&&We<=ue}function Yt(We){const ut=We.changedTouches[0];return document.elementFromPoint(ut.clientX,ut.clientY)}class Tt{constructor(ut,ue){this.start=ut,this.end=ue}}let ot=(()=>{class We{constructor(ue,et){this.selection=ue,this._adapter=et,this._selectionChanged=new m.x,this.selectionChanged=this._selectionChanged,this.selection=ue}updateSelection(ue,et){const At=this.selection;this.selection=ue,this._selectionChanged.next({selection:ue,source:et,oldValue:At})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ue){return this._adapter.isDateInstance(ue)&&this._adapter.isValid(ue)}}return We.\u0275fac=function(ue){a.\u0275\u0275invalidFactory()},We.\u0275prov=a.\u0275\u0275defineInjectable({token:We,factory:We.\u0275fac}),We})(),Gt=(()=>{class We extends ot{constructor(ue){super(null,ue)}add(ue){super.updateSelection(ue,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ue=new We(this._adapter);return ue.updateSelection(this.selection,this),ue}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275inject(l._A))},We.\u0275prov=a.\u0275\u0275defineInjectable({token:We,factory:We.\u0275fac}),We})();const Ut={provide:ot,deps:[[new a.Optional,new a.SkipSelf,ot],l._A],useFactory:function Ze(We,ut){return We||new Gt(ut)}},bn=new a.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY");let hn=(()=>{class We{constructor(ue){this._dateAdapter=ue}selectionFinished(ue,et){let{start:At,end:Ae}=et;return null==At?At=ue:null==Ae&&ue&&this._dateAdapter.compareDate(ue,At)>=0?Ae=ue:(At=ue,Ae=null),new Tt(At,Ae)}createPreview(ue,et){let At=null,Ae=null;return et.start&&!et.end&&ue&&(At=et.start,Ae=ue),new Tt(At,Ae)}createDrag(ue,et,At){let Ae=et.start,bt=et.end;if(!Ae||!bt)return null;const Le=this._dateAdapter,Pt=0!==Le.compareDate(Ae,bt),dn=Le.getYear(At)-Le.getYear(ue),St=Le.getMonth(At)-Le.getMonth(ue),jt=Le.getDate(At)-Le.getDate(ue);return Pt&&Le.sameDate(ue,et.start)?(Ae=At,Le.compareDate(At,bt)>0&&(bt=Le.addCalendarYears(bt,dn),bt=Le.addCalendarMonths(bt,St),bt=Le.addCalendarDays(bt,jt))):Pt&&Le.sameDate(ue,et.end)?(bt=At,Le.compareDate(At,Ae)<0&&(Ae=Le.addCalendarYears(Ae,dn),Ae=Le.addCalendarMonths(Ae,St),Ae=Le.addCalendarDays(Ae,jt))):(Ae=Le.addCalendarYears(Ae,dn),Ae=Le.addCalendarMonths(Ae,St),Ae=Le.addCalendarDays(Ae,jt),bt=Le.addCalendarYears(bt,dn),bt=Le.addCalendarMonths(bt,St),bt=Le.addCalendarDays(bt,jt)),new Tt(Ae,bt)}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275inject(l._A))},We.\u0275prov=a.\u0275\u0275defineInjectable({token:We,factory:We.\u0275fac}),We})(),Tn=(()=>{class We{get activeDate(){return this._activeDate}set activeDate(ue){const et=this._activeDate,At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._hasSameMonthAndYear(et,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Tt?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}constructor(ue,et,At,Ae,bt){this._changeDetectorRef=ue,this._dateFormats=et,this._dateAdapter=At,this._dir=Ae,this._rangeStrategy=bt,this._rerenderSubscription=x.w0.EMPTY,this.activeDrag=null,this.selectedChange=new a.EventEmitter,this._userSelection=new a.EventEmitter,this.dragStarted=new a.EventEmitter,this.dragEnded=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,$.O)(null)).subscribe(()=>this._init())}ngOnChanges(ue){const et=ue.comparisonStart||ue.comparisonEnd;et&&!et.firstChange&&this._setRanges(this.selected),ue.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ue){const et=ue.value,At=this._getDateFromDayOfMonth(et);let Ae,bt;this._selected instanceof Tt?(Ae=this._getDateInCurrentMonth(this._selected.start),bt=this._getDateInCurrentMonth(this._selected.end)):Ae=bt=this._getDateInCurrentMonth(this._selected),(Ae!==et||bt!==et)&&this.selectedChange.emit(At),this._userSelection.emit({value:At,event:ue.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(ue){const At=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(ue.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(ue){const et=this._activeDate,At=this._isRtl();switch(ue.keyCode){case w.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?1:-1);break;case w.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?-1:1);break;case w.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case w.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case w.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case w.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case w.Ku:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case w.VM:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case w.K5:case w.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ue.preventDefault());case w.hY:return void(null!=this._previewEnd&&!(0,w.Vb)(ue)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:ue}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ue})),ue.preventDefault(),ue.stopPropagation()));default:return}this._dateAdapter.compareDate(et,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===w.L_||ue.keyCode===w.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let ue=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ue)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ue){this._matCalendarBody._focusActiveCell(ue)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:ue,value:et}){if(this._rangeStrategy){const At=et?et.rawValue:null,Ae=this._rangeStrategy.createPreview(At,this.selected,ue);if(this._previewStart=this._getCellCompareValue(Ae.start),this._previewEnd=this._getCellCompareValue(Ae.end),this.activeDrag&&At){const bt=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,At,ue);bt&&(this._previewStart=this._getCellCompareValue(bt.start),this._previewEnd=this._getCellCompareValue(bt.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(ue){if(this.activeDrag)if(ue.value){const et=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,ue.value,ue.event);this.dragEnded.emit({value:et??null,event:ue.event})}else this.dragEnded.emit({value:null,event:ue.event})}_getDateFromDayOfMonth(ue){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),ue)}_initWeekdays(){const ue=this._dateAdapter.getFirstDayOfWeek(),et=this._dateAdapter.getDayOfWeekNames("narrow");let Ae=this._dateAdapter.getDayOfWeekNames("long").map((bt,Le)=>({long:bt,narrow:et[Le]}));this._weekdays=Ae.slice(ue).concat(Ae.slice(0,ue))}_createWeekCells(){const ue=this._dateAdapter.getNumDaysInMonth(this.activeDate),et=this._dateAdapter.getDateNames();this._weeks=[[]];for(let At=0,Ae=this._firstWeekOffset;At<ue;At++,Ae++){7==Ae&&(this._weeks.push([]),Ae=0);const bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),At+1),Le=this._shouldEnableDate(bt),Pt=this._dateAdapter.format(bt,this._dateFormats.display.dateA11yLabel),dn=this.dateClass?this.dateClass(bt,"month"):void 0;this._weeks[this._weeks.length-1].push(new Ht(At+1,et[At],Pt,Le,dn,this._getCellCompareValue(bt),bt))}}_shouldEnableDate(ue){return!!ue&&(!this.minDate||this._dateAdapter.compareDate(ue,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(ue,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ue))}_getDateInCurrentMonth(ue){return ue&&this._hasSameMonthAndYear(ue,this.activeDate)?this._dateAdapter.getDate(ue):null}_hasSameMonthAndYear(ue,et){return!(!ue||!et||this._dateAdapter.getMonth(ue)!=this._dateAdapter.getMonth(et)||this._dateAdapter.getYear(ue)!=this._dateAdapter.getYear(et))}_getCellCompareValue(ue){if(ue){const et=this._dateAdapter.getYear(ue),At=this._dateAdapter.getMonth(ue),Ae=this._dateAdapter.getDate(ue);return new Date(et,At,Ae).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ue){ue instanceof Tt?(this._rangeStart=this._getCellCompareValue(ue.start),this._rangeEnd=this._getCellCompareValue(ue.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ue),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ue){return!this.dateFilter||this.dateFilter(ue)}_clearPreview(){this._previewStart=this._previewEnd=null}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(l.sG,8),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(B.Is,8),a.\u0275\u0275directiveInject(bn,8))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-month-view"]],viewQuery:function(ue,et){if(1&ue&&a.\u0275\u0275viewQuery(Xe,5),2&ue){let At;a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et._matCalendarBody=At.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.\u0275\u0275NgOnChangesFeature],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(ue,et){1&ue&&(a.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),a.\u0275\u0275template(3,ne,5,2,"th",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"tr"),a.\u0275\u0275element(5,"th",3),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"tbody",4),a.\u0275\u0275listener("selectedValueChange",function(Ae){return et._dateSelected(Ae)})("activeDateChange",function(Ae){return et._updateActiveDate(Ae)})("previewChange",function(Ae){return et._previewChanged(Ae)})("dragStarted",function(Ae){return et.dragStarted.emit(Ae)})("dragEnded",function(Ae){return et._dragEnded(Ae)})("keyup",function(Ae){return et._handleCalendarBodyKeyup(Ae)})("keydown",function(Ae){return et._handleCalendarBodyKeydown(Ae)}),a.\u0275\u0275elementEnd()()),2&ue&&(a.\u0275\u0275advance(3),a.\u0275\u0275property("ngForOf",et._weekdays),a.\u0275\u0275advance(3),a.\u0275\u0275property("label",et._monthLabel)("rows",et._weeks)("todayValue",et._todayDate)("startValue",et._rangeStart)("endValue",et._rangeEnd)("comparisonStart",et._comparisonRangeStart)("comparisonEnd",et._comparisonRangeEnd)("previewStart",et._previewStart)("previewEnd",et._previewEnd)("isRange",et._isRange)("labelMinRequiredCells",3)("activeCell",et._dateAdapter.getDate(et.activeDate)-1)("startDateAccessibleName",et.startDateAccessibleName)("endDateAccessibleName",et.endDateAccessibleName))},dependencies:[d.sg,Xe],encapsulation:2,changeDetection:0}),We})();const mn=24;let cn=(()=>{class We{get activeDate(){return this._activeDate}set activeDate(ue){let et=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),Nn(this._dateAdapter,et,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Tt?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedYear(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}constructor(ue,et,At){this._changeDetectorRef=ue,this._dateAdapter=et,this._dir=At,this._rerenderSubscription=x.w0.EMPTY,this.selectedChange=new a.EventEmitter,this.yearSelected=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,$.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const et=this._dateAdapter.getYear(this._activeDate)-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let At=0,Ae=[];At<mn;At++)Ae.push(et+At),4==Ae.length&&(this._years.push(Ae.map(bt=>this._createCellForYear(bt))),Ae=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ue){const et=ue.value,At=this._dateAdapter.createDate(et,0,1),Ae=this._getDateFromYear(et);this.yearSelected.emit(At),this.selectedChange.emit(Ae)}_updateActiveDate(ue){const At=this._activeDate;this.activeDate=this._getDateFromYear(ue.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(ue){const et=this._activeDate,At=this._isRtl();switch(ue.keyCode){case w.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?1:-1);break;case w.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?-1:1);break;case w.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case w.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case w.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case w.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mn-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case w.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?10*-mn:-mn);break;case w.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?10*mn:mn);break;case w.K5:case w.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(et,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===w.L_||ue.keyCode===w.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_getActiveCell(){return Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(ue){const et=this._dateAdapter.getMonth(this.activeDate),At=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(ue,et,1));return this._dateAdapter.createDate(ue,et,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForYear(ue){const et=this._dateAdapter.createDate(ue,0,1),At=this._dateAdapter.getYearName(et),Ae=this.dateClass?this.dateClass(et,"multi-year"):void 0;return new Ht(ue,At,At,this._shouldEnableYear(ue),Ae)}_shouldEnableYear(ue){if(null==ue||this.maxDate&&ue>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ue<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let At=this._dateAdapter.createDate(ue,0,1);this._dateAdapter.getYear(At)==ue;At=this._dateAdapter.addCalendarDays(At,1))if(this.dateFilter(At))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(ue){if(this._selectedYear=null,ue instanceof Tt){const et=ue.start||ue.end;et&&(this._selectedYear=this._dateAdapter.getYear(et))}else ue&&(this._selectedYear=this._dateAdapter.getYear(ue))}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(B.Is,8))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-multi-year-view"]],viewQuery:function(ue,et){if(1&ue&&a.\u0275\u0275viewQuery(Xe,5),2&ue){let At;a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et._matCalendarBody=At.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(ue,et){1&ue&&(a.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),a.\u0275\u0275element(3,"th",2),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(4,"tbody",3),a.\u0275\u0275listener("selectedValueChange",function(Ae){return et._yearSelected(Ae)})("activeDateChange",function(Ae){return et._updateActiveDate(Ae)})("keyup",function(Ae){return et._handleCalendarBodyKeyup(Ae)})("keydown",function(Ae){return et._handleCalendarBodyKeydown(Ae)}),a.\u0275\u0275elementEnd()()),2&ue&&(a.\u0275\u0275advance(4),a.\u0275\u0275property("rows",et._years)("todayValue",et._todayYear)("startValue",et._selectedYear)("endValue",et._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",et._getActiveCell()))},dependencies:[Xe],encapsulation:2,changeDetection:0}),We})();function Nn(We,ut,ue,et,At){const Ae=We.getYear(ut),bt=We.getYear(ue),Le=En(We,et,At);return Math.floor((Ae-Le)/mn)===Math.floor((bt-Le)/mn)}function Bt(We,ut,ue,et){return function Wn(We,ut){return(We%ut+ut)%ut}(We.getYear(ut)-En(We,ue,et),mn)}function En(We,ut,ue){let et=0;return ue?et=We.getYear(ue)-mn+1:ut&&(et=We.getYear(ut)),et}let rn=(()=>{class We{get activeDate(){return this._activeDate}set activeDate(ue){let et=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._dateAdapter.getYear(et)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Tt?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedMonth(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}constructor(ue,et,At,Ae){this._changeDetectorRef=ue,this._dateFormats=et,this._dateAdapter=At,this._dir=Ae,this._rerenderSubscription=x.w0.EMPTY,this.selectedChange=new a.EventEmitter,this.monthSelected=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,$.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ue){const et=ue.value,At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),et,1);this.monthSelected.emit(At);const Ae=this._getDateFromMonth(et);this.selectedChange.emit(Ae)}_updateActiveDate(ue){const At=this._activeDate;this.activeDate=this._getDateFromMonth(ue.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(ue){const et=this._activeDate,At=this._isRtl();switch(ue.keyCode){case w.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?1:-1);break;case w.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?-1:1);break;case w.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case w.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case w.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case w.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case w.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-10:-1);break;case w.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?10:1);break;case w.K5:case w.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(et,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===w.L_||ue.keyCode===w.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ue=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(et=>et.map(At=>this._createCellForMonth(At,ue[At]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(ue){return ue&&this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ue):null}_getDateFromMonth(ue){const et=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ue,1),At=this._dateAdapter.getNumDaysInMonth(et);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ue,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForMonth(ue,et){const At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ue,1),Ae=this._dateAdapter.format(At,this._dateFormats.display.monthYearA11yLabel),bt=this.dateClass?this.dateClass(At,"year"):void 0;return new Ht(ue,et.toLocaleUpperCase(),Ae,this._shouldEnableMonth(ue),bt)}_shouldEnableMonth(ue){const et=this._dateAdapter.getYear(this.activeDate);if(null==ue||this._isYearAndMonthAfterMaxDate(et,ue)||this._isYearAndMonthBeforeMinDate(et,ue))return!1;if(!this.dateFilter)return!0;for(let Ae=this._dateAdapter.createDate(et,ue,1);this._dateAdapter.getMonth(Ae)==ue;Ae=this._dateAdapter.addCalendarDays(Ae,1))if(this.dateFilter(Ae))return!0;return!1}_isYearAndMonthAfterMaxDate(ue,et){if(this.maxDate){const At=this._dateAdapter.getYear(this.maxDate),Ae=this._dateAdapter.getMonth(this.maxDate);return ue>At||ue===At&&et>Ae}return!1}_isYearAndMonthBeforeMinDate(ue,et){if(this.minDate){const At=this._dateAdapter.getYear(this.minDate),Ae=this._dateAdapter.getMonth(this.minDate);return ue<At||ue===At&&et<Ae}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(ue){this._selectedMonth=ue instanceof Tt?this._getMonthInCurrentYear(ue.start)||this._getMonthInCurrentYear(ue.end):this._getMonthInCurrentYear(ue)}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(l.sG,8),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(B.Is,8))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-year-view"]],viewQuery:function(ue,et){if(1&ue&&a.\u0275\u0275viewQuery(Xe,5),2&ue){let At;a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et._matCalendarBody=At.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(ue,et){1&ue&&(a.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),a.\u0275\u0275element(3,"th",2),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(4,"tbody",3),a.\u0275\u0275listener("selectedValueChange",function(Ae){return et._monthSelected(Ae)})("activeDateChange",function(Ae){return et._updateActiveDate(Ae)})("keyup",function(Ae){return et._handleCalendarBodyKeyup(Ae)})("keydown",function(Ae){return et._handleCalendarBodyKeydown(Ae)}),a.\u0275\u0275elementEnd()()),2&ue&&(a.\u0275\u0275advance(4),a.\u0275\u0275property("label",et._yearLabel)("rows",et._months)("todayValue",et._todayMonth)("startValue",et._selectedMonth)("endValue",et._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",et._dateAdapter.getMonth(et.activeDate)))},dependencies:[Xe],encapsulation:2,changeDetection:0}),We})(),Sn=1,ke=(()=>{class We{constructor(ue,et,At,Ae,bt){this._intl=ue,this.calendar=et,this._dateAdapter=At,this._dateFormats=Ae,this._id="mat-calendar-header-"+Sn++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>bt.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-mn)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:mn)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(ue,et){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(et)&&this._dateAdapter.getMonth(ue)==this._dateAdapter.getMonth(et):"year"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(et):Nn(this._dateAdapter,ue,et,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const et=this._dateAdapter.getYear(this.calendar.activeDate)-Bt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),At=et+mn-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(et,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(At,0,1))]}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(pt),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>ge)),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(l.sG,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:G,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(ue,et){1&ue&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"button",2),a.\u0275\u0275listener("click",function(){return et.currentPeriodClicked()}),a.\u0275\u0275elementStart(3,"span",3),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd(),a.\u0275\u0275namespaceSVG(),a.\u0275\u0275elementStart(5,"svg",4),a.\u0275\u0275element(6,"polygon",5),a.\u0275\u0275elementEnd()(),a.\u0275\u0275namespaceHTML(),a.\u0275\u0275element(7,"div",6),a.\u0275\u0275projection(8),a.\u0275\u0275elementStart(9,"button",7),a.\u0275\u0275listener("click",function(){return et.previousClicked()}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"button",8),a.\u0275\u0275listener("click",function(){return et.nextClicked()}),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(11,"label",9),a.\u0275\u0275text(12),a.\u0275\u0275elementEnd()),2&ue&&(a.\u0275\u0275advance(2),a.\u0275\u0275attribute("aria-label",et.periodButtonLabel)("aria-describedby",et._periodButtonLabelId),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(et.periodButtonText),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("mat-calendar-invert","month"!==et.calendar.currentView),a.\u0275\u0275advance(4),a.\u0275\u0275property("disabled",!et.previousEnabled()),a.\u0275\u0275attribute("aria-label",et.prevButtonLabel),a.\u0275\u0275advance(1),a.\u0275\u0275property("disabled",!et.nextEnabled()),a.\u0275\u0275attribute("aria-label",et.nextButtonLabel),a.\u0275\u0275advance(1),a.\u0275\u0275property("id",et._periodButtonLabelId),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(et.periodButtonDescription))},dependencies:[u.lW,u.RK],encapsulation:2,changeDetection:0}),We})(),ge=(()=>{class We{get startAt(){return this._startAt}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Tt?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get activeDate(){return this._clampedActiveDate}set activeDate(ue){this._clampedActiveDate=this._dateAdapter.clampDate(ue,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ue){const et=this._currentView!==ue?ue:null;this._currentView=ue,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),et&&this.viewChanged.emit(et)}constructor(ue,et,At,Ae){this._dateAdapter=et,this._dateFormats=At,this._changeDetectorRef=Ae,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.EventEmitter,this.yearSelected=new a.EventEmitter,this.monthSelected=new a.EventEmitter,this.viewChanged=new a.EventEmitter(!0),this._userSelection=new a.EventEmitter,this._userDragDrop=new a.EventEmitter,this._activeDrag=null,this.stateChanges=new m.x,this._intlChanges=ue.changes.subscribe(()=>{Ae.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new i.C5(this.headerComponent||ke),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(ue){const et=ue.minDate&&!this._dateAdapter.sameDate(ue.minDate.previousValue,ue.minDate.currentValue)?ue.minDate:void 0,At=ue.maxDate&&!this._dateAdapter.sameDate(ue.maxDate.previousValue,ue.maxDate.currentValue)?ue.maxDate:void 0,Ae=et||At||ue.dateFilter;if(Ae&&!Ae.firstChange){const bt=this._getCurrentViewComponent();bt&&(this._changeDetectorRef.detectChanges(),bt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ue){const et=ue.value;(this.selected instanceof Tt||et&&!this._dateAdapter.sameDate(et,this.selected))&&this.selectedChange.emit(et),this._userSelection.emit(ue)}_yearSelectedInMultiYearView(ue){this.yearSelected.emit(ue)}_monthSelectedInYearView(ue){this.monthSelected.emit(ue)}_goToDateInView(ue,et){this.activeDate=ue,this.currentView=et}_dragStarted(ue){this._activeDrag=ue}_dragEnded(ue){this._activeDrag&&(ue.value&&this._userDragDrop.emit(ue),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(pt),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(l.sG,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-calendar"]],viewQuery:function(ue,et){if(1&ue&&(a.\u0275\u0275viewQuery(Tn,5),a.\u0275\u0275viewQuery(rn,5),a.\u0275\u0275viewQuery(cn,5)),2&ue){let At;a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et.monthView=At.first),a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et.yearView=At.first),a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et.multiYearView=At.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[a.\u0275\u0275ProvidersFeature([Ut]),a.\u0275\u0275NgOnChangesFeature],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(ue,et){1&ue&&(a.\u0275\u0275template(0,ce,0,0,"ng-template",0),a.\u0275\u0275elementStart(1,"div",1),a.\u0275\u0275template(2,xe,1,11,"mat-month-view",2),a.\u0275\u0275template(3,we,1,6,"mat-year-view",3),a.\u0275\u0275template(4,Ge,1,6,"mat-multi-year-view",4),a.\u0275\u0275elementEnd()),2&ue&&(a.\u0275\u0275property("cdkPortalOutlet",et._calendarHeaderPortal),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitch",et.currentView),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase","month"),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase","year"),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase","multi-year"))},dependencies:[d.RF,d.n9,n.kH,i.Pl,Tn,rn,cn],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),We})();const q={transformPanel:(0,j.X$)("transformPanel",[(0,j.eR)("void => enter-dropdown",(0,j.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,j.F4)([(0,j.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,j.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,j.eR)("void => enter-dialog",(0,j.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,j.F4)([(0,j.oB)({opacity:0,transform:"scale(0.7)"}),(0,j.oB)({transform:"none",opacity:1})]))),(0,j.eR)("* => void",(0,j.jt)("100ms linear",(0,j.oB)({opacity:0})))]),fadeInCalendar:(0,j.X$)("fadeInCalendar",[(0,j.SB)("void",(0,j.oB)({opacity:0})),(0,j.SB)("enter",(0,j.oB)({opacity:1})),(0,j.eR)("void => *",(0,j.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let J=0;const Oe=new a.InjectionToken("mat-datepicker-scroll-strategy"),Et={provide:Oe,deps:[e.aV],useFactory:function je(We){return()=>We.scrollStrategies.reposition()}},dt=(0,l.pj)(class{constructor(We){this._elementRef=We}});let rt=(()=>{class We extends dt{constructor(ue,et,At,Ae,bt,Le){super(ue),this._changeDetectorRef=et,this._globalModel=At,this._dateAdapter=Ae,this._rangeSelectionStrategy=bt,this._subscriptions=new x.w0,this._animationDone=new m.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=Le.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(ue){const et=this._model.selection,At=ue.value,Ae=et instanceof Tt;if(Ae&&this._rangeSelectionStrategy){const bt=this._rangeSelectionStrategy.selectionFinished(At,et,ue.event);this._model.updateSelection(bt,this)}else At&&(Ae||!this._dateAdapter.sameDate(At,et))&&this._model.add(At);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(ue){this._model.updateSelection(ue.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(ue){this._isAnimating="start"===ue.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(ue,et){this._model=ue?this._globalModel.clone():this._globalModel,this._actionsPortal=ue,et&&this._changeDetectorRef.detectChanges()}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(ot),a.\u0275\u0275directiveInject(l._A),a.\u0275\u0275directiveInject(bn,8),a.\u0275\u0275directiveInject(pt))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-datepicker-content"]],viewQuery:function(ue,et){if(1&ue&&a.\u0275\u0275viewQuery(ge,5),2&ue){let At;a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et._calendar=At.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ue,et){1&ue&&a.\u0275\u0275syntheticHostListener("@transformPanel.start",function(Ae){return et._handleAnimationEvent(Ae)})("@transformPanel.done",function(Ae){return et._handleAnimationEvent(Ae)}),2&ue&&(a.\u0275\u0275syntheticHostProperty("@transformPanel",et._animationState),a.\u0275\u0275classProp("mat-datepicker-content-touch",et.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.\u0275\u0275InheritDefinitionFeature],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(ue,et){if(1&ue&&(a.\u0275\u0275elementStart(0,"div",0)(1,"mat-calendar",1),a.\u0275\u0275listener("yearSelected",function(Ae){return et.datepicker._selectYear(Ae)})("monthSelected",function(Ae){return et.datepicker._selectMonth(Ae)})("viewChanged",function(Ae){return et.datepicker._viewChanged(Ae)})("_userSelection",function(Ae){return et._handleUserSelection(Ae)})("_userDragDrop",function(Ae){return et._handleUserDragDrop(Ae)}),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(2,ct,0,0,"ng-template",2),a.\u0275\u0275elementStart(3,"button",3),a.\u0275\u0275listener("focus",function(){return et._closeButtonFocused=!0})("blur",function(){return et._closeButtonFocused=!1})("click",function(){return et.datepicker.close()}),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd()()),2&ue){let At;a.\u0275\u0275classProp("mat-datepicker-content-container-with-custom-header",et.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",et._actionsPortal),a.\u0275\u0275attribute("aria-modal",!0)("aria-labelledby",null!==(At=et._dialogLabelId)&&void 0!==At?At:void 0),a.\u0275\u0275advance(1),a.\u0275\u0275property("id",et.datepicker.id)("ngClass",et.datepicker.panelClass)("startAt",et.datepicker.startAt)("startView",et.datepicker.startView)("minDate",et.datepicker._getMinDate())("maxDate",et.datepicker._getMaxDate())("dateFilter",et.datepicker._getDateFilter())("headerComponent",et.datepicker.calendarHeaderComponent)("selected",et._getSelected())("dateClass",et.datepicker.dateClass)("comparisonStart",et.comparisonStart)("comparisonEnd",et.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",et.startDateAccessibleName)("endDateAccessibleName",et.endDateAccessibleName),a.\u0275\u0275advance(1),a.\u0275\u0275property("cdkPortalOutlet",et._actionsPortal),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("cdk-visually-hidden",!et._closeButtonFocused),a.\u0275\u0275property("color",et.color||"primary"),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(et._closeButtonText)}},dependencies:[d.mk,u.lW,n.mK,i.Pl,ge],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[q.transformPanel,q.fadeInCalendar]},changeDetection:0}),We})(),qe=(()=>{class We{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ue){this._color=ue}get touchUi(){return this._touchUi}set touchUi(ue){this._touchUi=(0,T.Ig)(ue)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ue){const et=(0,T.Ig)(ue);et!==this._disabled&&(this._disabled=et,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ue){this._restoreFocus=(0,T.Ig)(ue)}get panelClass(){return this._panelClass}set panelClass(ue){this._panelClass=(0,T.du)(ue)}get opened(){return this._opened}set opened(ue){(0,T.Ig)(ue)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(ue,et,At,Ae,bt,Le,Pt){this._overlay=ue,this._ngZone=et,this._viewContainerRef=At,this._dateAdapter=bt,this._dir=Le,this._model=Pt,this._inputStateChanges=x.w0.EMPTY,this._document=(0,a.inject)(d.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.EventEmitter,this.monthSelected=new a.EventEmitter,this.viewChanged=new a.EventEmitter(!0),this.openedStream=new a.EventEmitter,this.closedStream=new a.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+J++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new m.x,this._scrollStrategy=Ae}ngOnChanges(ue){const et=ue.xPosition||ue.yPosition;if(et&&!et.firstChange&&this._overlayRef){const At=this._overlayRef.getConfig().positionStrategy;At instanceof e._G&&(this._setConnectedPositions(At),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ue){this._model.add(ue)}_selectYear(ue){this.yearSelected.emit(ue)}_selectMonth(ue){this.monthSelected.emit(ue)}_viewChanged(ue){this.viewChanged.emit(ue)}registerInput(ue){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ue,this._inputStateChanges=ue.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ue){this._actionsPortal=ue,this._componentRef?.instance._assignActions(ue,!0)}removeActions(ue){ue===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,_.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const ue=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,et=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:At,location:Ae}=this._componentRef;At._startExitAnimation(),At._animationDone.pipe((0,y.q)(1)).subscribe(()=>{const bt=this._document.activeElement;ue&&(!bt||bt===this._document.activeElement||Ae.nativeElement.contains(bt))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}ue?setTimeout(et):et()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(ue){ue.datepicker=this,ue.color=this.color,ue._dialogLabelId=this.datepickerInput.getOverlayLabelId(),ue._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const ue=this.touchUi,et=new i.C5(rt,this._viewContainerRef),At=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:ue?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ue?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ue?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ue?"dialog":"popup")}));this._getCloseStream(At).subscribe(Ae=>{Ae&&Ae.preventDefault(),this.close()}),At.keydownEvents().subscribe(Ae=>{const bt=Ae.keyCode;(bt===w.LH||bt===w.JH||bt===w.oh||bt===w.SV||bt===w.Ku||bt===w.VM)&&Ae.preventDefault()}),this._componentRef=At.attach(et),this._forwardContentValues(this._componentRef.instance),ue||this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>At.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ue=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ue)}_setConnectedPositions(ue){const et="end"===this.xPosition?"end":"start",At="start"===et?"end":"start",Ae="above"===this.yPosition?"bottom":"top",bt="top"===Ae?"bottom":"top";return ue.withPositions([{originX:et,originY:bt,overlayX:et,overlayY:Ae},{originX:et,originY:Ae,overlayX:et,overlayY:bt},{originX:At,originY:bt,overlayX:At,overlayY:Ae},{originX:At,originY:Ae,overlayX:At,overlayY:bt}])}_getCloseStream(ue){const et=["ctrlKey","shiftKey","metaKey"];return(0,O.T)(ue.backdropClick(),ue.detachments(),ue.keydownEvents().pipe((0,C.h)(At=>At.keyCode===w.hY&&!(0,w.Vb)(At)||this.datepickerInput&&(0,w.Vb)(At,"altKey")&&At.keyCode===w.LH&&et.every(Ae=>!(0,w.Vb)(At,Ae)))))}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(e.aV),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(Oe),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(B.Is,8),a.\u0275\u0275directiveInject(ot))},We.\u0275dir=a.\u0275\u0275defineDirective({type:We,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.\u0275\u0275NgOnChangesFeature]}),We})(),ze=(()=>{class We extends qe{}return We.\u0275fac=function(){let ut;return function(et){return(ut||(ut=a.\u0275\u0275getInheritedFactory(We)))(et||We)}}(),We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a.\u0275\u0275ProvidersFeature([Ut,{provide:qe,useExisting:We}]),a.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(ue,et){},encapsulation:2,changeDetection:0}),We})();class zt{constructor(ut,ue){this.target=ut,this.targetElement=ue,this.value=this.target.value}}let vt=(()=>{class We{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ue){this._assignValueProgrammatically(ue)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ue){const et=(0,T.Ig)(ue),At=this._elementRef.nativeElement;this._disabled!==et&&(this._disabled=et,this.stateChanges.next(void 0)),et&&this._isInitialized&&At.blur&&At.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ue){this._model=ue,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(et=>{if(this._shouldHandleChangeEvent(et)){const At=this._getValueFromModel(et.selection);this._lastValueValid=this._isValidValue(At),this._cvaOnChange(At),this._onTouched(),this._formatValue(At),this.dateInput.emit(new zt(this,this._elementRef.nativeElement)),this.dateChange.emit(new zt(this,this._elementRef.nativeElement))}})}constructor(ue,et,At){this._elementRef=ue,this._dateAdapter=et,this._dateFormats=At,this.dateChange=new a.EventEmitter,this.dateInput=new a.EventEmitter,this.stateChanges=new m.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=x.w0.EMPTY,this._localeSubscription=x.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Ae=>{const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ae.value));return!bt||this._matchesFilter(bt)?null:{matDatepickerFilter:!0}},this._minValidator=Ae=>{const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ae.value)),Le=this._getMinDate();return!Le||!bt||this._dateAdapter.compareDate(Le,bt)<=0?null:{matDatepickerMin:{min:Le,actual:bt}}},this._maxValidator=Ae=>{const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ae.value)),Le=this._getMaxDate();return!Le||!bt||this._dateAdapter.compareDate(Le,bt)>=0?null:{matDatepickerMax:{max:Le,actual:bt}}},this._lastValueValid=!1,this._localeSubscription=et.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ue){(function Rt(We,ut){const ue=Object.keys(We);for(let et of ue){const{previousValue:At,currentValue:Ae}=We[et];if(!ut.isDateInstance(At)||!ut.isDateInstance(Ae))return!0;if(!ut.sameDate(At,Ae))return!0}return!1})(ue,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ue){this._validatorOnChange=ue}validate(ue){return this._validator?this._validator(ue):null}writeValue(ue){this._assignValueProgrammatically(ue)}registerOnChange(ue){this._cvaOnChange=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_onKeydown(ue){(0,w.Vb)(ue,"altKey")&&ue.keyCode===w.JH&&["ctrlKey","shiftKey","metaKey"].every(Ae=>!(0,w.Vb)(ue,Ae))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ue.preventDefault())}_onInput(ue){const et=this._lastValueValid;let At=this._dateAdapter.parse(ue,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(At),At=this._dateAdapter.getValidDateOrNull(At);const Ae=!this._dateAdapter.sameDate(At,this.value);!At||Ae?this._cvaOnChange(At):(ue&&!this.value&&this._cvaOnChange(At),et!==this._lastValueValid&&this._validatorOnChange()),Ae&&(this._assignValue(At),this.dateInput.emit(new zt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new zt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ue){this._elementRef.nativeElement.value=null!=ue?this._dateAdapter.format(ue,this._dateFormats.display.dateInput):""}_assignValue(ue){this._model?(this._assignValueToModel(ue),this._pendingValue=null):this._pendingValue=ue}_isValidValue(ue){return!ue||this._dateAdapter.isValid(ue)}_parentDisabled(){return!1}_assignValueProgrammatically(ue){ue=this._dateAdapter.deserialize(ue),this._lastValueValid=this._isValidValue(ue),ue=this._dateAdapter.getValidDateOrNull(ue),this._assignValue(ue),this._formatValue(ue)}_matchesFilter(ue){const et=this._getDateFilter();return!et||et(ue)}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(l.sG,8))},We.\u0275dir=a.\u0275\u0275defineDirective({type:We,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.\u0275\u0275NgOnChangesFeature]}),We})();const gt={provide:I.NG_VALUE_ACCESSOR,useExisting:(0,a.forwardRef)(()=>wn),multi:!0},sn={provide:I.NG_VALIDATORS,useExisting:(0,a.forwardRef)(()=>wn),multi:!0};let wn=(()=>{class We extends vt{set matDatepicker(ue){ue&&(this._datepicker=ue,this._closedSubscription=ue.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ue.registerInput(this)))}get min(){return this._min}set min(ue){const et=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate(et,this._min)||(this._min=et,this._validatorOnChange())}get max(){return this._max}set max(ue){const et=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate(et,this._max)||(this._max=et,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ue){const et=this._matchesFilter(this.value);this._dateFilter=ue,this._matchesFilter(this.value)!==et&&this._validatorOnChange()}constructor(ue,et,At,Ae){super(ue,et,At),this._formField=Ae,this._closedSubscription=x.w0.EMPTY,this._validator=I.Validators.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(ue){return ue}_assignValueToModel(ue){this._model&&this._model.updateSelection(ue,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ue){return ue.source!==this}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(l._A,8),a.\u0275\u0275directiveInject(l.sG,8),a.\u0275\u0275directiveInject(F.G_,8))},We.\u0275dir=a.\u0275\u0275defineDirective({type:We,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ue,et){1&ue&&a.\u0275\u0275listener("input",function(Ae){return et._onInput(Ae.target.value)})("change",function(){return et._onChange()})("blur",function(){return et._onBlur()})("keydown",function(Ae){return et._onKeydown(Ae)}),2&ue&&(a.\u0275\u0275hostProperty("disabled",et.disabled),a.\u0275\u0275attribute("aria-haspopup",et._datepicker?"dialog":null)("aria-owns",(null==et._datepicker?null:et._datepicker.opened)&&et._datepicker.id||null)("min",et.min?et._dateAdapter.toIso8601(et.min):null)("max",et.max?et._dateAdapter.toIso8601(et.max):null)("data-mat-calendar",et._datepicker?et._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a.\u0275\u0275ProvidersFeature([gt,sn,{provide:z.Jk,useExisting:We}]),a.\u0275\u0275InheritDefinitionFeature]}),We})(),Qn=(()=>{class We{}return We.\u0275fac=function(ue){return new(ue||We)},We.\u0275dir=a.\u0275\u0275defineDirective({type:We,selectors:[["","matDatepickerToggleIcon",""]]}),We})(),pi=(()=>{class We{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ue){this._disabled=(0,T.Ig)(ue)}constructor(ue,et,At){this._intl=ue,this._changeDetectorRef=et,this._stateChanges=x.w0.EMPTY;const Ae=Number(At);this.tabIndex=Ae||0===Ae?Ae:null}ngOnChanges(ue){ue.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ue){this.datepicker&&!this.disabled&&(this.datepicker.open(),ue.stopPropagation())}_watchStateChanges(){const ue=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),et=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),At=this.datepicker?(0,O.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,O.T)(this._intl.changes,ue,et,At).subscribe(()=>this._changeDetectorRef.markForCheck())}}return We.\u0275fac=function(ue){return new(ue||We)(a.\u0275\u0275directiveInject(pt),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275injectAttribute("tabindex"))},We.\u0275cmp=a.\u0275\u0275defineComponent({type:We,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ue,et,At){if(1&ue&&a.\u0275\u0275contentQuery(At,Qn,5),2&ue){let Ae;a.\u0275\u0275queryRefresh(Ae=a.\u0275\u0275loadQuery())&&(et._customIcon=Ae.first)}},viewQuery:function(ue,et){if(1&ue&&a.\u0275\u0275viewQuery(pe,5),2&ue){let At;a.\u0275\u0275queryRefresh(At=a.\u0275\u0275loadQuery())&&(et._button=At.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ue,et){1&ue&&a.\u0275\u0275listener("click",function(Ae){return et._open(Ae)}),2&ue&&(a.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",et.datepicker?et.datepicker.id:null),a.\u0275\u0275classProp("mat-datepicker-toggle-active",et.datepicker&&et.datepicker.opened)("mat-accent",et.datepicker&&"accent"===et.datepicker.color)("mat-warn",et.datepicker&&"warn"===et.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.\u0275\u0275NgOnChangesFeature],ngContentSelectors:H,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(ue,et){1&ue&&(a.\u0275\u0275projectionDef(U),a.\u0275\u0275elementStart(0,"button",0,1),a.\u0275\u0275template(2,Ce,2,0,"svg",2),a.\u0275\u0275projection(3),a.\u0275\u0275elementEnd()),2&ue&&(a.\u0275\u0275property("disabled",et.disabled)("disableRipple",et.disableRipple),a.\u0275\u0275attribute("aria-haspopup",et.datepicker?"dialog":null)("aria-label",et.ariaLabel||et._intl.openCalendarLabel)("tabindex",et.disabled?-1:et.tabIndex),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",!et._customIcon))},dependencies:[d.O5,u.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),We})(),Me=(()=>{class We{}return We.\u0275fac=function(ue){return new(ue||We)},We.\u0275mod=a.\u0275\u0275defineNgModule({type:We}),We.\u0275inj=a.\u0275\u0275defineInjector({providers:[pt,Et],imports:[d.ez,u.ot,e.U8,n.rt,i.eL,l.BQ,h.ZD]}),We})()},65938:(Ee,Q,t)=>{"use strict";t.d(Q,{Is:()=>Ht,Nv:()=>Xe,Se:()=>Ce,WI:()=>G,X2:()=>X,_H:()=>Wt,so:()=>R,uh:()=>oe,uw:()=>U,vA:()=>C,xY:()=>Pe});var n=t(98184),e=t(36895),i=t(94650),d=t(12687),a=t(97855),u=t(21281),h=t(84080),l=t(77579),m=t(56451),x=t(49770),O=t(39300),L=t(95698),w=t(68675),B=t(29521),_=t(3238),y=t(37340);function $(Qe,Be){}class C{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const T="mdc-dialog--open",j="mdc-dialog--opening",I="mdc-dialog--closing";let X=(()=>{class Qe extends a.LL{constructor(at,lt,Dt,Yt,Tt,ot,Gt,wt){super(at,lt,Dt,Yt,Tt,ot,Gt,wt),this._animationStateChanged=new i.EventEmitter}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(at){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:at})}}return Qe.\u0275fac=function(at){return new(at||Qe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(d.qV),i.\u0275\u0275directiveInject(e.K0,8),i.\u0275\u0275directiveInject(C),i.\u0275\u0275directiveInject(d.ic),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(n.Iu),i.\u0275\u0275directiveInject(d.tE))},Qe.\u0275cmp=i.\u0275\u0275defineComponent({type:Qe,selectors:[["ng-component"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(at,lt){},encapsulation:2}),Qe})();const p="--mat-dialog-transition-duration";function P(Qe){return null==Qe?null:"number"==typeof Qe?Qe:Qe.endsWith("ms")?(0,u.su)(Qe.substring(0,Qe.length-2)):Qe.endsWith("s")?1e3*(0,u.su)(Qe.substring(0,Qe.length-1)):"0"===Qe?0:null}let E=(()=>{class Qe extends X{constructor(at,lt,Dt,Yt,Tt,ot,Gt,wt,Ze){super(at,lt,Dt,Yt,Tt,ot,Gt,Ze),this._animationMode=wt,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?P(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?P(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(p,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(j),this._hostElement.classList.add(T),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(T),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(T),this._animationsEnabled?(this._hostElement.style.setProperty(p,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(I),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(j),this._hostElement.classList.remove(I)}_waitForAnimationToComplete(at,lt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(lt,at)}}return Qe.\u0275fac=function(at){return new(at||Qe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(d.qV),i.\u0275\u0275directiveInject(e.K0,8),i.\u0275\u0275directiveInject(C),i.\u0275\u0275directiveInject(d.ic),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(n.Iu),i.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8),i.\u0275\u0275directiveInject(d.tE))},Qe.\u0275cmp=i.\u0275\u0275defineComponent({type:Qe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(at,lt){2&at&&(i.\u0275\u0275hostProperty("id",lt._config.id),i.\u0275\u0275attribute("aria-modal",lt._config.ariaModal)("role",lt._config.role)("aria-labelledby",lt._config.ariaLabel?null:lt._ariaLabelledBy)("aria-label",lt._config.ariaLabel)("aria-describedby",lt._config.ariaDescribedBy||null),i.\u0275\u0275classProp("_mat-animation-noopable",!lt._animationsEnabled))},features:[i.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(at,lt){1&at&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275template(2,$,0,0,"ng-template",2),i.\u0275\u0275elementEnd()())},dependencies:[h.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),Qe})();class R{constructor(Be,at,lt){this._ref=Be,this._containerInstance=lt,this._afterOpened=new l.x,this._beforeClosed=new l.x,this._state=0,this.disableClose=at.disableClose,this.id=Be.id,lt._animationStateChanged.pipe((0,O.h)(Dt=>"opened"===Dt.state),(0,L.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),lt._animationStateChanged.pipe((0,O.h)(Dt=>"closed"===Dt.state),(0,L.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Be.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,m.T)(this.backdropClick(),this.keydownEvents().pipe((0,O.h)(Dt=>Dt.keyCode===B.hY&&!this.disableClose&&!(0,B.Vb)(Dt)))).subscribe(Dt=>{this.disableClose||(Dt.preventDefault(),function ne(Qe,Be,at){Qe._closeInteractionType=Be,Qe.close(at)}(this,"keydown"===Dt.type?"keyboard":"mouse"))})}close(Be){this._result=Be,this._containerInstance._animationStateChanged.pipe((0,O.h)(at=>"closing"===at.state),(0,L.q)(1)).subscribe(at=>{this._beforeClosed.next(Be),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),at.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Be){let at=this._ref.config.positionStrategy;return Be&&(Be.left||Be.right)?Be.left?at.left(Be.left):at.right(Be.right):at.centerHorizontally(),Be&&(Be.top||Be.bottom)?Be.top?at.top(Be.top):at.bottom(Be.bottom):at.centerVertically(),this._ref.updatePosition(),this}updateSize(Be="",at=""){return this._ref.updateSize(Be,at),this}addPanelClass(Be){return this._ref.addPanelClass(Be),this}removePanelClass(Be){return this._ref.removePanelClass(Be),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const G=new i.InjectionToken("MatMdcDialogData"),ce=new i.InjectionToken("mat-mdc-dialog-default-options"),xe=new i.InjectionToken("mat-mdc-dialog-scroll-strategy"),Ge={provide:xe,deps:[n.aV],useFactory:function we(Qe){return()=>Qe.scrollStrategies.block()}};let pe=0,Ce=(()=>{class Qe{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const at=this._parentDialog;return at?at._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(at,lt,Dt,Yt,Tt,ot,Gt,wt,Ze,Ut){this._overlay=at,this._defaultOptions=Dt,this._parentDialog=Yt,this._dialogRefConstructor=Gt,this._dialogContainerType=wt,this._dialogDataToken=Ze,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.x,this._afterOpenedAtThisLevel=new l.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=C,this.afterAllClosed=(0,x.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,w.O)(void 0))),this._scrollStrategy=ot,this._dialog=lt.get(a.Vq)}open(at,lt){let Dt;(lt={...this._defaultOptions||new C,...lt}).id=lt.id||`${this._idPrefix}${pe++}`,lt.scrollStrategy=lt.scrollStrategy||this._scrollStrategy();const Yt=this._dialog.open(at,{...lt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:lt},{provide:a.ib,useValue:lt}]},templateContext:()=>({dialogRef:Dt}),providers:(Tt,ot,Gt)=>(Dt=new this._dialogRefConstructor(Tt,lt,Gt),Dt.updatePosition(lt?.position),[{provide:this._dialogContainerType,useValue:Gt},{provide:this._dialogDataToken,useValue:ot.data},{provide:this._dialogRefConstructor,useValue:Dt}])});return Dt.componentInstance=Yt.componentInstance,this.openDialogs.push(Dt),this.afterOpened.next(Dt),Dt.afterClosed().subscribe(()=>{const Tt=this.openDialogs.indexOf(Dt);Tt>-1&&(this.openDialogs.splice(Tt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Dt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(at){return this.openDialogs.find(lt=>lt.id===at)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(at){let lt=at.length;for(;lt--;)at[lt].close()}}return Qe.\u0275fac=function(at){i.\u0275\u0275invalidFactory()},Qe.\u0275prov=i.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac}),Qe})(),U=(()=>{class Qe extends Ce{constructor(at,lt,Dt,Yt,Tt,ot,Gt,wt){super(at,lt,Yt,ot,Gt,Tt,R,E,G,wt),this._idPrefix="mat-mdc-dialog-"}}return Qe.\u0275fac=function(at){return new(at||Qe)(i.\u0275\u0275inject(n.aV),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(e.Ye,8),i.\u0275\u0275inject(ce,8),i.\u0275\u0275inject(xe),i.\u0275\u0275inject(Qe,12),i.\u0275\u0275inject(n.Xj),i.\u0275\u0275inject(i.ANIMATION_MODULE_TYPE,8))},Qe.\u0275prov=i.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac}),Qe})(),H=0,oe=(()=>{class Qe{constructor(at,lt,Dt){this._dialogRef=at,this._elementRef=lt,this._dialog=Dt,this.id="mat-mdc-dialog-title-"+H++}ngOnInit(){this._dialogRef||(this._dialogRef=function pt(Qe,Be){let at=Qe.nativeElement.parentElement;for(;at&&!at.classList.contains("mat-mdc-dialog-container");)at=at.parentElement;return at?Be.find(lt=>lt.id===at.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const at=this._dialogRef._containerInstance;at&&!at._ariaLabelledBy&&(at._ariaLabelledBy=this.id)})}}return Qe.\u0275fac=function(at){return new(at||Qe)(i.\u0275\u0275directiveInject(R,8),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(U))},Qe.\u0275dir=i.\u0275\u0275defineDirective({type:Qe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(at,lt){2&at&&i.\u0275\u0275hostProperty("id",lt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Qe})(),Pe=(()=>{class Qe{}return Qe.\u0275fac=function(at){return new(at||Qe)},Qe.\u0275dir=i.\u0275\u0275defineDirective({type:Qe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),Qe})(),Ht=(()=>{class Qe{}return Qe.\u0275fac=function(at){return new(at||Qe)},Qe.\u0275mod=i.\u0275\u0275defineNgModule({type:Qe}),Qe.\u0275inj=i.\u0275\u0275defineInjector({providers:[U,Ge],imports:[a.Su,n.U8,h.eL,_.BQ,_.BQ]}),Qe})();const Wt={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Xe={dialogContainer:(0,y.X$)("dialogContainer",[(0,y.SB)("void, exit",(0,y.oB)({opacity:0,transform:"scale(0.7)"})),(0,y.SB)("enter",(0,y.oB)({transform:"none"})),(0,y.eR)("* => enter",(0,y.ru)([(0,y.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,y.oB)({transform:"none",opacity:1})),(0,y.IO)("@*",(0,y.pV)(),{optional:!0})]),Wt),(0,y.eR)("* => void, * => exit",(0,y.ru)([(0,y.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,y.oB)({opacity:0})),(0,y.IO)("@*",(0,y.pV)(),{optional:!0})]),Wt)])}},37084:(Ee,Q,t)=>{"use strict";t.d(Q,{pp:()=>Ht,To:()=>Wt,ib:()=>U,yz:()=>Pe,yK:()=>pt});var n=t(94650),e=t(95017),i=t(21281),d=t(77579),a=t(50727);let u=0;const h=new n.InjectionToken("CdkAccordion");let l=(()=>{class Xe{constructor(){this._stateChanges=new d.x,this._openCloseAllActions=new d.x,this.id="cdk-accordion-"+u++,this._multi=!1}get multi(){return this._multi}set multi(Be){this._multi=(0,i.Ig)(Be)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Be){this._stateChanges.next(Be)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275dir=n.\u0275\u0275defineDirective({type:Xe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n.\u0275\u0275ProvidersFeature([{provide:h,useExisting:Xe}]),n.\u0275\u0275NgOnChangesFeature]}),Xe})(),m=0,x=(()=>{class Xe{get expanded(){return this._expanded}set expanded(Be){Be=(0,i.Ig)(Be),this._expanded!==Be&&(this._expanded=Be,this.expandedChange.emit(Be),Be?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Be){this._disabled=(0,i.Ig)(Be)}constructor(Be,at,lt){this.accordion=Be,this._changeDetectorRef=at,this._expansionDispatcher=lt,this._openCloseAllSubscription=a.w0.EMPTY,this.closed=new n.EventEmitter,this.opened=new n.EventEmitter,this.destroyed=new n.EventEmitter,this.expandedChange=new n.EventEmitter,this.id="cdk-accordion-child-"+m++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=lt.listen((Dt,Yt)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Yt&&this.id!==Dt&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Be=>{this.disabled||(this.expanded=Be)})}}return Xe.\u0275fac=function(Be){return new(Be||Xe)(n.\u0275\u0275directiveInject(h,12),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(e.A8))},Xe.\u0275dir=n.\u0275\u0275defineDirective({type:Xe,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n.\u0275\u0275ProvidersFeature([{provide:h,useValue:void 0}])]}),Xe})(),O=(()=>{class Xe{}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275mod=n.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=n.\u0275\u0275defineInjector({}),Xe})();var L=t(84080),w=t(36895),B=t(3238),_=t(12687),y=t(71884),$=t(68675),C=t(39300),T=t(95698),j=t(29521),I=t(60515),F=t(56451),z=t(37340);const X=["body"];function p(Xe,Qe){}const P=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],E=["mat-expansion-panel-header","*","mat-action-row"];function R(Xe,Qe){if(1&Xe&&n.\u0275\u0275element(0,"span",2),2&Xe){const Be=n.\u0275\u0275nextContext();n.\u0275\u0275property("@indicatorRotate",Be._getExpandedState())}}const ne=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],G=["mat-panel-title","mat-panel-description","*"],ce=new n.InjectionToken("MAT_ACCORDION"),xe="225ms cubic-bezier(0.4,0.0,0.2,1)",we={indicatorRotate:(0,z.X$)("indicatorRotate",[(0,z.SB)("collapsed, void",(0,z.oB)({transform:"rotate(0deg)"})),(0,z.SB)("expanded",(0,z.oB)({transform:"rotate(180deg)"})),(0,z.eR)("expanded <=> collapsed, void => collapsed",(0,z.jt)(xe))]),bodyExpansion:(0,z.X$)("bodyExpansion",[(0,z.SB)("collapsed, void",(0,z.oB)({height:"0px",visibility:"hidden"})),(0,z.SB)("expanded",(0,z.oB)({height:"*",visibility:"visible"})),(0,z.eR)("expanded <=> collapsed, void => collapsed",(0,z.jt)(xe))])},Ge=new n.InjectionToken("MAT_EXPANSION_PANEL");let ct=(()=>{class Xe{constructor(Be,at){this._template=Be,this._expansionPanel=at}}return Xe.\u0275fac=function(Be){return new(Be||Xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Ge,8))},Xe.\u0275dir=n.\u0275\u0275defineDirective({type:Xe,selectors:[["ng-template","matExpansionPanelContent",""]]}),Xe})(),pe=0;const Ce=new n.InjectionToken("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let U=(()=>{class Xe extends x{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Be){this._hideToggle=(0,i.Ig)(Be)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Be){this._togglePosition=Be}constructor(Be,at,lt,Dt,Yt,Tt,ot){super(Be,at,lt),this._viewContainerRef=Dt,this._animationMode=Tt,this._hideToggle=!1,this.afterExpand=new n.EventEmitter,this.afterCollapse=new n.EventEmitter,this._inputChanges=new d.x,this._headerId="mat-expansion-panel-header-"+pe++,this._bodyAnimationDone=new d.x,this.accordion=Be,this._document=Yt,this._bodyAnimationDone.pipe((0,y.x)((Gt,wt)=>Gt.fromState===wt.fromState&&Gt.toState===wt.toState)).subscribe(Gt=>{"void"!==Gt.fromState&&("expanded"===Gt.toState?this.afterExpand.emit():"collapsed"===Gt.toState&&this.afterCollapse.emit())}),ot&&(this.hideToggle=ot.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,$.O)(null),(0,C.h)(()=>this.expanded&&!this._portal),(0,T.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Be){this._inputChanges.next(Be)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Be=this._document.activeElement,at=this._body.nativeElement;return Be===at||at.contains(Be)}return!1}}return Xe.\u0275fac=function(Be){return new(Be||Xe)(n.\u0275\u0275directiveInject(ce,12),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(e.A8),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(w.K0),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(Ce,8))},Xe.\u0275cmp=n.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-expansion-panel"]],contentQueries:function(Be,at,lt){if(1&Be&&n.\u0275\u0275contentQuery(lt,ct,5),2&Be){let Dt;n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(at._lazyContent=Dt.first)}},viewQuery:function(Be,at){if(1&Be&&n.\u0275\u0275viewQuery(X,5),2&Be){let lt;n.\u0275\u0275queryRefresh(lt=n.\u0275\u0275loadQuery())&&(at._body=lt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Be,at){2&Be&&n.\u0275\u0275classProp("mat-expanded",at.expanded)("_mat-animation-noopable","NoopAnimations"===at._animationMode)("mat-expansion-panel-spacing",at._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n.\u0275\u0275ProvidersFeature([{provide:ce,useValue:void 0},{provide:Ge,useExisting:Xe}]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:E,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Be,at){1&Be&&(n.\u0275\u0275projectionDef(P),n.\u0275\u0275projection(0),n.\u0275\u0275elementStart(1,"div",0,1),n.\u0275\u0275listener("@bodyExpansion.done",function(Dt){return at._bodyAnimationDone.next(Dt)}),n.\u0275\u0275elementStart(3,"div",2),n.\u0275\u0275projection(4,1),n.\u0275\u0275template(5,p,0,0,"ng-template",3),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(6,2),n.\u0275\u0275elementEnd()),2&Be&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("@bodyExpansion",at._getExpandedState())("id",at.id),n.\u0275\u0275attribute("aria-labelledby",at._headerId),n.\u0275\u0275advance(4),n.\u0275\u0275property("cdkPortalOutlet",at._portal))},dependencies:[L.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[we.bodyExpansion]},changeDetection:0}),Xe})();class Z{}const oe=(0,B.sb)(Z);let Pe=(()=>{class Xe extends oe{constructor(Be,at,lt,Dt,Yt,Tt,ot){super(),this.panel=Be,this._element=at,this._focusMonitor=lt,this._changeDetectorRef=Dt,this._animationMode=Tt,this._parentChangeSubscription=a.w0.EMPTY;const Gt=Be.accordion?Be.accordion._stateChanges.pipe((0,C.h)(wt=>!(!wt.hideToggle&&!wt.togglePosition))):I.E;this.tabIndex=parseInt(ot||"")||0,this._parentChangeSubscription=(0,F.T)(Be.opened,Be.closed,Gt,Be._inputChanges.pipe((0,C.h)(wt=>!!(wt.hideToggle||wt.disabled||wt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Be.closed.pipe((0,C.h)(()=>Be._containsFocus())).subscribe(()=>lt.focusVia(at,"program")),Yt&&(this.expandedHeight=Yt.expandedHeight,this.collapsedHeight=Yt.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Be=this._isExpanded();return Be&&this.expandedHeight?this.expandedHeight:!Be&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Be){switch(Be.keyCode){case j.L_:case j.K5:(0,j.Vb)(Be)||(Be.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Be))}}focus(Be,at){Be?this._focusMonitor.focusVia(this._element,Be,at):this._element.nativeElement.focus(at)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Be=>{Be&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Xe.\u0275fac=function(Be){return new(Be||Xe)(n.\u0275\u0275directiveInject(U,1),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(_.tE),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Ce,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275injectAttribute("tabindex"))},Xe.\u0275cmp=n.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Be,at){1&Be&&n.\u0275\u0275listener("click",function(){return at._toggle()})("keydown",function(Dt){return at._keydown(Dt)}),2&Be&&(n.\u0275\u0275attribute("id",at.panel._headerId)("tabindex",at.tabIndex)("aria-controls",at._getPanelId())("aria-expanded",at._isExpanded())("aria-disabled",at.panel.disabled),n.\u0275\u0275styleProp("height",at._getHeaderHeight()),n.\u0275\u0275classProp("mat-expanded",at._isExpanded())("mat-expansion-toggle-indicator-after","after"===at._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===at._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===at._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:G,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Be,at){1&Be&&(n.\u0275\u0275projectionDef(ne),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275projection(2,1),n.\u0275\u0275projection(3,2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,R,1,1,"span",1)),2&Be&&(n.\u0275\u0275classProp("mat-content-hide-toggle",!at._showToggle()),n.\u0275\u0275advance(4),n.\u0275\u0275property("ngIf",at._showToggle()))},dependencies:[w.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[we.indicatorRotate]},changeDetection:0}),Xe})(),pt=(()=>{class Xe{}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275dir=n.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Xe})(),Ht=(()=>{class Xe extends l{constructor(){super(...arguments),this._ownHeaders=new n.QueryList,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Be){this._hideToggle=(0,i.Ig)(Be)}ngAfterContentInit(){this._headers.changes.pipe((0,$.O)(this._headers)).subscribe(Be=>{this._ownHeaders.reset(Be.filter(at=>at.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new _.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Be){this._keyManager.onKeydown(Be)}_handleHeaderFocus(Be){this._keyManager.updateActiveItem(Be)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return Xe.\u0275fac=function(){let Qe;return function(at){return(Qe||(Qe=n.\u0275\u0275getInheritedFactory(Xe)))(at||Xe)}}(),Xe.\u0275dir=n.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-accordion"]],contentQueries:function(Be,at,lt){if(1&Be&&n.\u0275\u0275contentQuery(lt,Pe,5),2&Be){let Dt;n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(at._headers=Dt)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Be,at){2&Be&&n.\u0275\u0275classProp("mat-accordion-multi",at.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n.\u0275\u0275ProvidersFeature([{provide:ce,useExisting:Xe}]),n.\u0275\u0275InheritDefinitionFeature]}),Xe})(),Wt=(()=>{class Xe{}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275mod=n.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=n.\u0275\u0275defineInjector({imports:[w.ez,B.BQ,O,L.eL]}),Xe})()},59549:(Ee,Q,t)=>{"use strict";t.d(Q,{Bi:()=>ot,Eo:()=>Yt,G_:()=>wt,KE:()=>pn,Lv:()=>Gt,Px:()=>Pe,R9:()=>Ht,TN:()=>Dt,TO:()=>H,UO:()=>Tt,Ve:()=>pt,ab:()=>U,bx:()=>oe,hX:()=>pe,lN:()=>In});var n=t(94650),e=t(40445),i=t(83353),d=t(77579),a=t(56451),u=t(82722),h=t(36895),l=t(21281),m=t(37340),x=t(49643),O=t(3238);const L=["matFormFieldNotchedOutline",""],w=["*"],B=["textField"],_=["iconPrefixContainer"],y=["textPrefixContainer"];function $(Dn,Tn){1&Dn&&n.\u0275\u0275element(0,"span",19)}function C(Dn,Tn){if(1&Dn){const mn=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"label",17),n.\u0275\u0275listener("cdkObserveContent",function(){n.\u0275\u0275restoreView(mn);const cn=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(cn._refreshOutlineNotchWidth())}),n.\u0275\u0275projection(1,1),n.\u0275\u0275template(2,$,1,0,"span",18),n.\u0275\u0275elementEnd()}if(2&Dn){const mn=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("floating",mn._shouldLabelFloat())("cdkObserveContentDisabled",!mn._hasOutline())("id",mn._labelId),n.\u0275\u0275attribute("for",mn._control.id)("aria-owns",mn._control.id),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!mn.hideRequiredMarker&&mn._control.required)}}function T(Dn,Tn){if(1&Dn&&n.\u0275\u0275template(0,C,3,6,"label",16),2&Dn){const mn=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngIf",mn._hasFloatingLabel())}}function j(Dn,Tn){1&Dn&&n.\u0275\u0275element(0,"div",20)}function I(Dn,Tn){}function F(Dn,Tn){if(1&Dn&&n.\u0275\u0275template(0,I,0,0,"ng-template",22),2&Dn){n.\u0275\u0275nextContext(2);const mn=n.\u0275\u0275reference(1);n.\u0275\u0275property("ngTemplateOutlet",mn)}}function z(Dn,Tn){if(1&Dn&&(n.\u0275\u0275elementStart(0,"div",21),n.\u0275\u0275template(1,F,1,1,"ng-template",9),n.\u0275\u0275elementEnd()),2&Dn){const mn=n.\u0275\u0275nextContext();n.\u0275\u0275property("matFormFieldNotchedOutlineOpen",mn._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",mn._labelWidth),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!mn._forceDisplayInfixLabel())}}function X(Dn,Tn){1&Dn&&(n.\u0275\u0275elementStart(0,"div",23,24),n.\u0275\u0275projection(2,2),n.\u0275\u0275elementEnd())}function p(Dn,Tn){1&Dn&&(n.\u0275\u0275elementStart(0,"div",25,26),n.\u0275\u0275projection(2,3),n.\u0275\u0275elementEnd())}function P(Dn,Tn){}function E(Dn,Tn){if(1&Dn&&n.\u0275\u0275template(0,P,0,0,"ng-template",22),2&Dn){n.\u0275\u0275nextContext();const mn=n.\u0275\u0275reference(1);n.\u0275\u0275property("ngTemplateOutlet",mn)}}function R(Dn,Tn){1&Dn&&(n.\u0275\u0275elementStart(0,"div",27),n.\u0275\u0275projection(1,4),n.\u0275\u0275elementEnd())}function ne(Dn,Tn){1&Dn&&(n.\u0275\u0275elementStart(0,"div",28),n.\u0275\u0275projection(1,5),n.\u0275\u0275elementEnd())}function G(Dn,Tn){1&Dn&&n.\u0275\u0275element(0,"div",29)}function ce(Dn,Tn){if(1&Dn&&(n.\u0275\u0275elementStart(0,"div",30),n.\u0275\u0275projection(1,6),n.\u0275\u0275elementEnd()),2&Dn){const mn=n.\u0275\u0275nextContext();n.\u0275\u0275property("@transitionMessages",mn._subscriptAnimationState)}}function xe(Dn,Tn){if(1&Dn&&(n.\u0275\u0275elementStart(0,"mat-hint",34),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Dn){const mn=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("id",mn._hintLabelId),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(mn.hintLabel)}}function we(Dn,Tn){if(1&Dn&&(n.\u0275\u0275elementStart(0,"div",31),n.\u0275\u0275template(1,xe,2,2,"mat-hint",32),n.\u0275\u0275projection(2,7),n.\u0275\u0275element(3,"div",33),n.\u0275\u0275projection(4,8),n.\u0275\u0275elementEnd()),2&Dn){const mn=n.\u0275\u0275nextContext();n.\u0275\u0275property("@transitionMessages",mn._subscriptAnimationState),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",mn.hintLabel)}}const Ge=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ct=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let pe=(()=>{class Dn{}return Dn.\u0275fac=function(mn){return new(mn||Dn)},Dn.\u0275dir=n.\u0275\u0275defineDirective({type:Dn,selectors:[["mat-label"]]}),Dn})(),Ce=0;const U=new n.InjectionToken("MatError");let H=(()=>{class Dn{constructor(mn,Yn){this.id="mat-mdc-error-"+Ce++,mn||Yn.nativeElement.setAttribute("aria-live","polite")}}return Dn.\u0275fac=function(mn){return new(mn||Dn)(n.\u0275\u0275injectAttribute("aria-live"),n.\u0275\u0275directiveInject(n.ElementRef))},Dn.\u0275dir=n.\u0275\u0275defineDirective({type:Dn,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(mn,Yn){2&mn&&n.\u0275\u0275hostProperty("id",Yn.id)},inputs:{id:"id"},features:[n.\u0275\u0275ProvidersFeature([{provide:U,useExisting:Dn}])]}),Dn})(),Z=0,oe=(()=>{class Dn{constructor(){this.align="start",this.id="mat-mdc-hint-"+Z++}}return Dn.\u0275fac=function(mn){return new(mn||Dn)},Dn.\u0275dir=n.\u0275\u0275defineDirective({type:Dn,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(mn,Yn){2&mn&&(n.\u0275\u0275hostProperty("id",Yn.id),n.\u0275\u0275attribute("align",null),n.\u0275\u0275classProp("mat-mdc-form-field-hint-end","end"===Yn.align))},inputs:{align:"align",id:"id"}}),Dn})();const Pe=new n.InjectionToken("MatPrefix"),pt=new n.InjectionToken("MatSuffix");let Ht=(()=>{class Dn{constructor(){this._isText=!1}set _isTextSelector(mn){this._isText=!0}}return Dn.\u0275fac=function(mn){return new(mn||Dn)},Dn.\u0275dir=n.\u0275\u0275defineDirective({type:Dn,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[n.\u0275\u0275ProvidersFeature([{provide:pt,useExisting:Dn}])]}),Dn})(),Wt=(()=>{class Dn{constructor(mn){this._elementRef=mn,this.floating=!1}getWidth(){return function Xe(Dn){if(null!==Dn.offsetParent)return Dn.scrollWidth;const mn=Dn.cloneNode(!0);mn.style.setProperty("position","absolute"),mn.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(mn);const Yn=mn.scrollWidth;return mn.remove(),Yn}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return Dn.\u0275fac=function(mn){return new(mn||Dn)(n.\u0275\u0275directiveInject(n.ElementRef))},Dn.\u0275dir=n.\u0275\u0275defineDirective({type:Dn,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(mn,Yn){2&mn&&n.\u0275\u0275classProp("mdc-floating-label--float-above",Yn.floating)},inputs:{floating:"floating"}}),Dn})();const Qe="mdc-line-ripple--active",Be="mdc-line-ripple--deactivating";let at=(()=>{class Dn{constructor(mn,Yn){this._elementRef=mn,this._handleTransitionEnd=cn=>{const Nn=this._elementRef.nativeElement.classList,Bt=Nn.contains(Be);"opacity"===cn.propertyName&&Bt&&Nn.remove(Qe,Be)},Yn.runOutsideAngular(()=>{mn.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const mn=this._elementRef.nativeElement.classList;mn.remove(Be),mn.add(Qe)}deactivate(){this._elementRef.nativeElement.classList.add(Be)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return Dn.\u0275fac=function(mn){return new(mn||Dn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone))},Dn.\u0275dir=n.\u0275\u0275defineDirective({type:Dn,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),Dn})(),lt=(()=>{class Dn{constructor(mn,Yn){this._elementRef=mn,this._ngZone=Yn,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const mn=this._elementRef.nativeElement.querySelector(".mdc-floating-label");mn?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(mn.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>mn.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return Dn.\u0275fac=function(mn){return new(mn||Dn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone))},Dn.\u0275cmp=n.\u0275\u0275defineComponent({type:Dn,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(mn,Yn){2&mn&&n.\u0275\u0275classProp("mdc-notched-outline--notched",Yn.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:L,ngContentSelectors:w,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(mn,Yn){1&mn&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275element(0,"div",0),n.\u0275\u0275elementStart(1,"div",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(3,"div",2)),2&mn&&(n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Yn._getNotchWidth()))},encapsulation:2,changeDetection:0}),Dn})();const Dt={transitionMessages:(0,m.X$)("transitionMessages",[(0,m.SB)("enter",(0,m.oB)({opacity:1,transform:"translateY(0%)"})),(0,m.eR)("void => enter",[(0,m.oB)({opacity:0,transform:"translateY(-5px)"}),(0,m.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Yt=(()=>{class Dn{}return Dn.\u0275fac=function(mn){return new(mn||Dn)},Dn.\u0275dir=n.\u0275\u0275defineDirective({type:Dn}),Dn})();function Tt(){return Error("Placeholder attribute and child element were both specified.")}function ot(Dn){return Error(`A hint was already declared for 'align="${Dn}"'.`)}function Gt(){return Error("mat-form-field must contain a MatFormFieldControl.")}const wt=new n.InjectionToken("MatFormField"),Ze=new n.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Ut=0,pn=(()=>{class Dn{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(mn){this._hideRequiredMarker=(0,l.Ig)(mn)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(mn){mn!==this._floatLabel&&(this._floatLabel=mn,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(mn){const Yn=this._appearance;this._appearance=mn||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Yn&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(mn){this._subscriptSizing=mn||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(mn){this._hintLabel=mn,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(mn){this._explicitFormFieldControl=mn}constructor(mn,Yn,cn,Nn,Bt,En,Wn,rn){this._elementRef=mn,this._changeDetectorRef=Yn,this._ngZone=cn,this._dir=Nn,this._platform=Bt,this._defaults=En,this._animationMode=Wn,this._document=rn,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Ut++,this._hintLabelId="mat-mdc-hint-"+Ut++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new d.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,En&&(En.appearance&&(this.appearance=En.appearance),this._hideRequiredMarker=Boolean(En?.hideRequiredMarker),En.color&&(this.color=En.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const mn=this._control;mn.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${mn.controlType}`),mn.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),mn.ngControl&&mn.ngControl.valueChanges&&mn.ngControl.valueChanges.pipe((0,u.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(mn=>!mn._isText),this._hasTextPrefix=!!this._prefixChildren.find(mn=>mn._isText),this._hasIconSuffix=!!this._suffixChildren.find(mn=>!mn._isText),this._hasTextSuffix=!!this._suffixChildren.find(mn=>mn._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,a.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,u.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,u.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(mn){const Yn=this._control?this._control.ngControl:null;return Yn&&Yn[mn]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let mn=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&mn.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Yn=this._hintChildren?this._hintChildren.find(Nn=>"start"===Nn.align):null,cn=this._hintChildren?this._hintChildren.find(Nn=>"end"===Nn.align):null;Yn?mn.push(Yn.id):this._hintLabel&&mn.push(this._hintLabelId),cn&&mn.push(cn.id)}else this._errorChildren&&mn.push(...this._errorChildren.map(Yn=>Yn.id));this._control.setDescribedByIds(mn)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const mn=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(mn.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const Yn=this._iconPrefixContainer?.nativeElement,cn=this._textPrefixContainer?.nativeElement,Nn=Yn?.getBoundingClientRect().width??0,Bt=cn?.getBoundingClientRect().width??0;mn.style.transform=`var(\n        --mat-mdc-form-field-label-transform,\n        translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Nn+Bt}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n    )`}_isAttachedToDom(){const mn=this._elementRef.nativeElement;if(mn.getRootNode){const Yn=mn.getRootNode();return Yn&&Yn!==mn}return document.documentElement.contains(mn)}}return Dn.\u0275fac=function(mn){return new(mn||Dn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(e.Is),n.\u0275\u0275directiveInject(i.t4),n.\u0275\u0275directiveInject(Ze,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(h.K0))},Dn.\u0275cmp=n.\u0275\u0275defineComponent({type:Dn,selectors:[["mat-form-field"]],contentQueries:function(mn,Yn,cn){if(1&mn&&(n.\u0275\u0275contentQuery(cn,pe,5),n.\u0275\u0275contentQuery(cn,pe,7),n.\u0275\u0275contentQuery(cn,Yt,5),n.\u0275\u0275contentQuery(cn,Pe,5),n.\u0275\u0275contentQuery(cn,pt,5),n.\u0275\u0275contentQuery(cn,U,5),n.\u0275\u0275contentQuery(cn,oe,5)),2&mn){let Nn;n.\u0275\u0275queryRefresh(Nn=n.\u0275\u0275loadQuery())&&(Yn._labelChildNonStatic=Nn.first),n.\u0275\u0275queryRefresh(Nn=n.\u0275\u0275loadQuery())&&(Yn._labelChildStatic=Nn.first),n.\u0275\u0275queryRefresh(Nn=n.\u0275\u0275loadQuery())&&(Yn._formFieldControl=Nn.first),n.\u0275\u0275queryRefresh(Nn=n.\u0275\u0275loadQuery())&&(Yn._prefixChildren=Nn),n.\u0275\u0275queryRefresh(Nn=n.\u0275\u0275loadQuery())&&(Yn._suffixChildren=Nn),n.\u0275\u0275queryRefresh(Nn=n.\u0275\u0275loadQuery())&&(Yn._errorChildren=Nn),n.\u0275\u0275queryRefresh(Nn=n.\u0275\u0275loadQuery())&&(Yn._hintChildren=Nn)}},viewQuery:function(mn,Yn){if(1&mn&&(n.\u0275\u0275viewQuery(B,5),n.\u0275\u0275viewQuery(_,5),n.\u0275\u0275viewQuery(y,5),n.\u0275\u0275viewQuery(Wt,5),n.\u0275\u0275viewQuery(lt,5),n.\u0275\u0275viewQuery(at,5)),2&mn){let cn;n.\u0275\u0275queryRefresh(cn=n.\u0275\u0275loadQuery())&&(Yn._textField=cn.first),n.\u0275\u0275queryRefresh(cn=n.\u0275\u0275loadQuery())&&(Yn._iconPrefixContainer=cn.first),n.\u0275\u0275queryRefresh(cn=n.\u0275\u0275loadQuery())&&(Yn._textPrefixContainer=cn.first),n.\u0275\u0275queryRefresh(cn=n.\u0275\u0275loadQuery())&&(Yn._floatingLabel=cn.first),n.\u0275\u0275queryRefresh(cn=n.\u0275\u0275loadQuery())&&(Yn._notchedOutline=cn.first),n.\u0275\u0275queryRefresh(cn=n.\u0275\u0275loadQuery())&&(Yn._lineRipple=cn.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(mn,Yn){2&mn&&n.\u0275\u0275classProp("mat-mdc-form-field-label-always-float",Yn._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Yn._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Yn._hasIconSuffix)("mat-form-field-invalid",Yn._control.errorState)("mat-form-field-disabled",Yn._control.disabled)("mat-form-field-autofilled",Yn._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Yn._animationMode)("mat-form-field-appearance-fill","fill"==Yn.appearance)("mat-form-field-appearance-outline","outline"==Yn.appearance)("mat-form-field-hide-placeholder",Yn._hasFloatingLabel()&&!Yn._shouldLabelFloat())("mat-focused",Yn._control.focused)("mat-primary","accent"!==Yn.color&&"warn"!==Yn.color)("mat-accent","accent"===Yn.color)("mat-warn","warn"===Yn.color)("ng-untouched",Yn._shouldForward("untouched"))("ng-touched",Yn._shouldForward("touched"))("ng-pristine",Yn._shouldForward("pristine"))("ng-dirty",Yn._shouldForward("dirty"))("ng-valid",Yn._shouldForward("valid"))("ng-invalid",Yn._shouldForward("invalid"))("ng-pending",Yn._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[n.\u0275\u0275ProvidersFeature([{provide:wt,useExisting:Dn}])],ngContentSelectors:ct,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(mn,Yn){1&mn&&(n.\u0275\u0275projectionDef(Ge),n.\u0275\u0275template(0,T,1,1,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",1,2),n.\u0275\u0275listener("click",function(Nn){return Yn._control.onContainerClick&&Yn._control.onContainerClick(Nn)}),n.\u0275\u0275template(4,j,1,0,"div",3),n.\u0275\u0275elementStart(5,"div",4),n.\u0275\u0275template(6,z,2,3,"div",5),n.\u0275\u0275template(7,X,3,0,"div",6),n.\u0275\u0275template(8,p,3,0,"div",7),n.\u0275\u0275elementStart(9,"div",8),n.\u0275\u0275template(10,E,1,1,"ng-template",9),n.\u0275\u0275projection(11),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(12,R,2,0,"div",10),n.\u0275\u0275template(13,ne,2,0,"div",11),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(14,G,1,0,"div",12),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(15,"div",13),n.\u0275\u0275template(16,ce,2,1,"div",14),n.\u0275\u0275template(17,we,5,2,"div",15),n.\u0275\u0275elementEnd()),2&mn&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mdc-text-field--filled",!Yn._hasOutline())("mdc-text-field--outlined",Yn._hasOutline())("mdc-text-field--no-label",!Yn._hasFloatingLabel())("mdc-text-field--disabled",Yn._control.disabled)("mdc-text-field--invalid",Yn._control.errorState),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!Yn._hasOutline()&&!Yn._control.disabled),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Yn._hasOutline()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Yn._hasIconPrefix),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Yn._hasTextPrefix),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!Yn._hasOutline()||Yn._forceDisplayInfixLabel()),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Yn._hasTextSuffix),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Yn._hasIconSuffix),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Yn._hasOutline()),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Yn.subscriptSizing),n.\u0275\u0275property("ngSwitch",Yn._getDisplayedMessages()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase","error"),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase","hint"))},dependencies:[h.O5,h.tP,h.RF,h.n9,x.wD,oe,Wt,lt,at],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[Dt.transitionMessages]},changeDetection:0}),Dn})(),In=(()=>{class Dn{}return Dn.\u0275fac=function(mn){return new(mn||Dn)},Dn.\u0275mod=n.\u0275\u0275defineNgModule({type:Dn}),Dn.\u0275inj=n.\u0275\u0275defineInjector({imports:[O.BQ,h.ez,x.Q8,O.BQ]}),Dn})()},90782:(Ee,Q,t)=>{"use strict";t.d(Q,{DX:()=>L,Il:()=>p,N6:()=>P});var n=t(94650),e=t(3238),i=t(21281),d=t(40445);const a=["*"];class m{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const ne=Math.max(...this.tracker);return ne>1?this.rowCount+ne-1:this.rowCount}update(ne,G){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(ne),this.tracker.fill(0,0,this.tracker.length),this.positions=G.map(ce=>this._trackTile(ce))}_trackTile(ne){const G=this._findMatchingGap(ne.colspan);return this._markTilePosition(G,ne),this.columnIndex=G+ne.colspan,new x(this.rowIndex,G)}_findMatchingGap(ne){let G=-1,ce=-1;do{this.columnIndex+ne>this.tracker.length?(this._nextRow(),G=this.tracker.indexOf(0,this.columnIndex),ce=this._findGapEndIndex(G)):(G=this.tracker.indexOf(0,this.columnIndex),-1!=G?(ce=this._findGapEndIndex(G),this.columnIndex=G+1):(this._nextRow(),G=this.tracker.indexOf(0,this.columnIndex),ce=this._findGapEndIndex(G)))}while(ce-G<ne||0==ce);return Math.max(G,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let ne=0;ne<this.tracker.length;ne++)this.tracker[ne]=Math.max(0,this.tracker[ne]-1)}_findGapEndIndex(ne){for(let G=ne+1;G<this.tracker.length;G++)if(0!=this.tracker[G])return G;return this.tracker.length}_markTilePosition(ne,G){for(let ce=0;ce<G.colspan;ce++)this.tracker[ne+ce]=G.rowspan}}class x{constructor(ne,G){this.row=ne,this.col=G}}const O=new n.InjectionToken("MAT_GRID_LIST");let L=(()=>{class R{constructor(G,ce){this._element=G,this._gridList=ce,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(G){this._rowspan=Math.round((0,i.su)(G))}get colspan(){return this._colspan}set colspan(G){this._colspan=Math.round((0,i.su)(G))}_setStyle(G,ce){this._element.nativeElement.style[G]=ce}}return R.\u0275fac=function(G){return new(G||R)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(O,8))},R.\u0275cmp=n.\u0275\u0275defineComponent({type:R,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(G,ce){2&G&&n.\u0275\u0275attribute("rowspan",ce.rowspan)("colspan",ce.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(G,ce){1&G&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),R})();const $=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class C{constructor(){this._rows=0,this._rowspan=0}init(ne,G,ce,xe){this._gutterSize=z(ne),this._rows=G.rowCount,this._rowspan=G.rowspan,this._cols=ce,this._direction=xe}getBaseTileSize(ne,G){return`(${ne}% - (${this._gutterSize} * ${G}))`}getTilePosition(ne,G){return 0===G?"0":F(`(${ne} + ${this._gutterSize}) * ${G}`)}getTileSize(ne,G){return`(${ne} * ${G}) + (${G-1} * ${this._gutterSize})`}setStyle(ne,G,ce){let xe=100/this._cols,we=(this._cols-1)/this._cols;this.setColStyles(ne,ce,xe,we),this.setRowStyles(ne,G,xe,we)}setColStyles(ne,G,ce,xe){let we=this.getBaseTileSize(ce,xe);ne._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(we,G)),ne._setStyle("width",F(this.getTileSize(we,ne.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(ne){return`${this._rowspan} * ${this.getTileSize(ne,1)}`}getComputedHeight(){return null}}class T extends C{constructor(ne){super(),this.fixedRowHeight=ne}init(ne,G,ce,xe){super.init(ne,G,ce,xe),this.fixedRowHeight=z(this.fixedRowHeight),$.test(this.fixedRowHeight)}setRowStyles(ne,G){ne._setStyle("top",this.getTilePosition(this.fixedRowHeight,G)),ne._setStyle("height",F(this.getTileSize(this.fixedRowHeight,ne.rowspan)))}getComputedHeight(){return["height",F(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(ne){ne._setListStyle(["height",null]),ne._tiles&&ne._tiles.forEach(G=>{G._setStyle("top",null),G._setStyle("height",null)})}}class j extends C{constructor(ne){super(),this._parseRatio(ne)}setRowStyles(ne,G,ce,xe){this.baseTileHeight=this.getBaseTileSize(ce/this.rowHeightRatio,xe),ne._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,G)),ne._setStyle("paddingTop",F(this.getTileSize(this.baseTileHeight,ne.rowspan)))}getComputedHeight(){return["paddingBottom",F(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(ne){ne._setListStyle(["paddingBottom",null]),ne._tiles.forEach(G=>{G._setStyle("marginTop",null),G._setStyle("paddingTop",null)})}_parseRatio(ne){const G=ne.split(":");this.rowHeightRatio=parseFloat(G[0])/parseFloat(G[1])}}class I extends C{setRowStyles(ne,G){let we=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);ne._setStyle("top",this.getTilePosition(we,G)),ne._setStyle("height",F(this.getTileSize(we,ne.rowspan)))}reset(ne){ne._tiles&&ne._tiles.forEach(G=>{G._setStyle("top",null),G._setStyle("height",null)})}}function F(R){return`calc(${R})`}function z(R){return R.match(/([A-Za-z%]+)$/)?R:`${R}px`}let p=(()=>{class R{constructor(G,ce){this._element=G,this._dir=ce,this._gutter="1px"}get cols(){return this._cols}set cols(G){this._cols=Math.max(1,Math.round((0,i.su)(G)))}get gutterSize(){return this._gutter}set gutterSize(G){this._gutter=`${G??""}`}get rowHeight(){return this._rowHeight}set rowHeight(G){const ce=`${G??""}`;ce!==this._rowHeight&&(this._rowHeight=ce,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(G){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===G?new I:G&&G.indexOf(":")>-1?new j(G):new T(G)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new m);const G=this._tileCoordinator,ce=this._tiles.filter(we=>!we._gridList||we._gridList===this),xe=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,ce),this._tileStyler.init(this.gutterSize,G,this.cols,xe),ce.forEach((we,Ge)=>{const ct=G.positions[Ge];this._tileStyler.setStyle(we,ct.row,ct.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(G){G&&(this._element.nativeElement.style[G[0]]=G[1])}}return R.\u0275fac=function(G){return new(G||R)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(d.Is,8))},R.\u0275cmp=n.\u0275\u0275defineComponent({type:R,selectors:[["mat-grid-list"]],contentQueries:function(G,ce,xe){if(1&G&&n.\u0275\u0275contentQuery(xe,L,5),2&G){let we;n.\u0275\u0275queryRefresh(we=n.\u0275\u0275loadQuery())&&(ce._tiles=we)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(G,ce){2&G&&n.\u0275\u0275attribute("cols",ce.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[n.\u0275\u0275ProvidersFeature([{provide:O,useExisting:R}])],ngContentSelectors:a,decls:2,vars:0,template:function(G,ce){1&G&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),R})(),P=(()=>{class R{}return R.\u0275fac=function(G){return new(G||R)},R.\u0275mod=n.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.uc,e.BQ,e.uc,e.BQ]}),R})()},97392:(Ee,Q,t)=>{"use strict";t.d(Q,{Hw:()=>H,Ps:()=>Z,jv:()=>P});var n=t(94650),e=t(3238),i=t(21281),d=t(36895),a=t(39646),u=t(62843),h=t(4128),l=t(50727),m=t(18505),x=t(54004),O=t(70262),L=t(28746),w=t(13099),B=t(95698),_=t(80529),y=t(11481);const $=["*"];let C;function j(oe){return function T(){if(void 0===C&&(C=null,typeof window<"u")){const oe=window;void 0!==oe.trustedTypes&&(C=oe.trustedTypes.createPolicy("angular#components",{createHTML:Pe=>Pe}))}return C}()?.createHTML(oe)||oe}function I(oe){return Error(`Unable to find icon with the name "${oe}"`)}function z(oe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${oe}".`)}function X(oe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${oe}".`)}class p{constructor(Pe,Ie,pt){this.url=Pe,this.svgText=Ie,this.options=pt}}let P=(()=>{class oe{constructor(Ie,pt,Ht,Wt){this._httpClient=Ie,this._sanitizer=pt,this._errorHandler=Wt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Ht}addSvgIcon(Ie,pt,Ht){return this.addSvgIconInNamespace("",Ie,pt,Ht)}addSvgIconLiteral(Ie,pt,Ht){return this.addSvgIconLiteralInNamespace("",Ie,pt,Ht)}addSvgIconInNamespace(Ie,pt,Ht,Wt){return this._addSvgIconConfig(Ie,pt,new p(Ht,null,Wt))}addSvgIconResolver(Ie){return this._resolvers.push(Ie),this}addSvgIconLiteralInNamespace(Ie,pt,Ht,Wt){const Xe=this._sanitizer.sanitize(n.SecurityContext.HTML,Ht);if(!Xe)throw X(Ht);const Qe=j(Xe);return this._addSvgIconConfig(Ie,pt,new p("",Qe,Wt))}addSvgIconSet(Ie,pt){return this.addSvgIconSetInNamespace("",Ie,pt)}addSvgIconSetLiteral(Ie,pt){return this.addSvgIconSetLiteralInNamespace("",Ie,pt)}addSvgIconSetInNamespace(Ie,pt,Ht){return this._addSvgIconSetConfig(Ie,new p(pt,null,Ht))}addSvgIconSetLiteralInNamespace(Ie,pt,Ht){const Wt=this._sanitizer.sanitize(n.SecurityContext.HTML,pt);if(!Wt)throw X(pt);const Xe=j(Wt);return this._addSvgIconSetConfig(Ie,new p("",Xe,Ht))}registerFontClassAlias(Ie,pt=Ie){return this._fontCssClassesByAlias.set(Ie,pt),this}classNameForFontAlias(Ie){return this._fontCssClassesByAlias.get(Ie)||Ie}setDefaultFontSetClass(...Ie){return this._defaultFontSetClass=Ie,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ie){const pt=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Ie);if(!pt)throw z(Ie);const Ht=this._cachedIconsByUrl.get(pt);return Ht?(0,a.of)(ne(Ht)):this._loadSvgIconFromConfig(new p(Ie,null)).pipe((0,m.b)(Wt=>this._cachedIconsByUrl.set(pt,Wt)),(0,x.U)(Wt=>ne(Wt)))}getNamedSvgIcon(Ie,pt=""){const Ht=G(pt,Ie);let Wt=this._svgIconConfigs.get(Ht);if(Wt)return this._getSvgFromConfig(Wt);if(Wt=this._getIconConfigFromResolvers(pt,Ie),Wt)return this._svgIconConfigs.set(Ht,Wt),this._getSvgFromConfig(Wt);const Xe=this._iconSetConfigs.get(pt);return Xe?this._getSvgFromIconSetConfigs(Ie,Xe):(0,u._)(I(Ht))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ie){return Ie.svgText?(0,a.of)(ne(this._svgElementFromConfig(Ie))):this._loadSvgIconFromConfig(Ie).pipe((0,x.U)(pt=>ne(pt)))}_getSvgFromIconSetConfigs(Ie,pt){const Ht=this._extractIconWithNameFromAnySet(Ie,pt);if(Ht)return(0,a.of)(Ht);const Wt=pt.filter(Xe=>!Xe.svgText).map(Xe=>this._loadSvgIconSetFromConfig(Xe).pipe((0,O.K)(Qe=>{const at=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Xe.url)} failed: ${Qe.message}`;return this._errorHandler.handleError(new Error(at)),(0,a.of)(null)})));return(0,h.D)(Wt).pipe((0,x.U)(()=>{const Xe=this._extractIconWithNameFromAnySet(Ie,pt);if(!Xe)throw I(Ie);return Xe}))}_extractIconWithNameFromAnySet(Ie,pt){for(let Ht=pt.length-1;Ht>=0;Ht--){const Wt=pt[Ht];if(Wt.svgText&&Wt.svgText.toString().indexOf(Ie)>-1){const Xe=this._svgElementFromConfig(Wt),Qe=this._extractSvgIconFromSet(Xe,Ie,Wt.options);if(Qe)return Qe}}return null}_loadSvgIconFromConfig(Ie){return this._fetchIcon(Ie).pipe((0,m.b)(pt=>Ie.svgText=pt),(0,x.U)(()=>this._svgElementFromConfig(Ie)))}_loadSvgIconSetFromConfig(Ie){return Ie.svgText?(0,a.of)(null):this._fetchIcon(Ie).pipe((0,m.b)(pt=>Ie.svgText=pt))}_extractSvgIconFromSet(Ie,pt,Ht){const Wt=Ie.querySelector(`[id="${pt}"]`);if(!Wt)return null;const Xe=Wt.cloneNode(!0);if(Xe.removeAttribute("id"),"svg"===Xe.nodeName.toLowerCase())return this._setSvgAttributes(Xe,Ht);if("symbol"===Xe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Xe),Ht);const Qe=this._svgElementFromString(j("<svg></svg>"));return Qe.appendChild(Xe),this._setSvgAttributes(Qe,Ht)}_svgElementFromString(Ie){const pt=this._document.createElement("DIV");pt.innerHTML=Ie;const Ht=pt.querySelector("svg");if(!Ht)throw Error("<svg> tag not found");return Ht}_toSvgElement(Ie){const pt=this._svgElementFromString(j("<svg></svg>")),Ht=Ie.attributes;for(let Wt=0;Wt<Ht.length;Wt++){const{name:Xe,value:Qe}=Ht[Wt];"id"!==Xe&&pt.setAttribute(Xe,Qe)}for(let Wt=0;Wt<Ie.childNodes.length;Wt++)Ie.childNodes[Wt].nodeType===this._document.ELEMENT_NODE&&pt.appendChild(Ie.childNodes[Wt].cloneNode(!0));return pt}_setSvgAttributes(Ie,pt){return Ie.setAttribute("fit",""),Ie.setAttribute("height","100%"),Ie.setAttribute("width","100%"),Ie.setAttribute("preserveAspectRatio","xMidYMid meet"),Ie.setAttribute("focusable","false"),pt&&pt.viewBox&&Ie.setAttribute("viewBox",pt.viewBox),Ie}_fetchIcon(Ie){const{url:pt,options:Ht}=Ie,Wt=Ht?.withCredentials??!1;if(!this._httpClient)throw function F(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==pt)throw Error(`Cannot fetch icon from URL "${pt}".`);const Xe=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,pt);if(!Xe)throw z(pt);const Qe=this._inProgressUrlFetches.get(Xe);if(Qe)return Qe;const Be=this._httpClient.get(Xe,{responseType:"text",withCredentials:Wt}).pipe((0,x.U)(at=>j(at)),(0,L.x)(()=>this._inProgressUrlFetches.delete(Xe)),(0,w.B)());return this._inProgressUrlFetches.set(Xe,Be),Be}_addSvgIconConfig(Ie,pt,Ht){return this._svgIconConfigs.set(G(Ie,pt),Ht),this}_addSvgIconSetConfig(Ie,pt){const Ht=this._iconSetConfigs.get(Ie);return Ht?Ht.push(pt):this._iconSetConfigs.set(Ie,[pt]),this}_svgElementFromConfig(Ie){if(!Ie.svgElement){const pt=this._svgElementFromString(Ie.svgText);this._setSvgAttributes(pt,Ie.options),Ie.svgElement=pt}return Ie.svgElement}_getIconConfigFromResolvers(Ie,pt){for(let Ht=0;Ht<this._resolvers.length;Ht++){const Wt=this._resolvers[Ht](pt,Ie);if(Wt)return ce(Wt)?new p(Wt.url,null,Wt.options):new p(Wt,null)}}}return oe.\u0275fac=function(Ie){return new(Ie||oe)(n.\u0275\u0275inject(_.eN,8),n.\u0275\u0275inject(y.DomSanitizer),n.\u0275\u0275inject(d.K0,8),n.\u0275\u0275inject(n.ErrorHandler))},oe.\u0275prov=n.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function ne(oe){return oe.cloneNode(!0)}function G(oe,Pe){return oe+":"+Pe}function ce(oe){return!(!oe.url||!oe.options)}const xe=(0,e.pj)(class{constructor(oe){this._elementRef=oe}}),we=new n.InjectionToken("MAT_ICON_DEFAULT_OPTIONS"),Ge=new n.InjectionToken("mat-icon-location",{providedIn:"root",factory:function ct(){const oe=(0,n.inject)(d.K0),Pe=oe?oe.location:null;return{getPathname:()=>Pe?Pe.pathname+Pe.search:""}}}),pe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ce=pe.map(oe=>`[${oe}]`).join(", "),U=/^url\(['"]?#(.*?)['"]?\)$/;let H=(()=>{class oe extends xe{get inline(){return this._inline}set inline(Ie){this._inline=(0,i.Ig)(Ie)}get svgIcon(){return this._svgIcon}set svgIcon(Ie){Ie!==this._svgIcon&&(Ie?this._updateSvgIcon(Ie):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ie)}get fontSet(){return this._fontSet}set fontSet(Ie){const pt=this._cleanupFontValue(Ie);pt!==this._fontSet&&(this._fontSet=pt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ie){const pt=this._cleanupFontValue(Ie);pt!==this._fontIcon&&(this._fontIcon=pt,this._updateFontIconClasses())}constructor(Ie,pt,Ht,Wt,Xe,Qe){super(Ie),this._iconRegistry=pt,this._location=Wt,this._errorHandler=Xe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=l.w0.EMPTY,Qe&&(Qe.color&&(this.color=this.defaultColor=Qe.color),Qe.fontSet&&(this.fontSet=Qe.fontSet)),Ht||Ie.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ie){if(!Ie)return["",""];const pt=Ie.split(":");switch(pt.length){case 1:return["",pt[0]];case 2:return pt;default:throw Error(`Invalid icon name: "${Ie}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ie=this._elementsWithExternalReferences;if(Ie&&Ie.size){const pt=this._location.getPathname();pt!==this._previousPath&&(this._previousPath=pt,this._prependPathToReferences(pt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ie){this._clearSvgElement();const pt=this._location.getPathname();this._previousPath=pt,this._cacheChildrenWithExternalReferences(Ie),this._prependPathToReferences(pt),this._elementRef.nativeElement.appendChild(Ie)}_clearSvgElement(){const Ie=this._elementRef.nativeElement;let pt=Ie.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();pt--;){const Ht=Ie.childNodes[pt];(1!==Ht.nodeType||"svg"===Ht.nodeName.toLowerCase())&&Ht.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ie=this._elementRef.nativeElement,pt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ht=>Ht.length>0);this._previousFontSetClass.forEach(Ht=>Ie.classList.remove(Ht)),pt.forEach(Ht=>Ie.classList.add(Ht)),this._previousFontSetClass=pt,this.fontIcon!==this._previousFontIconClass&&!pt.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ie.classList.remove(this._previousFontIconClass),this.fontIcon&&Ie.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ie){return"string"==typeof Ie?Ie.trim().split(" ")[0]:Ie}_prependPathToReferences(Ie){const pt=this._elementsWithExternalReferences;pt&&pt.forEach((Ht,Wt)=>{Ht.forEach(Xe=>{Wt.setAttribute(Xe.name,`url('${Ie}#${Xe.value}')`)})})}_cacheChildrenWithExternalReferences(Ie){const pt=Ie.querySelectorAll(Ce),Ht=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Wt=0;Wt<pt.length;Wt++)pe.forEach(Xe=>{const Qe=pt[Wt],Be=Qe.getAttribute(Xe),at=Be?Be.match(U):null;if(at){let lt=Ht.get(Qe);lt||(lt=[],Ht.set(Qe,lt)),lt.push({name:Xe,value:at[1]})}})}_updateSvgIcon(Ie){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ie){const[pt,Ht]=this._splitIconName(Ie);pt&&(this._svgNamespace=pt),Ht&&(this._svgName=Ht),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ht,pt).pipe((0,B.q)(1)).subscribe(Wt=>this._setSvgElement(Wt),Wt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${pt}:${Ht}! ${Wt.message}`))})}}}return oe.\u0275fac=function(Ie){return new(Ie||oe)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(P),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(Ge),n.\u0275\u0275directiveInject(n.ErrorHandler),n.\u0275\u0275directiveInject(we,8))},oe.\u0275cmp=n.\u0275\u0275defineComponent({type:oe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ie,pt){2&Ie&&(n.\u0275\u0275attribute("data-mat-icon-type",pt._usingFontIcon()?"font":"svg")("data-mat-icon-name",pt._svgName||pt.fontIcon)("data-mat-icon-namespace",pt._svgNamespace||pt.fontSet)("fontIcon",pt._usingFontIcon()?pt.fontIcon:null),n.\u0275\u0275classProp("mat-icon-inline",pt.inline)("mat-icon-no-color","primary"!==pt.color&&"accent"!==pt.color&&"warn"!==pt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:1,vars:0,template:function(Ie,pt){1&Ie&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),oe})(),Z=(()=>{class oe{}return oe.\u0275fac=function(Ie){return new(Ie||oe)},oe.\u0275mod=n.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.BQ,e.BQ]}),oe})()},284:(Ee,Q,t)=>{"use strict";t.d(Q,{Jk:()=>x,Nt:()=>B,c:()=>_});var n=t(21281),e=t(83353),i=t(39349),d=t(94650),a=t(24006),u=t(3238),h=t(59549),l=t(77579);const x=new d.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),O=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L=0;const w=(0,u.FD)(class{constructor(y,$,C,T){this._defaultErrorStateMatcher=y,this._parentForm=$,this._parentFormGroup=C,this.ngControl=T,this.stateChanges=new l.x}});let B=(()=>{class y extends w{get disabled(){return this._disabled}set disabled(C){this._disabled=(0,n.Ig)(C),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(C){this._id=C||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(a.Validators.required)??!1}set required(C){this._required=(0,n.Ig)(C)}get type(){return this._type}set type(C){this._type=C||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(C){C!==this.value&&(this._inputValueAccessor.value=C,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(C){this._readonly=(0,n.Ig)(C)}constructor(C,T,j,I,F,z,X,p,P,E){super(z,I,F,j),this._elementRef=C,this._platform=T,this._autofillMonitor=p,this._formField=E,this._uid="mat-input-"+L++,this.focused=!1,this.stateChanges=new l.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(G=>(0,e.qK)().has(G)),this._iOSKeyupListener=G=>{const ce=G.target;!ce.value&&0===ce.selectionStart&&0===ce.selectionEnd&&(ce.setSelectionRange(1,1),ce.setSelectionRange(0,0))};const R=this._elementRef.nativeElement,ne=R.nodeName.toLowerCase();this._inputValueAccessor=X||R,this._previousNativeValue=this.value,this.id=this.id,T.IOS&&P.runOutsideAngular(()=>{C.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ne,this._isTextarea="textarea"===ne,this._isInFormField=!!E,this._isNativeSelect&&(this.controlType=R.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(C=>{this.autofilled=C.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(C){this._elementRef.nativeElement.focus(C)}_focusChanged(C){C!==this.focused&&(this.focused=C,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const C=this._elementRef.nativeElement.value;this._previousNativeValue!==C&&(this._previousNativeValue=C,this.stateChanges.next())}_dirtyCheckPlaceholder(){const C=this._getPlaceholder();if(C!==this._previousPlaceholder){const T=this._elementRef.nativeElement;this._previousPlaceholder=C,C?T.setAttribute("placeholder",C):T.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){O.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let C=this._elementRef.nativeElement.validity;return C&&C.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const C=this._elementRef.nativeElement,T=C.options[0];return this.focused||C.multiple||!this.empty||!!(C.selectedIndex>-1&&T&&T.label)}return this.focused||!this.empty}setDescribedByIds(C){C.length?this._elementRef.nativeElement.setAttribute("aria-describedby",C.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const C=this._elementRef.nativeElement;return this._isNativeSelect&&(C.multiple||C.size>1)}}return y.\u0275fac=function(C){return new(C||y)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(e.t4),d.\u0275\u0275directiveInject(a.NgControl,10),d.\u0275\u0275directiveInject(a.NgForm,8),d.\u0275\u0275directiveInject(a.FormGroupDirective,8),d.\u0275\u0275directiveInject(u.rD),d.\u0275\u0275directiveInject(x,10),d.\u0275\u0275directiveInject(i.Lq),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(h.G_,8))},y.\u0275dir=d.\u0275\u0275defineDirective({type:y,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(C,T){1&C&&d.\u0275\u0275listener("focus",function(){return T._focusChanged(!0)})("blur",function(){return T._focusChanged(!1)})("input",function(){return T._onInput()}),2&C&&(d.\u0275\u0275hostProperty("id",T.id)("disabled",T.disabled)("required",T.required),d.\u0275\u0275attribute("name",T.name||null)("readonly",T.readonly&&!T._isNativeSelect||null)("aria-invalid",T.empty&&T.required?null:T.errorState)("aria-required",T.required)("id",T.id),d.\u0275\u0275classProp("mat-input-server",T._isServer)("mat-mdc-form-field-textarea-control",T._isInFormField&&T._isTextarea)("mat-mdc-form-field-input-control",T._isInFormField)("mdc-text-field__input",T._isInFormField)("mat-mdc-native-select-inline",T._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[d.\u0275\u0275ProvidersFeature([{provide:h.Eo,useExisting:y}]),d.\u0275\u0275InheritDefinitionFeature,d.\u0275\u0275NgOnChangesFeature]}),y})(),_=(()=>{class y{}return y.\u0275fac=function(C){return new(C||y)},y.\u0275mod=d.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=d.\u0275\u0275defineInjector({imports:[u.BQ,h.lN,h.lN,i.Ky,u.BQ]}),y})()},47687:(Ee,Q,t)=>{"use strict";t.d(Q,{hV:()=>w,yj:()=>P});var n=t(97855),e=t(98184),i=t(84080),d=t(94650),a=t(3238),u=t(36895),h=t(12687),l=t(65938);function m(E,R){}const x_params_enterAnimationDuration="150ms",x_params_exitAnimationDuration="75ms";class O extends l.vA{constructor(){super(...arguments),this.enterAnimationDuration=l._H.params.enterAnimationDuration,this.exitAnimationDuration=l._H.params.exitAnimationDuration}}let L=(()=>{class E extends l.X2{_onAnimationDone({toState:ne,totalTime:G}){"enter"===ne?this._openAnimationDone(G):"exit"===ne&&this._animationStateChanged.next({state:"closed",totalTime:G})}_onAnimationStart({toState:ne,totalTime:G}){"enter"===ne?this._animationStateChanged.next({state:"opening",totalTime:G}):("exit"===ne||"void"===ne)&&this._animationStateChanged.next({state:"closing",totalTime:G})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(ne,G,ce,xe,we,Ge,ct,pe,Ce){super(ne,G,ce,xe,we,Ge,ct,Ce),this._changeDetectorRef=pe,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||x_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||x_params_exitAnimationDuration}}}}return E.\u0275fac=function(ne){return new(ne||E)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(h.qV),d.\u0275\u0275directiveInject(u.K0,8),d.\u0275\u0275directiveInject(O),d.\u0275\u0275directiveInject(h.ic),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(e.Iu),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(h.tE))},E.\u0275cmp=d.\u0275\u0275defineComponent({type:E,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(ne,G){1&ne&&d.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(xe){return G._onAnimationStart(xe)})("@dialogContainer.done",function(xe){return G._onAnimationDone(xe)}),2&ne&&(d.\u0275\u0275hostProperty("id",G._config.id),d.\u0275\u0275attribute("aria-modal",G._config.ariaModal)("role",G._config.role)("aria-labelledby",G._config.ariaLabel?null:G._ariaLabelledBy)("aria-label",G._config.ariaLabel)("aria-describedby",G._config.ariaDescribedBy||null),d.\u0275\u0275syntheticHostProperty("@dialogContainer",G._getAnimationState()))},features:[d.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ne,G){1&ne&&d.\u0275\u0275template(0,m,0,0,"ng-template",0)},dependencies:[i.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[l.Nv.dialogContainer]}}),E})();class w extends l.so{}const B=new d.InjectionToken("MatDialogData"),_=new d.InjectionToken("mat-dialog-default-options"),y=new d.InjectionToken("mat-dialog-scroll-strategy"),C={provide:y,deps:[e.aV],useFactory:function $(E){return()=>E.scrollStrategies.block()}};let T=(()=>{class E extends l.Se{constructor(ne,G,ce,xe,we,Ge,ct,pe){super(ne,G,xe,Ge,ct,we,w,L,B,pe),this.dialogConfigClass=O}}return E.\u0275fac=function(ne){return new(ne||E)(d.\u0275\u0275inject(e.aV),d.\u0275\u0275inject(d.Injector),d.\u0275\u0275inject(u.Ye,8),d.\u0275\u0275inject(_,8),d.\u0275\u0275inject(y),d.\u0275\u0275inject(E,12),d.\u0275\u0275inject(e.Xj),d.\u0275\u0275inject(d.ANIMATION_MODULE_TYPE,8))},E.\u0275prov=d.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E})(),P=(()=>{class E{}return E.\u0275fac=function(ne){return new(ne||E)},E.\u0275mod=d.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=d.\u0275\u0275defineInjector({providers:[T,C],imports:[n.Su,e.U8,i.eL,a.BQ,a.BQ]}),E})()},18455:(Ee,Q,t)=>{"use strict";t.d(Q,{nI:()=>xe,nX:()=>Ht,v_:()=>Ie,wp:()=>Wt});var n=t(49643),e=t(36895),i=t(94650),d=t(3238),a=t(59549),u=t(40445),h=t(21281),l=t(77579),m=t(56451),x=t(54968),O=t(68675),L=t(82722),w=t(95698),B=t(83353);const _=["connectionContainer"],y=["inputContainer"],$=["label"];function C(Xe,Qe){1&Xe&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",14),i.\u0275\u0275element(2,"div",15)(3,"div",16)(4,"div",17),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",18),i.\u0275\u0275element(6,"div",15)(7,"div",16)(8,"div",17),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd())}function T(Xe,Qe){if(1&Xe){const Be=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",19),i.\u0275\u0275listener("cdkObserveContent",function(){i.\u0275\u0275restoreView(Be);const lt=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(lt.updateOutlineGap())}),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementEnd()}if(2&Xe){const Be=i.\u0275\u0275nextContext();i.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Be.appearance)}}function j(Xe,Qe){if(1&Xe&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275projection(1,2),i.\u0275\u0275elementStart(2,"span"),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd()),2&Xe){const Be=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(Be._control.placeholder)}}function I(Xe,Qe){1&Xe&&i.\u0275\u0275projection(0,3,["*ngSwitchCase","true"])}function F(Xe,Qe){1&Xe&&(i.\u0275\u0275elementStart(0,"span",23),i.\u0275\u0275text(1," *"),i.\u0275\u0275elementEnd())}function z(Xe,Qe){if(1&Xe){const Be=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"label",20,21),i.\u0275\u0275listener("cdkObserveContent",function(){i.\u0275\u0275restoreView(Be);const lt=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(lt.updateOutlineGap())}),i.\u0275\u0275template(2,j,4,1,"ng-container",12),i.\u0275\u0275template(3,I,1,0,"ng-content",12),i.\u0275\u0275template(4,F,2,0,"span",22),i.\u0275\u0275elementEnd()}if(2&Xe){const Be=i.\u0275\u0275nextContext();i.\u0275\u0275classProp("mat-empty",Be._control.empty&&!Be._shouldAlwaysFloat())("mat-form-field-empty",Be._control.empty&&!Be._shouldAlwaysFloat())("mat-accent","accent"==Be.color)("mat-warn","warn"==Be.color),i.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Be.appearance)("id",Be._labelId)("ngSwitch",Be._hasLabel()),i.\u0275\u0275attribute("for",Be._control.id)("aria-owns",Be._control.id),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngSwitchCase",!1),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase",!0),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!Be.hideRequiredMarker&&Be._control.required&&!Be._control.disabled)}}function X(Xe,Qe){1&Xe&&(i.\u0275\u0275elementStart(0,"div",24),i.\u0275\u0275projection(1,4),i.\u0275\u0275elementEnd())}function p(Xe,Qe){if(1&Xe&&(i.\u0275\u0275elementStart(0,"div",25),i.\u0275\u0275element(1,"span",26),i.\u0275\u0275elementEnd()),2&Xe){const Be=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275classProp("mat-accent","accent"==Be.color)("mat-warn","warn"==Be.color)}}function P(Xe,Qe){if(1&Xe&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275projection(1,5),i.\u0275\u0275elementEnd()),2&Xe){const Be=i.\u0275\u0275nextContext();i.\u0275\u0275property("@transitionMessages",Be._subscriptAnimationState)}}function E(Xe,Qe){if(1&Xe&&(i.\u0275\u0275elementStart(0,"div",30),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Xe){const Be=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("id",Be._hintLabelId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(Be.hintLabel)}}function R(Xe,Qe){if(1&Xe&&(i.\u0275\u0275elementStart(0,"div",27),i.\u0275\u0275template(1,E,2,2,"div",28),i.\u0275\u0275projection(2,6),i.\u0275\u0275element(3,"div",29),i.\u0275\u0275projection(4,7),i.\u0275\u0275elementEnd()),2&Xe){const Be=i.\u0275\u0275nextContext();i.\u0275\u0275property("@transitionMessages",Be._subscriptAnimationState),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Be.hintLabel)}}const ne=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],G=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ce=0,xe=(()=>{class Xe{constructor(Be,at){this.id="mat-error-"+ce++,Be||at.nativeElement.setAttribute("aria-live","polite")}}return Xe.\u0275fac=function(Be){return new(Be||Xe)(i.\u0275\u0275injectAttribute("aria-live"),i.\u0275\u0275directiveInject(i.ElementRef))},Xe.\u0275dir=i.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Be,at){2&Be&&i.\u0275\u0275attribute("id",at.id)},inputs:{id:"id"},features:[i.\u0275\u0275ProvidersFeature([{provide:a.ab,useExisting:Xe}])]}),Xe})();const Ge=new i.InjectionToken("MatHint");let pe=(()=>{class Xe{}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275dir=i.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-label"]]}),Xe})(),Ce=(()=>{class Xe{}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275dir=i.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-placeholder"]]}),Xe})(),U=0;const oe=(0,d.pj)(class{constructor(Xe){this._elementRef=Xe}},"primary"),Pe=new i.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Ie=(()=>{class Xe extends oe{get appearance(){return this._appearance}set appearance(Be){const at=this._appearance;this._appearance=Be||this._defaults?.appearance||"legacy","outline"===this._appearance&&at!==Be&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Be){this._hideRequiredMarker=(0,h.Ig)(Be)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Be){this._hintLabel=Be,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Be){Be!==this._floatLabel&&(this._floatLabel=Be||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Be){this._explicitFormFieldControl=Be}constructor(Be,at,lt,Dt,Yt,Tt,ot){super(Be),this._changeDetectorRef=at,this._dir=lt,this._defaults=Dt,this._platform=Yt,this._ngZone=Tt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+U++,this._labelId="mat-form-field-label-"+U++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==ot,this.appearance=Dt?.appearance||"legacy",Dt&&(this._hideRequiredMarker=Boolean(Dt.hideRequiredMarker),Dt.color&&(this.color=this.defaultColor=Dt.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Be=this._control;Be.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Be.controlType}`),Be.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Be.ngControl&&Be.ngControl.valueChanges&&Be.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,m.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Be){const at=this._control?this._control.ngControl:null;return at&&at[Be]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,x.R)(this._label.nativeElement,"transitionend").pipe((0,w.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Be=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Be.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const at=this._hintChildren?this._hintChildren.find(Dt=>"start"===Dt.align):null,lt=this._hintChildren?this._hintChildren.find(Dt=>"end"===Dt.align):null;at?Be.push(at.id):this._hintLabel&&Be.push(this._hintLabelId),lt&&Be.push(lt.id)}else this._errorChildren&&Be.push(...this._errorChildren.map(at=>at.id));this._control.setDescribedByIds(Be)}}_validateControlChild(){}updateOutlineGap(){const Be=this._label?this._label.nativeElement:null,at=this._connectionContainerRef.nativeElement,lt=".mat-form-field-outline-start",Dt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!Be||!Be.children.length||!Be.textContent.trim()){const wt=at.querySelectorAll(`${lt}, ${Dt}`);for(let Ze=0;Ze<wt.length;Ze++)wt[Ze].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Yt=0,Tt=0;const ot=at.querySelectorAll(lt),Gt=at.querySelectorAll(Dt);if(this._label&&this._label.nativeElement.children.length){const wt=at.getBoundingClientRect();if(0===wt.width&&0===wt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Ze=this._getStartEnd(wt),Ut=Be.children,vn=this._getStartEnd(Ut[0].getBoundingClientRect());let xn=0;for(let bn=0;bn<Ut.length;bn++)xn+=Ut[bn].offsetWidth;Yt=Math.abs(vn-Ze)-5,Tt=xn>0?.75*xn+10:0}for(let wt=0;wt<ot.length;wt++)ot[wt].style.width=`${Yt}px`;for(let wt=0;wt<Gt.length;wt++)Gt[wt].style.width=`${Tt}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(Be){return this._dir&&"rtl"===this._dir.value?Be.right:Be.left}_isAttachedToDOM(){const Be=this._elementRef.nativeElement;if(Be.getRootNode){const at=Be.getRootNode();return at&&at!==Be}return document.documentElement.contains(Be)}}return Xe.\u0275fac=function(Be){return new(Be||Xe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(u.Is,8),i.\u0275\u0275directiveInject(Pe,8),i.\u0275\u0275directiveInject(B.t4),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8))},Xe.\u0275cmp=i.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-form-field"]],contentQueries:function(Be,at,lt){if(1&Be&&(i.\u0275\u0275contentQuery(lt,a.Eo,5),i.\u0275\u0275contentQuery(lt,a.Eo,7),i.\u0275\u0275contentQuery(lt,pe,5),i.\u0275\u0275contentQuery(lt,pe,7),i.\u0275\u0275contentQuery(lt,Ce,5),i.\u0275\u0275contentQuery(lt,a.ab,5),i.\u0275\u0275contentQuery(lt,Ge,5),i.\u0275\u0275contentQuery(lt,a.Px,5),i.\u0275\u0275contentQuery(lt,a.Ve,5)),2&Be){let Dt;i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._controlNonStatic=Dt.first),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._controlStatic=Dt.first),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._labelChildNonStatic=Dt.first),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._labelChildStatic=Dt.first),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._placeholderChild=Dt.first),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._errorChildren=Dt),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._hintChildren=Dt),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._prefixChildren=Dt),i.\u0275\u0275queryRefresh(Dt=i.\u0275\u0275loadQuery())&&(at._suffixChildren=Dt)}},viewQuery:function(Be,at){if(1&Be&&(i.\u0275\u0275viewQuery(_,7),i.\u0275\u0275viewQuery(y,5),i.\u0275\u0275viewQuery($,5)),2&Be){let lt;i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(at._connectionContainerRef=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(at._inputContainerRef=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(at._label=lt.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(Be,at){2&Be&&i.\u0275\u0275classProp("mat-form-field-appearance-standard","standard"==at.appearance)("mat-form-field-appearance-fill","fill"==at.appearance)("mat-form-field-appearance-outline","outline"==at.appearance)("mat-form-field-appearance-legacy","legacy"==at.appearance)("mat-form-field-invalid",at._control.errorState)("mat-form-field-can-float",at._canLabelFloat())("mat-form-field-should-float",at._shouldLabelFloat())("mat-form-field-has-label",at._hasFloatingLabel())("mat-form-field-hide-placeholder",at._hideControlPlaceholder())("mat-form-field-disabled",at._control.disabled)("mat-form-field-autofilled",at._control.autofilled)("mat-focused",at._control.focused)("ng-untouched",at._shouldForward("untouched"))("ng-touched",at._shouldForward("touched"))("ng-pristine",at._shouldForward("pristine"))("ng-dirty",at._shouldForward("dirty"))("ng-valid",at._shouldForward("valid"))("ng-invalid",at._shouldForward("invalid"))("ng-pending",at._shouldForward("pending"))("_mat-animation-noopable",!at._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[i.\u0275\u0275ProvidersFeature([{provide:a.G_,useExisting:Xe}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:G,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(Be,at){1&Be&&(i.\u0275\u0275projectionDef(ne),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1,2),i.\u0275\u0275listener("click",function(Dt){return at._control.onContainerClick&&at._control.onContainerClick(Dt)}),i.\u0275\u0275template(3,C,9,0,"ng-container",3),i.\u0275\u0275template(4,T,2,1,"div",4),i.\u0275\u0275elementStart(5,"div",5,6),i.\u0275\u0275projection(7),i.\u0275\u0275elementStart(8,"span",7),i.\u0275\u0275template(9,z,5,16,"label",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275template(10,X,2,0,"div",9),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(11,p,2,4,"div",10),i.\u0275\u0275elementStart(12,"div",11),i.\u0275\u0275template(13,P,2,1,"div",12),i.\u0275\u0275template(14,R,5,2,"div",13),i.\u0275\u0275elementEnd()()),2&Be&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf","outline"==at.appearance),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",at._prefixChildren.length),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngIf",at._hasFloatingLabel()),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",at._suffixChildren.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","outline"!=at.appearance),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitch",at._getDisplayedMessages()),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase","error"),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase","hint"))},dependencies:[e.O5,e.RF,e.n9,n.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}.mat-form-field .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-button-base,.mat-form-field .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-form-field .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{font-size:1em;display:inline-block;margin:-2px 0 1px}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button{font-size:inherit;width:1.5em;height:1.5em;padding:0}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{line-height:1.5em;margin:0}.mat-form-field .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:baseline}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[a.TN.transitionMessages]},changeDetection:0}),Xe})(),Ht=(()=>{class Xe{}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275dir=i.\u0275\u0275defineDirective({type:Xe,selectors:[["","matSuffix",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:a.Ve,useExisting:Xe}])]}),Xe})(),Wt=(()=>{class Xe{}return Xe.\u0275fac=function(Be){return new(Be||Xe)},Xe.\u0275mod=i.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=i.\u0275\u0275defineInjector({imports:[e.ez,d.BQ,n.Q8,d.BQ]}),Xe})()},29203:(Ee,Q,t)=>{"use strict";t.d(Q,{k0:()=>h,x4:()=>l});var n=t(94650),e=t(284),i=t(59549),d=t(18455),a=t(39349),u=t(3238);let h=(()=>{class m extends e.Nt{constructor(){super(...arguments),this._legacyFormField=(0,n.inject)(i.G_,{optional:!0})}_getPlaceholder(){const O=this._legacyFormField;return O&&"legacy"===O.appearance&&!O._hasLabel?.()?null:this.placeholder}}return m.\u0275fac=function(){let x;return function(L){return(x||(x=n.\u0275\u0275getInheritedFactory(m)))(L||m)}}(),m.\u0275dir=n.\u0275\u0275defineDirective({type:m,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(O,L){2&O&&(n.\u0275\u0275attribute("data-placeholder",L.placeholder),n.\u0275\u0275classProp("mat-input-server",L._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",L._isInlineSelect()))},exportAs:["matInput"],features:[n.\u0275\u0275ProvidersFeature([{provide:i.Eo,useExisting:m}]),n.\u0275\u0275InheritDefinitionFeature]}),m})(),l=(()=>{class m{}return m.\u0275fac=function(O){return new(O||m)},m.\u0275mod=n.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=n.\u0275\u0275defineInjector({providers:[u.rD],imports:[a.Ky,d.wp,u.BQ,a.Ky,d.wp]}),m})()},83026:(Ee,Q,t)=>{"use strict";t.d(Q,{R7:()=>ve,SK:()=>ue,gz:()=>Le,Nn:()=>dn});var n=t(12687),e=t(49643),i=t(84080),d=t(36895),a=t(94650),u=t(3238),h=t(95698),l=t(40445),m=t(50727),x=t(77579),O=t(54968),L=t(39646),w=t(56451),B=t(60515),_=t(69751),y=t(82805),$=t(68675),C=t(71884),T=t(82722),j=t(63900),I=t(35684),F=t(39300),z=t(37340),X=t(21281),p=t(4883),P=t(83353),E=t(29521);function R(St,jt){}const ne=function(St){return{animationDuration:St}},G=function(St,jt){return{value:St,params:jt}},Xe={translateTab:(0,z.X$)("translateTab",[(0,z.SB)("center, void, left-origin-center, right-origin-center",(0,z.oB)({transform:"none"})),(0,z.SB)("left",(0,z.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,z.SB)("right",(0,z.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,z.eR)("* => left, * => right, left => center, right => center",(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,z.eR)("void => left-origin-center",[(0,z.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,z.eR)("void => right-origin-center",[(0,z.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Qe=(()=>{class St extends i.Pl{constructor(ht,on,Nt,It){super(ht,on,It),this._host=Nt,this._centeringSub=m.w0.EMPTY,this._leavingSub=m.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,$.O)(this._host._isCenterPosition(this._host._position))).subscribe(ht=>{ht&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ComponentFactoryResolver),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>at)),a.\u0275\u0275directiveInject(d.K0))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,selectors:[["","matTabBodyHost",""]],features:[a.\u0275\u0275InheritDefinitionFeature]}),St})(),Be=(()=>{class St{set position(ht){this._positionIndex=ht,this._computePositionAnimationState()}constructor(ht,on,Nt){this._elementRef=ht,this._dir=on,this._dirChangeSubscription=m.w0.EMPTY,this._translateTabComplete=new x.x,this._onCentering=new a.EventEmitter,this._beforeCentering=new a.EventEmitter,this._afterLeavingCenter=new a.EventEmitter,this._onCentered=new a.EventEmitter(!0),this.animationDuration="500ms",this.preserveContent=!1,on&&(this._dirChangeSubscription=on.change.subscribe(It=>{this._computePositionAnimationState(It),Nt.markForCheck()})),this._translateTabComplete.pipe((0,C.x)((It,Ot)=>It.fromState===Ot.fromState&&It.toState===Ot.toState)).subscribe(It=>{this._isCenterPosition(It.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(It.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ht){const on=this._isCenterPosition(ht.toState);this._beforeCentering.emit(on),on&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ht){return"center"==ht||"left-origin-center"==ht||"right-origin-center"==ht}_computePositionAnimationState(ht=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ht?"left":"right":this._positionIndex>0?"ltr"==ht?"right":"left":"center"}_computePositionFromOrigin(ht){const on=this._getLayoutDirection();return"ltr"==on&&ht<=0||"rtl"==on&&ht>0?"left-origin-center":"right-origin-center"}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(l.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),St})(),at=(()=>{class St extends Be{constructor(ht,on,Nt){super(ht,on,Nt)}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(l.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},St.\u0275cmp=a.\u0275\u0275defineComponent({type:St,selectors:[["mat-tab-body"]],viewQuery:function(ht,on){if(1&ht&&a.\u0275\u0275viewQuery(i.Pl,5),2&ht){let Nt;a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._portalHost=Nt.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[a.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ht,on){1&ht&&(a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("@translateTab.start",function(It){return on._onTranslateTabStarted(It)})("@translateTab.done",function(It){return on._translateTabComplete.next(It)}),a.\u0275\u0275template(2,R,0,0,"ng-template",2),a.\u0275\u0275elementEnd()),2&ht&&a.\u0275\u0275property("@translateTab",a.\u0275\u0275pureFunction2(3,G,on._position,a.\u0275\u0275pureFunction1(1,ne,on.animationDuration)))},dependencies:[Qe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Xe.translateTab]}}),St})();const lt=new a.InjectionToken("MatTabContent"),Yt=new a.InjectionToken("MatTabLabel"),Tt=new a.InjectionToken("MAT_TAB");let ot=(()=>{class St extends i.ig{constructor(ht,on,Nt){super(ht,on),this._closestTab=Nt}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.TemplateRef),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(Tt,8))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:Yt,useExisting:St}]),a.\u0275\u0275InheritDefinitionFeature]}),St})();const xn=new a.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function vn(){return jt=>({left:jt?(jt.offsetLeft||0)+"px":"0",width:jt?(jt.offsetWidth||0)+"px":"0"})}}),bn=(0,u.Id)(class{});let hn=(()=>{class St extends bn{constructor(ht){super(),this.elementRef=ht}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,features:[a.\u0275\u0275InheritDefinitionFeature]}),St})();const Dn=(0,u.Id)(class{}),Tn=new a.InjectionToken("MAT_TAB_GROUP");let mn=(()=>{class St extends Dn{get content(){return this._contentPortal}constructor(ht,on){super(),this._viewContainerRef=ht,this._closestTabGroup=on,this.textLabel="",this._contentPortal=null,this._stateChanges=new x.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(ht){(ht.hasOwnProperty("textLabel")||ht.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new i.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ht){ht&&ht._closestTab===this&&(this._templateLabel=ht)}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(Tn,8))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,viewQuery:function(ht,on){if(1&ht&&a.\u0275\u0275viewQuery(a.TemplateRef,7),2&ht){let Nt;a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._implicitContent=Nt.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[a.\u0275\u0275InheritDefinitionFeature,a.\u0275\u0275NgOnChangesFeature]}),St})();const cn=(0,P.i$)({passive:!0});let En=(()=>{class St{get disablePagination(){return this._disablePagination}set disablePagination(ht){this._disablePagination=(0,X.Ig)(ht)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ht){ht=(0,X.su)(ht),this._selectedIndex!=ht&&(this._selectedIndexChanged=!0,this._selectedIndex=ht,this._keyManager&&this._keyManager.updateActiveItem(ht))}constructor(ht,on,Nt,It,Ot,fn,Xn){this._elementRef=ht,this._changeDetectorRef=on,this._viewportRuler=Nt,this._dir=It,this._ngZone=Ot,this._platform=fn,this._animationMode=Xn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new x.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new x.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.EventEmitter,this.indexFocused=new a.EventEmitter,Ot.runOutsideAngular(()=>{(0,O.R)(ht.nativeElement,"mouseleave").pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,O.R)(this._previousPaginator.nativeElement,"touchstart",cn).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,O.R)(this._nextPaginator.nativeElement,"touchstart",cn).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ht=this._dir?this._dir.change:(0,L.of)("ltr"),on=this._viewportRuler.change(150),Nt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(Nt),(0,w.T)(ht,on,this._items.changes,this._itemsResized()).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Nt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(It=>{this.indexFocused.emit(It),this._setTabFocus(It)})}_itemsResized(){return"function"!=typeof ResizeObserver?B.E:this._items.changes.pipe((0,$.O)(this._items),(0,j.w)(ht=>new _.y(on=>this._ngZone.runOutsideAngular(()=>{const Nt=new ResizeObserver(It=>on.next(It));return ht.forEach(It=>Nt.observe(It.elementRef.nativeElement)),()=>{Nt.disconnect()}}))),(0,I.T)(1),(0,F.h)(ht=>ht.some(on=>on.contentRect.width>0&&on.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ht){if(!(0,E.Vb)(ht))switch(ht.keyCode){case E.K5:case E.L_:if(this.focusIndex!==this.selectedIndex){const on=this._items.get(this.focusIndex);on&&!on.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ht))}break;default:this._keyManager.onKeydown(ht)}}_onContentChanges(){const ht=this._elementRef.nativeElement.textContent;ht!==this._currentTextContent&&(this._currentTextContent=ht||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ht){!this._isValidIndex(ht)||this.focusIndex===ht||!this._keyManager||this._keyManager.setActiveItem(ht)}_isValidIndex(ht){return!this._items||!!this._items.toArray()[ht]}_setTabFocus(ht){if(this._showPaginationControls&&this._scrollToLabel(ht),this._items&&this._items.length){this._items.toArray()[ht].focus();const on=this._tabListContainer.nativeElement;on.scrollLeft="ltr"==this._getLayoutDirection()?0:on.scrollWidth-on.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ht=this.scrollDistance,on="ltr"===this._getLayoutDirection()?-ht:ht;this._tabList.nativeElement.style.transform=`translateX(${Math.round(on)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ht){this._scrollTo(ht)}_scrollHeader(ht){return this._scrollTo(this._scrollDistance+("before"==ht?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ht){this._stopInterval(),this._scrollHeader(ht)}_scrollToLabel(ht){if(this.disablePagination)return;const on=this._items?this._items.toArray()[ht]:null;if(!on)return;const Nt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:It,offsetWidth:Ot}=on.elementRef.nativeElement;let fn,Xn;"ltr"==this._getLayoutDirection()?(fn=It,Xn=fn+Ot):(Xn=this._tabListInner.nativeElement.offsetWidth-It,fn=Xn-Ot);const _i=this.scrollDistance,ci=this.scrollDistance+Nt;fn<_i?this.scrollDistance-=_i-fn:Xn>ci&&(this.scrollDistance+=Math.min(Xn-ci,fn-_i))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ht=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ht||(this.scrollDistance=0),ht!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ht}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ht=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,on=ht?ht.elementRef.nativeElement:null;on?this._inkBar.alignToElement(on):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ht,on){on&&null!=on.button&&0!==on.button||(this._stopInterval(),(0,y.H)(650,100).pipe((0,T.R)((0,w.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Nt,distance:It}=this._scrollHeader(ht);(0===It||It>=Nt)&&this._stopInterval()}))}_scrollTo(ht){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const on=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(on,ht)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:on,distance:this._scrollDistance}}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(p.rL),a.\u0275\u0275directiveInject(l.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(P.t4),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,inputs:{disablePagination:"disablePagination"}}),St})(),Wn=(()=>{class St extends En{get disableRipple(){return this._disableRipple}set disableRipple(ht){this._disableRipple=(0,X.Ig)(ht)}constructor(ht,on,Nt,It,Ot,fn,Xn){super(ht,on,Nt,It,Ot,fn,Xn),this._disableRipple=!1}_itemSelected(ht){ht.preventDefault()}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(p.rL),a.\u0275\u0275directiveInject(l.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(P.t4),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,inputs:{disableRipple:"disableRipple"},features:[a.\u0275\u0275InheritDefinitionFeature]}),St})();const Sn=new a.InjectionToken("MAT_TABS_CONFIG");let ke=0;const ge=(0,u.pj)((0,u.Kr)(class{constructor(St){this._elementRef=St}}),"primary");let q=(()=>{class St extends ge{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ht){this._dynamicHeight=(0,X.Ig)(ht)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ht){this._indexToSelect=(0,X.su)(ht,null)}get animationDuration(){return this._animationDuration}set animationDuration(ht){this._animationDuration=/^\d+$/.test(ht+"")?ht+"ms":ht}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ht){this._contentTabIndex=(0,X.su)(ht,null)}get disablePagination(){return this._disablePagination}set disablePagination(ht){this._disablePagination=(0,X.Ig)(ht)}get preserveContent(){return this._preserveContent}set preserveContent(ht){this._preserveContent=(0,X.Ig)(ht)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ht){const on=this._elementRef.nativeElement.classList;on.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),ht&&on.add("mat-tabs-with-background",`mat-background-${ht}`),this._backgroundColor=ht}constructor(ht,on,Nt,It){super(ht),this._changeDetectorRef=on,this._animationMode=It,this._tabs=new a.QueryList,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=m.w0.EMPTY,this._tabLabelSubscription=m.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new a.EventEmitter,this.focusChange=new a.EventEmitter,this.animationDone=new a.EventEmitter,this.selectedTabChange=new a.EventEmitter(!0),this._groupId=ke++,this.animationDuration=Nt&&Nt.animationDuration?Nt.animationDuration:"500ms",this.disablePagination=!(!Nt||null==Nt.disablePagination)&&Nt.disablePagination,this.dynamicHeight=!(!Nt||null==Nt.dynamicHeight)&&Nt.dynamicHeight,this.contentTabIndex=Nt?.contentTabIndex??null,this.preserveContent=!!Nt?.preserveContent}ngAfterContentChecked(){const ht=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ht){const on=null==this._selectedIndex;if(!on){this.selectedTabChange.emit(this._createChangeEvent(ht));const Nt=this._tabBodyWrapper.nativeElement;Nt.style.minHeight=Nt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Nt,It)=>Nt.isActive=It===ht),on||(this.selectedIndexChange.emit(ht),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((on,Nt)=>{on.position=Nt-ht,null!=this._selectedIndex&&0==on.position&&!on.origin&&(on.origin=ht-this._selectedIndex)}),this._selectedIndex!==ht&&(this._selectedIndex=ht,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ht=this._clampTabIndex(this._indexToSelect);if(ht===this._selectedIndex){const on=this._tabs.toArray();let Nt;for(let It=0;It<on.length;It++)if(on[It].isActive){this._indexToSelect=this._selectedIndex=It,this._lastFocusedTabIndex=null,Nt=on[It];break}!Nt&&on[ht]&&Promise.resolve().then(()=>{on[ht].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ht))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,$.O)(this._allTabs)).subscribe(ht=>{this._tabs.reset(ht.filter(on=>on._closestTabGroup===this||!on._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(ht){const on=this._tabHeader;on&&(on.focusIndex=ht)}_focusChanged(ht){this._lastFocusedTabIndex=ht,this.focusChange.emit(this._createChangeEvent(ht))}_createChangeEvent(ht){const on=new Oe;return on.index=ht,this._tabs&&this._tabs.length&&(on.tab=this._tabs.toArray()[ht]),on}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,w.T)(...this._tabs.map(ht=>ht._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ht){return Math.min(this._tabs.length-1,Math.max(ht||0,0))}_getTabLabelId(ht){return`mat-tab-label-${this._groupId}-${ht}`}_getTabContentId(ht){return`mat-tab-content-${this._groupId}-${ht}`}_setTabBodyWrapperHeight(ht){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const on=this._tabBodyWrapper.nativeElement;on.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(on.style.height=ht+"px")}_removeTabBodyWrapperHeight(){const ht=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ht.clientHeight,ht.style.height="",this.animationDone.emit()}_handleClick(ht,on,Nt){on.focusIndex=Nt,ht.disabled||(this.selectedIndex=Nt)}_getTabIndex(ht){return ht===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(ht,on){ht&&"mouse"!==ht&&"touch"!==ht&&(this._tabHeader.focusIndex=on)}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Sn,8),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.\u0275\u0275InheritDefinitionFeature]}),St})();class Oe{}function gt(St,jt){1&St&&a.\u0275\u0275projection(0)}const sn=["*"];function wn(St,jt){}const Qn=function(St){return{animationDuration:St}},pi=function(St,jt){return{value:St,params:jt}},Ei=["tabListContainer"],ki=["tabList"],Co=["tabListInner"],xo=["nextPaginator"],no=["previousPaginator"],Qo=["tabBodyWrapper"],Mo=["tabHeader"];function po(St,jt){}function Io(St,jt){if(1&St&&a.\u0275\u0275template(0,po,0,0,"ng-template",10),2&St){const ht=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275property("cdkPortalOutlet",ht.templateLabel)}}function en(St,jt){if(1&St&&a.\u0275\u0275text(0),2&St){const ht=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275textInterpolate(ht.textLabel)}}function Hn(St,jt){if(1&St){const ht=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",6),a.\u0275\u0275listener("click",function(){const Nt=a.\u0275\u0275restoreView(ht),It=Nt.$implicit,Ot=Nt.index,fn=a.\u0275\u0275nextContext(),Xn=a.\u0275\u0275reference(1);return a.\u0275\u0275resetView(fn._handleClick(It,Xn,Ot))})("cdkFocusChange",function(Nt){const Ot=a.\u0275\u0275restoreView(ht).index,fn=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(fn._tabFocusChanged(Nt,Ot))}),a.\u0275\u0275elementStart(1,"div",7),a.\u0275\u0275template(2,Io,1,1,"ng-template",8),a.\u0275\u0275template(3,en,1,1,"ng-template",null,9,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275elementEnd()()}if(2&St){const ht=jt.$implicit,on=jt.index,Nt=a.\u0275\u0275reference(4),It=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-label-active",It.selectedIndex===on),a.\u0275\u0275property("id",It._getTabLabelId(on))("ngClass",ht.labelClass)("disabled",ht.disabled)("matRippleDisabled",ht.disabled||It.disableRipple),a.\u0275\u0275attribute("tabIndex",It._getTabIndex(on))("aria-posinset",on+1)("aria-setsize",It._tabs.length)("aria-controls",It._getTabContentId(on))("aria-selected",It.selectedIndex===on)("aria-label",ht.ariaLabel||null)("aria-labelledby",!ht.ariaLabel&&ht.ariaLabelledby?ht.ariaLabelledby:null),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",ht.templateLabel)("ngIfElse",Nt)}}function tt(St,jt){if(1&St){const ht=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"mat-tab-body",11),a.\u0275\u0275listener("_onCentered",function(){a.\u0275\u0275restoreView(ht);const Nt=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Nt._removeTabBodyWrapperHeight())})("_onCentering",function(Nt){a.\u0275\u0275restoreView(ht);const It=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(It._setTabBodyWrapperHeight(Nt))}),a.\u0275\u0275elementEnd()}if(2&St){const ht=jt.$implicit,on=jt.index,Nt=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-body-active",Nt.selectedIndex===on),a.\u0275\u0275property("id",Nt._getTabContentId(on))("ngClass",ht.bodyClass)("content",ht.content)("position",ht.position)("origin",ht.origin)("animationDuration",Nt.animationDuration)("preserveContent",Nt.preserveContent),a.\u0275\u0275attribute("tabindex",null!=Nt.contentTabIndex&&Nt.selectedIndex===on?Nt.contentTabIndex:null)("aria-labelledby",Nt._getTabLabelId(on))}}let De=(()=>{class St{constructor(ht,on,Nt,It){this._elementRef=ht,this._ngZone=on,this._inkBarPositioner=Nt,this._animationMode=It}alignToElement(ht){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{const on=this._inkBarPositioner(ht),Nt=this._elementRef.nativeElement;Nt.style.left=on.left,Nt.style.width=on.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(xn),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ht,on){2&ht&&a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===on._animationMode)}}),St})(),ve=(()=>{class St extends mn{get templateLabel(){return this._templateLabel}set templateLabel(ht){this._setTemplateLabelInput(ht)}}return St.\u0275fac=function(){let jt;return function(on){return(jt||(jt=a.\u0275\u0275getInheritedFactory(St)))(on||St)}}(),St.\u0275cmp=a.\u0275\u0275defineComponent({type:St,selectors:[["mat-tab"]],contentQueries:function(ht,on,Nt){if(1&ht&&(a.\u0275\u0275contentQuery(Nt,Yt,5),a.\u0275\u0275contentQuery(Nt,lt,7,a.TemplateRef)),2&ht){let It;a.\u0275\u0275queryRefresh(It=a.\u0275\u0275loadQuery())&&(on.templateLabel=It.first),a.\u0275\u0275queryRefresh(It=a.\u0275\u0275loadQuery())&&(on._explicitContent=It.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[a.\u0275\u0275ProvidersFeature([{provide:Tt,useExisting:St}]),a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:sn,decls:1,vars:0,template:function(ht,on){1&ht&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275template(0,gt,1,0,"ng-template"))},encapsulation:2}),St})(),Se=(()=>{class St extends Qe{constructor(ht,on,Nt,It){super(ht,on,Nt,It)}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ComponentFactoryResolver),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>Me)),a.\u0275\u0275directiveInject(d.K0))},St.\u0275dir=a.\u0275\u0275defineDirective({type:St,selectors:[["","matTabBodyHost",""]],features:[a.\u0275\u0275InheritDefinitionFeature]}),St})(),Me=(()=>{class St extends Be{constructor(ht,on,Nt){super(ht,on,Nt)}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(l.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},St.\u0275cmp=a.\u0275\u0275defineComponent({type:St,selectors:[["mat-tab-body"]],viewQuery:function(ht,on){if(1&ht&&a.\u0275\u0275viewQuery(i.Pl,5),2&ht){let Nt;a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._portalHost=Nt.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ht,on){1&ht&&(a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("@translateTab.start",function(It){return on._onTranslateTabStarted(It)})("@translateTab.done",function(It){return on._translateTabComplete.next(It)}),a.\u0275\u0275template(2,wn,0,0,"ng-template",2),a.\u0275\u0275elementEnd()),2&ht&&a.\u0275\u0275property("@translateTab",a.\u0275\u0275pureFunction2(3,pi,on._position,a.\u0275\u0275pureFunction1(1,Qn,on.animationDuration)))},dependencies:[Se],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Xe.translateTab]}}),St})(),We=(()=>{class St extends hn{}return St.\u0275fac=function(){let jt;return function(on){return(jt||(jt=a.\u0275\u0275getInheritedFactory(St)))(on||St)}}(),St.\u0275dir=a.\u0275\u0275defineDirective({type:St,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ht,on){2&ht&&(a.\u0275\u0275attribute("aria-disabled",!!on.disabled),a.\u0275\u0275classProp("mat-tab-disabled",on.disabled))},inputs:{disabled:"disabled"},features:[a.\u0275\u0275InheritDefinitionFeature]}),St})(),ut=(()=>{class St extends Wn{constructor(ht,on,Nt,It,Ot,fn,Xn){super(ht,on,Nt,It,Ot,fn,Xn)}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(p.rL),a.\u0275\u0275directiveInject(l.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(P.t4),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},St.\u0275cmp=a.\u0275\u0275defineComponent({type:St,selectors:[["mat-tab-header"]],contentQueries:function(ht,on,Nt){if(1&ht&&a.\u0275\u0275contentQuery(Nt,We,4),2&ht){let It;a.\u0275\u0275queryRefresh(It=a.\u0275\u0275loadQuery())&&(on._items=It)}},viewQuery:function(ht,on){if(1&ht&&(a.\u0275\u0275viewQuery(De,7),a.\u0275\u0275viewQuery(Ei,7),a.\u0275\u0275viewQuery(ki,7),a.\u0275\u0275viewQuery(Co,7),a.\u0275\u0275viewQuery(xo,5),a.\u0275\u0275viewQuery(no,5)),2&ht){let Nt;a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._inkBar=Nt.first),a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._tabListContainer=Nt.first),a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._tabList=Nt.first),a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._tabListInner=Nt.first),a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._nextPaginator=Nt.first),a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._previousPaginator=Nt.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ht,on){2&ht&&a.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",on._showPaginationControls)("mat-tab-header-rtl","rtl"==on._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:sn,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ht,on){1&ht&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"button",0,1),a.\u0275\u0275listener("click",function(){return on._handlePaginatorClick("before")})("mousedown",function(It){return on._handlePaginatorPress("before",It)})("touchend",function(){return on._stopInterval()}),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275listener("keydown",function(It){return on._handleKeydown(It)}),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275listener("cdkObserveContent",function(){return on._onContentChanges()}),a.\u0275\u0275elementStart(7,"div",7,8),a.\u0275\u0275projection(9),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(10,"mat-ink-bar"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(11,"button",9,10),a.\u0275\u0275listener("mousedown",function(It){return on._handlePaginatorPress("after",It)})("click",function(){return on._handlePaginatorClick("after")})("touchend",function(){return on._stopInterval()}),a.\u0275\u0275element(13,"div",2),a.\u0275\u0275elementEnd()),2&ht&&(a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",on._disableScrollBefore),a.\u0275\u0275property("matRippleDisabled",on._disableScrollBefore||on.disableRipple)("disabled",on._disableScrollBefore||null),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===on._animationMode),a.\u0275\u0275advance(6),a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",on._disableScrollAfter),a.\u0275\u0275property("matRippleDisabled",on._disableScrollAfter||on.disableRipple)("disabled",on._disableScrollAfter||null))},dependencies:[u.wG,e.wD,De],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),St})(),ue=(()=>{class St extends q{constructor(ht,on,Nt,It){super(ht,on,Nt,It)}}return St.\u0275fac=function(ht){return new(ht||St)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Sn,8),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},St.\u0275cmp=a.\u0275\u0275defineComponent({type:St,selectors:[["mat-tab-group"]],contentQueries:function(ht,on,Nt){if(1&ht&&a.\u0275\u0275contentQuery(Nt,ve,5),2&ht){let It;a.\u0275\u0275queryRefresh(It=a.\u0275\u0275loadQuery())&&(on._allTabs=It)}},viewQuery:function(ht,on){if(1&ht&&(a.\u0275\u0275viewQuery(Qo,5),a.\u0275\u0275viewQuery(Mo,5)),2&ht){let Nt;a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._tabBodyWrapper=Nt.first),a.\u0275\u0275queryRefresh(Nt=a.\u0275\u0275loadQuery())&&(on._tabHeader=Nt.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ht,on){2&ht&&a.\u0275\u0275classProp("mat-tab-group-dynamic-height",on.dynamicHeight)("mat-tab-group-inverted-header","below"===on.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.\u0275\u0275ProvidersFeature([{provide:Tn,useExisting:St}]),a.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(ht,on){1&ht&&(a.\u0275\u0275elementStart(0,"mat-tab-header",0,1),a.\u0275\u0275listener("indexFocused",function(It){return on._focusChanged(It)})("selectFocusedIndex",function(It){return on.selectedIndex=It}),a.\u0275\u0275template(2,Hn,5,15,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275template(5,tt,1,11,"mat-tab-body",5),a.\u0275\u0275elementEnd()),2&ht&&(a.\u0275\u0275property("selectedIndex",on.selectedIndex||0)("disableRipple",on.disableRipple)("disablePagination",on.disablePagination),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",on._tabs),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===on._animationMode),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",on._tabs))},dependencies:[d.mk,d.sg,d.O5,i.Pl,u.wG,n.kH,We,Me,ut],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),St})(),Le=(()=>{class St extends ot{}return St.\u0275fac=function(){let jt;return function(on){return(jt||(jt=a.\u0275\u0275getInheritedFactory(St)))(on||St)}}(),St.\u0275dir=a.\u0275\u0275defineDirective({type:St,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:Yt,useExisting:St}]),a.\u0275\u0275InheritDefinitionFeature]}),St})(),dn=(()=>{class St{}return St.\u0275fac=function(ht){return new(ht||St)},St.\u0275mod=a.\u0275\u0275defineNgModule({type:St}),St.\u0275inj=a.\u0275\u0275defineInjector({imports:[d.ez,u.BQ,i.eL,u.si,e.Q8,n.rt,u.BQ]}),St})()},98739:(Ee,Q,t)=>{"use strict";t.d(Q,{TU:()=>z,ye:()=>w});var n=t(36895),e=t(94650),i=t(77579),d=t(4859),a=t(84385),u=t(10266);let w=(()=>{class X{constructor(){this.changes=new i.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(P,E,R)=>{if(0==R||0==E)return`0 of ${R}`;const ne=P*E;return`${ne+1} \u2013 ${ne<(R=Math.max(R,0))?Math.min(ne+E,R):ne+E} of ${R}`}}}return X.\u0275fac=function(P){return new(P||X)},X.\u0275prov=e.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const _={provide:w,deps:[[new e.Optional,new e.SkipSelf,w]],useFactory:function B(X){return X||new w}};let z=(()=>{class X{}return X.\u0275fac=function(P){return new(P||X)},X.\u0275mod=e.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=e.\u0275\u0275defineInjector({providers:[_],imports:[n.ez,d.ot,a.LD,u.AV]}),X})()},51572:(Ee,Q,t)=>{"use strict";t.d(Q,{Cq:()=>B,Ou:()=>L});var n=t(94650),e=t(3238),i=t(21281),d=t(36895);const a=["determinateSpinner"];function u(_,y){if(1&_&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",11),n.\u0275\u0275element(1,"circle",12),n.\u0275\u0275elementEnd()),2&_){const $=n.\u0275\u0275nextContext();n.\u0275\u0275attribute("viewBox",$._viewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("stroke-dasharray",$._strokeCircumference(),"px")("stroke-dashoffset",$._strokeCircumference()/2,"px")("stroke-width",$._circleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",$._circleRadius())}}const h=(0,e.pj)(class{constructor(_){this._elementRef=_}},"primary"),l=new n.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:function m(){return{diameter:x}}}),x=100;let L=(()=>{class _ extends h{constructor($,C,T){super($),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=x,this._noopAnimations="NoopAnimations"===C&&!!T&&!T._forceAnimations,T&&(T.color&&(this.color=this.defaultColor=T.color),T.diameter&&(this.diameter=T.diameter),T.strokeWidth&&(this.strokeWidth=T.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value($){this._value=Math.max(0,Math.min(100,(0,i.su)($)))}get diameter(){return this._diameter}set diameter($){this._diameter=(0,i.su)($)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth($){this._strokeWidth=(0,i.su)($)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const $=2*this._circleRadius()+this.strokeWidth;return`0 0 ${$} ${$}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return _.\u0275fac=function($){return new($||_)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(l))},_.\u0275cmp=n.\u0275\u0275defineComponent({type:_,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function($,C){if(1&$&&n.\u0275\u0275viewQuery(a,5),2&$){let T;n.\u0275\u0275queryRefresh(T=n.\u0275\u0275loadQuery())&&(C._determinateCircle=T.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function($,C){2&$&&(n.\u0275\u0275attribute("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===C.mode?C.value:null)("mode",C.mode),n.\u0275\u0275styleProp("width",C.diameter,"px")("height",C.diameter,"px"),n.\u0275\u0275classProp("_mat-animation-noopable",C._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===C.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[n.\u0275\u0275InheritDefinitionFeature],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function($,C){if(1&$&&(n.\u0275\u0275template(0,u,2,8,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",1,2),n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(4,"svg",3),n.\u0275\u0275element(5,"circle",4),n.\u0275\u0275elementEnd()(),n.\u0275\u0275namespaceHTML(),n.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"div",7),n.\u0275\u0275elementContainer(9,8),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(10,"div",9),n.\u0275\u0275elementContainer(11,8),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"div",10),n.\u0275\u0275elementContainer(13,8),n.\u0275\u0275elementEnd()()()),2&$){const T=n.\u0275\u0275reference(1);n.\u0275\u0275advance(4),n.\u0275\u0275attribute("viewBox",C._viewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("stroke-dasharray",C._strokeCircumference(),"px")("stroke-dashoffset",C._strokeDashOffset(),"px")("stroke-width",C._circleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",C._circleRadius()),n.\u0275\u0275advance(4),n.\u0275\u0275property("ngTemplateOutlet",T),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngTemplateOutlet",T),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngTemplateOutlet",T)}},dependencies:[d.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),_})(),B=(()=>{class _{}return _.\u0275fac=function($){return new($||_)},_.\u0275mod=n.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=n.\u0275\u0275defineInjector({imports:[d.ez,e.BQ]}),_})()},84385:(Ee,Q,t)=>{"use strict";t.d(Q,{$L:()=>Wt,LD:()=>Qe,PG:()=>Z,gD:()=>Xe});var n=t(98184),e=t(36895),i=t(94650),d=t(3238),a=t(59549),u=t(4883),h=t(12687),l=t(40445),m=t(21281),x=t(95017),O=t(29521),L=t(24006),w=t(77579),B=t(49770),_=t(56451),y=t(68675),$=t(63900),C=t(95698),T=t(39300),j=t(54004),I=t(71884),F=t(82722),z=t(37340);const X=["trigger"],p=["panel"];function P(Be,at){if(1&Be&&(i.\u0275\u0275elementStart(0,"span",10),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const lt=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(lt.placeholder)}}function E(Be,at){if(1&Be&&(i.\u0275\u0275elementStart(0,"span",14),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const lt=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(lt.triggerValue)}}function R(Be,at){1&Be&&i.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function ne(Be,at){if(1&Be&&(i.\u0275\u0275elementStart(0,"span",11),i.\u0275\u0275template(1,E,2,1,"span",12),i.\u0275\u0275template(2,R,1,0,"ng-content",13),i.\u0275\u0275elementEnd()),2&Be){const lt=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngSwitch",!!lt.customTrigger),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngSwitchCase",!0)}}function G(Be,at){if(1&Be){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275namespaceSVG(),i.\u0275\u0275namespaceHTML(),i.\u0275\u0275elementStart(0,"div",15,16),i.\u0275\u0275listener("@transformPanel.done",function(Yt){i.\u0275\u0275restoreView(lt);const Tt=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(Tt._panelDoneAnimatingStream.next(Yt.toState))})("keydown",function(Yt){i.\u0275\u0275restoreView(lt);const Tt=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(Tt._handleKeydown(Yt))}),i.\u0275\u0275projection(2,1),i.\u0275\u0275elementEnd()}if(2&Be){const lt=i.\u0275\u0275nextContext();i.\u0275\u0275classMapInterpolate1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",lt._getPanelTheme(),""),i.\u0275\u0275property("ngClass",lt.panelClass)("@transformPanel","showing"),i.\u0275\u0275attribute("id",lt.id+"-panel")("aria-multiselectable",lt.multiple)("aria-label",lt.ariaLabel||null)("aria-labelledby",lt._getPanelAriaLabelledby())}}const ce=[[["mat-select-trigger"]],"*"],xe=["mat-select-trigger","*"],we={transformPanelWrap:(0,z.X$)("transformPanelWrap",[(0,z.eR)("* => void",(0,z.IO)("@transformPanel",[(0,z.pV)()],{optional:!0}))]),transformPanel:(0,z.X$)("transformPanel",[(0,z.SB)("void",(0,z.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,z.eR)("void => showing",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,z.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,z.eR)("* => void",(0,z.jt)("100ms linear",(0,z.oB)({opacity:0})))])};let Ce=0;const U=new i.InjectionToken("mat-select-scroll-strategy"),Z=new i.InjectionToken("MAT_SELECT_CONFIG"),oe={provide:U,deps:[n.aV],useFactory:function H(Be){return()=>Be.scrollStrategies.reposition()}},Pe=new i.InjectionToken("MatSelectTrigger");class Ie{constructor(at,lt){this.source=at,this.value=lt}}const pt=(0,d.Kr)((0,d.sb)((0,d.Id)((0,d.FD)(class{constructor(Be,at,lt,Dt,Yt){this._elementRef=Be,this._defaultErrorStateMatcher=at,this._parentForm=lt,this._parentFormGroup=Dt,this.ngControl=Yt,this.stateChanges=new w.x}}))));let Ht=(()=>{class Be extends pt{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(lt){this._placeholder=lt,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.Validators.required)??!1}set required(lt){this._required=(0,m.Ig)(lt),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(lt){this._multiple=(0,m.Ig)(lt)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(lt){this._disableOptionCentering=(0,m.Ig)(lt)}get compareWith(){return this._compareWith}set compareWith(lt){this._compareWith=lt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(lt){this._assignValue(lt)&&this._onChange(lt)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(lt){this._typeaheadDebounceInterval=(0,m.su)(lt)}get id(){return this._id}set id(lt){this._id=lt||this._uid,this.stateChanges.next()}constructor(lt,Dt,Yt,Tt,ot,Gt,wt,Ze,Ut,vn,xn,bn,hn,pn){super(ot,Tt,wt,Ze,vn),this._viewportRuler=lt,this._changeDetectorRef=Dt,this._ngZone=Yt,this._dir=Gt,this._parentFormField=Ut,this._liveAnnouncer=hn,this._defaultOptions=pn,this._panelOpen=!1,this._compareWith=(In,Dn)=>In===Dn,this._uid="mat-select-"+Ce++,this._triggerAriaLabelledBy=null,this._destroy=new w.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Ce++,this._panelDoneAnimatingStream=new w.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,B.P)(()=>{const In=this.options;return In?In.changes.pipe((0,y.O)(In),(0,$.w)(()=>(0,_.T)(...In.map(Dn=>Dn.onSelectionChange)))):this._ngZone.onStable.pipe((0,C.q)(1),(0,$.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.EventEmitter,this._openedStream=this.openedChange.pipe((0,T.h)(In=>In),(0,j.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,T.h)(In=>!In),(0,j.U)(()=>{})),this.selectionChange=new i.EventEmitter,this.valueChange=new i.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),null!=pn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=pn.typeaheadDebounceInterval),this._scrollStrategyFactory=bn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(xn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new x.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,I.x)(),(0,F.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,F.R)(this._destroy)).subscribe(lt=>{lt.added.forEach(Dt=>Dt.select()),lt.removed.forEach(Dt=>Dt.deselect())}),this.options.changes.pipe((0,y.O)(null),(0,F.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const lt=this._getTriggerAriaLabelledby(),Dt=this.ngControl;if(lt!==this._triggerAriaLabelledBy){const Yt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=lt,lt?Yt.setAttribute("aria-labelledby",lt):Yt.removeAttribute("aria-labelledby")}Dt&&(this._previousControl!==Dt.control&&(void 0!==this._previousControl&&null!==Dt.disabled&&Dt.disabled!==this.disabled&&(this.disabled=Dt.disabled),this._previousControl=Dt.control),this.updateErrorState())}ngOnChanges(lt){(lt.disabled||lt.userAriaDescribedBy)&&this.stateChanges.next(),lt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(lt){this._assignValue(lt)}registerOnChange(lt){this._onChange=lt}registerOnTouched(lt){this._onTouched=lt}setDisabledState(lt){this.disabled=lt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const lt=this._selectionModel.selected.map(Dt=>Dt.viewValue);return this._isRtl()&&lt.reverse(),lt.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(lt){this.disabled||(this.panelOpen?this._handleOpenKeydown(lt):this._handleClosedKeydown(lt))}_handleClosedKeydown(lt){const Dt=lt.keyCode,Yt=Dt===O.JH||Dt===O.LH||Dt===O.oh||Dt===O.SV,Tt=Dt===O.K5||Dt===O.L_,ot=this._keyManager;if(!ot.isTyping()&&Tt&&!(0,O.Vb)(lt)||(this.multiple||lt.altKey)&&Yt)lt.preventDefault(),this.open();else if(!this.multiple){const Gt=this.selected;ot.onKeydown(lt);const wt=this.selected;wt&&Gt!==wt&&this._liveAnnouncer.announce(wt.viewValue,1e4)}}_handleOpenKeydown(lt){const Dt=this._keyManager,Yt=lt.keyCode,Tt=Yt===O.JH||Yt===O.LH,ot=Dt.isTyping();if(Tt&&lt.altKey)lt.preventDefault(),this.close();else if(ot||Yt!==O.K5&&Yt!==O.L_||!Dt.activeItem||(0,O.Vb)(lt))if(!ot&&this._multiple&&Yt===O.A&&lt.ctrlKey){lt.preventDefault();const Gt=this.options.some(wt=>!wt.disabled&&!wt.selected);this.options.forEach(wt=>{wt.disabled||(Gt?wt.select():wt.deselect())})}else{const Gt=Dt.activeItemIndex;Dt.onKeydown(lt),this._multiple&&Tt&&lt.shiftKey&&Dt.activeItem&&Dt.activeItemIndex!==Gt&&Dt.activeItem._selectViaInteraction()}else lt.preventDefault(),Dt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,C.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(lt){if(this.options.forEach(Dt=>Dt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&lt)Array.isArray(lt),lt.forEach(Dt=>this._selectOptionByValue(Dt)),this._sortValues();else{const Dt=this._selectOptionByValue(lt);Dt?this._keyManager.updateActiveItem(Dt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(lt){const Dt=this.options.find(Yt=>{if(this._selectionModel.isSelected(Yt))return!1;try{return null!=Yt.value&&this._compareWith(Yt.value,lt)}catch{return!1}});return Dt&&this._selectionModel.select(Dt),Dt}_assignValue(lt){return!!(lt!==this._value||this._multiple&&Array.isArray(lt))&&(this.options&&this._setSelectionByValue(lt),this._value=lt,!0)}_initKeyManager(){this._keyManager=new h.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const lt=(0,_.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,F.R)(lt)).subscribe(Dt=>{this._onSelect(Dt.source,Dt.isUserInput),Dt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,_.T)(...this.options.map(Dt=>Dt._stateChanges)).pipe((0,F.R)(lt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(lt,Dt){const Yt=this._selectionModel.isSelected(lt);null!=lt.value||this._multiple?(Yt!==lt.selected&&(lt.selected?this._selectionModel.select(lt):this._selectionModel.deselect(lt)),Dt&&this._keyManager.setActiveItem(lt),this.multiple&&(this._sortValues(),Dt&&this.focus())):(lt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(lt.value)),Yt!==this._selectionModel.isSelected(lt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const lt=this.options.toArray();this._selectionModel.sort((Dt,Yt)=>this.sortComparator?this.sortComparator(Dt,Yt,lt):lt.indexOf(Dt)-lt.indexOf(Yt)),this.stateChanges.next()}}_propagateChanges(lt){let Dt=null;Dt=this.multiple?this.selected.map(Yt=>Yt.value):this.selected?this.selected.value:lt,this._value=Dt,this.valueChange.emit(Dt),this._onChange(Dt),this.selectionChange.emit(this._getChangeEvent(Dt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(lt){this._elementRef.nativeElement.focus(lt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const lt=this._parentFormField?.getLabelId();return this.ariaLabelledby?(lt?lt+" ":"")+this.ariaLabelledby:lt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const lt=this._parentFormField?.getLabelId();let Dt=(lt?lt+" ":"")+this._valueId;return this.ariaLabelledby&&(Dt+=" "+this.ariaLabelledby),Dt}_panelDoneAnimating(lt){this.openedChange.emit(lt)}setDescribedByIds(lt){lt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",lt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Be.\u0275fac=function(lt){return new(lt||Be)(i.\u0275\u0275directiveInject(u.rL),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(d.rD),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(l.Is,8),i.\u0275\u0275directiveInject(L.NgForm,8),i.\u0275\u0275directiveInject(L.FormGroupDirective,8),i.\u0275\u0275directiveInject(a.G_,8),i.\u0275\u0275directiveInject(L.NgControl,10),i.\u0275\u0275injectAttribute("tabindex"),i.\u0275\u0275directiveInject(U),i.\u0275\u0275directiveInject(h.Kd),i.\u0275\u0275directiveInject(Z,8))},Be.\u0275dir=i.\u0275\u0275defineDirective({type:Be,viewQuery:function(lt,Dt){if(1&lt&&(i.\u0275\u0275viewQuery(X,5),i.\u0275\u0275viewQuery(p,5),i.\u0275\u0275viewQuery(n.pI,5)),2&lt){let Yt;i.\u0275\u0275queryRefresh(Yt=i.\u0275\u0275loadQuery())&&(Dt.trigger=Yt.first),i.\u0275\u0275queryRefresh(Yt=i.\u0275\u0275loadQuery())&&(Dt.panel=Yt.first),i.\u0275\u0275queryRefresh(Yt=i.\u0275\u0275loadQuery())&&(Dt._overlayDir=Yt.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),Be})(),Wt=(()=>{class Be{}return Be.\u0275fac=function(lt){return new(lt||Be)},Be.\u0275dir=i.\u0275\u0275defineDirective({type:Be,selectors:[["mat-select-trigger"]],features:[i.\u0275\u0275ProvidersFeature([{provide:Pe,useExisting:Be}])]}),Be})(),Xe=(()=>{class Be extends Ht{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,F.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(lt){const Dt=this.options.toArray()[lt];if(Dt){const Yt=this.panel.nativeElement,Tt=(0,d.CB)(lt,this.options,this.optionGroups),ot=Dt._getHostElement();Yt.scrollTop=0===lt&&1===Tt?0:(0,d.jH)(ot.offsetTop,ot.offsetHeight,Yt.scrollTop,Yt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(lt){return new Ie(this,lt)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof n.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(lt){this._hideSingleSelectionIndicator=(0,m.Ig)(lt),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const lt of this.options)lt._changeDetectorRef.markForCheck()}}return Be.\u0275fac=function(){let at;return function(Dt){return(at||(at=i.\u0275\u0275getInheritedFactory(Be)))(Dt||Be)}}(),Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["mat-select"]],contentQueries:function(lt,Dt,Yt){if(1&lt&&(i.\u0275\u0275contentQuery(Yt,Pe,5),i.\u0275\u0275contentQuery(Yt,d.ey,5),i.\u0275\u0275contentQuery(Yt,d.K7,5)),2&lt){let Tt;i.\u0275\u0275queryRefresh(Tt=i.\u0275\u0275loadQuery())&&(Dt.customTrigger=Tt.first),i.\u0275\u0275queryRefresh(Tt=i.\u0275\u0275loadQuery())&&(Dt.options=Tt),i.\u0275\u0275queryRefresh(Tt=i.\u0275\u0275loadQuery())&&(Dt.optionGroups=Tt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(lt,Dt){1&lt&&i.\u0275\u0275listener("keydown",function(Tt){return Dt._handleKeydown(Tt)})("focus",function(){return Dt._onFocus()})("blur",function(){return Dt._onBlur()}),2&lt&&(i.\u0275\u0275attribute("id",Dt.id)("tabindex",Dt.tabIndex)("aria-controls",Dt.panelOpen?Dt.id+"-panel":null)("aria-expanded",Dt.panelOpen)("aria-label",Dt.ariaLabel||null)("aria-required",Dt.required.toString())("aria-disabled",Dt.disabled.toString())("aria-invalid",Dt.errorState)("aria-activedescendant",Dt._getAriaActiveDescendant()),i.\u0275\u0275classProp("mat-mdc-select-disabled",Dt.disabled)("mat-mdc-select-invalid",Dt.errorState)("mat-mdc-select-required",Dt.required)("mat-mdc-select-empty",Dt.empty)("mat-mdc-select-multiple",Dt.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[i.\u0275\u0275ProvidersFeature([{provide:a.Eo,useExisting:Be},{provide:d.HF,useExisting:Be}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:xe,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(lt,Dt){if(1&lt&&(i.\u0275\u0275projectionDef(ce),i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275listener("click",function(){return Dt.toggle()}),i.\u0275\u0275elementStart(3,"div",2),i.\u0275\u0275template(4,P,2,1,"span",3),i.\u0275\u0275template(5,ne,3,2,"span",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",5)(7,"div",6),i.\u0275\u0275namespaceSVG(),i.\u0275\u0275elementStart(8,"svg",7),i.\u0275\u0275element(9,"path",8),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275template(10,G,3,9,"ng-template",9),i.\u0275\u0275listener("backdropClick",function(){return Dt.close()})("attach",function(){return Dt._onAttached()})("detach",function(){return Dt.close()})),2&lt){const Yt=i.\u0275\u0275reference(1);i.\u0275\u0275attribute("aria-owns",Dt.panelOpen?Dt.id+"-panel":null),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngSwitch",Dt.empty),i.\u0275\u0275attribute("id",Dt._valueId),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase",!0),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngSwitchCase",!1),i.\u0275\u0275advance(5),i.\u0275\u0275property("cdkConnectedOverlayPanelClass",Dt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Dt._scrollStrategy)("cdkConnectedOverlayOrigin",Dt._preferredOverlayOrigin||Yt)("cdkConnectedOverlayOpen",Dt.panelOpen)("cdkConnectedOverlayPositions",Dt._positions)("cdkConnectedOverlayWidth",Dt._overlayWidth)}},dependencies:[e.mk,e.RF,e.n9,e.ED,n.pI,n.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[we.transformPanel]},changeDetection:0}),Be})(),Qe=(()=>{class Be{}return Be.\u0275fac=function(lt){return new(lt||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({providers:[oe],imports:[e.ez,n.U8,d.Ng,d.BQ,u.ZD,a.lN,d.Ng,d.BQ]}),Be})()},10266:(Ee,Q,t)=>{"use strict";t.d(Q,{AV:()=>Ce,gM:()=>we});var n=t(82722),e=t(95698),i=t(21281),d=t(29521),a=t(94650),u=t(36895),h=t(83353),l=t(12687),m=t(40445),x=t(98184),O=t(4883),L=t(84080),w=t(77579),_=(t(37340),t(3238));const y=["tooltip"],T=new a.InjectionToken("mat-tooltip-scroll-strategy"),I={provide:T,deps:[x.aV],useFactory:function j(U){return()=>U.scrollStrategies.reposition({scrollThrottle:20})}},z=new a.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function F(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),p="tooltip-panel",P=(0,h.i$)({passive:!0});let xe=(()=>{class U{get position(){return this._position}set position(Z){Z!==this._position&&(this._position=Z,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Z){this._positionAtOrigin=(0,i.Ig)(Z),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Z){this._disabled=(0,i.Ig)(Z),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Z){this._showDelay=(0,i.su)(Z)}get hideDelay(){return this._hideDelay}set hideDelay(Z){this._hideDelay=(0,i.su)(Z),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Z){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Z?String(Z).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Z){this._tooltipClass=Z,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(Z,oe,Pe,Ie,pt,Ht,Wt,Xe,Qe,Be,at,lt){this._overlay=Z,this._elementRef=oe,this._scrollDispatcher=Pe,this._viewContainerRef=Ie,this._ngZone=pt,this._platform=Ht,this._ariaDescriber=Wt,this._focusMonitor=Xe,this._dir=Be,this._defaultOptions=at,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new w.x,this._scrollStrategy=Qe,this._document=lt,at&&(at.position&&(this.position=at.position),at.positionAtOrigin&&(this.positionAtOrigin=at.positionAtOrigin),at.touchGestures&&(this.touchGestures=at.touchGestures)),Be.change.pipe((0,n.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,n.R)(this._destroyed)).subscribe(Z=>{Z?"keyboard"===Z&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Z=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([oe,Pe])=>{Z.removeEventListener(oe,Pe,P)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Z,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Z)}show(Z=this.showDelay,oe){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Pe=this._createOverlay(oe);this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const Ie=this._tooltipInstance=Pe.attach(this._portal).instance;Ie._triggerElement=this._elementRef.nativeElement,Ie._mouseLeaveHideDelay=this._hideDelay,Ie.afterHidden().pipe((0,n.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ie.show(Z)}hide(Z=this.hideDelay){const oe=this._tooltipInstance;oe&&(oe.isVisible()?oe.hide(Z):(oe._cancelPendingAnimations(),this._detach()))}toggle(Z){this._isTooltipVisible()?this.hide():this.show(void 0,Z)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Z){if(this._overlayRef){const Ie=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Z)&&Ie._origin instanceof a.ElementRef)return this._overlayRef;this._detach()}const oe=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Pe=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Z||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(oe);return Pe.positionChanges.pipe((0,n.R)(this._destroyed)).subscribe(Ie=>{this._updateCurrentPositionClass(Ie.connectionPair),this._tooltipInstance&&Ie.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Pe,panelClass:`${this._cssClassPrefix}-${p}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,n.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,n.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,n.R)(this._destroyed)).subscribe(Ie=>{this._isTooltipVisible()&&Ie.keyCode===d.hY&&!(0,d.Vb)(Ie)&&(Ie.preventDefault(),Ie.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Z){const oe=Z.getConfig().positionStrategy,Pe=this._getOrigin(),Ie=this._getOverlayPosition();oe.withPositions([this._addOffset({...Pe.main,...Ie.main}),this._addOffset({...Pe.fallback,...Ie.fallback})])}_addOffset(Z){return Z}_getOrigin(){const Z=!this._dir||"ltr"==this._dir.value,oe=this.position;let Pe;"above"==oe||"below"==oe?Pe={originX:"center",originY:"above"==oe?"top":"bottom"}:"before"==oe||"left"==oe&&Z||"right"==oe&&!Z?Pe={originX:"start",originY:"center"}:("after"==oe||"right"==oe&&Z||"left"==oe&&!Z)&&(Pe={originX:"end",originY:"center"});const{x:Ie,y:pt}=this._invertPosition(Pe.originX,Pe.originY);return{main:Pe,fallback:{originX:Ie,originY:pt}}}_getOverlayPosition(){const Z=!this._dir||"ltr"==this._dir.value,oe=this.position;let Pe;"above"==oe?Pe={overlayX:"center",overlayY:"bottom"}:"below"==oe?Pe={overlayX:"center",overlayY:"top"}:"before"==oe||"left"==oe&&Z||"right"==oe&&!Z?Pe={overlayX:"end",overlayY:"center"}:("after"==oe||"right"==oe&&Z||"left"==oe&&!Z)&&(Pe={overlayX:"start",overlayY:"center"});const{x:Ie,y:pt}=this._invertPosition(Pe.overlayX,Pe.overlayY);return{main:Pe,fallback:{overlayX:Ie,overlayY:pt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,e.q)(1),(0,n.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Z){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Z,this._tooltipInstance._markForCheck())}_invertPosition(Z,oe){return"above"===this.position||"below"===this.position?"top"===oe?oe="bottom":"bottom"===oe&&(oe="top"):"end"===Z?Z="start":"start"===Z&&(Z="end"),{x:Z,y:oe}}_updateCurrentPositionClass(Z){const{overlayY:oe,originX:Pe,originY:Ie}=Z;let pt;if(pt="center"===oe?this._dir&&"rtl"===this._dir.value?"end"===Pe?"left":"right":"start"===Pe?"left":"right":"bottom"===oe&&"top"===Ie?"above":"below",pt!==this._currentPosition){const Ht=this._overlayRef;if(Ht){const Wt=`${this._cssClassPrefix}-${p}-`;Ht.removePanelClass(Wt+this._currentPosition),Ht.addPanelClass(Wt+pt)}this._currentPosition=pt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Z=>{let oe;this._setupPointerExitEventsIfNeeded(),void 0!==Z.x&&void 0!==Z.y&&(oe=Z),this.show(void 0,oe)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Z=>{const oe=Z.targetTouches?.[0],Pe=oe?{x:oe.clientX,y:oe.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Pe),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Z=[];if(this._platformSupportsMouseEvents())Z.push(["mouseleave",oe=>{const Pe=oe.relatedTarget;(!Pe||!this._overlayRef?.overlayElement.contains(Pe))&&this.hide()}],["wheel",oe=>this._wheelListener(oe)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const oe=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Z.push(["touchend",oe],["touchcancel",oe])}this._addListeners(Z),this._passiveListeners.push(...Z)}_addListeners(Z){Z.forEach(([oe,Pe])=>{this._elementRef.nativeElement.addEventListener(oe,Pe,P)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Z){if(this._isTooltipVisible()){const oe=this._document.elementFromPoint(Z.clientX,Z.clientY),Pe=this._elementRef.nativeElement;oe!==Pe&&!Pe.contains(oe)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Z=this.touchGestures;if("off"!==Z){const oe=this._elementRef.nativeElement,Pe=oe.style;("on"===Z||"INPUT"!==oe.nodeName&&"TEXTAREA"!==oe.nodeName)&&(Pe.userSelect=Pe.msUserSelect=Pe.webkitUserSelect=Pe.MozUserSelect="none"),("on"===Z||!oe.draggable)&&(Pe.webkitUserDrag="none"),Pe.touchAction="none",Pe.webkitTapHighlightColor="transparent"}}}return U.\u0275fac=function(Z){a.\u0275\u0275invalidFactory()},U.\u0275dir=a.\u0275\u0275defineDirective({type:U,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),U})(),we=(()=>{class U extends xe{constructor(Z,oe,Pe,Ie,pt,Ht,Wt,Xe,Qe,Be,at,lt){super(Z,oe,Pe,Ie,pt,Ht,Wt,Xe,Qe,Be,at,lt),this._tooltipComponent=ct,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(Z){const Pe=!this._dir||"ltr"==this._dir.value;return"top"===Z.originY?Z.offsetY=-8:"bottom"===Z.originY?Z.offsetY=8:"start"===Z.originX?Z.offsetX=Pe?-8:8:"end"===Z.originX&&(Z.offsetX=Pe?8:-8),Z}}return U.\u0275fac=function(Z){return new(Z||U)(a.\u0275\u0275directiveInject(x.aV),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(O.mF),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(h.t4),a.\u0275\u0275directiveInject(l.$s),a.\u0275\u0275directiveInject(l.tE),a.\u0275\u0275directiveInject(T),a.\u0275\u0275directiveInject(m.Is,8),a.\u0275\u0275directiveInject(z,8),a.\u0275\u0275directiveInject(u.K0))},U.\u0275dir=a.\u0275\u0275defineDirective({type:U,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[a.\u0275\u0275InheritDefinitionFeature]}),U})(),Ge=(()=>{class U{constructor(Z,oe){this._changeDetectorRef=Z,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new w.x,this._animationsDisabled="NoopAnimations"===oe}show(Z){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Z)}hide(Z){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Z)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Z}){(!Z||!this._triggerElement.contains(Z))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Z}){(Z===this._showAnimation||Z===this._hideAnimation)&&this._finalizeAnimation(Z===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Z){Z?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Z){const oe=this._tooltip.nativeElement,Pe=this._showAnimation,Ie=this._hideAnimation;if(oe.classList.remove(Z?Ie:Pe),oe.classList.add(Z?Pe:Ie),this._isVisible=Z,Z&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const pt=getComputedStyle(oe);("0s"===pt.getPropertyValue("animation-duration")||"none"===pt.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Z&&this._onShow(),this._animationsDisabled&&(oe.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Z))}}return U.\u0275fac=function(Z){return new(Z||U)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},U.\u0275dir=a.\u0275\u0275defineDirective({type:U}),U})(),ct=(()=>{class U extends Ge{constructor(Z,oe,Pe){super(Z,Pe),this._elementRef=oe,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Z=this._elementRef.nativeElement.getBoundingClientRect();return Z.height>24&&Z.width>=200}}return U.\u0275fac=function(Z){return new(Z||U)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},U.\u0275cmp=a.\u0275\u0275defineComponent({type:U,selectors:[["mat-tooltip-component"]],viewQuery:function(Z,oe){if(1&Z&&a.\u0275\u0275viewQuery(y,7),2&Z){let Pe;a.\u0275\u0275queryRefresh(Pe=a.\u0275\u0275loadQuery())&&(oe._tooltip=Pe.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Z,oe){1&Z&&a.\u0275\u0275listener("mouseleave",function(Ie){return oe._handleMouseLeave(Ie)}),2&Z&&a.\u0275\u0275styleProp("zoom",oe.isVisible()?1:null)},features:[a.\u0275\u0275InheritDefinitionFeature],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(Z,oe){1&Z&&(a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("animationend",function(Ie){return oe._handleAnimationEnd(Ie)}),a.\u0275\u0275elementStart(2,"div",2),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd()()),2&Z&&(a.\u0275\u0275classProp("mdc-tooltip--multiline",oe._isMultiline),a.\u0275\u0275property("ngClass",oe.tooltipClass),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(oe.message))},dependencies:[u.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),U})(),Ce=(()=>{class U{}return U.\u0275fac=function(Z){return new(Z||U)},U.\u0275mod=a.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=a.\u0275\u0275defineInjector({providers:[I],imports:[l.rt,u.ez,x.U8,_.BQ,_.BQ,O.ZD]}),U})()},11481:(Ee,Q,t)=>{"use strict";t.r(Q),t.d(Q,{BrowserModule:()=>wt,BrowserTransferStateModule:()=>Sn,By:()=>ke,DomSanitizer:()=>rt,EVENT_MANAGER_PLUGINS:()=>B,EventManager:()=>_,HAMMER_GESTURE_CONFIG:()=>J,HAMMER_LOADER:()=>Oe,HammerGestureConfig:()=>je,HammerModule:()=>dt,Meta:()=>Ut,REMOVE_STYLES_ON_COMPONENT_DESTROY:()=>P,Title:()=>bn,TransferState:()=>Wn,VERSION:()=>zt,bootstrapApplication:()=>Ht,createApplication:()=>Wt,disableDebugTools:()=>cn,enableDebugTools:()=>Yn,makeStateKey:()=>En,platformBrowser:()=>Yt,provideProtractorTestingSupport:()=>Qe,\u0275BrowserDomAdapter:()=>d,\u0275BrowserGetTestability:()=>L,\u0275DomEventsPlugin:()=>H,\u0275DomRendererFactory2:()=>ce,\u0275DomSanitizerImpl:()=>ze,\u0275DomSharedStylesHost:()=>C,\u0275HammerGesturesPlugin:()=>Et,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>Dt,\u0275KeyEventsPlugin:()=>Ie,\u0275NAMESPACE_URIS:()=>T,\u0275SharedStylesHost:()=>$,\u0275TRANSITION_ID:()=>m,\u0275escapeHtml:()=>Nn,\u0275flattenStyles:()=>ne,\u0275getDOM:()=>n.q,\u0275initDomAdapter:()=>Be,\u0275shimContentAttribute:()=>E,\u0275shimHostAttribute:()=>R});var n=t(36895),e=t(94650);class i extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class d extends i{static makeCurrent(){(0,n.HT)(new d)}onAndCancel(Rt,gt,sn){return Rt.addEventListener(gt,sn,!1),()=>{Rt.removeEventListener(gt,sn,!1)}}dispatchEvent(Rt,gt){Rt.dispatchEvent(gt)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,gt){return(gt=gt||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,gt){return"window"===gt?window:"document"===gt?Rt:"body"===gt?Rt.body:null}getBaseHref(Rt){const gt=function u(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==gt?null:function l(vt){h=h||document.createElement("a"),h.setAttribute("href",vt);const Rt=h.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(gt)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,n.Mx)(document.cookie,Rt)}}let h,a=null;const m=new e.InjectionToken("TRANSITION_ID"),O=[{provide:e.APP_INITIALIZER,useFactory:function x(vt,Rt,gt){return()=>{gt.get(e.ApplicationInitStatus).donePromise.then(()=>{const sn=(0,n.q)(),wn=Rt.querySelectorAll(`style[ng-transition="${vt}"]`);for(let Qn=0;Qn<wn.length;Qn++)sn.remove(wn[Qn])})}},deps:[m,n.K0,e.Injector],multi:!0}];class L{addToWindow(Rt){e.\u0275global.getAngularTestability=(sn,wn=!0)=>{const Qn=Rt.findTestabilityInTree(sn,wn);if(null==Qn)throw new Error("Could not find testability for element.");return Qn},e.\u0275global.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),e.\u0275global.getAllAngularRootElements=()=>Rt.getAllRootElements(),e.\u0275global.frameworkStabilizers||(e.\u0275global.frameworkStabilizers=[]),e.\u0275global.frameworkStabilizers.push(sn=>{const wn=e.\u0275global.getAllAngularTestabilities();let Qn=wn.length,pi=!1;const Ei=function(ki){pi=pi||ki,Qn--,0==Qn&&sn(pi)};wn.forEach(function(ki){ki.whenStable(Ei)})})}findTestabilityInTree(Rt,gt,sn){return null==gt?null:Rt.getTestability(gt)??(sn?(0,n.q)().isShadowRoot(gt)?this.findTestabilityInTree(Rt,gt.host,!0):this.findTestabilityInTree(Rt,gt.parentElement,!0):null)}}let w=(()=>{class vt{build(){return new XMLHttpRequest}}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})();const B=new e.InjectionToken("EventManagerPlugins");let _=(()=>{class vt{constructor(gt,sn){this._zone=sn,this._eventNameToPlugin=new Map,gt.forEach(wn=>{wn.manager=this}),this._plugins=gt.slice().reverse()}addEventListener(gt,sn,wn){return this._findPluginFor(sn).addEventListener(gt,sn,wn)}addGlobalEventListener(gt,sn,wn){return this._findPluginFor(sn).addGlobalEventListener(gt,sn,wn)}getZone(){return this._zone}_findPluginFor(gt){const sn=this._eventNameToPlugin.get(gt);if(sn)return sn;const wn=this._plugins;for(let Qn=0;Qn<wn.length;Qn++){const pi=wn[Qn];if(pi.supports(gt))return this._eventNameToPlugin.set(gt,pi),pi}throw new Error(`No event manager plugin found for event ${gt}`)}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(B),e.\u0275\u0275inject(e.NgZone))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})();class y{constructor(Rt){this._doc=Rt}addGlobalEventListener(Rt,gt,sn){const wn=(0,n.q)().getGlobalEventTarget(this._doc,Rt);if(!wn)throw new Error(`Unsupported event target ${wn} for event ${gt}`);return this.addEventListener(wn,gt,sn)}}let $=(()=>{class vt{constructor(){this.usageCount=new Map}addStyles(gt){for(const sn of gt)1===this.changeUsageCount(sn,1)&&this.onStyleAdded(sn)}removeStyles(gt){for(const sn of gt)0===this.changeUsageCount(sn,-1)&&this.onStyleRemoved(sn)}onStyleRemoved(gt){}onStyleAdded(gt){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(gt,sn){const wn=this.usageCount;let Qn=wn.get(gt)??0;return Qn+=sn,Qn>0?wn.set(gt,Qn):wn.delete(gt),Qn}ngOnDestroy(){for(const gt of this.getAllStyles())this.onStyleRemoved(gt);this.usageCount.clear()}}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})(),C=(()=>{class vt extends ${constructor(gt){super(),this.doc=gt,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(gt){for(const sn of this.hostNodes)this.addStyleToHost(sn,gt)}onStyleRemoved(gt){const sn=this.styleRef;sn.get(gt)?.forEach(Qn=>Qn.remove()),sn.delete(gt)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(gt){this.hostNodes.add(gt);for(const sn of this.getAllStyles())this.addStyleToHost(gt,sn)}removeHost(gt){this.hostNodes.delete(gt)}addStyleToHost(gt,sn){const wn=this.doc.createElement("style");wn.textContent=sn,gt.appendChild(wn);const Qn=this.styleRef.get(sn);Qn?Qn.push(wn):this.styleRef.set(sn,[wn])}resetHostNodes(){const gt=this.hostNodes;gt.clear(),gt.add(this.doc.head)}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(n.K0))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})();const T={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},j=/%COMP%/g,F="%COMP%",z=`_nghost-${F}`,X=`_ngcontent-${F}`,P=new e.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function E(vt){return X.replace(j,vt)}function R(vt){return z.replace(j,vt)}function ne(vt,Rt){return Rt.flat(100).map(gt=>gt.replace(j,vt))}function G(vt){return Rt=>{if("__ngUnwrap__"===Rt)return vt;!1===vt(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let ce=(()=>{class vt{constructor(gt,sn,wn,Qn){this.eventManager=gt,this.sharedStylesHost=sn,this.appId=wn,this.removeStylesOnCompDestory=Qn,this.rendererByCompId=new Map,this.defaultRenderer=new xe(gt)}createRenderer(gt,sn){if(!gt||!sn)return this.defaultRenderer;const wn=this.getOrCreateRenderer(gt,sn);return wn instanceof U?wn.applyToHost(gt):wn instanceof Ce&&wn.applyStyles(),wn}getOrCreateRenderer(gt,sn){const wn=this.rendererByCompId;let Qn=wn.get(sn.id);if(!Qn){const pi=this.eventManager,Ei=this.sharedStylesHost,ki=this.removeStylesOnCompDestory;switch(sn.encapsulation){case e.ViewEncapsulation.Emulated:Qn=new U(pi,Ei,sn,this.appId,ki);break;case e.ViewEncapsulation.ShadowDom:return new pe(pi,Ei,gt,sn);default:Qn=new Ce(pi,Ei,sn,ki)}Qn.onDestroy=()=>wn.delete(sn.id),wn.set(sn.id,Qn)}return Qn}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(_),e.\u0275\u0275inject(C),e.\u0275\u0275inject(e.APP_ID),e.\u0275\u0275inject(P))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})();class xe{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,gt){return gt?document.createElementNS(T[gt]||gt,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,gt){(ct(Rt)?Rt.content:Rt).appendChild(gt)}insertBefore(Rt,gt,sn){Rt&&(ct(Rt)?Rt.content:Rt).insertBefore(gt,sn)}removeChild(Rt,gt){Rt&&Rt.removeChild(gt)}selectRootElement(Rt,gt){let sn="string"==typeof Rt?document.querySelector(Rt):Rt;if(!sn)throw new Error(`The selector "${Rt}" did not match any elements`);return gt||(sn.textContent=""),sn}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,gt,sn,wn){if(wn){gt=wn+":"+gt;const Qn=T[wn];Qn?Rt.setAttributeNS(Qn,gt,sn):Rt.setAttribute(gt,sn)}else Rt.setAttribute(gt,sn)}removeAttribute(Rt,gt,sn){if(sn){const wn=T[sn];wn?Rt.removeAttributeNS(wn,gt):Rt.removeAttribute(`${sn}:${gt}`)}else Rt.removeAttribute(gt)}addClass(Rt,gt){Rt.classList.add(gt)}removeClass(Rt,gt){Rt.classList.remove(gt)}setStyle(Rt,gt,sn,wn){wn&(e.RendererStyleFlags2.DashCase|e.RendererStyleFlags2.Important)?Rt.style.setProperty(gt,sn,wn&e.RendererStyleFlags2.Important?"important":""):Rt.style[gt]=sn}removeStyle(Rt,gt,sn){sn&e.RendererStyleFlags2.DashCase?Rt.style.removeProperty(gt):Rt.style[gt]=""}setProperty(Rt,gt,sn){Rt[gt]=sn}setValue(Rt,gt){Rt.nodeValue=gt}listen(Rt,gt,sn){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,gt,G(sn)):this.eventManager.addEventListener(Rt,gt,G(sn))}}function ct(vt){return"TEMPLATE"===vt.tagName&&void 0!==vt.content}class pe extends xe{constructor(Rt,gt,sn,wn){super(Rt),this.sharedStylesHost=gt,this.hostEl=sn,this.shadowRoot=sn.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Qn=ne(wn.id,wn.styles);for(const pi of Qn){const Ei=document.createElement("style");Ei.textContent=pi,this.shadowRoot.appendChild(Ei)}}nodeOrShadowRoot(Rt){return Rt===this.hostEl?this.shadowRoot:Rt}appendChild(Rt,gt){return super.appendChild(this.nodeOrShadowRoot(Rt),gt)}insertBefore(Rt,gt,sn){return super.insertBefore(this.nodeOrShadowRoot(Rt),gt,sn)}removeChild(Rt,gt){return super.removeChild(this.nodeOrShadowRoot(Rt),gt)}parentNode(Rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ce extends xe{constructor(Rt,gt,sn,wn,Qn=sn.id){super(Rt),this.sharedStylesHost=gt,this.removeStylesOnCompDestory=wn,this.rendererUsageCount=0,this.styles=ne(Qn,sn.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class U extends Ce{constructor(Rt,gt,sn,wn,Qn){const pi=wn+"-"+sn.id;super(Rt,gt,sn,Qn,pi),this.contentAttr=E(pi),this.hostAttr=R(pi)}applyToHost(Rt){this.applyStyles(),this.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,gt){const sn=super.createElement(Rt,gt);return super.setAttribute(sn,this.contentAttr,""),sn}}let H=(()=>{class vt extends y{constructor(gt){super(gt)}supports(gt){return!0}addEventListener(gt,sn,wn){return gt.addEventListener(sn,wn,!1),()=>this.removeEventListener(gt,sn,wn)}removeEventListener(gt,sn,wn){return gt.removeEventListener(sn,wn)}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(n.K0))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})();const Z=["alt","control","meta","shift"],oe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Pe={alt:vt=>vt.altKey,control:vt=>vt.ctrlKey,meta:vt=>vt.metaKey,shift:vt=>vt.shiftKey};let Ie=(()=>{class vt extends y{constructor(gt){super(gt)}supports(gt){return null!=vt.parseEventName(gt)}addEventListener(gt,sn,wn){const Qn=vt.parseEventName(sn),pi=vt.eventCallback(Qn.fullKey,wn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(gt,Qn.domEventName,pi))}static parseEventName(gt){const sn=gt.toLowerCase().split("."),wn=sn.shift();if(0===sn.length||"keydown"!==wn&&"keyup"!==wn)return null;const Qn=vt._normalizeKey(sn.pop());let pi="",Ei=sn.indexOf("code");if(Ei>-1&&(sn.splice(Ei,1),pi="code."),Z.forEach(Co=>{const xo=sn.indexOf(Co);xo>-1&&(sn.splice(xo,1),pi+=Co+".")}),pi+=Qn,0!=sn.length||0===Qn.length)return null;const ki={};return ki.domEventName=wn,ki.fullKey=pi,ki}static matchEventFullKeyCode(gt,sn){let wn=oe[gt.key]||gt.key,Qn="";return sn.indexOf("code.")>-1&&(wn=gt.code,Qn="code."),!(null==wn||!wn)&&(wn=wn.toLowerCase()," "===wn?wn="space":"."===wn&&(wn="dot"),Z.forEach(pi=>{pi!==wn&&(0,Pe[pi])(gt)&&(Qn+=pi+".")}),Qn+=wn,Qn===sn)}static eventCallback(gt,sn,wn){return Qn=>{vt.matchEventFullKeyCode(Qn,gt)&&wn.runGuarded(()=>sn(Qn))}}static _normalizeKey(gt){return"esc"===gt?"escape":gt}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(n.K0))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})();function Ht(vt,Rt){return(0,e.\u0275internalCreateApplication)({rootComponent:vt,...Xe(Rt)})}function Wt(vt){return(0,e.\u0275internalCreateApplication)(Xe(vt))}function Xe(vt){return{appProviders:[...Gt,...vt?.providers??[]],platformProviders:Dt}}function Qe(){return[...ot]}function Be(){d.makeCurrent()}const Dt=[{provide:e.PLATFORM_ID,useValue:n.bD},{provide:e.PLATFORM_INITIALIZER,useValue:Be,multi:!0},{provide:n.K0,useFactory:function lt(){return(0,e.\u0275setDocument)(document),document},deps:[]}],Yt=(0,e.createPlatformFactory)(e.platformCore,"browser",Dt),Tt=new e.InjectionToken(""),ot=[{provide:e.\u0275TESTABILITY_GETTER,useClass:L,deps:[]},{provide:e.\u0275TESTABILITY,useClass:e.Testability,deps:[e.NgZone,e.TestabilityRegistry,e.\u0275TESTABILITY_GETTER]},{provide:e.Testability,useClass:e.Testability,deps:[e.NgZone,e.TestabilityRegistry,e.\u0275TESTABILITY_GETTER]}],Gt=[{provide:e.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:e.ErrorHandler,useFactory:function at(){return new e.ErrorHandler},deps:[]},{provide:B,useClass:H,multi:!0,deps:[n.K0,e.NgZone,e.PLATFORM_ID]},{provide:B,useClass:Ie,multi:!0,deps:[n.K0]},{provide:ce,useClass:ce,deps:[_,C,e.APP_ID,P]},{provide:e.RendererFactory2,useExisting:ce},{provide:$,useExisting:C},{provide:C,useClass:C,deps:[n.K0]},{provide:_,useClass:_,deps:[B,e.NgZone]},{provide:n.JF,useClass:w,deps:[]},[]];let wt=(()=>{class vt{constructor(gt){}static withServerTransition(gt){return{ngModule:vt,providers:[{provide:e.APP_ID,useValue:gt.appId},{provide:m,useExisting:e.APP_ID},O]}}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(Tt,12))},vt.\u0275mod=e.\u0275\u0275defineNgModule({type:vt}),vt.\u0275inj=e.\u0275\u0275defineInjector({providers:[...Gt,...ot],imports:[n.ez,e.ApplicationModule]}),vt})(),Ut=(()=>{class vt{constructor(gt){this._doc=gt,this._dom=(0,n.q)()}addTag(gt,sn=!1){return gt?this._getOrCreateElement(gt,sn):null}addTags(gt,sn=!1){return gt?gt.reduce((wn,Qn)=>(Qn&&wn.push(this._getOrCreateElement(Qn,sn)),wn),[]):[]}getTag(gt){return gt&&this._doc.querySelector(`meta[${gt}]`)||null}getTags(gt){if(!gt)return[];const sn=this._doc.querySelectorAll(`meta[${gt}]`);return sn?[].slice.call(sn):[]}updateTag(gt,sn){if(!gt)return null;sn=sn||this._parseSelector(gt);const wn=this.getTag(sn);return wn?this._setMetaElementAttributes(gt,wn):this._getOrCreateElement(gt,!0)}removeTag(gt){this.removeTagElement(this.getTag(gt))}removeTagElement(gt){gt&&this._dom.remove(gt)}_getOrCreateElement(gt,sn=!1){if(!sn){const pi=this._parseSelector(gt),Ei=this.getTags(pi).filter(ki=>this._containsAttributes(gt,ki))[0];if(void 0!==Ei)return Ei}const wn=this._dom.createElement("meta");return this._setMetaElementAttributes(gt,wn),this._doc.getElementsByTagName("head")[0].appendChild(wn),wn}_setMetaElementAttributes(gt,sn){return Object.keys(gt).forEach(wn=>sn.setAttribute(this._getMetaKeyMap(wn),gt[wn])),sn}_parseSelector(gt){const sn=gt.name?"name":"property";return`${sn}="${gt[sn]}"`}_containsAttributes(gt,sn){return Object.keys(gt).every(wn=>sn.getAttribute(this._getMetaKeyMap(wn))===gt[wn])}_getMetaKeyMap(gt){return vn[gt]||gt}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(n.K0))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:function(gt){let sn=null;return sn=gt?new gt:function Ze(){return new Ut((0,e.\u0275\u0275inject)(n.K0))}(),sn},providedIn:"root"}),vt})();const vn={httpEquiv:"http-equiv"};let bn=(()=>{class vt{constructor(gt){this._doc=gt}getTitle(){return this._doc.title}setTitle(gt){this._doc.title=gt||""}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(n.K0))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:function(gt){let sn=null;return sn=gt?new gt:function xn(){return new bn((0,e.\u0275\u0275inject)(n.K0))}(),sn},providedIn:"root"}),vt})();function hn(vt,Rt){(typeof COMPILED>"u"||!COMPILED)&&((e.\u0275global.ng=e.\u0275global.ng||{})[vt]=Rt)}const pn=typeof window<"u"&&window||{};class In{constructor(Rt,gt){this.msPerTick=Rt,this.numTicks=gt}}class Dn{constructor(Rt){this.appRef=Rt.injector.get(e.ApplicationRef)}timeChangeDetection(Rt){const gt=Rt&&Rt.record,sn="Change Detection",wn=null!=pn.console.profile;gt&&wn&&pn.console.profile(sn);const Qn=Tn();let pi=0;for(;pi<5||Tn()-Qn<500;)this.appRef.tick(),pi++;const Ei=Tn();gt&&wn&&pn.console.profileEnd(sn);const ki=(Ei-Qn)/pi;return pn.console.log(`ran ${pi} change detection cycles`),pn.console.log(`${ki.toFixed(2)} ms per check`),new In(ki,pi)}}function Tn(){return pn.performance&&pn.performance.now?pn.performance.now():(new Date).getTime()}const mn="profiler";function Yn(vt){return hn(mn,new Dn(vt)),vt}function cn(){hn(mn,null)}function Nn(vt){const Rt={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return vt.replace(/[&"'<>]/g,gt=>Rt[gt])}function En(vt){return vt}let Wn=(()=>{class vt{constructor(){this.store={},this.onSerializeCallbacks={},this.store=function rn(vt,Rt){const gt=vt.getElementById(Rt+"-state");let sn={};if(gt&&gt.textContent)try{sn=JSON.parse(function Bt(vt){const Rt={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return vt.replace(/&[^;]+;/g,gt=>Rt[gt])}(gt.textContent))}catch(wn){console.warn("Exception while restoring TransferState for app "+Rt,wn)}return sn}((0,e.inject)(n.K0),(0,e.inject)(e.APP_ID))}get(gt,sn){return void 0!==this.store[gt]?this.store[gt]:sn}set(gt,sn){this.store[gt]=sn}remove(gt){delete this.store[gt]}hasKey(gt){return this.store.hasOwnProperty(gt)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(gt,sn){this.onSerializeCallbacks[gt]=sn}toJson(){for(const gt in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(gt))try{this.store[gt]=this.onSerializeCallbacks[gt]()}catch(sn){console.warn("Exception in onSerialize callback: ",sn)}return JSON.stringify(this.store)}}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})(),Sn=(()=>{class vt{}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275mod=e.\u0275\u0275defineNgModule({type:vt}),vt.\u0275inj=e.\u0275\u0275defineInjector({}),vt})();class ke{static all(){return()=>!0}static css(Rt){return gt=>null!=gt.nativeElement&&function ge(vt,Rt){return!!(0,n.q)().isElementNode(vt)&&(vt.matches&&vt.matches(Rt)||vt.msMatchesSelector&&vt.msMatchesSelector(Rt)||vt.webkitMatchesSelector&&vt.webkitMatchesSelector(Rt))}(gt.nativeElement,Rt)}static directive(Rt){return gt=>-1!==gt.providerTokens.indexOf(Rt)}}const q={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},J=new e.InjectionToken("HammerGestureConfig"),Oe=new e.InjectionToken("HammerLoader");let je=(()=>{class vt{constructor(){this.events=[],this.overrides={}}buildHammer(gt){const sn=new Hammer(gt,this.options);sn.get("pinch").set({enable:!0}),sn.get("rotate").set({enable:!0});for(const wn in this.overrides)sn.get(wn).set(this.overrides[wn]);return sn}}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})(),Et=(()=>{class vt extends y{constructor(gt,sn,wn,Qn){super(gt),this._config=sn,this.console=wn,this.loader=Qn,this._loaderPromise=null}supports(gt){return!(!q.hasOwnProperty(gt.toLowerCase())&&!this.isCustomEvent(gt)||!window.Hammer&&!this.loader)}addEventListener(gt,sn,wn){const Qn=this.manager.getZone();if(sn=sn.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||Qn.runOutsideAngular(()=>this.loader());let pi=!1,Ei=()=>{pi=!0};return Qn.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?pi||(Ei=this.addEventListener(gt,sn,wn)):Ei=()=>{}}).catch(()=>{Ei=()=>{}})),()=>{Ei()}}return Qn.runOutsideAngular(()=>{const pi=this._config.buildHammer(gt),Ei=function(ki){Qn.runGuarded(function(){wn(ki)})};return pi.on(sn,Ei),()=>{pi.off(sn,Ei),"function"==typeof pi.destroy&&pi.destroy()}})}isCustomEvent(gt){return this._config.events.indexOf(gt)>-1}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(n.K0),e.\u0275\u0275inject(J),e.\u0275\u0275inject(e.\u0275Console),e.\u0275\u0275inject(Oe,8))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:vt.\u0275fac}),vt})(),dt=(()=>{class vt{}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275mod=e.\u0275\u0275defineNgModule({type:vt}),vt.\u0275inj=e.\u0275\u0275defineInjector({providers:[{provide:B,useClass:Et,multi:!0,deps:[n.K0,J,e.\u0275Console,[new e.Optional,Oe]]},{provide:J,useClass:je,deps:[]}]}),vt})(),rt=(()=>{class vt{}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:function(gt){let sn=null;return sn=gt?new(gt||vt):e.\u0275\u0275inject(ze),sn},providedIn:"root"}),vt})(),ze=(()=>{class vt extends rt{constructor(gt){super(),this._doc=gt}sanitize(gt,sn){if(null==sn)return null;switch(gt){case e.SecurityContext.NONE:return sn;case e.SecurityContext.HTML:return(0,e.\u0275allowSanitizationBypassAndThrow)(sn,"HTML")?(0,e.\u0275unwrapSafeValue)(sn):(0,e.\u0275_sanitizeHtml)(this._doc,String(sn)).toString();case e.SecurityContext.STYLE:return(0,e.\u0275allowSanitizationBypassAndThrow)(sn,"Style")?(0,e.\u0275unwrapSafeValue)(sn):sn;case e.SecurityContext.SCRIPT:if((0,e.\u0275allowSanitizationBypassAndThrow)(sn,"Script"))return(0,e.\u0275unwrapSafeValue)(sn);throw new Error("unsafe value used in a script context");case e.SecurityContext.URL:return(0,e.\u0275allowSanitizationBypassAndThrow)(sn,"URL")?(0,e.\u0275unwrapSafeValue)(sn):(0,e.\u0275_sanitizeUrl)(String(sn));case e.SecurityContext.RESOURCE_URL:if((0,e.\u0275allowSanitizationBypassAndThrow)(sn,"ResourceURL"))return(0,e.\u0275unwrapSafeValue)(sn);throw new Error(`unsafe value used in a resource URL context (see ${e.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${gt} (see ${e.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(gt){return(0,e.\u0275bypassSanitizationTrustHtml)(gt)}bypassSecurityTrustStyle(gt){return(0,e.\u0275bypassSanitizationTrustStyle)(gt)}bypassSecurityTrustScript(gt){return(0,e.\u0275bypassSanitizationTrustScript)(gt)}bypassSecurityTrustUrl(gt){return(0,e.\u0275bypassSanitizationTrustUrl)(gt)}bypassSecurityTrustResourceUrl(gt){return(0,e.\u0275bypassSanitizationTrustResourceUrl)(gt)}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.\u0275\u0275inject(n.K0))},vt.\u0275prov=e.\u0275\u0275defineInjectable({token:vt,factory:function(gt){let sn=null;return sn=gt?new gt:function qe(vt){return new ze(vt.get(n.K0))}(e.\u0275\u0275inject(e.Injector)),sn},providedIn:"root"}),vt})();const zt=new e.Version("15.2.8")},44180:(Ee,Q,t)=>{"use strict";t.d(Q,{gz:()=>dr,m2:()=>St,OD:()=>dn,F0:()=>yr,rH:()=>Zs,Od:()=>Ts,Bz:()=>Fc,lC:()=>Or,R9:()=>Nt});var n=t(94650),e=t(32076),i=t(39646),d=t(61135);const u=(0,t(83888).d)(fe=>function(){fe(this),this.name="EmptyError",this.message="no elements in sequence"});var h=t(39841),l=t(97272),m=t(49770),x=t(89635),O=t(62843),L=t(69751),w=t(60515),B=t(50727),_=t(54482),y=t(25403);function $(){return(0,_.e)((fe,ye)=>{let se=null;fe._refCount++;const Ne=(0,y.x)(ye,void 0,void 0,void 0,()=>{if(!fe||fe._refCount<=0||0<--fe._refCount)return void(se=null);const st=fe._connection,Ft=se;se=null,st&&(!Ft||st===Ft)&&st.unsubscribe(),ye.unsubscribe()});fe.subscribe(Ne),Ne.closed||(se=fe.connect())})}class C extends L.y{constructor(ye,se){super(),this.source=ye,this.subjectFactory=se,this._subject=null,this._refCount=0,this._connection=null,(0,_.A)(ye)&&(this.lift=ye.lift)}_subscribe(ye){return this.getSubject().subscribe(ye)}getSubject(){const ye=this._subject;return(!ye||ye.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ye}=this;this._subject=this._connection=null,ye?.unsubscribe()}connect(){let ye=this._connection;if(!ye){ye=this._connection=new B.w0;const se=this.getSubject();ye.add(this.source.subscribe((0,y.x)(se,void 0,()=>{this._teardown(),se.complete()},Ne=>{this._teardown(),se.error(Ne)},()=>this._teardown()))),ye.closed&&(this._connection=null,ye=B.w0.EMPTY)}return ye}refCount(){return $()(this)}}var T=t(77579),j=t(36895),I=t(54004),F=t(63900),z=t(95698),X=t(68675),p=t(39300),P=t(86099),E=t(46590);function R(fe=ne){return(0,_.e)((ye,se)=>{let Ne=!1;ye.subscribe((0,y.x)(se,st=>{Ne=!0,se.next(st)},()=>Ne?se.complete():se.error(fe())))})}function ne(){return new u}var G=t(44671);function ce(fe,ye){const se=arguments.length>=2;return Ne=>Ne.pipe(fe?(0,p.h)((st,Ft)=>fe(st,Ft,Ne)):G.y,(0,z.q)(1),se?(0,E.d)(ye):R(()=>new u))}var xe=t(24351),we=t(18505),Ge=t(70262),ct=t(22940);function pe(fe){return fe<=0?()=>w.E:(0,_.e)((ye,se)=>{let Ne=[];ye.subscribe((0,y.x)(se,st=>{Ne.push(st),fe<Ne.length&&Ne.shift()},()=>{for(const st of Ne)se.next(st);se.complete()},void 0,()=>{Ne=null}))})}function Ce(fe,ye){const se=arguments.length>=2;return Ne=>Ne.pipe(fe?(0,p.h)((st,Ft)=>fe(st,Ft,Ne)):G.y,pe(1),se?(0,E.d)(ye):R(()=>new u))}var U=t(22529),H=t(69718),Z=t(28746),oe=t(8189),Pe=t(11481);const Ie="primary",pt=Symbol("RouteTitle");class Ht{constructor(ye){this.params=ye||{}}has(ye){return Object.prototype.hasOwnProperty.call(this.params,ye)}get(ye){if(this.has(ye)){const se=this.params[ye];return Array.isArray(se)?se[0]:se}return null}getAll(ye){if(this.has(ye)){const se=this.params[ye];return Array.isArray(se)?se:[se]}return[]}get keys(){return Object.keys(this.params)}}function Wt(fe){return new Ht(fe)}function Xe(fe,ye,se){const Ne=se.path.split("/");if(Ne.length>fe.length||"full"===se.pathMatch&&(ye.hasChildren()||Ne.length<fe.length))return null;const st={};for(let Ft=0;Ft<Ne.length;Ft++){const an=Ne[Ft],jn=fe[Ft];if(an.startsWith(":"))st[an.substring(1)]=jn;else if(an!==jn.path)return null}return{consumed:fe.slice(0,Ne.length),posParams:st}}function Be(fe,ye){const se=fe?Object.keys(fe):void 0,Ne=ye?Object.keys(ye):void 0;if(!se||!Ne||se.length!=Ne.length)return!1;let st;for(let Ft=0;Ft<se.length;Ft++)if(st=se[Ft],!at(fe[st],ye[st]))return!1;return!0}function at(fe,ye){if(Array.isArray(fe)&&Array.isArray(ye)){if(fe.length!==ye.length)return!1;const se=[...fe].sort(),Ne=[...ye].sort();return se.every((st,Ft)=>Ne[Ft]===st)}return fe===ye}function lt(fe){return Array.prototype.concat.apply([],fe)}function Dt(fe){return fe.length>0?fe[fe.length-1]:null}function Tt(fe,ye){for(const se in fe)fe.hasOwnProperty(se)&&ye(fe[se],se)}function ot(fe){return(0,n.\u0275isObservable)(fe)?fe:(0,n.\u0275isPromise)(fe)?(0,e.D)(Promise.resolve(fe)):(0,i.of)(fe)}const Gt=!1,wt={exact:function xn(fe,ye,se){if(!cn(fe.segments,ye.segments)||!In(fe.segments,ye.segments,se)||fe.numberOfChildren!==ye.numberOfChildren)return!1;for(const Ne in ye.children)if(!fe.children[Ne]||!xn(fe.children[Ne],ye.children[Ne],se))return!1;return!0},subset:hn},Ze={exact:function vn(fe,ye){return Be(fe,ye)},subset:function bn(fe,ye){return Object.keys(ye).length<=Object.keys(fe).length&&Object.keys(ye).every(se=>at(fe[se],ye[se]))},ignored:()=>!0};function Ut(fe,ye,se){return wt[se.paths](fe.root,ye.root,se.matrixParams)&&Ze[se.queryParams](fe.queryParams,ye.queryParams)&&!("exact"===se.fragment&&fe.fragment!==ye.fragment)}function hn(fe,ye,se){return pn(fe,ye,ye.segments,se)}function pn(fe,ye,se,Ne){if(fe.segments.length>se.length){const st=fe.segments.slice(0,se.length);return!(!cn(st,se)||ye.hasChildren()||!In(st,se,Ne))}if(fe.segments.length===se.length){if(!cn(fe.segments,se)||!In(fe.segments,se,Ne))return!1;for(const st in ye.children)if(!fe.children[st]||!hn(fe.children[st],ye.children[st],Ne))return!1;return!0}{const st=se.slice(0,fe.segments.length),Ft=se.slice(fe.segments.length);return!!(cn(fe.segments,st)&&In(fe.segments,st,Ne)&&fe.children[Ie])&&pn(fe.children[Ie],ye,Ft,Ne)}}function In(fe,ye,se){return ye.every((Ne,st)=>Ze[se](fe[st].parameters,Ne.parameters))}class Dn{constructor(ye=new Tn([],{}),se={},Ne=null){this.root=ye,this.queryParams=se,this.fragment=Ne}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wt(this.queryParams)),this._queryParamMap}toString(){return Wn.serialize(this)}}class Tn{constructor(ye,se){this.segments=ye,this.children=se,this.parent=null,Tt(se,(Ne,st)=>Ne.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rn(this)}}class mn{constructor(ye,se){this.path=ye,this.parameters=se}get parameterMap(){return this._parameterMap||(this._parameterMap=Wt(this.parameters)),this._parameterMap}toString(){return Et(this)}}function cn(fe,ye){return fe.length===ye.length&&fe.every((se,Ne)=>se.path===ye[Ne].path)}let Bt=(()=>{class fe{}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:function(){return new En},providedIn:"root"}),fe})();class En{parse(ye){const se=new sn(ye);return new Dn(se.parseRootSegment(),se.parseQueryParams(),se.parseFragment())}serialize(ye){const se=`/${Sn(ye.root,!0)}`,Ne=function rt(fe){const ye=Object.keys(fe).map(se=>{const Ne=fe[se];return Array.isArray(Ne)?Ne.map(st=>`${ge(se)}=${ge(st)}`).join("&"):`${ge(se)}=${ge(Ne)}`}).filter(se=>!!se);return ye.length?`?${ye.join("&")}`:""}(ye.queryParams);return`${se}${Ne}${"string"==typeof ye.fragment?`#${function q(fe){return encodeURI(fe)}(ye.fragment)}`:""}`}}const Wn=new En;function rn(fe){return fe.segments.map(ye=>Et(ye)).join("/")}function Sn(fe,ye){if(!fe.hasChildren())return rn(fe);if(ye){const se=fe.children[Ie]?Sn(fe.children[Ie],!1):"",Ne=[];return Tt(fe.children,(st,Ft)=>{Ft!==Ie&&Ne.push(`${Ft}:${Sn(st,!1)}`)}),Ne.length>0?`${se}(${Ne.join("//")})`:se}{const se=function Nn(fe,ye){let se=[];return Tt(fe.children,(Ne,st)=>{st===Ie&&(se=se.concat(ye(Ne,st)))}),Tt(fe.children,(Ne,st)=>{st!==Ie&&(se=se.concat(ye(Ne,st)))}),se}(fe,(Ne,st)=>st===Ie?[Sn(fe.children[Ie],!1)]:[`${st}:${Sn(Ne,!1)}`]);return 1===Object.keys(fe.children).length&&null!=fe.children[Ie]?`${rn(fe)}/${se[0]}`:`${rn(fe)}/(${se.join("//")})`}}function ke(fe){return encodeURIComponent(fe).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ge(fe){return ke(fe).replace(/%3B/gi,";")}function J(fe){return ke(fe).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Oe(fe){return decodeURIComponent(fe)}function je(fe){return Oe(fe.replace(/\+/g,"%20"))}function Et(fe){return`${J(fe.path)}${function dt(fe){return Object.keys(fe).map(ye=>`;${J(ye)}=${J(fe[ye])}`).join("")}(fe.parameters)}`}const qe=/^[^\/()?;=#]+/;function ze(fe){const ye=fe.match(qe);return ye?ye[0]:""}const zt=/^[^=?&#]+/,Rt=/^[^&#]+/;class sn{constructor(ye){this.url=ye,this.remaining=ye}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tn([],{}):new Tn([],this.parseChildren())}parseQueryParams(){const ye={};if(this.consumeOptional("?"))do{this.parseQueryParam(ye)}while(this.consumeOptional("&"));return ye}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ye=[];for(this.peekStartsWith("(")||ye.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ye.push(this.parseSegment());let se={};this.peekStartsWith("/(")&&(this.capture("/"),se=this.parseParens(!0));let Ne={};return this.peekStartsWith("(")&&(Ne=this.parseParens(!1)),(ye.length>0||Object.keys(se).length>0)&&(Ne[Ie]=new Tn(ye,se)),Ne}parseSegment(){const ye=ze(this.remaining);if(""===ye&&this.peekStartsWith(";"))throw new n.\u0275RuntimeError(4009,Gt);return this.capture(ye),new mn(Oe(ye),this.parseMatrixParams())}parseMatrixParams(){const ye={};for(;this.consumeOptional(";");)this.parseParam(ye);return ye}parseParam(ye){const se=ze(this.remaining);if(!se)return;this.capture(se);let Ne="";if(this.consumeOptional("=")){const st=ze(this.remaining);st&&(Ne=st,this.capture(Ne))}ye[Oe(se)]=Oe(Ne)}parseQueryParam(ye){const se=function vt(fe){const ye=fe.match(zt);return ye?ye[0]:""}(this.remaining);if(!se)return;this.capture(se);let Ne="";if(this.consumeOptional("=")){const an=function gt(fe){const ye=fe.match(Rt);return ye?ye[0]:""}(this.remaining);an&&(Ne=an,this.capture(Ne))}const st=je(se),Ft=je(Ne);if(ye.hasOwnProperty(st)){let an=ye[st];Array.isArray(an)||(an=[an],ye[st]=an),an.push(Ft)}else ye[st]=Ft}parseParens(ye){const se={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ne=ze(this.remaining),st=this.remaining[Ne.length];if("/"!==st&&")"!==st&&";"!==st)throw new n.\u0275RuntimeError(4010,Gt);let Ft;Ne.indexOf(":")>-1?(Ft=Ne.slice(0,Ne.indexOf(":")),this.capture(Ft),this.capture(":")):ye&&(Ft=Ie);const an=this.parseChildren();se[Ft]=1===Object.keys(an).length?an[Ie]:new Tn([],an),this.consumeOptional("//")}return se}peekStartsWith(ye){return this.remaining.startsWith(ye)}consumeOptional(ye){return!!this.peekStartsWith(ye)&&(this.remaining=this.remaining.substring(ye.length),!0)}capture(ye){if(!this.consumeOptional(ye))throw new n.\u0275RuntimeError(4011,Gt)}}function wn(fe){return fe.segments.length>0?new Tn([],{[Ie]:fe}):fe}function Qn(fe){const ye={};for(const Ne of Object.keys(fe.children)){const Ft=Qn(fe.children[Ne]);(Ft.segments.length>0||Ft.hasChildren())&&(ye[Ne]=Ft)}return function pi(fe){if(1===fe.numberOfChildren&&fe.children[Ie]){const ye=fe.children[Ie];return new Tn(fe.segments.concat(ye.segments),ye.children)}return fe}(new Tn(fe.segments,ye))}function Ei(fe){return fe instanceof Dn}const ki=!1;function Qo(fe,ye,se,Ne,st){if(0===se.length)return Io(ye.root,ye.root,ye.root,Ne,st);const Ft=function tt(fe){if("string"==typeof fe[0]&&1===fe.length&&"/"===fe[0])return new Hn(!0,0,fe);let ye=0,se=!1;const Ne=fe.reduce((st,Ft,an)=>{if("object"==typeof Ft&&null!=Ft){if(Ft.outlets){const jn={};return Tt(Ft.outlets,(mi,Vi)=>{jn[Vi]="string"==typeof mi?mi.split("/"):mi}),[...st,{outlets:jn}]}if(Ft.segmentPath)return[...st,Ft.segmentPath]}return"string"!=typeof Ft?[...st,Ft]:0===an?(Ft.split("/").forEach((jn,mi)=>{0==mi&&"."===jn||(0==mi&&""===jn?se=!0:".."===jn?ye++:""!=jn&&st.push(jn))}),st):[...st,Ft]},[]);return new Hn(se,ye,Ne)}(se);return Ft.toRoot()?Io(ye.root,ye.root,new Tn([],{}),Ne,st):function an(mi){const Vi=function ve(fe,ye,se,Ne){if(fe.isAbsolute)return new nt(ye.root,!0,0);if(-1===Ne)return new nt(se,se===ye.root,0);return function Se(fe,ye,se){let Ne=fe,st=ye,Ft=se;for(;Ft>st;){if(Ft-=st,Ne=Ne.parent,!Ne)throw new n.\u0275RuntimeError(4005,ki&&"Invalid number of '../'");st=Ne.segments.length}return new nt(Ne,!1,st-Ft)}(se,Ne+(Mo(fe.commands[0])?0:1),fe.numberOfDoubleDots)}(Ft,ye,fe.snapshot?._urlSegment,mi),zi=Vi.processChildren?ut(Vi.segmentGroup,Vi.index,Ft.commands):We(Vi.segmentGroup,Vi.index,Ft.commands);return Io(ye.root,Vi.segmentGroup,zi,Ne,st)}(fe.snapshot?._lastPathIndex)}function Mo(fe){return"object"==typeof fe&&null!=fe&&!fe.outlets&&!fe.segmentPath}function po(fe){return"object"==typeof fe&&null!=fe&&fe.outlets}function Io(fe,ye,se,Ne,st){let an,Ft={};Ne&&Tt(Ne,(mi,Vi)=>{Ft[Vi]=Array.isArray(mi)?mi.map(zi=>`${zi}`):`${mi}`}),an=fe===ye?se:en(fe,ye,se);const jn=wn(Qn(an));return new Dn(jn,Ft,st)}function en(fe,ye,se){const Ne={};return Tt(fe.children,(st,Ft)=>{Ne[Ft]=st===ye?se:en(st,ye,se)}),new Tn(fe.segments,Ne)}class Hn{constructor(ye,se,Ne){if(this.isAbsolute=ye,this.numberOfDoubleDots=se,this.commands=Ne,ye&&Ne.length>0&&Mo(Ne[0]))throw new n.\u0275RuntimeError(4003,ki&&"Root segment cannot have matrix parameters");const st=Ne.find(po);if(st&&st!==Dt(Ne))throw new n.\u0275RuntimeError(4004,ki&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class nt{constructor(ye,se,Ne){this.segmentGroup=ye,this.processChildren=se,this.index=Ne}}function We(fe,ye,se){if(fe||(fe=new Tn([],{})),0===fe.segments.length&&fe.hasChildren())return ut(fe,ye,se);const Ne=function ue(fe,ye,se){let Ne=0,st=ye;const Ft={match:!1,pathIndex:0,commandIndex:0};for(;st<fe.segments.length;){if(Ne>=se.length)return Ft;const an=fe.segments[st],jn=se[Ne];if(po(jn))break;const mi=`${jn}`,Vi=Ne<se.length-1?se[Ne+1]:null;if(st>0&&void 0===mi)break;if(mi&&Vi&&"object"==typeof Vi&&void 0===Vi.outlets){if(!bt(mi,Vi,an))return Ft;Ne+=2}else{if(!bt(mi,{},an))return Ft;Ne++}st++}return{match:!0,pathIndex:st,commandIndex:Ne}}(fe,ye,se),st=se.slice(Ne.commandIndex);if(Ne.match&&Ne.pathIndex<fe.segments.length){const Ft=new Tn(fe.segments.slice(0,Ne.pathIndex),{});return Ft.children[Ie]=new Tn(fe.segments.slice(Ne.pathIndex),fe.children),ut(Ft,0,st)}return Ne.match&&0===st.length?new Tn(fe.segments,{}):Ne.match&&!fe.hasChildren()?et(fe,ye,se):Ne.match?ut(fe,0,st):et(fe,ye,se)}function ut(fe,ye,se){if(0===se.length)return new Tn(fe.segments,{});{const Ne=function Me(fe){return po(fe[0])?fe[0].outlets:{[Ie]:fe}}(se),st={};if(!Ne[Ie]&&fe.children[Ie]&&1===fe.numberOfChildren&&0===fe.children[Ie].segments.length){const Ft=ut(fe.children[Ie],ye,se);return new Tn(fe.segments,Ft.children)}return Tt(Ne,(Ft,an)=>{"string"==typeof Ft&&(Ft=[Ft]),null!==Ft&&(st[an]=We(fe.children[an],ye,Ft))}),Tt(fe.children,(Ft,an)=>{void 0===Ne[an]&&(st[an]=Ft)}),new Tn(fe.segments,st)}}function et(fe,ye,se){const Ne=fe.segments.slice(0,ye);let st=0;for(;st<se.length;){const Ft=se[st];if(po(Ft)){const mi=At(Ft.outlets);return new Tn(Ne,mi)}if(0===st&&Mo(se[0])){Ne.push(new mn(fe.segments[ye].path,Ae(se[0]))),st++;continue}const an=po(Ft)?Ft.outlets[Ie]:`${Ft}`,jn=st<se.length-1?se[st+1]:null;an&&jn&&Mo(jn)?(Ne.push(new mn(an,Ae(jn))),st+=2):(Ne.push(new mn(an,{})),st++)}return new Tn(Ne,{})}function At(fe){const ye={};return Tt(fe,(se,Ne)=>{"string"==typeof se&&(se=[se]),null!==se&&(ye[Ne]=et(new Tn([],{}),0,se))}),ye}function Ae(fe){const ye={};return Tt(fe,(se,Ne)=>ye[Ne]=`${se}`),ye}function bt(fe,ye,se){return fe==se.path&&Be(ye,se.parameters)}const Le="imperative";class Pt{constructor(ye,se){this.id=ye,this.url=se}}class dn extends Pt{constructor(ye,se,Ne="imperative",st=null){super(ye,se),this.type=0,this.navigationTrigger=Ne,this.restoredState=st}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class St extends Pt{constructor(ye,se,Ne){super(ye,se),this.urlAfterRedirects=Ne,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class jt extends Pt{constructor(ye,se,Ne,st){super(ye,se),this.reason=Ne,this.code=st,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ht extends Pt{constructor(ye,se,Ne,st){super(ye,se),this.reason=Ne,this.code=st,this.type=16}}class on extends Pt{constructor(ye,se,Ne,st){super(ye,se),this.error=Ne,this.target=st,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Nt extends Pt{constructor(ye,se,Ne,st){super(ye,se),this.urlAfterRedirects=Ne,this.state=st,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class It extends Pt{constructor(ye,se,Ne,st){super(ye,se),this.urlAfterRedirects=Ne,this.state=st,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ot extends Pt{constructor(ye,se,Ne,st,Ft){super(ye,se),this.urlAfterRedirects=Ne,this.state=st,this.shouldActivate=Ft,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fn extends Pt{constructor(ye,se,Ne,st){super(ye,se),this.urlAfterRedirects=Ne,this.state=st,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xn extends Pt{constructor(ye,se,Ne,st){super(ye,se),this.urlAfterRedirects=Ne,this.state=st,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i{constructor(ye){this.route=ye,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ci{constructor(ye){this.route=ye,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ui{constructor(ye){this.snapshot=ye,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class li{constructor(ye){this.snapshot=ye,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vi{constructor(ye){this.snapshot=ye,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zn{constructor(ye){this.snapshot=ye,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gn{constructor(ye,se,Ne){this.routerEvent=ye,this.position=se,this.anchor=Ne,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let kn=(()=>{class fe{createUrlTree(se,Ne,st,Ft,an,jn){return Qo(se||Ne.root,st,Ft,an,jn)}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac}),fe})(),qi=(()=>{class fe{}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:function(ye){return kn.\u0275fac(ye)},providedIn:"root"}),fe})();class eo{constructor(ye){this._root=ye}get root(){return this._root.value}parent(ye){const se=this.pathFromRoot(ye);return se.length>1?se[se.length-2]:null}children(ye){const se=Oo(ye,this._root);return se?se.children.map(Ne=>Ne.value):[]}firstChild(ye){const se=Oo(ye,this._root);return se&&se.children.length>0?se.children[0].value:null}siblings(ye){const se=Fo(ye,this._root);return se.length<2?[]:se[se.length-2].children.map(st=>st.value).filter(st=>st!==ye)}pathFromRoot(ye){return Fo(ye,this._root).map(se=>se.value)}}function Oo(fe,ye){if(fe===ye.value)return ye;for(const se of ye.children){const Ne=Oo(fe,se);if(Ne)return Ne}return null}function Fo(fe,ye){if(fe===ye.value)return[ye];for(const se of ye.children){const Ne=Fo(fe,se);if(Ne.length)return Ne.unshift(ye),Ne}return[]}class Zi{constructor(ye,se){this.value=ye,this.children=se}toString(){return`TreeNode(${this.value})`}}function Wo(fe){const ye={};return fe&&fe.children.forEach(se=>ye[se.value.outlet]=se),ye}class na extends eo{constructor(ye,se){super(ye),this.snapshot=se,to(this,ye)}toString(){return this.snapshot.toString()}}function qa(fe,ye){const se=function rr(fe,ye){const an=new _r([],{},{},"",{},Ie,ye,null,fe.root,-1,{});return new _o("",new Zi(an,[]))}(fe,ye),Ne=new d.X([new mn("",{})]),st=new d.X({}),Ft=new d.X({}),an=new d.X({}),jn=new d.X(""),mi=new dr(Ne,st,an,jn,Ft,Ie,ye,se.root);return mi.snapshot=se.root,new na(new Zi(mi,[]),se)}class dr{constructor(ye,se,Ne,st,Ft,an,jn,mi){this.url=ye,this.params=se,this.queryParams=Ne,this.fragment=st,this.data=Ft,this.outlet=an,this.component=jn,this.title=this.data?.pipe((0,I.U)(Vi=>Vi[pt]))??(0,i.of)(void 0),this._futureSnapshot=mi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,I.U)(ye=>Wt(ye)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,I.U)(ye=>Wt(ye)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sr(fe,ye="emptyOnly"){const se=fe.pathFromRoot;let Ne=0;if("always"!==ye)for(Ne=se.length-1;Ne>=1;){const st=se[Ne],Ft=se[Ne-1];if(st.routeConfig&&""===st.routeConfig.path)Ne--;else{if(Ft.component)break;Ne--}}return function Ks(fe){return fe.reduce((ye,se)=>({params:{...ye.params,...se.params},data:{...ye.data,...se.data},resolve:{...se.data,...ye.resolve,...se.routeConfig?.data,...se._resolvedData}}),{params:{},data:{},resolve:{}})}(se.slice(Ne))}class _r{get title(){return this.data?.[pt]}constructor(ye,se,Ne,st,Ft,an,jn,mi,Vi,zi,fa){this.url=ye,this.params=se,this.queryParams=Ne,this.fragment=st,this.data=Ft,this.outlet=an,this.component=jn,this.routeConfig=mi,this._urlSegment=Vi,this._lastPathIndex=zi,this._resolve=fa}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Wt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ne=>Ne.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class _o extends eo{constructor(ye,se){super(se),this.url=ye,to(this,se)}toString(){return gr(this._root)}}function to(fe,ye){ye.value._routerState=fe,ye.children.forEach(se=>to(fe,se))}function gr(fe){const ye=fe.children.length>0?` { ${fe.children.map(gr).join(", ")} } `:"";return`${fe.value}${ye}`}function za(fe){if(fe.snapshot){const ye=fe.snapshot,se=fe._futureSnapshot;fe.snapshot=se,Be(ye.queryParams,se.queryParams)||fe.queryParams.next(se.queryParams),ye.fragment!==se.fragment&&fe.fragment.next(se.fragment),Be(ye.params,se.params)||fe.params.next(se.params),function Qe(fe,ye){if(fe.length!==ye.length)return!1;for(let se=0;se<fe.length;++se)if(!Be(fe[se],ye[se]))return!1;return!0}(ye.url,se.url)||fe.url.next(se.url),Be(ye.data,se.data)||fe.data.next(se.data)}else fe.snapshot=fe._futureSnapshot,fe.data.next(fe._futureSnapshot.data)}function Sa(fe,ye){const se=Be(fe.params,ye.params)&&function Yn(fe,ye){return cn(fe,ye)&&fe.every((se,Ne)=>Be(se.parameters,ye[Ne].parameters))}(fe.url,ye.url);return se&&!(!fe.parent!=!ye.parent)&&(!fe.parent||Sa(fe.parent,ye.parent))}function cr(fe,ye,se){if(se&&fe.shouldReuseRoute(ye.value,se.value.snapshot)){const Ne=se.value;Ne._futureSnapshot=ye.value;const st=function vr(fe,ye,se){return ye.children.map(Ne=>{for(const st of se.children)if(fe.shouldReuseRoute(Ne.value,st.value.snapshot))return cr(fe,Ne,st);return cr(fe,Ne)})}(fe,ye,se);return new Zi(Ne,st)}{if(fe.shouldAttach(ye.value)){const Ft=fe.retrieve(ye.value);if(null!==Ft){const an=Ft.route;return an.value._futureSnapshot=ye.value,an.children=ye.children.map(jn=>cr(fe,jn)),an}}const Ne=function Pr(fe){return new dr(new d.X(fe.url),new d.X(fe.params),new d.X(fe.queryParams),new d.X(fe.fragment),new d.X(fe.data),fe.outlet,fe.component,fe)}(ye.value),st=ye.children.map(Ft=>cr(fe,Ft));return new Zi(Ne,st)}}const Cs="ngNavigationCancelingError";function ia(fe,ye){const{redirectTo:se,navigationBehaviorOptions:Ne}=Ei(ye)?{redirectTo:ye,navigationBehaviorOptions:void 0}:ye,st=Er(!1,0,ye);return st.url=se,st.navigationBehaviorOptions=Ne,st}function Er(fe,ye,se){const Ne=new Error("NavigationCancelingError: "+(fe||""));return Ne[Cs]=!0,Ne.cancellationCode=ye,se&&(Ne.url=se),Ne}function yo(fe){return Yr(fe)&&Ei(fe.url)}function Yr(fe){return fe&&fe[Cs]}class Ya{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ma,this.attachRef=null}}let ma=(()=>{class fe{constructor(){this.contexts=new Map}onChildOutletCreated(se,Ne){const st=this.getOrCreateContext(se);st.outlet=Ne,this.contexts.set(se,st)}onChildOutletDestroyed(se){const Ne=this.getContext(se);Ne&&(Ne.outlet=null,Ne.attachRef=null)}onOutletDeactivated(){const se=this.contexts;return this.contexts=new Map,se}onOutletReAttached(se){this.contexts=se}getOrCreateContext(se){let Ne=this.getContext(se);return Ne||(Ne=new Ya,this.contexts.set(se,Ne)),Ne}getContext(se){return this.contexts.get(se)||null}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const ur=!1;let Or=(()=>{class fe{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ie,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.attachEvents=new n.EventEmitter,this.detachEvents=new n.EventEmitter,this.parentContexts=(0,n.inject)(ma),this.location=(0,n.inject)(n.ViewContainerRef),this.changeDetector=(0,n.inject)(n.ChangeDetectorRef),this.environmentInjector=(0,n.inject)(n.EnvironmentInjector)}ngOnChanges(se){if(se.name){const{firstChange:Ne,previousValue:st}=se.name;if(Ne)return;this.isTrackedInParentContexts(st)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(st)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(se){return this.parentContexts.getContext(se)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const se=this.parentContexts.getContext(this.name);se?.route&&(se.attachRef?this.attach(se.attachRef,se.route):this.activateWith(se.route,se.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.\u0275RuntimeError(4012,ur);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.\u0275RuntimeError(4012,ur);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.\u0275RuntimeError(4012,ur);this.location.detach();const se=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(se.instance),se}attach(se,Ne){this.activated=se,this._activatedRoute=Ne,this.location.insert(se.hostView),this.attachEvents.emit(se.instance)}deactivate(){if(this.activated){const se=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(se)}}activateWith(se,Ne){if(this.isActivated)throw new n.\u0275RuntimeError(4013,ur);this._activatedRoute=se;const st=this.location,an=se.snapshot.component,jn=this.parentContexts.getOrCreateContext(this.name).children,mi=new es(se,jn,st.injector);if(Ne&&function ts(fe){return!!fe.resolveComponentFactory}(Ne)){const Vi=Ne.resolveComponentFactory(an);this.activated=st.createComponent(Vi,st.length,mi)}else this.activated=st.createComponent(an,{index:st.length,injector:mi,environmentInjector:Ne??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275dir=n.\u0275\u0275defineDirective({type:fe,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),fe})();class es{constructor(ye,se,Ne){this.route=ye,this.childContexts=se,this.parent=Ne}get(ye,se){return ye===dr?this.route:ye===ma?this.childContexts:this.parent.get(ye,se)}}let er=(()=>{class fe{}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275cmp=n.\u0275\u0275defineComponent({type:fe,selectors:[["ng-component"]],standalone:!0,features:[n.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(se,Ne){1&se&&n.\u0275\u0275element(0,"router-outlet")},dependencies:[Or],encapsulation:2}),fe})();function pr(fe,ye){return fe.providers&&!fe._injector&&(fe._injector=(0,n.createEnvironmentInjector)(fe.providers,ye,`Route: ${fe.path}`)),fe._injector??ye}function Ro(fe){const ye=fe.children&&fe.children.map(Ro),se=ye?{...fe,children:ye}:{...fe};return!se.component&&!se.loadComponent&&(ye||se.loadChildren)&&se.outlet&&se.outlet!==Ie&&(se.component=er),se}function ya(fe){return fe.outlet||Ie}function oa(fe,ye){const se=fe.filter(Ne=>ya(Ne)===ye);return se.push(...fe.filter(Ne=>ya(Ne)!==ye)),se}function hr(fe){if(!fe)return null;if(fe.routeConfig?._injector)return fe.routeConfig._injector;for(let ye=fe.parent;ye;ye=ye.parent){const se=ye.routeConfig;if(se?._loadedInjector)return se._loadedInjector;if(se?._injector)return se._injector}return null}class br{constructor(ye,se,Ne,st){this.routeReuseStrategy=ye,this.futureState=se,this.currState=Ne,this.forwardEvent=st}activate(ye){const se=this.futureState._root,Ne=this.currState?this.currState._root:null;this.deactivateChildRoutes(se,Ne,ye),za(this.futureState.root),this.activateChildRoutes(se,Ne,ye)}deactivateChildRoutes(ye,se,Ne){const st=Wo(se);ye.children.forEach(Ft=>{const an=Ft.value.outlet;this.deactivateRoutes(Ft,st[an],Ne),delete st[an]}),Tt(st,(Ft,an)=>{this.deactivateRouteAndItsChildren(Ft,Ne)})}deactivateRoutes(ye,se,Ne){const st=ye.value,Ft=se?se.value:null;if(st===Ft)if(st.component){const an=Ne.getContext(st.outlet);an&&this.deactivateChildRoutes(ye,se,an.children)}else this.deactivateChildRoutes(ye,se,Ne);else Ft&&this.deactivateRouteAndItsChildren(se,Ne)}deactivateRouteAndItsChildren(ye,se){ye.value.component&&this.routeReuseStrategy.shouldDetach(ye.value.snapshot)?this.detachAndStoreRouteSubtree(ye,se):this.deactivateRouteAndOutlet(ye,se)}detachAndStoreRouteSubtree(ye,se){const Ne=se.getContext(ye.value.outlet),st=Ne&&ye.value.component?Ne.children:se,Ft=Wo(ye);for(const an of Object.keys(Ft))this.deactivateRouteAndItsChildren(Ft[an],st);if(Ne&&Ne.outlet){const an=Ne.outlet.detach(),jn=Ne.children.onOutletDeactivated();this.routeReuseStrategy.store(ye.value.snapshot,{componentRef:an,route:ye,contexts:jn})}}deactivateRouteAndOutlet(ye,se){const Ne=se.getContext(ye.value.outlet),st=Ne&&ye.value.component?Ne.children:se,Ft=Wo(ye);for(const an of Object.keys(Ft))this.deactivateRouteAndItsChildren(Ft[an],st);Ne&&(Ne.outlet&&(Ne.outlet.deactivate(),Ne.children.onOutletDeactivated()),Ne.attachRef=null,Ne.resolver=null,Ne.route=null)}activateChildRoutes(ye,se,Ne){const st=Wo(se);ye.children.forEach(Ft=>{this.activateRoutes(Ft,st[Ft.value.outlet],Ne),this.forwardEvent(new Zn(Ft.value.snapshot))}),ye.children.length&&this.forwardEvent(new li(ye.value.snapshot))}activateRoutes(ye,se,Ne){const st=ye.value,Ft=se?se.value:null;if(za(st),st===Ft)if(st.component){const an=Ne.getOrCreateContext(st.outlet);this.activateChildRoutes(ye,se,an.children)}else this.activateChildRoutes(ye,se,Ne);else if(st.component){const an=Ne.getOrCreateContext(st.outlet);if(this.routeReuseStrategy.shouldAttach(st.snapshot)){const jn=this.routeReuseStrategy.retrieve(st.snapshot);this.routeReuseStrategy.store(st.snapshot,null),an.children.onOutletReAttached(jn.contexts),an.attachRef=jn.componentRef,an.route=jn.route.value,an.outlet&&an.outlet.attach(jn.componentRef,jn.route.value),za(jn.route.value),this.activateChildRoutes(ye,null,an.children)}else{const jn=hr(st.snapshot),mi=jn?.get(n.ComponentFactoryResolver)??null;an.attachRef=null,an.route=st,an.resolver=mi,an.injector=jn,an.outlet&&an.outlet.activateWith(st,an.injector),this.activateChildRoutes(ye,null,an.children)}}else this.activateChildRoutes(ye,null,Ne)}}class Ia{constructor(ye){this.path=ye,this.route=this.path[this.path.length-1]}}class wa{constructor(ye,se){this.component=ye,this.route=se}}function Za(fe,ye,se){const Ne=fe._root;return ar(Ne,ye?ye._root:null,se,[Ne.value])}function Pa(fe,ye){const se=Symbol(),Ne=ye.get(fe,se);return Ne===se?"function"!=typeof fe||(0,n.\u0275isInjectable)(fe)?ye.get(fe):fe:Ne}function ar(fe,ye,se,Ne,st={canDeactivateChecks:[],canActivateChecks:[]}){const Ft=Wo(ye);return fe.children.forEach(an=>{(function Sr(fe,ye,se,Ne,st={canDeactivateChecks:[],canActivateChecks:[]}){const Ft=fe.value,an=ye?ye.value:null,jn=se?se.getContext(fe.value.outlet):null;if(an&&Ft.routeConfig===an.routeConfig){const mi=function ao(fe,ye,se){if("function"==typeof se)return se(fe,ye);switch(se){case"pathParamsChange":return!cn(fe.url,ye.url);case"pathParamsOrQueryParamsChange":return!cn(fe.url,ye.url)||!Be(fe.queryParams,ye.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sa(fe,ye)||!Be(fe.queryParams,ye.queryParams);default:return!Sa(fe,ye)}}(an,Ft,Ft.routeConfig.runGuardsAndResolvers);mi?st.canActivateChecks.push(new Ia(Ne)):(Ft.data=an.data,Ft._resolvedData=an._resolvedData),ar(fe,ye,Ft.component?jn?jn.children:null:se,Ne,st),mi&&jn&&jn.outlet&&jn.outlet.isActivated&&st.canDeactivateChecks.push(new wa(jn.outlet.component,an))}else an&&Aa(ye,jn,st),st.canActivateChecks.push(new Ia(Ne)),ar(fe,null,Ft.component?jn?jn.children:null:se,Ne,st)})(an,Ft[an.value.outlet],se,Ne.concat([an.value]),st),delete Ft[an.value.outlet]}),Tt(Ft,(an,jn)=>Aa(an,se.getContext(jn),st)),st}function Aa(fe,ye,se){const Ne=Wo(fe),st=fe.value;Tt(Ne,(Ft,an)=>{Aa(Ft,st.component?ye?ye.children.getContext(an):null:ye,se)}),se.canDeactivateChecks.push(new wa(st.component&&ye&&ye.outlet&&ye.outlet.isActivated?ye.outlet.component:null,st))}function Je(fe){return"function"==typeof fe}function _e(fe){return fe instanceof u||"EmptyError"===fe?.name}const mt=Symbol("INITIAL_VALUE");function Vt(){return(0,F.w)(fe=>(0,h.a)(fe.map(ye=>ye.pipe((0,z.q)(1),(0,X.O)(mt)))).pipe((0,I.U)(ye=>{for(const se of ye)if(!0!==se){if(se===mt)return mt;if(!1===se||se instanceof Dn)return se}return!0}),(0,p.h)(ye=>ye!==mt),(0,z.q)(1)))}function Po(fe){return(0,x.z)((0,we.b)(ye=>{if(Ei(ye))throw ia(0,ye)}),(0,I.U)(ye=>!0===ye))}const _s={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Os(fe,ye,se,Ne,st){const Ft=Tc(fe,ye,se);return Ft.matched?function Cr(fe,ye,se,Ne){const st=ye.canMatch;if(!st||0===st.length)return(0,i.of)(!0);const Ft=st.map(an=>{const jn=Pa(an,fe);return ot(function qt(fe){return fe&&Je(fe.canMatch)}(jn)?jn.canMatch(ye,se):fe.runInContext(()=>jn(ye,se)))});return(0,i.of)(Ft).pipe(Vt(),Po())}(Ne=pr(ye,Ne),ye,se).pipe((0,I.U)(an=>!0===an?Ft:{..._s})):(0,i.of)(Ft)}function Tc(fe,ye,se){if(""===ye.path)return"full"===ye.pathMatch&&(fe.hasChildren()||se.length>0)?{..._s}:{matched:!0,consumedSegments:[],remainingSegments:se,parameters:{},positionalParamSegments:{}};const st=(ye.matcher||Xe)(se,fe,ye);if(!st)return{..._s};const Ft={};Tt(st.posParams,(jn,mi)=>{Ft[mi]=jn.path});const an=st.consumed.length>0?{...Ft,...st.consumed[st.consumed.length-1].parameters}:Ft;return{matched:!0,consumedSegments:st.consumed,remainingSegments:se.slice(st.consumed.length),parameters:an,positionalParamSegments:st.posParams??{}}}function Fs(fe,ye,se,Ne){if(se.length>0&&function yi(fe,ye,se){return se.some(Ne=>nc(fe,ye,Ne)&&ya(Ne)!==Ie)}(fe,se,Ne)){const Ft=new Tn(ye,function Br(fe,ye,se,Ne){const st={};st[Ie]=Ne,Ne._sourceSegment=fe,Ne._segmentIndexShift=ye.length;for(const Ft of se)if(""===Ft.path&&ya(Ft)!==Ie){const an=new Tn([],{});an._sourceSegment=fe,an._segmentIndexShift=ye.length,st[ya(Ft)]=an}return st}(fe,ye,Ne,new Tn(se,fe.children)));return Ft._sourceSegment=fe,Ft._segmentIndexShift=ye.length,{segmentGroup:Ft,slicedSegments:[]}}if(0===se.length&&function os(fe,ye,se){return se.some(Ne=>nc(fe,ye,Ne))}(fe,se,Ne)){const Ft=new Tn(fe.segments,function is(fe,ye,se,Ne,st){const Ft={};for(const an of Ne)if(nc(fe,se,an)&&!st[ya(an)]){const jn=new Tn([],{});jn._sourceSegment=fe,jn._segmentIndexShift=ye.length,Ft[ya(an)]=jn}return{...st,...Ft}}(fe,ye,se,Ne,fe.children));return Ft._sourceSegment=fe,Ft._segmentIndexShift=ye.length,{segmentGroup:Ft,slicedSegments:se}}const st=new Tn(fe.segments,fe.children);return st._sourceSegment=fe,st._segmentIndexShift=ye.length,{segmentGroup:st,slicedSegments:se}}function nc(fe,ye,se){return(!(fe.hasChildren()||ye.length>0)||"full"!==se.pathMatch)&&""===se.path}function Ic(fe,ye,se,Ne){return!!(ya(fe)===Ne||Ne!==Ie&&nc(ye,se,fe))&&("**"===fe.path||Tc(ye,fe,se).matched)}function al(fe,ye,se){return 0===ye.length&&!fe.children[se]}const uc=!1;class Bs{constructor(ye){this.segmentGroup=ye||null}}class Gn{constructor(ye){this.urlTree=ye}}function ui(fe){return(0,O._)(new Bs(fe))}function si(fe){return(0,O._)(new Gn(fe))}class Wi{constructor(ye,se,Ne,st,Ft){this.injector=ye,this.configLoader=se,this.urlSerializer=Ne,this.urlTree=st,this.config=Ft,this.allowRedirects=!0}apply(){const ye=Fs(this.urlTree.root,[],[],this.config).segmentGroup,se=new Tn(ye.segments,ye.children);return this.expandSegmentGroup(this.injector,this.config,se,Ie).pipe((0,I.U)(Ft=>this.createUrlTree(Qn(Ft),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ge.K)(Ft=>{if(Ft instanceof Gn)return this.allowRedirects=!1,this.match(Ft.urlTree);throw Ft instanceof Bs?this.noMatchError(Ft):Ft}))}match(ye){return this.expandSegmentGroup(this.injector,this.config,ye.root,Ie).pipe((0,I.U)(st=>this.createUrlTree(Qn(st),ye.queryParams,ye.fragment))).pipe((0,Ge.K)(st=>{throw st instanceof Bs?this.noMatchError(st):st}))}noMatchError(ye){return new n.\u0275RuntimeError(4002,uc)}createUrlTree(ye,se,Ne){const st=wn(ye);return new Dn(st,se,Ne)}expandSegmentGroup(ye,se,Ne,st){return 0===Ne.segments.length&&Ne.hasChildren()?this.expandChildren(ye,se,Ne).pipe((0,I.U)(Ft=>new Tn([],Ft))):this.expandSegment(ye,Ne,se,Ne.segments,st,!0)}expandChildren(ye,se,Ne){const st=[];for(const Ft of Object.keys(Ne.children))"primary"===Ft?st.unshift(Ft):st.push(Ft);return(0,e.D)(st).pipe((0,xe.b)(Ft=>{const an=Ne.children[Ft],jn=oa(se,Ft);return this.expandSegmentGroup(ye,jn,an,Ft).pipe((0,I.U)(mi=>({segment:mi,outlet:Ft})))}),(0,ct.R)((Ft,an)=>(Ft[an.outlet]=an.segment,Ft),{}),Ce())}expandSegment(ye,se,Ne,st,Ft,an){return(0,e.D)(Ne).pipe((0,xe.b)(jn=>this.expandSegmentAgainstRoute(ye,se,Ne,jn,st,Ft,an).pipe((0,Ge.K)(Vi=>{if(Vi instanceof Bs)return(0,i.of)(null);throw Vi}))),ce(jn=>!!jn),(0,Ge.K)((jn,mi)=>{if(_e(jn))return al(se,st,Ft)?(0,i.of)(new Tn([],{})):ui(se);throw jn}))}expandSegmentAgainstRoute(ye,se,Ne,st,Ft,an,jn){return Ic(st,se,Ft,an)?void 0===st.redirectTo?this.matchSegmentAgainstRoute(ye,se,st,Ft,an):jn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ye,se,Ne,st,Ft,an):ui(se):ui(se)}expandSegmentAgainstRouteUsingRedirect(ye,se,Ne,st,Ft,an){return"**"===st.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ye,Ne,st,an):this.expandRegularSegmentAgainstRouteUsingRedirect(ye,se,Ne,st,Ft,an)}expandWildCardWithParamsAgainstRouteUsingRedirect(ye,se,Ne,st){const Ft=this.applyRedirectCommands([],Ne.redirectTo,{});return Ne.redirectTo.startsWith("/")?si(Ft):this.lineralizeSegments(Ne,Ft).pipe((0,P.z)(an=>{const jn=new Tn(an,{});return this.expandSegment(ye,jn,se,an,st,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ye,se,Ne,st,Ft,an){const{matched:jn,consumedSegments:mi,remainingSegments:Vi,positionalParamSegments:zi}=Tc(se,st,Ft);if(!jn)return ui(se);const fa=this.applyRedirectCommands(mi,st.redirectTo,zi);return st.redirectTo.startsWith("/")?si(fa):this.lineralizeSegments(st,fa).pipe((0,P.z)(wr=>this.expandSegment(ye,se,Ne,wr.concat(Vi),an,!1)))}matchSegmentAgainstRoute(ye,se,Ne,st,Ft){return"**"===Ne.path?(ye=pr(Ne,ye),Ne.loadChildren?(Ne._loadedRoutes?(0,i.of)({routes:Ne._loadedRoutes,injector:Ne._loadedInjector}):this.configLoader.loadChildren(ye,Ne)).pipe((0,I.U)(jn=>(Ne._loadedRoutes=jn.routes,Ne._loadedInjector=jn.injector,new Tn(st,{})))):(0,i.of)(new Tn(st,{}))):Os(se,Ne,st,ye).pipe((0,F.w)(({matched:an,consumedSegments:jn,remainingSegments:mi})=>an?this.getChildConfig(ye=Ne._injector??ye,Ne,st).pipe((0,P.z)(zi=>{const fa=zi.injector??ye,wr=zi.routes,{segmentGroup:Kr,slicedSegments:Us}=Fs(se,jn,mi,wr),gs=new Tn(Kr.segments,Kr.children);if(0===Us.length&&gs.hasChildren())return this.expandChildren(fa,wr,gs).pipe((0,I.U)(Js=>new Tn(jn,Js)));if(0===wr.length&&0===Us.length)return(0,i.of)(new Tn(jn,{}));const Qa=ya(Ne)===Ft;return this.expandSegment(fa,gs,wr,Us,Qa?Ie:Ft,!0).pipe((0,I.U)(Vr=>new Tn(jn.concat(Vr.segments),Vr.children)))})):ui(se)))}getChildConfig(ye,se,Ne){return se.children?(0,i.of)({routes:se.children,injector:ye}):se.loadChildren?void 0!==se._loadedRoutes?(0,i.of)({routes:se._loadedRoutes,injector:se._loadedInjector}):function ka(fe,ye,se,Ne){const st=ye.canLoad;if(void 0===st||0===st.length)return(0,i.of)(!0);const Ft=st.map(an=>{const jn=Pa(an,fe);return ot(function Ue(fe){return fe&&Je(fe.canLoad)}(jn)?jn.canLoad(ye,se):fe.runInContext(()=>jn(ye,se)))});return(0,i.of)(Ft).pipe(Vt(),Po())}(ye,se,Ne).pipe((0,P.z)(st=>st?this.configLoader.loadChildren(ye,se).pipe((0,we.b)(Ft=>{se._loadedRoutes=Ft.routes,se._loadedInjector=Ft.injector})):function Eo(fe){return(0,O._)(Er(uc,3))}())):(0,i.of)({routes:[],injector:ye})}lineralizeSegments(ye,se){let Ne=[],st=se.root;for(;;){if(Ne=Ne.concat(st.segments),0===st.numberOfChildren)return(0,i.of)(Ne);if(st.numberOfChildren>1||!st.children[Ie])return ye.redirectTo,(0,O._)(new n.\u0275RuntimeError(4e3,uc));st=st.children[Ie]}}applyRedirectCommands(ye,se,Ne){return this.applyRedirectCreateUrlTree(se,this.urlSerializer.parse(se),ye,Ne)}applyRedirectCreateUrlTree(ye,se,Ne,st){const Ft=this.createSegmentGroup(ye,se.root,Ne,st);return new Dn(Ft,this.createQueryParams(se.queryParams,this.urlTree.queryParams),se.fragment)}createQueryParams(ye,se){const Ne={};return Tt(ye,(st,Ft)=>{if("string"==typeof st&&st.startsWith(":")){const jn=st.substring(1);Ne[Ft]=se[jn]}else Ne[Ft]=st}),Ne}createSegmentGroup(ye,se,Ne,st){const Ft=this.createSegments(ye,se.segments,Ne,st);let an={};return Tt(se.children,(jn,mi)=>{an[mi]=this.createSegmentGroup(ye,jn,Ne,st)}),new Tn(Ft,an)}createSegments(ye,se,Ne,st){return se.map(Ft=>Ft.path.startsWith(":")?this.findPosParam(ye,Ft,st):this.findOrReturn(Ft,Ne))}findPosParam(ye,se,Ne){const st=Ne[se.path.substring(1)];if(!st)throw new n.\u0275RuntimeError(4001,uc);return st}findOrReturn(ye,se){let Ne=0;for(const st of se){if(st.path===ye.path)return se.splice(Ne),st;Ne++}return ye}}class Ao{}class Ko{constructor(ye,se,Ne,st,Ft,an,jn){this.injector=ye,this.rootComponentType=se,this.config=Ne,this.urlTree=st,this.url=Ft,this.paramsInheritanceStrategy=an,this.urlSerializer=jn}recognize(){const ye=Fs(this.urlTree.root,[],[],this.config.filter(se=>void 0===se.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ye,Ie).pipe((0,I.U)(se=>{if(null===se)return null;const Ne=new _r([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ie,this.rootComponentType,null,this.urlTree.root,-1,{}),st=new Zi(Ne,se),Ft=new _o(this.url,st);return this.inheritParamsAndData(Ft._root),Ft}))}inheritParamsAndData(ye){const se=ye.value,Ne=sr(se,this.paramsInheritanceStrategy);se.params=Object.freeze(Ne.params),se.data=Object.freeze(Ne.data),ye.children.forEach(st=>this.inheritParamsAndData(st))}processSegmentGroup(ye,se,Ne,st){return 0===Ne.segments.length&&Ne.hasChildren()?this.processChildren(ye,se,Ne):this.processSegment(ye,se,Ne,Ne.segments,st)}processChildren(ye,se,Ne){return(0,e.D)(Object.keys(Ne.children)).pipe((0,xe.b)(st=>{const Ft=Ne.children[st],an=oa(se,st);return this.processSegmentGroup(ye,an,Ft,st)}),(0,ct.R)((st,Ft)=>st&&Ft?(st.push(...Ft),st):null),(0,U.o)(st=>null!==st),(0,E.d)(null),Ce(),(0,I.U)(st=>{if(null===st)return null;const Ft=Xo(st);return function xa(fe){fe.sort((ye,se)=>ye.value.outlet===Ie?-1:se.value.outlet===Ie?1:ye.value.outlet.localeCompare(se.value.outlet))}(Ft),Ft}))}processSegment(ye,se,Ne,st,Ft){return(0,e.D)(se).pipe((0,xe.b)(an=>this.processSegmentAgainstRoute(an._injector??ye,an,Ne,st,Ft)),ce(an=>!!an),(0,Ge.K)(an=>{if(_e(an))return al(Ne,st,Ft)?(0,i.of)([]):(0,i.of)(null);throw an}))}processSegmentAgainstRoute(ye,se,Ne,st,Ft){if(se.redirectTo||!Ic(se,Ne,st,Ft))return(0,i.of)(null);let an;if("**"===se.path){const jn=st.length>0?Dt(st).parameters:{},mi=Re(Ne)+st.length,Vi=new _r(st,jn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$e(se),ya(se),se.component??se._loadedComponent??null,se,mc(Ne),mi,Kt(se));an=(0,i.of)({snapshot:Vi,consumedSegments:[],remainingSegments:[]})}else an=Os(Ne,se,st,ye).pipe((0,I.U)(({matched:jn,consumedSegments:mi,remainingSegments:Vi,parameters:zi})=>{if(!jn)return null;const fa=Re(Ne)+mi.length;return{snapshot:new _r(mi,zi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$e(se),ya(se),se.component??se._loadedComponent??null,se,mc(Ne),fa,Kt(se)),consumedSegments:mi,remainingSegments:Vi}}));return an.pipe((0,F.w)(jn=>{if(null===jn)return(0,i.of)(null);const{snapshot:mi,consumedSegments:Vi,remainingSegments:zi}=jn;ye=se._injector??ye;const fa=se._loadedInjector??ye,wr=function aa(fe){return fe.children?fe.children:fe.loadChildren?fe._loadedRoutes:[]}(se),{segmentGroup:Kr,slicedSegments:Us}=Fs(Ne,Vi,zi,wr.filter(Qa=>void 0===Qa.redirectTo));if(0===Us.length&&Kr.hasChildren())return this.processChildren(fa,wr,Kr).pipe((0,I.U)(Qa=>null===Qa?null:[new Zi(mi,Qa)]));if(0===wr.length&&0===Us.length)return(0,i.of)([new Zi(mi,[])]);const gs=ya(se)===Ft;return this.processSegment(fa,wr,Kr,Us,gs?Ie:Ft).pipe((0,I.U)(Qa=>null===Qa?null:[new Zi(mi,Qa)]))}))}}function pc(fe){const ye=fe.value.routeConfig;return ye&&""===ye.path&&void 0===ye.redirectTo}function Xo(fe){const ye=[],se=new Set;for(const Ne of fe){if(!pc(Ne)){ye.push(Ne);continue}const st=ye.find(Ft=>Ne.value.routeConfig===Ft.value.routeConfig);void 0!==st?(st.children.push(...Ne.children),se.add(st)):ye.push(Ne)}for(const Ne of se){const st=Xo(Ne.children);ye.push(new Zi(Ne.value,st))}return ye.filter(Ne=>!se.has(Ne))}function mc(fe){let ye=fe;for(;ye._sourceSegment;)ye=ye._sourceSegment;return ye}function Re(fe){let ye=fe,se=ye._segmentIndexShift??0;for(;ye._sourceSegment;)ye=ye._sourceSegment,se+=ye._segmentIndexShift??0;return se-1}function $e(fe){return fe.data||{}}function Kt(fe){return fe.resolve||{}}function zo(fe){return"string"==typeof fe.title||null===fe.title}function To(fe){return(0,F.w)(ye=>{const se=fe(ye);return se?(0,e.D)(se).pipe((0,I.U)(()=>ye)):(0,i.of)(ye)})}const Ri=new n.InjectionToken("ROUTES");let co=(()=>{class fe{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,n.inject)(n.Compiler)}loadComponent(se){if(this.componentLoaders.get(se))return this.componentLoaders.get(se);if(se._loadedComponent)return(0,i.of)(se._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(se);const Ne=ot(se.loadComponent()).pipe((0,I.U)(lo),(0,we.b)(Ft=>{this.onLoadEndListener&&this.onLoadEndListener(se),se._loadedComponent=Ft}),(0,Z.x)(()=>{this.componentLoaders.delete(se)})),st=new C(Ne,()=>new T.x).pipe($());return this.componentLoaders.set(se,st),st}loadChildren(se,Ne){if(this.childrenLoaders.get(Ne))return this.childrenLoaders.get(Ne);if(Ne._loadedRoutes)return(0,i.of)({routes:Ne._loadedRoutes,injector:Ne._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ne);const Ft=this.loadModuleFactoryOrRoutes(Ne.loadChildren).pipe((0,I.U)(jn=>{this.onLoadEndListener&&this.onLoadEndListener(Ne);let mi,Vi,zi=!1;Array.isArray(jn)?Vi=jn:(mi=jn.create(se).injector,Vi=lt(mi.get(Ri,[],n.InjectFlags.Self|n.InjectFlags.Optional)));return{routes:Vi.map(Ro),injector:mi}}),(0,Z.x)(()=>{this.childrenLoaders.delete(Ne)})),an=new C(Ft,()=>new T.x).pipe($());return this.childrenLoaders.set(Ne,an),an}loadModuleFactoryOrRoutes(se){return ot(se()).pipe((0,I.U)(lo),(0,P.z)(Ne=>Ne instanceof n.NgModuleFactory||Array.isArray(Ne)?(0,i.of)(Ne):(0,e.D)(this.compiler.compileModuleAsync(Ne))))}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function lo(fe){return function Jo(fe){return fe&&"object"==typeof fe&&"default"in fe}(fe)?fe.default:fe}let Tr=(()=>{class fe{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new T.x,this.configLoader=(0,n.inject)(co),this.environmentInjector=(0,n.inject)(n.EnvironmentInjector),this.urlSerializer=(0,n.inject)(Bt),this.rootContexts=(0,n.inject)(ma),this.navigationId=0,this.afterPreactivation=()=>(0,i.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=st=>this.events.next(new ci(st)),this.configLoader.onLoadStartListener=st=>this.events.next(new _i(st))}complete(){this.transitions?.complete()}handleNavigationRequest(se){const Ne=++this.navigationId;this.transitions?.next({...this.transitions.value,...se,id:Ne})}setupNavigations(se){return this.transitions=new d.X({id:0,targetPageId:0,currentUrlTree:se.currentUrlTree,currentRawUrl:se.currentUrlTree,extractedUrl:se.urlHandlingStrategy.extract(se.currentUrlTree),urlAfterRedirects:se.urlHandlingStrategy.extract(se.currentUrlTree),rawUrl:se.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Le,restoredState:null,currentSnapshot:se.routerState.snapshot,targetSnapshot:null,currentRouterState:se.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,p.h)(Ne=>0!==Ne.id),(0,I.U)(Ne=>({...Ne,extractedUrl:se.urlHandlingStrategy.extract(Ne.rawUrl)})),(0,F.w)(Ne=>{let st=!1,Ft=!1;return(0,i.of)(Ne).pipe((0,we.b)(an=>{this.currentNavigation={id:an.id,initialUrl:an.rawUrl,extractedUrl:an.extractedUrl,trigger:an.source,extras:an.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,F.w)(an=>{const jn=se.browserUrlTree.toString(),mi=!se.navigated||an.extractedUrl.toString()!==jn||jn!==se.currentUrlTree.toString();if(!mi&&"reload"!==(an.extras.onSameUrlNavigation??se.onSameUrlNavigation)){const zi="";return this.events.next(new ht(an.id,se.serializeUrl(Ne.rawUrl),zi,0)),se.rawUrlTree=an.rawUrl,an.resolve(null),w.E}if(se.urlHandlingStrategy.shouldProcessUrl(an.rawUrl))return Ka(an.source)&&(se.browserUrlTree=an.extractedUrl),(0,i.of)(an).pipe((0,F.w)(zi=>{const fa=this.transitions?.getValue();return this.events.next(new dn(zi.id,this.urlSerializer.serialize(zi.extractedUrl),zi.source,zi.restoredState)),fa!==this.transitions?.getValue()?w.E:Promise.resolve(zi)}),function ei(fe,ye,se,Ne){return(0,F.w)(st=>function bi(fe,ye,se,Ne,st){return new Wi(fe,ye,se,Ne,st).apply()}(fe,ye,se,st.extractedUrl,Ne).pipe((0,I.U)(Ft=>({...st,urlAfterRedirects:Ft}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,se.config),(0,we.b)(zi=>{this.currentNavigation={...this.currentNavigation,finalUrl:zi.urlAfterRedirects},Ne.urlAfterRedirects=zi.urlAfterRedirects}),function yn(fe,ye,se,Ne,st){return(0,P.z)(Ft=>function as(fe,ye,se,Ne,st,Ft,an="emptyOnly"){return new Ko(fe,ye,se,Ne,st,an,Ft).recognize().pipe((0,F.w)(jn=>null===jn?function jo(fe){return new L.y(ye=>ye.error(fe))}(new Ao):(0,i.of)(jn)))}(fe,ye,se,Ft.urlAfterRedirects,Ne.serialize(Ft.urlAfterRedirects),Ne,st).pipe((0,I.U)(an=>({...Ft,targetSnapshot:an}))))}(this.environmentInjector,this.rootComponentType,se.config,this.urlSerializer,se.paramsInheritanceStrategy),(0,we.b)(zi=>{if(Ne.targetSnapshot=zi.targetSnapshot,"eager"===se.urlUpdateStrategy){if(!zi.extras.skipLocationChange){const wr=se.urlHandlingStrategy.merge(zi.urlAfterRedirects,zi.rawUrl);se.setBrowserUrl(wr,zi)}se.browserUrlTree=zi.urlAfterRedirects}const fa=new Nt(zi.id,this.urlSerializer.serialize(zi.extractedUrl),this.urlSerializer.serialize(zi.urlAfterRedirects),zi.targetSnapshot);this.events.next(fa)}));if(mi&&se.urlHandlingStrategy.shouldProcessUrl(se.rawUrlTree)){const{id:zi,extractedUrl:fa,source:wr,restoredState:Kr,extras:Us}=an,gs=new dn(zi,this.urlSerializer.serialize(fa),wr,Kr);this.events.next(gs);const Qa=qa(fa,this.rootComponentType).snapshot;return Ne={...an,targetSnapshot:Qa,urlAfterRedirects:fa,extras:{...Us,skipLocationChange:!1,replaceUrl:!1}},(0,i.of)(Ne)}{const zi="";return this.events.next(new ht(an.id,se.serializeUrl(Ne.extractedUrl),zi,1)),se.rawUrlTree=an.rawUrl,an.resolve(null),w.E}}),(0,we.b)(an=>{const jn=new It(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(jn)}),(0,I.U)(an=>Ne={...an,guards:Za(an.targetSnapshot,an.currentSnapshot,this.rootContexts)}),function On(fe,ye){return(0,P.z)(se=>{const{targetSnapshot:Ne,currentSnapshot:st,guards:{canActivateChecks:Ft,canDeactivateChecks:an}}=se;return 0===an.length&&0===Ft.length?(0,i.of)({...se,guardsResult:!0}):function Rn(fe,ye,se,Ne){return(0,e.D)(fe).pipe((0,P.z)(st=>function lr(fe,ye,se,Ne,st){const Ft=ye&&ye.routeConfig?ye.routeConfig.canDeactivate:null;if(!Ft||0===Ft.length)return(0,i.of)(!0);const an=Ft.map(jn=>{const mi=hr(ye)??st,Vi=Pa(jn,mi);return ot(function $i(fe){return fe&&Je(fe.canDeactivate)}(Vi)?Vi.canDeactivate(fe,ye,se,Ne):mi.runInContext(()=>Vi(fe,ye,se,Ne))).pipe(ce())});return(0,i.of)(an).pipe(Vt())}(st.component,st.route,se,ye,Ne)),ce(st=>!0!==st,!0))}(an,Ne,st,fe).pipe((0,P.z)(jn=>jn&&function Ke(fe){return"boolean"==typeof fe}(jn)?function ni(fe,ye,se,Ne){return(0,e.D)(ye).pipe((0,xe.b)(st=>(0,l.z)(function so(fe,ye){return null!==fe&&ye&&ye(new Ui(fe)),(0,i.of)(!0)}(st.route.parent,Ne),function Ii(fe,ye){return null!==fe&&ye&&ye(new vi(fe)),(0,i.of)(!0)}(st.route,Ne),function $a(fe,ye,se){const Ne=ye[ye.length-1],Ft=ye.slice(0,ye.length-1).reverse().map(an=>function ns(fe){const ye=fe.routeConfig?fe.routeConfig.canActivateChild:null;return ye&&0!==ye.length?{node:fe,guards:ye}:null}(an)).filter(an=>null!==an).map(an=>(0,m.P)(()=>{const jn=an.guards.map(mi=>{const Vi=hr(an.node)??se,zi=Pa(mi,Vi);return ot(function ti(fe){return fe&&Je(fe.canActivateChild)}(zi)?zi.canActivateChild(Ne,fe):Vi.runInContext(()=>zi(Ne,fe))).pipe(ce())});return(0,i.of)(jn).pipe(Vt())}));return(0,i.of)(Ft).pipe(Vt())}(fe,st.path,se),function io(fe,ye,se){const Ne=ye.routeConfig?ye.routeConfig.canActivate:null;if(!Ne||0===Ne.length)return(0,i.of)(!0);const st=Ne.map(Ft=>(0,m.P)(()=>{const an=hr(ye)??se,jn=Pa(Ft,an);return ot(function Qt(fe){return fe&&Je(fe.canActivate)}(jn)?jn.canActivate(ye,fe):an.runInContext(()=>jn(ye,fe))).pipe(ce())}));return(0,i.of)(st).pipe(Vt())}(fe,st.route,se))),ce(st=>!0!==st,!0))}(Ne,Ft,fe,ye):(0,i.of)(jn)),(0,I.U)(jn=>({...se,guardsResult:jn})))})}(this.environmentInjector,an=>this.events.next(an)),(0,we.b)(an=>{if(Ne.guardsResult=an.guardsResult,Ei(an.guardsResult))throw ia(0,an.guardsResult);const jn=new Ot(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot,!!an.guardsResult);this.events.next(jn)}),(0,p.h)(an=>!!an.guardsResult||(se.restoreHistory(an),this.cancelNavigationTransition(an,"",3),!1)),To(an=>{if(an.guards.canActivateChecks.length)return(0,i.of)(an).pipe((0,we.b)(jn=>{const mi=new fn(jn.id,this.urlSerializer.serialize(jn.extractedUrl),this.urlSerializer.serialize(jn.urlAfterRedirects),jn.targetSnapshot);this.events.next(mi)}),(0,F.w)(jn=>{let mi=!1;return(0,i.of)(jn).pipe(function ii(fe,ye){return(0,P.z)(se=>{const{targetSnapshot:Ne,guards:{canActivateChecks:st}}=se;if(!st.length)return(0,i.of)(se);let Ft=0;return(0,e.D)(st).pipe((0,xe.b)(an=>function hi(fe,ye,se,Ne){const st=fe.routeConfig,Ft=fe._resolve;return void 0!==st?.title&&!zo(st)&&(Ft[pt]=st.title),function Ki(fe,ye,se,Ne){const st=function ea(fe){return[...Object.keys(fe),...Object.getOwnPropertySymbols(fe)]}(fe);if(0===st.length)return(0,i.of)({});const Ft={};return(0,e.D)(st).pipe((0,P.z)(an=>function ra(fe,ye,se,Ne){const st=hr(ye)??Ne,Ft=Pa(fe,st);return ot(Ft.resolve?Ft.resolve(ye,se):st.runInContext(()=>Ft(ye,se)))}(fe[an],ye,se,Ne).pipe(ce(),(0,we.b)(jn=>{Ft[an]=jn}))),pe(1),(0,H.h)(Ft),(0,Ge.K)(an=>_e(an)?w.E:(0,O._)(an)))}(Ft,fe,ye,Ne).pipe((0,I.U)(an=>(fe._resolvedData=an,fe.data=sr(fe,se).resolve,st&&zo(st)&&(fe.data[pt]=st.title),null)))}(an.route,Ne,fe,ye)),(0,we.b)(()=>Ft++),pe(1),(0,P.z)(an=>Ft===st.length?(0,i.of)(se):w.E))})}(se.paramsInheritanceStrategy,this.environmentInjector),(0,we.b)({next:()=>mi=!0,complete:()=>{mi||(se.restoreHistory(jn),this.cancelNavigationTransition(jn,"",2))}}))}),(0,we.b)(jn=>{const mi=new Xn(jn.id,this.urlSerializer.serialize(jn.extractedUrl),this.urlSerializer.serialize(jn.urlAfterRedirects),jn.targetSnapshot);this.events.next(mi)}))}),To(an=>{const jn=mi=>{const Vi=[];mi.routeConfig?.loadComponent&&!mi.routeConfig._loadedComponent&&Vi.push(this.configLoader.loadComponent(mi.routeConfig).pipe((0,we.b)(zi=>{mi.component=zi}),(0,I.U)(()=>{})));for(const zi of mi.children)Vi.push(...jn(zi));return Vi};return(0,h.a)(jn(an.targetSnapshot.root)).pipe((0,E.d)(),(0,z.q)(1))}),To(()=>this.afterPreactivation()),(0,I.U)(an=>{const jn=function zr(fe,ye,se){const Ne=cr(fe,ye._root,se?se._root:void 0);return new na(Ne,ye)}(se.routeReuseStrategy,an.targetSnapshot,an.currentRouterState);return Ne={...an,targetRouterState:jn}}),(0,we.b)(an=>{se.currentUrlTree=an.urlAfterRedirects,se.rawUrlTree=se.urlHandlingStrategy.merge(an.urlAfterRedirects,an.rawUrl),se.routerState=an.targetRouterState,"deferred"===se.urlUpdateStrategy&&(an.extras.skipLocationChange||se.setBrowserUrl(se.rawUrlTree,an),se.browserUrlTree=an.urlAfterRedirects)}),((fe,ye,se)=>(0,I.U)(Ne=>(new br(ye,Ne.targetRouterState,Ne.currentRouterState,se).activate(fe),Ne)))(this.rootContexts,se.routeReuseStrategy,an=>this.events.next(an)),(0,z.q)(1),(0,we.b)({next:an=>{st=!0,this.lastSuccessfulNavigation=this.currentNavigation,se.navigated=!0,this.events.next(new St(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(se.currentUrlTree))),se.titleStrategy?.updateTitle(an.targetRouterState.snapshot),an.resolve(!0)},complete:()=>{st=!0}}),(0,Z.x)(()=>{st||Ft||this.cancelNavigationTransition(Ne,"",1),this.currentNavigation?.id===Ne.id&&(this.currentNavigation=null)}),(0,Ge.K)(an=>{if(Ft=!0,Yr(an)){yo(an)||(se.navigated=!0,se.restoreHistory(Ne,!0));const jn=new jt(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),an.message,an.cancellationCode);if(this.events.next(jn),yo(an)){const mi=se.urlHandlingStrategy.merge(an.url,se.rawUrlTree),Vi={skipLocationChange:Ne.extras.skipLocationChange,replaceUrl:"eager"===se.urlUpdateStrategy||Ka(Ne.source)};se.scheduleNavigation(mi,Le,null,Vi,{resolve:Ne.resolve,reject:Ne.reject,promise:Ne.promise})}else Ne.resolve(!1)}else{se.restoreHistory(Ne,!0);const jn=new on(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),an,Ne.targetSnapshot??void 0);this.events.next(jn);try{Ne.resolve(se.errorHandler(an))}catch(mi){Ne.reject(mi)}}return w.E}))}))}cancelNavigationTransition(se,Ne,st){const Ft=new jt(se.id,this.urlSerializer.serialize(se.extractedUrl),Ne,st);this.events.next(Ft),se.resolve(!1)}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function Ka(fe){return fe!==Le}let Nr=(()=>{class fe{buildTitle(se){let Ne,st=se.root;for(;void 0!==st;)Ne=this.getResolvedTitleForRoute(st)??Ne,st=st.children.find(Ft=>Ft.outlet===Ie);return Ne}getResolvedTitleForRoute(se){return se.data[pt]}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:function(){return(0,n.inject)(La)},providedIn:"root"}),fe})(),La=(()=>{class fe extends Nr{constructor(se){super(),this.title=se}updateTitle(se){const Ne=this.buildTitle(se);void 0!==Ne&&this.title.setTitle(Ne)}}return fe.\u0275fac=function(se){return new(se||fe)(n.\u0275\u0275inject(Pe.Title))},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Gs=(()=>{class fe{}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:function(){return(0,n.inject)(ic)},providedIn:"root"}),fe})();class jr{shouldDetach(ye){return!1}store(ye,se){}shouldAttach(ye){return!1}retrieve(ye){return null}shouldReuseRoute(ye,se){return ye.routeConfig===se.routeConfig}}let ic=(()=>{class fe extends jr{}return fe.\u0275fac=function(){let ye;return function(Ne){return(ye||(ye=n.\u0275\u0275getInheritedFactory(fe)))(Ne||fe)}}(),fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const Ea=new n.InjectionToken("",{providedIn:"root",factory:()=>({})});let nr=(()=>{class fe{}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:function(){return(0,n.inject)(Ra)},providedIn:"root"}),fe})(),Ra=(()=>{class fe{shouldProcessUrl(se){return!0}extract(se){return se}merge(se,Ne){return se}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function Xs(fe){throw fe}function Ss(fe,ye,se){return ye.parse("/")}const Yc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let yr=(()=>{class fe{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,n.inject)(n.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,n.inject)(Ea,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Xs,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ss,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,n.inject)(nr),this.routeReuseStrategy=(0,n.inject)(Gs),this.urlCreationStrategy=(0,n.inject)(qi),this.titleStrategy=(0,n.inject)(Nr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=lt((0,n.inject)(Ri,{optional:!0})??[]),this.navigationTransitions=(0,n.inject)(Tr),this.urlSerializer=(0,n.inject)(Bt),this.location=(0,n.inject)(j.Ye),this.isNgZoneEnabled=(0,n.inject)(n.NgZone)instanceof n.NgZone&&n.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Dn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=qa(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(se=>{this.lastSuccessfulId=se.id,this.currentPageId=this.browserPageId??0},se=>{this.console.warn(`Unhandled Navigation Error: ${se}`)})}resetRootComponentType(se){this.routerState.root.component=se,this.navigationTransitions.rootComponentType=se}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const se=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Le,se)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(se=>{const Ne="popstate"===se.type?"popstate":"hashchange";"popstate"===Ne&&setTimeout(()=>{this.navigateToSyncWithBrowser(se.url,Ne,se.state)},0)}))}navigateToSyncWithBrowser(se,Ne,st){const Ft={replaceUrl:!0},an=st?.navigationId?st:null;if(st){const mi={...st};delete mi.navigationId,delete mi.\u0275routerPageId,0!==Object.keys(mi).length&&(Ft.state=mi)}const jn=this.parseUrl(se);this.scheduleNavigation(jn,Ne,an,Ft)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(se){this.config=se.map(Ro),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(se,Ne={}){const{relativeTo:st,queryParams:Ft,fragment:an,queryParamsHandling:jn,preserveFragment:mi}=Ne,Vi=mi?this.currentUrlTree.fragment:an;let zi=null;switch(jn){case"merge":zi={...this.currentUrlTree.queryParams,...Ft};break;case"preserve":zi=this.currentUrlTree.queryParams;break;default:zi=Ft||null}return null!==zi&&(zi=this.removeEmptyProps(zi)),this.urlCreationStrategy.createUrlTree(st,this.routerState,this.currentUrlTree,se,zi,Vi??null)}navigateByUrl(se,Ne={skipLocationChange:!1}){const st=Ei(se)?se:this.parseUrl(se),Ft=this.urlHandlingStrategy.merge(st,this.rawUrlTree);return this.scheduleNavigation(Ft,Le,null,Ne)}navigate(se,Ne={skipLocationChange:!1}){return function kc(fe){for(let ye=0;ye<fe.length;ye++){const se=fe[ye];if(null==se)throw new n.\u0275RuntimeError(4008,false)}}(se),this.navigateByUrl(this.createUrlTree(se,Ne),Ne)}serializeUrl(se){return this.urlSerializer.serialize(se)}parseUrl(se){let Ne;try{Ne=this.urlSerializer.parse(se)}catch(st){Ne=this.malformedUriErrorHandler(st,this.urlSerializer,se)}return Ne}isActive(se,Ne){let st;if(st=!0===Ne?{...Yc}:!1===Ne?{...hc}:Ne,Ei(se))return Ut(this.currentUrlTree,se,st);const Ft=this.parseUrl(se);return Ut(this.currentUrlTree,Ft,st)}removeEmptyProps(se){return Object.keys(se).reduce((Ne,st)=>{const Ft=se[st];return null!=Ft&&(Ne[st]=Ft),Ne},{})}scheduleNavigation(se,Ne,st,Ft,an){if(this.disposed)return Promise.resolve(!1);let jn,mi,Vi,zi;return an?(jn=an.resolve,mi=an.reject,Vi=an.promise):Vi=new Promise((fa,wr)=>{jn=fa,mi=wr}),zi="computed"===this.canceledNavigationResolution?st&&st.\u0275routerPageId?st.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:zi,source:Ne,restoredState:st,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:se,extras:Ft,resolve:jn,reject:mi,promise:Vi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Vi.catch(fa=>Promise.reject(fa))}setBrowserUrl(se,Ne){const st=this.urlSerializer.serialize(se);if(this.location.isCurrentPathEqualTo(st)||Ne.extras.replaceUrl){const an={...Ne.extras.state,...this.generateNgRouterState(Ne.id,this.browserPageId)};this.location.replaceState(st,"",an)}else{const Ft={...Ne.extras.state,...this.generateNgRouterState(Ne.id,Ne.targetPageId)};this.location.go(st,"",Ft)}}restoreHistory(se,Ne=!1){if("computed"===this.canceledNavigationResolution){const Ft=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Ft?this.location.historyGo(Ft):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Ft&&(this.resetState(se),this.browserUrlTree=se.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Ne&&this.resetState(se),this.resetUrlToCurrentUrlTree())}resetState(se){this.routerState=se.currentRouterState,this.currentUrlTree=se.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,se.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(se,Ne){return"computed"===this.canceledNavigationResolution?{navigationId:se,\u0275routerPageId:Ne}:{navigationId:se}}}return fe.\u0275fac=function(se){return new(se||fe)},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Zs=(()=>{class fe{constructor(se,Ne,st,Ft,an,jn){this.router=se,this.route=Ne,this.tabIndexAttribute=st,this.renderer=Ft,this.el=an,this.locationStrategy=jn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new T.x;const mi=an.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===mi||"area"===mi,this.isAnchorElement?this.subscription=se.events.subscribe(Vi=>{Vi instanceof St&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(se){this._preserveFragment=(0,n.\u0275coerceToBoolean)(se)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(se){this._skipLocationChange=(0,n.\u0275coerceToBoolean)(se)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(se){this._replaceUrl=(0,n.\u0275coerceToBoolean)(se)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(se){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",se)}ngOnChanges(se){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(se){null!=se?(this.commands=Array.isArray(se)?se:[se],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(se,Ne,st,Ft,an){return!!(null===this.urlTree||this.isAnchorElement&&(0!==se||Ne||st||Ft||an||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const se=null===this.href?null:(0,n.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",se)}applyAttributeValue(se,Ne){const st=this.renderer,Ft=this.el.nativeElement;null!==Ne?st.setAttribute(Ft,se,Ne):st.removeAttribute(Ft,se)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return fe.\u0275fac=function(se){return new(se||fe)(n.\u0275\u0275directiveInject(yr),n.\u0275\u0275directiveInject(dr),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(j.S$))},fe.\u0275dir=n.\u0275\u0275defineDirective({type:fe,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(se,Ne){1&se&&n.\u0275\u0275listener("click",function(Ft){return Ne.onClick(Ft.button,Ft.ctrlKey,Ft.shiftKey,Ft.altKey,Ft.metaKey)}),2&se&&n.\u0275\u0275attribute("target",Ne.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),fe})(),Ts=(()=>{class fe{get isActive(){return this._isActive}constructor(se,Ne,st,Ft,an){this.router=se,this.element=Ne,this.renderer=st,this.cdr=Ft,this.link=an,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new n.EventEmitter,this.routerEventsSubscription=se.events.subscribe(jn=>{jn instanceof St&&this.update()})}ngAfterContentInit(){(0,i.of)(this.links.changes,(0,i.of)(null)).pipe((0,oe.J)()).subscribe(se=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const se=[...this.links.toArray(),this.link].filter(Ne=>!!Ne).map(Ne=>Ne.onChanges);this.linkInputChangesSubscription=(0,e.D)(se).pipe((0,oe.J)()).subscribe(Ne=>{this._isActive!==this.isLinkActive(this.router)(Ne)&&this.update()})}set routerLinkActive(se){const Ne=Array.isArray(se)?se:se.split(" ");this.classes=Ne.filter(st=>!!st)}ngOnChanges(se){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const se=this.hasActiveLinks();this._isActive!==se&&(this._isActive=se,this.cdr.markForCheck(),this.classes.forEach(Ne=>{se?this.renderer.addClass(this.element.nativeElement,Ne):this.renderer.removeClass(this.element.nativeElement,Ne)}),se&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(se))})}isLinkActive(se){const Ne=function Lc(fe){return!!fe.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return st=>!!st.urlTree&&se.isActive(st.urlTree,Ne)}hasActiveLinks(){const se=this.isLinkActive(this.router);return this.link&&se(this.link)||this.links.some(se)}}return fe.\u0275fac=function(se){return new(se||fe)(n.\u0275\u0275directiveInject(yr),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Zs,8))},fe.\u0275dir=n.\u0275\u0275defineDirective({type:fe,selectors:[["","routerLinkActive",""]],contentQueries:function(se,Ne,st){if(1&se&&n.\u0275\u0275contentQuery(st,Zs,5),2&se){let Ft;n.\u0275\u0275queryRefresh(Ft=n.\u0275\u0275loadQuery())&&(Ne.links=Ft)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),fe})();class oc{}let fc=(()=>{class fe{constructor(se,Ne,st,Ft,an){this.router=se,this.injector=st,this.preloadingStrategy=Ft,this.loader=an}setUpPreloading(){this.subscription=this.router.events.pipe((0,p.h)(se=>se instanceof St),(0,xe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(se,Ne){const st=[];for(const Ft of Ne){Ft.providers&&!Ft._injector&&(Ft._injector=(0,n.createEnvironmentInjector)(Ft.providers,se,`Route: ${Ft.path}`));const an=Ft._injector??se,jn=Ft._loadedInjector??an;(Ft.loadChildren&&!Ft._loadedRoutes&&void 0===Ft.canLoad||Ft.loadComponent&&!Ft._loadedComponent)&&st.push(this.preloadConfig(an,Ft)),(Ft.children||Ft._loadedRoutes)&&st.push(this.processRoutes(jn,Ft.children??Ft._loadedRoutes))}return(0,e.D)(st).pipe((0,oe.J)())}preloadConfig(se,Ne){return this.preloadingStrategy.preload(Ne,()=>{let st;st=Ne.loadChildren&&void 0===Ne.canLoad?this.loader.loadChildren(se,Ne):(0,i.of)(null);const Ft=st.pipe((0,P.z)(an=>null===an?(0,i.of)(void 0):(Ne._loadedRoutes=an.routes,Ne._loadedInjector=an.injector,this.processRoutes(an.injector??se,an.routes))));if(Ne.loadComponent&&!Ne._loadedComponent){const an=this.loader.loadComponent(Ne);return(0,e.D)([Ft,an]).pipe((0,oe.J)())}return Ft})}}return fe.\u0275fac=function(se){return new(se||fe)(n.\u0275\u0275inject(yr),n.\u0275\u0275inject(n.Compiler),n.\u0275\u0275inject(n.EnvironmentInjector),n.\u0275\u0275inject(oc),n.\u0275\u0275inject(co))},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const Ir=new n.InjectionToken("");let rs=(()=>{class fe{constructor(se,Ne,st,Ft,an={}){this.urlSerializer=se,this.transitions=Ne,this.viewportScroller=st,this.zone=Ft,this.options=an,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},an.scrollPositionRestoration=an.scrollPositionRestoration||"disabled",an.anchorScrolling=an.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(se=>{se instanceof dn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=se.navigationTrigger,this.restoredId=se.restoredState?se.restoredState.navigationId:0):se instanceof St&&(this.lastId=se.id,this.scheduleScrollEvent(se,this.urlSerializer.parse(se.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(se=>{se instanceof gn&&(se.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(se.position):se.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(se.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(se,Ne){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new gn(se,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ne))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return fe.\u0275fac=function(se){n.\u0275\u0275invalidFactory()},fe.\u0275prov=n.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac}),fe})();var xr=(()=>((xr=xr||{})[xr.COMPLETE=0]="COMPLETE",xr[xr.FAILED=1]="FAILED",xr[xr.REDIRECTING=2]="REDIRECTING",xr))();const Hr=!1;function An(fe,ye){return{\u0275kind:fe,\u0275providers:ye}}const Vn=new n.InjectionToken("",{providedIn:"root",factory:()=>!1});function ua(){const fe=(0,n.inject)(n.Injector);return ye=>{const se=fe.get(n.ApplicationRef);if(ye!==se.components[0])return;const Ne=fe.get(yr),st=fe.get(Ji);1===fe.get(Ta)&&Ne.initialNavigation(),fe.get(Ma,null,n.InjectFlags.Optional)?.setUpPreloading(),fe.get(Ir,null,n.InjectFlags.Optional)?.init(),Ne.resetRootComponentType(se.componentTypes[0]),st.closed||(st.next(),st.complete(),st.unsubscribe())}}const Ji=new n.InjectionToken(Hr?"bootstrap done indicator":"",{factory:()=>new T.x}),Ta=new n.InjectionToken(Hr?"initial navigation":"",{providedIn:"root",factory:()=>1});function _c(){let fe=[];return fe=Hr?[{provide:n.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const ye=(0,n.inject)(yr);return()=>ye.events.subscribe(se=>{console.group?.(`Router Event: ${se.constructor.name}`),console.log(function Mt(fe){if(!("type"in fe))return`Unknown Router Event: ${fe.constructor.name}`;switch(fe.type){case 14:return`ActivationEnd(path: '${fe.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${fe.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${fe.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${fe.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${fe.id}, url: '${fe.url}', urlAfterRedirects: '${fe.urlAfterRedirects}', state: ${fe.state}, shouldActivate: ${fe.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${fe.id}, url: '${fe.url}', urlAfterRedirects: '${fe.urlAfterRedirects}', state: ${fe.state})`;case 2:return`NavigationCancel(id: ${fe.id}, url: '${fe.url}')`;case 16:return`NavigationSkipped(id: ${fe.id}, url: '${fe.url}')`;case 1:return`NavigationEnd(id: ${fe.id}, url: '${fe.url}', urlAfterRedirects: '${fe.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${fe.id}, url: '${fe.url}', error: ${fe.error})`;case 0:return`NavigationStart(id: ${fe.id}, url: '${fe.url}')`;case 6:return`ResolveEnd(id: ${fe.id}, url: '${fe.url}', urlAfterRedirects: '${fe.urlAfterRedirects}', state: ${fe.state})`;case 5:return`ResolveStart(id: ${fe.id}, url: '${fe.url}', urlAfterRedirects: '${fe.urlAfterRedirects}', state: ${fe.state})`;case 10:return`RouteConfigLoadEnd(path: ${fe.route.path})`;case 9:return`RouteConfigLoadStart(path: ${fe.route.path})`;case 4:return`RoutesRecognized(id: ${fe.id}, url: '${fe.url}', urlAfterRedirects: '${fe.urlAfterRedirects}', state: ${fe.state})`;case 15:return`Scroll(anchor: '${fe.anchor}', position: '${fe.position?`${fe.position[0]}, ${fe.position[1]}`:null}')`}}(se)),console.log(se),console.groupEnd?.()})}}]:[],An(1,fe)}const Ma=new n.InjectionToken(Hr?"router preloader":"");function Is(fe){return An(0,[{provide:Ma,useExisting:fc},{provide:oc,useExisting:fe}])}const Kc=!1,Ns=new n.InjectionToken(Kc?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Dr=[j.Ye,{provide:Bt,useClass:En},yr,ma,{provide:dr,useFactory:function nn(fe){return fe.routerState.root},deps:[yr]},co,Kc?{provide:Vn,useValue:!0}:[]];function Rc(){return new n.NgProbeToken("Router",yr)}let Fc=(()=>{class fe{constructor(se){}static forRoot(se,Ne){return{ngModule:fe,providers:[Dr,Kc&&Ne?.enableTracing?_c().\u0275providers:[],{provide:Ri,multi:!0,useValue:se},{provide:Ns,useFactory:wi,deps:[[yr,new n.Optional,new n.SkipSelf]]},{provide:Ea,useValue:Ne||{}},Ne?.useHash?{provide:j.S$,useClass:j.Do}:{provide:j.S$,useClass:j.b0},{provide:Ir,useFactory:()=>{const fe=(0,n.inject)(j.EM),ye=(0,n.inject)(n.NgZone),se=(0,n.inject)(Ea),Ne=(0,n.inject)(Tr),st=(0,n.inject)(Bt);return se.scrollOffset&&fe.setOffset(se.scrollOffset),new rs(st,Ne,fe,ye,se)}},Ne?.preloadingStrategy?Is(Ne.preloadingStrategy).\u0275providers:[],{provide:n.NgProbeToken,multi:!0,useFactory:Rc},Ne?.initialNavigation?Ur(Ne):[],[{provide:ir,useFactory:ua},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:ir}]]}}static forChild(se){return{ngModule:fe,providers:[{provide:Ri,multi:!0,useValue:se}]}}}return fe.\u0275fac=function(se){return new(se||fe)(n.\u0275\u0275inject(Ns,8))},fe.\u0275mod=n.\u0275\u0275defineNgModule({type:fe}),fe.\u0275inj=n.\u0275\u0275defineInjector({imports:[er]}),fe})();function wi(fe){if(Kc&&fe)throw new n.\u0275RuntimeError(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ur(fe){return["disabled"===fe.initialNavigation?An(3,[{provide:n.APP_INITIALIZER,multi:!0,useFactory:()=>{const ye=(0,n.inject)(yr);return()=>{ye.setUpLocationChangeListener()}}},{provide:Ta,useValue:2}]).\u0275providers:[],"enabledBlocking"===fe.initialNavigation?An(2,[{provide:Ta,useValue:0},{provide:n.APP_INITIALIZER,multi:!0,deps:[n.Injector],useFactory:ye=>{const se=ye.get(j.V_,Promise.resolve());return()=>se.then(()=>new Promise(Ne=>{const st=ye.get(yr),Ft=ye.get(Ji);(function Ga(fe,ye){fe.events.pipe((0,p.h)(se=>se instanceof St||se instanceof jt||se instanceof on||se instanceof ht),(0,I.U)(se=>se instanceof St||se instanceof ht?xr.COMPLETE:se instanceof jt&&(0===se.code||1===se.code)?xr.REDIRECTING:xr.FAILED),(0,p.h)(se=>se!==xr.REDIRECTING),(0,z.q)(1)).subscribe(()=>{ye()})})(st,()=>{Ne(!0)}),ye.get(Tr).afterPreactivation=()=>(Ne(!0),Ft.closed?(0,i.of)(void 0):Ft),st.initialNavigation()}))}}]).\u0275providers:[]]}const ir=new n.InjectionToken(Kc?"Router Initializer":"")},97600:(Ee,Q,t)=>{"use strict";function n(){}t.d(Q,{kL:()=>Su,ST:()=>ic,ce:()=>_i,zX:()=>ad});const e=function(){let D=0;return function(){return D++}}();function i(D){return null===D||typeof D>"u"}function d(D){if(Array.isArray&&Array.isArray(D))return!0;const b=Object.prototype.toString.call(D);return"[object"===b.slice(0,7)&&"Array]"===b.slice(-6)}function a(D){return null!==D&&"[object Object]"===Object.prototype.toString.call(D)}const u=D=>("number"==typeof D||D instanceof Number)&&isFinite(+D);function h(D,b){return u(D)?D:b}function l(D,b){return typeof D>"u"?b:D}const x=(D,b)=>"string"==typeof D&&D.endsWith("%")?parseFloat(D)/100*b:+D;function O(D,b,v){if(D&&"function"==typeof D.call)return D.apply(v,b)}function L(D,b,v,S){let N,K,te;if(d(D))if(K=D.length,S)for(N=K-1;N>=0;N--)b.call(v,D[N],N);else for(N=0;N<K;N++)b.call(v,D[N],N);else if(a(D))for(te=Object.keys(D),K=te.length,N=0;N<K;N++)b.call(v,D[te[N]],te[N])}function w(D,b){let v,S,N,K;if(!D||!b||D.length!==b.length)return!1;for(v=0,S=D.length;v<S;++v)if(N=D[v],K=b[v],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function B(D){if(d(D))return D.map(B);if(a(D)){const b=Object.create(null),v=Object.keys(D),S=v.length;let N=0;for(;N<S;++N)b[v[N]]=B(D[v[N]]);return b}return D}function _(D){return-1===["__proto__","prototype","constructor"].indexOf(D)}function y(D,b,v,S){if(!_(D))return;const N=b[D],K=v[D];a(N)&&a(K)?$(N,K,S):b[D]=B(K)}function $(D,b,v){const S=d(b)?b:[b],N=S.length;if(!a(D))return D;const K=(v=v||{}).merger||y;for(let te=0;te<N;++te){if(!a(b=S[te]))continue;const re=Object.keys(b);for(let he=0,Fe=re.length;he<Fe;++he)K(re[he],D,b,v)}return D}function C(D,b){return $(D,b,{merger:T})}function T(D,b,v){if(!_(D))return;const S=b[D],N=v[D];a(S)&&a(N)?C(S,N):Object.prototype.hasOwnProperty.call(b,D)||(b[D]=B(N))}const I={"":D=>D,x:D=>D.x,y:D=>D.y};function F(D,b){return(I[b]||(I[b]=function z(D){const b=function X(D){const b=D.split("."),v=[];let S="";for(const N of b)S+=N,S.endsWith("\\")?S=S.slice(0,-1)+".":(v.push(S),S="");return v}(D);return v=>{for(const S of b){if(""===S)break;v=v&&v[S]}return v}}(b)))(D)}function p(D){return D.charAt(0).toUpperCase()+D.slice(1)}const P=D=>typeof D<"u",E=D=>"function"==typeof D,R=(D,b)=>{if(D.size!==b.size)return!1;for(const v of D)if(!b.has(v))return!1;return!0},G=Math.PI,ce=2*G,xe=ce+G,we=Number.POSITIVE_INFINITY,Ge=G/180,ct=G/2,pe=G/4,Ce=2*G/3,U=Math.log10,H=Math.sign;function Z(D){const b=Math.round(D);D=Ie(D,b,D/1e3)?b:D;const v=Math.pow(10,Math.floor(U(D))),S=D/v;return(S<=1?1:S<=2?2:S<=5?5:10)*v}function Pe(D){return!isNaN(parseFloat(D))&&isFinite(D)}function Ie(D,b,v){return Math.abs(D-b)<v}function Ht(D,b,v){let S,N,K;for(S=0,N=D.length;S<N;S++)K=D[S][v],isNaN(K)||(b.min=Math.min(b.min,K),b.max=Math.max(b.max,K))}function Wt(D){return D*(G/180)}function Xe(D){return D*(180/G)}function Qe(D){if(!u(D))return;let b=1,v=0;for(;Math.round(D*b)/b!==D;)b*=10,v++;return v}function Be(D,b){const v=b.x-D.x,S=b.y-D.y,N=Math.sqrt(v*v+S*S);let K=Math.atan2(S,v);return K<-.5*G&&(K+=ce),{angle:K,distance:N}}function at(D,b){return Math.sqrt(Math.pow(b.x-D.x,2)+Math.pow(b.y-D.y,2))}function lt(D,b){return(D-b+xe)%ce-G}function Dt(D){return(D%ce+ce)%ce}function Yt(D,b,v,S){const N=Dt(D),K=Dt(b),te=Dt(v),re=Dt(K-N),he=Dt(te-N),Fe=Dt(N-K),_t=Dt(N-te);return N===K||N===te||S&&K===te||re>he&&Fe<_t}function Tt(D,b,v){return Math.max(b,Math.min(v,D))}function Gt(D,b,v,S=1e-6){return D>=Math.min(b,v)-S&&D<=Math.max(b,v)+S}function wt(D,b,v){v=v||(te=>D[te]<b);let K,S=D.length-1,N=0;for(;S-N>1;)K=N+S>>1,v(K)?N=K:S=K;return{lo:N,hi:S}}const Ze=(D,b,v,S)=>wt(D,v,S?N=>D[N][b]<=v:N=>D[N][b]<v),Ut=(D,b,v)=>wt(D,v,S=>D[S][b]>=v),xn=["push","pop","shift","splice","unshift"];function hn(D,b){const v=D._chartjs;if(!v)return;const S=v.listeners,N=S.indexOf(b);-1!==N&&S.splice(N,1),!(S.length>0)&&(xn.forEach(K=>{delete D[K]}),delete D._chartjs)}function pn(D){const b=new Set;let v,S;for(v=0,S=D.length;v<S;++v)b.add(D[v]);return b.size===S?D:Array.from(b)}const Dn=typeof window>"u"?function(D){return D()}:window.requestAnimationFrame;function Tn(D,b,v){const S=v||(te=>Array.prototype.slice.call(te));let N=!1,K=[];return function(...te){K=S(te),N||(N=!0,Dn.call(window,()=>{N=!1,D.apply(b,K)}))}}const Yn=D=>"start"===D?"left":"end"===D?"right":"center",cn=(D,b,v)=>"start"===D?b:"end"===D?v:(b+v)/2;function Bt(D,b,v){const S=b.length;let N=0,K=S;if(D._sorted){const{iScale:te,_parsed:re}=D,he=te.axis,{min:Fe,max:_t,minDefined:Lt,maxDefined:un}=te.getUserBounds();Lt&&(N=Tt(Math.min(Ze(re,te.axis,Fe).lo,v?S:Ze(b,he,te.getPixelForValue(Fe)).lo),0,S-1)),K=un?Tt(Math.max(Ze(re,te.axis,_t,!0).hi+1,v?0:Ze(b,he,te.getPixelForValue(_t),!0).hi+1),N,S)-N:S-N}return{start:N,count:K}}function En(D){const{xScale:b,yScale:v,_scaleRanges:S}=D,N={xmin:b.min,xmax:b.max,ymin:v.min,ymax:v.max};if(!S)return D._scaleRanges=N,!0;const K=S.xmin!==b.min||S.xmax!==b.max||S.ymin!==v.min||S.ymax!==v.max;return Object.assign(S,N),K}const Wn=D=>0===D||1===D,rn=(D,b,v)=>-Math.pow(2,10*(D-=1))*Math.sin((D-b)*ce/v),Sn=(D,b,v)=>Math.pow(2,-10*D)*Math.sin((D-b)*ce/v)+1,ke={linear:D=>D,easeInQuad:D=>D*D,easeOutQuad:D=>-D*(D-2),easeInOutQuad:D=>(D/=.5)<1?.5*D*D:-.5*(--D*(D-2)-1),easeInCubic:D=>D*D*D,easeOutCubic:D=>(D-=1)*D*D+1,easeInOutCubic:D=>(D/=.5)<1?.5*D*D*D:.5*((D-=2)*D*D+2),easeInQuart:D=>D*D*D*D,easeOutQuart:D=>-((D-=1)*D*D*D-1),easeInOutQuart:D=>(D/=.5)<1?.5*D*D*D*D:-.5*((D-=2)*D*D*D-2),easeInQuint:D=>D*D*D*D*D,easeOutQuint:D=>(D-=1)*D*D*D*D+1,easeInOutQuint:D=>(D/=.5)<1?.5*D*D*D*D*D:.5*((D-=2)*D*D*D*D+2),easeInSine:D=>1-Math.cos(D*ct),easeOutSine:D=>Math.sin(D*ct),easeInOutSine:D=>-.5*(Math.cos(G*D)-1),easeInExpo:D=>0===D?0:Math.pow(2,10*(D-1)),easeOutExpo:D=>1===D?1:1-Math.pow(2,-10*D),easeInOutExpo:D=>Wn(D)?D:D<.5?.5*Math.pow(2,10*(2*D-1)):.5*(2-Math.pow(2,-10*(2*D-1))),easeInCirc:D=>D>=1?D:-(Math.sqrt(1-D*D)-1),easeOutCirc:D=>Math.sqrt(1-(D-=1)*D),easeInOutCirc:D=>(D/=.5)<1?-.5*(Math.sqrt(1-D*D)-1):.5*(Math.sqrt(1-(D-=2)*D)+1),easeInElastic:D=>Wn(D)?D:rn(D,.075,.3),easeOutElastic:D=>Wn(D)?D:Sn(D,.075,.3),easeInOutElastic:D=>Wn(D)?D:D<.5?.5*rn(2*D,.1125,.45):.5+.5*Sn(2*D-1,.1125,.45),easeInBack:D=>D*D*(2.70158*D-1.70158),easeOutBack:D=>(D-=1)*D*(2.70158*D+1.70158)+1,easeInOutBack(D){let b=1.70158;return(D/=.5)<1?D*D*((1+(b*=1.525))*D-b)*.5:.5*((D-=2)*D*((1+(b*=1.525))*D+b)+2)},easeInBounce:D=>1-ke.easeOutBounce(1-D),easeOutBounce:D=>D<1/2.75?7.5625*D*D:D<2/2.75?7.5625*(D-=1.5/2.75)*D+.75:D<2.5/2.75?7.5625*(D-=2.25/2.75)*D+.9375:7.5625*(D-=2.625/2.75)*D+.984375,easeInOutBounce:D=>D<.5?.5*ke.easeInBounce(2*D):.5*ke.easeOutBounce(2*D-1)+.5};function ge(D){return D+.5|0}const q=(D,b,v)=>Math.max(Math.min(D,v),b);function J(D){return q(ge(2.55*D),0,255)}function Oe(D){return q(ge(255*D),0,255)}function je(D){return q(ge(D/2.55)/100,0,1)}function Et(D){return q(ge(100*D),0,100)}const dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},rt=[..."0123456789ABCDEF"],qe=D=>rt[15&D],ze=D=>rt[(240&D)>>4]+rt[15&D],zt=D=>(240&D)>>4==(15&D),wn=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Qn(D,b,v){const S=b*Math.min(v,1-v),N=(K,te=(K+D/30)%12)=>v-S*Math.max(Math.min(te-3,9-te,1),-1);return[N(0),N(8),N(4)]}function pi(D,b,v){const S=(N,K=(N+D/60)%6)=>v-v*b*Math.max(Math.min(K,4-K,1),0);return[S(5),S(3),S(1)]}function Ei(D,b,v){const S=Qn(D,1,.5);let N;for(b+v>1&&(N=1/(b+v),b*=N,v*=N),N=0;N<3;N++)S[N]*=1-b-v,S[N]+=b;return S}function Co(D){const v=D.r/255,S=D.g/255,N=D.b/255,K=Math.max(v,S,N),te=Math.min(v,S,N),re=(K+te)/2;let he,Fe,_t;return K!==te&&(_t=K-te,Fe=re>.5?_t/(2-K-te):_t/(K+te),he=function ki(D,b,v,S,N){return D===N?(b-v)/S+(b<v?6:0):b===N?(v-D)/S+2:(D-b)/S+4}(v,S,N,_t,K),he=60*he+.5),[0|he,Fe||0,re]}function xo(D,b,v,S){return(Array.isArray(b)?D(b[0],b[1],b[2]):D(b,v,S)).map(Oe)}function no(D,b,v){return xo(Qn,D,b,v)}function po(D){return(D%360+360)%360}const tt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},nt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let ve;const Me=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ue=D=>D<=.0031308?12.92*D:1.055*Math.pow(D,1/2.4)-.055,et=D=>D<=.04045?D/12.92:Math.pow((D+.055)/1.055,2.4);function Ae(D,b,v){if(D){let S=Co(D);S[b]=Math.max(0,Math.min(S[b]+S[b]*v,0===b?360:1)),S=no(S),D.r=S[0],D.g=S[1],D.b=S[2]}}function bt(D,b){return D&&Object.assign(b||{},D)}function Le(D){var b={r:0,g:0,b:0,a:255};return Array.isArray(D)?D.length>=3&&(b={r:D[0],g:D[1],b:D[2],a:255},D.length>3&&(b.a=Oe(D[3]))):(b=bt(D,{r:0,g:0,b:0,a:1})).a=Oe(b.a),b}function Pt(D){return"r"===D.charAt(0)?function We(D){const b=Me.exec(D);let S,N,K,v=255;if(b){if(b[7]!==S){const te=+b[7];v=b[8]?J(te):q(255*te,0,255)}return S=+b[1],N=+b[3],K=+b[5],S=255&(b[2]?J(S):q(S,0,255)),N=255&(b[4]?J(N):q(N,0,255)),K=255&(b[6]?J(K):q(K,0,255)),{r:S,g:N,b:K,a:v}}}(D):function Io(D){const b=wn.exec(D);let S,v=255;if(!b)return;b[5]!==S&&(v=b[6]?J(+b[5]):Oe(+b[5]));const N=po(+b[2]),K=+b[3]/100,te=+b[4]/100;return S="hwb"===b[1]?function Qo(D,b,v){return xo(Ei,D,b,v)}(N,K,te):"hsv"===b[1]?function Mo(D,b,v){return xo(pi,D,b,v)}(N,K,te):no(N,K,te),{r:S[0],g:S[1],b:S[2],a:v}}(D)}class dn{constructor(b){if(b instanceof dn)return b;const v=typeof b;let S;"object"===v?S=Le(b):"string"===v&&(S=function Rt(D){var v,b=D.length;return"#"===D[0]&&(4===b||5===b?v={r:255&17*dt[D[1]],g:255&17*dt[D[2]],b:255&17*dt[D[3]],a:5===b?17*dt[D[4]]:255}:(7===b||9===b)&&(v={r:dt[D[1]]<<4|dt[D[2]],g:dt[D[3]]<<4|dt[D[4]],b:dt[D[5]]<<4|dt[D[6]],a:9===b?dt[D[7]]<<4|dt[D[8]]:255})),v}(b)||function Se(D){ve||(ve=function De(){const D={},b=Object.keys(nt),v=Object.keys(tt);let S,N,K,te,re;for(S=0;S<b.length;S++){for(te=re=b[S],N=0;N<v.length;N++)K=v[N],re=re.replace(K,tt[K]);K=parseInt(nt[te],16),D[re]=[K>>16&255,K>>8&255,255&K]}return D}(),ve.transparent=[0,0,0,0]);const b=ve[D.toLowerCase()];return b&&{r:b[0],g:b[1],b:b[2],a:4===b.length?b[3]:255}}(b)||Pt(b)),this._rgb=S,this._valid=!!S}get valid(){return this._valid}get rgb(){var b=bt(this._rgb);return b&&(b.a=je(b.a)),b}set rgb(b){this._rgb=Le(b)}rgbString(){return this._valid?function ut(D){return D&&(D.a<255?`rgba(${D.r}, ${D.g}, ${D.b}, ${je(D.a)})`:`rgb(${D.r}, ${D.g}, ${D.b})`)}(this._rgb):void 0}hexString(){return this._valid?function sn(D){var b=(D=>zt(D.r)&&zt(D.g)&&zt(D.b)&&zt(D.a))(D)?qe:ze;return D?"#"+b(D.r)+b(D.g)+b(D.b)+((D,b)=>D<255?b(D):"")(D.a,b):void 0}(this._rgb):void 0}hslString(){return this._valid?function Hn(D){if(!D)return;const b=Co(D),v=b[0],S=Et(b[1]),N=Et(b[2]);return D.a<255?`hsla(${v}, ${S}%, ${N}%, ${je(D.a)})`:`hsl(${v}, ${S}%, ${N}%)`}(this._rgb):void 0}mix(b,v){if(b){const S=this.rgb,N=b.rgb;let K;const te=v===K?.5:v,re=2*te-1,he=S.a-N.a,Fe=((re*he==-1?re:(re+he)/(1+re*he))+1)/2;K=1-Fe,S.r=255&Fe*S.r+K*N.r+.5,S.g=255&Fe*S.g+K*N.g+.5,S.b=255&Fe*S.b+K*N.b+.5,S.a=te*S.a+(1-te)*N.a,this.rgb=S}return this}interpolate(b,v){return b&&(this._rgb=function At(D,b,v){const S=et(je(D.r)),N=et(je(D.g)),K=et(je(D.b));return{r:Oe(ue(S+v*(et(je(b.r))-S))),g:Oe(ue(N+v*(et(je(b.g))-N))),b:Oe(ue(K+v*(et(je(b.b))-K))),a:D.a+v*(b.a-D.a)}}(this._rgb,b._rgb,v)),this}clone(){return new dn(this.rgb)}alpha(b){return this._rgb.a=Oe(b),this}clearer(b){return this._rgb.a*=1-b,this}greyscale(){const b=this._rgb,v=ge(.3*b.r+.59*b.g+.11*b.b);return b.r=b.g=b.b=v,this}opaquer(b){return this._rgb.a*=1+b,this}negate(){const b=this._rgb;return b.r=255-b.r,b.g=255-b.g,b.b=255-b.b,this}lighten(b){return Ae(this._rgb,2,b),this}darken(b){return Ae(this._rgb,2,-b),this}saturate(b){return Ae(this._rgb,1,b),this}desaturate(b){return Ae(this._rgb,1,-b),this}rotate(b){return function en(D,b){var v=Co(D);v[0]=po(v[0]+b),v=no(v),D.r=v[0],D.g=v[1],D.b=v[2]}(this._rgb,b),this}}function St(D){return new dn(D)}function jt(D){if(D&&"object"==typeof D){const b=D.toString();return"[object CanvasPattern]"===b||"[object CanvasGradient]"===b}return!1}function ht(D){return jt(D)?D:St(D)}function on(D){return jt(D)?D:St(D).saturate(.5).darken(.1).hexString()}const Nt=Object.create(null),It=Object.create(null);function Ot(D,b){if(!b)return D;const v=b.split(".");for(let S=0,N=v.length;S<N;++S){const K=v[S];D=D[K]||(D[K]=Object.create(null))}return D}function fn(D,b,v){return"string"==typeof b?$(Ot(D,b),v):$(Ot(D,""),b)}var _i=new class Xn{constructor(b){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=v=>v.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(v,S)=>on(S.backgroundColor),this.hoverBorderColor=(v,S)=>on(S.borderColor),this.hoverColor=(v,S)=>on(S.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(b)}set(b,v){return fn(this,b,v)}get(b){return Ot(this,b)}describe(b,v){return fn(It,b,v)}override(b,v){return fn(Nt,b,v)}route(b,v,S,N){const K=Ot(this,b),te=Ot(this,S),re="_"+v;Object.defineProperties(K,{[re]:{value:K[v],writable:!0},[v]:{enumerable:!0,get(){const he=this[re],Fe=te[N];return a(he)?Object.assign({},Fe,he):l(he,Fe)},set(he){this[re]=he}}})}}({_scriptable:D=>!D.startsWith("on"),_indexable:D=>"events"!==D,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Ui(D,b,v,S,N){let K=b[N];return K||(K=b[N]=D.measureText(N).width,v.push(N)),K>S&&(S=K),S}function li(D,b,v,S){let N=(S=S||{}).data=S.data||{},K=S.garbageCollect=S.garbageCollect||[];S.font!==b&&(N=S.data={},K=S.garbageCollect=[],S.font=b),D.save(),D.font=b;let te=0;const re=v.length;let he,Fe,_t,Lt,un;for(he=0;he<re;he++)if(Lt=v[he],null!=Lt&&!0!==d(Lt))te=Ui(D,N,K,te,Lt);else if(d(Lt))for(Fe=0,_t=Lt.length;Fe<_t;Fe++)un=Lt[Fe],null!=un&&!d(un)&&(te=Ui(D,N,K,te,un));D.restore();const _n=K.length/2;if(_n>v.length){for(he=0;he<_n;he++)delete N[K[he]];K.splice(0,_n)}return te}function vi(D,b,v){const S=D.currentDevicePixelRatio,N=0!==v?Math.max(v/2,.5):0;return Math.round((b-N)*S)/S+N}function Zn(D,b){(b=b||D.getContext("2d")).save(),b.resetTransform(),b.clearRect(0,0,D.width,D.height),b.restore()}function gn(D,b,v,S){Mt(D,b,v,S,null)}function Mt(D,b,v,S,N){let K,te,re,he,Fe,_t;const Lt=b.pointStyle,un=b.rotation,_n=b.radius;let Cn=(un||0)*Ge;if(Lt&&"object"==typeof Lt&&(K=Lt.toString(),"[object HTMLImageElement]"===K||"[object HTMLCanvasElement]"===K))return D.save(),D.translate(v,S),D.rotate(Cn),D.drawImage(Lt,-Lt.width/2,-Lt.height/2,Lt.width,Lt.height),void D.restore();if(!(isNaN(_n)||_n<=0)){switch(D.beginPath(),Lt){default:N?D.ellipse(v,S,N/2,_n,0,0,ce):D.arc(v,S,_n,0,ce),D.closePath();break;case"triangle":D.moveTo(v+Math.sin(Cn)*_n,S-Math.cos(Cn)*_n),Cn+=Ce,D.lineTo(v+Math.sin(Cn)*_n,S-Math.cos(Cn)*_n),Cn+=Ce,D.lineTo(v+Math.sin(Cn)*_n,S-Math.cos(Cn)*_n),D.closePath();break;case"rectRounded":Fe=.516*_n,he=_n-Fe,te=Math.cos(Cn+pe)*he,re=Math.sin(Cn+pe)*he,D.arc(v-te,S-re,Fe,Cn-G,Cn-ct),D.arc(v+re,S-te,Fe,Cn-ct,Cn),D.arc(v+te,S+re,Fe,Cn,Cn+ct),D.arc(v-re,S+te,Fe,Cn+ct,Cn+G),D.closePath();break;case"rect":if(!un){he=Math.SQRT1_2*_n,_t=N?N/2:he,D.rect(v-_t,S-he,2*_t,2*he);break}Cn+=pe;case"rectRot":te=Math.cos(Cn)*_n,re=Math.sin(Cn)*_n,D.moveTo(v-te,S-re),D.lineTo(v+re,S-te),D.lineTo(v+te,S+re),D.lineTo(v-re,S+te),D.closePath();break;case"crossRot":Cn+=pe;case"cross":te=Math.cos(Cn)*_n,re=Math.sin(Cn)*_n,D.moveTo(v-te,S-re),D.lineTo(v+te,S+re),D.moveTo(v+re,S-te),D.lineTo(v-re,S+te);break;case"star":te=Math.cos(Cn)*_n,re=Math.sin(Cn)*_n,D.moveTo(v-te,S-re),D.lineTo(v+te,S+re),D.moveTo(v+re,S-te),D.lineTo(v-re,S+te),Cn+=pe,te=Math.cos(Cn)*_n,re=Math.sin(Cn)*_n,D.moveTo(v-te,S-re),D.lineTo(v+te,S+re),D.moveTo(v+re,S-te),D.lineTo(v-re,S+te);break;case"line":te=N?N/2:Math.cos(Cn)*_n,re=Math.sin(Cn)*_n,D.moveTo(v-te,S-re),D.lineTo(v+te,S+re);break;case"dash":D.moveTo(v,S),D.lineTo(v+Math.cos(Cn)*_n,S+Math.sin(Cn)*_n)}D.fill(),b.borderWidth>0&&D.stroke()}}function $t(D,b,v){return v=v||.5,!b||D&&D.x>b.left-v&&D.x<b.right+v&&D.y>b.top-v&&D.y<b.bottom+v}function kn(D,b){D.save(),D.beginPath(),D.rect(b.left,b.top,b.right-b.left,b.bottom-b.top),D.clip()}function ai(D){D.restore()}function qi(D,b,v,S,N){if(!b)return D.lineTo(v.x,v.y);if("middle"===N){const K=(b.x+v.x)/2;D.lineTo(K,b.y),D.lineTo(K,v.y)}else"after"===N!=!!S?D.lineTo(b.x,v.y):D.lineTo(v.x,b.y);D.lineTo(v.x,v.y)}function eo(D,b,v,S){if(!b)return D.lineTo(v.x,v.y);D.bezierCurveTo(S?b.cp1x:b.cp2x,S?b.cp1y:b.cp2y,S?v.cp2x:v.cp1x,S?v.cp2y:v.cp1y,v.x,v.y)}function Oo(D,b,v,S,N,K={}){const te=d(b)?b:[b],re=K.strokeWidth>0&&""!==K.strokeColor;let he,Fe;for(D.save(),D.font=N.string,function Fo(D,b){b.translation&&D.translate(b.translation[0],b.translation[1]),i(b.rotation)||D.rotate(b.rotation),b.color&&(D.fillStyle=b.color),b.textAlign&&(D.textAlign=b.textAlign),b.textBaseline&&(D.textBaseline=b.textBaseline)}(D,K),he=0;he<te.length;++he)Fe=te[he],re&&(K.strokeColor&&(D.strokeStyle=K.strokeColor),i(K.strokeWidth)||(D.lineWidth=K.strokeWidth),D.strokeText(Fe,v,S,K.maxWidth)),D.fillText(Fe,v,S,K.maxWidth),Zi(D,v,S,Fe,K),S+=N.lineHeight;D.restore()}function Zi(D,b,v,S,N){if(N.strikethrough||N.underline){const K=D.measureText(S),te=b-K.actualBoundingBoxLeft,re=b+K.actualBoundingBoxRight,Fe=v+K.actualBoundingBoxDescent,_t=N.strikethrough?(v-K.actualBoundingBoxAscent+Fe)/2:Fe;D.strokeStyle=D.fillStyle,D.beginPath(),D.lineWidth=N.decorationWidth||2,D.moveTo(te,_t),D.lineTo(re,_t),D.stroke()}}function Wo(D,b){const{x:v,y:S,w:N,h:K,radius:te}=b;D.arc(v+te.topLeft,S+te.topLeft,te.topLeft,-ct,G,!0),D.lineTo(v,S+K-te.bottomLeft),D.arc(v+te.bottomLeft,S+K-te.bottomLeft,te.bottomLeft,G,ct,!0),D.lineTo(v+N-te.bottomRight,S+K),D.arc(v+N-te.bottomRight,S+K-te.bottomRight,te.bottomRight,ct,0,!0),D.lineTo(v+N,S+te.topRight),D.arc(v+N-te.topRight,S+te.topRight,te.topRight,0,-ct,!0),D.lineTo(v+te.topLeft,S)}const na=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),qa=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function rr(D,b){const v=(""+D).match(na);if(!v||"normal"===v[1])return 1.2*b;switch(D=+v[2],v[3]){case"px":return D;case"%":D/=100}return b*D}const dr=D=>+D||0;function sr(D,b){const v={},S=a(b),N=S?Object.keys(b):b,K=a(D)?S?te=>l(D[te],D[b[te]]):te=>D[te]:()=>D;for(const te of N)v[te]=dr(K(te));return v}function Ks(D){return sr(D,{top:"y",right:"x",bottom:"y",left:"x"})}function _r(D){return sr(D,["topLeft","topRight","bottomLeft","bottomRight"])}function _o(D){const b=Ks(D);return b.width=b.left+b.right,b.height=b.top+b.bottom,b}function to(D,b){let v=l((D=D||{}).size,(b=b||_i.font).size);"string"==typeof v&&(v=parseInt(v,10));let S=l(D.style,b.style);S&&!(""+S).match(qa)&&(console.warn('Invalid font style specified: "'+S+'"'),S="");const N={family:l(D.family,b.family),lineHeight:rr(l(D.lineHeight,b.lineHeight),v),size:v,style:S,weight:l(D.weight,b.weight),string:""};return N.string=function ci(D){return!D||i(D.size)||i(D.family)?null:(D.style?D.style+" ":"")+(D.weight?D.weight+" ":"")+D.size+"px "+D.family}(N),N}function gr(D,b,v,S){let K,te,re,N=!0;for(K=0,te=D.length;K<te;++K)if(re=D[K],void 0!==re&&(void 0!==b&&"function"==typeof re&&(re=re(b),N=!1),void 0!==v&&d(re)&&(re=re[v%re.length],N=!1),void 0!==re))return S&&!N&&(S.cacheable=!1),re}function Sa(D,b){return Object.assign(Object.create(D),b)}function zr(D,b=[""],v=D,S,N=(()=>D[0])){P(S)||(S=pr("_fallback",D));const K={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:D,_rootScopes:v,_fallback:S,_getTarget:N,override:te=>zr([te,...D],b,v,S)};return new Proxy(K,{deleteProperty:(te,re)=>(delete te[re],delete te._keys,delete D[0][re],!0),get:(te,re)=>ia(te,re,()=>function er(D,b,v,S){let N;for(const K of b)if(N=pr(Pr(K,D),v),P(N))return Cs(D,N)?Or(v,S,D,N):N}(re,b,D,te)),getOwnPropertyDescriptor:(te,re)=>Reflect.getOwnPropertyDescriptor(te._scopes[0],re),getPrototypeOf:()=>Reflect.getPrototypeOf(D[0]),has:(te,re)=>Ua(te).includes(re),ownKeys:te=>Ua(te),set(te,re,he){const Fe=te._storage||(te._storage=N());return te[re]=Fe[re]=he,delete te._keys,!0}})}function cr(D,b,v,S){const N={_cacheable:!1,_proxy:D,_context:b,_subProxy:v,_stack:new Set,_descriptors:vr(D,S),setContext:K=>cr(D,K,v,S),override:K=>cr(D.override(K),b,v,S)};return new Proxy(N,{deleteProperty:(K,te)=>(delete K[te],delete D[te],!0),get:(K,te,re)=>ia(K,te,()=>function Er(D,b,v){const{_proxy:S,_context:N,_subProxy:K,_descriptors:te}=D;let re=S[b];return E(re)&&te.isScriptable(b)&&(re=function yo(D,b,v,S){const{_proxy:N,_context:K,_subProxy:te,_stack:re}=v;if(re.has(D))throw new Error("Recursion detected: "+Array.from(re).join("->")+"->"+D);return re.add(D),b=b(K,te||S),re.delete(D),Cs(D,b)&&(b=Or(N._scopes,N,D,b)),b}(b,re,D,v)),d(re)&&re.length&&(re=function Yr(D,b,v,S){const{_proxy:N,_context:K,_subProxy:te,_descriptors:re}=v;if(P(K.index)&&S(D))b=b[K.index%b.length];else if(a(b[0])){const he=b,Fe=N._scopes.filter(_t=>_t!==he);b=[];for(const _t of he){const Lt=Or(Fe,N,D,_t);b.push(cr(Lt,K,te&&te[D],re))}}return b}(b,re,D,te.isIndexable)),Cs(b,re)&&(re=cr(re,N,K&&K[b],te)),re}(K,te,re)),getOwnPropertyDescriptor:(K,te)=>K._descriptors.allKeys?Reflect.has(D,te)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(D,te),getPrototypeOf:()=>Reflect.getPrototypeOf(D),has:(K,te)=>Reflect.has(D,te),ownKeys:()=>Reflect.ownKeys(D),set:(K,te,re)=>(D[te]=re,delete K[te],!0)})}function vr(D,b={scriptable:!0,indexable:!0}){const{_scriptable:v=b.scriptable,_indexable:S=b.indexable,_allKeys:N=b.allKeys}=D;return{allKeys:N,scriptable:v,indexable:S,isScriptable:E(v)?v:()=>v,isIndexable:E(S)?S:()=>S}}const Pr=(D,b)=>D?D+p(b):b,Cs=(D,b)=>a(b)&&"adapters"!==D&&(null===Object.getPrototypeOf(b)||b.constructor===Object);function ia(D,b,v){if(Object.prototype.hasOwnProperty.call(D,b))return D[b];const S=v();return D[b]=S,S}function Ya(D,b,v){return E(D)?D(b,v):D}const ma=(D,b)=>!0===D?b:"string"==typeof D?F(b,D):void 0;function ur(D,b,v,S,N){for(const K of b){const te=ma(v,K);if(te){D.add(te);const re=Ya(te._fallback,v,N);if(P(re)&&re!==v&&re!==S)return re}else if(!1===te&&P(S)&&v!==S)return null}return!1}function Or(D,b,v,S){const N=b._rootScopes,K=Ya(b._fallback,v,S),te=[...D,...N],re=new Set;re.add(S);let he=es(re,te,v,K||v,S);return!(null===he||P(K)&&K!==v&&(he=es(re,te,K,he,S),null===he))&&zr(Array.from(re),[""],N,K,()=>function ts(D,b,v){const S=D._getTarget();b in S||(S[b]={});const N=S[b];return d(N)&&a(v)?v:N}(b,v,S))}function es(D,b,v,S,N){for(;v;)v=ur(D,b,v,S,N);return v}function pr(D,b){for(const v of b){if(!v)continue;const S=v[D];if(P(S))return S}}function Ua(D){let b=D._keys;return b||(b=D._keys=function Ca(D){const b=new Set;for(const v of D)for(const S of Object.keys(v).filter(N=>!N.startsWith("_")))b.add(S);return Array.from(b)}(D._scopes)),b}function Va(D,b,v,S){const{iScale:N}=D,{key:K="r"}=this._parsing,te=new Array(S);let re,he,Fe,_t;for(re=0,he=S;re<he;++re)Fe=re+v,_t=b[Fe],te[re]={r:N.parse(F(_t,K),Fe)};return te}const Rr=Number.EPSILON||1e-14,ha=(D,b)=>b<D.length&&!D[b].skip&&D[b],mr=D=>"x"===D?"y":"x";function Fr(D,b,v,S){const N=D.skip?b:D,K=b,te=v.skip?b:v,re=at(K,N),he=at(te,K);let Fe=re/(re+he),_t=he/(re+he);Fe=isNaN(Fe)?0:Fe,_t=isNaN(_t)?0:_t;const Lt=S*Fe,un=S*_t;return{previous:{x:K.x-Lt*(te.x-N.x),y:K.y-Lt*(te.y-N.y)},next:{x:K.x+un*(te.x-N.x),y:K.y+un*(te.y-N.y)}}}function oa(D,b,v){return Math.max(Math.min(D,v),b)}function fr(D,b,v,S,N){let K,te,re,he;if(b.spanGaps&&(D=D.filter(Fe=>!Fe.skip)),"monotone"===b.cubicInterpolationMode)!function ya(D,b="x"){const v=mr(b),S=D.length,N=Array(S).fill(0),K=Array(S);let te,re,he,Fe=ha(D,0);for(te=0;te<S;++te)if(re=he,he=Fe,Fe=ha(D,te+1),he){if(Fe){const _t=Fe[b]-he[b];N[te]=0!==_t?(Fe[v]-he[v])/_t:0}K[te]=re?Fe?H(N[te-1])!==H(N[te])?0:(N[te-1]+N[te])/2:N[te-1]:N[te]}(function da(D,b,v){const S=D.length;let N,K,te,re,he,Fe=ha(D,0);for(let _t=0;_t<S-1;++_t)if(he=Fe,Fe=ha(D,_t+1),he&&Fe){if(Ie(b[_t],0,Rr)){v[_t]=v[_t+1]=0;continue}N=v[_t]/b[_t],K=v[_t+1]/b[_t],re=Math.pow(N,2)+Math.pow(K,2),!(re<=9)&&(te=3/Math.sqrt(re),v[_t]=N*te*b[_t],v[_t+1]=K*te*b[_t])}})(D,N,K),function Ro(D,b,v="x"){const S=mr(v),N=D.length;let K,te,re,he=ha(D,0);for(let Fe=0;Fe<N;++Fe){if(te=re,re=he,he=ha(D,Fe+1),!re)continue;const _t=re[v],Lt=re[S];te&&(K=(_t-te[v])/3,re[`cp1${v}`]=_t-K,re[`cp1${S}`]=Lt-K*b[Fe]),he&&(K=(he[v]-_t)/3,re[`cp2${v}`]=_t+K,re[`cp2${S}`]=Lt+K*b[Fe])}}(D,K,b)}(D,N);else{let Fe=S?D[D.length-1]:D[0];for(K=0,te=D.length;K<te;++K)re=D[K],he=Fr(Fe,re,D[Math.min(K+1,te-(S?0:1))%te],b.tension),re.cp1x=he.previous.x,re.cp1y=he.previous.y,re.cp2x=he.next.x,re.cp2y=he.next.y,Fe=re}b.capBezierPoints&&function hr(D,b){let v,S,N,K,te,re=$t(D[0],b);for(v=0,S=D.length;v<S;++v)te=K,K=re,re=v<S-1&&$t(D[v+1],b),K&&(N=D[v],te&&(N.cp1x=oa(N.cp1x,b.left,b.right),N.cp1y=oa(N.cp1y,b.top,b.bottom)),re&&(N.cp2x=oa(N.cp2x,b.left,b.right),N.cp2y=oa(N.cp2y,b.top,b.bottom)))}(D,v)}function br(){return typeof window<"u"&&typeof document<"u"}function Ia(D){let b=D.parentNode;return b&&"[object ShadowRoot]"===b.toString()&&(b=b.host),b}function wa(D,b,v){let S;return"string"==typeof D?(S=parseInt(D,10),-1!==D.indexOf("%")&&(S=S/100*b.parentNode[v])):S=D,S}const Za=D=>window.getComputedStyle(D,null),Pa=["top","right","bottom","left"];function ar(D,b,v){const S={};v=v?"-"+v:"";for(let N=0;N<4;N++){const K=Pa[N];S[K]=parseFloat(D[b+"-"+K+v])||0}return S.width=S.left+S.right,S.height=S.top+S.bottom,S}const Sr=(D,b,v)=>(D>0||b>0)&&(!v||!v.shadowRoot);function Aa(D,b){if("native"in D)return D;const{canvas:v,currentDevicePixelRatio:S}=b,N=Za(v),K="border-box"===N.boxSizing,te=ar(N,"padding"),re=ar(N,"border","width"),{x:he,y:Fe,box:_t}=function ao(D,b){const v=D.touches,S=v&&v.length?v[0]:D,{offsetX:N,offsetY:K}=S;let re,he,te=!1;if(Sr(N,K,D.target))re=N,he=K;else{const Fe=b.getBoundingClientRect();re=S.clientX-Fe.left,he=S.clientY-Fe.top,te=!0}return{x:re,y:he,box:te}}(D,v),Lt=te.left+(_t&&re.left),un=te.top+(_t&&re.top);let{width:_n,height:Cn}=b;return K&&(_n-=te.width+re.width,Cn-=te.height+re.height),{x:Math.round((he-Lt)/_n*v.width/S),y:Math.round((Fe-un)/Cn*v.height/S)}}const Ke=D=>Math.round(10*D)/10;function Qt(D,b,v){const S=b||1,N=Math.floor(D.height*S),K=Math.floor(D.width*S);D.height=N/S,D.width=K/S;const te=D.canvas;return te.style&&(v||!te.style.height&&!te.style.width)&&(te.style.height=`${D.height}px`,te.style.width=`${D.width}px`),(D.currentDevicePixelRatio!==S||te.height!==N||te.width!==K)&&(D.currentDevicePixelRatio=S,te.height=N,te.width=K,D.ctx.setTransform(S,0,0,S,0,0),!0)}const ti=function(){let D=!1;try{const b={get passive(){return D=!0,!1}};window.addEventListener("test",null,b),window.removeEventListener("test",null,b)}catch{}return D}();function $i(D,b){const v=function ns(D,b){return Za(D).getPropertyValue(b)}(D,b),S=v&&v.match(/^(\d+)(\.\d+)?px$/);return S?+S[1]:void 0}function qt(D,b,v,S){return{x:D.x+v*(b.x-D.x),y:D.y+v*(b.y-D.y)}}function it(D,b,v,S){return{x:D.x+v*(b.x-D.x),y:"middle"===S?v<.5?D.y:b.y:"after"===S?v<1?D.y:b.y:v>0?b.y:D.y}}function ae(D,b,v,S){const N={x:D.cp2x,y:D.cp2y},K={x:b.cp1x,y:b.cp1y},te=qt(D,N,v),re=qt(N,K,v),he=qt(K,b,v),Fe=qt(te,re,v),_t=qt(re,he,v);return qt(Fe,_t,v)}const _e=new Map;function Vt(D,b,v){return function mt(D,b){b=b||{};const v=D+JSON.stringify(b);let S=_e.get(v);return S||(S=new Intl.NumberFormat(D,b),_e.set(v,S)),S}(b,v).format(D)}const On=function(D,b){return{x:v=>D+D+b-v,setWidth(v){b=v},textAlign:v=>"center"===v?v:"right"===v?"left":"right",xPlus:(v,S)=>v-S,leftForLtr:(v,S)=>v-S}},Rn=function(){return{x:D=>D,setWidth(D){},textAlign:D=>D,xPlus:(D,b)=>D+b,leftForLtr:(D,b)=>D}};function ni(D,b,v){return D?On(b,v):Rn()}function Ii(D,b){let v,S;("ltr"===b||"rtl"===b)&&(v=D.canvas.style,S=[v.getPropertyValue("direction"),v.getPropertyPriority("direction")],v.setProperty("direction",b,"important"),D.prevTextDirection=S)}function so(D,b){void 0!==b&&(delete D.prevTextDirection,D.canvas.style.setProperty("direction",b[0],b[1]))}function io(D){return"angle"===D?{between:Yt,compare:lt,normalize:Dt}:{between:Gt,compare:(b,v)=>b-v,normalize:b=>b}}function $a({start:D,end:b,count:v,loop:S,style:N}){return{start:D%v,end:b%v,loop:S&&(b-D+1)%v==0,style:N}}function ka(D,b,v){if(!v)return[D];const{property:S,start:N,end:K}=v,te=b.length,{compare:re,between:he,normalize:Fe}=io(S),{start:_t,end:Lt,loop:un,style:_n}=function lr(D,b,v){const{property:S,start:N,end:K}=v,{between:te,normalize:re}=io(S),he=b.length;let un,_n,{start:Fe,end:_t,loop:Lt}=D;if(Lt){for(Fe+=he,_t+=he,un=0,_n=he;un<_n&&te(re(b[Fe%he][S]),N,K);++un)Fe--,_t--;Fe%=he,_t%=he}return _t<Fe&&(_t+=he),{start:Fe,end:_t,loop:Lt,style:D.style}}(D,b,v),Cn=[];let ri,fi,Li,Un=!1,qn=null;for(let ro=_t,oo=_t;ro<=Lt;++ro)fi=b[ro%te],!fi.skip&&(ri=Fe(fi[S]),ri!==Li&&(Un=he(ri,N,K),null===qn&&(Un||he(N,Li,ri)&&0!==re(N,Li))&&(qn=0===re(ri,N)?ro:oo),null!==qn&&(!Un||0===re(K,ri)||he(K,Li,ri))&&(Cn.push($a({start:qn,end:ro,loop:un,count:te,style:_n})),qn=null),oo=ro,Li=ri));return null!==qn&&Cn.push($a({start:qn,end:Lt,loop:un,count:te,style:_n})),Cn}function Po(D,b){const v=[],S=D.segments;for(let N=0;N<S.length;N++){const K=ka(S[N],D.points,b);K.length&&v.push(...K)}return v}function is(D){return{backgroundColor:D.backgroundColor,borderCapStyle:D.borderCapStyle,borderDash:D.borderDash,borderDashOffset:D.borderDashOffset,borderJoinStyle:D.borderJoinStyle,borderWidth:D.borderWidth,borderColor:D.borderColor}}function Br(D,b){return b&&JSON.stringify(D)!==JSON.stringify(b)}var os=new class yi{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(b,v,S,N){const te=v.duration;v.listeners[N].forEach(re=>re({chart:b,initial:v.initial,numSteps:te,currentStep:Math.min(S-v.start,te)}))}_refresh(){this._request||(this._running=!0,this._request=Dn.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(b=Date.now()){let v=0;this._charts.forEach((S,N)=>{if(!S.running||!S.items.length)return;const K=S.items;let he,te=K.length-1,re=!1;for(;te>=0;--te)he=K[te],he._active?(he._total>S.duration&&(S.duration=he._total),he.tick(b),re=!0):(K[te]=K[K.length-1],K.pop());re&&(N.draw(),this._notify(N,S,b,"progress")),K.length||(S.running=!1,this._notify(N,S,b,"complete"),S.initial=!1),v+=K.length}),this._lastDate=b,0===v&&(this._running=!1)}_getAnims(b){const v=this._charts;let S=v.get(b);return S||(S={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},v.set(b,S)),S}listen(b,v,S){this._getAnims(b).listeners[v].push(S)}add(b,v){!v||!v.length||this._getAnims(b).items.push(...v)}has(b){return this._getAnims(b).items.length>0}start(b){const v=this._charts.get(b);v&&(v.running=!0,v.start=Date.now(),v.duration=v.items.reduce((S,N)=>Math.max(S,N._duration),0),this._refresh())}running(b){if(!this._running)return!1;const v=this._charts.get(b);return!(!v||!v.running||!v.items.length)}stop(b){const v=this._charts.get(b);if(!v||!v.items.length)return;const S=v.items;let N=S.length-1;for(;N>=0;--N)S[N].cancel();v.items=[],this._notify(b,v,Date.now(),"complete")}remove(b){return this._charts.delete(b)}};const nc="transparent",Ic={boolean:(D,b,v)=>v>.5?b:D,color(D,b,v){const S=ht(D||nc),N=S.valid&&ht(b||nc);return N&&N.valid?N.mix(S,v).hexString():b},number:(D,b,v)=>D+(b-D)*v};class al{constructor(b,v,S,N){const K=v[S];N=gr([b.to,N,K,b.from]);const te=gr([b.from,K,N]);this._active=!0,this._fn=b.fn||Ic[b.type||typeof te],this._easing=ke[b.easing]||ke.linear,this._start=Math.floor(Date.now()+(b.delay||0)),this._duration=this._total=Math.floor(b.duration),this._loop=!!b.loop,this._target=v,this._prop=S,this._from=te,this._to=N,this._promises=void 0}active(){return this._active}update(b,v,S){if(this._active){this._notify(!1);const N=this._target[this._prop],K=S-this._start,te=this._duration-K;this._start=S,this._duration=Math.floor(Math.max(te,b.duration)),this._total+=K,this._loop=!!b.loop,this._to=gr([b.to,v,N,b.from]),this._from=gr([b.from,N,v])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(b){const v=b-this._start,S=this._duration,N=this._prop,K=this._from,te=this._loop,re=this._to;let he;if(this._active=K!==re&&(te||v<S),!this._active)return this._target[N]=re,void this._notify(!0);v<0?this._target[N]=K:(he=v/S%2,he=te&&he>1?2-he:he,he=this._easing(Math.min(1,Math.max(0,he))),this._target[N]=this._fn(K,re,he))}wait(){const b=this._promises||(this._promises=[]);return new Promise((v,S)=>{b.push({res:v,rej:S})})}_notify(b){const v=b?"res":"rej",S=this._promises||[];for(let N=0;N<S.length;N++)S[N][v]()}}_i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Gn=Object.keys(_i.animation);_i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:D=>"onProgress"!==D&&"onComplete"!==D&&"fn"!==D}),_i.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),_i.describe("animations",{_fallback:"animation"}),_i.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:D=>0|D}}}});class ui{constructor(b,v){this._chart=b,this._properties=new Map,this.configure(v)}configure(b){if(!a(b))return;const v=this._properties;Object.getOwnPropertyNames(b).forEach(S=>{const N=b[S];if(!a(N))return;const K={};for(const te of Gn)K[te]=N[te];(d(N.properties)&&N.properties||[S]).forEach(te=>{(te===S||!v.has(te))&&v.set(te,K)})})}_animateOptions(b,v){const S=v.options,N=function Yi(D,b){if(!b)return;let v=D.options;if(v)return v.$shared&&(D.options=v=Object.assign({},v,{$shared:!1,$animations:{}})),v;D.options=b}(b,S);if(!N)return[];const K=this._createAnimations(N,S);return S.$shared&&function si(D,b){const v=[],S=Object.keys(b);for(let N=0;N<S.length;N++){const K=D[S[N]];K&&K.active()&&v.push(K.wait())}return Promise.all(v)}(b.options.$animations,S).then(()=>{b.options=S},()=>{}),K}_createAnimations(b,v){const S=this._properties,N=[],K=b.$animations||(b.$animations={}),te=Object.keys(v),re=Date.now();let he;for(he=te.length-1;he>=0;--he){const Fe=te[he];if("$"===Fe.charAt(0))continue;if("options"===Fe){N.push(...this._animateOptions(b,v));continue}const _t=v[Fe];let Lt=K[Fe];const un=S.get(Fe);if(Lt){if(un&&Lt.active()){Lt.update(un,_t,re);continue}Lt.cancel()}un&&un.duration?(K[Fe]=Lt=new al(un,b,Fe,_t),N.push(Lt)):b[Fe]=_t}return N}update(b,v){if(0===this._properties.size)return void Object.assign(b,v);const S=this._createAnimations(b,v);return S.length?(os.add(this._chart,S),!0):void 0}}function Eo(D,b){const v=D&&D.options||{},S=v.reverse,N=void 0===v.min?b:0,K=void 0===v.max?b:0;return{start:S?K:N,end:S?N:K}}function ei(D,b){const v=[],S=D._getSortedDatasetMetas(b);let N,K;for(N=0,K=S.length;N<K;++N)v.push(S[N].index);return v}function tr(D,b,v,S={}){const N=D.keys,K="single"===S.mode;let te,re,he,Fe;if(null!==b){for(te=0,re=N.length;te<re;++te){if(he=+N[te],he===v){if(S.all)continue;break}Fe=D.values[he],u(Fe)&&(K||0===b||H(b)===H(Fe))&&(b+=Fe)}return b}}function jo(D,b){const v=D&&D.options.stacked;return v||void 0===v&&void 0!==b.stack}function xa(D,b,v){const S=D[b]||(D[b]={});return S[v]||(S[v]={})}function aa(D,b,v,S){for(const N of b.getMatchingVisibleMetas(S).reverse()){const K=D[N.index];if(v&&K>0||!v&&K<0)return N.index}return null}function pc(D,b){const{chart:v,_cachedMeta:S}=D,N=v._stacks||(v._stacks={}),{iScale:K,vScale:te,index:re}=S,he=K.axis,Fe=te.axis,_t=function as(D,b,v){return`${D.id}.${b.id}.${v.stack||v.type}`}(K,te,S),Lt=b.length;let un;for(let _n=0;_n<Lt;++_n){const Cn=b[_n],{[he]:Un,[Fe]:qn}=Cn;un=(Cn._stacks||(Cn._stacks={}))[Fe]=xa(N,_t,Un),un[re]=qn,un._top=aa(un,te,!0,S.type),un._bottom=aa(un,te,!1,S.type)}}function Xo(D,b){const v=D.scales;return Object.keys(v).filter(S=>v[S].axis===b).shift()}function Re(D,b){const v=D.controller.index,S=D.vScale&&D.vScale.axis;if(S){b=b||D._parsed;for(const N of b){const K=N._stacks;if(!K||void 0===K[S]||void 0===K[S][v])return;delete K[S][v]}}}const Ct=D=>"reset"===D||"none"===D,$e=(D,b)=>b?D:Object.assign({},D);let yn=(()=>{class D{constructor(v,S){this.chart=v,this._ctx=v.ctx,this.index=S,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const v=this._cachedMeta;this.configure(),this.linkScales(),v._stacked=jo(v.vScale,v),this.addElements()}updateIndex(v){this.index!==v&&Re(this._cachedMeta),this.index=v}linkScales(){const v=this.chart,S=this._cachedMeta,N=this.getDataset(),K=(un,_n,Cn,Un)=>"x"===un?_n:"r"===un?Un:Cn,te=S.xAxisID=l(N.xAxisID,Xo(v,"x")),re=S.yAxisID=l(N.yAxisID,Xo(v,"y")),he=S.rAxisID=l(N.rAxisID,Xo(v,"r")),Fe=S.indexAxis,_t=S.iAxisID=K(Fe,te,re,he),Lt=S.vAxisID=K(Fe,re,te,he);S.xScale=this.getScaleForId(te),S.yScale=this.getScaleForId(re),S.rScale=this.getScaleForId(he),S.iScale=this.getScaleForId(_t),S.vScale=this.getScaleForId(Lt)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(v){return this.chart.scales[v]}_getOtherScale(v){const S=this._cachedMeta;return v===S.iScale?S.vScale:S.iScale}reset(){this._update("reset")}_destroy(){const v=this._cachedMeta;this._data&&hn(this._data,this),v._stacked&&Re(v)}_dataCheck(){const v=this.getDataset(),S=v.data||(v.data=[]),N=this._data;if(a(S))this._data=function Ao(D){const b=Object.keys(D),v=new Array(b.length);let S,N,K;for(S=0,N=b.length;S<N;++S)K=b[S],v[S]={x:K,y:D[K]};return v}(S);else if(N!==S){if(N){hn(N,this);const K=this._cachedMeta;Re(K),K._parsed=[]}S&&Object.isExtensible(S)&&function bn(D,b){D._chartjs?D._chartjs.listeners.push(b):(Object.defineProperty(D,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[b]}}),xn.forEach(v=>{const S="_onData"+p(v),N=D[v];Object.defineProperty(D,v,{configurable:!0,enumerable:!1,value(...K){const te=N.apply(this,K);return D._chartjs.listeners.forEach(re=>{"function"==typeof re[S]&&re[S](...K)}),te}})}))}(S,this),this._syncList=[],this._data=S}}addElements(){const v=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(v.dataset=new this.datasetElementType)}buildOrUpdateElements(v){const S=this._cachedMeta,N=this.getDataset();let K=!1;this._dataCheck();const te=S._stacked;S._stacked=jo(S.vScale,S),S.stack!==N.stack&&(K=!0,Re(S),S.stack=N.stack),this._resyncElements(v),(K||te!==S._stacked)&&pc(this,S._parsed)}configure(){const v=this.chart.config,S=v.datasetScopeKeys(this._type),N=v.getOptionScopes(this.getDataset(),S,!0);this.options=v.createResolver(N,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(v,S){const{_cachedMeta:N,_data:K}=this,{iScale:te,_stacked:re}=N,he=te.axis;let Lt,un,_n,Fe=0===v&&S===K.length||N._sorted,_t=v>0&&N._parsed[v-1];if(!1===this._parsing)N._parsed=K,N._sorted=!0,_n=K;else{_n=d(K[v])?this.parseArrayData(N,K,v,S):a(K[v])?this.parseObjectData(N,K,v,S):this.parsePrimitiveData(N,K,v,S);const Cn=()=>null===un[he]||_t&&un[he]<_t[he];for(Lt=0;Lt<S;++Lt)N._parsed[Lt+v]=un=_n[Lt],Fe&&(Cn()&&(Fe=!1),_t=un);N._sorted=Fe}re&&pc(this,_n)}parsePrimitiveData(v,S,N,K){const{iScale:te,vScale:re}=v,he=te.axis,Fe=re.axis,_t=te.getLabels(),Lt=te===re,un=new Array(K);let _n,Cn,Un;for(_n=0,Cn=K;_n<Cn;++_n)Un=_n+N,un[_n]={[he]:Lt||te.parse(_t[Un],Un),[Fe]:re.parse(S[Un],Un)};return un}parseArrayData(v,S,N,K){const{xScale:te,yScale:re}=v,he=new Array(K);let Fe,_t,Lt,un;for(Fe=0,_t=K;Fe<_t;++Fe)Lt=Fe+N,un=S[Lt],he[Fe]={x:te.parse(un[0],Lt),y:re.parse(un[1],Lt)};return he}parseObjectData(v,S,N,K){const{xScale:te,yScale:re}=v,{xAxisKey:he="x",yAxisKey:Fe="y"}=this._parsing,_t=new Array(K);let Lt,un,_n,Cn;for(Lt=0,un=K;Lt<un;++Lt)_n=Lt+N,Cn=S[_n],_t[Lt]={x:te.parse(F(Cn,he),_n),y:re.parse(F(Cn,Fe),_n)};return _t}getParsed(v){return this._cachedMeta._parsed[v]}getDataElement(v){return this._cachedMeta.data[v]}applyStack(v,S,N){const te=this._cachedMeta,re=S[v.axis];return tr({keys:ei(this.chart,!0),values:S._stacks[v.axis]},re,te.index,{mode:N})}updateRangeFromParsed(v,S,N,K){const te=N[S.axis];let re=null===te?NaN:te;const he=K&&N._stacks[S.axis];K&&he&&(K.values=he,re=tr(K,te,this._cachedMeta.index)),v.min=Math.min(v.min,re),v.max=Math.max(v.max,re)}getMinMax(v,S){const N=this._cachedMeta,K=N._parsed,te=N._sorted&&v===N.iScale,re=K.length,he=this._getOtherScale(v),Fe=((D,b,v)=>D&&!b.hidden&&b._stacked&&{keys:ei(this.chart,!0),values:null})(S,N),_t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:Lt,max:un}=function Ko(D){const{min:b,max:v,minDefined:S,maxDefined:N}=D.getUserBounds();return{min:S?b:Number.NEGATIVE_INFINITY,max:N?v:Number.POSITIVE_INFINITY}}(he);let _n,Cn;function Un(){Cn=K[_n];const qn=Cn[he.axis];return!u(Cn[v.axis])||Lt>qn||un<qn}for(_n=0;_n<re&&(Un()||(this.updateRangeFromParsed(_t,v,Cn,Fe),!te));++_n);if(te)for(_n=re-1;_n>=0;--_n)if(!Un()){this.updateRangeFromParsed(_t,v,Cn,Fe);break}return _t}getAllParsedValues(v){const S=this._cachedMeta._parsed,N=[];let K,te,re;for(K=0,te=S.length;K<te;++K)re=S[K][v.axis],u(re)&&N.push(re);return N}getMaxOverflow(){return!1}getLabelAndValue(v){const S=this._cachedMeta,N=S.iScale,K=S.vScale,te=this.getParsed(v);return{label:N?""+N.getLabelForValue(te[N.axis]):"",value:K?""+K.getLabelForValue(te[K.axis]):""}}_update(v){const S=this._cachedMeta;this.update(v||"default"),S._clip=function Wi(D){let b,v,S,N;return a(D)?(b=D.top,v=D.right,S=D.bottom,N=D.left):b=v=S=N=D,{top:b,right:v,bottom:S,left:N,disabled:!1===D}}(l(this.options.clip,function bi(D,b,v){if(!1===v)return!1;const S=Eo(D,v),N=Eo(b,v);return{top:N.end,right:S.end,bottom:N.start,left:S.start}}(S.xScale,S.yScale,this.getMaxOverflow())))}update(v){}draw(){const v=this._ctx,N=this._cachedMeta,K=N.data||[],te=this.chart.chartArea,re=[],he=this._drawStart||0,Fe=this._drawCount||K.length-he,_t=this.options.drawActiveElementsOnTop;let Lt;for(N.dataset&&N.dataset.draw(v,te,he,Fe),Lt=he;Lt<he+Fe;++Lt){const un=K[Lt];un.hidden||(un.active&&_t?re.push(un):un.draw(v,te))}for(Lt=0;Lt<re.length;++Lt)re[Lt].draw(v,te)}getStyle(v,S){const N=S?"active":"default";return void 0===v&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(N):this.resolveDataElementOptions(v||0,N)}getContext(v,S,N){const K=this.getDataset();let te;if(v>=0&&v<this._cachedMeta.data.length){const re=this._cachedMeta.data[v];te=re.$context||(re.$context=function mc(D,b,v){return Sa(D,{active:!1,dataIndex:b,parsed:void 0,raw:void 0,element:v,index:b,mode:"default",type:"data"})}(this.getContext(),v,re)),te.parsed=this.getParsed(v),te.raw=K.data[v],te.index=te.dataIndex=v}else te=this.$context||(this.$context=function Ac(D,b){return Sa(D,{active:!1,dataset:void 0,datasetIndex:b,index:b,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),te.dataset=K,te.index=te.datasetIndex=this.index;return te.active=!!S,te.mode=N,te}resolveDatasetElementOptions(v){return this._resolveElementOptions(this.datasetElementType.id,v)}resolveDataElementOptions(v,S){return this._resolveElementOptions(this.dataElementType.id,S,v)}_resolveElementOptions(v,S="default",N){const K="active"===S,te=this._cachedDataOpts,re=v+"-"+S,he=te[re],Fe=this.enableOptionSharing&&P(N);if(he)return $e(he,Fe);const _t=this.chart.config,Lt=_t.datasetElementScopeKeys(this._type,v),un=K?[`${v}Hover`,"hover",v,""]:[v,""],_n=_t.getOptionScopes(this.getDataset(),Lt),Cn=Object.keys(_i.elements[v]),qn=_t.resolveNamedOptions(_n,Cn,()=>this.getContext(N,K),un);return qn.$shared&&(qn.$shared=Fe,te[re]=Object.freeze($e(qn,Fe))),qn}_resolveAnimations(v,S,N){const K=this.chart,te=this._cachedDataOpts,re=`animation-${S}`,he=te[re];if(he)return he;let Fe;if(!1!==K.options.animation){const Lt=this.chart.config,un=Lt.datasetAnimationScopeKeys(this._type,S),_n=Lt.getOptionScopes(this.getDataset(),un);Fe=Lt.createResolver(_n,this.getContext(v,N,S))}const _t=new ui(K,Fe&&Fe.animations);return Fe&&Fe._cacheable&&(te[re]=Object.freeze(_t)),_t}getSharedOptions(v){if(v.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},v))}includeOptions(v,S){return!S||Ct(v)||this.chart._animationsDisabled}_getSharedOptions(v,S){const N=this.resolveDataElementOptions(v,S),K=this._sharedOptions,te=this.getSharedOptions(N),re=this.includeOptions(S,te)||te!==K;return this.updateSharedOptions(te,S,N),{sharedOptions:te,includeOptions:re}}updateElement(v,S,N,K){Ct(K)?Object.assign(v,N):this._resolveAnimations(S,K).update(v,N)}updateSharedOptions(v,S,N){v&&!Ct(S)&&this._resolveAnimations(void 0,S).update(v,N)}_setStyle(v,S,N,K){v.active=K;const te=this.getStyle(S,K);this._resolveAnimations(S,N,K).update(v,{options:!K&&this.getSharedOptions(te)||te})}removeHoverStyle(v,S,N){this._setStyle(v,N,"active",!1)}setHoverStyle(v,S,N){this._setStyle(v,N,"active",!0)}_removeDatasetHoverStyle(){const v=this._cachedMeta.dataset;v&&this._setStyle(v,void 0,"active",!1)}_setDatasetHoverStyle(){const v=this._cachedMeta.dataset;v&&this._setStyle(v,void 0,"active",!0)}_resyncElements(v){const S=this._data,N=this._cachedMeta.data;for(const[he,Fe,_t]of this._syncList)this[he](Fe,_t);this._syncList=[];const K=N.length,te=S.length,re=Math.min(te,K);re&&this.parse(0,re),te>K?this._insertElements(K,te-K,v):te<K&&this._removeElements(te,K-te)}_insertElements(v,S,N=!0){const K=this._cachedMeta,te=K.data,re=v+S;let he;const Fe=_t=>{for(_t.length+=S,he=_t.length-1;he>=re;he--)_t[he]=_t[he-S]};for(Fe(te),he=v;he<re;++he)te[he]=new this.dataElementType;this._parsing&&Fe(K._parsed),this.parse(v,S),N&&this.updateElements(te,v,S,"reset")}updateElements(v,S,N,K){}_removeElements(v,S){const N=this._cachedMeta;if(this._parsing){const K=N._parsed.splice(v,S);N._stacked&&Re(N,K)}N.data.splice(v,S)}_sync(v){if(this._parsing)this._syncList.push(v);else{const[S,N,K]=v;this[S](N,K)}this.chart._dataChanges.push([this.index,...v])}_onDataPush(){const v=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-v,v])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(v,S){S&&this._sync(["_removeElements",v,S]);const N=arguments.length-2;N&&this._sync(["_insertElements",v,N])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return D.defaults={},D})();function hi(D){const b=D.iScale,v=function ii(D,b){if(!D._cache.$bar){const v=D.getMatchingVisibleMetas(b);let S=[];for(let N=0,K=v.length;N<K;N++)S=S.concat(v[N].controller.getAllParsedValues(D));D._cache.$bar=pn(S.sort((N,K)=>N-K))}return D._cache.$bar}(b,D.type);let N,K,te,re,S=b._length;const he=()=>{32767===te||-32768===te||(P(re)&&(S=Math.min(S,Math.abs(te-re)||S)),re=te)};for(N=0,K=v.length;N<K;++N)te=b.getPixelForValue(v[N]),he();for(re=void 0,N=0,K=b.ticks.length;N<K;++N)te=b.getPixelForTick(N),he();return S}function zo(D,b,v,S){return d(D)?function ra(D,b,v,S){const N=v.parse(D[0],S),K=v.parse(D[1],S),te=Math.min(N,K),re=Math.max(N,K);let he=te,Fe=re;Math.abs(te)>Math.abs(re)&&(he=re,Fe=te),b[v.axis]=Fe,b._custom={barStart:he,barEnd:Fe,start:N,end:K,min:te,max:re}}(D,b,v,S):b[v.axis]=v.parse(D,S),b}function To(D,b,v,S){const N=D.iScale,K=D.vScale,te=N.getLabels(),re=N===K,he=[];let Fe,_t,Lt,un;for(Fe=v,_t=v+S;Fe<_t;++Fe)un=b[Fe],Lt={},Lt[N.axis]=re||N.parse(te[Fe],Fe),he.push(zo(un,Lt,K,Fe));return he}function Ha(D){return D&&void 0!==D.barStart&&void 0!==D.barEnd}function Jo(D,b,v,S){let N=b.borderSkipped;const K={};if(!N)return void(D.borderSkipped=K);if(!0===N)return void(D.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:te,end:re,reverse:he,top:Fe,bottom:_t}=function co(D){let b,v,S,N,K;return D.horizontal?(b=D.base>D.x,v="left",S="right"):(b=D.base<D.y,v="bottom",S="top"),b?(N="end",K="start"):(N="start",K="end"),{start:v,end:S,reverse:b,top:N,bottom:K}}(D);"middle"===N&&v&&(D.enableBorderRadius=!0,(v._top||0)===S?N=Fe:(v._bottom||0)===S?N=_t:(K[lo(_t,te,re,he)]=!0,N=Fe)),K[lo(N,te,re,he)]=!0,D.borderSkipped=K}function lo(D,b,v,S){return S?(D=function Ja(D,b,v){return D===b?v:D===v?b:D}(D,b,v),D=Tr(D,v,b)):D=Tr(D,b,v),D}function Tr(D,b,v){return"start"===D?b:"end"===D?v:D}function Ka(D,{inflateAmount:b},v){D.inflateAmount="auto"===b?1===v?.33:0:b}yn.prototype.datasetElementType=null,yn.prototype.dataElementType=null;let Nr=(()=>{class D extends yn{parsePrimitiveData(v,S,N,K){return To(v,S,N,K)}parseArrayData(v,S,N,K){return To(v,S,N,K)}parseObjectData(v,S,N,K){const{iScale:te,vScale:re}=v,{xAxisKey:he="x",yAxisKey:Fe="y"}=this._parsing,_t="x"===te.axis?he:Fe,Lt="x"===re.axis?he:Fe,un=[];let _n,Cn,Un,qn;for(_n=N,Cn=N+K;_n<Cn;++_n)qn=S[_n],Un={},Un[te.axis]=te.parse(F(qn,_t),_n),un.push(zo(F(qn,Lt),Un,re,_n));return un}updateRangeFromParsed(v,S,N,K){super.updateRangeFromParsed(v,S,N,K);const te=N._custom;te&&S===this._cachedMeta.vScale&&(v.min=Math.min(v.min,te.min),v.max=Math.max(v.max,te.max))}getMaxOverflow(){return 0}getLabelAndValue(v){const S=this._cachedMeta,{iScale:N,vScale:K}=S,te=this.getParsed(v),re=te._custom,he=Ha(re)?"["+re.start+", "+re.end+"]":""+K.getLabelForValue(te[K.axis]);return{label:""+N.getLabelForValue(te[N.axis]),value:he}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(v){const S=this._cachedMeta;this.updateElements(S.data,0,S.data.length,v)}updateElements(v,S,N,K){const te="reset"===K,{index:re,_cachedMeta:{vScale:he}}=this,Fe=he.getBasePixel(),_t=he.isHorizontal(),Lt=this._getRuler(),{sharedOptions:un,includeOptions:_n}=this._getSharedOptions(S,K);for(let Cn=S;Cn<S+N;Cn++){const Un=this.getParsed(Cn),qn=te||i(Un[he.axis])?{base:Fe,head:Fe}:this._calculateBarValuePixels(Cn),ri=this._calculateBarIndexPixels(Cn,Lt),fi=(Un._stacks||{})[he.axis],Li={horizontal:_t,base:qn.base,enableBorderRadius:!fi||Ha(Un._custom)||re===fi._top||re===fi._bottom,x:_t?qn.head:ri.center,y:_t?ri.center:qn.head,height:_t?ri.size:Math.abs(qn.size),width:_t?Math.abs(qn.size):ri.size};_n&&(Li.options=un||this.resolveDataElementOptions(Cn,v[Cn].active?"active":K));const Pi=Li.options||v[Cn].options;Jo(Li,Pi,fi,re),Ka(Li,Pi,Lt.ratio),this.updateElement(v[Cn],Cn,Li,K)}}_getStacks(v,S){const{iScale:N}=this._cachedMeta,K=N.getMatchingVisibleMetas(this._type).filter(Fe=>Fe.controller.options.grouped),te=N.options.stacked,re=[],he=Fe=>{const _t=Fe.controller.getParsed(S),Lt=_t&&_t[Fe.vScale.axis];if(i(Lt)||isNaN(Lt))return!0};for(const Fe of K)if((void 0===S||!he(Fe))&&((!1===te||-1===re.indexOf(Fe.stack)||void 0===te&&void 0===Fe.stack)&&re.push(Fe.stack),Fe.index===v))break;return re.length||re.push(void 0),re}_getStackCount(v){return this._getStacks(void 0,v).length}_getStackIndex(v,S,N){const K=this._getStacks(v,N),te=void 0!==S?K.indexOf(S):-1;return-1===te?K.length-1:te}_getRuler(){const v=this.options,S=this._cachedMeta,N=S.iScale,K=[];let te,re;for(te=0,re=S.data.length;te<re;++te)K.push(N.getPixelForValue(this.getParsed(te)[N.axis],te));const he=v.barThickness;return{min:he||hi(S),pixels:K,start:N._startPixel,end:N._endPixel,stackCount:this._getStackCount(),scale:N,grouped:v.grouped,ratio:he?1:v.categoryPercentage*v.barPercentage}}_calculateBarValuePixels(v){const{_cachedMeta:{vScale:S,_stacked:N},options:{base:K,minBarLength:te}}=this,re=K||0,he=this.getParsed(v),Fe=he._custom,_t=Ha(Fe);let Cn,Un,Lt=he[S.axis],un=0,_n=N?this.applyStack(S,he,N):Lt;_n!==Lt&&(un=_n-Lt,_n=Lt),_t&&(Lt=Fe.barStart,_n=Fe.barEnd-Fe.barStart,0!==Lt&&H(Lt)!==H(Fe.barEnd)&&(un=0),un+=Lt);const qn=i(K)||_t?un:K;let ri=S.getPixelForValue(qn);if(Cn=this.chart.getDataVisibility(v)?S.getPixelForValue(un+_n):ri,Un=Cn-ri,Math.abs(Un)<te){Un=function Ri(D,b,v){return 0!==D?H(D):(b.isHorizontal()?1:-1)*(b.min>=v?1:-1)}(Un,S,re)*te,Lt===re&&(ri-=Un/2);const fi=S.getPixelForDecimal(0),Li=S.getPixelForDecimal(1),Pi=Math.min(fi,Li),Ci=Math.max(fi,Li);ri=Math.max(Math.min(ri,Ci),Pi),Cn=ri+Un}if(ri===S.getPixelForValue(re)){const fi=H(Un)*S.getLineWidthForValue(re)/2;ri+=fi,Un-=fi}return{size:Un,base:ri,head:Cn,center:Cn+Un/2}}_calculateBarIndexPixels(v,S){const N=S.scale,K=this.options,te=K.skipNull,re=l(K.maxBarThickness,1/0);let he,Fe;if(S.grouped){const _t=te?this._getStackCount(v):S.stackCount,Lt="flex"===K.barThickness?function ea(D,b,v,S){const N=b.pixels,K=N[D];let te=D>0?N[D-1]:null,re=D<N.length-1?N[D+1]:null;const he=v.categoryPercentage;null===te&&(te=K-(null===re?b.end-b.start:re-K)),null===re&&(re=K+K-te);const Fe=K-(K-Math.min(te,re))/2*he;return{chunk:Math.abs(re-te)/2*he/S,ratio:v.barPercentage,start:Fe}}(v,S,K,_t):function Ki(D,b,v,S){const N=v.barThickness;let K,te;return i(N)?(K=b.min*v.categoryPercentage,te=v.barPercentage):(K=N*S,te=1),{chunk:K/S,ratio:te,start:b.pixels[D]-K/2}}(v,S,K,_t),un=this._getStackIndex(this.index,this._cachedMeta.stack,te?v:void 0);he=Lt.start+Lt.chunk*un+Lt.chunk/2,Fe=Math.min(re,Lt.chunk*Lt.ratio)}else he=N.getPixelForValue(this.getParsed(v)[N.axis],v),Fe=Math.min(re,S.min*S.ratio);return{base:he-Fe/2,head:he+Fe/2,center:he,size:Fe}}draw(){const v=this._cachedMeta,S=v.vScale,N=v.data,K=N.length;let te=0;for(;te<K;++te)null!==this.getParsed(te)[S.axis]&&N[te].draw(this._ctx)}}return D.id="bar",D.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},D.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}},D})(),La=(()=>{class D extends yn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(v,S,N,K){const te=super.parsePrimitiveData(v,S,N,K);for(let re=0;re<te.length;re++)te[re]._custom=this.resolveDataElementOptions(re+N).radius;return te}parseArrayData(v,S,N,K){const te=super.parseArrayData(v,S,N,K);for(let re=0;re<te.length;re++)te[re]._custom=l(S[N+re][2],this.resolveDataElementOptions(re+N).radius);return te}parseObjectData(v,S,N,K){const te=super.parseObjectData(v,S,N,K);for(let re=0;re<te.length;re++){const he=S[N+re];te[re]._custom=l(he&&he.r&&+he.r,this.resolveDataElementOptions(re+N).radius)}return te}getMaxOverflow(){const v=this._cachedMeta.data;let S=0;for(let N=v.length-1;N>=0;--N)S=Math.max(S,v[N].size(this.resolveDataElementOptions(N))/2);return S>0&&S}getLabelAndValue(v){const S=this._cachedMeta,{xScale:N,yScale:K}=S,te=this.getParsed(v),re=N.getLabelForValue(te.x),he=K.getLabelForValue(te.y),Fe=te._custom;return{label:S.label,value:"("+re+", "+he+(Fe?", "+Fe:"")+")"}}update(v){const S=this._cachedMeta.data;this.updateElements(S,0,S.length,v)}updateElements(v,S,N,K){const te="reset"===K,{iScale:re,vScale:he}=this._cachedMeta,{sharedOptions:Fe,includeOptions:_t}=this._getSharedOptions(S,K),Lt=re.axis,un=he.axis;for(let _n=S;_n<S+N;_n++){const Cn=v[_n],Un=!te&&this.getParsed(_n),qn={},ri=qn[Lt]=te?re.getPixelForDecimal(.5):re.getPixelForValue(Un[Lt]),fi=qn[un]=te?he.getBasePixel():he.getPixelForValue(Un[un]);qn.skip=isNaN(ri)||isNaN(fi),_t&&(qn.options=Fe||this.resolveDataElementOptions(_n,Cn.active?"active":K),te&&(qn.options.radius=0)),this.updateElement(Cn,_n,qn,K)}}resolveDataElementOptions(v,S){const N=this.getParsed(v);let K=super.resolveDataElementOptions(v,S);K.$shared&&(K=Object.assign({},K,{$shared:!1}));const te=K.radius;return"active"!==S&&(K.radius=0),K.radius+=l(N&&N._custom,te),K}}return D.id="bubble",D.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},D.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}},D})(),jr=(()=>{class D extends yn{constructor(v,S){super(v,S),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(v,S){const N=this.getDataset().data,K=this._cachedMeta;if(!1===this._parsing)K._parsed=N;else{let re,he,te=Fe=>+N[Fe];if(a(N[v])){const{key:Fe="value"}=this._parsing;te=_t=>+F(N[_t],Fe)}for(re=v,he=v+S;re<he;++re)K._parsed[re]=te(re)}}_getRotation(){return Wt(this.options.rotation-90)}_getCircumference(){return Wt(this.options.circumference)}_getRotationExtents(){let v=ce,S=-ce;for(let N=0;N<this.chart.data.datasets.length;++N)if(this.chart.isDatasetVisible(N)){const K=this.chart.getDatasetMeta(N).controller,te=K._getRotation(),re=K._getCircumference();v=Math.min(v,te),S=Math.max(S,te+re)}return{rotation:v,circumference:S-v}}update(v){const S=this.chart,{chartArea:N}=S,K=this._cachedMeta,te=K.data,re=this.getMaxBorderWidth()+this.getMaxOffset(te)+this.options.spacing,he=Math.max((Math.min(N.width,N.height)-re)/2,0),Fe=Math.min(((D,b)=>"string"==typeof D&&D.endsWith("%")?parseFloat(D)/100:D/b)(this.options.cutout,he),1),_t=this._getRingWeight(this.index),{circumference:Lt,rotation:un}=this._getRotationExtents(),{ratioX:_n,ratioY:Cn,offsetX:Un,offsetY:qn}=function Gs(D,b,v){let S=1,N=1,K=0,te=0;if(b<ce){const re=D,he=re+b,Fe=Math.cos(re),_t=Math.sin(re),Lt=Math.cos(he),un=Math.sin(he),_n=(Li,Pi,Ci)=>Yt(Li,re,he,!0)?1:Math.max(Pi,Pi*v,Ci,Ci*v),Cn=(Li,Pi,Ci)=>Yt(Li,re,he,!0)?-1:Math.min(Pi,Pi*v,Ci,Ci*v),Un=_n(0,Fe,Lt),qn=_n(ct,_t,un),ri=Cn(G,Fe,Lt),fi=Cn(G+ct,_t,un);S=(Un-ri)/2,N=(qn-fi)/2,K=-(Un+ri)/2,te=-(qn+fi)/2}return{ratioX:S,ratioY:N,offsetX:K,offsetY:te}}(un,Lt,Fe),Li=Math.max(Math.min((N.width-re)/_n,(N.height-re)/Cn)/2,0),Pi=x(this.options.radius,Li),ji=(Pi-Math.max(Pi*Fe,0))/this._getVisibleDatasetWeightTotal();this.offsetX=Un*Pi,this.offsetY=qn*Pi,K.total=this.calculateTotal(),this.outerRadius=Pi-ji*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ji*_t,0),this.updateElements(te,0,te.length,v)}_circumference(v,S){const N=this.options,K=this._cachedMeta,te=this._getCircumference();return S&&N.animation.animateRotate||!this.chart.getDataVisibility(v)||null===K._parsed[v]||K.data[v].hidden?0:this.calculateCircumference(K._parsed[v]*te/ce)}updateElements(v,S,N,K){const te="reset"===K,re=this.chart,he=re.chartArea,Lt=(he.left+he.right)/2,un=(he.top+he.bottom)/2,_n=te&&re.options.animation.animateScale,Cn=_n?0:this.innerRadius,Un=_n?0:this.outerRadius,{sharedOptions:qn,includeOptions:ri}=this._getSharedOptions(S,K);let Li,fi=this._getRotation();for(Li=0;Li<S;++Li)fi+=this._circumference(Li,te);for(Li=S;Li<S+N;++Li){const Pi=this._circumference(Li,te),Ci=v[Li],ji={x:Lt+this.offsetX,y:un+this.offsetY,startAngle:fi,endAngle:fi+Pi,circumference:Pi,outerRadius:Un,innerRadius:Cn};ri&&(ji.options=qn||this.resolveDataElementOptions(Li,Ci.active?"active":K)),fi+=Pi,this.updateElement(Ci,Li,ji,K)}}calculateTotal(){const v=this._cachedMeta,S=v.data;let K,N=0;for(K=0;K<S.length;K++){const te=v._parsed[K];null!==te&&!isNaN(te)&&this.chart.getDataVisibility(K)&&!S[K].hidden&&(N+=Math.abs(te))}return N}calculateCircumference(v){const S=this._cachedMeta.total;return S>0&&!isNaN(v)?ce*(Math.abs(v)/S):0}getLabelAndValue(v){const N=this.chart,K=N.data.labels||[],te=Vt(this._cachedMeta._parsed[v],N.options.locale);return{label:K[v]||"",value:te}}getMaxBorderWidth(v){let S=0;const N=this.chart;let K,te,re,he,Fe;if(!v)for(K=0,te=N.data.datasets.length;K<te;++K)if(N.isDatasetVisible(K)){re=N.getDatasetMeta(K),v=re.data,he=re.controller;break}if(!v)return 0;for(K=0,te=v.length;K<te;++K)Fe=he.resolveDataElementOptions(K),"inner"!==Fe.borderAlign&&(S=Math.max(S,Fe.borderWidth||0,Fe.hoverBorderWidth||0));return S}getMaxOffset(v){let S=0;for(let N=0,K=v.length;N<K;++N){const te=this.resolveDataElementOptions(N);S=Math.max(S,te.offset||0,te.hoverOffset||0)}return S}_getRingWeightOffset(v){let S=0;for(let N=0;N<v;++N)this.chart.isDatasetVisible(N)&&(S+=this._getRingWeight(N));return S}_getRingWeight(v){return Math.max(l(this.chart.data.datasets[v].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return D.id="doughnut",D.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},D.descriptors={_scriptable:b=>"spacing"!==b,_indexable:b=>"spacing"!==b},D.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(b){const v=b.data;if(v.labels.length&&v.datasets.length){const{labels:{pointStyle:S}}=b.legend.options;return v.labels.map((N,K)=>{const re=b.getDatasetMeta(0).controller.getStyle(K);return{text:N,fillStyle:re.backgroundColor,strokeStyle:re.borderColor,lineWidth:re.borderWidth,pointStyle:S,hidden:!b.getDataVisibility(K),index:K}})}return[]}},onClick(b,v,S){S.chart.toggleDataVisibility(v.index),S.chart.update()}},tooltip:{callbacks:{title:()=>"",label(b){let v=b.label;const S=": "+b.formattedValue;return d(v)?(v=v.slice(),v[0]+=S):v+=S,v}}}}},D})(),ic=(()=>{class D extends yn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(v){const S=this._cachedMeta,{dataset:N,data:K=[],_dataset:te}=S,re=this.chart._animationsDisabled;let{start:he,count:Fe}=Bt(S,K,re);this._drawStart=he,this._drawCount=Fe,En(S)&&(he=0,Fe=K.length),N._chart=this.chart,N._datasetIndex=this.index,N._decimated=!!te._decimated,N.points=K;const _t=this.resolveDatasetElementOptions(v);this.options.showLine||(_t.borderWidth=0),_t.segment=this.options.segment,this.updateElement(N,void 0,{animated:!re,options:_t},v),this.updateElements(K,he,Fe,v)}updateElements(v,S,N,K){const te="reset"===K,{iScale:re,vScale:he,_stacked:Fe,_dataset:_t}=this._cachedMeta,{sharedOptions:Lt,includeOptions:un}=this._getSharedOptions(S,K),_n=re.axis,Cn=he.axis,{spanGaps:Un,segment:qn}=this.options,ri=Pe(Un)?Un:Number.POSITIVE_INFINITY,fi=this.chart._animationsDisabled||te||"none"===K;let Li=S>0&&this.getParsed(S-1);for(let Pi=S;Pi<S+N;++Pi){const Ci=v[Pi],ji=this.getParsed(Pi),Ni=fi?Ci:{},ro=i(ji[Cn]),oo=Ni[_n]=re.getPixelForValue(ji[_n],Pi),_a=Ni[Cn]=te||ro?he.getBasePixel():he.getPixelForValue(Fe?this.applyStack(he,ji,Fe):ji[Cn],Pi);Ni.skip=isNaN(oo)||isNaN(_a)||ro,Ni.stop=Pi>0&&Math.abs(ji[_n]-Li[_n])>ri,qn&&(Ni.parsed=ji,Ni.raw=_t.data[Pi]),un&&(Ni.options=Lt||this.resolveDataElementOptions(Pi,Ci.active?"active":K)),fi||this.updateElement(Ci,Pi,Ni,K),Li=ji}}getMaxOverflow(){const v=this._cachedMeta,S=v.dataset,N=S.options&&S.options.borderWidth||0,K=v.data||[];if(!K.length)return N;const te=K[0].size(this.resolveDataElementOptions(0)),re=K[K.length-1].size(this.resolveDataElementOptions(K.length-1));return Math.max(N,te,re)/2}draw(){const v=this._cachedMeta;v.dataset.updateControlPoints(this.chart.chartArea,v.iScale.axis),super.draw()}}return D.id="line",D.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},D.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},D})(),rl=(()=>{class D extends yn{constructor(v,S){super(v,S),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(v){const N=this.chart,K=N.data.labels||[],te=Vt(this._cachedMeta._parsed[v].r,N.options.locale);return{label:K[v]||"",value:te}}parseObjectData(v,S,N,K){return Va.bind(this)(v,S,N,K)}update(v){const S=this._cachedMeta.data;this._updateRadius(),this.updateElements(S,0,S.length,v)}getMinMax(){const S={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((N,K)=>{const te=this.getParsed(K).r;!isNaN(te)&&this.chart.getDataVisibility(K)&&(te<S.min&&(S.min=te),te>S.max&&(S.max=te))}),S}_updateRadius(){const v=this.chart,S=v.chartArea,N=v.options,K=Math.min(S.right-S.left,S.bottom-S.top),te=Math.max(K/2,0),he=(te-Math.max(N.cutoutPercentage?te/100*N.cutoutPercentage:1,0))/v.getVisibleDatasetCount();this.outerRadius=te-he*this.index,this.innerRadius=this.outerRadius-he}updateElements(v,S,N,K){const te="reset"===K,re=this.chart,Fe=re.options.animation,_t=this._cachedMeta.rScale,Lt=_t.xCenter,un=_t.yCenter,_n=_t.getIndexAngle(0)-.5*G;let Un,Cn=_n;const qn=360/this.countVisibleElements();for(Un=0;Un<S;++Un)Cn+=this._computeAngle(Un,K,qn);for(Un=S;Un<S+N;Un++){const ri=v[Un];let fi=Cn,Li=Cn+this._computeAngle(Un,K,qn),Pi=re.getDataVisibility(Un)?_t.getDistanceFromCenterForValue(this.getParsed(Un).r):0;Cn=Li,te&&(Fe.animateScale&&(Pi=0),Fe.animateRotate&&(fi=Li=_n));const Ci={x:Lt,y:un,innerRadius:0,outerRadius:Pi,startAngle:fi,endAngle:Li,options:this.resolveDataElementOptions(Un,ri.active?"active":K)};this.updateElement(ri,Un,Ci,K)}}countVisibleElements(){let S=0;return this._cachedMeta.data.forEach((N,K)=>{!isNaN(this.getParsed(K).r)&&this.chart.getDataVisibility(K)&&S++}),S}_computeAngle(v,S,N){return this.chart.getDataVisibility(v)?Wt(this.resolveDataElementOptions(v,S).angle||N):0}}return D.id="polarArea",D.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},D.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(b){const v=b.data;if(v.labels.length&&v.datasets.length){const{labels:{pointStyle:S}}=b.legend.options;return v.labels.map((N,K)=>{const re=b.getDatasetMeta(0).controller.getStyle(K);return{text:N,fillStyle:re.backgroundColor,strokeStyle:re.borderColor,lineWidth:re.borderWidth,pointStyle:S,hidden:!b.getDataVisibility(K),index:K}})}return[]}},onClick(b,v,S){S.chart.toggleDataVisibility(v.index),S.chart.update()}},tooltip:{callbacks:{title:()=>"",label:b=>b.chart.data.labels[b.dataIndex]+": "+b.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},D})(),Ea=(()=>{class D extends jr{}return D.id="pie",D.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},D})(),nr=(()=>{class D extends yn{getLabelAndValue(v){const S=this._cachedMeta.vScale,N=this.getParsed(v);return{label:S.getLabels()[v],value:""+S.getLabelForValue(N[S.axis])}}parseObjectData(v,S,N,K){return Va.bind(this)(v,S,N,K)}update(v){const S=this._cachedMeta,N=S.dataset,K=S.data||[],te=S.iScale.getLabels();if(N.points=K,"resize"!==v){const re=this.resolveDatasetElementOptions(v);this.options.showLine||(re.borderWidth=0),this.updateElement(N,void 0,{_loop:!0,_fullLoop:te.length===K.length,options:re},v)}this.updateElements(K,0,K.length,v)}updateElements(v,S,N,K){const te=this._cachedMeta.rScale,re="reset"===K;for(let he=S;he<S+N;he++){const Fe=v[he],_t=this.resolveDataElementOptions(he,Fe.active?"active":K),Lt=te.getPointPositionForValue(he,this.getParsed(he).r),un=re?te.xCenter:Lt.x,_n=re?te.yCenter:Lt.y,Cn={x:un,y:_n,angle:Lt.angle,skip:isNaN(un)||isNaN(_n),options:_t};this.updateElement(Fe,he,Cn,K)}}}return D.id="radar",D.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},D.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}},D})();class Ra{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(b){const{x:v,y:S}=this.getProps(["x","y"],b);return{x:v,y:S}}hasValue(){return Pe(this.x)&&Pe(this.y)}getProps(b,v){const S=this.$animations;if(!v||!S)return this;const N={};return b.forEach(K=>{N[K]=S[K]&&S[K].active()?S[K]._to:this[K]}),N}}Ra.defaults={},Ra.defaultRoutes=void 0;const Qs={values:D=>d(D)?D:""+D,numeric(D,b,v){if(0===D)return"0";const S=this.chart.options.locale;let N,K=D;if(v.length>1){const Fe=Math.max(Math.abs(v[0].value),Math.abs(v[v.length-1].value));(Fe<1e-4||Fe>1e15)&&(N="scientific"),K=function Xs(D,b){let v=b.length>3?b[2].value-b[1].value:b[1].value-b[0].value;return Math.abs(v)>=1&&D!==Math.floor(D)&&(v=D-Math.floor(D)),v}(D,v)}const te=U(Math.abs(K)),re=Math.max(Math.min(-1*Math.floor(te),20),0),he={notation:N,minimumFractionDigits:re,maximumFractionDigits:re};return Object.assign(he,this.options.ticks.format),Vt(D,S,he)},logarithmic(D,b,v){if(0===D)return"0";const S=D/Math.pow(10,Math.floor(U(D)));return 1===S||2===S||5===S?Qs.numeric.call(this,D,b,v):""}};var Ss={formatters:Qs};function Ts(D,b,v,S,N){const K=l(S,0),te=Math.min(l(N,D.length),D.length);let he,Fe,_t,re=0;for(v=Math.ceil(v),N&&(he=N-S,v=he/Math.floor(he/v)),_t=K;_t<0;)re++,_t=Math.round(K+re*v);for(Fe=Math.max(K,0);Fe<te;Fe++)Fe===_t&&(b.push(D[Fe]),re++,_t=Math.round(K+re*v))}_i.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(D,b)=>b.lineWidth,tickColor:(D,b)=>b.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ss.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),_i.route("scale.ticks","color","","color"),_i.route("scale.grid","color","","borderColor"),_i.route("scale.grid","borderColor","","borderColor"),_i.route("scale.title","color","","color"),_i.describe("scale",{_fallback:!1,_scriptable:D=>!D.startsWith("before")&&!D.startsWith("after")&&"callback"!==D&&"parser"!==D,_indexable:D=>"borderDash"!==D&&"tickBorderDash"!==D}),_i.describe("scales",{_fallback:"scale"}),_i.describe("scale.ticks",{_scriptable:D=>"backdropPadding"!==D&&"callback"!==D,_indexable:D=>"backdropPadding"!==D});const oc=D=>"left"===D?"right":"right"===D?"left":D,Kl=(D,b,v)=>"top"===b||"left"===b?D[b]+v:D[b]-v;function Hc(D,b){const v=[],S=D.length/b,N=D.length;let K=0;for(;K<N;K+=S)v.push(D[Math.floor(K)]);return v}function fc(D,b,v){const S=D.ticks.length,N=Math.min(b,S-1),K=D._startPixel,te=D._endPixel;let Fe,he=D.getPixelForTick(N);if(!(v&&(Fe=1===S?Math.max(he-K,te-he):0===b?(D.getPixelForTick(1)-he)/2:(he-D.getPixelForTick(N-1))/2,he+=N<b?Fe:-Fe,he<K-1e-6||he>te+1e-6)))return he}function rs(D){return D.drawTicks?D.tickLength:0}function xr(D,b){if(!D.display)return 0;const v=to(D.font,b),S=_o(D.padding);return(d(D.text)?D.text.length:1)*v.lineHeight+S.height}function Xt(D,b,v){let S=Yn(D);return(v&&"right"!==b||!v&&"right"===b)&&(S=oc(S)),S}class An extends Ra{constructor(b){super(),this.id=b.id,this.type=b.type,this.options=void 0,this.ctx=b.ctx,this.chart=b.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(b){this.options=b.setContext(this.getContext()),this.axis=b.axis,this._userMin=this.parse(b.min),this._userMax=this.parse(b.max),this._suggestedMin=this.parse(b.suggestedMin),this._suggestedMax=this.parse(b.suggestedMax)}parse(b,v){return b}getUserBounds(){let{_userMin:b,_userMax:v,_suggestedMin:S,_suggestedMax:N}=this;return b=h(b,Number.POSITIVE_INFINITY),v=h(v,Number.NEGATIVE_INFINITY),S=h(S,Number.POSITIVE_INFINITY),N=h(N,Number.NEGATIVE_INFINITY),{min:h(b,S),max:h(v,N),minDefined:u(b),maxDefined:u(v)}}getMinMax(b){let te,{min:v,max:S,minDefined:N,maxDefined:K}=this.getUserBounds();if(N&&K)return{min:v,max:S};const re=this.getMatchingVisibleMetas();for(let he=0,Fe=re.length;he<Fe;++he)te=re[he].controller.getMinMax(this,b),N||(v=Math.min(v,te.min)),K||(S=Math.max(S,te.max));return v=K&&v>S?S:v,S=N&&v>S?v:S,{min:h(v,h(S,v)),max:h(S,h(v,S))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const b=this.chart.data;return this.options.labels||(this.isHorizontal()?b.xLabels:b.yLabels)||b.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){O(this.options.beforeUpdate,[this])}update(b,v,S){const{beginAtZero:N,grace:K,ticks:te}=this.options,re=te.sampleSize;this.beforeUpdate(),this.maxWidth=b,this.maxHeight=v,this._margins=S=Object.assign({left:0,right:0,top:0,bottom:0},S),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+S.left+S.right:this.height+S.top+S.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function za(D,b,v){const{min:S,max:N}=D,K=x(b,(N-S)/2),te=(re,he)=>v&&0===re?0:re+he;return{min:te(S,-Math.abs(K)),max:te(N,K)}}(this,K,N),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const he=re<this.ticks.length;this._convertTicksToLabels(he?Hc(this.ticks,re):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),te.display&&(te.autoSkip||"auto"===te.source)&&(this.ticks=function Yc(D,b){const v=D.options.ticks,S=v.maxTicksLimit||function hc(D){const b=D.options.offset,v=D._tickSize();return Math.floor(Math.min(D._length/v+(b?0:1),D._maxLength/v))}(D),N=v.major.enabled?function kc(D){const b=[];let v,S;for(v=0,S=D.length;v<S;v++)D[v].major&&b.push(v);return b}(b):[],K=N.length,te=N[0],re=N[K-1],he=[];if(K>S)return function Zs(D,b,v,S){let te,N=0,K=v[0];for(S=Math.ceil(S),te=0;te<D.length;te++)te===K&&(b.push(D[te]),N++,K=v[N*S])}(b,he,N,K/S),he;const Fe=function yr(D,b,v){const S=function Lc(D){const b=D.length;let v,S;if(b<2)return!1;for(S=D[0],v=1;v<b;++v)if(D[v]-D[v-1]!==S)return!1;return S}(D),N=b.length/v;if(!S)return Math.max(N,1);const K=function oe(D){const b=[],v=Math.sqrt(D);let S;for(S=1;S<v;S++)D%S==0&&(b.push(S),b.push(D/S));return v===(0|v)&&b.push(v),b.sort((N,K)=>N-K).pop(),b}(S);for(let te=0,re=K.length-1;te<re;te++){const he=K[te];if(he>N)return he}return Math.max(N,1)}(N,b,S);if(K>0){let _t,Lt;const un=K>1?Math.round((re-te)/(K-1)):null;for(Ts(b,he,Fe,i(un)?0:te-un,te),_t=0,Lt=K-1;_t<Lt;_t++)Ts(b,he,Fe,N[_t],N[_t+1]);return Ts(b,he,Fe,re,i(un)?b.length:re+un),he}return Ts(b,he,Fe),he}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),he&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let v,S,b=this.options.reverse;this.isHorizontal()?(v=this.left,S=this.right):(v=this.top,S=this.bottom,b=!b),this._startPixel=v,this._endPixel=S,this._reversePixels=b,this._length=S-v,this._alignToPixels=this.options.alignToPixels}afterUpdate(){O(this.options.afterUpdate,[this])}beforeSetDimensions(){O(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){O(this.options.afterSetDimensions,[this])}_callHooks(b){this.chart.notifyPlugins(b,this.getContext()),O(this.options[b],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){O(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(b){const v=this.options.ticks;let S,N,K;for(S=0,N=b.length;S<N;S++)K=b[S],K.label=O(v.callback,[K.value,S,b],this)}afterTickToLabelConversion(){O(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){O(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const b=this.options,v=b.ticks,S=this.ticks.length,N=v.minRotation||0,K=v.maxRotation;let re,he,Fe,te=N;if(!this._isVisible()||!v.display||N>=K||S<=1||!this.isHorizontal())return void(this.labelRotation=N);const _t=this._getLabelSizes(),Lt=_t.widest.width,un=_t.highest.height,_n=Tt(this.chart.width-Lt,0,this.maxWidth);re=b.offset?this.maxWidth/S:_n/(S-1),Lt+6>re&&(re=_n/(S-(b.offset?.5:1)),he=this.maxHeight-rs(b.grid)-v.padding-xr(b.title,this.chart.options.font),Fe=Math.sqrt(Lt*Lt+un*un),te=Xe(Math.min(Math.asin(Tt((_t.highest.height+6)/re,-1,1)),Math.asin(Tt(he/Fe,-1,1))-Math.asin(Tt(un/Fe,-1,1)))),te=Math.max(N,Math.min(K,te))),this.labelRotation=te}afterCalculateLabelRotation(){O(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){O(this.options.beforeFit,[this])}fit(){const b={width:0,height:0},{chart:v,options:{ticks:S,title:N,grid:K}}=this,te=this._isVisible(),re=this.isHorizontal();if(te){const he=xr(N,v.options.font);if(re?(b.width=this.maxWidth,b.height=rs(K)+he):(b.height=this.maxHeight,b.width=rs(K)+he),S.display&&this.ticks.length){const{first:Fe,last:_t,widest:Lt,highest:un}=this._getLabelSizes(),_n=2*S.padding,Cn=Wt(this.labelRotation),Un=Math.cos(Cn),qn=Math.sin(Cn);re?b.height=Math.min(this.maxHeight,b.height+(S.mirror?0:qn*Lt.width+Un*un.height)+_n):b.width=Math.min(this.maxWidth,b.width+(S.mirror?0:Un*Lt.width+qn*un.height)+_n),this._calculatePadding(Fe,_t,qn,Un)}}this._handleMargins(),re?(this.width=this._length=v.width-this._margins.left-this._margins.right,this.height=b.height):(this.width=b.width,this.height=this._length=v.height-this._margins.top-this._margins.bottom)}_calculatePadding(b,v,S,N){const{ticks:{align:K,padding:te},position:re}=this.options,he=0!==this.labelRotation,Fe="top"!==re&&"x"===this.axis;if(this.isHorizontal()){const _t=this.getPixelForTick(0)-this.left,Lt=this.right-this.getPixelForTick(this.ticks.length-1);let un=0,_n=0;he?Fe?(un=N*b.width,_n=S*v.height):(un=S*b.height,_n=N*v.width):"start"===K?_n=v.width:"end"===K?un=b.width:"inner"!==K&&(un=b.width/2,_n=v.width/2),this.paddingLeft=Math.max((un-_t+te)*this.width/(this.width-_t),0),this.paddingRight=Math.max((_n-Lt+te)*this.width/(this.width-Lt),0)}else{let _t=v.height/2,Lt=b.height/2;"start"===K?(_t=0,Lt=b.height):"end"===K&&(_t=v.height,Lt=0),this.paddingTop=_t+te,this.paddingBottom=Lt+te}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){O(this.options.afterFit,[this])}isHorizontal(){const{axis:b,position:v}=this.options;return"top"===v||"bottom"===v||"x"===b}isFullSize(){return this.options.fullSize}_convertTicksToLabels(b){let v,S;for(this.beforeTickToLabelConversion(),this.generateTickLabels(b),v=0,S=b.length;v<S;v++)i(b[v].label)&&(b.splice(v,1),S--,v--);this.afterTickToLabelConversion()}_getLabelSizes(){let b=this._labelSizes;if(!b){const v=this.options.ticks.sampleSize;let S=this.ticks;v<S.length&&(S=Hc(S,v)),this._labelSizes=b=this._computeLabelSizes(S,S.length)}return b}_computeLabelSizes(b,v){const{ctx:S,_longestTextCache:N}=this,K=[],te=[];let Fe,_t,Lt,un,_n,Cn,Un,qn,ri,fi,Li,re=0,he=0;for(Fe=0;Fe<v;++Fe){if(un=b[Fe].label,_n=this._resolveTickFontOptions(Fe),S.font=Cn=_n.string,Un=N[Cn]=N[Cn]||{data:{},gc:[]},qn=_n.lineHeight,ri=fi=0,i(un)||d(un)){if(d(un))for(_t=0,Lt=un.length;_t<Lt;++_t)Li=un[_t],!i(Li)&&!d(Li)&&(ri=Ui(S,Un.data,Un.gc,ri,Li),fi+=qn)}else ri=Ui(S,Un.data,Un.gc,ri,un),fi=qn;K.push(ri),te.push(fi),re=Math.max(ri,re),he=Math.max(fi,he)}!function Ir(D,b){L(D,v=>{const S=v.gc,N=S.length/2;let K;if(N>b){for(K=0;K<N;++K)delete v.data[S[K]];S.splice(0,N)}})}(N,v);const Pi=K.indexOf(re),Ci=te.indexOf(he),ji=Ni=>({width:K[Ni]||0,height:te[Ni]||0});return{first:ji(0),last:ji(v-1),widest:ji(Pi),highest:ji(Ci),widths:K,heights:te}}getLabelForValue(b){return b}getPixelForValue(b,v){return NaN}getValueForPixel(b){}getPixelForTick(b){const v=this.ticks;return b<0||b>v.length-1?null:this.getPixelForValue(v[b].value)}getPixelForDecimal(b){this._reversePixels&&(b=1-b);const v=this._startPixel+b*this._length;return function ot(D){return Tt(D,-32768,32767)}(this._alignToPixels?vi(this.chart,v,0):v)}getDecimalForPixel(b){const v=(b-this._startPixel)/this._length;return this._reversePixels?1-v:v}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:b,max:v}=this;return b<0&&v<0?v:b>0&&v>0?b:0}getContext(b){const v=this.ticks||[];if(b>=0&&b<v.length){const S=v[b];return S.$context||(S.$context=function Hr(D,b,v){return Sa(D,{tick:v,index:b,type:"tick"})}(this.getContext(),b,S))}return this.$context||(this.$context=function Ga(D,b){return Sa(D,{scale:b,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const b=this.options.ticks,v=Wt(this.labelRotation),S=Math.abs(Math.cos(v)),N=Math.abs(Math.sin(v)),K=this._getLabelSizes(),te=b.autoSkipPadding||0,re=K?K.widest.width+te:0,he=K?K.highest.height+te:0;return this.isHorizontal()?he*S>re*N?re/S:he/N:he*N<re*S?he/S:re/N}_isVisible(){const b=this.options.display;return"auto"!==b?!!b:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(b){const v=this.axis,S=this.chart,N=this.options,{grid:K,position:te}=N,re=K.offset,he=this.isHorizontal(),_t=this.ticks.length+(re?1:0),Lt=rs(K),un=[],_n=K.setContext(this.getContext()),Cn=_n.drawBorder?_n.borderWidth:0,Un=Cn/2,qn=function(Go){return vi(S,Go,Cn)};let ri,fi,Li,Pi,Ci,ji,Ni,ro,oo,_a,Na,ga;if("top"===te)ri=qn(this.bottom),ji=this.bottom-Lt,ro=ri-Un,_a=qn(b.top)+Un,ga=b.bottom;else if("bottom"===te)ri=qn(this.top),_a=b.top,ga=qn(b.bottom)-Un,ji=ri+Un,ro=this.top+Lt;else if("left"===te)ri=qn(this.right),Ci=this.right-Lt,Ni=ri-Un,oo=qn(b.left)+Un,Na=b.right;else if("right"===te)ri=qn(this.left),oo=b.left,Na=qn(b.right)-Un,Ci=ri+Un,Ni=this.left+Lt;else if("x"===v){if("center"===te)ri=qn((b.top+b.bottom)/2+.5);else if(a(te)){const Go=Object.keys(te)[0];ri=qn(this.chart.scales[Go].getPixelForValue(te[Go]))}_a=b.top,ga=b.bottom,ji=ri+Un,ro=ji+Lt}else if("y"===v){if("center"===te)ri=qn((b.left+b.right)/2);else if(a(te)){const Go=Object.keys(te)[0];ri=qn(this.chart.scales[Go].getPixelForValue(te[Go]))}Ci=ri-Un,Ni=Ci-Lt,oo=b.left,Na=b.right}const kr=l(N.ticks.maxTicksLimit,_t),Xr=Math.max(1,Math.ceil(_t/kr));for(fi=0;fi<_t;fi+=Xr){const Go=K.setContext(this.getContext(fi)),Wr=Go.lineWidth,Zr=Go.color,rd=Go.borderDash||[],Uu=Go.borderDashOffset,$c=Go.tickWidth,fl=Go.tickColor,Fd=Go.tickBorderDash||[],hu=Go.tickBorderDashOffset;Li=fc(this,fi,re),void 0!==Li&&(Pi=vi(S,Li,Wr),he?Ci=Ni=oo=Na=Pi:ji=ro=_a=ga=Pi,un.push({tx1:Ci,ty1:ji,tx2:Ni,ty2:ro,x1:oo,y1:_a,x2:Na,y2:ga,width:Wr,color:Zr,borderDash:rd,borderDashOffset:Uu,tickWidth:$c,tickColor:fl,tickBorderDash:Fd,tickBorderDashOffset:hu}))}return this._ticksLength=_t,this._borderValue=ri,un}_computeLabelItems(b){const v=this.axis,S=this.options,{position:N,ticks:K}=S,te=this.isHorizontal(),re=this.ticks,{align:he,crossAlign:Fe,padding:_t,mirror:Lt}=K,un=rs(S.grid),_n=un+_t,Cn=Lt?-_t:_n,Un=-Wt(this.labelRotation),qn=[];let ri,fi,Li,Pi,Ci,ji,Ni,ro,oo,_a,Na,ga,kr="middle";if("top"===N)ji=this.bottom-Cn,Ni=this._getXAxisLabelAlignment();else if("bottom"===N)ji=this.top+Cn,Ni=this._getXAxisLabelAlignment();else if("left"===N){const Go=this._getYAxisLabelAlignment(un);Ni=Go.textAlign,Ci=Go.x}else if("right"===N){const Go=this._getYAxisLabelAlignment(un);Ni=Go.textAlign,Ci=Go.x}else if("x"===v){if("center"===N)ji=(b.top+b.bottom)/2+_n;else if(a(N)){const Go=Object.keys(N)[0];ji=this.chart.scales[Go].getPixelForValue(N[Go])+_n}Ni=this._getXAxisLabelAlignment()}else if("y"===v){if("center"===N)Ci=(b.left+b.right)/2-_n;else if(a(N)){const Go=Object.keys(N)[0];Ci=this.chart.scales[Go].getPixelForValue(N[Go])}Ni=this._getYAxisLabelAlignment(un).textAlign}"y"===v&&("start"===he?kr="top":"end"===he&&(kr="bottom"));const Xr=this._getLabelSizes();for(ri=0,fi=re.length;ri<fi;++ri){Li=re[ri],Pi=Li.label;const Go=K.setContext(this.getContext(ri));ro=this.getPixelForTick(ri)+K.labelOffset,oo=this._resolveTickFontOptions(ri),_a=oo.lineHeight,Na=d(Pi)?Pi.length:1;const Wr=Na/2,Zr=Go.color,rd=Go.textStrokeColor,Uu=Go.textStrokeWidth;let fl,$c=Ni;if(te?(Ci=ro,"inner"===Ni&&($c=ri===fi-1?this.options.reverse?"left":"right":0===ri?this.options.reverse?"right":"left":"center"),ga="top"===N?"near"===Fe||0!==Un?-Na*_a+_a/2:"center"===Fe?-Xr.highest.height/2-Wr*_a+_a:_a/2-Xr.highest.height:"near"===Fe||0!==Un?_a/2:"center"===Fe?Xr.highest.height/2-Wr*_a:Xr.highest.height-Na*_a,Lt&&(ga*=-1)):(ji=ro,ga=(1-Na)*_a/2),Go.showLabelBackdrop){const Fd=_o(Go.backdropPadding),hu=Xr.heights[ri],fu=Xr.widths[ri];let Vu=ji+ga-Fd.top,Ul=Ci-Fd.left;switch(kr){case"middle":Vu-=hu/2;break;case"bottom":Vu-=hu}switch(Ni){case"center":Ul-=fu/2;break;case"right":Ul-=fu}fl={left:Ul,top:Vu,width:fu+Fd.width,height:hu+Fd.height,color:Go.backdropColor}}qn.push({rotation:Un,label:Pi,font:oo,color:Zr,strokeColor:rd,strokeWidth:Uu,textOffset:ga,textAlign:$c,textBaseline:kr,translation:[Ci,ji],backdrop:fl})}return qn}_getXAxisLabelAlignment(){const{position:b,ticks:v}=this.options;if(-Wt(this.labelRotation))return"top"===b?"left":"right";let N="center";return"start"===v.align?N="left":"end"===v.align?N="right":"inner"===v.align&&(N="inner"),N}_getYAxisLabelAlignment(b){const{position:v,ticks:{crossAlign:S,mirror:N,padding:K}}=this.options,re=b+K,he=this._getLabelSizes().widest.width;let Fe,_t;return"left"===v?N?(_t=this.right+K,"near"===S?Fe="left":"center"===S?(Fe="center",_t+=he/2):(Fe="right",_t+=he)):(_t=this.right-re,"near"===S?Fe="right":"center"===S?(Fe="center",_t-=he/2):(Fe="left",_t=this.left)):"right"===v?N?(_t=this.left+K,"near"===S?Fe="right":"center"===S?(Fe="center",_t-=he/2):(Fe="left",_t-=he)):(_t=this.left+re,"near"===S?Fe="left":"center"===S?(Fe="center",_t+=he/2):(Fe="right",_t=this.right)):Fe="right",{textAlign:Fe,x:_t}}_computeLabelArea(){if(this.options.ticks.mirror)return;const b=this.chart,v=this.options.position;return"left"===v||"right"===v?{top:0,left:this.left,bottom:b.height,right:this.right}:"top"===v||"bottom"===v?{top:this.top,left:0,bottom:this.bottom,right:b.width}:void 0}drawBackground(){const{ctx:b,options:{backgroundColor:v},left:S,top:N,width:K,height:te}=this;v&&(b.save(),b.fillStyle=v,b.fillRect(S,N,K,te),b.restore())}getLineWidthForValue(b){const v=this.options.grid;if(!this._isVisible()||!v.display)return 0;const N=this.ticks.findIndex(K=>K.value===b);return N>=0?v.setContext(this.getContext(N)).lineWidth:0}drawGrid(b){const v=this.options.grid,S=this.ctx,N=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(b));let K,te;const re=(he,Fe,_t)=>{!_t.width||!_t.color||(S.save(),S.lineWidth=_t.width,S.strokeStyle=_t.color,S.setLineDash(_t.borderDash||[]),S.lineDashOffset=_t.borderDashOffset,S.beginPath(),S.moveTo(he.x,he.y),S.lineTo(Fe.x,Fe.y),S.stroke(),S.restore())};if(v.display)for(K=0,te=N.length;K<te;++K){const he=N[K];v.drawOnChartArea&&re({x:he.x1,y:he.y1},{x:he.x2,y:he.y2},he),v.drawTicks&&re({x:he.tx1,y:he.ty1},{x:he.tx2,y:he.ty2},{color:he.tickColor,width:he.tickWidth,borderDash:he.tickBorderDash,borderDashOffset:he.tickBorderDashOffset})}}drawBorder(){const{chart:b,ctx:v,options:{grid:S}}=this,N=S.setContext(this.getContext()),K=S.drawBorder?N.borderWidth:0;if(!K)return;const te=S.setContext(this.getContext(0)).lineWidth,re=this._borderValue;let he,Fe,_t,Lt;this.isHorizontal()?(he=vi(b,this.left,K)-K/2,Fe=vi(b,this.right,te)+te/2,_t=Lt=re):(_t=vi(b,this.top,K)-K/2,Lt=vi(b,this.bottom,te)+te/2,he=Fe=re),v.save(),v.lineWidth=N.borderWidth,v.strokeStyle=N.borderColor,v.beginPath(),v.moveTo(he,_t),v.lineTo(Fe,Lt),v.stroke(),v.restore()}drawLabels(b){if(!this.options.ticks.display)return;const S=this.ctx,N=this._computeLabelArea();N&&kn(S,N);const K=this._labelItems||(this._labelItems=this._computeLabelItems(b));let te,re;for(te=0,re=K.length;te<re;++te){const he=K[te],Fe=he.font,_t=he.label;he.backdrop&&(S.fillStyle=he.backdrop.color,S.fillRect(he.backdrop.left,he.backdrop.top,he.backdrop.width,he.backdrop.height)),Oo(S,_t,0,he.textOffset,Fe,he)}N&&ai(S)}drawTitle(){const{ctx:b,options:{position:v,title:S,reverse:N}}=this;if(!S.display)return;const K=to(S.font),te=_o(S.padding),re=S.align;let he=K.lineHeight/2;"bottom"===v||"center"===v||a(v)?(he+=te.bottom,d(S.text)&&(he+=K.lineHeight*(S.text.length-1))):he+=te.top;const{titleX:Fe,titleY:_t,maxWidth:Lt,rotation:un}=function nn(D,b,v,S){const{top:N,left:K,bottom:te,right:re,chart:he}=D,{chartArea:Fe,scales:_t}=he;let un,_n,Cn,Lt=0;const Un=te-N,qn=re-K;if(D.isHorizontal()){if(_n=cn(S,K,re),a(v)){const ri=Object.keys(v)[0];Cn=_t[ri].getPixelForValue(v[ri])+Un-b}else Cn="center"===v?(Fe.bottom+Fe.top)/2+Un-b:Kl(D,v,b);un=re-K}else{if(a(v)){const ri=Object.keys(v)[0];_n=_t[ri].getPixelForValue(v[ri])-qn+b}else _n="center"===v?(Fe.left+Fe.right)/2-qn+b:Kl(D,v,b);Cn=cn(S,te,N),Lt="left"===v?-ct:ct}return{titleX:_n,titleY:Cn,maxWidth:un,rotation:Lt}}(this,he,v,re);Oo(b,S.text,0,0,K,{color:S.color,maxWidth:Lt,rotation:un,textAlign:Xt(re,v,N),textBaseline:"middle",translation:[Fe,_t]})}draw(b){this._isVisible()&&(this.drawBackground(),this.drawGrid(b),this.drawBorder(),this.drawTitle(),this.drawLabels(b))}_layers(){const b=this.options,v=b.ticks&&b.ticks.z||0,S=l(b.grid&&b.grid.z,-1);return this._isVisible()&&this.draw===An.prototype.draw?[{z:S,draw:N=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:S+1,draw:()=>{this.drawBorder()}},{z:v,draw:N=>{this.drawLabels(N)}}]:[{z:v,draw:N=>{this.draw(N)}}]}getMatchingVisibleMetas(b){const v=this.chart.getSortedVisibleDatasetMetas(),S=this.axis+"AxisID",N=[];let K,te;for(K=0,te=v.length;K<te;++K){const re=v[K];re[S]===this.id&&(!b||re.type===b)&&N.push(re)}return N}_resolveTickFontOptions(b){return to(this.options.ticks.setContext(this.getContext(b)).font)}_maxDigits(){const b=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/b}}class Vn{constructor(b,v,S){this.type=b,this.scope=v,this.override=S,this.items=Object.create(null)}isForType(b){return Object.prototype.isPrototypeOf.call(this.type.prototype,b.prototype)}register(b){const v=Object.getPrototypeOf(b);let S;(function uo(D){return"id"in D&&"defaults"in D})(v)&&(S=this.register(v));const N=this.items,K=b.id,te=this.scope+"."+K;if(!K)throw new Error("class does not have id: "+b);return K in N||(N[K]=b,function zn(D,b,v){const S=$(Object.create(null),[v?_i.get(v):{},_i.get(b),D.defaults]);_i.set(b,S),D.defaultRoutes&&function Fi(D,b){Object.keys(b).forEach(v=>{const S=v.split("."),N=S.pop(),K=[D].concat(S).join("."),te=b[v].split("."),re=te.pop(),he=te.join(".");_i.route(K,N,he,re)})}(b,D.defaultRoutes),D.descriptors&&_i.describe(b,D.descriptors)}(b,te,S),this.override&&_i.override(b.id,b.overrides)),te}get(b){return this.items[b]}unregister(b){const v=this.items,S=b.id,N=this.scope;S in v&&delete v[S],N&&S in _i[N]&&(delete _i[N][S],this.override&&delete Nt[S])}}var Ji=new class ua{constructor(){this.controllers=new Vn(yn,"datasets",!0),this.elements=new Vn(Ra,"elements"),this.plugins=new Vn(Object,"plugins"),this.scales=new Vn(An,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...b){this._each("register",b)}remove(...b){this._each("unregister",b)}addControllers(...b){this._each("register",b,this.controllers)}addElements(...b){this._each("register",b,this.elements)}addPlugins(...b){this._each("register",b,this.plugins)}addScales(...b){this._each("register",b,this.scales)}getController(b){return this._get(b,this.controllers,"controller")}getElement(b){return this._get(b,this.elements,"element")}getPlugin(b){return this._get(b,this.plugins,"plugin")}getScale(b){return this._get(b,this.scales,"scale")}removeControllers(...b){this._each("unregister",b,this.controllers)}removeElements(...b){this._each("unregister",b,this.elements)}removePlugins(...b){this._each("unregister",b,this.plugins)}removeScales(...b){this._each("unregister",b,this.scales)}_each(b,v,S){[...v].forEach(N=>{const K=S||this._getRegistryForType(N);S||K.isForType(N)||K===this.plugins&&N.id?this._exec(b,K,N):L(N,te=>{const re=S||this._getRegistryForType(te);this._exec(b,re,te)})})}_exec(b,v,S){const N=p(b);O(S["before"+N],[],S),v[b](S),O(S["after"+N],[],S)}_getRegistryForType(b){for(let v=0;v<this._typedRegistries.length;v++){const S=this._typedRegistries[v];if(S.isForType(b))return S}return this.plugins}_get(b,v,S){const N=v.get(b);if(void 0===N)throw new Error('"'+b+'" is not a registered '+S+".");return N}},Mr=Object.freeze({__proto__:null,BarController:Nr,BubbleController:La,DoughnutController:jr,LineController:ic,PolarAreaController:rl,PieController:Ea,RadarController:nr,ScatterController:(()=>{class D extends yn{update(v){const S=this._cachedMeta,{data:N=[]}=S,K=this.chart._animationsDisabled;let{start:te,count:re}=Bt(S,N,K);if(this._drawStart=te,this._drawCount=re,En(S)&&(te=0,re=N.length),this.options.showLine){const{dataset:he,_dataset:Fe}=S;he._chart=this.chart,he._datasetIndex=this.index,he._decimated=!!Fe._decimated,he.points=N;const _t=this.resolveDatasetElementOptions(v);_t.segment=this.options.segment,this.updateElement(he,void 0,{animated:!K,options:_t},v)}this.updateElements(N,te,re,v)}addElements(){const{showLine:v}=this.options;!this.datasetElementType&&v&&(this.datasetElementType=Ji.getElement("line")),super.addElements()}updateElements(v,S,N,K){const te="reset"===K,{iScale:re,vScale:he,_stacked:Fe,_dataset:_t}=this._cachedMeta,Lt=this.resolveDataElementOptions(S,K),un=this.getSharedOptions(Lt),_n=this.includeOptions(K,un),Cn=re.axis,Un=he.axis,{spanGaps:qn,segment:ri}=this.options,fi=Pe(qn)?qn:Number.POSITIVE_INFINITY,Li=this.chart._animationsDisabled||te||"none"===K;let Pi=S>0&&this.getParsed(S-1);for(let Ci=S;Ci<S+N;++Ci){const ji=v[Ci],Ni=this.getParsed(Ci),ro=Li?ji:{},oo=i(Ni[Un]),_a=ro[Cn]=re.getPixelForValue(Ni[Cn],Ci),Na=ro[Un]=te||oo?he.getBasePixel():he.getPixelForValue(Fe?this.applyStack(he,Ni,Fe):Ni[Un],Ci);ro.skip=isNaN(_a)||isNaN(Na)||oo,ro.stop=Ci>0&&Math.abs(Ni[Cn]-Pi[Cn])>fi,ri&&(ro.parsed=Ni,ro.raw=_t.data[Ci]),_n&&(ro.options=un||this.resolveDataElementOptions(Ci,ji.active?"active":K)),Li||this.updateElement(ji,Ci,ro,K),Pi=Ni}this.updateSharedOptions(un,K,Lt)}getMaxOverflow(){const v=this._cachedMeta,S=v.data||[];if(!this.options.showLine){let he=0;for(let Fe=S.length-1;Fe>=0;--Fe)he=Math.max(he,S[Fe].size(this.resolveDataElementOptions(Fe))/2);return he>0&&he}const N=v.dataset,K=N.options&&N.options.borderWidth||0;if(!S.length)return K;const te=S[0].size(this.resolveDataElementOptions(0)),re=S[S.length-1].size(this.resolveDataElementOptions(S.length-1));return Math.max(K,te,re)/2}}return D.id="scatter",D.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},D.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:b=>"("+b.label+", "+b.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},D})()});function Fa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Ma={_date:(()=>{class D{constructor(v){this.options=v||{}}init(v){}formats(){return Fa()}parse(v,S){return Fa()}format(v,S){return Fa()}add(v,S,N){return Fa()}diff(v,S,N){return Fa()}startOf(v,S,N){return Fa()}endOf(v,S){return Fa()}}return D.override=function(b){Object.assign(D.prototype,b)},D})()};function Is(D,b,v,S){const{controller:N,data:K,_sorted:te}=D,re=N._cachedMeta.iScale;if(re&&b===re.axis&&"r"!==b&&te&&K.length){const he=re._reversePixels?Ut:Ze;if(!S)return he(K,b,v);if(N._sharedOptions){const Fe=K[0],_t="function"==typeof Fe.getRange&&Fe.getRange(b);if(_t){const Lt=he(K,b,v-_t),un=he(K,b,v+_t);return{lo:Lt.lo,hi:un.hi}}}}return{lo:0,hi:K.length-1}}function Si(D,b,v,S,N){const K=D.getSortedVisibleDatasetMetas(),te=v[b];for(let re=0,he=K.length;re<he;++re){const{index:Fe,data:_t}=K[re],{lo:Lt,hi:un}=Is(K[re],b,te,N);for(let _n=Lt;_n<=un;++_n){const Cn=_t[_n];Cn.skip||S(Cn,Fe,_n)}}}function xl(D,b,v,S,N){const K=[];return!N&&!D.isPointInArea(b)||Si(D,v,b,function(re,he,Fe){!N&&!$t(re,D.chartArea,0)||re.inRange(b.x,b.y,S)&&K.push({element:re,datasetIndex:he,index:Fe})},!0),K}function Ns(D,b,v,S,N,K){return K||D.isPointInArea(b)?"r"!==v||S?function Zd(D,b,v,S,N,K){let te=[];const re=function Wa(D){const b=-1!==D.indexOf("x"),v=-1!==D.indexOf("y");return function(S,N){const K=b?Math.abs(S.x-N.x):0,te=v?Math.abs(S.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(te,2))}}(v);let he=Number.POSITIVE_INFINITY;return Si(D,v,b,function Fe(_t,Lt,un){const _n=_t.inRange(b.x,b.y,N);if(S&&!_n)return;const Cn=_t.getCenterPoint(N);if(!K&&!D.isPointInArea(Cn)&&!_n)return;const qn=re(b,Cn);qn<he?(te=[{element:_t,datasetIndex:Lt,index:un}],he=qn):qn===he&&te.push({element:_t,datasetIndex:Lt,index:un})}),te}(D,b,v,S,N,K):function Kc(D,b,v,S){let N=[];return Si(D,v,b,function K(te,re,he){const{startAngle:Fe,endAngle:_t}=te.getProps(["startAngle","endAngle"],S),{angle:Lt}=Be(te,{x:b.x,y:b.y});Yt(Lt,Fe,_t)&&N.push({element:te,datasetIndex:re,index:he})}),N}(D,b,v,N):[]}function Dr(D,b,v,S,N){const K=[],te="x"===v?"inXRange":"inYRange";let re=!1;return Si(D,v,b,(he,Fe,_t)=>{he[te](b[v],N)&&(K.push({element:he,datasetIndex:Fe,index:_t}),re=re||he.inRange(b.x,b.y,N))}),S&&!re?[]:K}var Rc={evaluateInteractionItems:Si,modes:{index(D,b,v,S){const N=Aa(b,D),K=v.axis||"x",te=v.includeInvisible||!1,re=v.intersect?xl(D,N,K,S,te):Ns(D,N,K,!1,S,te),he=[];return re.length?(D.getSortedVisibleDatasetMetas().forEach(Fe=>{const _t=re[0].index,Lt=Fe.data[_t];Lt&&!Lt.skip&&he.push({element:Lt,datasetIndex:Fe.index,index:_t})}),he):[]},dataset(D,b,v,S){const N=Aa(b,D),K=v.axis||"xy",te=v.includeInvisible||!1;let re=v.intersect?xl(D,N,K,S,te):Ns(D,N,K,!1,S,te);if(re.length>0){const he=re[0].datasetIndex,Fe=D.getDatasetMeta(he).data;re=[];for(let _t=0;_t<Fe.length;++_t)re.push({element:Fe[_t],datasetIndex:he,index:_t})}return re},point:(D,b,v,S)=>xl(D,Aa(b,D),v.axis||"xy",S,v.includeInvisible||!1),nearest:(D,b,v,S)=>Ns(D,Aa(b,D),v.axis||"xy",v.intersect,S,v.includeInvisible||!1),x:(D,b,v,S)=>Dr(D,Aa(b,D),"x",v.intersect,S),y:(D,b,v,S)=>Dr(D,Aa(b,D),"y",v.intersect,S)}};const Fc=["left","top","right","bottom"];function Ba(D,b){return D.filter(v=>v.pos===b)}function ws(D,b){return D.filter(v=>-1===Fc.indexOf(v.pos)&&v.box.axis===b)}function Da(D,b){return D.sort((v,S)=>{const N=b?S:v,K=b?v:S;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function qo(D,b,v,S){return Math.max(D[v],b[v])+Math.max(D[S],b[S])}function fe(D,b){D.top=Math.max(D.top,b.top),D.left=Math.max(D.left,b.left),D.bottom=Math.max(D.bottom,b.bottom),D.right=Math.max(D.right,b.right)}function ye(D,b,v,S){const{pos:N,box:K}=v,te=D.maxPadding;if(!a(N)){v.size&&(D[N]-=v.size);const Lt=S[v.stack]||{size:0,count:1};Lt.size=Math.max(Lt.size,v.horizontal?K.height:K.width),v.size=Lt.size/Lt.count,D[N]+=v.size}K.getPadding&&fe(te,K.getPadding());const re=Math.max(0,b.outerWidth-qo(te,D,"left","right")),he=Math.max(0,b.outerHeight-qo(te,D,"top","bottom")),Fe=re!==D.w,_t=he!==D.h;return D.w=re,D.h=he,v.horizontal?{same:Fe,other:_t}:{same:_t,other:Fe}}function Ne(D,b){const v=b.maxPadding;return function S(N){const K={left:0,top:0,right:0,bottom:0};return N.forEach(te=>{K[te]=Math.max(b[te],v[te])}),K}(D?["left","right"]:["top","bottom"])}function st(D,b,v,S){const N=[];let K,te,re,he,Fe,_t;for(K=0,te=D.length,Fe=0;K<te;++K){re=D[K],he=re.box,he.update(re.width||b.w,re.height||b.h,Ne(re.horizontal,b));const{same:Lt,other:un}=ye(b,v,re,S);Fe|=Lt&&N.length,_t=_t||un,he.fullSize||N.push(re)}return Fe&&st(N,b,v,S)||_t}function Ft(D,b,v,S,N){D.top=v,D.left=b,D.right=b+S,D.bottom=v+N,D.width=S,D.height=N}function an(D,b,v,S){const N=v.padding;let{x:K,y:te}=b;for(const re of D){const he=re.box,Fe=S[re.stack]||{count:1,placed:0,weight:1},_t=re.stackWeight/Fe.weight||1;if(re.horizontal){const Lt=b.w*_t,un=Fe.size||he.height;P(Fe.start)&&(te=Fe.start),he.fullSize?Ft(he,N.left,te,v.outerWidth-N.right-N.left,un):Ft(he,b.left+Fe.placed,te,Lt,un),Fe.start=te,Fe.placed+=Lt,te=he.bottom}else{const Lt=b.h*_t,un=Fe.size||he.width;P(Fe.start)&&(K=Fe.start),he.fullSize?Ft(he,K,N.top,un,v.outerHeight-N.bottom-N.top):Ft(he,K,b.top+Fe.placed,un,Lt),Fe.start=K,Fe.placed+=Lt,K=he.right}}b.x=K,b.y=te}_i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var jn={addBox(D,b){D.boxes||(D.boxes=[]),b.fullSize=b.fullSize||!1,b.position=b.position||"top",b.weight=b.weight||0,b._layers=b._layers||function(){return[{z:0,draw(v){b.draw(v)}}]},D.boxes.push(b)},removeBox(D,b){const v=D.boxes?D.boxes.indexOf(b):-1;-1!==v&&D.boxes.splice(v,1)},configure(D,b,v){b.fullSize=v.fullSize,b.position=v.position,b.weight=v.weight},update(D,b,v,S){if(!D)return;const N=_o(D.options.layout.padding),K=Math.max(b-N.width,0),te=Math.max(v-N.height,0),re=function js(D){const b=function wi(D){const b=[];let v,S,N,K,te,re;for(v=0,S=(D||[]).length;v<S;++v)N=D[v],({position:K,options:{stack:te,stackWeight:re=1}}=N),b.push({index:v,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:te&&K+te,stackWeight:re});return b}(D),v=Da(b.filter(Fe=>Fe.box.fullSize),!0),S=Da(Ba(b,"left"),!0),N=Da(Ba(b,"right")),K=Da(Ba(b,"top"),!0),te=Da(Ba(b,"bottom")),re=ws(b,"x"),he=ws(b,"y");return{fullSize:v,leftAndTop:S.concat(K),rightAndBottom:N.concat(he).concat(te).concat(re),chartArea:Ba(b,"chartArea"),vertical:S.concat(N).concat(he),horizontal:K.concat(te).concat(re)}}(D.boxes),he=re.vertical,Fe=re.horizontal;L(D.boxes,Un=>{"function"==typeof Un.beforeLayout&&Un.beforeLayout()});const _t=he.reduce((Un,qn)=>qn.box.options&&!1===qn.box.options.display?Un:Un+1,0)||1,Lt=Object.freeze({outerWidth:b,outerHeight:v,padding:N,availableWidth:K,availableHeight:te,vBoxMaxWidth:K/2/_t,hBoxMaxHeight:te/2}),un=Object.assign({},N);fe(un,_o(S));const _n=Object.assign({maxPadding:un,w:K,h:te,x:N.left,y:N.top},N),Cn=function ir(D,b){const v=function Ur(D){const b={};for(const v of D){const{stack:S,pos:N,stackWeight:K}=v;if(!S||!Fc.includes(N))continue;const te=b[S]||(b[S]={count:0,placed:0,weight:0,size:0});te.count++,te.weight+=K}return b}(D),{vBoxMaxWidth:S,hBoxMaxHeight:N}=b;let K,te,re;for(K=0,te=D.length;K<te;++K){re=D[K];const{fullSize:he}=re.box,Fe=v[re.stack],_t=Fe&&re.stackWeight/Fe.weight;re.horizontal?(re.width=_t?_t*S:he&&b.availableWidth,re.height=N):(re.width=S,re.height=_t?_t*N:he&&b.availableHeight)}return v}(he.concat(Fe),Lt);st(re.fullSize,_n,Lt,Cn),st(he,_n,Lt,Cn),st(Fe,_n,Lt,Cn)&&st(he,_n,Lt,Cn),function se(D){const b=D.maxPadding;function v(S){const N=Math.max(b[S]-D[S],0);return D[S]+=N,N}D.y+=v("top"),D.x+=v("left"),v("right"),v("bottom")}(_n),an(re.leftAndTop,_n,Lt,Cn),_n.x+=_n.w,_n.y+=_n.h,an(re.rightAndBottom,_n,Lt,Cn),D.chartArea={left:_n.left,top:_n.top,right:_n.left+_n.w,bottom:_n.top+_n.h,height:_n.h,width:_n.w},L(re.chartArea,Un=>{const qn=Un.box;Object.assign(qn,D.chartArea),qn.update(_n.w,_n.h,{left:0,top:0,right:0,bottom:0})})}};class mi{acquireContext(b,v){}releaseContext(b){return!1}addEventListener(b,v,S){}removeEventListener(b,v,S){}getDevicePixelRatio(){return 1}getMaximumSize(b,v,S,N){return v=Math.max(0,v||b.width),S=S||b.height,{width:v,height:Math.max(0,N?Math.floor(v/N):S)}}isAttached(b){return!0}updateConfig(b){}}class Vi extends mi{acquireContext(b){return b&&b.getContext&&b.getContext("2d")||null}updateConfig(b){b.options.animation=!1}}const zi="$chartjs",fa={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},wr=D=>null===D||""===D,Us=!!ti&&{passive:!0};function Qa(D,b,v){D.canvas.removeEventListener(b,v,Us)}function Vr(D,b){for(const v of D)if(v===b||v.contains(b))return!0}function Js(D,b,v){const S=D.canvas,N=new MutationObserver(K=>{let te=!1;for(const re of K)te=te||Vr(re.addedNodes,S),te=te&&!Vr(re.removedNodes,S);te&&v()});return N.observe(document,{childList:!0,subtree:!0}),N}function Gc(D,b,v){const S=D.canvas,N=new MutationObserver(K=>{let te=!1;for(const re of K)te=te||Vr(re.removedNodes,S),te=te&&!Vr(re.addedNodes,S);te&&v()});return N.observe(document,{childList:!0,subtree:!0}),N}const vs=new Map;let fd=0;function Jd(){const D=window.devicePixelRatio;D!==fd&&(fd=D,vs.forEach((b,v)=>{v.currentDevicePixelRatio!==D&&b()}))}function qd(D,b,v){const S=D.canvas,N=S&&Ia(S);if(!N)return;const K=Tn((re,he)=>{const Fe=N.clientWidth;v(re,he),Fe<N.clientWidth&&v()},window),te=new ResizeObserver(re=>{const he=re[0],Fe=he.contentRect.width,_t=he.contentRect.height;0===Fe&&0===_t||K(Fe,_t)});return te.observe(N),function Qc(D,b){vs.size||window.addEventListener("resize",Jd),vs.set(D,b)}(D,K),te}function Gr(D,b,v){v&&v.disconnect(),"resize"===b&&function _d(D){vs.delete(D),vs.size||window.removeEventListener("resize",Jd)}(D)}function gd(D,b,v){const S=D.canvas,N=Tn(K=>{null!==D.ctx&&v(function Gl(D,b){const v=fa[D.type]||D.type,{x:S,y:N}=Aa(D,b);return{type:v,chart:b,native:D,x:void 0!==S?S:null,y:void 0!==N?N:null}}(K,D))},D,K=>{const te=K[0];return[te,te.offsetX,te.offsetY]});return function gs(D,b,v){D.addEventListener(b,v,Us)}(S,b,N),N}class sl extends mi{acquireContext(b,v){const S=b&&b.getContext&&b.getContext("2d");return S&&S.canvas===b?(function Kr(D,b){const v=D.style,S=D.getAttribute("height"),N=D.getAttribute("width");if(D[zi]={initial:{height:S,width:N,style:{display:v.display,height:v.height,width:v.width}}},v.display=v.display||"block",v.boxSizing=v.boxSizing||"border-box",wr(N)){const K=$i(D,"width");void 0!==K&&(D.width=K)}if(wr(S))if(""===D.style.height)D.height=D.width/(b||2);else{const K=$i(D,"height");void 0!==K&&(D.height=K)}}(b,v),S):null}releaseContext(b){const v=b.canvas;if(!v[zi])return!1;const S=v[zi].initial;["height","width"].forEach(K=>{const te=S[K];i(te)?v.removeAttribute(K):v.setAttribute(K,te)});const N=S.style||{};return Object.keys(N).forEach(K=>{v.style[K]=N[K]}),v.width=v.width,delete v[zi],!0}addEventListener(b,v,S){this.removeEventListener(b,v),(b.$proxies||(b.$proxies={}))[v]=({attach:Js,detach:Gc,resize:qd}[v]||gd)(b,v,S)}removeEventListener(b,v){const S=b.$proxies||(b.$proxies={}),N=S[v];N&&(({attach:Gr,detach:Gr,resize:Gr}[v]||Qa)(b,v,N),S[v]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(b,v,S,N){return function Ue(D,b,v,S){const N=Za(D),K=ar(N,"margin"),te=wa(N.maxWidth,D,"clientWidth")||we,re=wa(N.maxHeight,D,"clientHeight")||we,he=function Je(D,b,v){let S,N;if(void 0===b||void 0===v){const K=Ia(D);if(K){const te=K.getBoundingClientRect(),re=Za(K),he=ar(re,"border","width"),Fe=ar(re,"padding");b=te.width-Fe.width-he.width,v=te.height-Fe.height-he.height,S=wa(re.maxWidth,K,"clientWidth"),N=wa(re.maxHeight,K,"clientHeight")}else b=D.clientWidth,v=D.clientHeight}return{width:b,height:v,maxWidth:S||we,maxHeight:N||we}}(D,b,v);let{width:Fe,height:_t}=he;if("content-box"===N.boxSizing){const Lt=ar(N,"border","width"),un=ar(N,"padding");Fe-=un.width+Lt.width,_t-=un.height+Lt.height}return Fe=Math.max(0,Fe-K.width),_t=Math.max(0,S?Math.floor(Fe/S):_t-K.height),Fe=Ke(Math.min(Fe,te,he.maxWidth)),_t=Ke(Math.min(_t,re,he.maxHeight)),Fe&&!_t&&(_t=Ke(Fe/2)),{width:Fe,height:_t}}(b,v,S,N)}isAttached(b){const v=Ia(b);return!(!v||!v.isConnected)}}class Bc{constructor(){this._init=[]}notify(b,v,S,N){"beforeInit"===v&&(this._init=this._createDescriptors(b,!0),this._notify(this._init,b,"install"));const K=N?this._descriptors(b).filter(N):this._descriptors(b),te=this._notify(K,b,v,S);return"afterDestroy"===v&&(this._notify(K,b,"stop"),this._notify(this._init,b,"uninstall")),te}_notify(b,v,S,N){N=N||{};for(const K of b){const te=K.plugin;if(!1===O(te[S],[v,N,K.options],te)&&N.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(b){if(this._cache)return this._cache;const v=this._cache=this._createDescriptors(b);return this._notifyStateChanges(b),v}_createDescriptors(b,v){const S=b&&b.config,N=l(S.options&&S.options.plugins,{}),K=function cl(D){const b={},v=[],S=Object.keys(Ji.plugins.items);for(let K=0;K<S.length;K++)v.push(Ji.getPlugin(S[K]));const N=D.plugins||[];for(let K=0;K<N.length;K++){const te=N[K];-1===v.indexOf(te)&&(v.push(te),b[te.id]=!0)}return{plugins:v,localIds:b}}(S);return!1!==N||v?function Ql(D,{plugins:b,localIds:v},S,N){const K=[],te=D.getContext();for(const re of b){const he=re.id,Fe=Xc(S[he],N);null!==Fe&&K.push({plugin:re,options:ys(D.config,{plugin:re,local:v[he]},Fe,te)})}return K}(b,K,N,v):[]}_notifyStateChanges(b){const v=this._oldCache||[],S=this._cache,N=(K,te)=>K.filter(re=>!te.some(he=>re.plugin.id===he.plugin.id));this._notify(N(v,S),b,"stop"),this._notify(N(S,v),b,"start")}}function Xc(D,b){return b||!1!==D?!0===D?{}:D:null}function ys(D,{plugin:b,local:v},S,N){const K=D.pluginScopeKeys(b),te=D.getOptionScopes(S,K);return v&&b.defaults&&te.push(b.defaults),D.createResolver(te,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ml(D,b){return((b.datasets||{})[D]||{}).indexAxis||b.indexAxis||(_i.datasets[D]||{}).indexAxis||"x"}function ss(D,b){return"x"===D||"y"===D?D:b.axis||function vd(D){return"top"===D||"bottom"===D?"x":"left"===D||"right"===D?"y":void 0}(b.position)||D.charAt(0).toLowerCase()}function Zc(D){const b=D.options||(D.options={});b.plugins=l(b.plugins,{}),b.scales=function Dl(D,b){const v=Nt[D.type]||{scales:{}},S=b.scales||{},N=Ml(D.type,b),K=Object.create(null),te=Object.create(null);return Object.keys(S).forEach(re=>{const he=S[re];if(!a(he))return console.error(`Invalid scale configuration for scale: ${re}`);if(he._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${re}`);const Fe=ss(re,he),_t=function up(D,b){return D===b?"_index_":"_value_"}(Fe,N),Lt=v.scales||{};K[Fe]=K[Fe]||re,te[re]=C(Object.create(null),[{axis:Fe},he,Lt[Fe],Lt[_t]])}),D.data.datasets.forEach(re=>{const he=re.type||D.type,Fe=re.indexAxis||Ml(he,b),Lt=(Nt[he]||{}).scales||{};Object.keys(Lt).forEach(un=>{const _n=function dp(D,b){let v=D;return"_index_"===D?v=b:"_value_"===D&&(v="x"===b?"y":"x"),v}(un,Fe),Cn=re[_n+"AxisID"]||K[_n]||_n;te[Cn]=te[Cn]||Object.create(null),C(te[Cn],[{axis:_n},S[Cn],Lt[un]])})}),Object.keys(te).forEach(re=>{const he=te[re];C(he,[_i.scales[he.type],_i.scale])}),te}(D,b)}function Pl(D){return(D=D||{}).datasets=D.datasets||[],D.labels=D.labels||[],D}const El=new Map,ll=new Set;function dl(D,b){let v=El.get(D);return v||(v=b(),El.set(D,v),ll.add(v)),v}const ac=(D,b,v)=>{const S=F(b,v);void 0!==S&&D.add(S)};class Ol{constructor(b){this._config=function Xl(D){return(D=D||{}).data=Pl(D.data),Zc(D),D}(b),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(b){this._config.type=b}get data(){return this._config.data}set data(b){this._config.data=Pl(b)}get options(){return this._config.options}set options(b){this._config.options=b}get plugins(){return this._config.plugins}update(){const b=this._config;this.clearCache(),Zc(b)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(b){return dl(b,()=>[[`datasets.${b}`,""]])}datasetAnimationScopeKeys(b,v){return dl(`${b}.transition.${v}`,()=>[[`datasets.${b}.transitions.${v}`,`transitions.${v}`],[`datasets.${b}`,""]])}datasetElementScopeKeys(b,v){return dl(`${b}-${v}`,()=>[[`datasets.${b}.elements.${v}`,`datasets.${b}`,`elements.${v}`,""]])}pluginScopeKeys(b){const v=b.id;return dl(`${this.type}-plugin-${v}`,()=>[[`plugins.${v}`,...b.additionalOptionScopes||[]]])}_cachedScopes(b,v){const S=this._scopeCache;let N=S.get(b);return(!N||v)&&(N=new Map,S.set(b,N)),N}getOptionScopes(b,v,S){const{options:N,type:K}=this,te=this._cachedScopes(b,S),re=te.get(v);if(re)return re;const he=new Set;v.forEach(_t=>{b&&(he.add(b),_t.forEach(Lt=>ac(he,b,Lt))),_t.forEach(Lt=>ac(he,N,Lt)),_t.forEach(Lt=>ac(he,Nt[K]||{},Lt)),_t.forEach(Lt=>ac(he,_i,Lt)),_t.forEach(Lt=>ac(he,It,Lt))});const Fe=Array.from(he);return 0===Fe.length&&Fe.push(Object.create(null)),ll.has(v)&&te.set(v,Fe),Fe}chartOptionScopes(){const{options:b,type:v}=this;return[b,Nt[v]||{},_i.datasets[v]||{},{type:v},_i,It]}resolveNamedOptions(b,v,S,N=[""]){const K={$shared:!0},{resolver:te,subPrefixes:re}=pa(this._resolverCache,b,N);let he=te;(function be(D,b){const{isScriptable:v,isIndexable:S}=vr(D);for(const N of b){const K=v(N),te=S(N),re=(te||K)&&D[N];if(K&&(E(re)||ie(re))||te&&d(re))return!0}return!1})(te,v)&&(K.$shared=!1,he=cr(te,S=E(S)?S():S,this.createResolver(b,S,re)));for(const Fe of v)K[Fe]=he[Fe];return K}createResolver(b,v,S=[""],N){const{resolver:K}=pa(this._resolverCache,b,S);return a(v)?cr(K,v,void 0,N):K}}function pa(D,b,v){let S=D.get(b);S||(S=new Map,D.set(b,S));const N=v.join();let K=S.get(N);return K||(K={resolver:zr(b,v),subPrefixes:v.filter(re=>!re.toLowerCase().includes("hover"))},S.set(N,K)),K}const ie=D=>a(D)&&Object.getOwnPropertyNames(D).reduce((b,v)=>b||E(D[v]),!1),ft=["top","bottom","left","right","chartArea"];function tn(D,b){return"top"===D||"bottom"===D||-1===ft.indexOf(D)&&"x"===b}function Bn(D,b){return function(v,S){return v[D]===S[D]?v[b]-S[b]:v[D]-S[D]}}function di(D){const b=D.chart,v=b.options.animation;b.notifyPlugins("afterRender"),O(v&&v.onComplete,[D],b)}function Gi(D){const b=D.chart,v=b.options.animation;O(v&&v.onProgress,[D],b)}function So(D){return br()&&"string"==typeof D?D=document.getElementById(D):D&&D.length&&(D=D[0]),D&&D.canvas&&(D=D.canvas),D}const Bo={},$r=D=>{const b=So(D);return Object.values(Bo).filter(v=>v.canvas===b).pop()};function rc(D,b,v){const S=Object.keys(D);for(const N of S){const K=+N;if(K>=b){const te=D[N];delete D[N],(v>0||K>b)&&(D[K+v]=te)}}}class Su{constructor(b,v){const S=this.config=new Ol(v),N=So(b),K=$r(N);if(K)throw new Error("Canvas is already in use. Chart with ID '"+K.id+"' must be destroyed before the canvas with ID '"+K.canvas.id+"' can be reused.");const te=S.createResolver(S.chartOptionScopes(),this.getContext());this.platform=new(S.platform||function Vs(D){return!br()||typeof OffscreenCanvas<"u"&&D instanceof OffscreenCanvas?Vi:sl}(N)),this.platform.updateConfig(S);const re=this.platform.acquireContext(N,te.aspectRatio),he=re&&re.canvas,Fe=he&&he.height,_t=he&&he.width;this.id=e(),this.ctx=re,this.canvas=he,this.width=_t,this.height=Fe,this._options=te,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Bc,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function mn(D,b){let v;return function(...S){return b?(clearTimeout(v),v=setTimeout(D,b,S)):D.apply(this,S),b}}(Lt=>this.update(Lt),te.resizeDelay||0),this._dataChanges=[],Bo[this.id]=this,re&&he?(os.listen(this,"complete",di),os.listen(this,"progress",Gi),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:b,maintainAspectRatio:v},width:S,height:N,_aspectRatio:K}=this;return i(b)?v&&K?K:N?S/N:null:b}get data(){return this.config.data}set data(b){this.config.data=b}get options(){return this._options}set options(b){this.config.options=b}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qt(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Zn(this.canvas,this.ctx),this}stop(){return os.stop(this),this}resize(b,v){os.running(this)?this._resizeBeforeDraw={width:b,height:v}:this._resize(b,v)}_resize(b,v){const S=this.options,te=this.platform.getMaximumSize(this.canvas,b,v,S.maintainAspectRatio&&this.aspectRatio),re=S.devicePixelRatio||this.platform.getDevicePixelRatio(),he=this.width?"resize":"attach";this.width=te.width,this.height=te.height,this._aspectRatio=this.aspectRatio,Qt(this,re,!0)&&(this.notifyPlugins("resize",{size:te}),O(S.onResize,[this,te],this),this.attached&&this._doResize(he)&&this.render())}ensureScalesHaveIDs(){L(this.options.scales||{},(S,N)=>{S.id=N})}buildOrUpdateScales(){const b=this.options,v=b.scales,S=this.scales,N=Object.keys(S).reduce((te,re)=>(te[re]=!1,te),{});let K=[];v&&(K=K.concat(Object.keys(v).map(te=>{const re=v[te],he=ss(te,re),Fe="r"===he,_t="x"===he;return{options:re,dposition:Fe?"chartArea":_t?"bottom":"left",dtype:Fe?"radialLinear":_t?"category":"linear"}}))),L(K,te=>{const re=te.options,he=re.id,Fe=ss(he,re),_t=l(re.type,te.dtype);(void 0===re.position||tn(re.position,Fe)!==tn(te.dposition))&&(re.position=te.dposition),N[he]=!0;let Lt=null;he in S&&S[he].type===_t?Lt=S[he]:(Lt=new(Ji.getScale(_t))({id:he,type:_t,ctx:this.ctx,chart:this}),S[Lt.id]=Lt),Lt.init(re,b)}),L(N,(te,re)=>{te||delete S[re]}),L(S,te=>{jn.configure(this,te,te.options),jn.addBox(this,te)})}_updateMetasets(){const b=this._metasets,v=this.data.datasets.length,S=b.length;if(b.sort((N,K)=>N.index-K.index),S>v){for(let N=v;N<S;++N)this._destroyDatasetMeta(N);b.splice(v,S-v)}this._sortedMetasets=b.slice(0).sort(Bn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:b,data:{datasets:v}}=this;b.length>v.length&&delete this._stacks,b.forEach((S,N)=>{0===v.filter(K=>K===S._dataset).length&&this._destroyDatasetMeta(N)})}buildOrUpdateControllers(){const b=[],v=this.data.datasets;let S,N;for(this._removeUnreferencedMetasets(),S=0,N=v.length;S<N;S++){const K=v[S];let te=this.getDatasetMeta(S);const re=K.type||this.config.type;if(te.type&&te.type!==re&&(this._destroyDatasetMeta(S),te=this.getDatasetMeta(S)),te.type=re,te.indexAxis=K.indexAxis||Ml(re,this.options),te.order=K.order||0,te.index=S,te.label=""+K.label,te.visible=this.isDatasetVisible(S),te.controller)te.controller.updateIndex(S),te.controller.linkScales();else{const he=Ji.getController(re),{datasetElementType:Fe,dataElementType:_t}=_i.datasets[re];Object.assign(he.prototype,{dataElementType:Ji.getElement(_t),datasetElementType:Fe&&Ji.getElement(Fe)}),te.controller=new he(this,S),b.push(te.controller)}}return this._updateMetasets(),b}_resetElements(){L(this.data.datasets,(b,v)=>{this.getDatasetMeta(v).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(b){const v=this.config;v.update();const S=this._options=v.createResolver(v.chartOptionScopes(),this.getContext()),N=this._animationsDisabled=!S.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:b,cancelable:!0}))return;const K=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let te=0;for(let Fe=0,_t=this.data.datasets.length;Fe<_t;Fe++){const{controller:Lt}=this.getDatasetMeta(Fe),un=!N&&-1===K.indexOf(Lt);Lt.buildOrUpdateElements(un),te=Math.max(+Lt.getMaxOverflow(),te)}te=this._minPadding=S.layout.autoPadding?te:0,this._updateLayout(te),N||L(K,Fe=>{Fe.reset()}),this._updateDatasets(b),this.notifyPlugins("afterUpdate",{mode:b}),this._layers.sort(Bn("z","_idx"));const{_active:re,_lastEvent:he}=this;he?this._eventHandler(he,!0):re.length&&this._updateHoverStyles(re,re,!0),this.render()}_updateScales(){L(this.scales,b=>{jn.removeBox(this,b)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const b=this.options,v=new Set(Object.keys(this._listeners)),S=new Set(b.events);(!R(v,S)||!!this._responsiveListeners!==b.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:b}=this,v=this._getUniformDataChanges()||[];for(const{method:S,start:N,count:K}of v)rc(b,N,"_removeElements"===S?-K:K)}_getUniformDataChanges(){const b=this._dataChanges;if(!b||!b.length)return;this._dataChanges=[];const v=this.data.datasets.length,S=K=>new Set(b.filter(te=>te[0]===K).map((te,re)=>re+","+te.splice(1).join(","))),N=S(0);for(let K=1;K<v;K++)if(!R(N,S(K)))return;return Array.from(N).map(K=>K.split(",")).map(K=>({method:K[1],start:+K[2],count:+K[3]}))}_updateLayout(b){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;jn.update(this,this.width,this.height,b);const v=this.chartArea,S=v.width<=0||v.height<=0;this._layers=[],L(this.boxes,N=>{S&&"chartArea"===N.position||(N.configure&&N.configure(),this._layers.push(...N._layers()))},this),this._layers.forEach((N,K)=>{N._idx=K}),this.notifyPlugins("afterLayout")}_updateDatasets(b){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:b,cancelable:!0})){for(let v=0,S=this.data.datasets.length;v<S;++v)this.getDatasetMeta(v).controller.configure();for(let v=0,S=this.data.datasets.length;v<S;++v)this._updateDataset(v,E(b)?b({datasetIndex:v}):b);this.notifyPlugins("afterDatasetsUpdate",{mode:b})}}_updateDataset(b,v){const S=this.getDatasetMeta(b),N={meta:S,index:b,mode:v,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",N)&&(S.controller._update(v),N.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",N))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(os.has(this)?this.attached&&!os.running(this)&&os.start(this):(this.draw(),di({chart:this})))}draw(){let b;if(this._resizeBeforeDraw){const{width:S,height:N}=this._resizeBeforeDraw;this._resize(S,N),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const v=this._layers;for(b=0;b<v.length&&v[b].z<=0;++b)v[b].draw(this.chartArea);for(this._drawDatasets();b<v.length;++b)v[b].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(b){const v=this._sortedMetasets,S=[];let N,K;for(N=0,K=v.length;N<K;++N){const te=v[N];(!b||te.visible)&&S.push(te)}return S}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const b=this.getSortedVisibleDatasetMetas();for(let v=b.length-1;v>=0;--v)this._drawDataset(b[v]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(b){const v=this.ctx,S=b._clip,N=!S.disabled,K=this.chartArea,te={meta:b,index:b.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",te)&&(N&&kn(v,{left:!1===S.left?0:K.left-S.left,right:!1===S.right?this.width:K.right+S.right,top:!1===S.top?0:K.top-S.top,bottom:!1===S.bottom?this.height:K.bottom+S.bottom}),b.controller.draw(),N&&ai(v),te.cancelable=!1,this.notifyPlugins("afterDatasetDraw",te))}isPointInArea(b){return $t(b,this.chartArea,this._minPadding)}getElementsAtEventForMode(b,v,S,N){const K=Rc.modes[v];return"function"==typeof K?K(this,b,S,N):[]}getDatasetMeta(b){const v=this.data.datasets[b],S=this._metasets;let N=S.filter(K=>K&&K._dataset===v).pop();return N||(N={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:v&&v.order||0,index:b,_dataset:v,_parsed:[],_sorted:!1},S.push(N)),N}getContext(){return this.$context||(this.$context=Sa(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(b){const v=this.data.datasets[b];if(!v)return!1;const S=this.getDatasetMeta(b);return"boolean"==typeof S.hidden?!S.hidden:!v.hidden}setDatasetVisibility(b,v){this.getDatasetMeta(b).hidden=!v}toggleDataVisibility(b){this._hiddenIndices[b]=!this._hiddenIndices[b]}getDataVisibility(b){return!this._hiddenIndices[b]}_updateVisibility(b,v,S){const N=S?"show":"hide",K=this.getDatasetMeta(b),te=K.controller._resolveAnimations(void 0,N);P(v)?(K.data[v].hidden=!S,this.update()):(this.setDatasetVisibility(b,S),te.update(K,{visible:S}),this.update(re=>re.datasetIndex===b?N:void 0))}hide(b,v){this._updateVisibility(b,v,!1)}show(b,v){this._updateVisibility(b,v,!0)}_destroyDatasetMeta(b){const v=this._metasets[b];v&&v.controller&&v.controller._destroy(),delete this._metasets[b]}_stop(){let b,v;for(this.stop(),os.remove(this),b=0,v=this.data.datasets.length;b<v;++b)this._destroyDatasetMeta(b)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:b,ctx:v}=this;this._stop(),this.config.clearCache(),b&&(this.unbindEvents(),Zn(b,v),this.platform.releaseContext(v),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Bo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...b){return this.canvas.toDataURL(...b)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const b=this._listeners,v=this.platform,S=(K,te)=>{v.addEventListener(this,K,te),b[K]=te},N=(K,te,re)=>{K.offsetX=te,K.offsetY=re,this._eventHandler(K)};L(this.options.events,K=>S(K,N))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const b=this._responsiveListeners,v=this.platform,S=(he,Fe)=>{v.addEventListener(this,he,Fe),b[he]=Fe},N=(he,Fe)=>{b[he]&&(v.removeEventListener(this,he,Fe),delete b[he])},K=(he,Fe)=>{this.canvas&&this.resize(he,Fe)};let te;const re=()=>{N("attach",re),this.attached=!0,this.resize(),S("resize",K),S("detach",te)};te=()=>{this.attached=!1,N("resize",K),this._stop(),this._resize(0,0),S("attach",re)},v.isAttached(this.canvas)?re():te()}unbindEvents(){L(this._listeners,(b,v)=>{this.platform.removeEventListener(this,v,b)}),this._listeners={},L(this._responsiveListeners,(b,v)=>{this.platform.removeEventListener(this,v,b)}),this._responsiveListeners=void 0}updateHoverStyle(b,v,S){const N=S?"set":"remove";let K,te,re,he;for("dataset"===v&&(K=this.getDatasetMeta(b[0].datasetIndex),K.controller["_"+N+"DatasetHoverStyle"]()),re=0,he=b.length;re<he;++re){te=b[re];const Fe=te&&this.getDatasetMeta(te.datasetIndex).controller;Fe&&Fe[N+"HoverStyle"](te.element,te.datasetIndex,te.index)}}getActiveElements(){return this._active||[]}setActiveElements(b){const v=this._active||[],S=b.map(({datasetIndex:K,index:te})=>{const re=this.getDatasetMeta(K);if(!re)throw new Error("No dataset found at index "+K);return{datasetIndex:K,element:re.data[te],index:te}});!w(S,v)&&(this._active=S,this._lastEvent=null,this._updateHoverStyles(S,v))}notifyPlugins(b,v,S){return this._plugins.notify(this,b,v,S)}_updateHoverStyles(b,v,S){const N=this.options.hover,K=(he,Fe)=>he.filter(_t=>!Fe.some(Lt=>_t.datasetIndex===Lt.datasetIndex&&_t.index===Lt.index)),te=K(v,b),re=S?b:K(b,v);te.length&&this.updateHoverStyle(te,N.mode,!1),re.length&&N.mode&&this.updateHoverStyle(re,N.mode,!0)}_eventHandler(b,v){const S={event:b,replay:v,cancelable:!0,inChartArea:this.isPointInArea(b)},N=te=>(te.options.events||this.options.events).includes(b.native.type);if(!1===this.notifyPlugins("beforeEvent",S,N))return;const K=this._handleEvent(b,v,S.inChartArea);return S.cancelable=!1,this.notifyPlugins("afterEvent",S,N),(K||S.changed)&&this.render(),this}_handleEvent(b,v,S){const{_active:N=[],options:K}=this,re=this._getActiveElements(b,N,S,v),he=function ne(D){return"mouseup"===D.type||"click"===D.type||"contextmenu"===D.type}(b),Fe=function cs(D,b,v,S){return v&&"mouseout"!==D.type?S?b:D:null}(b,this._lastEvent,S,he);S&&(this._lastEvent=null,O(K.onHover,[b,re,this],this),he&&O(K.onClick,[b,re,this],this));const _t=!w(re,N);return(_t||v)&&(this._active=re,this._updateHoverStyles(re,N,v)),this._lastEvent=Fe,_t}_getActiveElements(b,v,S,N){if("mouseout"===b.type)return[];if(!S)return v;const K=this.options.hover;return this.getElementsAtEventForMode(b,K.mode,K,N)}}const Jp=()=>L(Su.instances,D=>D._plugins.invalidate()),ul=!0;function pp(D,b,v){const{startAngle:S,pixelMargin:N,x:K,y:te,outerRadius:re,innerRadius:he}=b;let Fe=N/re;D.beginPath(),D.arc(K,te,re,S-Fe,v+Fe),he>N?(Fe=N/he,D.arc(K,te,he,v+Fe,S-Fe,!0)):D.arc(K,te,N,v+ct,S-ct),D.closePath(),D.clip()}function Sl(D,b,v,S){return{x:v+D*Math.cos(b),y:S+D*Math.sin(b)}}function mp(D,b,v,S,N,K){const{x:te,y:re,startAngle:he,pixelMargin:Fe,innerRadius:_t}=b,Lt=Math.max(b.outerRadius+S+v-Fe,0),un=_t>0?_t+S+v+Fe:0;let _n=0;const Cn=N-he;if(S){const Zr=((_t>0?_t-S:0)+(Lt>0?Lt-S:0))/2;_n=(Cn-(0!==Zr?Cn*Zr/(Zr+S):Cn))/2}const qn=(Cn-Math.max(.001,Cn*Lt-v/G)/Lt)/2,ri=he+qn+_n,fi=N-qn-_n,{outerStart:Li,outerEnd:Pi,innerStart:Ci,innerEnd:ji}=function qp(D,b,v,S){const N=function eu(D){return sr(D,["outerStart","outerEnd","innerStart","innerEnd"])}(D.options.borderRadius),K=(v-b)/2,te=Math.min(K,S*b/2),re=he=>{const Fe=(v-Math.min(K,he))*S/2;return Tt(he,0,Math.min(K,Fe))};return{outerStart:re(N.outerStart),outerEnd:re(N.outerEnd),innerStart:Tt(N.innerStart,0,te),innerEnd:Tt(N.innerEnd,0,te)}}(b,un,Lt,fi-ri),Ni=Lt-Li,ro=Lt-Pi,oo=ri+Li/Ni,_a=fi-Pi/ro,Na=un+Ci,ga=un+ji,kr=ri+Ci/Na,Xr=fi-ji/ga;if(D.beginPath(),K){if(D.arc(te,re,Lt,oo,_a),Pi>0){const Zr=Sl(ro,_a,te,re);D.arc(Zr.x,Zr.y,Pi,_a,fi+ct)}const Go=Sl(ga,fi,te,re);if(D.lineTo(Go.x,Go.y),ji>0){const Zr=Sl(ga,Xr,te,re);D.arc(Zr.x,Zr.y,ji,fi+ct,Xr+Math.PI)}if(D.arc(te,re,un,fi-ji/un,ri+Ci/un,!0),Ci>0){const Zr=Sl(Na,kr,te,re);D.arc(Zr.x,Zr.y,Ci,kr+Math.PI,ri-ct)}const Wr=Sl(Ni,ri,te,re);if(D.lineTo(Wr.x,Wr.y),Li>0){const Zr=Sl(Ni,oo,te,re);D.arc(Zr.x,Zr.y,Li,ri-ct,oo)}}else{D.moveTo(te,re);const Go=Math.cos(oo)*Lt+te,Wr=Math.sin(oo)*Lt+re;D.lineTo(Go,Wr);const Zr=Math.cos(_a)*Lt+te,rd=Math.sin(_a)*Lt+re;D.lineTo(Zr,rd)}D.closePath()}Object.defineProperties(Su,{defaults:{enumerable:ul,value:_i},instances:{enumerable:ul,value:Bo},overrides:{enumerable:ul,value:Nt},registry:{enumerable:ul,value:Ji},version:{enumerable:ul,value:"3.9.1"},getChart:{enumerable:ul,value:$r},register:{enumerable:ul,value:(...D)=>{Ji.add(...D),Jp()}},unregister:{enumerable:ul,value:(...D)=>{Ji.remove(...D),Jp()}}});class xs extends Ra{constructor(b){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,b&&Object.assign(this,b)}inRange(b,v,S){const N=this.getProps(["x","y"],S),{angle:K,distance:te}=Be(N,{x:b,y:v}),{startAngle:re,endAngle:he,innerRadius:Fe,outerRadius:_t,circumference:Lt}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],S),un=this.options.spacing/2,Cn=l(Lt,he-re)>=ce||Yt(K,re,he),Un=Gt(te,Fe+un,_t+un);return Cn&&Un}getCenterPoint(b){const{x:v,y:S,startAngle:N,endAngle:K,innerRadius:te,outerRadius:re}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],b),{offset:he,spacing:Fe}=this.options,_t=(N+K)/2,Lt=(te+re+Fe+he)/2;return{x:v+Math.cos(_t)*Lt,y:S+Math.sin(_t)*Lt}}tooltipPosition(b){return this.getCenterPoint(b)}draw(b){const{options:v,circumference:S}=this,N=(v.offset||0)/2,K=(v.spacing||0)/2,te=v.circular;if(this.pixelMargin="inner"===v.borderAlign?.33:0,this.fullCircles=S>ce?Math.floor(S/ce):0,0===S||this.innerRadius<0||this.outerRadius<0)return;b.save();let re=0;if(N){re=N/2;const Fe=(this.startAngle+this.endAngle)/2;b.translate(Math.cos(Fe)*re,Math.sin(Fe)*re),this.circumference>=G&&(re=N)}b.fillStyle=v.backgroundColor,b.strokeStyle=v.borderColor;const he=function Tu(D,b,v,S,N){const{fullCircles:K,startAngle:te,circumference:re}=b;let he=b.endAngle;if(K){mp(D,b,v,S,te+ce,N);for(let Fe=0;Fe<K;++Fe)D.fill();isNaN(re)||(he=te+re%ce,re%ce==0&&(he+=ce))}return mp(D,b,v,S,he,N),D.fill(),he}(b,this,re,K,te);(function em(D,b,v,S,N,K){const{options:te}=b,{borderWidth:re,borderJoinStyle:he}=te,Fe="inner"===te.borderAlign;re&&(Fe?(D.lineWidth=2*re,D.lineJoin=he||"round"):(D.lineWidth=re,D.lineJoin=he||"bevel"),b.fullCircles&&function sa(D,b,v){const{x:S,y:N,startAngle:K,pixelMargin:te,fullCircles:re}=b,he=Math.max(b.outerRadius-te,0),Fe=b.innerRadius+te;let _t;for(v&&pp(D,b,K+ce),D.beginPath(),D.arc(S,N,Fe,K+ce,K,!0),_t=0;_t<re;++_t)D.stroke();for(D.beginPath(),D.arc(S,N,he,K,K+ce),_t=0;_t<re;++_t)D.stroke()}(D,b,Fe),Fe&&pp(D,b,N),mp(D,b,v,S,N,K),D.stroke())})(b,this,re,K,he,te),b.restore()}}function Tl(D,b,v=b){D.lineCap=l(v.borderCapStyle,b.borderCapStyle),D.setLineDash(l(v.borderDash,b.borderDash)),D.lineDashOffset=l(v.borderDashOffset,b.borderDashOffset),D.lineJoin=l(v.borderJoinStyle,b.borderJoinStyle),D.lineWidth=l(v.borderWidth,b.borderWidth),D.strokeStyle=l(v.borderColor,b.borderColor)}function hp(D,b,v){D.lineTo(v.x,v.y)}function As(D,b,v={}){const S=D.length,{start:N=0,end:K=S-1}=v,{start:te,end:re}=b,he=Math.max(N,te),Fe=Math.min(K,re);return{count:S,start:he,loop:b.loop,ilen:Fe<he&&!(N<te&&K<te||N>re&&K>re)?S+Fe-he:Fe-he}}function $s(D,b,v,S){const{points:N,options:K}=b,{count:te,start:re,loop:he,ilen:Fe}=As(N,v,S),_t=function fp(D){return D.stepped?qi:D.tension||"monotone"===D.cubicInterpolationMode?eo:hp}(K);let _n,Cn,Un,{move:Lt=!0,reverse:un}=S||{};for(_n=0;_n<=Fe;++_n)Cn=N[(re+(un?Fe-_n:_n))%te],!Cn.skip&&(Lt?(D.moveTo(Cn.x,Cn.y),Lt=!1):_t(D,Un,Cn,un,K.stepped),Un=Cn);return he&&(Cn=N[(re+(un?Fe:0))%te],_t(D,Un,Cn,un,K.stepped)),!!he}function bd(D,b,v,S){const N=b.points,{count:K,start:te,ilen:re}=As(N,v,S),{move:he=!0,reverse:Fe}=S||{};let un,_n,Cn,Un,qn,ri,_t=0,Lt=0;const fi=Pi=>(te+(Fe?re-Pi:Pi))%K,Li=()=>{Un!==qn&&(D.lineTo(_t,qn),D.lineTo(_t,Un),D.lineTo(_t,ri))};for(he&&(_n=N[fi(0)],D.moveTo(_n.x,_n.y)),un=0;un<=re;++un){if(_n=N[fi(un)],_n.skip)continue;const Pi=_n.x,Ci=_n.y,ji=0|Pi;ji===Cn?(Ci<Un?Un=Ci:Ci>qn&&(qn=Ci),_t=(Lt*_t+Pi)/++Lt):(Li(),D.lineTo(Pi,Ci),Cn=ji,Lt=0,Un=qn=Ci),ri=Ci}Li()}function pl(D){const b=D.options;return D._decimated||D._loop||b.tension||"monotone"===b.cubicInterpolationMode||b.stepped||b.borderDash&&b.borderDash.length?$s:bd}xs.id="arc",xs.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},xs.defaultRoutes={backgroundColor:"backgroundColor"};const qs="function"==typeof Path2D;let gc=(()=>{class D extends Ra{constructor(v){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,v&&Object.assign(this,v)}updateControlPoints(v,S){const N=this.options;!N.tension&&"monotone"!==N.cubicInterpolationMode||N.stepped||this._pointsUpdated||(fr(this._points,N,v,N.spanGaps?this._loop:this._fullLoop,S),this._pointsUpdated=!0)}set points(v){this._points=v,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Os(D,b){const v=D.points,S=D.options.spanGaps,N=v.length;if(!N)return[];const K=!!D._loop,{start:te,end:re}=function Cr(D,b,v,S){let N=0,K=b-1;if(v&&!S)for(;N<b&&!D[N].skip;)N++;for(;N<b&&D[N].skip;)N++;for(N%=b,v&&(K+=N);K>N&&D[K%b].skip;)K--;return K%=b,{start:N,end:K}}(v,N,K,S);return function Tc(D,b,v,S){return S&&S.setContext&&v?function Fs(D,b,v,S){const N=D._chart.getContext(),K=is(D.options),{_datasetIndex:te,options:{spanGaps:re}}=D,he=v.length,Fe=[];let _t=K,Lt=b[0].start,un=Lt;function _n(Cn,Un,qn,ri){const fi=re?-1:1;if(Cn!==Un){for(Cn+=he;v[Cn%he].skip;)Cn-=fi;for(;v[Un%he].skip;)Un+=fi;Cn%he!=Un%he&&(Fe.push({start:Cn%he,end:Un%he,loop:qn,style:ri}),_t=ri,Lt=Un%he)}}for(const Cn of b){Lt=re?Lt:Cn.start;let qn,Un=v[Lt%he];for(un=Lt+1;un<=Cn.end;un++){const ri=v[un%he];qn=is(S.setContext(Sa(N,{type:"segment",p0:Un,p1:ri,p0DataIndex:(un-1)%he,p1DataIndex:un%he,datasetIndex:te}))),Br(qn,_t)&&_n(Lt,un-1,Cn.loop,_t),Un=ri,_t=qn}Lt<un-1&&_n(Lt,un-1,Cn.loop,_t)}return Fe}(D,b,v,S):b}(D,!0===S?[{start:te,end:re,loop:K}]:function _s(D,b,v,S){const N=D.length,K=[];let he,te=b,re=D[b];for(he=b+1;he<=v;++he){const Fe=D[he%N];Fe.skip||Fe.stop?re.skip||(K.push({start:b%N,end:(he-1)%N,loop:S=!1}),b=te=Fe.stop?he:null):(te=he,re.skip&&(b=he)),re=Fe}return null!==te&&K.push({start:b%N,end:te%N,loop:S}),K}(v,te,re<te?re+N:re,!!D._fullLoop&&0===te&&re===N-1),v,b)}(this,this.options.segment))}first(){const v=this.segments;return v.length&&this.points[v[0].start]}last(){const v=this.segments,N=v.length;return N&&this.points[v[N-1].end]}interpolate(v,S){const N=this.options,K=v[S],te=this.points,re=Po(this,{property:S,start:K,end:K});if(!re.length)return;const he=[],Fe=function Iu(D){return D.stepped?it:D.tension||"monotone"===D.cubicInterpolationMode?ae:qt}(N);let _t,Lt;for(_t=0,Lt=re.length;_t<Lt;++_t){const{start:un,end:_n}=re[_t],Cn=te[un],Un=te[_n];if(Cn===Un){he.push(Cn);continue}const ri=Fe(Cn,Un,Math.abs((K-Cn[S])/(Un[S]-Cn[S])),N.stepped);ri[S]=v[S],he.push(ri)}return 1===he.length?he[0]:he}pathSegment(v,S,N){return pl(this)(v,this,S,N)}path(v,S,N){const K=this.segments,te=pl(this);let re=this._loop;S=S||0,N=N||this.points.length-S;for(const he of K)re&=te(v,this,he,{start:S,end:S+N-1});return!!re}draw(v,S,N,K){(this.points||[]).length&&(this.options||{}).borderWidth&&(v.save(),function ml(D,b,v,S){qs&&!b.options.segment?function _p(D,b,v,S){let N=b._path;N||(N=b._path=new Path2D,b.path(N,v,S)&&N.closePath()),Tl(D,b.options),D.stroke(N)}(D,b,v,S):function tm(D,b,v,S){const{segments:N,options:K}=b,te=pl(b);for(const re of N)Tl(D,K,re.style),D.beginPath(),te(D,b,re,{start:v,end:v+S-1})&&D.closePath(),D.stroke()}(D,b,v,S)}(v,this,N,K),v.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return D.id="line",D.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},D.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},D.descriptors={_scriptable:!0,_indexable:b=>"borderDash"!==b&&"fill"!==b},D})();function gp(D,b,v,S){const N=D.options,{[v]:K}=D.getProps([v],S);return Math.abs(b-K)<N.radius+N.hitRadius}let tu=(()=>{class D extends Ra{constructor(v){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,v&&Object.assign(this,v)}inRange(v,S,N){const K=this.options,{x:te,y:re}=this.getProps(["x","y"],N);return Math.pow(v-te,2)+Math.pow(S-re,2)<Math.pow(K.hitRadius+K.radius,2)}inXRange(v,S){return gp(this,v,"x",S)}inYRange(v,S){return gp(this,v,"y",S)}getCenterPoint(v){const{x:S,y:N}=this.getProps(["x","y"],v);return{x:S,y:N}}size(v){let S=(v=v||this.options||{}).radius||0;return S=Math.max(S,S&&v.hoverRadius||0),2*(S+(S&&v.borderWidth||0))}draw(v,S){const N=this.options;this.skip||N.radius<.1||!$t(this,S,this.size(N)/2)||(v.strokeStyle=N.borderColor,v.lineWidth=N.borderWidth,v.fillStyle=N.backgroundColor,gn(v,N,this.x,this.y))}getRange(){const v=this.options||{};return v.radius+v.hitRadius}}return D.id="point",D.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},D.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},D})();function nu(D,b){const{x:v,y:S,base:N,width:K,height:te}=D.getProps(["x","y","base","width","height"],b);let re,he,Fe,_t,Lt;return D.horizontal?(Lt=te/2,re=Math.min(v,N),he=Math.max(v,N),Fe=S-Lt,_t=S+Lt):(Lt=K/2,re=v-Lt,he=v+Lt,Fe=Math.min(S,N),_t=Math.max(S,N)),{left:re,top:Fe,right:he,bottom:_t}}function ls(D,b,v,S){return D?0:Tt(b,v,S)}function qc(D,b,v,S){const N=null===b,K=null===v,re=D&&!(N&&K)&&nu(D,S);return re&&(N||Gt(b,re.left,re.right))&&(K||Gt(v,re.top,re.bottom))}function el(D,b){D.rect(b.x,b.y,b.w,b.h)}function iu(D,b,v={}){const S=D.x!==v.x?-b:0,N=D.y!==v.y?-b:0;return{x:D.x+S,y:D.y+N,w:D.w+((D.x+D.w!==v.x+v.w?b:0)-S),h:D.h+((D.y+D.h!==v.y+v.h?b:0)-N),radius:D.radius}}class tl extends Ra{constructor(b){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,b&&Object.assign(this,b)}draw(b){const{inflateAmount:v,options:{borderColor:S,backgroundColor:N}}=this,{inner:K,outer:te}=function vp(D){const b=nu(D),v=b.right-b.left,S=b.bottom-b.top,N=function Jc(D,b,v){const N=D.borderSkipped,K=Ks(D.options.borderWidth);return{t:ls(N.top,K.top,0,v),r:ls(N.right,K.right,0,b),b:ls(N.bottom,K.bottom,0,v),l:ls(N.left,K.left,0,b)}}(D,v/2,S/2),K=function Zl(D,b,v){const{enableBorderRadius:S}=D.getProps(["enableBorderRadius"]),N=D.options.borderRadius,K=_r(N),te=Math.min(b,v),re=D.borderSkipped,he=S||a(N);return{topLeft:ls(!he||re.top||re.left,K.topLeft,0,te),topRight:ls(!he||re.top||re.right,K.topRight,0,te),bottomLeft:ls(!he||re.bottom||re.left,K.bottomLeft,0,te),bottomRight:ls(!he||re.bottom||re.right,K.bottomRight,0,te)}}(D,v/2,S/2);return{outer:{x:b.left,y:b.top,w:v,h:S,radius:K},inner:{x:b.left+N.l,y:b.top+N.t,w:v-N.l-N.r,h:S-N.t-N.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,K.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(N.b,N.r))}}}}(this),re=function bp(D){return D.topLeft||D.topRight||D.bottomLeft||D.bottomRight}(te.radius)?Wo:el;b.save(),(te.w!==K.w||te.h!==K.h)&&(b.beginPath(),re(b,iu(te,v,K)),b.clip(),re(b,iu(K,-v,te)),b.fillStyle=S,b.fill("evenodd")),b.beginPath(),re(b,iu(K,v)),b.fillStyle=N,b.fill(),b.restore()}inRange(b,v,S){return qc(this,b,v,S)}inXRange(b,v){return qc(this,b,null,v)}inYRange(b,v){return qc(this,null,b,v)}getCenterPoint(b){const{x:v,y:S,base:N,horizontal:K}=this.getProps(["x","y","base","horizontal"],b);return{x:K?(v+N)/2:v,y:K?S:(S+N)/2}}getRange(b){return"x"===b?this.width/2:this.height/2}}tl.id="bar",tl.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},tl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var hl=Object.freeze({__proto__:null,ArcElement:xs,LineElement:gc,PointElement:tu,BarElement:tl});function wu(D){if(D._decimated){const b=D._data;delete D._decimated,delete D._data,Object.defineProperty(D,"data",{value:b})}}function Au(D){D.data.datasets.forEach(b=>{wu(b)})}var Cd={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(D,b,v)=>{if(!v.enabled)return void Au(D);const S=D.width;D.data.datasets.forEach((N,K)=>{const{_data:te,indexAxis:re}=N,he=D.getDatasetMeta(K),Fe=te||N.data;if("y"===gr([re,D.options.indexAxis])||!he.controller.supportsDecimation)return;const _t=D.scales[he.xAxisID];if("linear"!==_t.type&&"time"!==_t.type||D.options.parsing)return;let Cn,{start:Lt,count:un}=function Nc(D,b){const v=b.length;let N,S=0;const{iScale:K}=D,{min:te,max:re,minDefined:he,maxDefined:Fe}=K.getUserBounds();return he&&(S=Tt(Ze(b,K.axis,te).lo,0,v-1)),N=Fe?Tt(Ze(b,K.axis,re).hi+1,S,v)-S:v-S,{start:S,count:N}}(he,Fe);if(un<=(v.threshold||4*S))wu(N);else{switch(i(te)&&(N._data=Fe,delete N.data,Object.defineProperty(N,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(Un){this._data=Un}})),v.algorithm){case"lttb":Cn=function Qr(D,b,v,S,N){const K=N.samples||S;if(K>=v)return D.slice(b,b+v);const te=[],re=(v-2)/(K-2);let he=0;const Fe=b+v-1;let Lt,un,_n,Cn,Un,_t=b;for(te[he++]=D[_t],Lt=0;Lt<K-2;Lt++){let fi,qn=0,ri=0;const Li=Math.floor((Lt+1)*re)+1+b,Pi=Math.min(Math.floor((Lt+2)*re)+1,v)+b,Ci=Pi-Li;for(fi=Li;fi<Pi;fi++)qn+=D[fi].x,ri+=D[fi].y;qn/=Ci,ri/=Ci;const ji=Math.floor(Lt*re)+1+b,Ni=Math.min(Math.floor((Lt+1)*re)+1,v)+b,{x:ro,y:oo}=D[_t];for(_n=Cn=-1,fi=ji;fi<Ni;fi++)Cn=.5*Math.abs((ro-qn)*(D[fi].y-oo)-(ro-D[fi].x)*(ri-oo)),Cn>_n&&(_n=Cn,un=D[fi],Un=fi);te[he++]=un,_t=Un}return te[he++]=D[Fe],te}(Fe,Lt,un,S,v);break;case"min-max":Cn=function ks(D,b,v,S){let te,re,he,Fe,_t,Lt,un,_n,Cn,Un,N=0,K=0;const qn=[],fi=D[b].x,Pi=D[b+v-1].x-fi;for(te=b;te<b+v;++te){re=D[te],he=(re.x-fi)/Pi*S,Fe=re.y;const Ci=0|he;if(Ci===_t)Fe<Cn?(Cn=Fe,Lt=te):Fe>Un&&(Un=Fe,un=te),N=(K*N+re.x)/++K;else{const ji=te-1;if(!i(Lt)&&!i(un)){const Ni=Math.min(Lt,un),ro=Math.max(Lt,un);Ni!==_n&&Ni!==ji&&qn.push({...D[Ni],x:N}),ro!==_n&&ro!==ji&&qn.push({...D[ro],x:N})}te>0&&ji!==_n&&qn.push(D[ji]),qn.push(re),_t=Ci,K=0,Cn=Un=Fe,Lt=un=_n=te}}return qn}(Fe,Lt,un,S);break;default:throw new Error(`Unsupported decimation algorithm '${v.algorithm}'`)}N._decimated=Cn}})},destroy(D){Au(D)}};function au(D,b,v,S){if(S)return;let N=b[D],K=v[D];return"angle"===D&&(N=Dt(N),K=Dt(K)),{property:D,start:N,end:K}}function vc(D,b,v){for(;b>D;b--){const S=v[b];if(!isNaN(S.x)&&!isNaN(S.y))break}return b}function ku(D,b,v,S){return D&&b?S(D[v],b[v]):D?D[v]:b?b[v]:0}function Cp(D,b){let v=[],S=!1;return d(D)?(S=!0,v=D):v=function Ms(D,b){const{x:v=null,y:S=null}=D||{},N=b.points,K=[];return b.segments.forEach(({start:te,end:re})=>{re=vc(te,re,N);const he=N[te],Fe=N[re];null!==S?(K.push({x:he.x,y:S}),K.push({x:Fe.x,y:S})):null!==v&&(K.push({x:v,y:he.y}),K.push({x:v,y:Fe.y}))}),K}(D,b),v.length?new gc({points:v,options:{tension:0},_loop:S,_fullLoop:S}):null}function yd(D){return D&&!1!==D.fill}function bc(D,b,v){let N=D[b].fill;const K=[b];let te;if(!v)return N;for(;!1!==N&&-1===K.indexOf(N);){if(!u(N))return N;if(te=D[N],!te)return!1;if(te.visible)return N;K.push(N),N=te.fill}return!1}function Jl(D,b,v){const S=function ql(D){const b=D.options,v=b.fill;let S=l(v&&v.target,v);return void 0===S&&(S=!!b.backgroundColor),!1!==S&&null!==S&&(!0===S?"origin":S)}(D);if(a(S))return!isNaN(S.value)&&S;let N=parseFloat(S);return u(N)&&Math.floor(N)===N?function xd(D,b,v,S){return("-"===D||"+"===D)&&(v=b+v),!(v===b||v<0||v>=S)&&v}(S[0],b,N,v):["origin","start","end","stack","shape"].indexOf(S)>=0&&S}function Qm(D,b,v){const S=[];for(let N=0;N<v.length;N++){const K=v[N],{first:te,last:re,point:he}=ru(K,b,"x");if(!(!he||te&&re))if(te)S.unshift(he);else if(D.push(he),!re)break}D.push(...S)}function ru(D,b,v){const S=D.interpolate(b,v);if(!S)return{};const N=S[v],K=D.segments,te=D.points;let re=!1,he=!1;for(let Fe=0;Fe<K.length;Fe++){const _t=K[Fe],Lt=te[_t.start][v],un=te[_t.end][v];if(Gt(N,Lt,un)){re=N===Lt,he=N===un;break}}return{first:re,last:he,point:S}}class su{constructor(b){this.x=b.x,this.y=b.y,this.radius=b.radius}pathSegment(b,v,S){const{x:N,y:K,radius:te}=this;return b.arc(N,K,te,(v=v||{start:0,end:ce}).end,v.start,!0),!S.bounds}interpolate(b){const{x:v,y:S,radius:N}=this,K=b.angle;return{x:v+Math.cos(K)*N,y:S+Math.sin(K)*N,angle:K}}}function td(D,b,v){const S=function wl(D){const{chart:b,fill:v,line:S}=D;if(u(v))return function Dd(D,b){const v=D.getDatasetMeta(b);return v&&D.isDatasetVisible(b)?v.dataset:null}(b,v);if("stack"===v)return function Md(D){const{scale:b,index:v,line:S}=D,N=[],K=S.segments,te=S.points,re=function Gm(D,b){const v=[],S=D.getMatchingVisibleMetas("line");for(let N=0;N<S.length;N++){const K=S[N];if(K.index===b)break;K.hidden||v.unshift(K.dataset)}return v}(b,v);re.push(Cp({x:null,y:b.bottom},S));for(let he=0;he<K.length;he++){const Fe=K[he];for(let _t=Fe.start;_t<=Fe.end;_t++)Qm(N,te[_t],re)}return new gc({points:N,options:{}})}(D);if("shape"===v)return!0;const N=function ed(D){return(D.scale||{}).getPointPositionForValue?function nm(D){const{scale:b,fill:v}=D,S=b.options,N=b.getLabels().length,K=S.reverse?b.max:b.min,te=function Il(D,b,v){let S;return S="start"===D?v:"end"===D?b.options.reverse?b.min:b.max:a(D)?D.value:b.getBaseValue(),S}(v,b,K),re=[];if(S.grid.circular){const he=b.getPointPositionForValue(0,K);return new su({x:he.x,y:he.y,radius:b.getDistanceFromCenterForValue(te)})}for(let he=0;he<N;++he)re.push(b.getPointPositionForValue(he,te));return re}(D):function Al(D){const{scale:b={},fill:v}=D,S=function yp(D,b){let v=null;return"start"===D?v=b.bottom:"end"===D?v=b.top:a(D)?v=b.getPixelForValue(D.value):b.getBasePixel&&(v=b.getBasePixel()),v}(v,b);if(u(S)){const N=b.isHorizontal();return{x:N?S:null,y:N?null:S}}return null}(D)}(D);return N instanceof su?N:Cp(N,S)}(b),{line:N,scale:K,axis:te}=b,re=N.options,he=re.fill,Fe=re.backgroundColor,{above:_t=Fe,below:Lt=Fe}=he||{};S&&N.points.length&&(kn(D,v),function nd(D,b){const{line:v,target:S,above:N,below:K,area:te,scale:re}=b,he=v._loop?"angle":b.axis;D.save(),"x"===he&&K!==N&&(Lu(D,S,te.top),Pd(D,{line:v,target:S,color:N,scale:re,property:he}),D.restore(),D.save(),Lu(D,S,te.bottom)),Pd(D,{line:v,target:S,color:K,scale:re,property:he}),D.restore()}(D,{line:N,target:S,above:_t,below:Lt,area:v,scale:K,axis:te}),ai(D))}function Lu(D,b,v){const{segments:S,points:N}=b;let K=!0,te=!1;D.beginPath();for(const re of S){const{start:he,end:Fe}=re,_t=N[he],Lt=N[vc(he,Fe,N)];K?(D.moveTo(_t.x,_t.y),K=!1):(D.lineTo(_t.x,v),D.lineTo(_t.x,_t.y)),te=!!b.pathSegment(D,re,{move:te}),te?D.closePath():D.lineTo(Lt.x,v)}D.lineTo(b.first().x,v),D.closePath(),D.clip()}function Pd(D,b){const{line:v,target:S,property:N,color:K,scale:te}=b,re=function ou(D,b,v){const S=D.segments,N=D.points,K=b.points,te=[];for(const re of S){let{start:he,end:Fe}=re;Fe=vc(he,Fe,N);const _t=au(v,N[he],N[Fe],re.loop);if(!b.segments){te.push({source:re,target:_t,start:N[he],end:N[Fe]});continue}const Lt=Po(b,_t);for(const un of Lt){const _n=au(v,K[un.start],K[un.end],un.loop),Cn=ka(re,N,_n);for(const Un of Cn)te.push({source:Un,target:un,start:{[v]:ku(_t,_n,"start",Math.max)},end:{[v]:ku(_t,_n,"end",Math.min)}})}}return te}(v,S,N);for(const{source:he,target:Fe,start:_t,end:Lt}of re){const{style:{backgroundColor:un=K}={}}=he,_n=!0!==S;D.save(),D.fillStyle=un,xp(D,te,_n&&au(N,_t,Lt)),D.beginPath();const Cn=!!v.pathSegment(D,he);let Un;if(_n){Cn?D.closePath():cu(D,S,Lt,N);const qn=!!S.pathSegment(D,Fe,{move:Cn,reverse:!0});Un=Cn&&qn,Un||cu(D,S,_t,N)}D.closePath(),D.fill(Un?"evenodd":"nonzero"),D.restore()}}function xp(D,b,v){const{top:S,bottom:N}=b.chart.chartArea,{property:K,start:te,end:re}=v||{};"x"===K&&(D.beginPath(),D.rect(te,S,re-te,N-S),D.clip())}function cu(D,b,v,S){const N=b.interpolate(v,S);N&&D.lineTo(N.x,N.y)}var Cc={id:"filler",afterDatasetsUpdate(D,b,v){const S=(D.data.datasets||[]).length,N=[];let K,te,re,he;for(te=0;te<S;++te)K=D.getDatasetMeta(te),re=K.dataset,he=null,re&&re.options&&re instanceof gc&&(he={visible:D.isDatasetVisible(te),index:te,fill:Jl(re,te,S),chart:D,axis:K.controller.options.indexAxis,scale:K.vScale,line:re}),K.$filler=he,N.push(he);for(te=0;te<S;++te)he=N[te],he&&!1!==he.fill&&(he.fill=bc(N,te,v.propagate))},beforeDraw(D,b,v){const S="beforeDraw"===v.drawTime,N=D.getSortedVisibleDatasetMetas(),K=D.chartArea;for(let te=N.length-1;te>=0;--te){const re=N[te].$filler;re&&(re.line.updateControlPoints(K,re.axis),S&&re.fill&&td(D.ctx,re,K))}},beforeDatasetsDraw(D,b,v){if("beforeDatasetsDraw"!==v.drawTime)return;const S=D.getSortedVisibleDatasetMetas();for(let N=S.length-1;N>=0;--N){const K=S[N].$filler;yd(K)&&td(D.ctx,K,D.chartArea)}},beforeDatasetDraw(D,b,v){const S=b.meta.$filler;!yd(S)||"beforeDatasetDraw"!==v.drawTime||td(D.ctx,S,D.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Mp=(D,b)=>{let{boxHeight:v=b,boxWidth:S=b}=D;return D.usePointStyle&&(v=Math.min(v,b),S=D.pointStyleWidth||Math.min(S,b)),{boxWidth:S,boxHeight:v,itemHeight:Math.max(b,v)}};class im extends Ra{constructor(b){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=b.chart,this.options=b.options,this.ctx=b.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(b,v,S){this.maxWidth=b,this.maxHeight=v,this._margins=S,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const b=this.options.labels||{};let v=O(b.generateLabels,[this.chart],this)||[];b.filter&&(v=v.filter(S=>b.filter(S,this.chart.data))),b.sort&&(v=v.sort((S,N)=>b.sort(S,N,this.chart.data))),this.options.reverse&&v.reverse(),this.legendItems=v}fit(){const{options:b,ctx:v}=this;if(!b.display)return void(this.width=this.height=0);const S=b.labels,N=to(S.font),K=N.size,te=this._computeTitleHeight(),{boxWidth:re,itemHeight:he}=Mp(S,K);let Fe,_t;v.font=N.string,this.isHorizontal()?(Fe=this.maxWidth,_t=this._fitRows(te,K,re,he)+10):(_t=this.maxHeight,Fe=this._fitCols(te,K,re,he)+10),this.width=Math.min(Fe,b.maxWidth||this.maxWidth),this.height=Math.min(_t,b.maxHeight||this.maxHeight)}_fitRows(b,v,S,N){const{ctx:K,maxWidth:te,options:{labels:{padding:re}}}=this,he=this.legendHitBoxes=[],Fe=this.lineWidths=[0],_t=N+re;let Lt=b;K.textAlign="left",K.textBaseline="middle";let un=-1,_n=-_t;return this.legendItems.forEach((Cn,Un)=>{const qn=S+v/2+K.measureText(Cn.text).width;(0===Un||Fe[Fe.length-1]+qn+2*re>te)&&(Lt+=_t,Fe[Fe.length-(Un>0?0:1)]=0,_n+=_t,un++),he[Un]={left:0,top:_n,row:un,width:qn,height:N},Fe[Fe.length-1]+=qn+re}),Lt}_fitCols(b,v,S,N){const{ctx:K,maxHeight:te,options:{labels:{padding:re}}}=this,he=this.legendHitBoxes=[],Fe=this.columnSizes=[],_t=te-b;let Lt=re,un=0,_n=0,Cn=0,Un=0;return this.legendItems.forEach((qn,ri)=>{const fi=S+v/2+K.measureText(qn.text).width;ri>0&&_n+N+2*re>_t&&(Lt+=un+re,Fe.push({width:un,height:_n}),Cn+=un+re,Un++,un=_n=0),he[ri]={left:Cn,top:_n,col:Un,width:fi,height:N},un=Math.max(un,fi),_n+=N+re}),Lt+=un,Fe.push({width:un,height:_n}),Lt}adjustHitBoxes(){if(!this.options.display)return;const b=this._computeTitleHeight(),{legendHitBoxes:v,options:{align:S,labels:{padding:N},rtl:K}}=this,te=ni(K,this.left,this.width);if(this.isHorizontal()){let re=0,he=cn(S,this.left+N,this.right-this.lineWidths[re]);for(const Fe of v)re!==Fe.row&&(re=Fe.row,he=cn(S,this.left+N,this.right-this.lineWidths[re])),Fe.top+=this.top+b+N,Fe.left=te.leftForLtr(te.x(he),Fe.width),he+=Fe.width+N}else{let re=0,he=cn(S,this.top+b+N,this.bottom-this.columnSizes[re].height);for(const Fe of v)Fe.col!==re&&(re=Fe.col,he=cn(S,this.top+b+N,this.bottom-this.columnSizes[re].height)),Fe.top=he,Fe.left+=this.left+N,Fe.left=te.leftForLtr(te.x(Fe.left),Fe.width),he+=Fe.height+N}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const b=this.ctx;kn(b,this),this._draw(),ai(b)}}_draw(){const{options:b,columnSizes:v,lineWidths:S,ctx:N}=this,{align:K,labels:te}=b,re=_i.color,he=ni(b.rtl,this.left,this.width),Fe=to(te.font),{color:_t,padding:Lt}=te,un=Fe.size,_n=un/2;let Cn;this.drawTitle(),N.textAlign=he.textAlign("left"),N.textBaseline="middle",N.lineWidth=.5,N.font=Fe.string;const{boxWidth:Un,boxHeight:qn,itemHeight:ri}=Mp(te,un),Pi=this.isHorizontal(),Ci=this._computeTitleHeight();Cn=Pi?{x:cn(K,this.left+Lt,this.right-S[0]),y:this.top+Lt+Ci,line:0}:{x:this.left+Lt,y:cn(K,this.top+Ci+Lt,this.bottom-v[0].height),line:0},Ii(this.ctx,b.textDirection);const ji=ri+Lt;this.legendItems.forEach((Ni,ro)=>{N.strokeStyle=Ni.fontColor||_t,N.fillStyle=Ni.fontColor||_t;const oo=N.measureText(Ni.text).width,_a=he.textAlign(Ni.textAlign||(Ni.textAlign=te.textAlign)),Na=Un+_n+oo;let ga=Cn.x,kr=Cn.y;he.setWidth(this.width),Pi?ro>0&&ga+Na+Lt>this.right&&(kr=Cn.y+=ji,Cn.line++,ga=Cn.x=cn(K,this.left+Lt,this.right-S[Cn.line])):ro>0&&kr+ji>this.bottom&&(ga=Cn.x=ga+v[Cn.line].width+Lt,Cn.line++,kr=Cn.y=cn(K,this.top+Ci+Lt,this.bottom-v[Cn.line].height)),function(Ni,ro,oo){if(isNaN(Un)||Un<=0||isNaN(qn)||qn<0)return;N.save();const _a=l(oo.lineWidth,1);if(N.fillStyle=l(oo.fillStyle,re),N.lineCap=l(oo.lineCap,"butt"),N.lineDashOffset=l(oo.lineDashOffset,0),N.lineJoin=l(oo.lineJoin,"miter"),N.lineWidth=_a,N.strokeStyle=l(oo.strokeStyle,re),N.setLineDash(l(oo.lineDash,[])),te.usePointStyle){const Na={radius:qn*Math.SQRT2/2,pointStyle:oo.pointStyle,rotation:oo.rotation,borderWidth:_a},ga=he.xPlus(Ni,Un/2);Mt(N,Na,ga,ro+_n,te.pointStyleWidth&&Un)}else{const Na=ro+Math.max((un-qn)/2,0),ga=he.leftForLtr(Ni,Un),kr=_r(oo.borderRadius);N.beginPath(),Object.values(kr).some(Xr=>0!==Xr)?Wo(N,{x:ga,y:Na,w:Un,h:qn,radius:kr}):N.rect(ga,Na,Un,qn),N.fill(),0!==_a&&N.stroke()}N.restore()}(he.x(ga),kr,Ni),ga=((D,b,v,S)=>D===(S?"left":"right")?v:"center"===D?(b+v)/2:b)(_a,ga+Un+_n,Pi?ga+Na:this.right,b.rtl),function(Ni,ro,oo){Oo(N,oo.text,Ni,ro+ri/2,Fe,{strikethrough:oo.hidden,textAlign:he.textAlign(oo.textAlign)})}(he.x(ga),kr,Ni),Pi?Cn.x+=Na+Lt:Cn.y+=ji}),so(this.ctx,b.textDirection)}drawTitle(){const b=this.options,v=b.title,S=to(v.font),N=_o(v.padding);if(!v.display)return;const K=ni(b.rtl,this.left,this.width),te=this.ctx,re=v.position,Fe=N.top+S.size/2;let _t,Lt=this.left,un=this.width;if(this.isHorizontal())un=Math.max(...this.lineWidths),_t=this.top+Fe,Lt=cn(b.align,Lt,this.right-un);else{const Cn=this.columnSizes.reduce((Un,qn)=>Math.max(Un,qn.height),0);_t=Fe+cn(b.align,this.top,this.bottom-Cn-b.labels.padding-this._computeTitleHeight())}const _n=cn(re,Lt,Lt+un);te.textAlign=K.textAlign(Yn(re)),te.textBaseline="middle",te.strokeStyle=v.color,te.fillStyle=v.color,te.font=S.string,Oo(te,v.text,_n,_t,S)}_computeTitleHeight(){const b=this.options.title,v=to(b.font),S=_o(b.padding);return b.display?v.lineHeight+S.height:0}_getLegendItemAt(b,v){let S,N,K;if(Gt(b,this.left,this.right)&&Gt(v,this.top,this.bottom))for(K=this.legendHitBoxes,S=0;S<K.length;++S)if(N=K[S],Gt(b,N.left,N.left+N.width)&&Gt(v,N.top,N.top+N.height))return this.legendItems[S];return null}handleEvent(b){const v=this.options;if(!function om(D,b){return!(("mousemove"!==D&&"mouseout"!==D||!b.onHover&&!b.onLeave)&&(!b.onClick||"click"!==D&&"mouseup"!==D))}(b.type,v))return;const S=this._getLegendItemAt(b.x,b.y);if("mousemove"===b.type||"mouseout"===b.type){const N=this._hoveredItem,K=((D,b)=>null!==D&&null!==b&&D.datasetIndex===b.datasetIndex&&D.index===b.index)(N,S);N&&!K&&O(v.onLeave,[b,N,this],this),this._hoveredItem=S,S&&!K&&O(v.onHover,[b,S,this],this)}else S&&O(v.onClick,[b,S,this],this)}}var Xm={id:"legend",_element:im,start(D,b,v){const S=D.legend=new im({ctx:D.ctx,options:v,chart:D});jn.configure(D,S,v),jn.addBox(D,S)},stop(D){jn.removeBox(D,D.legend),delete D.legend},beforeUpdate(D,b,v){const S=D.legend;jn.configure(D,S,v),S.options=v},afterUpdate(D){const b=D.legend;b.buildLabels(),b.adjustHitBoxes()},afterEvent(D,b){b.replay||D.legend.handleEvent(b.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(D,b,v){const S=b.datasetIndex,N=v.chart;N.isDatasetVisible(S)?(N.hide(S),b.hidden=!0):(N.show(S),b.hidden=!1)},onHover:null,onLeave:null,labels:{color:D=>D.chart.options.color,boxWidth:40,padding:10,generateLabels(D){const b=D.data.datasets,{labels:{usePointStyle:v,pointStyle:S,textAlign:N,color:K}}=D.legend.options;return D._getSortedDatasetMetas().map(te=>{const re=te.controller.getStyle(v?0:void 0),he=_o(re.borderWidth);return{text:b[te.index].label,fillStyle:re.backgroundColor,fontColor:K,hidden:!te.visible,lineCap:re.borderCapStyle,lineDash:re.borderDash,lineDashOffset:re.borderDashOffset,lineJoin:re.borderJoinStyle,lineWidth:(he.width+he.height)/4,strokeStyle:re.borderColor,pointStyle:S||re.pointStyle,rotation:re.rotation,textAlign:N||re.textAlign,borderRadius:0,datasetIndex:te.index}},this)}},title:{color:D=>D.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:D=>!D.startsWith("on"),labels:{_scriptable:D=>!["generateLabels","filter","sort"].includes(D)}}};class lu extends Ra{constructor(b){super(),this.chart=b.chart,this.options=b.options,this.ctx=b.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(b,v){const S=this.options;if(this.left=0,this.top=0,!S.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=b,this.height=this.bottom=v;const N=d(S.text)?S.text.length:1;this._padding=_o(S.padding);const K=N*to(S.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=K:this.width=K}isHorizontal(){const b=this.options.position;return"top"===b||"bottom"===b}_drawArgs(b){const{top:v,left:S,bottom:N,right:K,options:te}=this,re=te.align;let Fe,_t,Lt,he=0;return this.isHorizontal()?(_t=cn(re,S,K),Lt=v+b,Fe=K-S):("left"===te.position?(_t=S+b,Lt=cn(re,N,v),he=-.5*G):(_t=K-b,Lt=cn(re,v,N),he=.5*G),Fe=N-v),{titleX:_t,titleY:Lt,maxWidth:Fe,rotation:he}}draw(){const b=this.ctx,v=this.options;if(!v.display)return;const S=to(v.font),K=S.lineHeight/2+this._padding.top,{titleX:te,titleY:re,maxWidth:he,rotation:Fe}=this._drawArgs(K);Oo(b,v.text,0,0,S,{color:v.color,maxWidth:he,rotation:Fe,textAlign:Yn(v.align),textBaseline:"middle",translation:[te,re]})}}var id={id:"title",_element:lu,start(D,b,v){!function nl(D,b){const v=new lu({ctx:D.ctx,options:b,chart:D});jn.configure(D,v,b),jn.addBox(D,v),D.titleBlock=v}(D,v)},stop(D){jn.removeBox(D,D.titleBlock),delete D.titleBlock},beforeUpdate(D,b,v){const S=D.titleBlock;jn.configure(D,S,v),S.options=v},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ll=new WeakMap;var Rl={id:"subtitle",start(D,b,v){const S=new lu({ctx:D.ctx,options:v,chart:D});jn.configure(D,S,v),jn.addBox(D,S),Ll.set(D,S)},stop(D){jn.removeBox(D,Ll.get(D)),Ll.delete(D)},beforeUpdate(D,b,v){const S=Ll.get(D);jn.configure(D,S,v),S.options=v},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Fl={average(D){if(!D.length)return!1;let b,v,S=0,N=0,K=0;for(b=0,v=D.length;b<v;++b){const te=D[b].element;if(te&&te.hasValue()){const re=te.tooltipPosition();S+=re.x,N+=re.y,++K}}return{x:S/K,y:N/K}},nearest(D,b){if(!D.length)return!1;let K,te,re,v=b.x,S=b.y,N=Number.POSITIVE_INFINITY;for(K=0,te=D.length;K<te;++K){const he=D[K].element;if(he&&he.hasValue()){const _t=at(b,he.getCenterPoint());_t<N&&(N=_t,re=he)}}if(re){const he=re.tooltipPosition();v=he.x,S=he.y}return{x:v,y:S}}};function ec(D,b){return b&&(d(b)?Array.prototype.push.apply(D,b):D.push(b)),D}function go(D){return("string"==typeof D||D instanceof String)&&D.indexOf("\n")>-1?D.split("\n"):D}function du(D,b){const{element:v,datasetIndex:S,index:N}=b,K=D.getDatasetMeta(S).controller,{label:te,value:re}=K.getLabelAndValue(N);return{chart:D,label:te,parsed:K.getParsed(N),raw:D.data.datasets[S].data[N],formattedValue:re,dataset:K.getDataset(),dataIndex:N,datasetIndex:S,element:v}}function Ed(D,b){const v=D.chart.ctx,{body:S,footer:N,title:K}=D,{boxWidth:te,boxHeight:re}=b,he=to(b.bodyFont),Fe=to(b.titleFont),_t=to(b.footerFont),Lt=K.length,un=N.length,_n=S.length,Cn=_o(b.padding);let Un=Cn.height,qn=0,ri=S.reduce((Pi,Ci)=>Pi+Ci.before.length+Ci.lines.length+Ci.after.length,0);ri+=D.beforeBody.length+D.afterBody.length,Lt&&(Un+=Lt*Fe.lineHeight+(Lt-1)*b.titleSpacing+b.titleMarginBottom),ri&&(Un+=_n*(b.displayColors?Math.max(re,he.lineHeight):he.lineHeight)+(ri-_n)*he.lineHeight+(ri-1)*b.bodySpacing),un&&(Un+=b.footerMarginTop+un*_t.lineHeight+(un-1)*b.footerSpacing);let fi=0;const Li=function(Pi){qn=Math.max(qn,v.measureText(Pi).width+fi)};return v.save(),v.font=Fe.string,L(D.title,Li),v.font=he.string,L(D.beforeBody.concat(D.afterBody),Li),fi=b.displayColors?te+2+b.boxPadding:0,L(S,Pi=>{L(Pi.before,Li),L(Pi.lines,Li),L(Pi.after,Li)}),fi=0,v.font=_t.string,L(D.footer,Li),v.restore(),qn+=Cn.width,{width:qn,height:Un}}function Od(D,b,v,S){const{x:N,width:K}=v,{width:te,chartArea:{left:re,right:he}}=D;let Fe="center";return"center"===S?Fe=N<=(re+he)/2?"left":"right":N<=K/2?Fe="left":N>=te-K/2&&(Fe="right"),function am(D,b,v,S){const{x:N,width:K}=S,te=v.caretSize+v.caretPadding;if("left"===D&&N+K+te>b.width||"right"===D&&N-K-te<0)return!0}(Fe,D,b,v)&&(Fe="center"),Fe}function uu(D,b,v){const S=v.yAlign||b.yAlign||function od(D,b){const{y:v,height:S}=b;return v<S/2?"top":v>D.height-S/2?"bottom":"center"}(D,v);return{xAlign:v.xAlign||b.xAlign||Od(D,b,v,S),yAlign:S}}function Dp(D,b,v,S){const{caretSize:N,caretPadding:K,cornerRadius:te}=D,{xAlign:re,yAlign:he}=v,Fe=N+K,{topLeft:_t,topRight:Lt,bottomLeft:un,bottomRight:_n}=_r(te);let Cn=function Ls(D,b){let{x:v,width:S}=D;return"right"===b?v-=S:"center"===b&&(v-=S/2),v}(b,re);const Un=function rm(D,b,v){let{y:S,height:N}=D;return"top"===b?S+=v:S-="bottom"===b?N+v:N/2,S}(b,he,Fe);return"center"===he?"left"===re?Cn+=Fe:"right"===re&&(Cn-=Fe):"left"===re?Cn-=Math.max(_t,un)+N:"right"===re&&(Cn+=Math.max(Lt,_n)+N),{x:Tt(Cn,0,S.width-b.width),y:Tt(Un,0,S.height-b.height)}}function jc(D,b,v){const S=_o(v.padding);return"center"===b?D.x+D.width/2:"right"===b?D.x+D.width-S.right:D.x+S.left}function sm(D){return ec([],go(D))}function cm(D,b){const v=b&&b.dataset&&b.dataset.tooltip&&b.dataset.tooltip.callbacks;return v?D.override(v):D}let lm=(()=>{class D extends Ra{constructor(v){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=v.chart||v._chart,this._chart=this.chart,this.options=v.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(v){this.options=v,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const v=this._cachedAnimations;if(v)return v;const S=this.chart,N=this.options.setContext(this.getContext()),K=N.enabled&&S.options.animation&&N.animations,te=new ui(this.chart,K);return K._cacheable&&(this._cachedAnimations=Object.freeze(te)),te}getContext(){return this.$context||(this.$context=function Sd(D,b,v){return Sa(D,{tooltip:b,tooltipItems:v,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(v,S){const{callbacks:N}=S,K=N.beforeTitle.apply(this,[v]),te=N.title.apply(this,[v]),re=N.afterTitle.apply(this,[v]);let he=[];return he=ec(he,go(K)),he=ec(he,go(te)),he=ec(he,go(re)),he}getBeforeBody(v,S){return sm(S.callbacks.beforeBody.apply(this,[v]))}getBody(v,S){const{callbacks:N}=S,K=[];return L(v,te=>{const re={before:[],lines:[],after:[]},he=cm(N,te);ec(re.before,go(he.beforeLabel.call(this,te))),ec(re.lines,he.label.call(this,te)),ec(re.after,go(he.afterLabel.call(this,te))),K.push(re)}),K}getAfterBody(v,S){return sm(S.callbacks.afterBody.apply(this,[v]))}getFooter(v,S){const{callbacks:N}=S,K=N.beforeFooter.apply(this,[v]),te=N.footer.apply(this,[v]),re=N.afterFooter.apply(this,[v]);let he=[];return he=ec(he,go(K)),he=ec(he,go(te)),he=ec(he,go(re)),he}_createItems(v){const S=this._active,N=this.chart.data,K=[],te=[],re=[];let Fe,_t,he=[];for(Fe=0,_t=S.length;Fe<_t;++Fe)he.push(du(this.chart,S[Fe]));return v.filter&&(he=he.filter((Lt,un,_n)=>v.filter(Lt,un,_n,N))),v.itemSort&&(he=he.sort((Lt,un)=>v.itemSort(Lt,un,N))),L(he,Lt=>{const un=cm(v.callbacks,Lt);K.push(un.labelColor.call(this,Lt)),te.push(un.labelPointStyle.call(this,Lt)),re.push(un.labelTextColor.call(this,Lt))}),this.labelColors=K,this.labelPointStyles=te,this.labelTextColors=re,this.dataPoints=he,he}update(v,S){const N=this.options.setContext(this.getContext()),K=this._active;let te,re=[];if(K.length){const he=Fl[N.position].call(this,K,this._eventPosition);re=this._createItems(N),this.title=this.getTitle(re,N),this.beforeBody=this.getBeforeBody(re,N),this.body=this.getBody(re,N),this.afterBody=this.getAfterBody(re,N),this.footer=this.getFooter(re,N);const Fe=this._size=Ed(this,N),_t=Object.assign({},he,Fe),Lt=uu(this.chart,N,_t),un=Dp(N,_t,Lt,this.chart);this.xAlign=Lt.xAlign,this.yAlign=Lt.yAlign,te={opacity:1,x:un.x,y:un.y,width:Fe.width,height:Fe.height,caretX:he.x,caretY:he.y}}else 0!==this.opacity&&(te={opacity:0});this._tooltipItems=re,this.$context=void 0,te&&this._resolveAnimations().update(this,te),v&&N.external&&N.external.call(this,{chart:this.chart,tooltip:this,replay:S})}drawCaret(v,S,N,K){const te=this.getCaretPosition(v,N,K);S.lineTo(te.x1,te.y1),S.lineTo(te.x2,te.y2),S.lineTo(te.x3,te.y3)}getCaretPosition(v,S,N){const{xAlign:K,yAlign:te}=this,{caretSize:re,cornerRadius:he}=N,{topLeft:Fe,topRight:_t,bottomLeft:Lt,bottomRight:un}=_r(he),{x:_n,y:Cn}=v,{width:Un,height:qn}=S;let ri,fi,Li,Pi,Ci,ji;return"center"===te?(Ci=Cn+qn/2,"left"===K?(ri=_n,fi=ri-re,Pi=Ci+re,ji=Ci-re):(ri=_n+Un,fi=ri+re,Pi=Ci-re,ji=Ci+re),Li=ri):(fi="left"===K?_n+Math.max(Fe,Lt)+re:"right"===K?_n+Un-Math.max(_t,un)-re:this.caretX,"top"===te?(Pi=Cn,Ci=Pi-re,ri=fi-re,Li=fi+re):(Pi=Cn+qn,Ci=Pi+re,ri=fi+re,Li=fi-re),ji=Pi),{x1:ri,x2:fi,x3:Li,y1:Pi,y2:Ci,y3:ji}}drawTitle(v,S,N){const K=this.title,te=K.length;let re,he,Fe;if(te){const _t=ni(N.rtl,this.x,this.width);for(v.x=jc(this,N.titleAlign,N),S.textAlign=_t.textAlign(N.titleAlign),S.textBaseline="middle",re=to(N.titleFont),he=N.titleSpacing,S.fillStyle=N.titleColor,S.font=re.string,Fe=0;Fe<te;++Fe)S.fillText(K[Fe],_t.x(v.x),v.y+re.lineHeight/2),v.y+=re.lineHeight+he,Fe+1===te&&(v.y+=N.titleMarginBottom-he)}}_drawColorBox(v,S,N,K,te){const re=this.labelColors[N],he=this.labelPointStyles[N],{boxHeight:Fe,boxWidth:_t,boxPadding:Lt}=te,un=to(te.bodyFont),_n=jc(this,"left",te),Cn=K.x(_n),qn=S.y+(Fe<un.lineHeight?(un.lineHeight-Fe)/2:0);if(te.usePointStyle){const ri={radius:Math.min(_t,Fe)/2,pointStyle:he.pointStyle,rotation:he.rotation,borderWidth:1},fi=K.leftForLtr(Cn,_t)+_t/2,Li=qn+Fe/2;v.strokeStyle=te.multiKeyBackground,v.fillStyle=te.multiKeyBackground,gn(v,ri,fi,Li),v.strokeStyle=re.borderColor,v.fillStyle=re.backgroundColor,gn(v,ri,fi,Li)}else{v.lineWidth=a(re.borderWidth)?Math.max(...Object.values(re.borderWidth)):re.borderWidth||1,v.strokeStyle=re.borderColor,v.setLineDash(re.borderDash||[]),v.lineDashOffset=re.borderDashOffset||0;const ri=K.leftForLtr(Cn,_t-Lt),fi=K.leftForLtr(K.xPlus(Cn,1),_t-Lt-2),Li=_r(re.borderRadius);Object.values(Li).some(Pi=>0!==Pi)?(v.beginPath(),v.fillStyle=te.multiKeyBackground,Wo(v,{x:ri,y:qn,w:_t,h:Fe,radius:Li}),v.fill(),v.stroke(),v.fillStyle=re.backgroundColor,v.beginPath(),Wo(v,{x:fi,y:qn+1,w:_t-2,h:Fe-2,radius:Li}),v.fill()):(v.fillStyle=te.multiKeyBackground,v.fillRect(ri,qn,_t,Fe),v.strokeRect(ri,qn,_t,Fe),v.fillStyle=re.backgroundColor,v.fillRect(fi,qn+1,_t-2,Fe-2))}v.fillStyle=this.labelTextColors[N]}drawBody(v,S,N){const{body:K}=this,{bodySpacing:te,bodyAlign:re,displayColors:he,boxHeight:Fe,boxWidth:_t,boxPadding:Lt}=N,un=to(N.bodyFont);let _n=un.lineHeight,Cn=0;const Un=ni(N.rtl,this.x,this.width),qn=function(oo){S.fillText(oo,Un.x(v.x+Cn),v.y+_n/2),v.y+=_n+te},ri=Un.textAlign(re);let fi,Li,Pi,Ci,ji,Ni,ro;for(S.textAlign=re,S.textBaseline="middle",S.font=un.string,v.x=jc(this,ri,N),S.fillStyle=N.bodyColor,L(this.beforeBody,qn),Cn=he&&"right"!==ri?"center"===re?_t/2+Lt:_t+2+Lt:0,Ci=0,Ni=K.length;Ci<Ni;++Ci){for(fi=K[Ci],Li=this.labelTextColors[Ci],S.fillStyle=Li,L(fi.before,qn),Pi=fi.lines,he&&Pi.length&&(this._drawColorBox(S,v,Ci,Un,N),_n=Math.max(un.lineHeight,Fe)),ji=0,ro=Pi.length;ji<ro;++ji)qn(Pi[ji]),_n=un.lineHeight;L(fi.after,qn)}Cn=0,_n=un.lineHeight,L(this.afterBody,qn),v.y-=te}drawFooter(v,S,N){const K=this.footer,te=K.length;let re,he;if(te){const Fe=ni(N.rtl,this.x,this.width);for(v.x=jc(this,N.footerAlign,N),v.y+=N.footerMarginTop,S.textAlign=Fe.textAlign(N.footerAlign),S.textBaseline="middle",re=to(N.footerFont),S.fillStyle=N.footerColor,S.font=re.string,he=0;he<te;++he)S.fillText(K[he],Fe.x(v.x),v.y+re.lineHeight/2),v.y+=re.lineHeight+N.footerSpacing}}drawBackground(v,S,N,K){const{xAlign:te,yAlign:re}=this,{x:he,y:Fe}=v,{width:_t,height:Lt}=N,{topLeft:un,topRight:_n,bottomLeft:Cn,bottomRight:Un}=_r(K.cornerRadius);S.fillStyle=K.backgroundColor,S.strokeStyle=K.borderColor,S.lineWidth=K.borderWidth,S.beginPath(),S.moveTo(he+un,Fe),"top"===re&&this.drawCaret(v,S,N,K),S.lineTo(he+_t-_n,Fe),S.quadraticCurveTo(he+_t,Fe,he+_t,Fe+_n),"center"===re&&"right"===te&&this.drawCaret(v,S,N,K),S.lineTo(he+_t,Fe+Lt-Un),S.quadraticCurveTo(he+_t,Fe+Lt,he+_t-Un,Fe+Lt),"bottom"===re&&this.drawCaret(v,S,N,K),S.lineTo(he+Cn,Fe+Lt),S.quadraticCurveTo(he,Fe+Lt,he,Fe+Lt-Cn),"center"===re&&"left"===te&&this.drawCaret(v,S,N,K),S.lineTo(he,Fe+un),S.quadraticCurveTo(he,Fe,he+un,Fe),S.closePath(),S.fill(),K.borderWidth>0&&S.stroke()}_updateAnimationTarget(v){const S=this.chart,N=this.$animations,K=N&&N.x,te=N&&N.y;if(K||te){const re=Fl[v.position].call(this,this._active,this._eventPosition);if(!re)return;const he=this._size=Ed(this,v),Fe=Object.assign({},re,this._size),_t=uu(S,v,Fe),Lt=Dp(v,Fe,_t,S);(K._to!==Lt.x||te._to!==Lt.y)&&(this.xAlign=_t.xAlign,this.yAlign=_t.yAlign,this.width=he.width,this.height=he.height,this.caretX=re.x,this.caretY=re.y,this._resolveAnimations().update(this,Lt))}}_willRender(){return!!this.opacity}draw(v){const S=this.options.setContext(this.getContext());let N=this.opacity;if(!N)return;this._updateAnimationTarget(S);const K={width:this.width,height:this.height},te={x:this.x,y:this.y};N=Math.abs(N)<.001?0:N;const re=_o(S.padding);S.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(v.save(),v.globalAlpha=N,this.drawBackground(te,v,K,S),Ii(v,S.textDirection),te.y+=re.top,this.drawTitle(te,v,S),this.drawBody(te,v,S),this.drawFooter(te,v,S),so(v,S.textDirection),v.restore())}getActiveElements(){return this._active||[]}setActiveElements(v,S){const N=this._active,K=v.map(({datasetIndex:he,index:Fe})=>{const _t=this.chart.getDatasetMeta(he);if(!_t)throw new Error("Cannot find a dataset at index "+he);return{datasetIndex:he,element:_t.data[Fe],index:Fe}}),te=!w(N,K),re=this._positionChanged(K,S);(te||re)&&(this._active=K,this._eventPosition=S,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(v,S,N=!0){if(S&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const K=this.options,te=this._active||[],re=this._getActiveElements(v,te,S,N),he=this._positionChanged(re,v),Fe=S||!w(re,te)||he;return Fe&&(this._active=re,(K.enabled||K.external)&&(this._eventPosition={x:v.x,y:v.y},this.update(!0,S))),Fe}_getActiveElements(v,S,N,K){const te=this.options;if("mouseout"===v.type)return[];if(!K)return S;const re=this.chart.getElementsAtEventForMode(v,te.mode,te,N);return te.reverse&&re.reverse(),re}_positionChanged(v,S){const{caretX:N,caretY:K,options:te}=this,re=Fl[te.position].call(this,v,S);return!1!==re&&(N!==re.x||K!==re.y)}}return D.positioners=Fl,D})();var Rs=Object.freeze({__proto__:null,Decimation:Cd,Filler:Cc,Legend:Xm,SubTitle:Rl,Title:id,Tooltip:{id:"tooltip",_element:lm,positioners:Fl,afterInit(D,b,v){v&&(D.tooltip=new lm({chart:D,options:v}))},beforeUpdate(D,b,v){D.tooltip&&D.tooltip.initialize(v)},reset(D,b,v){D.tooltip&&D.tooltip.initialize(v)},afterDraw(D){const b=D.tooltip;if(b&&b._willRender()){const v={tooltip:b};if(!1===D.notifyPlugins("beforeTooltipDraw",v))return;b.draw(D.ctx),D.notifyPlugins("afterTooltipDraw",v)}},afterEvent(D,b){D.tooltip&&D.tooltip.handleEvent(b.event,b.replay,b.inChartArea)&&(b.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(D,b)=>b.bodyFont.size,boxWidth:(D,b)=>b.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:n,title(D){if(D.length>0){const b=D[0],v=b.chart.data.labels,S=v?v.length:0;if(this&&this.options&&"dataset"===this.options.mode)return b.dataset.label||"";if(b.label)return b.label;if(S>0&&b.dataIndex<S)return v[b.dataIndex]}return""},afterTitle:n,beforeBody:n,beforeLabel:n,label(D){if(this&&this.options&&"dataset"===this.options.mode)return D.label+": "+D.formattedValue||D.formattedValue;let b=D.dataset.label||"";b&&(b+=": ");const v=D.formattedValue;return i(v)||(b+=v),b},labelColor(D){const v=D.chart.getDatasetMeta(D.datasetIndex).controller.getStyle(D.dataIndex);return{borderColor:v.borderColor,backgroundColor:v.backgroundColor,borderWidth:v.borderWidth,borderDash:v.borderDash,borderDashOffset:v.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(D){const v=D.chart.getDatasetMeta(D.datasetIndex).controller.getStyle(D.dataIndex);return{pointStyle:v.pointStyle,rotation:v.rotation}},afterLabel:n,afterBody:n,beforeFooter:n,footer:n,afterFooter:n}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:D=>"filter"!==D&&"itemSort"!==D&&"external"!==D,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Td extends An{constructor(b){super(b),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(b){const v=this._addedLabels;if(v.length){const S=this.getLabels();for(const{index:N,label:K}of v)S[N]===K&&S.splice(N,1);this._addedLabels=[]}super.init(b)}parse(b,v){if(i(b))return null;const S=this.getLabels();return v=isFinite(v)&&S[v]===b?v:function Ru(D,b,v,S){const N=D.indexOf(b);return-1===N?((D,b,v,S)=>("string"==typeof b?(v=D.push(b)-1,S.unshift({index:v,label:b})):isNaN(b)&&(v=null),v))(D,b,v,S):N!==D.lastIndexOf(b)?v:N}(S,b,l(v,b),this._addedLabels),((D,b)=>null===D?null:Tt(Math.round(D),0,b))(v,S.length-1)}determineDataLimits(){const{minDefined:b,maxDefined:v}=this.getUserBounds();let{min:S,max:N}=this.getMinMax(!0);"ticks"===this.options.bounds&&(b||(S=0),v||(N=this.getLabels().length-1)),this.min=S,this.max=N}buildTicks(){const b=this.min,v=this.max,S=this.options.offset,N=[];let K=this.getLabels();K=0===b&&v===K.length-1?K:K.slice(b,v+1),this._valueRange=Math.max(K.length-(S?0:1),1),this._startValue=this.min-(S?.5:0);for(let te=b;te<=v;te++)N.push({value:te});return N}getLabelForValue(b){const v=this.getLabels();return b>=0&&b<v.length?v[b]:b}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(b){return"number"!=typeof b&&(b=this.parse(b)),null===b?NaN:this.getPixelForDecimal((b-this._startValue)/this._valueRange)}getPixelForTick(b){const v=this.ticks;return b<0||b>v.length-1?null:this.getPixelForValue(v[b].value)}getValueForPixel(b){return Math.round(this._startValue+this.getDecimalForPixel(b)*this._valueRange)}getBasePixel(){return this.bottom}}function Pp(D,b,{horizontal:v,minRotation:S}){const N=Wt(S),K=(v?Math.sin(N):Math.cos(N))||.001;return Math.min(b/K,.75*b*(""+D).length)}Td.id="category",Td.defaults={ticks:{callback:Td.prototype.getLabelForValue}};class Bl extends An{constructor(b){super(b),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(b,v){return i(b)||("number"==typeof b||b instanceof Number)&&!isFinite(+b)?null:+b}handleTickRangeOptions(){const{beginAtZero:b}=this.options,{minDefined:v,maxDefined:S}=this.getUserBounds();let{min:N,max:K}=this;const te=he=>N=v?N:he,re=he=>K=S?K:he;if(b){const he=H(N),Fe=H(K);he<0&&Fe<0?re(0):he>0&&Fe>0&&te(0)}if(N===K){let he=1;(K>=Number.MAX_SAFE_INTEGER||N<=Number.MIN_SAFE_INTEGER)&&(he=Math.abs(.05*K)),re(K+he),b||te(N-he)}this.min=N,this.max=K}getTickLimit(){const b=this.options.ticks;let N,{maxTicksLimit:v,stepSize:S}=b;return S?(N=Math.ceil(this.max/S)-Math.floor(this.min/S)+1,N>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${S} would result generating up to ${N} ticks. Limiting to 1000.`),N=1e3)):(N=this.computeTickLimit(),v=v||11),v&&(N=Math.min(v,N)),N}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const b=this.options,v=b.ticks;let S=this.getTickLimit();S=Math.max(2,S);const te=function qm(D,b){const v=[],{bounds:N,step:K,min:te,max:re,precision:he,count:Fe,maxTicks:_t,maxDigits:Lt,includeBounds:un}=D,_n=K||1,Cn=_t-1,{min:Un,max:qn}=b,ri=!i(te),fi=!i(re),Li=!i(Fe),Pi=(qn-Un)/(Lt+1);let ji,Ni,ro,oo,Ci=Z((qn-Un)/Cn/_n)*_n;if(Ci<1e-14&&!ri&&!fi)return[{value:Un},{value:qn}];oo=Math.ceil(qn/Ci)-Math.floor(Un/Ci),oo>Cn&&(Ci=Z(oo*Ci/Cn/_n)*_n),i(he)||(ji=Math.pow(10,he),Ci=Math.ceil(Ci*ji)/ji),"ticks"===N?(Ni=Math.floor(Un/Ci)*Ci,ro=Math.ceil(qn/Ci)*Ci):(Ni=Un,ro=qn),ri&&fi&&K&&function pt(D,b){const v=Math.round(D);return v-b<=D&&v+b>=D}((re-te)/K,Ci/1e3)?(oo=Math.round(Math.min((re-te)/Ci,_t)),Ci=(re-te)/oo,Ni=te,ro=re):Li?(Ni=ri?te:Ni,ro=fi?re:ro,oo=Fe-1,Ci=(ro-Ni)/oo):(oo=(ro-Ni)/Ci,oo=Ie(oo,Math.round(oo),Ci/1e3)?Math.round(oo):Math.ceil(oo));const _a=Math.max(Qe(Ci),Qe(Ni));ji=Math.pow(10,i(he)?_a:he),Ni=Math.round(Ni*ji)/ji,ro=Math.round(ro*ji)/ji;let Na=0;for(ri&&(un&&Ni!==te?(v.push({value:te}),Ni<te&&Na++,Ie(Math.round((Ni+Na*Ci)*ji)/ji,te,Pp(te,Pi,D))&&Na++):Ni<te&&Na++);Na<oo;++Na)v.push({value:Math.round((Ni+Na*Ci)*ji)/ji});return fi&&un&&ro!==re?v.length&&Ie(v[v.length-1].value,re,Pp(re,Pi,D))?v[v.length-1].value=re:v.push({value:re}):(!fi||ro===re)&&v.push({value:ro}),v}({maxTicks:S,bounds:b.bounds,min:b.min,max:b.max,precision:v.precision,step:v.stepSize,count:v.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:v.minRotation||0,includeBounds:!1!==v.includeBounds},this._range||this);return"ticks"===b.bounds&&Ht(te,this,"value"),b.reverse?(te.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),te}configure(){const b=this.ticks;let v=this.min,S=this.max;if(super.configure(),this.options.offset&&b.length){const N=(S-v)/Math.max(b.length-1,1)/2;v-=N,S+=N}this._startValue=v,this._endValue=S,this._valueRange=S-v}getLabelForValue(b){return Vt(b,this.chart.options.locale,this.options.ticks.format)}}class Id extends Bl{determineDataLimits(){const{min:b,max:v}=this.getMinMax(!0);this.min=u(b)?b:0,this.max=u(v)?v:1,this.handleTickRangeOptions()}computeTickLimit(){const b=this.isHorizontal(),v=b?this.width:this.height,S=Wt(this.options.ticks.minRotation),N=(b?Math.sin(S):Math.cos(S))||.001,K=this._resolveTickFontOptions(0);return Math.ceil(v/Math.min(40,K.lineHeight/N))}getPixelForValue(b){return null===b?NaN:this.getPixelForDecimal((b-this._startValue)/this._valueRange)}getValueForPixel(b){return this._startValue+this.getDecimalForPixel(b)*this._valueRange}}function Ep(D){return D/Math.pow(10,Math.floor(U(D)))==1}Id.id="linear",Id.defaults={ticks:{callback:Ss.formatters.numeric}};class Op extends An{constructor(b){super(b),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(b,v){const S=Bl.prototype.parse.apply(this,[b,v]);if(0!==S)return u(S)&&S>0?S:null;this._zero=!0}determineDataLimits(){const{min:b,max:v}=this.getMinMax(!0);this.min=u(b)?Math.max(0,b):null,this.max=u(v)?Math.max(0,v):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:b,maxDefined:v}=this.getUserBounds();let S=this.min,N=this.max;const K=he=>S=b?S:he,te=he=>N=v?N:he,re=(he,Fe)=>Math.pow(10,Math.floor(U(he))+Fe);S===N&&(S<=0?(K(1),te(10)):(K(re(S,-1)),te(re(N,1)))),S<=0&&K(re(N,-1)),N<=0&&te(re(S,1)),this._zero&&this.min!==this._suggestedMin&&S===re(this.min,0)&&K(re(S,-1)),this.min=S,this.max=N}buildTicks(){const b=this.options,S=function eh(D,b){const v=Math.floor(U(b.max)),S=Math.ceil(b.max/Math.pow(10,v)),N=[];let K=h(D.min,Math.pow(10,Math.floor(U(b.min)))),te=Math.floor(U(K)),re=Math.floor(K/Math.pow(10,te)),he=te<0?Math.pow(10,Math.abs(te)):1;do{N.push({value:K,major:Ep(K)}),++re,10===re&&(re=1,++te,he=te>=0?1:he),K=Math.round(re*Math.pow(10,te)*he)/he}while(te<v||te===v&&re<S);const Fe=h(D.max,K);return N.push({value:Fe,major:Ep(K)}),N}({min:this._userMin,max:this._userMax},this);return"ticks"===b.bounds&&Ht(S,this,"value"),b.reverse?(S.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),S}getLabelForValue(b){return void 0===b?"0":Vt(b,this.chart.options.locale,this.options.ticks.format)}configure(){const b=this.min;super.configure(),this._startValue=U(b),this._valueRange=U(this.max)-U(b)}getPixelForValue(b){return(void 0===b||0===b)&&(b=this.min),null===b||isNaN(b)?NaN:this.getPixelForDecimal(b===this.min?0:(U(b)-this._startValue)/this._valueRange)}getValueForPixel(b){const v=this.getDecimalForPixel(b);return Math.pow(10,this._startValue+v*this._valueRange)}}function Sp(D){const b=D.ticks;if(b.display&&D.display){const v=_o(b.backdropPadding);return l(b.font&&b.font.size,_i.font.size)+v.height}return 0}function Nl(D,b,v){return v=d(v)?v:[v],{w:li(D,b.string,v),h:v.length*b.lineHeight}}function Uc(D,b,v,S,N){return D===S||D===N?{start:b-v/2,end:b+v/2}:D<S||D>N?{start:b-v,end:b}:{start:b,end:b+v}}function dm(D,b,v,S,N){const K=Math.abs(Math.sin(v)),te=Math.abs(Math.cos(v));let re=0,he=0;S.start<b.l?(re=(b.l-S.start)/K,D.l=Math.min(D.l,b.l-re)):S.end>b.r&&(re=(S.end-b.r)/K,D.r=Math.max(D.r,b.r+re)),N.start<b.t?(he=(b.t-N.start)/te,D.t=Math.min(D.t,b.t-he)):N.end>b.b&&(he=(N.end-b.b)/te,D.b=Math.max(D.b,b.b+he))}function Bu(D){return 0===D||180===D?"center":D<180?"left":"right"}function Nu(D,b,v){return"right"===v?D-=b:"center"===v&&(D-=b/2),D}function um(D,b,v){return 90===v||270===v?D-=b/2:(v>270||v<90)&&(D-=b),D}function Ad(D,b,v,S){const{ctx:N}=D;if(v)N.arc(D.xCenter,D.yCenter,b,0,ce);else{let K=D.getPointPosition(0,b);N.moveTo(K.x,K.y);for(let te=1;te<S;te++)K=D.getPointPosition(te,b),N.lineTo(K.x,K.y)}}Op.id="logarithmic",Op.defaults={ticks:{callback:Ss.formatters.logarithmic,major:{enabled:!0}}};class yc extends Bl{constructor(b){super(b),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const b=this._padding=_o(Sp(this.options)/2),v=this.width=this.maxWidth-b.width,S=this.height=this.maxHeight-b.height;this.xCenter=Math.floor(this.left+v/2+b.left),this.yCenter=Math.floor(this.top+S/2+b.top),this.drawingArea=Math.floor(Math.min(v,S)/2)}determineDataLimits(){const{min:b,max:v}=this.getMinMax(!1);this.min=u(b)&&!isNaN(b)?b:0,this.max=u(v)&&!isNaN(v)?v:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Sp(this.options))}generateTickLabels(b){Bl.prototype.generateTickLabels.call(this,b),this._pointLabels=this.getLabels().map((v,S)=>{const N=O(this.options.pointLabels.callback,[v,S],this);return N||0===N?N:""}).filter((v,S)=>this.chart.getDataVisibility(S))}fit(){const b=this.options;b.display&&b.pointLabels.display?function wd(D){const b={l:D.left+D._padding.left,r:D.right-D._padding.right,t:D.top+D._padding.top,b:D.bottom-D._padding.bottom},v=Object.assign({},b),S=[],N=[],K=D._pointLabels.length,te=D.options.pointLabels,re=te.centerPointLabels?G/K:0;for(let he=0;he<K;he++){const Fe=te.setContext(D.getPointLabelContext(he));N[he]=Fe.padding;const _t=D.getPointPosition(he,D.drawingArea+N[he],re),Lt=to(Fe.font),un=Nl(D.ctx,Lt,D._pointLabels[he]);S[he]=un;const _n=Dt(D.getIndexAngle(he)+re),Cn=Math.round(Xe(_n));dm(v,b,_n,Uc(Cn,_t.x,un.w,0,180),Uc(Cn,_t.y,un.h,90,270))}D.setCenterPoint(b.l-v.l,v.r-b.r,b.t-v.t,v.b-b.b),D._pointLabelItems=function Fu(D,b,v){const S=[],N=D._pointLabels.length,K=D.options,te=Sp(K)/2,re=D.drawingArea,he=K.pointLabels.centerPointLabels?G/N:0;for(let Fe=0;Fe<N;Fe++){const _t=D.getPointPosition(Fe,re+te+v[Fe],he),Lt=Math.round(Xe(Dt(_t.angle+ct))),un=b[Fe],_n=um(_t.y,un.h,Lt),Cn=Bu(Lt),Un=Nu(_t.x,un.w,Cn);S.push({x:_t.x,y:_n,textAlign:Cn,left:Un,top:_n,right:Un+un.w,bottom:_n+un.h})}return S}(D,S,N)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(b,v,S,N){this.xCenter+=Math.floor((b-v)/2),this.yCenter+=Math.floor((S-N)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(b,v,S,N))}getIndexAngle(b){return Dt(b*(ce/(this._pointLabels.length||1))+Wt(this.options.startAngle||0))}getDistanceFromCenterForValue(b){if(i(b))return NaN;const v=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-b)*v:(b-this.min)*v}getValueForDistanceFromCenter(b){if(i(b))return NaN;const v=b/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-v:this.min+v}getPointLabelContext(b){const v=this._pointLabels||[];if(b>=0&&b<v.length){const S=v[b];return function th(D,b,v){return Sa(D,{label:v,index:b,type:"pointLabel"})}(this.getContext(),b,S)}}getPointPosition(b,v,S=0){const N=this.getIndexAngle(b)-ct+S;return{x:Math.cos(N)*v+this.xCenter,y:Math.sin(N)*v+this.yCenter,angle:N}}getPointPositionForValue(b,v){return this.getPointPosition(b,this.getDistanceFromCenterForValue(v))}getBasePosition(b){return this.getPointPositionForValue(b||0,this.getBaseValue())}getPointLabelPosition(b){const{left:v,top:S,right:N,bottom:K}=this._pointLabelItems[b];return{left:v,top:S,right:N,bottom:K}}drawBackground(){const{backgroundColor:b,grid:{circular:v}}=this.options;if(b){const S=this.ctx;S.save(),S.beginPath(),Ad(this,this.getDistanceFromCenterForValue(this._endValue),v,this._pointLabels.length),S.closePath(),S.fillStyle=b,S.fill(),S.restore()}}drawGrid(){const b=this.ctx,v=this.options,{angleLines:S,grid:N}=v,K=this._pointLabels.length;let te,re,he;if(v.pointLabels.display&&function pu(D,b){const{ctx:v,options:{pointLabels:S}}=D;for(let N=b-1;N>=0;N--){const K=S.setContext(D.getPointLabelContext(N)),te=to(K.font),{x:re,y:he,textAlign:Fe,left:_t,top:Lt,right:un,bottom:_n}=D._pointLabelItems[N],{backdropColor:Cn}=K;if(!i(Cn)){const Un=_r(K.borderRadius),qn=_o(K.backdropPadding);v.fillStyle=Cn;const ri=_t-qn.left,fi=Lt-qn.top,Li=un-_t+qn.width,Pi=_n-Lt+qn.height;Object.values(Un).some(Ci=>0!==Ci)?(v.beginPath(),Wo(v,{x:ri,y:fi,w:Li,h:Pi,radius:Un}),v.fill()):v.fillRect(ri,fi,Li,Pi)}Oo(v,D._pointLabels[N],re,he+te.lineHeight/2,te,{color:K.color,textAlign:Fe,textBaseline:"middle"})}}(this,K),N.display&&this.ticks.forEach((Fe,_t)=>{0!==_t&&(re=this.getDistanceFromCenterForValue(Fe.value),function kd(D,b,v,S){const N=D.ctx,K=b.circular,{color:te,lineWidth:re}=b;!K&&!S||!te||!re||v<0||(N.save(),N.strokeStyle=te,N.lineWidth=re,N.setLineDash(b.borderDash),N.lineDashOffset=b.borderDashOffset,N.beginPath(),Ad(D,v,K,S),N.closePath(),N.stroke(),N.restore())}(this,N.setContext(this.getContext(_t-1)),re,K))}),S.display){for(b.save(),te=K-1;te>=0;te--){const Fe=S.setContext(this.getPointLabelContext(te)),{color:_t,lineWidth:Lt}=Fe;!Lt||!_t||(b.lineWidth=Lt,b.strokeStyle=_t,b.setLineDash(Fe.borderDash),b.lineDashOffset=Fe.borderDashOffset,re=this.getDistanceFromCenterForValue(v.ticks.reverse?this.min:this.max),he=this.getPointPosition(te,re),b.beginPath(),b.moveTo(this.xCenter,this.yCenter),b.lineTo(he.x,he.y),b.stroke())}b.restore()}}drawBorder(){}drawLabels(){const b=this.ctx,v=this.options,S=v.ticks;if(!S.display)return;const N=this.getIndexAngle(0);let K,te;b.save(),b.translate(this.xCenter,this.yCenter),b.rotate(N),b.textAlign="center",b.textBaseline="middle",this.ticks.forEach((re,he)=>{if(0===he&&!v.reverse)return;const Fe=S.setContext(this.getContext(he)),_t=to(Fe.font);if(K=this.getDistanceFromCenterForValue(this.ticks[he].value),Fe.showLabelBackdrop){b.font=_t.string,te=b.measureText(re.label).width,b.fillStyle=Fe.backdropColor;const Lt=_o(Fe.backdropPadding);b.fillRect(-te/2-Lt.left,-K-_t.size/2-Lt.top,te+Lt.width,_t.size+Lt.height)}Oo(b,re.label,0,-K,_t,{color:Fe.color})}),b.restore()}drawTitle(){}}yc.id="radialLinear",yc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ss.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:D=>D,padding:5,centerPointLabels:!1}},yc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},yc.descriptors={angleLines:{_fallback:"grid"}};const Vc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ds=Object.keys(Vc);function pm(D,b){return D-b}function mm(D,b){if(i(b))return null;const v=D._adapter,{parser:S,round:N,isoWeekday:K}=D._parseOpts;let te=b;return"function"==typeof S&&(te=S(te)),u(te)||(te="string"==typeof S?v.parse(te,S):v.parse(te)),null===te?null:(N&&(te="week"!==N||!Pe(K)&&!0!==K?v.startOf(te,N):v.startOf(te,"isoWeek",K)),+te)}function hm(D,b,v,S){const N=Ds.length;for(let K=Ds.indexOf(D);K<N-1;++K){const te=Vc[Ds[K]];if(te.common&&Math.ceil((v-b)/((te.steps?te.steps:Number.MAX_SAFE_INTEGER)*te.size))<=S)return Ds[K]}return Ds[N-1]}function Tp(D,b,v){if(v){if(v.length){const{lo:S,hi:N}=wt(v,b);D[v[S]>=b?v[S]:v[N]]=!0}}else D[b]=!0}function Ld(D,b,v){const S=[],N={},K=b.length;let te,re;for(te=0;te<K;++te)re=b[te],N[re]=te,S.push({value:re,major:!1});return 0!==K&&v?function Ip(D,b,v,S){const N=D._adapter,K=+N.startOf(b[0].value,S),te=b[b.length-1].value;let re,he;for(re=K;re<=te;re=+N.add(re,1,S))he=v[re],he>=0&&(b[he].major=!0);return b}(D,S,N,v):S}let Ar=(()=>{class D extends An{constructor(v){super(v),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(v,S){const N=v.time||(v.time={}),K=this._adapter=new Ma._date(v.adapters.date);K.init(S),C(N.displayFormats,K.formats()),this._parseOpts={parser:N.parser,round:N.round,isoWeekday:N.isoWeekday},super.init(v),this._normalized=S.normalized}parse(v,S){return void 0===v?null:mm(this,v)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const v=this.options,S=this._adapter,N=v.time.unit||"day";let{min:K,max:te,minDefined:re,maxDefined:he}=this.getUserBounds();function Fe(_t){!re&&!isNaN(_t.min)&&(K=Math.min(K,_t.min)),!he&&!isNaN(_t.max)&&(te=Math.max(te,_t.max))}(!re||!he)&&(Fe(this._getLabelBounds()),("ticks"!==v.bounds||"labels"!==v.ticks.source)&&Fe(this.getMinMax(!1))),K=u(K)&&!isNaN(K)?K:+S.startOf(Date.now(),N),te=u(te)&&!isNaN(te)?te:+S.endOf(Date.now(),N)+1,this.min=Math.min(K,te-1),this.max=Math.max(K+1,te)}_getLabelBounds(){const v=this.getLabelTimestamps();let S=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY;return v.length&&(S=v[0],N=v[v.length-1]),{min:S,max:N}}buildTicks(){const v=this.options,S=v.time,N=v.ticks,K="labels"===N.source?this.getLabelTimestamps():this._generate();"ticks"===v.bounds&&K.length&&(this.min=this._userMin||K[0],this.max=this._userMax||K[K.length-1]);const te=this.min,he=function vn(D,b,v){let S=0,N=D.length;for(;S<N&&D[S]<b;)S++;for(;N>S&&D[N-1]>v;)N--;return S>0||N<D.length?D.slice(S,N):D}(K,te,this.max);return this._unit=S.unit||(N.autoSkip?hm(S.minUnit,this.min,this.max,this._getLabelCapacity(te)):function fm(D,b,v,S,N){for(let K=Ds.length-1;K>=Ds.indexOf(v);K--){const te=Ds[K];if(Vc[te].common&&D._adapter.diff(N,S,te)>=b-1)return te}return Ds[v?Ds.indexOf(v):0]}(this,he.length,S.minUnit,this.min,this.max)),this._majorUnit=N.major.enabled&&"year"!==this._unit?function ju(D){for(let b=Ds.indexOf(D)+1,v=Ds.length;b<v;++b)if(Vc[Ds[b]].common)return Ds[b]}(this._unit):void 0,this.initOffsets(K),v.reverse&&he.reverse(),Ld(this,he,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(v=>+v.value))}initOffsets(v){let K,te,S=0,N=0;this.options.offset&&v.length&&(K=this.getDecimalForValue(v[0]),S=1===v.length?1-K:(this.getDecimalForValue(v[1])-K)/2,te=this.getDecimalForValue(v[v.length-1]),N=1===v.length?te:(te-this.getDecimalForValue(v[v.length-2]))/2);const re=v.length<3?.5:.25;S=Tt(S,0,re),N=Tt(N,0,re),this._offsets={start:S,end:N,factor:1/(S+1+N)}}_generate(){const v=this._adapter,S=this.min,N=this.max,K=this.options,te=K.time,re=te.unit||hm(te.minUnit,S,N,this._getLabelCapacity(S)),he=l(te.stepSize,1),Fe="week"===re&&te.isoWeekday,_t=Pe(Fe)||!0===Fe,Lt={};let _n,Cn,un=S;if(_t&&(un=+v.startOf(un,"isoWeek",Fe)),un=+v.startOf(un,_t?"day":re),v.diff(N,S,re)>1e5*he)throw new Error(S+" and "+N+" are too far apart with stepSize of "+he+" "+re);const Un="data"===K.ticks.source&&this.getDataTimestamps();for(_n=un,Cn=0;_n<N;_n=+v.add(_n,he,re),Cn++)Tp(Lt,_n,Un);return(_n===N||"ticks"===K.bounds||1===Cn)&&Tp(Lt,_n,Un),Object.keys(Lt).sort((qn,ri)=>qn-ri).map(qn=>+qn)}getLabelForValue(v){const N=this.options.time;return this._adapter.format(v,N.tooltipFormat?N.tooltipFormat:N.displayFormats.datetime)}_tickFormatFunction(v,S,N,K){const te=this.options,re=te.time.displayFormats,he=this._unit,Fe=this._majorUnit,Lt=Fe&&re[Fe],un=N[S],Cn=this._adapter.format(v,K||(Fe&&Lt&&un&&un.major?Lt:he&&re[he])),Un=te.ticks.callback;return Un?O(Un,[Cn,S,N],this):Cn}generateTickLabels(v){let S,N,K;for(S=0,N=v.length;S<N;++S)K=v[S],K.label=this._tickFormatFunction(K.value,S,v)}getDecimalForValue(v){return null===v?NaN:(v-this.min)/(this.max-this.min)}getPixelForValue(v){const S=this._offsets,N=this.getDecimalForValue(v);return this.getPixelForDecimal((S.start+N)*S.factor)}getValueForPixel(v){const S=this._offsets,N=this.getDecimalForPixel(v)/S.factor-S.end;return this.min+N*(this.max-this.min)}_getLabelSize(v){const S=this.options.ticks,N=this.ctx.measureText(v).width,K=Wt(this.isHorizontal()?S.maxRotation:S.minRotation),te=Math.cos(K),re=Math.sin(K),he=this._resolveTickFontOptions(0).size;return{w:N*te+he*re,h:N*re+he*te}}_getLabelCapacity(v){const S=this.options.time,N=S.displayFormats,K=N[S.unit]||N.millisecond,te=this._tickFormatFunction(v,0,Ld(this,[v],this._majorUnit),K),re=this._getLabelSize(te),he=Math.floor(this.isHorizontal()?this.width/re.w:this.height/re.h)-1;return he>0?he:1}getDataTimestamps(){let S,N,v=this._cache.data||[];if(v.length)return v;const K=this.getMatchingVisibleMetas();if(this._normalized&&K.length)return this._cache.data=K[0].controller.getAllParsedValues(this);for(S=0,N=K.length;S<N;++S)v=v.concat(K[S].controller.getAllParsedValues(this));return this._cache.data=this.normalize(v)}getLabelTimestamps(){const v=this._cache.labels||[];let S,N;if(v.length)return v;const K=this.getLabels();for(S=0,N=K.length;S<N;++S)v.push(mm(this,K[S]));return this._cache.labels=this._normalized?v:this.normalize(v)}normalize(v){return pn(v.sort(pm))}}return D.id="time",D.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}},D})();function jl(D,b,v){let K,te,re,he,S=0,N=D.length-1;v?(b>=D[S].pos&&b<=D[N].pos&&({lo:S,hi:N}=Ze(D,"pos",b)),({pos:K,time:re}=D[S]),({pos:te,time:he}=D[N])):(b>=D[S].time&&b<=D[N].time&&({lo:S,hi:N}=Ze(D,"time",b)),({time:K,pos:re}=D[S]),({time:te,pos:he}=D[N]));const Fe=te-K;return Fe?re+(he-re)*(b-K)/Fe:re}class mu extends Ar{constructor(b){super(b),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const b=this._getTimestampsForTable(),v=this._table=this.buildLookupTable(b);this._minPos=jl(v,this.min),this._tableRange=jl(v,this.max)-this._minPos,super.initOffsets(b)}buildLookupTable(b){const{min:v,max:S}=this,N=[],K=[];let te,re,he,Fe,_t;for(te=0,re=b.length;te<re;++te)Fe=b[te],Fe>=v&&Fe<=S&&N.push(Fe);if(N.length<2)return[{time:v,pos:0},{time:S,pos:1}];for(te=0,re=N.length;te<re;++te)_t=N[te+1],he=N[te-1],Fe=N[te],Math.round((_t+he)/2)!==Fe&&K.push({time:Fe,pos:te/(re-1)});return K}_getTimestampsForTable(){let b=this._cache.all||[];if(b.length)return b;const v=this.getDataTimestamps(),S=this.getLabelTimestamps();return b=v.length&&S.length?this.normalize(v.concat(S)):v.length?v:S,b=this._cache.all=b,b}getDecimalForValue(b){return(jl(this._table,b)-this._minPos)/this._tableRange}getValueForPixel(b){const v=this._offsets,S=this.getDecimalForPixel(b)/v.factor-v.end;return jl(this._table,S*this._tableRange+this._minPos,!0)}}mu.id="timeseries",mu.defaults=Ar.defaults;const ad=[Mr,hl,Rs,Object.freeze({__proto__:null,CategoryScale:Td,LinearScale:Id,LogarithmicScale:Op,RadialLinearScale:yc,TimeScale:Ar,TimeSeriesScale:mu})]},59541:(Ee,Q,t)=>{"use strict";t.d(Q,{jh:()=>Kl,vQ:()=>Xt});var n=t(94650),e=t(97600),i=t(71884);const h=function u(nn,An){return nn===An||nn!=nn&&An!=An},m=function l(nn,An){for(var Vn=nn.length;Vn--;)if(h(nn[Vn][0],An))return Vn;return-1};var O=Array.prototype.splice;function j(nn){var An=-1,Vn=null==nn?0:nn.length;for(this.clear();++An<Vn;){var zn=nn[An];this.set(zn[0],zn[1])}}j.prototype.clear=function d(){this.__data__=[],this.size=0},j.prototype.delete=function L(nn){var An=this.__data__,Vn=m(An,nn);return!(Vn<0||(Vn==An.length-1?An.pop():O.call(An,Vn,1),--this.size,0))},j.prototype.get=function B(nn){var An=this.__data__,Vn=m(An,nn);return Vn<0?void 0:An[Vn][1]},j.prototype.has=function y(nn){return m(this.__data__,nn)>-1},j.prototype.set=function C(nn,An){var Vn=this.__data__,zn=m(Vn,nn);return zn<0?(++this.size,Vn.push([nn,An])):Vn[zn][1]=An,this};const I=j,ce="object"==typeof global&&global&&global.Object===Object&&global;var xe="object"==typeof self&&self&&self.Object===Object&&self;const Ge=ce||xe||Function("return this")();var ct=Ge.Symbol,Ce=Object.prototype,U=Ce.hasOwnProperty,H=Ce.toString,Z=ct?ct.toStringTag:void 0;var pt=Object.prototype.toString;var Be=ct?ct.toStringTag:void 0;const lt=function at(nn){return null==nn?void 0===nn?"[object Undefined]":"[object Null]":Be&&Be in Object(nn)?function oe(nn){var An=U.call(nn,Z),Vn=nn[Z];try{nn[Z]=void 0;var zn=!0}catch{}var Fi=H.call(nn);return zn&&(An?nn[Z]=Vn:delete nn[Z]),Fi}(nn):function Ht(nn){return pt.call(nn)}(nn)},Yt=function Dt(nn){var An=typeof nn;return null!=nn&&("object"==An||"function"==An)};const Ut=function Ze(nn){if(!Yt(nn))return!1;var An=lt(nn);return"[object Function]"==An||"[object GeneratorFunction]"==An||"[object AsyncFunction]"==An||"[object Proxy]"==An};var nn,vn=Ge["__core-js_shared__"],bn=(nn=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||""))?"Symbol(src)_1."+nn:"";var Dn=Function.prototype.toString;var cn=/^\[object .+?Constructor\]$/,rn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ke=function Sn(nn){return!(!Yt(nn)||function hn(nn){return!!bn&&bn in nn}(nn))&&(Ut(nn)?rn:cn).test(function Tn(nn){if(null!=nn){try{return Dn.call(nn)}catch{}try{return nn+""}catch{}}return""}(nn))},Oe=function J(nn,An){var Vn=function ge(nn,An){return nn?.[An]}(nn,An);return ke(Vn)?Vn:void 0},Et=Oe(Ge,"Map"),rt=Oe(Object,"create");var sn=Object.prototype.hasOwnProperty;var Ei=Object.prototype.hasOwnProperty;function Mo(nn){var An=-1,Vn=null==nn?0:nn.length;for(this.clear();++An<Vn;){var zn=nn[An];this.set(zn[0],zn[1])}}Mo.prototype.clear=function qe(){this.__data__=rt?rt(null):{},this.size=0},Mo.prototype.delete=function zt(nn){var An=this.has(nn)&&delete this.__data__[nn];return this.size-=An?1:0,An},Mo.prototype.get=function wn(nn){var An=this.__data__;if(rt){var Vn=An[nn];return"__lodash_hash_undefined__"===Vn?void 0:Vn}return sn.call(An,nn)?An[nn]:void 0},Mo.prototype.has=function ki(nn){var An=this.__data__;return rt?void 0!==An[nn]:Ei.call(An,nn)},Mo.prototype.set=function no(nn,An){var Vn=this.__data__;return this.size+=this.has(nn)?0:1,Vn[nn]=rt&&void 0===An?"__lodash_hash_undefined__":An,this};const po=Mo,De=function nt(nn,An){var Vn=nn.__data__;return function Hn(nn){var An=typeof nn;return"string"==An||"number"==An||"symbol"==An||"boolean"==An?"__proto__"!==nn:null===nn}(An)?Vn["string"==typeof An?"string":"hash"]:Vn.map};function Ae(nn){var An=-1,Vn=null==nn?0:nn.length;for(this.clear();++An<Vn;){var zn=nn[An];this.set(zn[0],zn[1])}}Ae.prototype.clear=function Io(){this.size=0,this.__data__={hash:new po,map:new(Et||I),string:new po}},Ae.prototype.delete=function ve(nn){var An=De(this,nn).delete(nn);return this.size-=An?1:0,An},Ae.prototype.get=function Me(nn){return De(this,nn).get(nn)},Ae.prototype.has=function ut(nn){return De(this,nn).has(nn)},Ae.prototype.set=function et(nn,An){var Vn=De(this,nn),zn=Vn.size;return Vn.set(nn,An),this.size+=Vn.size==zn?0:1,this};const bt=Ae;function St(nn){var An=this.__data__=new I(nn);this.size=An.size}St.prototype.clear=function F(){this.__data__=new I,this.size=0},St.prototype.delete=function X(nn){var An=this.__data__,Vn=An.delete(nn);return this.size=An.size,Vn},St.prototype.get=function P(nn){return this.__data__.get(nn)},St.prototype.has=function R(nn){return this.__data__.has(nn)},St.prototype.set=function Pt(nn,An){var Vn=this.__data__;if(Vn instanceof I){var zn=Vn.__data__;if(!Et||zn.length<199)return zn.push([nn,An]),this.size=++Vn.size,this;Vn=this.__data__=new bt(zn)}return Vn.set(nn,An),this.size=Vn.size,this};const jt=St;var ht=function(){try{var nn=Oe(Object,"defineProperty");return nn({},"",{}),nn}catch{}}();const on=ht,It=function Nt(nn,An,Vn){"__proto__"==An&&on?on(nn,An,{configurable:!0,enumerable:!0,value:Vn,writable:!0}):nn[An]=Vn},fn=function Ot(nn,An,Vn){(void 0!==Vn&&!h(nn[An],Vn)||void 0===Vn&&!(An in nn))&&It(nn,An,Vn)};var ci=function Xn(nn){return function(An,Vn,zn){for(var Fi=-1,uo=Object(An),ua=zn(An),Ji=ua.length;Ji--;){var Ta=ua[nn?Ji:++Fi];if(!1===Vn(uo[Ta],Ta,uo))break}return An}}();const Ui=ci;var li="object"==typeof exports&&exports&&!exports.nodeType&&exports,vi=li&&"object"==typeof module&&module&&!module.nodeType&&module,gn=vi&&vi.exports===li?Ge.Buffer:void 0,Mt=gn?gn.allocUnsafe:void 0;const qi=Ge.Uint8Array,Zi=function Fo(nn,An){var Vn=An?function eo(nn){var An=new nn.constructor(nn.byteLength);return new qi(An).set(new qi(nn)),An}(nn.buffer):nn.buffer;return new nn.constructor(Vn,nn.byteOffset,nn.length)};var qa=Object.create,rr=function(){function nn(){}return function(An){if(!Yt(An))return{};if(qa)return qa(An);nn.prototype=An;var Vn=new nn;return nn.prototype=void 0,Vn}}();const dr=rr;var _r=function sr(nn,An){return function(Vn){return nn(An(Vn))}}(Object.getPrototypeOf,Object);const _o=_r;var to=Object.prototype;const za=function gr(nn){var An=nn&&nn.constructor;return nn===("function"==typeof An&&An.prototype||to)},vr=function cr(nn){return null!=nn&&"object"==typeof nn};const ia=function Cs(nn){return vr(nn)&&"[object Arguments]"==lt(nn)};var Er=Object.prototype,yo=Er.hasOwnProperty,Yr=Er.propertyIsEnumerable,Ya=ia(function(){return arguments}())?ia:function(nn){return vr(nn)&&yo.call(nn,"callee")&&!Yr.call(nn,"callee")};const ma=Ya,Or=Array.isArray;const er=function ts(nn){return"number"==typeof nn&&nn>-1&&nn%1==0&&nn<=9007199254740991},Ua=function pr(nn){return null!=nn&&er(nn.length)&&!Ut(nn)};var mr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fr=mr&&"object"==typeof module&&module&&!module.nodeType&&module,Ro=Fr&&Fr.exports===mr?Ge.Buffer:void 0;const hr=(Ro?Ro.isBuffer:void 0)||function Rr(){return!1};var wa=Function.prototype.toString,Za=Object.prototype.hasOwnProperty,ns=wa.call(Object);var Po={};Po["[object Float32Array]"]=Po["[object Float64Array]"]=Po["[object Int8Array]"]=Po["[object Int16Array]"]=Po["[object Int32Array]"]=Po["[object Uint8Array]"]=Po["[object Uint8ClampedArray]"]=Po["[object Uint16Array]"]=Po["[object Uint32Array]"]=!0,Po["[object Arguments]"]=Po["[object Array]"]=Po["[object ArrayBuffer]"]=Po["[object Boolean]"]=Po["[object DataView]"]=Po["[object Date]"]=Po["[object Error]"]=Po["[object Function]"]=Po["[object Map]"]=Po["[object Number]"]=Po["[object Object]"]=Po["[object RegExp]"]=Po["[object Set]"]=Po["[object String]"]=Po["[object WeakMap]"]=!1;var Fs="object"==typeof exports&&exports&&!exports.nodeType&&exports,is=Fs&&"object"==typeof module&&module&&!module.nodeType&&module,yi=is&&is.exports===Fs&&ce.process,os=function(){try{return is&&is.require&&is.require("util").types||yi&&yi.binding&&yi.binding("util")}catch{}}(),Ic=os&&os.isTypedArray;const uc=Ic?function Os(nn){return function(An){return nn(An)}}(Ic):function Cr(nn){return vr(nn)&&er(nn.length)&&!!Po[lt(nn)]},Gn=function Bs(nn,An){if(("constructor"!==An||"function"!=typeof nn[An])&&"__proto__"!=An)return nn[An]};var si=Object.prototype.hasOwnProperty;const Eo=function Yi(nn,An,Vn){var zn=nn[An];(!si.call(nn,An)||!h(zn,Vn)||void 0===Vn&&!(An in nn))&&It(nn,An,Vn)};var jo=/^(?:0|[1-9]\d*)$/;const Ko=function as(nn,An){var Vn=typeof nn;return!!(An=An??9007199254740991)&&("number"==Vn||"symbol"!=Vn&&jo.test(nn))&&nn>-1&&nn%1==0&&nn<An};var aa=Object.prototype.hasOwnProperty;const Xo=function pc(nn,An){var Vn=Or(nn),zn=!Vn&&ma(nn),Fi=!Vn&&!zn&&hr(nn),uo=!Vn&&!zn&&!Fi&&uc(nn),ua=Vn||zn||Fi||uo,Ji=ua?function ei(nn,An){for(var Vn=-1,zn=Array(nn);++Vn<nn;)zn[Vn]=An(Vn);return zn}(nn.length,String):[],Ta=Ji.length;for(var Mr in nn)(An||aa.call(nn,Mr))&&(!ua||!("length"==Mr||Fi&&("offset"==Mr||"parent"==Mr)||uo&&("buffer"==Mr||"byteLength"==Mr||"byteOffset"==Mr)||Ko(Mr,Ta)))&&Ji.push(Mr);return Ji};var Ct=Object.prototype.hasOwnProperty;const Kt=function $e(nn){if(!Yt(nn))return function Ac(nn){var An=[];if(null!=nn)for(var Vn in Object(nn))An.push(Vn);return An}(nn);var An=za(nn),Vn=[];for(var zn in nn)"constructor"==zn&&(An||!Ct.call(nn,zn))||Vn.push(zn);return Vn},ii=function yn(nn){return Ua(nn)?Xo(nn,!0):Kt(nn)},Ki=function hi(nn){return function bi(nn,An,Vn,zn){var Fi=!Vn;Vn||(Vn={});for(var uo=-1,ua=An.length;++uo<ua;){var Ji=An[uo],Ta=zn?zn(Vn[Ji],nn[Ji],Ji,Vn,nn):void 0;void 0===Ta&&(Ta=nn[Ji]),Fi?It(Vn,Ji,Ta):Eo(Vn,Ji,Ta)}return Vn}(nn,ii(nn))},ra=function ea(nn,An,Vn,zn,Fi,uo,ua){var Ji=Gn(nn,Vn),Ta=Gn(An,Vn),Mr=ua.get(Ta);if(Mr)fn(nn,Vn,Mr);else{var Fa=uo?uo(Ji,Ta,Vn+"",nn,An,ua):void 0,_c=void 0===Fa;if(_c){var Ma=Or(Ta),Is=!Ma&&hr(Ta),Si=!Ma&&!Is&&uc(Ta);Fa=Ta,Ma||Is||Si?Or(Ji)?Fa=Ji:function Ca(nn){return vr(nn)&&Ua(nn)}(Ji)?Fa=function Wo(nn,An){var Vn=-1,zn=nn.length;for(An||(An=Array(zn));++Vn<zn;)An[Vn]=nn[Vn];return An}(Ji):Is?(_c=!1,Fa=function $t(nn,An){if(An)return nn.slice();var Vn=nn.length,zn=Mt?Mt(Vn):new nn.constructor(Vn);return nn.copy(zn),zn}(Ta,!0)):Si?(_c=!1,Fa=Zi(Ta,!0)):Fa=[]:function Pa(nn){if(!vr(nn)||"[object Object]"!=lt(nn))return!1;var An=_o(nn);if(null===An)return!0;var Vn=Za.call(An,"constructor")&&An.constructor;return"function"==typeof Vn&&Vn instanceof Vn&&wa.call(Vn)==ns}(Ta)||ma(Ta)?(Fa=Ji,ma(Ji)?Fa=Ki(Ji):(!Yt(Ji)||Ut(Ji))&&(Fa=function Sa(nn){return"function"!=typeof nn.constructor||za(nn)?{}:dr(_o(nn))}(Ta))):_c=!1}_c&&(ua.set(Ta,Fa),Fi(Fa,Ta,zn,uo,ua),ua.delete(Ta)),fn(nn,Vn,Fa)}},To=function zo(nn,An,Vn,zn,Fi){nn!==An&&Ui(An,function(uo,ua){if(Fi||(Fi=new jt),Yt(uo))ra(nn,An,ua,Vn,zo,zn,Fi);else{var Ji=zn?zn(Gn(nn,ua),uo,ua+"",nn,An,Fi):void 0;void 0===Ji&&(Ji=uo),fn(nn,ua,Ji)}},ii)},Ri=function Ha(nn){return nn},Jo=function co(nn,An,Vn){switch(Vn.length){case 0:return nn.call(An);case 1:return nn.call(An,Vn[0]);case 2:return nn.call(An,Vn[0],Vn[1]);case 3:return nn.call(An,Vn[0],Vn[1],Vn[2])}return nn.apply(An,Vn)};var lo=Math.max;const Nr=function Ka(nn){return function(){return nn}};var La=on?function(nn,An){return on(nn,"toString",{configurable:!0,enumerable:!1,value:Nr(An),writable:!0})}:Ri,jr=800,ic=16,rl=Date.now,Ra=function Ea(nn){var An=0,Vn=0;return function(){var zn=rl(),Fi=ic-(zn-Vn);if(Vn=zn,Fi>0){if(++An>=jr)return arguments[0]}else An=0;return nn.apply(void 0,arguments)}}(La);const Qs=Ra,Ss=function Xs(nn,An){return Qs(function Ja(nn,An,Vn){return An=lo(void 0===An?nn.length-1:An,0),function(){for(var zn=arguments,Fi=-1,uo=lo(zn.length-An,0),ua=Array(uo);++Fi<uo;)ua[Fi]=zn[An+Fi];Fi=-1;for(var Ji=Array(An+1);++Fi<An;)Ji[Fi]=zn[Fi];return Ji[An]=Vn(ua),Jo(nn,this,Ji)}}(nn,An,Ri),nn+"")};var Zs=function yr(nn){return Ss(function(An,Vn){var zn=-1,Fi=Vn.length,uo=Fi>1?Vn[Fi-1]:void 0,ua=Fi>2?Vn[2]:void 0;for(uo=nn.length>3&&"function"==typeof uo?(Fi--,uo):void 0,ua&&function Yc(nn,An,Vn){if(!Yt(Vn))return!1;var zn=typeof An;return!!("number"==zn?Ua(Vn)&&Ko(An,Vn.length):"string"==zn&&An in Vn)&&h(Vn[An],nn)}(Vn[0],Vn[1],ua)&&(uo=Fi<3?void 0:uo,Fi=1),An=Object(An);++zn<Fi;){var Ji=Vn[zn];Ji&&nn(An,Ji,zn,uo)}return An})}(function(nn,An,Vn){To(nn,An,Vn)});const Ts=Zs;var Lc=t(61135);let oc=(()=>{class nn{constructor(){this.colorschemesOptions=new Lc.X(void 0)}setColorschemesOptions(Vn){this.pColorschemesOptions=Vn,this.colorschemesOptions.next(Vn)}getColorschemesOptions(){return this.pColorschemesOptions}}return nn.\u0275fac=function(Vn){return new(Vn||nn)},nn.\u0275prov=n.\u0275\u0275defineInjectable({token:nn,factory:nn.\u0275fac,providedIn:"root"}),nn})(),Kl=(()=>{class nn{constructor(Vn,zn,Fi){this.zone=zn,this.themeService=Fi,this.type="bar",this.plugins=[],this.chartClick=new n.EventEmitter,this.chartHover=new n.EventEmitter,this.subs=[],this.ctx=Vn.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe((0,i.x)()).subscribe(uo=>this.themeChanged(uo)))}ngOnChanges(Vn){const zn=["type"],Fi=Object.getOwnPropertyNames(Vn);if(Fi.some(uo=>zn.includes(uo))||Fi.every(uo=>Vn[uo].isFirstChange()))this.render();else{const uo=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,uo.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,uo.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,uo.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(Vn=>Vn.unsubscribe())}render(){return this.chart&&this.chart.destroy(),e.kL.register(...this.plugins),this.zone.runOutsideAngular(()=>this.chart=new e.kL(this.ctx,this.getChartConfiguration()))}update(Vn){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(Vn))}hideDataset(Vn,zn){this.chart&&(this.chart.getDatasetMeta(Vn).hidden=zn,this.update())}isDatasetHidden(Vn){return this.chart?.getDatasetMeta(Vn)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(Vn){this.themeOverrides=Vn,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return Ts({onHover:(Vn,zn)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:Vn,active:zn}))},onClick:(Vn,zn)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:Vn,active:zn}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions()}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}}return nn.\u0275fac=function(Vn){return new(Vn||nn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(oc))},nn.\u0275dir=n.\u0275\u0275defineDirective({type:nn,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[n.\u0275\u0275NgOnChangesFeature]}),nn})();const Hc=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],fc={datasets:{line:{backgroundColor:nn=>Ir(Ga(nn.datasetIndex),.4),borderColor:nn=>Ir(Ga(nn.datasetIndex),1),pointBackgroundColor:nn=>Ir(Ga(nn.datasetIndex),1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:nn=>Ir(Ga(nn.datasetIndex),.8)},bar:{backgroundColor:nn=>Ir(Ga(nn.datasetIndex),.6),borderColor:nn=>Ir(Ga(nn.datasetIndex),1),hoverBackgroundColor:nn=>Ir(Ga(nn.datasetIndex),.8),hoverBorderColor:nn=>Ir(Ga(nn.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:nn=>Ir(Ga(nn.dataIndex),.6),borderColor:"#fff",hoverBackgroundColor:nn=>Ir(Ga(nn.dataIndex),1),hoverBorderColor:nn=>Ir(Ga(nn.dataIndex),1)},get pie(){return this.doughnut},polarArea:{backgroundColor:nn=>Ir(Ga(nn.dataIndex),.6),borderColor:nn=>Ir(Ga(nn.dataIndex),1),hoverBackgroundColor:nn=>Ir(Ga(nn.dataIndex),.8),hoverBorderColor:nn=>Ir(Ga(nn.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function Ir(nn,An){return"rgba("+nn.concat(An).join(",")+")"}function rs(nn,An){return Math.floor(Math.random()*(An-nn+1))+nn}function Ga(nn=0){return Hc[nn]||function xr(){return[rs(0,255),rs(0,255),rs(0,255)]}()}let Hr=(()=>{class nn{}return nn.\u0275fac=function(Vn){return new(Vn||nn)},nn.\u0275prov=n.\u0275\u0275defineInjectable({token:nn,factory:nn.\u0275fac,providedIn:"root"}),nn})();e.kL.register(...e.zX);let Xt=(()=>{class nn{constructor(Vn){Vn?.plugins&&e.kL.register(...Vn?.plugins);const zn=Ts(fc,Vn?.defaults||{});e.ce.set(zn)}static forRoot(Vn){return{ngModule:nn,providers:[{provide:Hr,useValue:Vn}]}}}return nn.\u0275fac=function(Vn){return new(Vn||nn)(n.\u0275\u0275inject(Hr,8))},nn.\u0275mod=n.\u0275\u0275defineNgModule({type:nn}),nn.\u0275inj=n.\u0275\u0275defineInjector({imports:[[]]}),nn})()},59650:(Ee,Q,t)=>{"use strict";t.d(Q,{KC:()=>mn,kb:()=>Yn});var n=t(94650),e=t(36895),i=t(40445),d=t(84080),a=t(83353),u=t(21281),h=t(77579),l=t(56451),m=t(54968),x=t(69751),O=t(66406),L=t(39646),w=t(95698),B=t(54482),_=t(72733),$=t(22529),C=t(82722),T=t(28746),j=t(71345);const I=new n.InjectionToken("SMOOTH_SCROLL_OPTIONS");let F=(()=>{class cn{get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}constructor(Bt,En,Wn){this._document=Bt,this._platform=En,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...Wn}}_scrollElement(Bt,En,Wn){Bt.scrollLeft=En,Bt.scrollTop=Wn}_getElement(Bt,En){return"string"==typeof Bt?(En||this._document).querySelector(Bt):(0,u.fI)(Bt)}_initSmoothScroll(Bt){return this._onGoingScrolls.has(Bt)&&this._onGoingScrolls.get(Bt).next(),this._onGoingScrolls.set(Bt,new h.x).get(Bt)}_isFinished(Bt,En,Wn){return Bt.currentX!==Bt.x||Bt.currentY!==Bt.y||(En.next(),Wn(),!1)}_interrupted(Bt,En){return(0,l.T)((0,m.R)(Bt,"wheel",{passive:!0,capture:!0}),(0,m.R)(Bt,"touchmove",{passive:!0,capture:!0}),En).pipe((0,w.q)(1))}_destroy(Bt,En){En.complete(),this._onGoingScrolls.delete(Bt)}_step(Bt){return new x.y(En=>{let Wn=(this._now()-Bt.startTime)/Bt.duration;Wn=Wn>1?1:Wn;const rn=Bt.easing(Wn);Bt.currentX=Bt.startX+(Bt.x-Bt.startX)*rn,Bt.currentY=Bt.startY+(Bt.y-Bt.startY)*rn,this._scrollElement(Bt.scrollable,Bt.currentX,Bt.currentY),O.Z.schedule(()=>En.next(Bt))})}_applyScrollToOptions(Bt,En){if(!En.duration)return this._scrollElement(Bt,En.left,En.top),Promise.resolve();const Wn=this._initSmoothScroll(Bt),rn={scrollable:Bt,startTime:this._now(),startX:Bt.scrollLeft,startY:Bt.scrollTop,x:null==En.left?Bt.scrollLeft:~~En.left,y:null==En.top?Bt.scrollTop:~~En.top,duration:En.duration,easing:j(En.easing.x1,En.easing.y1,En.easing.x2,En.easing.y2)};return new Promise(Sn=>{(0,L.of)(null).pipe(function y(cn,Nn=1/0,Bt){return Nn=(Nn||0)<1?1/0:Nn,(0,B.e)((En,Wn)=>(0,_.p)(En,Wn,cn,Nn,void 0,!0,Bt))}(()=>this._step(rn).pipe((0,$.o)(ke=>this._isFinished(ke,Wn,Sn)))),(0,C.R)(this._interrupted(Bt,Wn)),(0,T.x)(()=>this._destroy(Bt,Wn))).subscribe()})}scrollTo(Bt,En){if((0,e.NF)(this._platform)){const Wn=this._getElement(Bt),rn="rtl"===getComputedStyle(Wn).direction,Sn=(0,a._i)(),ke={...this._defaultOptions,...En,left:null==En.left?rn?En.end:En.start:En.left,right:null==En.right?rn?En.start:En.end:En.right};return null!=ke.bottom&&(ke.top=Wn.scrollHeight-Wn.clientHeight-ke.bottom),rn&&0!==Sn?(null!=ke.left&&(ke.right=Wn.scrollWidth-Wn.clientWidth-ke.left),2===Sn?ke.left=ke.right:1===Sn&&(ke.left=ke.right?-ke.right:ke.right)):null!=ke.right&&(ke.left=Wn.scrollWidth-Wn.clientWidth-ke.right),this._applyScrollToOptions(Wn,ke)}return Promise.resolve()}scrollToElement(Bt,En,Wn={}){const rn=this._getElement(Bt),Sn=this._getElement(En,rn),ke={...Wn,left:Sn.offsetLeft+(Wn.left||0),top:Sn.offsetTop+(Wn.top||0)};return Sn?this.scrollTo(rn,ke):Promise.resolve()}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275inject(e.K0),n.\u0275\u0275inject(n.PLATFORM_ID),n.\u0275\u0275inject(I,8))},cn.\u0275prov=n.\u0275\u0275defineInjectable({token:cn,factory:cn.\u0275fac,providedIn:"root"}),cn})(),X=(()=>{class cn{}return cn.\u0275fac=function(Bt){return new(Bt||cn)},cn.\u0275mod=n.\u0275\u0275defineNgModule({type:cn}),cn.\u0275inj=n.\u0275\u0275defineInjector({}),cn})();var p=t(61135),P=t(50727),E=t(60515),R=t(18505),ne=t(54004),G=t(63900),ce=t(78372),xe=t(71884),we=t(94813),Ge=t(86099),ct=t(11520),pe=t(39300),Ce=t(23601);const U=["scrollbarY"],H=["scrollbarX"];function Z(cn,Nn){if(1&cn&&n.\u0275\u0275element(0,"scrollbar-x",null,4),2&cn){const Bt=n.\u0275\u0275nextContext(2);n.\u0275\u0275attribute("scrollable",Bt.state.isHorizontallyScrollable)("fit",Bt.state.verticalUsed)}}function oe(cn,Nn){if(1&cn&&n.\u0275\u0275element(0,"scrollbar-y",null,5),2&cn){const Bt=n.\u0275\u0275nextContext(2);n.\u0275\u0275attribute("scrollable",Bt.state.isVerticallyScrollable)("fit",Bt.state.horizontalUsed)}}function Pe(cn,Nn){if(1&cn&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,Z,2,2,"scrollbar-x",3),n.\u0275\u0275template(2,oe,2,2,"scrollbar-y",3),n.\u0275\u0275elementContainerEnd()),2&cn){const Bt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Bt.state.horizontalUsed),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Bt.state.verticalUsed)}}const Ie=["*"];function pt(cn){return(0,R.b)(()=>{cn.onselectstart=()=>!1})}function Ht(cn){return(0,R.b)(()=>{cn.onselectstart=null})}function Wt(){return(0,R.b)(cn=>cn.stopPropagation())}function Xe(cn,Nn){return cn.clientX>=Nn.left&&cn.clientX<=Nn.left+Nn.width&&cn.clientY>=Nn.top&&cn.clientY<=Nn.top+Nn.height}let Qe=(()=>{class cn{get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}constructor(Bt){this.viewPort=Bt,this.nativeElement=Bt.nativeElement}activatePointerEvents(Bt,En){this.hovered=new x.y(Wn=>{const rn=(0,m.R)(this.nativeElement,"mousemove",{passive:!0}),Sn=Bt?rn:rn.pipe(Wt()),ke=(0,m.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,ne.U)(()=>!1));(0,l.T)(Sn,ke).pipe((0,R.b)(ge=>Wn.next(ge)),(0,C.R)(En)).subscribe()}),this.clicked=new x.y(Wn=>{const rn=(0,m.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,R.b)(ke=>Wn.next(ke))),Sn=(0,m.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,R.b)(()=>Wn.next(!1)));rn.pipe((0,G.w)(()=>Sn),(0,C.R)(En)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(Bt){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${Bt}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(Bt){this.nativeElement.scrollTop=Bt}scrollXTo(Bt){this.nativeElement.scrollLeft=Bt}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(n.ElementRef))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","scrollViewport",""]]}),cn})(),Be=(()=>{class cn{}return cn.\u0275fac=function(Bt){return new(Bt||cn)},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn}),cn})();const at=new n.InjectionToken("NG_SCROLLBAR_OPTIONS"),lt={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let Dt=(()=>{class cn{constructor(Bt){this.globalOptions=Bt?{...lt,...Bt}:lt,this.rtlScrollAxisType=(0,a._i)()}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275inject(at,8))},cn.\u0275prov=n.\u0275\u0275defineInjectable({token:cn,factory:cn.\u0275fac,providedIn:"root"}),cn})(),Yt=(()=>{class cn{constructor(Bt,En,Wn){this.document=Bt,this.manager=En,this.platform=Wn,this._scrollbarSize=new p.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),Wn.isBrowser&&(0,m.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,ce.b)(this.manager.globalOptions.windowResizeDebounce),(0,ne.U)(()=>this.getNativeScrollbarSize()),(0,xe.x)(),(0,R.b)(rn=>this._scrollbarSize.next(rn))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const Bt=this.document.createElement("div");Bt.className="ng-scrollbar-measure",Bt.style.left="0px",Bt.style.overflow="scroll",Bt.style.position="fixed",Bt.style.top="-9999px",this.document.body.appendChild(Bt);const En=Bt.getBoundingClientRect().right;return this.document.body.removeChild(Bt),En}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275inject(e.K0),n.\u0275\u0275inject(Dt),n.\u0275\u0275inject(a.t4))},cn.\u0275prov=n.\u0275\u0275defineInjectable({token:cn,factory:cn.\u0275fac,providedIn:"root"}),cn})(),Tt=(()=>{class cn{constructor(Bt,En,Wn){this.renderer=En,this.hideNativeScrollbar=Wn,this._subscriber=P.w0.EMPTY,this._subscriber=Wn.scrollbarSize.subscribe(rn=>{this.renderer.setStyle(Bt.nativeElement,"--native-scrollbar-size",`-${rn}px`,n.RendererStyleFlags2.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(Yt))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","hideNativeScrollbar",""]]}),cn})(),ot=(()=>{class cn{constructor(Bt){this.el=Bt}set ngAttr(Bt){for(const[En,Wn]of Object.entries(Bt))this.el.nativeElement.setAttribute(En,Wn)}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(n.ElementRef))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),cn})(),Gt=(()=>{class cn{get debounce(){return this._debounce}set debounce(Bt){this._debounce=(0,u.su)(Bt),this._subscribe()}get disabled(){return this._disabled}set disabled(Bt){this._disabled=(0,u.Ig)(Bt),this._disabled?this._unsubscribe():this._subscribe()}constructor(Bt,En,Wn){if(this.zone=Bt,this.platform=En,this.scrollbar=Wn,this._disabled=!1,this._currentSubscription=null,this.event=new n.EventEmitter,!Wn)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const Bt=new x.y(En=>{this._resizeObserver=new ResizeObserver(Wn=>En.next(Wn)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?Bt.pipe((0,ce.b)(this._debounce)):Bt).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(a.t4),n.\u0275\u0275directiveInject(Be))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),cn})(),wt=(()=>{class cn{get clicked(){const Bt=(0,m.R)(this.trackElement,"mousedown",{passive:!0}).pipe(Wt(),pt(this.document)),En=(0,m.R)(this.document,"mouseup",{passive:!0}).pipe(Wt(),Ht(this.document),(0,G.w)(()=>E.E));return(0,l.T)(Bt,En)}get clientRect(){return this.trackElement.getBoundingClientRect()}constructor(Bt,En,Wn){this.cmp=Bt,this.trackElement=En,this.document=Wn}onTrackClicked(Bt,En,Wn){return(0,L.of)(Bt).pipe((0,we.j)(this.pageProperty),(0,ne.U)(rn=>(rn-this.offset-En/2)/this.size*Wn),(0,R.b)(rn=>{this.cmp.scrollTo({...this.mapToScrollToOption(rn),duration:(0,u.su)(this.cmp.trackClickScrollDuration)})}))}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(HTMLElement),n.\u0275\u0275directiveInject(Document))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn}),cn})(),Ze=(()=>{class cn extends wt{get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}constructor(Bt,En,Wn){super(Bt,En.nativeElement,Wn),this.cmp=Bt,this.document=Wn}mapToScrollToOption(Bt){return{left:Bt}}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(e.K0))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","scrollbarTrackX",""]],features:[n.\u0275\u0275InheritDefinitionFeature]}),cn})(),Ut=(()=>{class cn extends wt{get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}constructor(Bt,En,Wn){super(Bt,En.nativeElement,Wn),this.cmp=Bt,this.document=Wn}mapToScrollToOption(Bt){return{top:Bt}}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(e.K0))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","scrollbarTrackY",""]],features:[n.\u0275\u0275InheritDefinitionFeature]}),cn})(),vn=(()=>{class cn{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,m.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(Wt())}constructor(Bt,En,Wn,rn){this.cmp=Bt,this.track=En,this.thumbElement=Wn,this.document=rn,this._dragging=new h.x,this.dragging=this._dragging.pipe((0,xe.x)())}update(){const Bt=function xn(cn,Nn,Bt){return Math.max(~~(cn/Nn*cn),Bt)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),En=function bn(cn,Nn,Bt){return cn*Bt/Nn}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);O.Z.schedule(()=>this.updateStyles(this.handleDirection(En,this.trackMax),Bt))}dragged(Bt){let En,Wn;const rn=(0,L.of)(Bt).pipe(pt(this.document),(0,R.b)(()=>{En=this.trackMax,Wn=this.viewportScrollMax,this.setDragging(!0)})),Sn=(0,m.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Wt()),ke=(0,m.R)(this.document,"mouseup",{capture:!0}).pipe(Wt(),Ht(this.document),(0,R.b)(()=>this.setDragging(!1)));return rn.pipe((0,we.j)(this.pageProperty),(0,ne.U)(ge=>ge-this.dragStartOffset),(0,Ge.z)(ge=>Sn.pipe((0,we.j)(this.clientProperty),(0,ne.U)(q=>q-this.track.offset),(0,ne.U)(q=>Wn*(q-ge)/En),(0,ne.U)(q=>this.handleDrag(q,Wn)),(0,R.b)(q=>this.scrollTo(q)),(0,C.R)(ke))))}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(wt),n.\u0275\u0275directiveInject(HTMLElement),n.\u0275\u0275directiveInject(Document))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,outputs:{dragging:"dragging"}}),cn})(),hn=(()=>{class cn extends vn{get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}constructor(Bt,En,Wn,rn,Sn){super(Bt,En,Wn.nativeElement,rn),this.cmp=Bt,this.track=En,this.element=Wn,this.document=rn,this.dir=Sn}updateStyles(Bt,En){this.thumbElement.style.width=`${En}px`,this.thumbElement.style.transform=`translate3d(${Bt}px, 0, 0)`}handleDrag(Bt,En){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return Bt-En;if(2===this.cmp.manager.rtlScrollAxisType)return En-Bt}return Bt}handleDirection(Bt,En){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-Bt;if(0===this.cmp.manager.rtlScrollAxisType)return Bt-En}return Bt}setDragging(Bt){this.cmp.setDragging({horizontalDragging:Bt})}scrollTo(Bt){this.cmp.viewport.scrollXTo(Bt)}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(Ze),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(e.K0),n.\u0275\u0275directiveInject(i.Is))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","scrollbarThumbX",""]],features:[n.\u0275\u0275InheritDefinitionFeature]}),cn})(),pn=(()=>{class cn extends vn{get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}constructor(Bt,En,Wn,rn){super(Bt,En,Wn.nativeElement,rn),this.cmp=Bt,this.track=En,this.element=Wn,this.document=rn}updateStyles(Bt,En){this.thumbElement.style.height=`${En}px`,this.thumbElement.style.transform=`translate3d(0px, ${Bt}px, 0)`}handleDrag(Bt){return Bt}handleDirection(Bt){return Bt}setDragging(Bt){this.cmp.setDragging({verticalDragging:Bt})}scrollTo(Bt){this.cmp.viewport.scrollYTo(Bt)}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(Ut),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(e.K0))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn,selectors:[["","scrollbarThumbY",""]],features:[n.\u0275\u0275InheritDefinitionFeature]}),cn})(),In=(()=>{class cn{constructor(Bt,En,Wn,rn,Sn){this.el=Bt,this.cmp=En,this.platform=Wn,this.document=rn,this.zone=Sn,this.destroyed=new h.x}activatePointerEvents(){let Bt,En,Wn;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new h.x,this.viewportThumbClicked=new h.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),Bt=this.viewportThumbClicked,En=this.viewportTrackClicked,Wn=this.cmp.viewport.hovered.pipe((0,ne.U)(rn=>!!rn&&Xe(rn,this.el.getBoundingClientRect())),(0,xe.x)(),(0,R.b)(rn=>this.document.onselectstart=rn?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,R.b)(rn=>{rn?Xe(rn,this.thumb.clientRect)?this.viewportThumbClicked.next(rn):Xe(rn,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(rn)):this.cmp.setClicked(!1)}),(0,C.R)(this.destroyed)).subscribe()):(Bt=this.thumb.clicked,En=this.track.clicked,Wn=this.hovered),(0,l.T)(Wn.pipe((0,R.b)(rn=>this.setHovered(rn))),Bt.pipe((0,G.w)(rn=>this.thumb.dragged(rn))),En.pipe((0,G.w)(rn=>this.track.onTrackClicked(rn,this.thumb.size,this.viewportScrollSize))))}get hovered(){const Bt=(0,m.R)(this.el,"mouseenter",{passive:!0}).pipe(Wt(),(0,ne.U)(()=>!0)),En=(0,m.R)(this.el,"mouseleave",{passive:!0}).pipe(Wt(),(0,ne.U)(()=>!1));return(0,l.T)(Bt,En)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,C.R)(this.destroyed)).subscribe(),(0,l.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,R.b)(()=>this.thumb?.update()),(0,C.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(HTMLElement),n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(a.t4),n.\u0275\u0275directiveInject(Document),n.\u0275\u0275directiveInject(n.NgZone))},cn.\u0275dir=n.\u0275\u0275defineDirective({type:cn}),cn})(),Dn=(()=>{class cn extends In{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(Bt,En,Wn,rn,Sn){super(Bt.nativeElement,En,Wn,rn,Sn),this.cmp=En,this.platform=Wn,this.document=rn,this.zone=Sn}setHovered(Bt){this.cmp.setHovered({verticalHovered:Bt})}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(a.t4),n.\u0275\u0275directiveInject(e.K0),n.\u0275\u0275directiveInject(n.NgZone))},cn.\u0275cmp=n.\u0275\u0275defineComponent({type:cn,selectors:[["scrollbar-y"]],viewQuery:function(Bt,En){if(1&Bt&&(n.\u0275\u0275viewQuery(Ut,7),n.\u0275\u0275viewQuery(pn,7)),2&Bt){let Wn;n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(En.track=Wn.first),n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(En.thumb=Wn.first)}},hostVars:2,hostBindings:function(Bt,En){2&Bt&&n.\u0275\u0275classProp("scrollbar-control",!0)},features:[n.\u0275\u0275InheritDefinitionFeature],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(Bt,En){1&Bt&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275element(1,"div",1),n.\u0275\u0275elementEnd()),2&Bt&&(n.\u0275\u0275classMapInterpolate1("ng-scrollbar-track ",En.cmp.trackClass,""),n.\u0275\u0275advance(1),n.\u0275\u0275classMapInterpolate1("ng-scrollbar-thumb ",En.cmp.thumbClass,""))},dependencies:[pn,Ut],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%}  .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:unset;right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),cn})(),Tn=(()=>{class cn extends In{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(Bt,En,Wn,rn,Sn){super(Bt.nativeElement,En,Wn,rn,Sn),this.cmp=En,this.platform=Wn,this.document=rn,this.zone=Sn}setHovered(Bt){this.cmp.setHovered({horizontalHovered:Bt})}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Be),n.\u0275\u0275directiveInject(a.t4),n.\u0275\u0275directiveInject(e.K0),n.\u0275\u0275directiveInject(n.NgZone))},cn.\u0275cmp=n.\u0275\u0275defineComponent({type:cn,selectors:[["scrollbar-x"]],viewQuery:function(Bt,En){if(1&Bt&&(n.\u0275\u0275viewQuery(Ze,7),n.\u0275\u0275viewQuery(hn,7)),2&Bt){let Wn;n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(En.track=Wn.first),n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(En.thumb=Wn.first)}},hostVars:2,hostBindings:function(Bt,En){2&Bt&&n.\u0275\u0275classProp("scrollbar-control",!0)},features:[n.\u0275\u0275InheritDefinitionFeature],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(Bt,En){1&Bt&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275element(1,"div",1),n.\u0275\u0275elementEnd()),2&Bt&&(n.\u0275\u0275classMapInterpolate1("ng-scrollbar-track ",En.cmp.trackClass,""),n.\u0275\u0275advance(1),n.\u0275\u0275classMapInterpolate1("ng-scrollbar-thumb ",En.cmp.thumbClass,""))},dependencies:[hn,Ze],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%}  .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:unset}  .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),cn})(),mn=(()=>{class cn{get disabled(){return this._disabled}set disabled(Bt){this._disabled=(0,u.Ig)(Bt)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(Bt){this._sensorDisabled=(0,u.Ig)(Bt)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(Bt){this._pointerEventsDisabled=(0,u.Ig)(Bt)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(Bt){this._viewportPropagateMouseMove=(0,u.Ig)(Bt)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(Bt){this._autoHeightDisabled=(0,u.Ig)(Bt)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(Bt){this._autoWidthDisabled=(0,u.Ig)(Bt)}get nativeElement(){return this.el.nativeElement}constructor(Bt,En,Wn,rn,Sn,ke){this.el=Bt,this.zone=En,this.changeDetectorRef=Wn,this.dir=rn,this.smoothScroll=Sn,this.manager=ke,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new n.EventEmitter,this.state={},this.destroyed=new h.x}updateState(){let Bt=!1,En=!1,Wn=!1,rn=!1;("all"===this.track||"vertical"===this.track)&&(Wn=this.viewport.scrollHeight>this.viewport.clientHeight,Bt="always"===this.visibility||Wn),("all"===this.track||"horizontal"===this.track)&&(rn=this.viewport.scrollWidth>this.viewport.clientWidth,En="always"===this.visibility||rn),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:Bt,horizontalUsed:En,isVerticallyScrollable:Wn,isHorizontallyScrollable:rn})}setState(Bt){this.state={...this.state,...Bt},this.changeDetectorRef.detectChanges()}getScrolledByDirection(Bt){let En;return this.scrolled.pipe((0,R.b)(Wn=>En=Wn),(0,we.j)("target",Bt),(0,ct.G)(),(0,pe.h)(([Wn,rn])=>Wn!==rn),(0,ne.U)(()=>En))}setHovered(Bt){this.zone.run(()=>this.setState({...Bt}))}setDragging(Bt){this.zone.run(()=>this.setState({...Bt}))}setClicked(Bt){this.zone.run(()=>this.setState({scrollbarClicked:Bt}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let Bt=(0,m.R)(this.viewport.nativeElement,"scroll",{passive:!0});Bt=this.scrollAuditTime?Bt.pipe((0,Ce.e)(this.scrollAuditTime)):Bt,this.scrolled=Bt.pipe((0,C.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(Bt){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,R.b)(()=>this.update()),(0,C.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(Bt){return this.smoothScroll.scrollTo(this.viewport.nativeElement,Bt)}scrollToElement(Bt,En){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,Bt,En)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return cn.\u0275fac=function(Bt){return new(Bt||cn)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(i.Is),n.\u0275\u0275directiveInject(F),n.\u0275\u0275directiveInject(Dt))},cn.\u0275cmp=n.\u0275\u0275defineComponent({type:cn,selectors:[["ng-scrollbar"]],contentQueries:function(Bt,En,Wn){if(1&Bt&&n.\u0275\u0275contentQuery(Wn,Qe,7),2&Bt){let rn;n.\u0275\u0275queryRefresh(rn=n.\u0275\u0275loadQuery())&&(En.customViewPort=rn.first)}},viewQuery:function(Bt,En){if(1&Bt&&(n.\u0275\u0275viewQuery(U,5,n.ElementRef),n.\u0275\u0275viewQuery(H,5,n.ElementRef),n.\u0275\u0275viewQuery(Qe,7)),2&Bt){let Wn;n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(En.scrollbarY=Wn.first),n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(En.scrollbarX=Wn.first),n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(En.defaultViewPort=Wn.first)}},hostVars:2,hostBindings:function(Bt,En){2&Bt&&n.\u0275\u0275classProp("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[n.\u0275\u0275ProvidersFeature([{provide:Be,useExisting:cn}]),n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Ie,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(Bt,En){1&Bt&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275listener("resizeSensor",function(){return En.update()}),n.\u0275\u0275elementStart(2,"div",2)(3,"div"),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275template(5,Pe,3,2,"ng-container",3),n.\u0275\u0275elementEnd()),2&Bt&&(n.\u0275\u0275property("ngAttr",En.state),n.\u0275\u0275advance(1),n.\u0275\u0275property("sensorDebounce",En.sensorDebounce)("sensorDisabled",En.sensorDisabled),n.\u0275\u0275advance(4),n.\u0275\u0275property("ngIf",!En.disabled))},dependencies:[e.O5,Qe,Tt,ot,Gt,Dn,Tn],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none}  .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)}  .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%],   .ng-scroll-viewport{position:absolute;inset:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none}  .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none}  .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)}  .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none}  .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default}  .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),cn})(),Yn=(()=>{class cn{static withConfig(Bt){return{ngModule:cn,providers:[{provide:at,useValue:Bt}]}}}return cn.\u0275fac=function(Bt){return new(Bt||cn)},cn.\u0275mod=n.\u0275\u0275defineNgModule({type:cn}),cn.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.ez,i.vT,d.eL,a.ud,X]}),cn})()},97185:(Ee,Q,t)=>{"use strict";t.d(Q,{Rh:()=>Ge,_W:()=>G,h0:()=>pe});var n=t(94650),e=t(37340),i=t(36895),d=t(77579),a=t(11481);const u=["toast-component",""];function h(H,Z){if(1&H){const oe=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(oe);const Ie=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Ie.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function l(H,Z){if(1&H&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&H){const oe=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",oe.duplicatesCount+1,"]")}}function m(H,Z){if(1&H&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275text(1),n.\u0275\u0275template(2,l,2,1,"ng-container",4),n.\u0275\u0275elementEnd()),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(oe.options.titleClass),n.\u0275\u0275attribute("aria-label",oe.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",oe.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",oe.duplicatesCount)}}function x(H,Z){if(1&H&&n.\u0275\u0275element(0,"div",7),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(oe.options.messageClass),n.\u0275\u0275property("innerHTML",oe.message,n.\u0275\u0275sanitizeHtml)}}function O(H,Z){if(1&H&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(oe.options.messageClass),n.\u0275\u0275attribute("aria-label",oe.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",oe.message," ")}}function L(H,Z){if(1&H&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",oe.width+"%")}}function w(H,Z){if(1&H){const oe=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(oe);const Ie=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Ie.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function B(H,Z){if(1&H&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&H){const oe=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",oe.duplicatesCount+1,"]")}}function _(H,Z){if(1&H&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275text(1),n.\u0275\u0275template(2,B,2,1,"ng-container",4),n.\u0275\u0275elementEnd()),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(oe.options.titleClass),n.\u0275\u0275attribute("aria-label",oe.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",oe.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",oe.duplicatesCount)}}function y(H,Z){if(1&H&&n.\u0275\u0275element(0,"div",7),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(oe.options.messageClass),n.\u0275\u0275property("innerHTML",oe.message,n.\u0275\u0275sanitizeHtml)}}function $(H,Z){if(1&H&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(oe.options.messageClass),n.\u0275\u0275attribute("aria-label",oe.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",oe.message," ")}}function C(H,Z){if(1&H&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&H){const oe=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",oe.width+"%")}}class j{constructor(Z,oe){this.component=Z,this.injector=oe}attach(Z,oe){return this._attachedHost=Z,Z.attach(this,oe)}detach(){const Z=this._attachedHost;if(Z)return this._attachedHost=void 0,Z.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Z){this._attachedHost=Z}}class I{attach(Z,oe){return this._attachedPortal=Z,this.attachComponentPortal(Z,oe)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Z){this._disposeFn=Z}}class F{constructor(Z){this._overlayRef=Z,this.duplicatesCount=0,this._afterClosed=new d.x,this._activate=new d.x,this._manualClose=new d.x,this._resetTimeout=new d.x,this._countDuplicate=new d.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(Z,oe){Z&&this._resetTimeout.next(),oe&&this._countDuplicate.next(++this.duplicatesCount)}}class z{constructor(Z,oe,Pe,Ie,pt,Ht){this.toastId=Z,this.config=oe,this.message=Pe,this.title=Ie,this.toastType=pt,this.toastRef=Ht,this._onTap=new d.x,this._onAction=new d.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(Z){this._onAction.next(Z)}onAction(){return this._onAction.asObservable()}}const p=new n.InjectionToken("ToastConfig");class P extends I{constructor(Z,oe,Pe){super(),this._hostDomElement=Z,this._componentFactoryResolver=oe,this._appRef=Pe}attachComponentPortal(Z,oe){const Pe=this._componentFactoryResolver.resolveComponentFactory(Z.component);let Ie;return Ie=Pe.create(Z.injector),this._appRef.attachView(Ie.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ie.hostView),Ie.destroy()}),oe?this._hostDomElement.insertBefore(this._getComponentRootNode(Ie),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ie)),Ie}_getComponentRootNode(Z){return Z.hostView.rootNodes[0]}}let E=(()=>{class H{constructor(){this._document=(0,n.inject)(i.K0)}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const oe=this._document.createElement("div");oe.classList.add("overlay-container"),oe.setAttribute("aria-live","polite"),this._document.body.appendChild(oe),this._containerElement=oe}}return H.\u0275fac=function(oe){return new(oe||H)},H.\u0275prov=n.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();class R{constructor(Z){this._portalHost=Z}attach(Z,oe=!0){return this._portalHost.attach(Z,oe)}detach(){return this._portalHost.detach()}}let ne=(()=>{class H{constructor(){this._overlayContainer=(0,n.inject)(E),this._componentFactoryResolver=(0,n.inject)(n.ComponentFactoryResolver),this._appRef=(0,n.inject)(n.ApplicationRef),this._document=(0,n.inject)(i.K0),this._paneElements=new Map}create(oe,Pe){return this._createOverlayRef(this.getPaneElement(oe,Pe))}getPaneElement(oe="",Pe){return this._paneElements.get(Pe)||this._paneElements.set(Pe,{}),this._paneElements.get(Pe)[oe]||(this._paneElements.get(Pe)[oe]=this._createPaneElement(oe,Pe)),this._paneElements.get(Pe)[oe]}_createPaneElement(oe,Pe){const Ie=this._document.createElement("div");return Ie.id="toast-container",Ie.classList.add(oe),Ie.classList.add("toast-container"),Pe?Pe.getContainerElement().appendChild(Ie):this._overlayContainer.getContainerElement().appendChild(Ie),Ie}_createPortalHost(oe){return new P(oe,this._componentFactoryResolver,this._appRef)}_createOverlayRef(oe){return new R(this._createPortalHost(oe))}}return H.\u0275fac=function(oe){return new(oe||H)},H.\u0275prov=n.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),G=(()=>{class H{constructor(oe,Pe,Ie,pt,Ht){this.overlay=Pe,this._injector=Ie,this.sanitizer=pt,this.ngZone=Ht,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...oe.default,...oe.config},oe.config.iconClasses&&(this.toastrConfig.iconClasses={...oe.default.iconClasses,...oe.config.iconClasses})}show(oe,Pe,Ie={},pt=""){return this._preBuildNotification(pt,oe,Pe,this.applyConfig(Ie))}success(oe,Pe,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",oe,Pe,this.applyConfig(Ie))}error(oe,Pe,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",oe,Pe,this.applyConfig(Ie))}info(oe,Pe,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",oe,Pe,this.applyConfig(Ie))}warning(oe,Pe,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",oe,Pe,this.applyConfig(Ie))}clear(oe){for(const Pe of this.toasts)if(void 0!==oe){if(Pe.toastId===oe)return void Pe.toastRef.manualClose()}else Pe.toastRef.manualClose()}remove(oe){const Pe=this._findToast(oe);if(!Pe||(Pe.activeToast.toastRef.close(),this.toasts.splice(Pe.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ie=this.toasts[this.currentlyActive].toastRef;Ie.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ie.activate())}return!0}findDuplicate(oe="",Pe="",Ie,pt){const{includeTitleDuplicates:Ht}=this.toastrConfig;for(const Wt of this.toasts)if((!Ht||Ht&&Wt.title===oe)&&Wt.message===Pe)return Wt.toastRef.onDuplicate(Ie,pt),Wt;return null}applyConfig(oe={}){return{...this.toastrConfig,...oe}}_findToast(oe){for(let Pe=0;Pe<this.toasts.length;Pe++)if(this.toasts[Pe].toastId===oe)return{index:Pe,activeToast:this.toasts[Pe]};return null}_preBuildNotification(oe,Pe,Ie,pt){return pt.onActivateTick?this.ngZone.run(()=>this._buildNotification(oe,Pe,Ie,pt)):this._buildNotification(oe,Pe,Ie,pt)}_buildNotification(oe,Pe,Ie,pt){if(!pt.toastComponent)throw new Error("toastComponent required");const Ht=this.findDuplicate(Ie,Pe,this.toastrConfig.resetTimeoutOnDuplicate&&pt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ie||Pe)&&this.toastrConfig.preventDuplicates&&null!==Ht)return Ht;this.previousToastMessage=Pe;let Wt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Wt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Xe=this.overlay.create(pt.positionClass,this.overlayContainer);this.index=this.index+1;let Qe=Pe;Pe&&pt.enableHtml&&(Qe=this.sanitizer.sanitize(n.SecurityContext.HTML,Pe));const Be=new F(Xe),at=new z(this.index,pt,Qe,Ie,oe,Be),Dt=n.Injector.create({providers:[{provide:z,useValue:at}],parent:this._injector}),Yt=new j(pt.toastComponent,Dt),Tt=Xe.attach(Yt,pt.newestOnTop);Be.componentInstance=Tt.instance;const ot={toastId:this.index,title:Ie||"",message:Pe||"",toastRef:Be,onShown:Be.afterActivate(),onHidden:Be.afterClosed(),onTap:at.onTap(),onAction:at.onAction(),portal:Tt};return Wt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{ot.toastRef.activate()})),this.toasts.push(ot),ot}}return H.\u0275fac=function(oe){return new(oe||H)(n.\u0275\u0275inject(p),n.\u0275\u0275inject(ne),n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(a.DomSanitizer),n.\u0275\u0275inject(n.NgZone))},H.\u0275prov=n.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),ce=(()=>{class H{get displayStyle(){if("inactive"===this.state.value)return"none"}constructor(oe,Pe,Ie){this.toastrService=oe,this.toastPackage=Pe,this.ngZone=Ie,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=Pe.message,this.title=Pe.title,this.options=Pe.config,this.originalTimeout=Pe.config.timeOut,this.toastClasses=`${Pe.toastType} ${Pe.config.toastClass}`,this.sub=Pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Pe.toastRef.countDuplicate().subscribe(pt=>{this.duplicatesCount=pt})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const oe=(new Date).getTime();this.width=(this.hideTime-oe)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(oe,Pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(oe),Pe)):this.timeout=setTimeout(()=>oe(),Pe)}outsideInterval(oe,Pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(oe),Pe)):this.intervalId=setInterval(()=>oe(),Pe)}runInsideAngular(oe){this.ngZone?this.ngZone.run(()=>oe()):oe()}}return H.\u0275fac=function(oe){return new(oe||H)(n.\u0275\u0275directiveInject(G),n.\u0275\u0275directiveInject(z),n.\u0275\u0275directiveInject(n.NgZone))},H.\u0275cmp=n.\u0275\u0275defineComponent({type:H,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(oe,Pe){1&oe&&n.\u0275\u0275listener("click",function(){return Pe.tapToast()})("mouseenter",function(){return Pe.stickAround()})("mouseleave",function(){return Pe.delayedHideToast()}),2&oe&&(n.\u0275\u0275syntheticHostProperty("@flyInOut",Pe.state),n.\u0275\u0275classMap(Pe.toastClasses),n.\u0275\u0275styleProp("display",Pe.displayStyle))},standalone:!0,features:[n.\u0275\u0275StandaloneFeature],attrs:u,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(oe,Pe){1&oe&&(n.\u0275\u0275template(0,h,3,0,"button",0),n.\u0275\u0275template(1,m,3,5,"div",1),n.\u0275\u0275template(2,x,1,3,"div",2),n.\u0275\u0275template(3,O,2,4,"div",3),n.\u0275\u0275template(4,L,2,2,"div",4)),2&oe&&(n.\u0275\u0275property("ngIf",Pe.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.message&&Pe.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.message&&!Pe.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.options.progressBar))},dependencies:[i.O5],encapsulation:2,data:{animation:[(0,e.X$)("flyInOut",[(0,e.SB)("inactive",(0,e.oB)({opacity:0})),(0,e.SB)("active",(0,e.oB)({opacity:1})),(0,e.SB)("removed",(0,e.oB)({opacity:0})),(0,e.eR)("inactive => active",(0,e.jt)("{{ easeTime }}ms {{ easing }}")),(0,e.eR)("active => removed",(0,e.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),H})();const xe={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:ce},we=(H={})=>(0,n.makeEnvironmentProviders)([{provide:p,useValue:{default:xe,config:H}}]);let Ge=(()=>{class H{static forRoot(oe={}){return{ngModule:H,providers:[we(oe)]}}}return H.\u0275fac=function(oe){return new(oe||H)},H.\u0275mod=n.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=n.\u0275\u0275defineInjector({imports:[ce]}),H})(),pe=(()=>{class H{get displayStyle(){if("inactive"===this.state)return"none"}constructor(oe,Pe,Ie){this.toastrService=oe,this.toastPackage=Pe,this.appRef=Ie,this.width=-1,this.toastClasses="",this.state="inactive",this.message=Pe.message,this.title=Pe.title,this.options=Pe.config,this.originalTimeout=Pe.config.timeOut,this.toastClasses=`${Pe.toastType} ${Pe.config.toastClass}`,this.sub=Pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Pe.toastRef.countDuplicate().subscribe(pt=>{this.duplicatesCount=pt})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const oe=(new Date).getTime();this.width=(this.hideTime-oe)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return H.\u0275fac=function(oe){return new(oe||H)(n.\u0275\u0275directiveInject(G),n.\u0275\u0275directiveInject(z),n.\u0275\u0275directiveInject(n.ApplicationRef))},H.\u0275cmp=n.\u0275\u0275defineComponent({type:H,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(oe,Pe){1&oe&&n.\u0275\u0275listener("click",function(){return Pe.tapToast()})("mouseenter",function(){return Pe.stickAround()})("mouseleave",function(){return Pe.delayedHideToast()}),2&oe&&(n.\u0275\u0275classMap(Pe.toastClasses),n.\u0275\u0275styleProp("display",Pe.displayStyle))},standalone:!0,features:[n.\u0275\u0275StandaloneFeature],attrs:u,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(oe,Pe){1&oe&&(n.\u0275\u0275template(0,w,3,0,"button",0),n.\u0275\u0275template(1,_,3,5,"div",1),n.\u0275\u0275template(2,y,1,3,"div",2),n.\u0275\u0275template(3,$,2,4,"div",3),n.\u0275\u0275template(4,C,2,2,"div",4)),2&oe&&(n.\u0275\u0275property("ngIf",Pe.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.message&&Pe.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.message&&!Pe.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Pe.options.progressBar))},dependencies:[i.O5],encapsulation:2}),H})()},86349:(Ee,Q,t)=>{"use strict";t.d(Q,{d9:()=>pi,oA:()=>Ia,Ds:()=>ai,S6:()=>za,l7:()=>vt,hX:()=>Pr,sE:()=>to,vM:()=>Va,q9:()=>yo,Xy:()=>cn,HD:()=>ne,o8:()=>p,UI:()=>Sa,Xc:()=>De,C2:()=>po,CE:()=>ya,u4:()=>cr,MR:()=>Ua,jj:()=>Pa,VO:()=>dt});var n={};t.r(n),t.d(n,{VERSION:()=>e,after:()=>Fo,all:()=>ia,allKeys:()=>Nn,any:()=>Er,assign:()=>Rt,before:()=>Zi,bind:()=>Ui,bindAll:()=>Zn,chain:()=>fn,chunk:()=>Ue,clone:()=>pi,collect:()=>Sa,compact:()=>Ia,compose:()=>Oo,constant:()=>lt,contains:()=>yo,countBy:()=>ha,create:()=>Qn,debounce:()=>ai,default:()=>$i,defaults:()=>gt,defer:()=>$t,delay:()=>Mt,detect:()=>to,difference:()=>Za,drop:()=>fr,each:()=>za,escape:()=>At,every:()=>ia,extend:()=>vt,extendOwn:()=>Rt,filter:()=>Pr,find:()=>to,findIndex:()=>rr,findKey:()=>na,findLastIndex:()=>dr,findWhere:()=>gr,first:()=>hr,flatten:()=>wa,foldl:()=>cr,foldr:()=>vr,forEach:()=>za,functions:()=>ze,get:()=>no,groupBy:()=>Va,has:()=>Qo,head:()=>hr,identity:()=>Mo,include:()=>yo,includes:()=>yo,indexBy:()=>Rr,indexOf:()=>_r,initial:()=>oa,inject:()=>cr,intersection:()=>Sr,invert:()=>qe,invoke:()=>Yr,isArguments:()=>Qe,isArray:()=>Ht,isArrayBuffer:()=>ct,isBoolean:()=>P,isDataView:()=>pt,isDate:()=>ce,isElement:()=>E,isEmpty:()=>hn,isEqual:()=>cn,isError:()=>we,isFinite:()=>Be,isFunction:()=>U,isMap:()=>J,isMatch:()=>pn,isNaN:()=>at,isNull:()=>X,isNumber:()=>G,isObject:()=>z,isRegExp:()=>xe,isSet:()=>je,isString:()=>ne,isSymbol:()=>Ge,isTypedArray:()=>Ze,isUndefined:()=>p,isWeakMap:()=>Oe,isWeakSet:()=>Et,iteratee:()=>tt,keys:()=>bn,last:()=>br,lastIndexOf:()=>_o,map:()=>Sa,mapObject:()=>De,matcher:()=>po,matches:()=>po,max:()=>ur,memoize:()=>gn,methods:()=>ze,min:()=>Or,mixin:()=>ti,negate:()=>eo,noop:()=>ve,now:()=>ut,object:()=>Je,omit:()=>ya,once:()=>Wo,pairs:()=>rt,partial:()=>ci,partition:()=>mr,pick:()=>Ro,pluck:()=>Ya,property:()=>Io,propertyOf:()=>Se,random:()=>We,range:()=>Ke,reduce:()=>cr,reduceRight:()=>vr,reject:()=>Cs,rest:()=>fr,restArguments:()=>F,result:()=>Nt,sample:()=>er,select:()=>Pr,shuffle:()=>pr,size:()=>Fr,some:()=>Er,sortBy:()=>Ua,sortedIndex:()=>sr,tail:()=>fr,take:()=>hr,tap:()=>Ei,template:()=>on,templateSettings:()=>Le,throttle:()=>kn,times:()=>Me,toArray:()=>ts,toPath:()=>ki,transpose:()=>ao,unescape:()=>bt,union:()=>ar,uniq:()=>Pa,unique:()=>Pa,uniqueId:()=>Ot,unzip:()=>ao,values:()=>dt,where:()=>ma,without:()=>ns,wrap:()=>qi,zip:()=>Aa});var e="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},d=Array.prototype,a=Object.prototype,u=typeof Symbol<"u"?Symbol.prototype:null,h=d.push,l=d.slice,m=a.toString,x=a.hasOwnProperty,O=typeof ArrayBuffer<"u",L=typeof DataView<"u",w=Array.isArray,B=Object.keys,_=Object.create,y=O&&ArrayBuffer.isView,$=isNaN,C=isFinite,T=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],I=Math.pow(2,53)-1;function F(ae,_e){return _e=null==_e?ae.length-1:+_e,function(){for(var mt=Math.max(arguments.length-_e,0),Vt=Array(mt),On=0;On<mt;On++)Vt[On]=arguments[On+_e];switch(_e){case 0:return ae.call(this,Vt);case 1:return ae.call(this,arguments[0],Vt);case 2:return ae.call(this,arguments[0],arguments[1],Vt)}var Rn=Array(_e+1);for(On=0;On<_e;On++)Rn[On]=arguments[On];return Rn[_e]=Vt,ae.apply(this,Rn)}}function z(ae){var _e=typeof ae;return"function"===_e||"object"===_e&&!!ae}function X(ae){return null===ae}function p(ae){return void 0===ae}function P(ae){return!0===ae||!1===ae||"[object Boolean]"===m.call(ae)}function E(ae){return!(!ae||1!==ae.nodeType)}function R(ae){var _e="[object "+ae+"]";return function(mt){return m.call(mt)===_e}}const ne=R("String"),G=R("Number"),ce=R("Date"),xe=R("RegExp"),we=R("Error"),Ge=R("Symbol"),ct=R("ArrayBuffer");var pe=R("Function");"object"!=typeof Int8Array&&"function"!=typeof(i.document&&i.document.childNodes)&&(pe=function(ae){return"function"==typeof ae||!1});const U=pe,H=R("Object");var Z=L&&H(new DataView(new ArrayBuffer(8))),oe=typeof Map<"u"&&H(new Map),Pe=R("DataView");const pt=Z?function Ie(ae){return null!=ae&&U(ae.getInt8)&&ct(ae.buffer)}:Pe,Ht=w||R("Array");function Wt(ae,_e){return null!=ae&&x.call(ae,_e)}var Xe=R("Arguments");!function(){Xe(arguments)||(Xe=function(ae){return Wt(ae,"callee")})}();const Qe=Xe;function Be(ae){return!Ge(ae)&&C(ae)&&!isNaN(parseFloat(ae))}function at(ae){return G(ae)&&$(ae)}function lt(ae){return function(){return ae}}function Dt(ae){return function(_e){var mt=ae(_e);return"number"==typeof mt&&mt>=0&&mt<=I}}function Yt(ae){return function(_e){return _e?.[ae]}}const Tt=Yt("byteLength"),ot=Dt(Tt);var Gt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const Ze=O?function wt(ae){return y?y(ae)&&!pt(ae):ot(ae)&&Gt.test(m.call(ae))}:lt(!1),Ut=Yt("length");function xn(ae,_e){_e=function vn(ae){for(var _e={},mt=ae.length,Vt=0;Vt<mt;++Vt)_e[ae[Vt]]=!0;return{contains:function(On){return!0===_e[On]},push:function(On){return _e[On]=!0,ae.push(On)}}}(_e);var mt=j.length,Vt=ae.constructor,On=U(Vt)&&Vt.prototype||a,Rn="constructor";for(Wt(ae,Rn)&&!_e.contains(Rn)&&_e.push(Rn);mt--;)(Rn=j[mt])in ae&&ae[Rn]!==On[Rn]&&!_e.contains(Rn)&&_e.push(Rn)}function bn(ae){if(!z(ae))return[];if(B)return B(ae);var _e=[];for(var mt in ae)Wt(ae,mt)&&_e.push(mt);return T&&xn(ae,_e),_e}function hn(ae){if(null==ae)return!0;var _e=Ut(ae);return"number"==typeof _e&&(Ht(ae)||ne(ae)||Qe(ae))?0===_e:0===Ut(bn(ae))}function pn(ae,_e){var mt=bn(_e),Vt=mt.length;if(null==ae)return!Vt;for(var On=Object(ae),Rn=0;Rn<Vt;Rn++){var ni=mt[Rn];if(_e[ni]!==On[ni]||!(ni in On))return!1}return!0}function In(ae){return ae instanceof In?ae:this instanceof In?void(this._wrapped=ae):new In(ae)}function Dn(ae){return new Uint8Array(ae.buffer||ae,ae.byteOffset||0,Tt(ae))}In.VERSION=e,In.prototype.valueOf=In.prototype.toJSON=In.prototype.value=function(){return this._wrapped},In.prototype.toString=function(){return String(this._wrapped)};var Tn="[object DataView]";function mn(ae,_e,mt,Vt){if(ae===_e)return 0!==ae||1/ae==1/_e;if(null==ae||null==_e)return!1;if(ae!=ae)return _e!=_e;var On=typeof ae;return("function"===On||"object"===On||"object"==typeof _e)&&Yn(ae,_e,mt,Vt)}function Yn(ae,_e,mt,Vt){ae instanceof In&&(ae=ae._wrapped),_e instanceof In&&(_e=_e._wrapped);var On=m.call(ae);if(On!==m.call(_e))return!1;if(Z&&"[object Object]"==On&&pt(ae)){if(!pt(_e))return!1;On=Tn}switch(On){case"[object RegExp]":case"[object String]":return""+ae==""+_e;case"[object Number]":return+ae!=+ae?+_e!=+_e:0==+ae?1/+ae==1/_e:+ae==+_e;case"[object Date]":case"[object Boolean]":return+ae==+_e;case"[object Symbol]":return u.valueOf.call(ae)===u.valueOf.call(_e);case"[object ArrayBuffer]":case Tn:return Yn(Dn(ae),Dn(_e),mt,Vt)}var Rn="[object Array]"===On;if(!Rn&&Ze(ae)){if(Tt(ae)!==Tt(_e))return!1;if(ae.buffer===_e.buffer&&ae.byteOffset===_e.byteOffset)return!0;Rn=!0}if(!Rn){if("object"!=typeof ae||"object"!=typeof _e)return!1;var Ii=ae.constructor,so=_e.constructor;if(Ii!==so&&!(U(Ii)&&Ii instanceof Ii&&U(so)&&so instanceof so)&&"constructor"in ae&&"constructor"in _e)return!1}Vt=Vt||[];for(var io=(mt=mt||[]).length;io--;)if(mt[io]===ae)return Vt[io]===_e;if(mt.push(ae),Vt.push(_e),Rn){if((io=ae.length)!==_e.length)return!1;for(;io--;)if(!mn(ae[io],_e[io],mt,Vt))return!1}else{var lr,$a=bn(ae);if(io=$a.length,bn(_e).length!==io)return!1;for(;io--;)if(!Wt(_e,lr=$a[io])||!mn(ae[lr],_e[lr],mt,Vt))return!1}return mt.pop(),Vt.pop(),!0}function cn(ae,_e){return mn(ae,_e)}function Nn(ae){if(!z(ae))return[];var _e=[];for(var mt in ae)_e.push(mt);return T&&xn(ae,_e),_e}function Bt(ae){var _e=Ut(ae);return function(mt){if(null==mt)return!1;var Vt=Nn(mt);if(Ut(Vt))return!1;for(var On=0;On<_e;On++)if(!U(mt[ae[On]]))return!1;return ae!==ge||!U(mt[En])}}var En="forEach",rn=["clear","delete"],Sn=["get","has","set"],ke=rn.concat(En,Sn),ge=rn.concat(Sn),q=["add"].concat(rn,En,"has");const J=oe?Bt(ke):R("Map"),Oe=oe?Bt(ge):R("WeakMap"),je=oe?Bt(q):R("Set"),Et=R("WeakSet");function dt(ae){for(var _e=bn(ae),mt=_e.length,Vt=Array(mt),On=0;On<mt;On++)Vt[On]=ae[_e[On]];return Vt}function rt(ae){for(var _e=bn(ae),mt=_e.length,Vt=Array(mt),On=0;On<mt;On++)Vt[On]=[_e[On],ae[_e[On]]];return Vt}function qe(ae){for(var _e={},mt=bn(ae),Vt=0,On=mt.length;Vt<On;Vt++)_e[ae[mt[Vt]]]=mt[Vt];return _e}function ze(ae){var _e=[];for(var mt in ae)U(ae[mt])&&_e.push(mt);return _e.sort()}function zt(ae,_e){return function(mt){var Vt=arguments.length;if(_e&&(mt=Object(mt)),Vt<2||null==mt)return mt;for(var On=1;On<Vt;On++)for(var Rn=arguments[On],ni=ae(Rn),Ii=ni.length,so=0;so<Ii;so++){var io=ni[so];(!_e||void 0===mt[io])&&(mt[io]=Rn[io])}return mt}}const vt=zt(Nn),Rt=zt(bn),gt=zt(Nn,!0);function wn(ae){if(!z(ae))return{};if(_)return _(ae);var _e=function(){};_e.prototype=ae;var mt=new _e;return _e.prototype=null,mt}function Qn(ae,_e){var mt=wn(ae);return _e&&Rt(mt,_e),mt}function pi(ae){return z(ae)?Ht(ae)?ae.slice():vt({},ae):ae}function Ei(ae,_e){return _e(ae),ae}function ki(ae){return Ht(ae)?ae:[ae]}function Co(ae){return In.toPath(ae)}function xo(ae,_e){for(var mt=_e.length,Vt=0;Vt<mt;Vt++){if(null==ae)return;ae=ae[_e[Vt]]}return mt?ae:void 0}function no(ae,_e,mt){var Vt=xo(ae,Co(_e));return p(Vt)?mt:Vt}function Qo(ae,_e){for(var mt=(_e=Co(_e)).length,Vt=0;Vt<mt;Vt++){var On=_e[Vt];if(!Wt(ae,On))return!1;ae=ae[On]}return!!mt}function Mo(ae){return ae}function po(ae){return ae=Rt({},ae),function(_e){return pn(_e,ae)}}function Io(ae){return ae=Co(ae),function(_e){return xo(_e,ae)}}function en(ae,_e,mt){if(void 0===_e)return ae;switch(mt??3){case 1:return function(Vt){return ae.call(_e,Vt)};case 3:return function(Vt,On,Rn){return ae.call(_e,Vt,On,Rn)};case 4:return function(Vt,On,Rn,ni){return ae.call(_e,Vt,On,Rn,ni)}}return function(){return ae.apply(_e,arguments)}}function Hn(ae,_e,mt){return null==ae?Mo:U(ae)?en(ae,_e,mt):z(ae)&&!Ht(ae)?po(ae):Io(ae)}function tt(ae,_e){return Hn(ae,_e,1/0)}function nt(ae,_e,mt){return In.iteratee!==tt?In.iteratee(ae,_e):Hn(ae,_e,mt)}function De(ae,_e,mt){_e=nt(_e,mt);for(var Vt=bn(ae),On=Vt.length,Rn={},ni=0;ni<On;ni++){var Ii=Vt[ni];Rn[Ii]=_e(ae[Ii],Ii,ae)}return Rn}function ve(){}function Se(ae){return null==ae?ve:function(_e){return no(ae,_e)}}function Me(ae,_e,mt){var Vt=Array(Math.max(0,ae));_e=en(_e,mt,1);for(var On=0;On<ae;On++)Vt[On]=_e(On);return Vt}function We(ae,_e){return null==_e&&(_e=ae,ae=0),ae+Math.floor(Math.random()*(_e-ae+1))}In.toPath=ki,In.iteratee=tt;const ut=Date.now||function(){return(new Date).getTime()};function ue(ae){var _e=function(Rn){return ae[Rn]},mt="(?:"+bn(ae).join("|")+")",Vt=RegExp(mt),On=RegExp(mt,"g");return function(Rn){return Vt.test(Rn=null==Rn?"":""+Rn)?Rn.replace(On,_e):Rn}}const et={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},At=ue(et),bt=ue(qe(et)),Le=In.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Pt=/(.)^/,dn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},St=/\\|'|\r|\n|\u2028|\u2029/g;function jt(ae){return"\\"+dn[ae]}var ht=/^\s*(\w|\$)+\s*$/;function on(ae,_e,mt){!_e&&mt&&(_e=mt),_e=gt({},_e,In.templateSettings);var Vt=RegExp([(_e.escape||Pt).source,(_e.interpolate||Pt).source,(_e.evaluate||Pt).source].join("|")+"|$","g"),On=0,Rn="__p+='";ae.replace(Vt,function(io,$a,lr,ka,Po){return Rn+=ae.slice(On,Po).replace(St,jt),On=Po+io.length,$a?Rn+="'+\n((__t=("+$a+"))==null?'':_.escape(__t))+\n'":lr?Rn+="'+\n((__t=("+lr+"))==null?'':__t)+\n'":ka&&(Rn+="';\n"+ka+"\n__p+='"),io}),Rn+="';\n";var Ii,ni=_e.variable;if(ni){if(!ht.test(ni))throw new Error("variable is not a bare identifier: "+ni)}else Rn="with(obj||{}){\n"+Rn+"}\n",ni="obj";Rn="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+Rn+"return __p;\n";try{Ii=new Function(ni,"_",Rn)}catch(io){throw io.source=Rn,io}var so=function(io){return Ii.call(this,io,In)};return so.source="function("+ni+"){\n"+Rn+"}",so}function Nt(ae,_e,mt){var Vt=(_e=Co(_e)).length;if(!Vt)return U(mt)?mt.call(ae):mt;for(var On=0;On<Vt;On++){var Rn=ae?.[_e[On]];void 0===Rn&&(Rn=mt,On=Vt),ae=U(Rn)?Rn.call(ae):Rn}return ae}var It=0;function Ot(ae){var _e=++It+"";return ae?ae+_e:_e}function fn(ae){var _e=In(ae);return _e._chain=!0,_e}function Xn(ae,_e,mt,Vt,On){if(!(Vt instanceof _e))return ae.apply(mt,On);var Rn=wn(ae.prototype),ni=ae.apply(Rn,On);return z(ni)?ni:Rn}var _i=F(function(ae,_e){var mt=_i.placeholder,Vt=function(){for(var On=0,Rn=_e.length,ni=Array(Rn),Ii=0;Ii<Rn;Ii++)ni[Ii]=_e[Ii]===mt?arguments[On++]:_e[Ii];for(;On<arguments.length;)ni.push(arguments[On++]);return Xn(ae,Vt,this,this,ni)};return Vt});_i.placeholder=In;const ci=_i,Ui=F(function(ae,_e,mt){if(!U(ae))throw new TypeError("Bind must be called on a function");var Vt=F(function(On){return Xn(ae,Vt,_e,this,mt.concat(On))});return Vt}),li=Dt(Ut);function vi(ae,_e,mt,Vt){if(Vt=Vt||[],_e||0===_e){if(_e<=0)return Vt.concat(ae)}else _e=1/0;for(var On=Vt.length,Rn=0,ni=Ut(ae);Rn<ni;Rn++){var Ii=ae[Rn];if(li(Ii)&&(Ht(Ii)||Qe(Ii)))if(_e>1)vi(Ii,_e-1,mt,Vt),On=Vt.length;else for(var so=0,io=Ii.length;so<io;)Vt[On++]=Ii[so++];else mt||(Vt[On++]=Ii)}return Vt}const Zn=F(function(ae,_e){var mt=(_e=vi(_e,!1,!1)).length;if(mt<1)throw new Error("bindAll must be passed function names");for(;mt--;){var Vt=_e[mt];ae[Vt]=Ui(ae[Vt],ae)}return ae});function gn(ae,_e){var mt=function(Vt){var On=mt.cache,Rn=""+(_e?_e.apply(this,arguments):Vt);return Wt(On,Rn)||(On[Rn]=ae.apply(this,arguments)),On[Rn]};return mt.cache={},mt}const Mt=F(function(ae,_e,mt){return setTimeout(function(){return ae.apply(null,mt)},_e)}),$t=ci(Mt,In,1);function kn(ae,_e,mt){var Vt,On,Rn,ni,Ii=0;mt||(mt={});var so=function(){Ii=!1===mt.leading?0:ut(),Vt=null,ni=ae.apply(On,Rn),Vt||(On=Rn=null)},io=function(){var $a=ut();!Ii&&!1===mt.leading&&(Ii=$a);var lr=_e-($a-Ii);return On=this,Rn=arguments,lr<=0||lr>_e?(Vt&&(clearTimeout(Vt),Vt=null),Ii=$a,ni=ae.apply(On,Rn),Vt||(On=Rn=null)):!Vt&&!1!==mt.trailing&&(Vt=setTimeout(so,lr)),ni};return io.cancel=function(){clearTimeout(Vt),Ii=0,Vt=On=Rn=null},io}function ai(ae,_e,mt){var Vt,On,Rn,ni,Ii,so=function(){var $a=ut()-On;_e>$a?Vt=setTimeout(so,_e-$a):(Vt=null,mt||(ni=ae.apply(Ii,Rn)),Vt||(Rn=Ii=null))},io=F(function($a){return Ii=this,Rn=$a,On=ut(),Vt||(Vt=setTimeout(so,_e),mt&&(ni=ae.apply(Ii,Rn))),ni});return io.cancel=function(){clearTimeout(Vt),Vt=Rn=Ii=null},io}function qi(ae,_e){return ci(_e,ae)}function eo(ae){return function(){return!ae.apply(this,arguments)}}function Oo(){var ae=arguments,_e=ae.length-1;return function(){for(var mt=_e,Vt=ae[_e].apply(this,arguments);mt--;)Vt=ae[mt].call(this,Vt);return Vt}}function Fo(ae,_e){return function(){if(--ae<1)return _e.apply(this,arguments)}}function Zi(ae,_e){var mt;return function(){return--ae>0&&(mt=_e.apply(this,arguments)),ae<=1&&(_e=null),mt}}const Wo=ci(Zi,2);function na(ae,_e,mt){_e=nt(_e,mt);for(var On,Vt=bn(ae),Rn=0,ni=Vt.length;Rn<ni;Rn++)if(_e(ae[On=Vt[Rn]],On,ae))return On}function qa(ae){return function(_e,mt,Vt){mt=nt(mt,Vt);for(var On=Ut(_e),Rn=ae>0?0:On-1;Rn>=0&&Rn<On;Rn+=ae)if(mt(_e[Rn],Rn,_e))return Rn;return-1}}const rr=qa(1),dr=qa(-1);function sr(ae,_e,mt,Vt){for(var On=(mt=nt(mt,Vt,1))(_e),Rn=0,ni=Ut(ae);Rn<ni;){var Ii=Math.floor((Rn+ni)/2);mt(ae[Ii])<On?Rn=Ii+1:ni=Ii}return Rn}function Ks(ae,_e,mt){return function(Vt,On,Rn){var ni=0,Ii=Ut(Vt);if("number"==typeof Rn)ae>0?ni=Rn>=0?Rn:Math.max(Rn+Ii,ni):Ii=Rn>=0?Math.min(Rn+1,Ii):Rn+Ii+1;else if(mt&&Rn&&Ii)return Vt[Rn=mt(Vt,On)]===On?Rn:-1;if(On!=On)return(Rn=_e(l.call(Vt,ni,Ii),at))>=0?Rn+ni:-1;for(Rn=ae>0?ni:Ii-1;Rn>=0&&Rn<Ii;Rn+=ae)if(Vt[Rn]===On)return Rn;return-1}}const _r=Ks(1,rr,sr),_o=Ks(-1,dr);function to(ae,_e,mt){var On=(li(ae)?rr:na)(ae,_e,mt);if(void 0!==On&&-1!==On)return ae[On]}function gr(ae,_e){return to(ae,po(_e))}function za(ae,_e,mt){var Vt,On;if(_e=en(_e,mt),li(ae))for(Vt=0,On=ae.length;Vt<On;Vt++)_e(ae[Vt],Vt,ae);else{var Rn=bn(ae);for(Vt=0,On=Rn.length;Vt<On;Vt++)_e(ae[Rn[Vt]],Rn[Vt],ae)}return ae}function Sa(ae,_e,mt){_e=nt(_e,mt);for(var Vt=!li(ae)&&bn(ae),On=(Vt||ae).length,Rn=Array(On),ni=0;ni<On;ni++){var Ii=Vt?Vt[ni]:ni;Rn[ni]=_e(ae[Ii],Ii,ae)}return Rn}function zr(ae){var _e=function(mt,Vt,On,Rn){var ni=!li(mt)&&bn(mt),Ii=(ni||mt).length,so=ae>0?0:Ii-1;for(Rn||(On=mt[ni?ni[so]:so],so+=ae);so>=0&&so<Ii;so+=ae){var io=ni?ni[so]:so;On=Vt(On,mt[io],io,mt)}return On};return function(mt,Vt,On,Rn){var ni=arguments.length>=3;return _e(mt,en(Vt,Rn,4),On,ni)}}const cr=zr(1),vr=zr(-1);function Pr(ae,_e,mt){var Vt=[];return _e=nt(_e,mt),za(ae,function(On,Rn,ni){_e(On,Rn,ni)&&Vt.push(On)}),Vt}function Cs(ae,_e,mt){return Pr(ae,eo(nt(_e)),mt)}function ia(ae,_e,mt){_e=nt(_e,mt);for(var Vt=!li(ae)&&bn(ae),On=(Vt||ae).length,Rn=0;Rn<On;Rn++){var ni=Vt?Vt[Rn]:Rn;if(!_e(ae[ni],ni,ae))return!1}return!0}function Er(ae,_e,mt){_e=nt(_e,mt);for(var Vt=!li(ae)&&bn(ae),On=(Vt||ae).length,Rn=0;Rn<On;Rn++){var ni=Vt?Vt[Rn]:Rn;if(_e(ae[ni],ni,ae))return!0}return!1}function yo(ae,_e,mt,Vt){return li(ae)||(ae=dt(ae)),("number"!=typeof mt||Vt)&&(mt=0),_r(ae,_e,mt)>=0}const Yr=F(function(ae,_e,mt){var Vt,On;return U(_e)?On=_e:(_e=Co(_e),Vt=_e.slice(0,-1),_e=_e[_e.length-1]),Sa(ae,function(Rn){var ni=On;if(!ni){if(Vt&&Vt.length&&(Rn=xo(Rn,Vt)),null==Rn)return;ni=Rn[_e]}return null==ni?ni:ni.apply(Rn,mt)})});function Ya(ae,_e){return Sa(ae,Io(_e))}function ma(ae,_e){return Pr(ae,po(_e))}function ur(ae,_e,mt){var Rn,ni,Vt=-1/0,On=-1/0;if(null==_e||"number"==typeof _e&&"object"!=typeof ae[0]&&null!=ae)for(var Ii=0,so=(ae=li(ae)?ae:dt(ae)).length;Ii<so;Ii++)null!=(Rn=ae[Ii])&&Rn>Vt&&(Vt=Rn);else _e=nt(_e,mt),za(ae,function(io,$a,lr){((ni=_e(io,$a,lr))>On||ni===-1/0&&Vt===-1/0)&&(Vt=io,On=ni)});return Vt}function Or(ae,_e,mt){var Rn,ni,Vt=1/0,On=1/0;if(null==_e||"number"==typeof _e&&"object"!=typeof ae[0]&&null!=ae)for(var Ii=0,so=(ae=li(ae)?ae:dt(ae)).length;Ii<so;Ii++)null!=(Rn=ae[Ii])&&Rn<Vt&&(Vt=Rn);else _e=nt(_e,mt),za(ae,function(io,$a,lr){((ni=_e(io,$a,lr))<On||ni===1/0&&Vt===1/0)&&(Vt=io,On=ni)});return Vt}var es=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ts(ae){return ae?Ht(ae)?l.call(ae):ne(ae)?ae.match(es):li(ae)?Sa(ae,Mo):dt(ae):[]}function er(ae,_e,mt){if(null==_e||mt)return li(ae)||(ae=dt(ae)),ae[We(ae.length-1)];var Vt=ts(ae),On=Ut(Vt);_e=Math.max(Math.min(_e,On),0);for(var Rn=On-1,ni=0;ni<_e;ni++){var Ii=We(ni,Rn),so=Vt[ni];Vt[ni]=Vt[Ii],Vt[Ii]=so}return Vt.slice(0,_e)}function pr(ae){return er(ae,1/0)}function Ua(ae,_e,mt){var Vt=0;return _e=nt(_e,mt),Ya(Sa(ae,function(On,Rn,ni){return{value:On,index:Vt++,criteria:_e(On,Rn,ni)}}).sort(function(On,Rn){var ni=On.criteria,Ii=Rn.criteria;if(ni!==Ii){if(ni>Ii||void 0===ni)return 1;if(ni<Ii||void 0===Ii)return-1}return On.index-Rn.index}),"value")}function Ca(ae,_e){return function(mt,Vt,On){var Rn=_e?[[],[]]:{};return Vt=nt(Vt,On),za(mt,function(ni,Ii){var so=Vt(ni,Ii,mt);ae(Rn,ni,so)}),Rn}}const Va=Ca(function(ae,_e,mt){Wt(ae,mt)?ae[mt].push(_e):ae[mt]=[_e]}),Rr=Ca(function(ae,_e,mt){ae[mt]=_e}),ha=Ca(function(ae,_e,mt){Wt(ae,mt)?ae[mt]++:ae[mt]=1}),mr=Ca(function(ae,_e,mt){ae[mt?0:1].push(_e)},!0);function Fr(ae){return null==ae?0:li(ae)?ae.length:bn(ae).length}function da(ae,_e,mt){return _e in mt}const Ro=F(function(ae,_e){var mt={},Vt=_e[0];if(null==ae)return mt;U(Vt)?(_e.length>1&&(Vt=en(Vt,_e[1])),_e=Nn(ae)):(Vt=da,_e=vi(_e,!1,!1),ae=Object(ae));for(var On=0,Rn=_e.length;On<Rn;On++){var ni=_e[On],Ii=ae[ni];Vt(Ii,ni,ae)&&(mt[ni]=Ii)}return mt}),ya=F(function(ae,_e){var Vt,mt=_e[0];return U(mt)?(mt=eo(mt),_e.length>1&&(Vt=_e[1])):(_e=Sa(vi(_e,!1,!1),String),mt=function(On,Rn){return!yo(_e,Rn)}),Ro(ae,mt,Vt)});function oa(ae,_e,mt){return l.call(ae,0,Math.max(0,ae.length-(null==_e||mt?1:_e)))}function hr(ae,_e,mt){return null==ae||ae.length<1?null==_e||mt?void 0:[]:null==_e||mt?ae[0]:oa(ae,ae.length-_e)}function fr(ae,_e,mt){return l.call(ae,null==_e||mt?1:_e)}function br(ae,_e,mt){return null==ae||ae.length<1?null==_e||mt?void 0:[]:null==_e||mt?ae[ae.length-1]:fr(ae,Math.max(0,ae.length-_e))}function Ia(ae){return Pr(ae,Boolean)}function wa(ae,_e){return vi(ae,_e,!1)}const Za=F(function(ae,_e){return _e=vi(_e,!0,!0),Pr(ae,function(mt){return!yo(_e,mt)})}),ns=F(function(ae,_e){return Za(ae,_e)});function Pa(ae,_e,mt,Vt){P(_e)||(Vt=mt,mt=_e,_e=!1),null!=mt&&(mt=nt(mt,Vt));for(var On=[],Rn=[],ni=0,Ii=Ut(ae);ni<Ii;ni++){var so=ae[ni],io=mt?mt(so,ni,ae):so;_e&&!mt?((!ni||Rn!==io)&&On.push(so),Rn=io):mt?yo(Rn,io)||(Rn.push(io),On.push(so)):yo(On,so)||On.push(so)}return On}const ar=F(function(ae){return Pa(vi(ae,!0,!0))});function Sr(ae){for(var _e=[],mt=arguments.length,Vt=0,On=Ut(ae);Vt<On;Vt++){var Rn=ae[Vt];if(!yo(_e,Rn)){var ni;for(ni=1;ni<mt&&yo(arguments[ni],Rn);ni++);ni===mt&&_e.push(Rn)}}return _e}function ao(ae){for(var _e=ae&&ur(ae,Ut).length||0,mt=Array(_e),Vt=0;Vt<_e;Vt++)mt[Vt]=Ya(ae,Vt);return mt}const Aa=F(ao);function Je(ae,_e){for(var mt={},Vt=0,On=Ut(ae);Vt<On;Vt++)_e?mt[ae[Vt]]=_e[Vt]:mt[ae[Vt][0]]=ae[Vt][1];return mt}function Ke(ae,_e,mt){null==_e&&(_e=ae||0,ae=0),mt||(mt=_e<ae?-1:1);for(var Vt=Math.max(Math.ceil((_e-ae)/mt),0),On=Array(Vt),Rn=0;Rn<Vt;Rn++,ae+=mt)On[Rn]=ae;return On}function Ue(ae,_e){if(null==_e||_e<1)return[];for(var mt=[],Vt=0,On=ae.length;Vt<On;)mt.push(l.call(ae,Vt,Vt+=_e));return mt}function Qt(ae,_e){return ae._chain?In(_e).chain():_e}function ti(ae){return za(ze(ae),function(_e){var mt=In[_e]=ae[_e];In.prototype[_e]=function(){var Vt=[this._wrapped];return h.apply(Vt,arguments),Qt(this,mt.apply(In,Vt))}}),In}za(["pop","push","reverse","shift","sort","splice","unshift"],function(ae){var _e=d[ae];In.prototype[ae]=function(){var mt=this._wrapped;return null!=mt&&(_e.apply(mt,arguments),("shift"===ae||"splice"===ae)&&0===mt.length&&delete mt[0]),Qt(this,mt)}}),za(["concat","join","slice"],function(ae){var _e=d[ae];In.prototype[ae]=function(){var mt=this._wrapped;return null!=mt&&(mt=_e.apply(mt,arguments)),Qt(this,mt)}});const $i=In;var qt=ti(n);qt._=qt},97582:(Ee,Q,t)=>{"use strict";function a(pe,Ce,U,H){var Pe,Z=arguments.length,oe=Z<3?Ce:null===H?H=Object.getOwnPropertyDescriptor(Ce,U):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)oe=Reflect.decorate(pe,Ce,U,H);else for(var Ie=pe.length-1;Ie>=0;Ie--)(Pe=pe[Ie])&&(oe=(Z<3?Pe(oe):Z>3?Pe(Ce,U,oe):Pe(Ce,U))||oe);return Z>3&&oe&&Object.defineProperty(Ce,U,oe),oe}function L(pe,Ce,U,H){return new(U||(U=Promise))(function(oe,Pe){function Ie(Wt){try{Ht(H.next(Wt))}catch(Xe){Pe(Xe)}}function pt(Wt){try{Ht(H.throw(Wt))}catch(Xe){Pe(Xe)}}function Ht(Wt){Wt.done?oe(Wt.value):function Z(oe){return oe instanceof U?oe:new U(function(Pe){Pe(oe)})}(Wt.value).then(Ie,pt)}Ht((H=H.apply(pe,Ce||[])).next())})}function I(pe){return this instanceof I?(this.v=pe,this):new I(pe)}function F(pe,Ce,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z,H=U.apply(pe,Ce||[]),oe=[];return Z={},Ie("next"),Ie("throw"),Ie("return",function Pe(Be){return function(at){return Promise.resolve(at).then(Be,Xe)}}),Z[Symbol.asyncIterator]=function(){return this},Z;function Ie(Be,at){H[Be]&&(Z[Be]=function(lt){return new Promise(function(Dt,Yt){oe.push([Be,lt,Dt,Yt])>1||pt(Be,lt)})},at&&(Z[Be]=at(Z[Be])))}function pt(Be,at){try{!function Ht(Be){Be.value instanceof I?Promise.resolve(Be.value.v).then(Wt,Xe):Qe(oe[0][2],Be)}(H[Be](at))}catch(lt){Qe(oe[0][3],lt)}}function Wt(Be){pt("next",Be)}function Xe(Be){pt("throw",Be)}function Qe(Be,at){Be(at),oe.shift(),oe.length&&pt(oe[0][0],oe[0][1])}}function X(pe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,Ce=pe[Symbol.asyncIterator];return Ce?Ce.call(pe):(pe=function y(pe){var Ce="function"==typeof Symbol&&Symbol.iterator,U=Ce&&pe[Ce],H=0;if(U)return U.call(pe);if(pe&&"number"==typeof pe.length)return{next:function(){return pe&&H>=pe.length&&(pe=void 0),{value:pe&&pe[H++],done:!pe}}};throw new TypeError(Ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(pe),U={},H("next"),H("throw"),H("return"),U[Symbol.asyncIterator]=function(){return this},U);function H(oe){U[oe]=pe[oe]&&function(Pe){return new Promise(function(Ie,pt){!function Z(oe,Pe,Ie,pt){Promise.resolve(pt).then(function(Ht){oe({value:Ht,done:Ie})},Pe)}(Ie,pt,(Pe=pe[oe](Pe)).done,Pe.value)})}}}t.d(Q,{FC:()=>F,KL:()=>X,gn:()=>a,mG:()=>L,qq:()=>I}),"function"==typeof SuppressedError&&SuppressedError}},Ee=>{Ee(Ee.s=25047)}]);